cairo did notuse gl at all with gles
[platform/upstream/cairo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cairo 1.12.16.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='cairo'
593 PACKAGE_TARNAME='cairo'
594 PACKAGE_VERSION='1.12.16'
595 PACKAGE_STRING='cairo 1.12.16'
596 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=cairo'
597 PACKAGE_URL='http://cairographics.org/'
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_unique_file="src/cairo.h"
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 HAVE_GTK_FALSE
641 HAVE_GTK_TRUE
642 gtk_LIBS
643 gtk_CFLAGS
644 BUILD_CXX_FALSE
645 BUILD_CXX_TRUE
646 DISABLE_SOME_FLOATING_POINT_FALSE
647 DISABLE_SOME_FLOATING_POINT_TRUE
648 shm_LIBS
649 BUILD_SPHINX_FALSE
650 BUILD_SPHINX_TRUE
651 glib_LIBS
652 glib_CFLAGS
653 CAIRO_HAS_SYMBOL_LOOKUP_FALSE
654 CAIRO_HAS_SYMBOL_LOOKUP_TRUE
655 BFD_LIBS
656 CAIRO_HAS_INTERPRETER_FALSE
657 CAIRO_HAS_INTERPRETER_TRUE
658 CAIRO_HAS_TRACE_FALSE
659 CAIRO_HAS_TRACE_TRUE
660 SHLIB_EXT
661 BUILD_ANY2PPM_FALSE
662 BUILD_ANY2PPM_TRUE
663 CAIRO_TEST_MODE
664 CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE
665 CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE
666 GOBJECT_LIBS
667 GOBJECT_CFLAGS
668 real_pthread_LIBS
669 real_pthread_CFLAGS
670 pthread_LIBS
671 pthread_CFLAGS
672 HAVE_PTHREAD_FALSE
673 HAVE_PTHREAD_TRUE
674 HAVE_REAL_PTHREAD_FALSE
675 HAVE_REAL_PTHREAD_TRUE
676 CAIRO_HAS_PTHREAD_FALSE
677 CAIRO_HAS_PTHREAD_TRUE
678 CAIRO_HAS_XML_SURFACE_FALSE
679 CAIRO_HAS_XML_SURFACE_TRUE
680 CAIRO_HAS_TEE_SURFACE_FALSE
681 CAIRO_HAS_TEE_SURFACE_TRUE
682 pixman_LIBS
683 pixman_CFLAGS
684 CAIRO_HAS_TEST_SURFACES_FALSE
685 CAIRO_HAS_TEST_SURFACES_TRUE
686 CAIRO_CAN_TEST_SVG_SURFACE_FALSE
687 CAIRO_CAN_TEST_SVG_SURFACE_TRUE
688 LIBRSVG_LIBS
689 LIBRSVG_CFLAGS
690 CAIRO_HAS_SVG_SURFACE_FALSE
691 CAIRO_HAS_SVG_SURFACE_TRUE
692 CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE
693 CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE
694 CAIRO_CAN_TEST_PDF_SURFACE_FALSE
695 CAIRO_CAN_TEST_PDF_SURFACE_TRUE
696 POPPLER_LIBS
697 POPPLER_CFLAGS
698 CAIRO_HAS_PDF_SURFACE_FALSE
699 CAIRO_HAS_PDF_SURFACE_TRUE
700 CAIRO_HAS_SPECTRE_FALSE
701 CAIRO_HAS_SPECTRE_TRUE
702 CAIRO_CAN_TEST_PS_SURFACE_FALSE
703 CAIRO_CAN_TEST_PS_SURFACE_TRUE
704 LIBSPECTRE_LIBS
705 LIBSPECTRE_CFLAGS
706 CAIRO_HAS_PS_SURFACE_FALSE
707 CAIRO_HAS_PS_SURFACE_TRUE
708 CAIRO_HAS_FC_FONT_FALSE
709 CAIRO_HAS_FC_FONT_TRUE
710 FONTCONFIG_LIBS
711 FONTCONFIG_CFLAGS
712 CAIRO_HAS_FT_FONT_FALSE
713 CAIRO_HAS_FT_FONT_TRUE
714 FREETYPE_CONFIG
715 FREETYPE_LIBS
716 FREETYPE_CFLAGS
717 CAIRO_HAS_SCRIPT_SURFACE_FALSE
718 CAIRO_HAS_SCRIPT_SURFACE_TRUE
719 CAIRO_HAS_WGL_FUNCTIONS_FALSE
720 CAIRO_HAS_WGL_FUNCTIONS_TRUE
721 CAIRO_HAS_GLX_FUNCTIONS_FALSE
722 CAIRO_HAS_GLX_FUNCTIONS_TRUE
723 CAIRO_HAS_EGL_FUNCTIONS_FALSE
724 CAIRO_HAS_EGL_FUNCTIONS_TRUE
725 egl_LIBS
726 egl_CFLAGS
727 CAIRO_HAS_VG_SURFACE_FALSE
728 CAIRO_HAS_VG_SURFACE_TRUE
729 CAIRO_HAS_DIRECTFB_SURFACE_FALSE
730 CAIRO_HAS_DIRECTFB_SURFACE_TRUE
731 directfb_LIBS
732 directfb_CFLAGS
733 CAIRO_HAS_COGL_SURFACE_FALSE
734 CAIRO_HAS_COGL_SURFACE_TRUE
735 cogl_LIBS
736 cogl_CFLAGS
737 CAIRO_HAS_GLESV2_SURFACE_FALSE
738 CAIRO_HAS_GLESV2_SURFACE_TRUE
739 glesv2_LIBS
740 glesv2_CFLAGS
741 CAIRO_HAS_GL_SURFACE_FALSE
742 CAIRO_HAS_GL_SURFACE_TRUE
743 gl_LIBS
744 gl_CFLAGS
745 CAIRO_HAS_PNG_FUNCTIONS_FALSE
746 CAIRO_HAS_PNG_FUNCTIONS_TRUE
747 png_LIBS
748 png_CFLAGS
749 png_REQUIRES
750 CAIRO_HAS_GALLIUM_SURFACE_FALSE
751 CAIRO_HAS_GALLIUM_SURFACE_TRUE
752 gallium_DIR
753 mesa_DIR
754 CAIRO_HAS_DRM_SURFACE_FALSE
755 CAIRO_HAS_DRM_SURFACE_TRUE
756 drm_LIBS
757 drm_CFLAGS
758 CAIRO_HAS_BEOS_SURFACE_FALSE
759 CAIRO_HAS_BEOS_SURFACE_TRUE
760 CAIRO_HAS_OS2_SURFACE_FALSE
761 CAIRO_HAS_OS2_SURFACE_TRUE
762 CAIRO_HAS_SKIA_SURFACE_FALSE
763 CAIRO_HAS_SKIA_SURFACE_TRUE
764 skia_DIR
765 CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE
766 CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE
767 GS
768 CAIRO_HAS_WIN32_FONT_FALSE
769 CAIRO_HAS_WIN32_FONT_TRUE
770 CAIRO_HAS_WIN32_SURFACE_FALSE
771 CAIRO_HAS_WIN32_SURFACE_TRUE
772 CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE
773 CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE
774 CAIRO_HAS_QUARTZ_FONT_FALSE
775 CAIRO_HAS_QUARTZ_FONT_TRUE
776 CAIRO_HAS_QUARTZ_SURFACE_FALSE
777 CAIRO_HAS_QUARTZ_SURFACE_TRUE
778 CAIRO_HAS_QT_SURFACE_FALSE
779 CAIRO_HAS_QT_SURFACE_TRUE
780 qt_LIBS
781 qt_CFLAGS
782 CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE
783 CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE
784 xcb_shm_LIBS
785 xcb_shm_CFLAGS
786 CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE
787 CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE
788 xlib_xcb_LIBS
789 xlib_xcb_CFLAGS
790 CAIRO_HAS_XCB_SURFACE_FALSE
791 CAIRO_HAS_XCB_SURFACE_TRUE
792 xcb_LIBS
793 xcb_CFLAGS
794 CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE
795 CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE
796 xlib_xrender_LIBS
797 xlib_xrender_CFLAGS
798 CAIRO_HAS_XLIB_SURFACE_FALSE
799 CAIRO_HAS_XLIB_SURFACE_TRUE
800 X_EXTRA_LIBS
801 X_LIBS
802 X_PRE_LIBS
803 X_CFLAGS
804 XMKMF
805 xlib_LIBS
806 xlib_CFLAGS
807 CAIRO_HAS_DLSYM_FALSE
808 CAIRO_HAS_DLSYM_TRUE
809 CAIRO_HAS_DL_FALSE
810 CAIRO_HAS_DL_TRUE
811 lzo_LIBS
812 VALGRIND_LIBS
813 VALGRIND_CFLAGS
814 CAIRO_HAS_LCOV_FALSE
815 CAIRO_HAS_LCOV_TRUE
816 LTP_GENHTML
817 LTP
818 SHTOOL
819 CAIROBOILERPLATE_LIBS
820 SHM_LIBS
821 HAVE_SHM_FALSE
822 HAVE_SHM_TRUE
823 LIBM
824 OS_WIN32_FALSE
825 OS_WIN32_TRUE
826 CROSS_COMPILING_FALSE
827 CROSS_COMPILING_TRUE
828 CAIRO_TEST_UNDEFINED_LDFLAGS
829 CAIRO_NONPKGCONFIG_LIBS
830 CAIRO_LIBS
831 CAIRO_NONPKGCONFIG_CFLAGS
832 CAIRO_LDFLAGS
833 CAIRO_CFLAGS
834 CAIRO_REQUIRES
835 PKGCONFIG_REQUIRES
836 CXXCPP
837 am__fastdepCXX_FALSE
838 am__fastdepCXX_TRUE
839 CXXDEPMODE
840 ac_ct_CXX
841 CXXFLAGS
842 CXX
843 XARGS
844 FIND
845 CAIRO_LIBTOOL_VERSION_INFO
846 CAIRO_RELEASE_STATUS
847 CAIRO_VERSION_SONUM
848 CAIRO_VERSION_MICRO
849 CAIRO_VERSION_MINOR
850 CAIRO_VERSION_MAJOR
851 GTK_DOC_USE_REBASE_FALSE
852 GTK_DOC_USE_REBASE_TRUE
853 GTK_DOC_USE_LIBTOOL_FALSE
854 GTK_DOC_USE_LIBTOOL_TRUE
855 GTK_DOC_BUILD_PDF_FALSE
856 GTK_DOC_BUILD_PDF_TRUE
857 GTK_DOC_BUILD_HTML_FALSE
858 GTK_DOC_BUILD_HTML_TRUE
859 ENABLE_GTK_DOC_FALSE
860 ENABLE_GTK_DOC_TRUE
861 GTKDOC_DEPS_LIBS
862 GTKDOC_DEPS_CFLAGS
863 HTML_DIR
864 GTKDOC_MKPDF
865 GTKDOC_REBASE
866 GTKDOC_CHECK
867 PKG_CONFIG
868 OTOOL64
869 OTOOL
870 LIPO
871 NMEDIT
872 DSYMUTIL
873 MANIFEST_TOOL
874 RANLIB
875 ac_ct_AR
876 AR
877 LN_S
878 NM
879 ac_ct_DUMPBIN
880 DUMPBIN
881 LD
882 FGREP
883 SED
884 host_os
885 host_vendor
886 host_cpu
887 host
888 build_os
889 build_vendor
890 build_cpu
891 build
892 LIBTOOL
893 OBJDUMP
894 DLLTOOL
895 AS
896 AM_BACKSLASH
897 AM_DEFAULT_VERBOSITY
898 AM_DEFAULT_V
899 AM_V
900 am__fastdepCC_FALSE
901 am__fastdepCC_TRUE
902 CCDEPMODE
903 am__nodep
904 AMDEPBACKSLASH
905 AMDEP_FALSE
906 AMDEP_TRUE
907 am__quote
908 am__include
909 DEPDIR
910 am__untar
911 am__tar
912 AMTAR
913 am__leading_dot
914 SET_MAKE
915 AWK
916 mkdir_p
917 MKDIR_P
918 INSTALL_STRIP_PROGRAM
919 STRIP
920 install_sh
921 MAKEINFO
922 AUTOHEADER
923 AUTOMAKE
924 AUTOCONF
925 ACLOCAL
926 VERSION
927 PACKAGE
928 CYGPATH_W
929 am__isrc
930 INSTALL_DATA
931 INSTALL_SCRIPT
932 INSTALL_PROGRAM
933 EGREP
934 GREP
935 CPP
936 OBJEXT
937 EXEEXT
938 ac_ct_CC
939 CPPFLAGS
940 LDFLAGS
941 CFLAGS
942 CC
943 target_alias
944 host_alias
945 build_alias
946 LIBS
947 ECHO_T
948 ECHO_N
949 ECHO_C
950 DEFS
951 mandir
952 localedir
953 libdir
954 psdir
955 pdfdir
956 dvidir
957 htmldir
958 infodir
959 docdir
960 oldincludedir
961 includedir
962 localstatedir
963 sharedstatedir
964 sysconfdir
965 datadir
966 datarootdir
967 libexecdir
968 sbindir
969 bindir
970 program_transform_name
971 prefix
972 exec_prefix
973 PACKAGE_URL
974 PACKAGE_BUGREPORT
975 PACKAGE_STRING
976 PACKAGE_VERSION
977 PACKAGE_TARNAME
978 PACKAGE_NAME
979 PATH_SEPARATOR
980 SHELL'
981 ac_subst_files=''
982 ac_user_opts='
983 enable_option_checking
984 enable_dependency_tracking
985 enable_silent_rules
986 enable_shared
987 enable_static
988 with_pic
989 enable_fast_install
990 with_gnu_ld
991 with_sysroot
992 enable_libtool_lock
993 with_html_dir
994 enable_gtk_doc
995 enable_gtk_doc_html
996 enable_gtk_doc_pdf
997 enable_largefile
998 enable_atomic
999 enable_gcov
1000 enable_valgrind
1001 enable_xlib
1002 with_x
1003 enable_xlib_xrender
1004 enable_xcb
1005 enable_xlib_xcb
1006 enable_xcb_shm
1007 enable_qt
1008 enable_quartz
1009 enable_quartz_font
1010 enable_quartz_image
1011 enable_win32
1012 enable_win32_font
1013 enable_skia
1014 with_skia
1015 with_skia_bulid
1016 enable_os2
1017 enable_beos
1018 enable_drm
1019 enable_gallium
1020 with_gallium
1021 enable_png
1022 enable_gl
1023 enable_glesv2
1024 enable_cogl
1025 enable_directfb
1026 enable_vg
1027 enable_egl
1028 enable_glx
1029 enable_wgl
1030 enable_script
1031 enable_ft
1032 enable_fc
1033 enable_ps
1034 enable_pdf
1035 enable_svg
1036 enable_test_surfaces
1037 enable_tee
1038 enable_xml
1039 enable_pthread
1040 enable_gobject
1041 enable_full_testing
1042 enable_trace
1043 enable_interpreter
1044 enable_symbol_lookup
1045 enable_some_floating_point
1046 '
1047       ac_precious_vars='build_alias
1048 host_alias
1049 target_alias
1050 CC
1051 CFLAGS
1052 LDFLAGS
1053 LIBS
1054 CPPFLAGS
1055 CPP
1056 PKG_CONFIG
1057 GTKDOC_DEPS_CFLAGS
1058 GTKDOC_DEPS_LIBS
1059 CXX
1060 CXXFLAGS
1061 CCC
1062 CXXCPP
1063 VALGRIND_CFLAGS
1064 VALGRIND_LIBS
1065 xlib_CFLAGS
1066 xlib_LIBS
1067 XMKMF
1068 xlib_xrender_CFLAGS
1069 xlib_xrender_LIBS
1070 xcb_CFLAGS
1071 xcb_LIBS
1072 xlib_xcb_CFLAGS
1073 xlib_xcb_LIBS
1074 xcb_shm_CFLAGS
1075 xcb_shm_LIBS
1076 qt_CFLAGS
1077 qt_LIBS
1078 drm_CFLAGS
1079 drm_LIBS
1080 png_REQUIRES
1081 png_CFLAGS
1082 png_LIBS
1083 gl_CFLAGS
1084 gl_LIBS
1085 glesv2_CFLAGS
1086 glesv2_LIBS
1087 cogl_CFLAGS
1088 cogl_LIBS
1089 directfb_CFLAGS
1090 directfb_LIBS
1091 egl_CFLAGS
1092 egl_LIBS
1093 FREETYPE_CFLAGS
1094 FREETYPE_LIBS
1095 FONTCONFIG_CFLAGS
1096 FONTCONFIG_LIBS
1097 LIBSPECTRE_CFLAGS
1098 LIBSPECTRE_LIBS
1099 POPPLER_CFLAGS
1100 POPPLER_LIBS
1101 LIBRSVG_CFLAGS
1102 LIBRSVG_LIBS
1103 pixman_CFLAGS
1104 pixman_LIBS
1105 GOBJECT_CFLAGS
1106 GOBJECT_LIBS
1107 glib_CFLAGS
1108 glib_LIBS
1109 gtk_CFLAGS
1110 gtk_LIBS'
1111
1112
1113 # Initialize some variables set by options.
1114 ac_init_help=
1115 ac_init_version=false
1116 ac_unrecognized_opts=
1117 ac_unrecognized_sep=
1118 # The variables have the same names as the options, with
1119 # dashes changed to underlines.
1120 cache_file=/dev/null
1121 exec_prefix=NONE
1122 no_create=
1123 no_recursion=
1124 prefix=NONE
1125 program_prefix=NONE
1126 program_suffix=NONE
1127 program_transform_name=s,x,x,
1128 silent=
1129 site=
1130 srcdir=
1131 verbose=
1132 x_includes=NONE
1133 x_libraries=NONE
1134
1135 # Installation directory options.
1136 # These are left unexpanded so users can "make install exec_prefix=/foo"
1137 # and all the variables that are supposed to be based on exec_prefix
1138 # by default will actually change.
1139 # Use braces instead of parens because sh, perl, etc. also accept them.
1140 # (The list follows the same order as the GNU Coding Standards.)
1141 bindir='${exec_prefix}/bin'
1142 sbindir='${exec_prefix}/sbin'
1143 libexecdir='${exec_prefix}/libexec'
1144 datarootdir='${prefix}/share'
1145 datadir='${datarootdir}'
1146 sysconfdir='${prefix}/etc'
1147 sharedstatedir='${prefix}/com'
1148 localstatedir='${prefix}/var'
1149 includedir='${prefix}/include'
1150 oldincludedir='/usr/include'
1151 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1152 infodir='${datarootdir}/info'
1153 htmldir='${docdir}'
1154 dvidir='${docdir}'
1155 pdfdir='${docdir}'
1156 psdir='${docdir}'
1157 libdir='${exec_prefix}/lib'
1158 localedir='${datarootdir}/locale'
1159 mandir='${datarootdir}/man'
1160
1161 ac_prev=
1162 ac_dashdash=
1163 for ac_option
1164 do
1165   # If the previous option needs an argument, assign it.
1166   if test -n "$ac_prev"; then
1167     eval $ac_prev=\$ac_option
1168     ac_prev=
1169     continue
1170   fi
1171
1172   case $ac_option in
1173   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1174   *=)   ac_optarg= ;;
1175   *)    ac_optarg=yes ;;
1176   esac
1177
1178   # Accept the important Cygnus configure options, so we can diagnose typos.
1179
1180   case $ac_dashdash$ac_option in
1181   --)
1182     ac_dashdash=yes ;;
1183
1184   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1185     ac_prev=bindir ;;
1186   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1187     bindir=$ac_optarg ;;
1188
1189   -build | --build | --buil | --bui | --bu)
1190     ac_prev=build_alias ;;
1191   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1192     build_alias=$ac_optarg ;;
1193
1194   -cache-file | --cache-file | --cache-fil | --cache-fi \
1195   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1196     ac_prev=cache_file ;;
1197   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1198   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1199     cache_file=$ac_optarg ;;
1200
1201   --config-cache | -C)
1202     cache_file=config.cache ;;
1203
1204   -datadir | --datadir | --datadi | --datad)
1205     ac_prev=datadir ;;
1206   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1207     datadir=$ac_optarg ;;
1208
1209   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1210   | --dataroo | --dataro | --datar)
1211     ac_prev=datarootdir ;;
1212   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1213   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1214     datarootdir=$ac_optarg ;;
1215
1216   -disable-* | --disable-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid feature name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "enable_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval enable_$ac_useropt=no ;;
1231
1232   -docdir | --docdir | --docdi | --doc | --do)
1233     ac_prev=docdir ;;
1234   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1235     docdir=$ac_optarg ;;
1236
1237   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1238     ac_prev=dvidir ;;
1239   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1240     dvidir=$ac_optarg ;;
1241
1242   -enable-* | --enable-*)
1243     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246       as_fn_error $? "invalid feature name: $ac_useropt"
1247     ac_useropt_orig=$ac_useropt
1248     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249     case $ac_user_opts in
1250       *"
1251 "enable_$ac_useropt"
1252 "*) ;;
1253       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1254          ac_unrecognized_sep=', ';;
1255     esac
1256     eval enable_$ac_useropt=\$ac_optarg ;;
1257
1258   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1259   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1260   | --exec | --exe | --ex)
1261     ac_prev=exec_prefix ;;
1262   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1263   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1264   | --exec=* | --exe=* | --ex=*)
1265     exec_prefix=$ac_optarg ;;
1266
1267   -gas | --gas | --ga | --g)
1268     # Obsolete; use --with-gas.
1269     with_gas=yes ;;
1270
1271   -help | --help | --hel | --he | -h)
1272     ac_init_help=long ;;
1273   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1274     ac_init_help=recursive ;;
1275   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1276     ac_init_help=short ;;
1277
1278   -host | --host | --hos | --ho)
1279     ac_prev=host_alias ;;
1280   -host=* | --host=* | --hos=* | --ho=*)
1281     host_alias=$ac_optarg ;;
1282
1283   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1284     ac_prev=htmldir ;;
1285   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1286   | --ht=*)
1287     htmldir=$ac_optarg ;;
1288
1289   -includedir | --includedir | --includedi | --included | --include \
1290   | --includ | --inclu | --incl | --inc)
1291     ac_prev=includedir ;;
1292   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1293   | --includ=* | --inclu=* | --incl=* | --inc=*)
1294     includedir=$ac_optarg ;;
1295
1296   -infodir | --infodir | --infodi | --infod | --info | --inf)
1297     ac_prev=infodir ;;
1298   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1299     infodir=$ac_optarg ;;
1300
1301   -libdir | --libdir | --libdi | --libd)
1302     ac_prev=libdir ;;
1303   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1304     libdir=$ac_optarg ;;
1305
1306   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1307   | --libexe | --libex | --libe)
1308     ac_prev=libexecdir ;;
1309   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1310   | --libexe=* | --libex=* | --libe=*)
1311     libexecdir=$ac_optarg ;;
1312
1313   -localedir | --localedir | --localedi | --localed | --locale)
1314     ac_prev=localedir ;;
1315   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1316     localedir=$ac_optarg ;;
1317
1318   -localstatedir | --localstatedir | --localstatedi | --localstated \
1319   | --localstate | --localstat | --localsta | --localst | --locals)
1320     ac_prev=localstatedir ;;
1321   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1322   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1323     localstatedir=$ac_optarg ;;
1324
1325   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1326     ac_prev=mandir ;;
1327   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1328     mandir=$ac_optarg ;;
1329
1330   -nfp | --nfp | --nf)
1331     # Obsolete; use --without-fp.
1332     with_fp=no ;;
1333
1334   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1335   | --no-cr | --no-c | -n)
1336     no_create=yes ;;
1337
1338   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1339   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1340     no_recursion=yes ;;
1341
1342   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1343   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1344   | --oldin | --oldi | --old | --ol | --o)
1345     ac_prev=oldincludedir ;;
1346   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1347   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1348   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1349     oldincludedir=$ac_optarg ;;
1350
1351   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1352     ac_prev=prefix ;;
1353   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1354     prefix=$ac_optarg ;;
1355
1356   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1357   | --program-pre | --program-pr | --program-p)
1358     ac_prev=program_prefix ;;
1359   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1360   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1361     program_prefix=$ac_optarg ;;
1362
1363   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1364   | --program-suf | --program-su | --program-s)
1365     ac_prev=program_suffix ;;
1366   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1367   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1368     program_suffix=$ac_optarg ;;
1369
1370   -program-transform-name | --program-transform-name \
1371   | --program-transform-nam | --program-transform-na \
1372   | --program-transform-n | --program-transform- \
1373   | --program-transform | --program-transfor \
1374   | --program-transfo | --program-transf \
1375   | --program-trans | --program-tran \
1376   | --progr-tra | --program-tr | --program-t)
1377     ac_prev=program_transform_name ;;
1378   -program-transform-name=* | --program-transform-name=* \
1379   | --program-transform-nam=* | --program-transform-na=* \
1380   | --program-transform-n=* | --program-transform-=* \
1381   | --program-transform=* | --program-transfor=* \
1382   | --program-transfo=* | --program-transf=* \
1383   | --program-trans=* | --program-tran=* \
1384   | --progr-tra=* | --program-tr=* | --program-t=*)
1385     program_transform_name=$ac_optarg ;;
1386
1387   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1388     ac_prev=pdfdir ;;
1389   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1390     pdfdir=$ac_optarg ;;
1391
1392   -psdir | --psdir | --psdi | --psd | --ps)
1393     ac_prev=psdir ;;
1394   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1395     psdir=$ac_optarg ;;
1396
1397   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398   | -silent | --silent | --silen | --sile | --sil)
1399     silent=yes ;;
1400
1401   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1402     ac_prev=sbindir ;;
1403   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1404   | --sbi=* | --sb=*)
1405     sbindir=$ac_optarg ;;
1406
1407   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1408   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1409   | --sharedst | --shareds | --shared | --share | --shar \
1410   | --sha | --sh)
1411     ac_prev=sharedstatedir ;;
1412   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1413   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1414   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1415   | --sha=* | --sh=*)
1416     sharedstatedir=$ac_optarg ;;
1417
1418   -site | --site | --sit)
1419     ac_prev=site ;;
1420   -site=* | --site=* | --sit=*)
1421     site=$ac_optarg ;;
1422
1423   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1424     ac_prev=srcdir ;;
1425   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1426     srcdir=$ac_optarg ;;
1427
1428   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1429   | --syscon | --sysco | --sysc | --sys | --sy)
1430     ac_prev=sysconfdir ;;
1431   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1432   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1433     sysconfdir=$ac_optarg ;;
1434
1435   -target | --target | --targe | --targ | --tar | --ta | --t)
1436     ac_prev=target_alias ;;
1437   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1438     target_alias=$ac_optarg ;;
1439
1440   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1441     verbose=yes ;;
1442
1443   -version | --version | --versio | --versi | --vers | -V)
1444     ac_init_version=: ;;
1445
1446   -with-* | --with-*)
1447     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1448     # Reject names that are not valid shell variable names.
1449     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450       as_fn_error $? "invalid package name: $ac_useropt"
1451     ac_useropt_orig=$ac_useropt
1452     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1453     case $ac_user_opts in
1454       *"
1455 "with_$ac_useropt"
1456 "*) ;;
1457       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1458          ac_unrecognized_sep=', ';;
1459     esac
1460     eval with_$ac_useropt=\$ac_optarg ;;
1461
1462   -without-* | --without-*)
1463     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1464     # Reject names that are not valid shell variable names.
1465     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1466       as_fn_error $? "invalid package name: $ac_useropt"
1467     ac_useropt_orig=$ac_useropt
1468     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1469     case $ac_user_opts in
1470       *"
1471 "with_$ac_useropt"
1472 "*) ;;
1473       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1474          ac_unrecognized_sep=', ';;
1475     esac
1476     eval with_$ac_useropt=no ;;
1477
1478   --x)
1479     # Obsolete; use --with-x.
1480     with_x=yes ;;
1481
1482   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1483   | --x-incl | --x-inc | --x-in | --x-i)
1484     ac_prev=x_includes ;;
1485   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1486   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1487     x_includes=$ac_optarg ;;
1488
1489   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1490   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1491     ac_prev=x_libraries ;;
1492   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1493   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1494     x_libraries=$ac_optarg ;;
1495
1496   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1497 Try \`$0 --help' for more information"
1498     ;;
1499
1500   *=*)
1501     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1502     # Reject names that are not valid shell variable names.
1503     case $ac_envvar in #(
1504       '' | [0-9]* | *[!_$as_cr_alnum]* )
1505       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1506     esac
1507     eval $ac_envvar=\$ac_optarg
1508     export $ac_envvar ;;
1509
1510   *)
1511     # FIXME: should be removed in autoconf 3.0.
1512     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1513     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1514       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1515     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1516     ;;
1517
1518   esac
1519 done
1520
1521 if test -n "$ac_prev"; then
1522   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1523   as_fn_error $? "missing argument to $ac_option"
1524 fi
1525
1526 if test -n "$ac_unrecognized_opts"; then
1527   case $enable_option_checking in
1528     no) ;;
1529     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1530     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1531   esac
1532 fi
1533
1534 # Check all directory arguments for consistency.
1535 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1536                 datadir sysconfdir sharedstatedir localstatedir includedir \
1537                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1538                 libdir localedir mandir
1539 do
1540   eval ac_val=\$$ac_var
1541   # Remove trailing slashes.
1542   case $ac_val in
1543     */ )
1544       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1545       eval $ac_var=\$ac_val;;
1546   esac
1547   # Be sure to have absolute directory names.
1548   case $ac_val in
1549     [\\/$]* | ?:[\\/]* )  continue;;
1550     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1551   esac
1552   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1553 done
1554
1555 # There might be people who depend on the old broken behavior: `$host'
1556 # used to hold the argument of --host etc.
1557 # FIXME: To remove some day.
1558 build=$build_alias
1559 host=$host_alias
1560 target=$target_alias
1561
1562 # FIXME: To remove some day.
1563 if test "x$host_alias" != x; then
1564   if test "x$build_alias" = x; then
1565     cross_compiling=maybe
1566   elif test "x$build_alias" != "x$host_alias"; then
1567     cross_compiling=yes
1568   fi
1569 fi
1570
1571 ac_tool_prefix=
1572 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1573
1574 test "$silent" = yes && exec 6>/dev/null
1575
1576
1577 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1578 ac_ls_di=`ls -di .` &&
1579 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1580   as_fn_error $? "working directory cannot be determined"
1581 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1582   as_fn_error $? "pwd does not report name of working directory"
1583
1584
1585 # Find the source files, if location was not specified.
1586 if test -z "$srcdir"; then
1587   ac_srcdir_defaulted=yes
1588   # Try the directory containing this script, then the parent directory.
1589   ac_confdir=`$as_dirname -- "$as_myself" ||
1590 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1591          X"$as_myself" : 'X\(//\)[^/]' \| \
1592          X"$as_myself" : 'X\(//\)$' \| \
1593          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1594 $as_echo X"$as_myself" |
1595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1596             s//\1/
1597             q
1598           }
1599           /^X\(\/\/\)[^/].*/{
1600             s//\1/
1601             q
1602           }
1603           /^X\(\/\/\)$/{
1604             s//\1/
1605             q
1606           }
1607           /^X\(\/\).*/{
1608             s//\1/
1609             q
1610           }
1611           s/.*/./; q'`
1612   srcdir=$ac_confdir
1613   if test ! -r "$srcdir/$ac_unique_file"; then
1614     srcdir=..
1615   fi
1616 else
1617   ac_srcdir_defaulted=no
1618 fi
1619 if test ! -r "$srcdir/$ac_unique_file"; then
1620   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1621   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1622 fi
1623 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1624 ac_abs_confdir=`(
1625         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1626         pwd)`
1627 # When building in place, set srcdir=.
1628 if test "$ac_abs_confdir" = "$ac_pwd"; then
1629   srcdir=.
1630 fi
1631 # Remove unnecessary trailing slashes from srcdir.
1632 # Double slashes in file names in object file debugging info
1633 # mess up M-x gdb in Emacs.
1634 case $srcdir in
1635 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1636 esac
1637 for ac_var in $ac_precious_vars; do
1638   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1639   eval ac_env_${ac_var}_value=\$${ac_var}
1640   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1641   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1642 done
1643
1644 #
1645 # Report the --help message.
1646 #
1647 if test "$ac_init_help" = "long"; then
1648   # Omit some internal or obsolete options to make the list less imposing.
1649   # This message is too long to be a string in the A/UX 3.1 sh.
1650   cat <<_ACEOF
1651 \`configure' configures cairo 1.12.16 to adapt to many kinds of systems.
1652
1653 Usage: $0 [OPTION]... [VAR=VALUE]...
1654
1655 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1656 VAR=VALUE.  See below for descriptions of some of the useful variables.
1657
1658 Defaults for the options are specified in brackets.
1659
1660 Configuration:
1661   -h, --help              display this help and exit
1662       --help=short        display options specific to this package
1663       --help=recursive    display the short help of all the included packages
1664   -V, --version           display version information and exit
1665   -q, --quiet, --silent   do not print \`checking ...' messages
1666       --cache-file=FILE   cache test results in FILE [disabled]
1667   -C, --config-cache      alias for \`--cache-file=config.cache'
1668   -n, --no-create         do not create output files
1669       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1670
1671 Installation directories:
1672   --prefix=PREFIX         install architecture-independent files in PREFIX
1673                           [$ac_default_prefix]
1674   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1675                           [PREFIX]
1676
1677 By default, \`make install' will install all the files in
1678 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1679 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1680 for instance \`--prefix=\$HOME'.
1681
1682 For better control, use the options below.
1683
1684 Fine tuning of the installation directories:
1685   --bindir=DIR            user executables [EPREFIX/bin]
1686   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1687   --libexecdir=DIR        program executables [EPREFIX/libexec]
1688   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1689   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1690   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1691   --libdir=DIR            object code libraries [EPREFIX/lib]
1692   --includedir=DIR        C header files [PREFIX/include]
1693   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1694   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1695   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1696   --infodir=DIR           info documentation [DATAROOTDIR/info]
1697   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1698   --mandir=DIR            man documentation [DATAROOTDIR/man]
1699   --docdir=DIR            documentation root [DATAROOTDIR/doc/cairo]
1700   --htmldir=DIR           html documentation [DOCDIR]
1701   --dvidir=DIR            dvi documentation [DOCDIR]
1702   --pdfdir=DIR            pdf documentation [DOCDIR]
1703   --psdir=DIR             ps documentation [DOCDIR]
1704 _ACEOF
1705
1706   cat <<\_ACEOF
1707
1708 Program names:
1709   --program-prefix=PREFIX            prepend PREFIX to installed program names
1710   --program-suffix=SUFFIX            append SUFFIX to installed program names
1711   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1712
1713 X features:
1714   --x-includes=DIR    X include files are in DIR
1715   --x-libraries=DIR   X library files are in DIR
1716
1717 System types:
1718   --build=BUILD     configure for building on BUILD [guessed]
1719   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1720 _ACEOF
1721 fi
1722
1723 if test -n "$ac_init_help"; then
1724   case $ac_init_help in
1725      short | recursive ) echo "Configuration of cairo 1.12.16:";;
1726    esac
1727   cat <<\_ACEOF
1728
1729 Optional Features:
1730   --disable-option-checking  ignore unrecognized --enable/--with options
1731   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1732   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1733   --disable-dependency-tracking  speeds up one-time build
1734   --enable-dependency-tracking   do not reject slow dependency extractors
1735   --enable-silent-rules          less verbose build output (undo: `make V=1')
1736   --disable-silent-rules         verbose build output (undo: `make V=0')
1737   --enable-shared[=PKGS]  build shared libraries [default=yes]
1738   --enable-static[=PKGS]  build static libraries [default=yes]
1739   --enable-fast-install[=PKGS]
1740                           optimize for fast installation [default=yes]
1741   --disable-libtool-lock  avoid locking (might break parallel builds)
1742   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1743   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1744   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1745   --disable-largefile     omit support for large files
1746   --disable-atomic        disable use of native atomic operations
1747   --enable-gcov           Enable gcov
1748   --disable-valgrind      Disable valgrind support
1749   --enable-xlib=[no/auto/yes]
1750                           Enable cairo's Xlib surface backend feature
1751                           [default=auto]
1752   --enable-xlib-xrender=[no/auto/yes]
1753                           Enable cairo's Xlib Xrender surface backend feature
1754                           [default=auto]
1755   --enable-xcb=[no/auto/yes]
1756                           Enable cairo's XCB surface backend feature
1757                           [default=auto]
1758   --enable-xlib-xcb=[no/auto/yes]
1759                           Enable cairo's Xlib/XCB functions feature
1760                           [default=no]
1761   --enable-xcb-shm=[no/auto/yes]
1762                           Enable cairo's XCB/SHM functions feature
1763                           [default=auto]
1764   --enable-qt=[no/auto/yes]
1765                           Enable cairo's Qt surface backend feature
1766                           [default=no]
1767   --enable-quartz=[no/auto/yes]
1768                           Enable cairo's Quartz surface backend feature
1769                           [default=auto]
1770   --enable-quartz-font=[no/auto/yes]
1771                           Enable cairo's Quartz font backend feature
1772                           [default=auto]
1773   --enable-quartz-image=[no/auto/yes]
1774                           Enable cairo's Quartz Image surface backend feature
1775                           [default=no]
1776   --enable-win32=[no/auto/yes]
1777                           Enable cairo's Microsoft Windows surface backend
1778                           feature [default=auto]
1779   --enable-win32-font=[no/auto/yes]
1780                           Enable cairo's Microsoft Windows font backend
1781                           feature [default=auto]
1782   --enable-skia=[no/auto/yes]
1783                           Enable cairo's Skia surface backend feature
1784                           [default=no]
1785   --enable-os2=[no/auto/yes]
1786                           Enable cairo's OS/2 surface backend feature
1787                           [default=no]
1788   --enable-beos=[no/auto/yes]
1789                           Enable cairo's BeOS/Zeta surface backend feature
1790                           [default=no]
1791   --enable-drm=[no/auto/yes]
1792                           Enable cairo's DRM surface backend feature
1793                           [default=no]
1794   --enable-gallium=[no/auto/yes]
1795                           Enable cairo's Gallium3D surface backend feature
1796                           [default=no]
1797   --enable-png=[no/auto/yes]
1798                           Enable cairo's PNG functions feature [default=yes]
1799   --enable-gl=[no/auto/yes]
1800                           Enable cairo's OpenGL surface backend feature
1801                           [default=no]
1802   --enable-glesv2=[no/auto/yes]
1803                           Enable cairo's OpenGLESv2 surface backend feature
1804                           [default=no]
1805   --enable-cogl=[no/auto/yes]
1806                           Enable cairo's Cogl surface backend feature
1807                           [default=no]
1808   --enable-directfb=[no/auto/yes]
1809                           Enable cairo's directfb surface backend feature
1810                           [default=no]
1811   --enable-vg=[no/auto/yes]
1812                           Enable cairo's OpenVG surface backend feature
1813                           [default=no]
1814   --enable-egl=[no/auto/yes]
1815                           Enable cairo's EGL functions feature [default=auto]
1816   --enable-glx=[no/auto/yes]
1817                           Enable cairo's GLX functions feature [default=auto]
1818   --enable-wgl=[no/auto/yes]
1819                           Enable cairo's WGL functions feature [default=auto]
1820   --enable-script=[no/auto/yes]
1821                           Enable cairo's script surface backend feature
1822                           [default=yes]
1823   --enable-ft=[no/auto/yes]
1824                           Enable cairo's FreeType font backend feature
1825                           [default=auto]
1826   --enable-fc=[no/auto/yes]
1827                           Enable cairo's Fontconfig font backend feature
1828                           [default=auto]
1829   --enable-ps=[no/auto/yes]
1830                           Enable cairo's PostScript surface backend feature
1831                           [default=yes]
1832   --enable-pdf=[no/auto/yes]
1833                           Enable cairo's PDF surface backend feature
1834                           [default=yes]
1835   --enable-svg=[no/auto/yes]
1836                           Enable cairo's SVG surface backend feature
1837                           [default=yes]
1838   --enable-test-surfaces=[no/auto/yes]
1839                           Enable cairo's test surfaces feature [default=no]
1840   --enable-tee=[no/auto/yes]
1841                           Enable cairo's tee surface backend feature
1842                           [default=no]
1843   --enable-xml=[no/auto/yes]
1844                           Enable cairo's xml surface backend feature
1845                           [default=no]
1846   --enable-pthread=[no/auto/yes]
1847                           Enable cairo's pthread feature [default=auto]
1848   --enable-gobject=[no/auto/yes]
1849                           Enable cairo's gobject functions feature
1850                           [default=auto]
1851   --enable-full-testing   Sets the test suite to perform full testing by
1852                           default, which will dramatically slow down make
1853                           check, but is a *requirement* before release.
1854   --enable-trace=[no/auto/yes]
1855                           Enable cairo's cairo-trace feature [default=auto]
1856   --enable-interpreter=[no/auto/yes]
1857                           Enable cairo's cairo-script-interpreter feature
1858                           [default=yes]
1859   --enable-symbol-lookup=[no/auto/yes]
1860                           Enable cairo's symbol-lookup feature [default=auto]
1861   --disable-some-floating-point
1862                           Disable certain code paths that rely heavily on
1863                           double precision floating-point calculation. This
1864                           option can improve performance on systems without a
1865                           double precision floating-point unit, but might
1866                           degrade performance on those that do.
1867
1868 Optional Packages:
1869   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1870   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1871   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1872                           both]
1873   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1874   --with-sysroot=DIR Search for dependent libraries within DIR
1875                         (or the compiler's sysroot if not specified).
1876   --with-html-dir=PATH    path to installed docs
1877   --with-x                use the X Window System
1878   --with-skia=/path/to/skia
1879                           directory to find compiled skia sources
1880   --with-skia-build=(Release|Debug)
1881                               build of skia to link with, default is Release
1882
1883   --with-gallium=/path/to/mesa
1884                           directory to find gallium enabled mesa
1885
1886 Some influential environment variables:
1887   CC          C compiler command
1888   CFLAGS      C compiler flags
1889   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1890               nonstandard directory <lib dir>
1891   LIBS        libraries to pass to the linker, e.g. -l<library>
1892   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1893               you have headers in a nonstandard directory <include dir>
1894   CPP         C preprocessor
1895   PKG_CONFIG  path to pkg-config utility
1896   GTKDOC_DEPS_CFLAGS
1897               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1898   GTKDOC_DEPS_LIBS
1899               linker flags for GTKDOC_DEPS, overriding pkg-config
1900   CXX         C++ compiler command
1901   CXXFLAGS    C++ compiler flags
1902   CXXCPP      C++ preprocessor
1903   VALGRIND_CFLAGS
1904               C compiler flags for VALGRIND, overriding pkg-config
1905   VALGRIND_LIBS
1906               linker flags for VALGRIND, overriding pkg-config
1907   xlib_CFLAGS C compiler flags for xlib, overriding pkg-config
1908   xlib_LIBS   linker flags for xlib, overriding pkg-config
1909   XMKMF       Path to xmkmf, Makefile generator for X Window System
1910   xlib_xrender_CFLAGS
1911               C compiler flags for xlib_xrender, overriding pkg-config
1912   xlib_xrender_LIBS
1913               linker flags for xlib_xrender, overriding pkg-config
1914   xcb_CFLAGS  C compiler flags for xcb, overriding pkg-config
1915   xcb_LIBS    linker flags for xcb, overriding pkg-config
1916   xlib_xcb_CFLAGS
1917               C compiler flags for xlib_xcb, overriding pkg-config
1918   xlib_xcb_LIBS
1919               linker flags for xlib_xcb, overriding pkg-config
1920   xcb_shm_CFLAGS
1921               C compiler flags for xcb_shm, overriding pkg-config
1922   xcb_shm_LIBS
1923               linker flags for xcb_shm, overriding pkg-config
1924   qt_CFLAGS   C compiler flags for qt, overriding pkg-config
1925   qt_LIBS     linker flags for qt, overriding pkg-config
1926   drm_CFLAGS  C compiler flags for drm, overriding pkg-config
1927   drm_LIBS    linker flags for drm, overriding pkg-config
1928   png_REQUIRES
1929               module name for libpng to search for using pkg-config
1930   png_CFLAGS  C compiler flags for png, overriding pkg-config
1931   png_LIBS    linker flags for png, overriding pkg-config
1932   gl_CFLAGS   C compiler flags for gl, overriding pkg-config
1933   gl_LIBS     linker flags for gl, overriding pkg-config
1934   glesv2_CFLAGS
1935               C compiler flags for glesv2, overriding pkg-config
1936   glesv2_LIBS linker flags for glesv2, overriding pkg-config
1937   cogl_CFLAGS C compiler flags for cogl, overriding pkg-config
1938   cogl_LIBS   linker flags for cogl, overriding pkg-config
1939   directfb_CFLAGS
1940               C compiler flags for directfb, overriding pkg-config
1941   directfb_LIBS
1942               linker flags for directfb, overriding pkg-config
1943   egl_CFLAGS  C compiler flags for egl, overriding pkg-config
1944   egl_LIBS    linker flags for egl, overriding pkg-config
1945   FREETYPE_CFLAGS
1946               C compiler flags for FREETYPE, overriding pkg-config
1947   FREETYPE_LIBS
1948               linker flags for FREETYPE, overriding pkg-config
1949   FONTCONFIG_CFLAGS
1950               C compiler flags for FONTCONFIG, overriding pkg-config
1951   FONTCONFIG_LIBS
1952               linker flags for FONTCONFIG, overriding pkg-config
1953   LIBSPECTRE_CFLAGS
1954               C compiler flags for LIBSPECTRE, overriding pkg-config
1955   LIBSPECTRE_LIBS
1956               linker flags for LIBSPECTRE, overriding pkg-config
1957   POPPLER_CFLAGS
1958               C compiler flags for POPPLER, overriding pkg-config
1959   POPPLER_LIBS
1960               linker flags for POPPLER, overriding pkg-config
1961   LIBRSVG_CFLAGS
1962               C compiler flags for LIBRSVG, overriding pkg-config
1963   LIBRSVG_LIBS
1964               linker flags for LIBRSVG, overriding pkg-config
1965   pixman_CFLAGS
1966               C compiler flags for pixman, overriding pkg-config
1967   pixman_LIBS linker flags for pixman, overriding pkg-config
1968   GOBJECT_CFLAGS
1969               C compiler flags for GOBJECT, overriding pkg-config
1970   GOBJECT_LIBS
1971               linker flags for GOBJECT, overriding pkg-config
1972   glib_CFLAGS C compiler flags for glib, overriding pkg-config
1973   glib_LIBS   linker flags for glib, overriding pkg-config
1974   gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config
1975   gtk_LIBS    linker flags for gtk, overriding pkg-config
1976
1977 Use these variables to override the choices made by `configure' or to help
1978 it to find libraries and programs with nonstandard names/locations.
1979
1980 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
1981 cairo home page: <http://cairographics.org/>.
1982 _ACEOF
1983 ac_status=$?
1984 fi
1985
1986 if test "$ac_init_help" = "recursive"; then
1987   # If there are subdirs, report their specific --help.
1988   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1989     test -d "$ac_dir" ||
1990       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1991       continue
1992     ac_builddir=.
1993
1994 case "$ac_dir" in
1995 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1996 *)
1997   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1998   # A ".." for each directory in $ac_dir_suffix.
1999   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2000   case $ac_top_builddir_sub in
2001   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2002   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2003   esac ;;
2004 esac
2005 ac_abs_top_builddir=$ac_pwd
2006 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2007 # for backward compatibility:
2008 ac_top_builddir=$ac_top_build_prefix
2009
2010 case $srcdir in
2011   .)  # We are building in place.
2012     ac_srcdir=.
2013     ac_top_srcdir=$ac_top_builddir_sub
2014     ac_abs_top_srcdir=$ac_pwd ;;
2015   [\\/]* | ?:[\\/]* )  # Absolute name.
2016     ac_srcdir=$srcdir$ac_dir_suffix;
2017     ac_top_srcdir=$srcdir
2018     ac_abs_top_srcdir=$srcdir ;;
2019   *) # Relative name.
2020     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2021     ac_top_srcdir=$ac_top_build_prefix$srcdir
2022     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2023 esac
2024 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2025
2026     cd "$ac_dir" || { ac_status=$?; continue; }
2027     # Check for guested configure.
2028     if test -f "$ac_srcdir/configure.gnu"; then
2029       echo &&
2030       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2031     elif test -f "$ac_srcdir/configure"; then
2032       echo &&
2033       $SHELL "$ac_srcdir/configure" --help=recursive
2034     else
2035       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2036     fi || ac_status=$?
2037     cd "$ac_pwd" || { ac_status=$?; break; }
2038   done
2039 fi
2040
2041 test -n "$ac_init_help" && exit $ac_status
2042 if $ac_init_version; then
2043   cat <<\_ACEOF
2044 cairo configure 1.12.16
2045 generated by GNU Autoconf 2.69
2046
2047 Copyright (C) 2012 Free Software Foundation, Inc.
2048 This configure script is free software; the Free Software Foundation
2049 gives unlimited permission to copy, distribute and modify it.
2050 _ACEOF
2051   exit
2052 fi
2053
2054 ## ------------------------ ##
2055 ## Autoconf initialization. ##
2056 ## ------------------------ ##
2057
2058 # ac_fn_c_try_compile LINENO
2059 # --------------------------
2060 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2061 ac_fn_c_try_compile ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   rm -f conftest.$ac_objext
2065   if { { ac_try="$ac_compile"
2066 case "(($ac_try" in
2067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068   *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072   (eval "$ac_compile") 2>conftest.err
2073   ac_status=$?
2074   if test -s conftest.err; then
2075     grep -v '^ *+' conftest.err >conftest.er1
2076     cat conftest.er1 >&5
2077     mv -f conftest.er1 conftest.err
2078   fi
2079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080   test $ac_status = 0; } && {
2081          test -z "$ac_c_werror_flag" ||
2082          test ! -s conftest.err
2083        } && test -s conftest.$ac_objext; then :
2084   ac_retval=0
2085 else
2086   $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089         ac_retval=1
2090 fi
2091   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092   as_fn_set_status $ac_retval
2093
2094 } # ac_fn_c_try_compile
2095
2096 # ac_fn_c_try_cpp LINENO
2097 # ----------------------
2098 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_c_try_cpp ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110   ac_status=$?
2111   if test -s conftest.err; then
2112     grep -v '^ *+' conftest.err >conftest.er1
2113     cat conftest.er1 >&5
2114     mv -f conftest.er1 conftest.err
2115   fi
2116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117   test $ac_status = 0; } > conftest.i && {
2118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2119          test ! -s conftest.err
2120        }; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126     ac_retval=1
2127 fi
2128   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129   as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_cpp
2132
2133 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2134 # -------------------------------------------------------
2135 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2136 # the include files in INCLUDES and setting the cache variable VAR
2137 # accordingly.
2138 ac_fn_c_check_header_mongrel ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   if eval \${$3+:} false; then :
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if eval \${$3+:} false; then :
2145   $as_echo_n "(cached) " >&6
2146 fi
2147 eval ac_res=\$$3
2148                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 else
2151   # Is the header compilable?
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2153 $as_echo_n "checking $2 usability... " >&6; }
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h.  */
2156 $4
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160   ac_header_compiler=yes
2161 else
2162   ac_header_compiler=no
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2166 $as_echo "$ac_header_compiler" >&6; }
2167
2168 # Is the header present?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2170 $as_echo_n "checking $2 presence... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h.  */
2173 #include <$2>
2174 _ACEOF
2175 if ac_fn_c_try_cpp "$LINENO"; then :
2176   ac_header_preproc=yes
2177 else
2178   ac_header_preproc=no
2179 fi
2180 rm -f conftest.err conftest.i conftest.$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2182 $as_echo "$ac_header_preproc" >&6; }
2183
2184 # So?  What about this header?
2185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2186   yes:no: )
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2188 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2190 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2191     ;;
2192   no:yes:* )
2193     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2194 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2196 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2198 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2200 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2202 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2203 ( $as_echo "## ---------------------------------------------------------------------- ##
2204 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=cairo ##
2205 ## ---------------------------------------------------------------------- ##"
2206      ) | sed "s/^/$as_me: WARNING:     /" >&2
2207     ;;
2208 esac
2209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212   $as_echo_n "(cached) " >&6
2213 else
2214   eval "$3=\$ac_header_compiler"
2215 fi
2216 eval ac_res=\$$3
2217                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 fi
2220   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222 } # ac_fn_c_check_header_mongrel
2223
2224 # ac_fn_c_try_run LINENO
2225 # ----------------------
2226 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2227 # that executables *can* be run.
2228 ac_fn_c_try_run ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   if { { ac_try="$ac_link"
2232 case "(($ac_try" in
2233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234   *) ac_try_echo=$ac_try;;
2235 esac
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238   (eval "$ac_link") 2>&5
2239   ac_status=$?
2240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2242   { { case "(($ac_try" in
2243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244   *) ac_try_echo=$ac_try;;
2245 esac
2246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2247 $as_echo "$ac_try_echo"; } >&5
2248   (eval "$ac_try") 2>&5
2249   ac_status=$?
2250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251   test $ac_status = 0; }; }; then :
2252   ac_retval=0
2253 else
2254   $as_echo "$as_me: program exited with status $ac_status" >&5
2255        $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258        ac_retval=$ac_status
2259 fi
2260   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2261   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262   as_fn_set_status $ac_retval
2263
2264 } # ac_fn_c_try_run
2265
2266 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2267 # -------------------------------------------------------
2268 # Tests whether HEADER exists and can be compiled using the include files in
2269 # INCLUDES, setting the cache variable VAR accordingly.
2270 ac_fn_c_check_header_compile ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if eval \${$3+:} false; then :
2276   $as_echo_n "(cached) " >&6
2277 else
2278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 #include <$2>
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   eval "$3=yes"
2285 else
2286   eval "$3=no"
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295 } # ac_fn_c_check_header_compile
2296
2297 # ac_fn_c_try_link LINENO
2298 # -----------------------
2299 # Try to link conftest.$ac_ext, and return whether this succeeded.
2300 ac_fn_c_try_link ()
2301 {
2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303   rm -f conftest.$ac_objext conftest$ac_exeext
2304   if { { ac_try="$ac_link"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311   (eval "$ac_link") 2>conftest.err
2312   ac_status=$?
2313   if test -s conftest.err; then
2314     grep -v '^ *+' conftest.err >conftest.er1
2315     cat conftest.er1 >&5
2316     mv -f conftest.er1 conftest.err
2317   fi
2318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319   test $ac_status = 0; } && {
2320          test -z "$ac_c_werror_flag" ||
2321          test ! -s conftest.err
2322        } && test -s conftest$ac_exeext && {
2323          test "$cross_compiling" = yes ||
2324          test -x conftest$ac_exeext
2325        }; then :
2326   ac_retval=0
2327 else
2328   $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331         ac_retval=1
2332 fi
2333   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2334   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2335   # interfere with the next link command; also delete a directory that is
2336   # left behind by Apple's compiler.  We do this before executing the actions.
2337   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2338   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339   as_fn_set_status $ac_retval
2340
2341 } # ac_fn_c_try_link
2342
2343 # ac_fn_c_check_func LINENO FUNC VAR
2344 # ----------------------------------
2345 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2346 ac_fn_c_check_func ()
2347 {
2348   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if eval \${$3+:} false; then :
2352   $as_echo_n "(cached) " >&6
2353 else
2354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2358 #define $2 innocuous_$2
2359
2360 /* System header to define __stub macros and hopefully few prototypes,
2361     which can conflict with char $2 (); below.
2362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2363     <limits.h> exists even on freestanding compilers.  */
2364
2365 #ifdef __STDC__
2366 # include <limits.h>
2367 #else
2368 # include <assert.h>
2369 #endif
2370
2371 #undef $2
2372
2373 /* Override any GCC internal prototype to avoid an error.
2374    Use char because int might match the return type of a GCC
2375    builtin and then its argument prototype would still apply.  */
2376 #ifdef __cplusplus
2377 extern "C"
2378 #endif
2379 char $2 ();
2380 /* The GNU C library defines this for functions which it implements
2381     to always fail with ENOSYS.  Some functions are actually named
2382     something starting with __ and the normal name is an alias.  */
2383 #if defined __stub_$2 || defined __stub___$2
2384 choke me
2385 #endif
2386
2387 int
2388 main ()
2389 {
2390 return $2 ();
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_link "$LINENO"; then :
2396   eval "$3=yes"
2397 else
2398   eval "$3=no"
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext \
2401     conftest$ac_exeext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407
2408 } # ac_fn_c_check_func
2409
2410 # ac_fn_cxx_try_compile LINENO
2411 # ----------------------------
2412 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_cxx_try_compile ()
2414 {
2415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416   rm -f conftest.$ac_objext
2417   if { { ac_try="$ac_compile"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424   (eval "$ac_compile") 2>conftest.err
2425   ac_status=$?
2426   if test -s conftest.err; then
2427     grep -v '^ *+' conftest.err >conftest.er1
2428     cat conftest.er1 >&5
2429     mv -f conftest.er1 conftest.err
2430   fi
2431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432   test $ac_status = 0; } && {
2433          test -z "$ac_cxx_werror_flag" ||
2434          test ! -s conftest.err
2435        } && test -s conftest.$ac_objext; then :
2436   ac_retval=0
2437 else
2438   $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441         ac_retval=1
2442 fi
2443   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444   as_fn_set_status $ac_retval
2445
2446 } # ac_fn_cxx_try_compile
2447
2448 # ac_fn_cxx_try_cpp LINENO
2449 # ------------------------
2450 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2451 ac_fn_cxx_try_cpp ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   if { { ac_try="$ac_cpp conftest.$ac_ext"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2462   ac_status=$?
2463   if test -s conftest.err; then
2464     grep -v '^ *+' conftest.err >conftest.er1
2465     cat conftest.er1 >&5
2466     mv -f conftest.er1 conftest.err
2467   fi
2468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469   test $ac_status = 0; } > conftest.i && {
2470          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2471          test ! -s conftest.err
2472        }; then :
2473   ac_retval=0
2474 else
2475   $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477
2478     ac_retval=1
2479 fi
2480   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481   as_fn_set_status $ac_retval
2482
2483 } # ac_fn_cxx_try_cpp
2484
2485 # ac_fn_cxx_try_link LINENO
2486 # -------------------------
2487 # Try to link conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_link ()
2489 {
2490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491   rm -f conftest.$ac_objext conftest$ac_exeext
2492   if { { ac_try="$ac_link"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499   (eval "$ac_link") 2>conftest.err
2500   ac_status=$?
2501   if test -s conftest.err; then
2502     grep -v '^ *+' conftest.err >conftest.er1
2503     cat conftest.er1 >&5
2504     mv -f conftest.er1 conftest.err
2505   fi
2506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507   test $ac_status = 0; } && {
2508          test -z "$ac_cxx_werror_flag" ||
2509          test ! -s conftest.err
2510        } && test -s conftest$ac_exeext && {
2511          test "$cross_compiling" = yes ||
2512          test -x conftest$ac_exeext
2513        }; then :
2514   ac_retval=0
2515 else
2516   $as_echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         ac_retval=1
2520 fi
2521   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2522   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2523   # interfere with the next link command; also delete a directory that is
2524   # left behind by Apple's compiler.  We do this before executing the actions.
2525   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2526   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527   as_fn_set_status $ac_retval
2528
2529 } # ac_fn_cxx_try_link
2530
2531 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2532 # --------------------------------------------
2533 # Tries to find the compile-time value of EXPR in a program that includes
2534 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2535 # computed
2536 ac_fn_c_compute_int ()
2537 {
2538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539   if test "$cross_compiling" = yes; then
2540     # Depending upon the size, compute the lo and hi bounds.
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h.  */
2543 $4
2544 int
2545 main ()
2546 {
2547 static int test_array [1 - 2 * !(($2) >= 0)];
2548 test_array [0] = 0;
2549 return test_array [0];
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556   ac_lo=0 ac_mid=0
2557   while :; do
2558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2560 $4
2561 int
2562 main ()
2563 {
2564 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2565 test_array [0] = 0;
2566 return test_array [0];
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573   ac_hi=$ac_mid; break
2574 else
2575   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2576                         if test $ac_lo -le $ac_mid; then
2577                           ac_lo= ac_hi=
2578                           break
2579                         fi
2580                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583   done
2584 else
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $4
2588 int
2589 main ()
2590 {
2591 static int test_array [1 - 2 * !(($2) < 0)];
2592 test_array [0] = 0;
2593 return test_array [0];
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_c_try_compile "$LINENO"; then :
2600   ac_hi=-1 ac_mid=-1
2601   while :; do
2602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h.  */
2604 $4
2605 int
2606 main ()
2607 {
2608 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2609 test_array [0] = 0;
2610 return test_array [0];
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 if ac_fn_c_try_compile "$LINENO"; then :
2617   ac_lo=$ac_mid; break
2618 else
2619   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2620                         if test $ac_mid -le $ac_hi; then
2621                           ac_lo= ac_hi=
2622                           break
2623                         fi
2624                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627   done
2628 else
2629   ac_lo= ac_hi=
2630 fi
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 # Binary search between lo and hi bounds.
2635 while test "x$ac_lo" != "x$ac_hi"; do
2636   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $4
2640 int
2641 main ()
2642 {
2643 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2644 test_array [0] = 0;
2645 return test_array [0];
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652   ac_hi=$ac_mid
2653 else
2654   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 done
2658 case $ac_lo in #((
2659 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2660 '') ac_retval=1 ;;
2661 esac
2662   else
2663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h.  */
2665 $4
2666 static long int longval () { return $2; }
2667 static unsigned long int ulongval () { return $2; }
2668 #include <stdio.h>
2669 #include <stdlib.h>
2670 int
2671 main ()
2672 {
2673
2674   FILE *f = fopen ("conftest.val", "w");
2675   if (! f)
2676     return 1;
2677   if (($2) < 0)
2678     {
2679       long int i = longval ();
2680       if (i != ($2))
2681         return 1;
2682       fprintf (f, "%ld", i);
2683     }
2684   else
2685     {
2686       unsigned long int i = ulongval ();
2687       if (i != ($2))
2688         return 1;
2689       fprintf (f, "%lu", i);
2690     }
2691   /* Do not output a trailing newline, as this causes \r\n confusion
2692      on some platforms.  */
2693   return ferror (f) || fclose (f) != 0;
2694
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_run "$LINENO"; then :
2700   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2701 else
2702   ac_retval=1
2703 fi
2704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2705   conftest.$ac_objext conftest.beam conftest.$ac_ext
2706 rm -f conftest.val
2707
2708   fi
2709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710   as_fn_set_status $ac_retval
2711
2712 } # ac_fn_c_compute_int
2713
2714 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2715 # -------------------------------------------
2716 # Tests whether TYPE exists after having included INCLUDES, setting cache
2717 # variable VAR accordingly.
2718 ac_fn_c_check_type ()
2719 {
2720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   eval "$3=no"
2727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h.  */
2729 $4
2730 int
2731 main ()
2732 {
2733 if (sizeof ($2))
2734          return 0;
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 if ac_fn_c_try_compile "$LINENO"; then :
2740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h.  */
2742 $4
2743 int
2744 main ()
2745 {
2746 if (sizeof (($2)))
2747             return 0;
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753
2754 else
2755   eval "$3=yes"
2756 fi
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
2766 } # ac_fn_c_check_type
2767 cat >config.log <<_ACEOF
2768 This file contains any messages produced by compilers while
2769 running configure, to aid debugging if configure makes a mistake.
2770
2771 It was created by cairo $as_me 1.12.16, which was
2772 generated by GNU Autoconf 2.69.  Invocation command line was
2773
2774   $ $0 $@
2775
2776 _ACEOF
2777 exec 5>>config.log
2778 {
2779 cat <<_ASUNAME
2780 ## --------- ##
2781 ## Platform. ##
2782 ## --------- ##
2783
2784 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2789
2790 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2792
2793 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2794 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2795 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2797 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2798 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2799 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2800
2801 _ASUNAME
2802
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     $as_echo "PATH: $as_dir"
2809   done
2810 IFS=$as_save_IFS
2811
2812 } >&5
2813
2814 cat >&5 <<_ACEOF
2815
2816
2817 ## ----------- ##
2818 ## Core tests. ##
2819 ## ----------- ##
2820
2821 _ACEOF
2822
2823
2824 # Keep a trace of the command line.
2825 # Strip out --no-create and --no-recursion so they do not pile up.
2826 # Strip out --silent because we don't want to record it for future runs.
2827 # Also quote any args containing shell meta-characters.
2828 # Make two passes to allow for proper duplicate-argument suppression.
2829 ac_configure_args=
2830 ac_configure_args0=
2831 ac_configure_args1=
2832 ac_must_keep_next=false
2833 for ac_pass in 1 2
2834 do
2835   for ac_arg
2836   do
2837     case $ac_arg in
2838     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840     | -silent | --silent | --silen | --sile | --sil)
2841       continue ;;
2842     *\'*)
2843       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2844     esac
2845     case $ac_pass in
2846     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2847     2)
2848       as_fn_append ac_configure_args1 " '$ac_arg'"
2849       if test $ac_must_keep_next = true; then
2850         ac_must_keep_next=false # Got value, back to normal.
2851       else
2852         case $ac_arg in
2853           *=* | --config-cache | -C | -disable-* | --disable-* \
2854           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856           | -with-* | --with-* | -without-* | --without-* | --x)
2857             case "$ac_configure_args0 " in
2858               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2859             esac
2860             ;;
2861           -* ) ac_must_keep_next=true ;;
2862         esac
2863       fi
2864       as_fn_append ac_configure_args " '$ac_arg'"
2865       ;;
2866     esac
2867   done
2868 done
2869 { ac_configure_args0=; unset ac_configure_args0;}
2870 { ac_configure_args1=; unset ac_configure_args1;}
2871
2872 # When interrupted or exit'd, cleanup temporary files, and complete
2873 # config.log.  We remove comments because anyway the quotes in there
2874 # would cause problems or look ugly.
2875 # WARNING: Use '\'' to represent an apostrophe within the trap.
2876 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877 trap 'exit_status=$?
2878   # Save into config.log some information that might help in debugging.
2879   {
2880     echo
2881
2882     $as_echo "## ---------------- ##
2883 ## Cache variables. ##
2884 ## ---------------- ##"
2885     echo
2886     # The following way of writing the cache mishandles newlines in values,
2887 (
2888   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889     eval ac_val=\$$ac_var
2890     case $ac_val in #(
2891     *${as_nl}*)
2892       case $ac_var in #(
2893       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2895       esac
2896       case $ac_var in #(
2897       _ | IFS | as_nl) ;; #(
2898       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899       *) { eval $ac_var=; unset $ac_var;} ;;
2900       esac ;;
2901     esac
2902   done
2903   (set) 2>&1 |
2904     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905     *${as_nl}ac_space=\ *)
2906       sed -n \
2907         "s/'\''/'\''\\\\'\'''\''/g;
2908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2909       ;; #(
2910     *)
2911       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2912       ;;
2913     esac |
2914     sort
2915 )
2916     echo
2917
2918     $as_echo "## ----------------- ##
2919 ## Output variables. ##
2920 ## ----------------- ##"
2921     echo
2922     for ac_var in $ac_subst_vars
2923     do
2924       eval ac_val=\$$ac_var
2925       case $ac_val in
2926       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2927       esac
2928       $as_echo "$ac_var='\''$ac_val'\''"
2929     done | sort
2930     echo
2931
2932     if test -n "$ac_subst_files"; then
2933       $as_echo "## ------------------- ##
2934 ## File substitutions. ##
2935 ## ------------------- ##"
2936       echo
2937       for ac_var in $ac_subst_files
2938       do
2939         eval ac_val=\$$ac_var
2940         case $ac_val in
2941         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2942         esac
2943         $as_echo "$ac_var='\''$ac_val'\''"
2944       done | sort
2945       echo
2946     fi
2947
2948     if test -s confdefs.h; then
2949       $as_echo "## ----------- ##
2950 ## confdefs.h. ##
2951 ## ----------- ##"
2952       echo
2953       cat confdefs.h
2954       echo
2955     fi
2956     test "$ac_signal" != 0 &&
2957       $as_echo "$as_me: caught signal $ac_signal"
2958     $as_echo "$as_me: exit $exit_status"
2959   } >&5
2960   rm -f core *.core core.conftest.* &&
2961     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2962     exit $exit_status
2963 ' 0
2964 for ac_signal in 1 2 13 15; do
2965   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2966 done
2967 ac_signal=0
2968
2969 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2970 rm -f -r conftest* confdefs.h
2971
2972 $as_echo "/* confdefs.h */" > confdefs.h
2973
2974 # Predefined preprocessor variables.
2975
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE_NAME "$PACKAGE_NAME"
2978 _ACEOF
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2982 _ACEOF
2983
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2986 _ACEOF
2987
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE_STRING "$PACKAGE_STRING"
2990 _ACEOF
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2994 _ACEOF
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_URL "$PACKAGE_URL"
2998 _ACEOF
2999
3000
3001 # Let the site file select an alternate cache file if it wants to.
3002 # Prefer an explicitly selected file to automatically selected ones.
3003 ac_site_file1=NONE
3004 ac_site_file2=NONE
3005 if test -n "$CONFIG_SITE"; then
3006   # We do not want a PATH search for config.site.
3007   case $CONFIG_SITE in #((
3008     -*)  ac_site_file1=./$CONFIG_SITE;;
3009     */*) ac_site_file1=$CONFIG_SITE;;
3010     *)   ac_site_file1=./$CONFIG_SITE;;
3011   esac
3012 elif test "x$prefix" != xNONE; then
3013   ac_site_file1=$prefix/share/config.site
3014   ac_site_file2=$prefix/etc/config.site
3015 else
3016   ac_site_file1=$ac_default_prefix/share/config.site
3017   ac_site_file2=$ac_default_prefix/etc/config.site
3018 fi
3019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3020 do
3021   test "x$ac_site_file" = xNONE && continue
3022   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025     sed 's/^/| /' "$ac_site_file" >&5
3026     . "$ac_site_file" \
3027       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "failed to load site script $ac_site_file
3030 See \`config.log' for more details" "$LINENO" 5; }
3031   fi
3032 done
3033
3034 if test -r "$cache_file"; then
3035   # Some versions of bash will fail to source /dev/null (special files
3036   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3037   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039 $as_echo "$as_me: loading cache $cache_file" >&6;}
3040     case $cache_file in
3041       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3042       *)                      . "./$cache_file";;
3043     esac
3044   fi
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047 $as_echo "$as_me: creating cache $cache_file" >&6;}
3048   >$cache_file
3049 fi
3050
3051 # Check that the precious variables saved in the cache have kept the same
3052 # value.
3053 ac_cache_corrupted=false
3054 for ac_var in $ac_precious_vars; do
3055   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3056   eval ac_new_set=\$ac_env_${ac_var}_set
3057   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3058   eval ac_new_val=\$ac_env_${ac_var}_value
3059   case $ac_old_set,$ac_new_set in
3060     set,)
3061       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3063       ac_cache_corrupted=: ;;
3064     ,set)
3065       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3066 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3067       ac_cache_corrupted=: ;;
3068     ,);;
3069     *)
3070       if test "x$ac_old_val" != "x$ac_new_val"; then
3071         # differences in whitespace do not lead to failure.
3072         ac_old_val_w=`echo x $ac_old_val`
3073         ac_new_val_w=`echo x $ac_new_val`
3074         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3075           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3076 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3077           ac_cache_corrupted=:
3078         else
3079           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3080 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3081           eval $ac_var=\$ac_old_val
3082         fi
3083         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3084 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3085         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3086 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3087       fi;;
3088   esac
3089   # Pass precious variables to config.status.
3090   if test "$ac_new_set" = set; then
3091     case $ac_new_val in
3092     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3093     *) ac_arg=$ac_var=$ac_new_val ;;
3094     esac
3095     case " $ac_configure_args " in
3096       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3097       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3098     esac
3099   fi
3100 done
3101 if $ac_cache_corrupted; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3105 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3106   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3107 fi
3108 ## -------------------- ##
3109 ## Main body of script. ##
3110 ## -------------------- ##
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118
3119 ac_aux_dir=
3120 for ac_dir in build "$srcdir"/build; do
3121   if test -f "$ac_dir/install-sh"; then
3122     ac_aux_dir=$ac_dir
3123     ac_install_sh="$ac_aux_dir/install-sh -c"
3124     break
3125   elif test -f "$ac_dir/install.sh"; then
3126     ac_aux_dir=$ac_dir
3127     ac_install_sh="$ac_aux_dir/install.sh -c"
3128     break
3129   elif test -f "$ac_dir/shtool"; then
3130     ac_aux_dir=$ac_dir
3131     ac_install_sh="$ac_aux_dir/shtool install -c"
3132     break
3133   fi
3134 done
3135 if test -z "$ac_aux_dir"; then
3136   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
3137 fi
3138
3139 # These three variables are undocumented and unsupported,
3140 # and are intended to be withdrawn in a future Autoconf release.
3141 # They can cause serious problems if a builder's source tree is in a directory
3142 # whose full name contains unusual characters.
3143 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3144 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3145 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3146
3147
3148
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154 if test -n "$ac_tool_prefix"; then
3155   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test -n "$CC"; then
3163   ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 if test -z "$ac_cv_prog_CC"; then
3194   ac_ct_CC=$CC
3195   # Extract the first word of "gcc", so it can be a program name with args.
3196 set dummy gcc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3200   $as_echo_n "(cached) " >&6
3201 else
3202   if test -n "$ac_ct_CC"; then
3203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210     for ac_exec_ext in '' $ac_executable_extensions; do
3211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_prog_ac_ct_CC="gcc"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231   if test "x$ac_ct_CC" = x; then
3232     CC=""
3233   else
3234     case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240     CC=$ac_ct_CC
3241   fi
3242 else
3243   CC="$ac_cv_prog_CC"
3244 fi
3245
3246 if test -z "$CC"; then
3247           if test -n "$ac_tool_prefix"; then
3248     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}cc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$CC"; then
3256   ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265     ac_cv_prog_CC="${ac_tool_prefix}cc"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285   fi
3286 fi
3287 if test -z "$CC"; then
3288   # Extract the first word of "cc", so it can be a program name with args.
3289 set dummy cc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if test -n "$CC"; then
3296   ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298   ac_prog_rejected=no
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304     for ac_exec_ext in '' $ac_executable_extensions; do
3305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3307        ac_prog_rejected=yes
3308        continue
3309      fi
3310     ac_cv_prog_CC="cc"
3311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315   done
3316 IFS=$as_save_IFS
3317
3318 if test $ac_prog_rejected = yes; then
3319   # We found a bogon in the path, so make sure we never use it.
3320   set dummy $ac_cv_prog_CC
3321   shift
3322   if test $# != 0; then
3323     # We chose a different compiler from the bogus one.
3324     # However, it has the same basename, so the bogon will be chosen
3325     # first if we set CC to just the basename; use the full file name.
3326     shift
3327     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328   fi
3329 fi
3330 fi
3331 fi
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341
3342 fi
3343 if test -z "$CC"; then
3344   if test -n "$ac_tool_prefix"; then
3345   for ac_prog in cl.exe
3346   do
3347     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -n "$CC"; then
3355   ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369   done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384     test -n "$CC" && break
3385   done
3386 fi
3387 if test -z "$CC"; then
3388   ac_ct_CC=$CC
3389   for ac_prog in cl.exe
3390 do
3391   # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$ac_ct_CC"; then
3399   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_prog_ac_ct_CC="$ac_prog"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421 $as_echo "$ac_ct_CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428   test -n "$ac_ct_CC" && break
3429 done
3430
3431   if test "x$ac_ct_CC" = x; then
3432     CC=""
3433   else
3434     case $cross_compiling:$ac_tool_warned in
3435 yes:)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned=yes ;;
3439 esac
3440     CC=$ac_ct_CC
3441   fi
3442 fi
3443
3444 fi
3445
3446
3447 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "no acceptable C compiler found in \$PATH
3450 See \`config.log' for more details" "$LINENO" 5; }
3451
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3454 set X $ac_compile
3455 ac_compiler=$2
3456 for ac_option in --version -v -V -qversion; do
3457   { { ac_try="$ac_compiler $ac_option >&5"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3465   ac_status=$?
3466   if test -s conftest.err; then
3467     sed '10a\
3468 ... rest of stderr output deleted ...
3469          10q' conftest.err >conftest.er1
3470     cat conftest.er1 >&5
3471   fi
3472   rm -f conftest.er1 conftest.err
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }
3475 done
3476
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 ac_clean_files_save=$ac_clean_files
3489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3490 # Try to create an executable without -o first, disregard a.out.
3491 # It will help us diagnose broken compilers, and finding out an intuition
3492 # of exeext.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3494 $as_echo_n "checking whether the C compiler works... " >&6; }
3495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496
3497 # The possible output files:
3498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499
3500 ac_rmfiles=
3501 for ac_file in $ac_files
3502 do
3503   case $ac_file in
3504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506   esac
3507 done
3508 rm -f $ac_rmfiles
3509
3510 if { { ac_try="$ac_link_default"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517   (eval "$ac_link_default") 2>&5
3518   ac_status=$?
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }; then :
3521   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3523 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3524 # so that the user can short-circuit this test for compilers unknown to
3525 # Autoconf.
3526 for ac_file in $ac_files ''
3527 do
3528   test -f "$ac_file" || continue
3529   case $ac_file in
3530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531         ;;
3532     [ab].out )
3533         # We found the default executable, but exeext='' is most
3534         # certainly right.
3535         break;;
3536     *.* )
3537         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3538         then :; else
3539            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540         fi
3541         # We set ac_cv_exeext here because the later test for it is not
3542         # safe: cross compilers may not add the suffix if given an `-o'
3543         # argument, so we may need to know it at that point already.
3544         # Even if this section looks crufty: it has the advantage of
3545         # actually working.
3546         break;;
3547     * )
3548         break;;
3549   esac
3550 done
3551 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552
3553 else
3554   ac_file=''
3555 fi
3556 if test -z "$ac_file"; then :
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error 77 "C compiler cannot create executables
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 $as_echo "yes" >&6; }
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3571 $as_echo_n "checking for C compiler default output file name... " >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 ac_exeext=$ac_cv_exeext
3575
3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3577 ac_clean_files=$ac_clean_files_save
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3579 $as_echo_n "checking for suffix of executables... " >&6; }
3580 if { { ac_try="$ac_link"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587   (eval "$ac_link") 2>&5
3588   ac_status=$?
3589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590   test $ac_status = 0; }; then :
3591   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3592 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3593 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 # `rm'.
3595 for ac_file in conftest.exe conftest conftest.*; do
3596   test -f "$ac_file" || continue
3597   case $ac_file in
3598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3599     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600           break;;
3601     * ) break;;
3602   esac
3603 done
3604 else
3605   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details" "$LINENO" 5; }
3609 fi
3610 rm -f conftest conftest$ac_cv_exeext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3613
3614 rm -f conftest.$ac_ext
3615 EXEEXT=$ac_cv_exeext
3616 ac_exeext=$EXEEXT
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619 #include <stdio.h>
3620 int
3621 main ()
3622 {
3623 FILE *f = fopen ("conftest.out", "w");
3624  return ferror (f) || fclose (f) != 0;
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 ac_clean_files="$ac_clean_files conftest.out"
3631 # Check that the compiler produces executables we can run.  If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3634 $as_echo_n "checking whether we are cross compiling... " >&6; }
3635 if test "$cross_compiling" != yes; then
3636   { { ac_try="$ac_link"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_link") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }
3647   if { ac_try='./conftest$ac_cv_exeext'
3648   { { case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_try") 2>&5
3655   ac_status=$?
3656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657   test $ac_status = 0; }; }; then
3658     cross_compiling=no
3659   else
3660     if test "$cross_compiling" = maybe; then
3661         cross_compiling=yes
3662     else
3663         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details" "$LINENO" 5; }
3668     fi
3669   fi
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3672 $as_echo "$cross_compiling" >&6; }
3673
3674 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if ${ac_cv_objext+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700   (eval "$ac_compile") 2>&5
3701   ac_status=$?
3702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703   test $ac_status = 0; }; then :
3704   for ac_file in conftest.o conftest.obj conftest.*; do
3705   test -f "$ac_file" || continue;
3706   case $ac_file in
3707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709        break;;
3710   esac
3711 done
3712 else
3713   $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 fi
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if ${ac_cv_c_compiler_gnu+:} false; then :
3730   $as_echo_n "(cached) " >&6
3731 else
3732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734
3735 int
3736 main ()
3737 {
3738 #ifndef __GNUC__
3739        choke me
3740 #endif
3741
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747   ac_compiler_gnu=yes
3748 else
3749   ac_compiler_gnu=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758   GCC=yes
3759 else
3760   GCC=
3761 fi
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if ${ac_cv_prog_cc_g+:} false; then :
3767   $as_echo_n "(cached) " >&6
3768 else
3769   ac_save_c_werror_flag=$ac_c_werror_flag
3770    ac_c_werror_flag=yes
3771    ac_cv_prog_cc_g=no
3772    CFLAGS="-g"
3773    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785   ac_cv_prog_cc_g=yes
3786 else
3787   CFLAGS=""
3788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800
3801 else
3802   ac_c_werror_flag=$ac_save_c_werror_flag
3803          CFLAGS="-g"
3804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816   ac_cv_prog_cc_g=yes
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823    ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828   CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830   if test "$GCC" = yes; then
3831     CFLAGS="-g -O2"
3832   else
3833     CFLAGS="-g"
3834   fi
3835 else
3836   if test "$GCC" = yes; then
3837     CFLAGS="-O2"
3838   else
3839     CFLAGS=
3840   fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if ${ac_cv_prog_cc_c89+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851 #include <stdarg.h>
3852 #include <stdio.h>
3853 struct stat;
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3858      char **p;
3859      int i;
3860 {
3861   return p[i];
3862 }
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3864 {
3865   char *s;
3866   va_list v;
3867   va_start (v,p);
3868   s = g (p, va_arg (v,int));
3869   va_end (v);
3870   return s;
3871 }
3872
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3874    function prototypes and stuff, but not '\xHH' hex character constants.
3875    These don't provoke an error unfortunately, instead are silently treated
3876    as 'x'.  The following induces an error, until -std is added to get
3877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3878    array size at least.  It's necessary to write '\x00'==0 to get something
3879    that's true only with -std.  */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883    inside strings and character constants.  */
3884 #define FOO(x) 'x'
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3893 int
3894 main ()
3895 {
3896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903 do
3904   CC="$ac_save_CC $ac_arg"
3905   if ac_fn_c_try_compile "$LINENO"; then :
3906   ac_cv_prog_cc_c89=$ac_arg
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext
3909   test "x$ac_cv_prog_cc_c89" != "xno" && break
3910 done
3911 rm -f conftest.$ac_ext
3912 CC=$ac_save_CC
3913
3914 fi
3915 # AC_CACHE_VAL
3916 case "x$ac_cv_prog_cc_c89" in
3917   x)
3918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919 $as_echo "none needed" >&6; } ;;
3920   xno)
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3922 $as_echo "unsupported" >&6; } ;;
3923   *)
3924     CC="$CC $ac_cv_prog_cc_c89"
3925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3926 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3927 esac
3928 if test "x$ac_cv_prog_cc_c89" != xno; then :
3929
3930 fi
3931
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3945 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3946 # On Suns, sometimes $CPP names a directory.
3947 if test -n "$CPP" && test -d "$CPP"; then
3948   CPP=
3949 fi
3950 if test -z "$CPP"; then
3951   if ${ac_cv_prog_CPP+:} false; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954       # Double quotes because CPP needs to be expanded
3955     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3956     do
3957       ac_preproc_ok=false
3958 for ac_c_preproc_warn_flag in '' yes
3959 do
3960   # Use a header file that comes with gcc, so configuring glibc
3961   # with a fresh cross-compiler works.
3962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963   # <limits.h> exists even on freestanding compilers.
3964   # On the NeXT, cc -E runs the code through the compiler's parser,
3965   # not just through cpp. "Syntax error" is here to catch this case.
3966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973                      Syntax error
3974 _ACEOF
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3976
3977 else
3978   # Broken: fails on valid input.
3979 continue
3980 fi
3981 rm -f conftest.err conftest.i conftest.$ac_ext
3982
3983   # OK, works on sane cases.  Now check whether nonexistent headers
3984   # can be detected and how.
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #include <ac_nonexistent.h>
3988 _ACEOF
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3990   # Broken: success on invalid input.
3991 continue
3992 else
3993   # Passes both tests.
3994 ac_preproc_ok=:
3995 break
3996 fi
3997 rm -f conftest.err conftest.i conftest.$ac_ext
3998
3999 done
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.i conftest.err conftest.$ac_ext
4002 if $ac_preproc_ok; then :
4003   break
4004 fi
4005
4006     done
4007     ac_cv_prog_CPP=$CPP
4008
4009 fi
4010   CPP=$ac_cv_prog_CPP
4011 else
4012   ac_cv_prog_CPP=$CPP
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4015 $as_echo "$CPP" >&6; }
4016 ac_preproc_ok=false
4017 for ac_c_preproc_warn_flag in '' yes
4018 do
4019   # Use a header file that comes with gcc, so configuring glibc
4020   # with a fresh cross-compiler works.
4021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022   # <limits.h> exists even on freestanding compilers.
4023   # On the NeXT, cc -E runs the code through the compiler's parser,
4024   # not just through cpp. "Syntax error" is here to catch this case.
4025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032                      Syntax error
4033 _ACEOF
4034 if ac_fn_c_try_cpp "$LINENO"; then :
4035
4036 else
4037   # Broken: fails on valid input.
4038 continue
4039 fi
4040 rm -f conftest.err conftest.i conftest.$ac_ext
4041
4042   # OK, works on sane cases.  Now check whether nonexistent headers
4043   # can be detected and how.
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #include <ac_nonexistent.h>
4047 _ACEOF
4048 if ac_fn_c_try_cpp "$LINENO"; then :
4049   # Broken: success on invalid input.
4050 continue
4051 else
4052   # Passes both tests.
4053 ac_preproc_ok=:
4054 break
4055 fi
4056 rm -f conftest.err conftest.i conftest.$ac_ext
4057
4058 done
4059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4060 rm -f conftest.i conftest.err conftest.$ac_ext
4061 if $ac_preproc_ok; then :
4062
4063 else
4064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4067 See \`config.log' for more details" "$LINENO" 5; }
4068 fi
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4078 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4079 if ${ac_cv_path_GREP+:} false; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   if test -z "$GREP"; then
4083   ac_path_GREP_found=false
4084   # Loop through the user's path and test for each of PROGNAME-LIST
4085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090     for ac_prog in grep ggrep; do
4091     for ac_exec_ext in '' $ac_executable_extensions; do
4092       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093       as_fn_executable_p "$ac_path_GREP" || continue
4094 # Check for GNU ac_path_GREP and select it if it is found.
4095   # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4097 *GNU*)
4098   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099 *)
4100   ac_count=0
4101   $as_echo_n 0123456789 >"conftest.in"
4102   while :
4103   do
4104     cat "conftest.in" "conftest.in" >"conftest.tmp"
4105     mv "conftest.tmp" "conftest.in"
4106     cp "conftest.in" "conftest.nl"
4107     $as_echo 'GREP' >> "conftest.nl"
4108     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110     as_fn_arith $ac_count + 1 && ac_count=$as_val
4111     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112       # Best one so far, save it but keep looking for a better one
4113       ac_cv_path_GREP="$ac_path_GREP"
4114       ac_path_GREP_max=$ac_count
4115     fi
4116     # 10*(2^10) chars as input seems more than enough
4117     test $ac_count -gt 10 && break
4118   done
4119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4121
4122       $ac_path_GREP_found && break 3
4123     done
4124   done
4125   done
4126 IFS=$as_save_IFS
4127   if test -z "$ac_cv_path_GREP"; then
4128     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129   fi
4130 else
4131   ac_cv_path_GREP=$GREP
4132 fi
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4136 $as_echo "$ac_cv_path_GREP" >&6; }
4137  GREP="$ac_cv_path_GREP"
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4141 $as_echo_n "checking for egrep... " >&6; }
4142 if ${ac_cv_path_EGREP+:} false; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146    then ac_cv_path_EGREP="$GREP -E"
4147    else
4148      if test -z "$EGREP"; then
4149   ac_path_EGREP_found=false
4150   # Loop through the user's path and test for each of PROGNAME-LIST
4151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_prog in egrep; do
4157     for ac_exec_ext in '' $ac_executable_extensions; do
4158       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4159       as_fn_executable_p "$ac_path_EGREP" || continue
4160 # Check for GNU ac_path_EGREP and select it if it is found.
4161   # Check for GNU $ac_path_EGREP
4162 case `"$ac_path_EGREP" --version 2>&1` in
4163 *GNU*)
4164   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165 *)
4166   ac_count=0
4167   $as_echo_n 0123456789 >"conftest.in"
4168   while :
4169   do
4170     cat "conftest.in" "conftest.in" >"conftest.tmp"
4171     mv "conftest.tmp" "conftest.in"
4172     cp "conftest.in" "conftest.nl"
4173     $as_echo 'EGREP' >> "conftest.nl"
4174     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176     as_fn_arith $ac_count + 1 && ac_count=$as_val
4177     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4178       # Best one so far, save it but keep looking for a better one
4179       ac_cv_path_EGREP="$ac_path_EGREP"
4180       ac_path_EGREP_max=$ac_count
4181     fi
4182     # 10*(2^10) chars as input seems more than enough
4183     test $ac_count -gt 10 && break
4184   done
4185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4187
4188       $ac_path_EGREP_found && break 3
4189     done
4190   done
4191   done
4192 IFS=$as_save_IFS
4193   if test -z "$ac_cv_path_EGREP"; then
4194     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195   fi
4196 else
4197   ac_cv_path_EGREP=$EGREP
4198 fi
4199
4200    fi
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4203 $as_echo "$ac_cv_path_EGREP" >&6; }
4204  EGREP="$ac_cv_path_EGREP"
4205
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4208 $as_echo_n "checking for ANSI C header files... " >&6; }
4209 if ${ac_cv_header_stdc+:} false; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h.  */
4214 #include <stdlib.h>
4215 #include <stdarg.h>
4216 #include <string.h>
4217 #include <float.h>
4218
4219 int
4220 main ()
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv_header_stdc=yes
4229 else
4230   ac_cv_header_stdc=no
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233
4234 if test $ac_cv_header_stdc = yes; then
4235   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 #include <string.h>
4239
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242   $EGREP "memchr" >/dev/null 2>&1; then :
4243
4244 else
4245   ac_cv_header_stdc=no
4246 fi
4247 rm -f conftest*
4248
4249 fi
4250
4251 if test $ac_cv_header_stdc = yes; then
4252   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255 #include <stdlib.h>
4256
4257 _ACEOF
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259   $EGREP "free" >/dev/null 2>&1; then :
4260
4261 else
4262   ac_cv_header_stdc=no
4263 fi
4264 rm -f conftest*
4265
4266 fi
4267
4268 if test $ac_cv_header_stdc = yes; then
4269   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270   if test "$cross_compiling" = yes; then :
4271   :
4272 else
4273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h.  */
4275 #include <ctype.h>
4276 #include <stdlib.h>
4277 #if ((' ' & 0x0FF) == 0x020)
4278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4280 #else
4281 # define ISLOWER(c) \
4282                    (('a' <= (c) && (c) <= 'i') \
4283                      || ('j' <= (c) && (c) <= 'r') \
4284                      || ('s' <= (c) && (c) <= 'z'))
4285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4286 #endif
4287
4288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4289 int
4290 main ()
4291 {
4292   int i;
4293   for (i = 0; i < 256; i++)
4294     if (XOR (islower (i), ISLOWER (i))
4295         || toupper (i) != TOUPPER (i))
4296       return 2;
4297   return 0;
4298 }
4299 _ACEOF
4300 if ac_fn_c_try_run "$LINENO"; then :
4301
4302 else
4303   ac_cv_header_stdc=no
4304 fi
4305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4306   conftest.$ac_objext conftest.beam conftest.$ac_ext
4307 fi
4308
4309 fi
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4312 $as_echo "$ac_cv_header_stdc" >&6; }
4313 if test $ac_cv_header_stdc = yes; then
4314
4315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4316
4317 fi
4318
4319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321                   inttypes.h stdint.h unistd.h
4322 do :
4323   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4325 "
4326 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4327   cat >>confdefs.h <<_ACEOF
4328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4329 _ACEOF
4330
4331 fi
4332
4333 done
4334
4335
4336
4337   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4338 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4339   MINIX=yes
4340 else
4341   MINIX=
4342 fi
4343
4344
4345   if test "$MINIX" = yes; then
4346
4347 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4348
4349
4350 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4351
4352
4353 $as_echo "#define _MINIX 1" >>confdefs.h
4354
4355   fi
4356
4357
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4359 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4360 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365
4366 #         define __EXTENSIONS__ 1
4367           $ac_includes_default
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377   ac_cv_safe_to_define___extensions__=yes
4378 else
4379   ac_cv_safe_to_define___extensions__=no
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4384 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4385   test $ac_cv_safe_to_define___extensions__ = yes &&
4386     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4387
4388   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4389
4390   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4391
4392   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4393
4394   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4395
4396
4397
4398 ac_config_headers="$ac_config_headers config.h"
4399
4400
4401 for ac_header in unistd.h sys/ioctl.h
4402 do :
4403   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4406   cat >>confdefs.h <<_ACEOF
4407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411
4412 done
4413
4414
4415 am__api_version='1.11'
4416
4417 # Find a good install program.  We prefer a C program (faster),
4418 # so one script is as good as another.  But avoid the broken or
4419 # incompatible versions:
4420 # SysV /etc/install, /usr/sbin/install
4421 # SunOS /usr/etc/install
4422 # IRIX /sbin/install
4423 # AIX /bin/install
4424 # AmigaOS /C/install, which installs bootblocks on floppy discs
4425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4428 # OS/2's system install, which has a completely different semantic
4429 # ./install, which can be erroneously created by make from ./install.sh.
4430 # Reject install programs that cannot install multiple files.
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4433 if test -z "$INSTALL"; then
4434 if ${ac_cv_path_install+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442     # Account for people who put trailing slashes in PATH elements.
4443 case $as_dir/ in #((
4444   ./ | .// | /[cC]/* | \
4445   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4446   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4447   /usr/ucb/* ) ;;
4448   *)
4449     # OSF1 and SCO ODT 3.0 have their own names for install.
4450     # Don't use installbsd from OSF since it installs stuff as root
4451     # by default.
4452     for ac_prog in ginstall scoinst install; do
4453       for ac_exec_ext in '' $ac_executable_extensions; do
4454         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4455           if test $ac_prog = install &&
4456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4457             # AIX install.  It has an incompatible calling convention.
4458             :
4459           elif test $ac_prog = install &&
4460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4461             # program-specific install script used by HP pwplus--don't use.
4462             :
4463           else
4464             rm -rf conftest.one conftest.two conftest.dir
4465             echo one > conftest.one
4466             echo two > conftest.two
4467             mkdir conftest.dir
4468             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4469               test -s conftest.one && test -s conftest.two &&
4470               test -s conftest.dir/conftest.one &&
4471               test -s conftest.dir/conftest.two
4472             then
4473               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4474               break 3
4475             fi
4476           fi
4477         fi
4478       done
4479     done
4480     ;;
4481 esac
4482
4483   done
4484 IFS=$as_save_IFS
4485
4486 rm -rf conftest.one conftest.two conftest.dir
4487
4488 fi
4489   if test "${ac_cv_path_install+set}" = set; then
4490     INSTALL=$ac_cv_path_install
4491   else
4492     # As a last resort, use the slow shell script.  Don't cache a
4493     # value for INSTALL within a source directory, because that will
4494     # break other packages using the cache if that directory is
4495     # removed, or if the value is a relative name.
4496     INSTALL=$ac_install_sh
4497   fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4500 $as_echo "$INSTALL" >&6; }
4501
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4505
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4507
4508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4511 $as_echo_n "checking whether build environment is sane... " >&6; }
4512 # Just in case
4513 sleep 1
4514 echo timestamp > conftest.file
4515 # Reject unsafe characters in $srcdir or the absolute working directory
4516 # name.  Accept space and tab only in the latter.
4517 am_lf='
4518 '
4519 case `pwd` in
4520   *[\\\"\#\$\&\'\`$am_lf]*)
4521     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4522 esac
4523 case $srcdir in
4524   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4525     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4526 esac
4527
4528 # Do `set' in a subshell so we don't clobber the current shell's
4529 # arguments.  Must try -L first in case configure is actually a
4530 # symlink; some systems play weird games with the mod time of symlinks
4531 # (eg FreeBSD returns the mod time of the symlink's containing
4532 # directory).
4533 if (
4534    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4535    if test "$*" = "X"; then
4536       # -L didn't work.
4537       set X `ls -t "$srcdir/configure" conftest.file`
4538    fi
4539    rm -f conftest.file
4540    if test "$*" != "X $srcdir/configure conftest.file" \
4541       && test "$*" != "X conftest.file $srcdir/configure"; then
4542
4543       # If neither matched, then we have a broken ls.  This can happen
4544       # if, for instance, CONFIG_SHELL is bash and it inherits a
4545       # broken ls alias from the environment.  This has actually
4546       # happened.  Such a system could not be considered "sane".
4547       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4548 alias in your environment" "$LINENO" 5
4549    fi
4550
4551    test "$2" = conftest.file
4552    )
4553 then
4554    # Ok.
4555    :
4556 else
4557    as_fn_error $? "newly created file is older than distributed files!
4558 Check your system clock" "$LINENO" 5
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561 $as_echo "yes" >&6; }
4562 test "$program_prefix" != NONE &&
4563   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4564 # Use a double $ so make ignores it.
4565 test "$program_suffix" != NONE &&
4566   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4567 # Double any \ or $.
4568 # By default was `s,x,x', remove it if useless.
4569 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4570 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4571
4572 # expand $ac_aux_dir to an absolute path
4573 am_aux_dir=`cd $ac_aux_dir && pwd`
4574
4575 if test x"${MISSING+set}" != xset; then
4576   case $am_aux_dir in
4577   *\ * | *\     *)
4578     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4579   *)
4580     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4581   esac
4582 fi
4583 # Use eval to expand $SHELL
4584 if eval "$MISSING --run true"; then
4585   am_missing_run="$MISSING --run "
4586 else
4587   am_missing_run=
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4589 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4590 fi
4591
4592 if test x"${install_sh}" != xset; then
4593   case $am_aux_dir in
4594   *\ * | *\     *)
4595     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4596   *)
4597     install_sh="\${SHELL} $am_aux_dir/install-sh"
4598   esac
4599 fi
4600
4601 # Installed binaries are usually stripped using `strip' when the user
4602 # run `make install-strip'.  However `strip' might not be the right
4603 # tool to use in cross-compilation environments, therefore Automake
4604 # will honor the `STRIP' environment variable to overrule this program.
4605 if test "$cross_compiling" != no; then
4606   if test -n "$ac_tool_prefix"; then
4607   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}strip; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if ${ac_cv_prog_STRIP+:} false; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -n "$STRIP"; then
4615   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629   done
4630 IFS=$as_save_IFS
4631
4632 fi
4633 fi
4634 STRIP=$ac_cv_prog_STRIP
4635 if test -n "$STRIP"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4637 $as_echo "$STRIP" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 fi
4645 if test -z "$ac_cv_prog_STRIP"; then
4646   ac_ct_STRIP=$STRIP
4647   # Extract the first word of "strip", so it can be a program name with args.
4648 set dummy strip; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$ac_ct_STRIP"; then
4655   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664     ac_cv_prog_ac_ct_STRIP="strip"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4675 if test -n "$ac_ct_STRIP"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4677 $as_echo "$ac_ct_STRIP" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683   if test "x$ac_ct_STRIP" = x; then
4684     STRIP=":"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     STRIP=$ac_ct_STRIP
4693   fi
4694 else
4695   STRIP="$ac_cv_prog_STRIP"
4696 fi
4697
4698 fi
4699 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4702 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4703 if test -z "$MKDIR_P"; then
4704   if ${ac_cv_path_mkdir+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in mkdir gmkdir; do
4713          for ac_exec_ext in '' $ac_executable_extensions; do
4714            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4715            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4716              'mkdir (GNU coreutils) '* | \
4717              'mkdir (coreutils) '* | \
4718              'mkdir (fileutils) '4.1*)
4719                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4720                break 3;;
4721            esac
4722          done
4723        done
4724   done
4725 IFS=$as_save_IFS
4726
4727 fi
4728
4729   test -d ./--version && rmdir ./--version
4730   if test "${ac_cv_path_mkdir+set}" = set; then
4731     MKDIR_P="$ac_cv_path_mkdir -p"
4732   else
4733     # As a last resort, use the slow shell script.  Don't cache a
4734     # value for MKDIR_P within a source directory, because that will
4735     # break other packages using the cache if that directory is
4736     # removed, or if the value is a relative name.
4737     MKDIR_P="$ac_install_sh -d"
4738   fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4741 $as_echo "$MKDIR_P" >&6; }
4742
4743 mkdir_p="$MKDIR_P"
4744 case $mkdir_p in
4745   [\\/$]* | ?:[\\/]*) ;;
4746   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4747 esac
4748
4749 for ac_prog in gawk mawk nawk awk
4750 do
4751   # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_AWK+:} false; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   if test -n "$AWK"; then
4759   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768     ac_cv_prog_AWK="$ac_prog"
4769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773   done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 AWK=$ac_cv_prog_AWK
4779 if test -n "$AWK"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4781 $as_echo "$AWK" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788   test -n "$AWK" && break
4789 done
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4793 set x ${MAKE-make}
4794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4795 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   cat >conftest.make <<\_ACEOF
4799 SHELL = /bin/sh
4800 all:
4801         @echo '@@@%%%=$(MAKE)=@@@%%%'
4802 _ACEOF
4803 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4805   *@@@%%%=?*=@@@%%%*)
4806     eval ac_cv_prog_make_${ac_make}_set=yes;;
4807   *)
4808     eval ac_cv_prog_make_${ac_make}_set=no;;
4809 esac
4810 rm -f conftest.make
4811 fi
4812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4814 $as_echo "yes" >&6; }
4815   SET_MAKE=
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819   SET_MAKE="MAKE=${MAKE-make}"
4820 fi
4821
4822 rm -rf .tst 2>/dev/null
4823 mkdir .tst 2>/dev/null
4824 if test -d .tst; then
4825   am__leading_dot=.
4826 else
4827   am__leading_dot=_
4828 fi
4829 rmdir .tst 2>/dev/null
4830
4831 DEPDIR="${am__leading_dot}deps"
4832
4833 ac_config_commands="$ac_config_commands depfiles"
4834
4835
4836 am_make=${MAKE-make}
4837 cat > confinc << 'END'
4838 am__doit:
4839         @echo this is the am__doit target
4840 .PHONY: am__doit
4841 END
4842 # If we don't find an include directive, just comment out the code.
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4844 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4845 am__include="#"
4846 am__quote=
4847 _am_result=none
4848 # First try GNU make style include.
4849 echo "include confinc" > confmf
4850 # Ignore all kinds of additional output from `make'.
4851 case `$am_make -s -f confmf 2> /dev/null` in #(
4852 *the\ am__doit\ target*)
4853   am__include=include
4854   am__quote=
4855   _am_result=GNU
4856   ;;
4857 esac
4858 # Now try BSD make style include.
4859 if test "$am__include" = "#"; then
4860    echo '.include "confinc"' > confmf
4861    case `$am_make -s -f confmf 2> /dev/null` in #(
4862    *the\ am__doit\ target*)
4863      am__include=.include
4864      am__quote="\""
4865      _am_result=BSD
4866      ;;
4867    esac
4868 fi
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4872 $as_echo "$_am_result" >&6; }
4873 rm -f confinc confmf
4874
4875 # Check whether --enable-dependency-tracking was given.
4876 if test "${enable_dependency_tracking+set}" = set; then :
4877   enableval=$enable_dependency_tracking;
4878 fi
4879
4880 if test "x$enable_dependency_tracking" != xno; then
4881   am_depcomp="$ac_aux_dir/depcomp"
4882   AMDEPBACKSLASH='\'
4883   am__nodep='_no'
4884 fi
4885  if test "x$enable_dependency_tracking" != xno; then
4886   AMDEP_TRUE=
4887   AMDEP_FALSE='#'
4888 else
4889   AMDEP_TRUE='#'
4890   AMDEP_FALSE=
4891 fi
4892
4893
4894 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4895   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4896   # is not polluted with repeated "-I."
4897   am__isrc=' -I$(srcdir)'
4898   # test to see if srcdir already configured
4899   if test -f $srcdir/config.status; then
4900     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4901   fi
4902 fi
4903
4904 # test whether we have cygpath
4905 if test -z "$CYGPATH_W"; then
4906   if (cygpath --version) >/dev/null 2>/dev/null; then
4907     CYGPATH_W='cygpath -w'
4908   else
4909     CYGPATH_W=echo
4910   fi
4911 fi
4912
4913
4914 # Define the identity of the package.
4915  PACKAGE='cairo'
4916  VERSION='1.12.16'
4917
4918
4919 # Some tools Automake needs.
4920
4921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4922
4923
4924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4925
4926
4927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4928
4929
4930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4931
4932
4933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4934
4935 # We need awk for the "check" target.  The system "awk" is bad on
4936 # some platforms.
4937 # Always define AMTAR for backward compatibility.  Yes, it's still used
4938 # in the wild :-(  We should find a proper way to deprecate it ...
4939 AMTAR='$${TAR-tar}'
4940
4941 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4942
4943
4944
4945
4946 depcc="$CC"   am_compiler_list=
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4949 $as_echo_n "checking dependency style of $depcc... " >&6; }
4950 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4954   # We make a subdir and do the tests there.  Otherwise we can end up
4955   # making bogus files that we don't know about and never remove.  For
4956   # instance it was reported that on HP-UX the gcc test will end up
4957   # making a dummy file named `D' -- because `-MD' means `put the output
4958   # in D'.
4959   rm -rf conftest.dir
4960   mkdir conftest.dir
4961   # Copy depcomp to subdir because otherwise we won't find it if we're
4962   # using a relative directory.
4963   cp "$am_depcomp" conftest.dir
4964   cd conftest.dir
4965   # We will build objects and dependencies in a subdirectory because
4966   # it helps to detect inapplicable dependency modes.  For instance
4967   # both Tru64's cc and ICC support -MD to output dependencies as a
4968   # side effect of compilation, but ICC will put the dependencies in
4969   # the current directory while Tru64 will put them in the object
4970   # directory.
4971   mkdir sub
4972
4973   am_cv_CC_dependencies_compiler_type=none
4974   if test "$am_compiler_list" = ""; then
4975      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4976   fi
4977   am__universal=false
4978   case " $depcc " in #(
4979      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4980      esac
4981
4982   for depmode in $am_compiler_list; do
4983     # Setup a source with many dependencies, because some compilers
4984     # like to wrap large dependency lists on column 80 (with \), and
4985     # we should not choose a depcomp mode which is confused by this.
4986     #
4987     # We need to recreate these files for each test, as the compiler may
4988     # overwrite some of them when testing with obscure command lines.
4989     # This happens at least with the AIX C compiler.
4990     : > sub/conftest.c
4991     for i in 1 2 3 4 5 6; do
4992       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4993       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4994       # Solaris 8's {/usr,}/bin/sh.
4995       touch sub/conftst$i.h
4996     done
4997     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4998
4999     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5000     # mode.  It turns out that the SunPro C++ compiler does not properly
5001     # handle `-M -o', and we need to detect this.  Also, some Intel
5002     # versions had trouble with output in subdirs
5003     am__obj=sub/conftest.${OBJEXT-o}
5004     am__minus_obj="-o $am__obj"
5005     case $depmode in
5006     gcc)
5007       # This depmode causes a compiler race in universal mode.
5008       test "$am__universal" = false || continue
5009       ;;
5010     nosideeffect)
5011       # after this tag, mechanisms are not by side-effect, so they'll
5012       # only be used when explicitly requested
5013       if test "x$enable_dependency_tracking" = xyes; then
5014         continue
5015       else
5016         break
5017       fi
5018       ;;
5019     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5020       # This compiler won't grok `-c -o', but also, the minuso test has
5021       # not run yet.  These depmodes are late enough in the game, and
5022       # so weak that their functioning should not be impacted.
5023       am__obj=conftest.${OBJEXT-o}
5024       am__minus_obj=
5025       ;;
5026     none) break ;;
5027     esac
5028     if depmode=$depmode \
5029        source=sub/conftest.c object=$am__obj \
5030        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5032          >/dev/null 2>conftest.err &&
5033        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5035        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5037       # icc doesn't choke on unknown options, it will just issue warnings
5038       # or remarks (even with -Werror).  So we grep stderr for any message
5039       # that says an option was ignored or not supported.
5040       # When given -MP, icc 7.0 and 7.1 complain thusly:
5041       #   icc: Command line warning: ignoring option '-M'; no argument required
5042       # The diagnosis changed in icc 8.0:
5043       #   icc: Command line remark: option '-MP' not supported
5044       if (grep 'ignoring option' conftest.err ||
5045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5046         am_cv_CC_dependencies_compiler_type=$depmode
5047         break
5048       fi
5049     fi
5050   done
5051
5052   cd ..
5053   rm -rf conftest.dir
5054 else
5055   am_cv_CC_dependencies_compiler_type=none
5056 fi
5057
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5060 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5062
5063  if
5064   test "x$enable_dependency_tracking" != xno \
5065   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5066   am__fastdepCC_TRUE=
5067   am__fastdepCC_FALSE='#'
5068 else
5069   am__fastdepCC_TRUE='#'
5070   am__fastdepCC_FALSE=
5071 fi
5072
5073
5074
5075 # Check whether --enable-silent-rules was given.
5076 if test "${enable_silent_rules+set}" = set; then :
5077   enableval=$enable_silent_rules;
5078 fi
5079
5080 case $enable_silent_rules in
5081 yes) AM_DEFAULT_VERBOSITY=0;;
5082 no)  AM_DEFAULT_VERBOSITY=1;;
5083 *)   AM_DEFAULT_VERBOSITY=0;;
5084 esac
5085 am_make=${MAKE-make}
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5087 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5088 if ${am_cv_make_support_nested_variables+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   if $as_echo 'TRUE=$(BAR$(V))
5092 BAR0=false
5093 BAR1=true
5094 V=1
5095 am__doit:
5096         @$(TRUE)
5097 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5098   am_cv_make_support_nested_variables=yes
5099 else
5100   am_cv_make_support_nested_variables=no
5101 fi
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5104 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5105 if test $am_cv_make_support_nested_variables = yes; then
5106     AM_V='$(V)'
5107   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5108 else
5109   AM_V=$AM_DEFAULT_VERBOSITY
5110   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5111 fi
5112 AM_BACKSLASH='\'
5113
5114
5115 # Initialize libtool
5116
5117 case `pwd` in
5118   *\ * | *\     *)
5119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5120 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5121 esac
5122
5123
5124
5125 macro_version='2.4.2'
5126 macro_revision='1.3337'
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140 ltmain="$ac_aux_dir/ltmain.sh"
5141
5142 # Make sure we can run config.sub.
5143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5144   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5147 $as_echo_n "checking build system type... " >&6; }
5148 if ${ac_cv_build+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   ac_build_alias=$build_alias
5152 test "x$ac_build_alias" = x &&
5153   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5154 test "x$ac_build_alias" = x &&
5155   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5156 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5157   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5161 $as_echo "$ac_cv_build" >&6; }
5162 case $ac_cv_build in
5163 *-*-*) ;;
5164 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5165 esac
5166 build=$ac_cv_build
5167 ac_save_IFS=$IFS; IFS='-'
5168 set x $ac_cv_build
5169 shift
5170 build_cpu=$1
5171 build_vendor=$2
5172 shift; shift
5173 # Remember, the first character of IFS is used to create $*,
5174 # except with old shells:
5175 build_os=$*
5176 IFS=$ac_save_IFS
5177 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5178
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5181 $as_echo_n "checking host system type... " >&6; }
5182 if ${ac_cv_host+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   if test "x$host_alias" = x; then
5186   ac_cv_host=$ac_cv_build
5187 else
5188   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5189     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5190 fi
5191
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5194 $as_echo "$ac_cv_host" >&6; }
5195 case $ac_cv_host in
5196 *-*-*) ;;
5197 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5198 esac
5199 host=$ac_cv_host
5200 ac_save_IFS=$IFS; IFS='-'
5201 set x $ac_cv_host
5202 shift
5203 host_cpu=$1
5204 host_vendor=$2
5205 shift; shift
5206 # Remember, the first character of IFS is used to create $*,
5207 # except with old shells:
5208 host_os=$*
5209 IFS=$ac_save_IFS
5210 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5211
5212
5213 # Backslashify metacharacters that are still active within
5214 # double-quoted strings.
5215 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5216
5217 # Same as above, but do not quote variable references.
5218 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5219
5220 # Sed substitution to delay expansion of an escaped shell variable in a
5221 # double_quote_subst'ed string.
5222 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5223
5224 # Sed substitution to delay expansion of an escaped single quote.
5225 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5226
5227 # Sed substitution to avoid accidental globbing in evaled expressions
5228 no_glob_subst='s/\*/\\\*/g'
5229
5230 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5231 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5232 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5235 $as_echo_n "checking how to print strings... " >&6; }
5236 # Test print first, because it will be a builtin if present.
5237 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5238    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5239   ECHO='print -r --'
5240 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5241   ECHO='printf %s\n'
5242 else
5243   # Use this function as a fallback that always works.
5244   func_fallback_echo ()
5245   {
5246     eval 'cat <<_LTECHO_EOF
5247 $1
5248 _LTECHO_EOF'
5249   }
5250   ECHO='func_fallback_echo'
5251 fi
5252
5253 # func_echo_all arg...
5254 # Invoke $ECHO with all args, space-separated.
5255 func_echo_all ()
5256 {
5257     $ECHO ""
5258 }
5259
5260 case "$ECHO" in
5261   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5262 $as_echo "printf" >&6; } ;;
5263   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5264 $as_echo "print -r" >&6; } ;;
5265   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5266 $as_echo "cat" >&6; } ;;
5267 esac
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5283 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5284 if ${ac_cv_path_SED+:} false; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5288      for ac_i in 1 2 3 4 5 6 7; do
5289        ac_script="$ac_script$as_nl$ac_script"
5290      done
5291      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5292      { ac_script=; unset ac_script;}
5293      if test -z "$SED"; then
5294   ac_path_SED_found=false
5295   # Loop through the user's path and test for each of PROGNAME-LIST
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301     for ac_prog in sed gsed; do
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5304       as_fn_executable_p "$ac_path_SED" || continue
5305 # Check for GNU ac_path_SED and select it if it is found.
5306   # Check for GNU $ac_path_SED
5307 case `"$ac_path_SED" --version 2>&1` in
5308 *GNU*)
5309   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5310 *)
5311   ac_count=0
5312   $as_echo_n 0123456789 >"conftest.in"
5313   while :
5314   do
5315     cat "conftest.in" "conftest.in" >"conftest.tmp"
5316     mv "conftest.tmp" "conftest.in"
5317     cp "conftest.in" "conftest.nl"
5318     $as_echo '' >> "conftest.nl"
5319     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321     as_fn_arith $ac_count + 1 && ac_count=$as_val
5322     if test $ac_count -gt ${ac_path_SED_max-0}; then
5323       # Best one so far, save it but keep looking for a better one
5324       ac_cv_path_SED="$ac_path_SED"
5325       ac_path_SED_max=$ac_count
5326     fi
5327     # 10*(2^10) chars as input seems more than enough
5328     test $ac_count -gt 10 && break
5329   done
5330   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331 esac
5332
5333       $ac_path_SED_found && break 3
5334     done
5335   done
5336   done
5337 IFS=$as_save_IFS
5338   if test -z "$ac_cv_path_SED"; then
5339     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5340   fi
5341 else
5342   ac_cv_path_SED=$SED
5343 fi
5344
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5347 $as_echo "$ac_cv_path_SED" >&6; }
5348  SED="$ac_cv_path_SED"
5349   rm -f conftest.sed
5350
5351 test -z "$SED" && SED=sed
5352 Xsed="$SED -e 1s/^X//"
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5365 $as_echo_n "checking for fgrep... " >&6; }
5366 if ${ac_cv_path_FGREP+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5370    then ac_cv_path_FGREP="$GREP -F"
5371    else
5372      if test -z "$FGREP"; then
5373   ac_path_FGREP_found=false
5374   # Loop through the user's path and test for each of PROGNAME-LIST
5375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_prog in fgrep; do
5381     for ac_exec_ext in '' $ac_executable_extensions; do
5382       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5383       as_fn_executable_p "$ac_path_FGREP" || continue
5384 # Check for GNU ac_path_FGREP and select it if it is found.
5385   # Check for GNU $ac_path_FGREP
5386 case `"$ac_path_FGREP" --version 2>&1` in
5387 *GNU*)
5388   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5389 *)
5390   ac_count=0
5391   $as_echo_n 0123456789 >"conftest.in"
5392   while :
5393   do
5394     cat "conftest.in" "conftest.in" >"conftest.tmp"
5395     mv "conftest.tmp" "conftest.in"
5396     cp "conftest.in" "conftest.nl"
5397     $as_echo 'FGREP' >> "conftest.nl"
5398     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5399     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5400     as_fn_arith $ac_count + 1 && ac_count=$as_val
5401     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5402       # Best one so far, save it but keep looking for a better one
5403       ac_cv_path_FGREP="$ac_path_FGREP"
5404       ac_path_FGREP_max=$ac_count
5405     fi
5406     # 10*(2^10) chars as input seems more than enough
5407     test $ac_count -gt 10 && break
5408   done
5409   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5410 esac
5411
5412       $ac_path_FGREP_found && break 3
5413     done
5414   done
5415   done
5416 IFS=$as_save_IFS
5417   if test -z "$ac_cv_path_FGREP"; then
5418     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5419   fi
5420 else
5421   ac_cv_path_FGREP=$FGREP
5422 fi
5423
5424    fi
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5427 $as_echo "$ac_cv_path_FGREP" >&6; }
5428  FGREP="$ac_cv_path_FGREP"
5429
5430
5431 test -z "$GREP" && GREP=grep
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 # Check whether --with-gnu-ld was given.
5452 if test "${with_gnu_ld+set}" = set; then :
5453   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5454 else
5455   with_gnu_ld=no
5456 fi
5457
5458 ac_prog=ld
5459 if test "$GCC" = yes; then
5460   # Check if gcc -print-prog-name=ld gives a path.
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5462 $as_echo_n "checking for ld used by $CC... " >&6; }
5463   case $host in
5464   *-*-mingw*)
5465     # gcc leaves a trailing carriage return which upsets mingw
5466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5467   *)
5468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5469   esac
5470   case $ac_prog in
5471     # Accept absolute paths.
5472     [\\/]* | ?:[\\/]*)
5473       re_direlt='/[^/][^/]*/\.\./'
5474       # Canonicalize the pathname of ld
5475       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5476       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5477         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5478       done
5479       test -z "$LD" && LD="$ac_prog"
5480       ;;
5481   "")
5482     # If it fails, then pretend we aren't using GCC.
5483     ac_prog=ld
5484     ;;
5485   *)
5486     # If it is relative, then search for the first ld in PATH.
5487     with_gnu_ld=unknown
5488     ;;
5489   esac
5490 elif test "$with_gnu_ld" = yes; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5492 $as_echo_n "checking for GNU ld... " >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5495 $as_echo_n "checking for non-GNU ld... " >&6; }
5496 fi
5497 if ${lt_cv_path_LD+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -z "$LD"; then
5501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502   for ac_dir in $PATH; do
5503     IFS="$lt_save_ifs"
5504     test -z "$ac_dir" && ac_dir=.
5505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5506       lt_cv_path_LD="$ac_dir/$ac_prog"
5507       # Check to see if the program is GNU ld.  I'd rather use --version,
5508       # but apparently some variants of GNU ld only accept -v.
5509       # Break only if it was the GNU/non-GNU ld that we prefer.
5510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5511       *GNU* | *'with BFD'*)
5512         test "$with_gnu_ld" != no && break
5513         ;;
5514       *)
5515         test "$with_gnu_ld" != yes && break
5516         ;;
5517       esac
5518     fi
5519   done
5520   IFS="$lt_save_ifs"
5521 else
5522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523 fi
5524 fi
5525
5526 LD="$lt_cv_path_LD"
5527 if test -n "$LD"; then
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5529 $as_echo "$LD" >&6; }
5530 else
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5537 if ${lt_cv_prog_gnu_ld+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541 case `$LD -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543   lt_cv_prog_gnu_ld=yes
5544   ;;
5545 *)
5546   lt_cv_prog_gnu_ld=no
5547   ;;
5548 esac
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5551 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5552 with_gnu_ld=$lt_cv_prog_gnu_ld
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5563 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5564 if ${lt_cv_path_NM+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   if test -n "$NM"; then
5568   # Let the user override the test.
5569   lt_cv_path_NM="$NM"
5570 else
5571   lt_nm_to_check="${ac_tool_prefix}nm"
5572   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573     lt_nm_to_check="$lt_nm_to_check nm"
5574   fi
5575   for lt_tmp_nm in $lt_nm_to_check; do
5576     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578       IFS="$lt_save_ifs"
5579       test -z "$ac_dir" && ac_dir=.
5580       tmp_nm="$ac_dir/$lt_tmp_nm"
5581       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582         # Check to see if the nm accepts a BSD-compat flag.
5583         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584         #   nm: unknown option "B" ignored
5585         # Tru64's nm complains that /dev/null is an invalid object file
5586         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587         */dev/null* | *'Invalid file or object type'*)
5588           lt_cv_path_NM="$tmp_nm -B"
5589           break
5590           ;;
5591         *)
5592           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593           */dev/null*)
5594             lt_cv_path_NM="$tmp_nm -p"
5595             break
5596             ;;
5597           *)
5598             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599             continue # so that we can try to find one that supports BSD flags
5600             ;;
5601           esac
5602           ;;
5603         esac
5604       fi
5605     done
5606     IFS="$lt_save_ifs"
5607   done
5608   : ${lt_cv_path_NM=no}
5609 fi
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5612 $as_echo "$lt_cv_path_NM" >&6; }
5613 if test "$lt_cv_path_NM" != "no"; then
5614   NM="$lt_cv_path_NM"
5615 else
5616   # Didn't find any BSD compatible name lister, look for dumpbin.
5617   if test -n "$DUMPBIN"; then :
5618     # Let the user override the test.
5619   else
5620     if test -n "$ac_tool_prefix"; then
5621   for ac_prog in dumpbin "link -dump"
5622   do
5623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_DUMPBIN+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -n "$DUMPBIN"; then
5631   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 DUMPBIN=$ac_cv_prog_DUMPBIN
5651 if test -n "$DUMPBIN"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5653 $as_echo "$DUMPBIN" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660     test -n "$DUMPBIN" && break
5661   done
5662 fi
5663 if test -z "$DUMPBIN"; then
5664   ac_ct_DUMPBIN=$DUMPBIN
5665   for ac_prog in dumpbin "link -dump"
5666 do
5667   # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$ac_ct_DUMPBIN"; then
5675   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5695 if test -n "$ac_ct_DUMPBIN"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5697 $as_echo "$ac_ct_DUMPBIN" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704   test -n "$ac_ct_DUMPBIN" && break
5705 done
5706
5707   if test "x$ac_ct_DUMPBIN" = x; then
5708     DUMPBIN=":"
5709   else
5710     case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716     DUMPBIN=$ac_ct_DUMPBIN
5717   fi
5718 fi
5719
5720     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5721     *COFF*)
5722       DUMPBIN="$DUMPBIN -symbols"
5723       ;;
5724     *)
5725       DUMPBIN=:
5726       ;;
5727     esac
5728   fi
5729
5730   if test "$DUMPBIN" != ":"; then
5731     NM="$DUMPBIN"
5732   fi
5733 fi
5734 test -z "$NM" && NM=nm
5735
5736
5737
5738
5739
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5742 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5743 if ${lt_cv_nm_interface+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   lt_cv_nm_interface="BSD nm"
5747   echo "int some_variable = 0;" > conftest.$ac_ext
5748   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5749   (eval "$ac_compile" 2>conftest.err)
5750   cat conftest.err >&5
5751   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5752   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5753   cat conftest.err >&5
5754   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5755   cat conftest.out >&5
5756   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5757     lt_cv_nm_interface="MS dumpbin"
5758   fi
5759   rm -f conftest*
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5762 $as_echo "$lt_cv_nm_interface" >&6; }
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5765 $as_echo_n "checking whether ln -s works... " >&6; }
5766 LN_S=$as_ln_s
5767 if test "$LN_S" = "ln -s"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 $as_echo "yes" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5772 $as_echo "no, using $LN_S" >&6; }
5773 fi
5774
5775 # find the maximum length of command line arguments
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5777 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5778 if ${lt_cv_sys_max_cmd_len+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781     i=0
5782   teststring="ABCD"
5783
5784   case $build_os in
5785   msdosdjgpp*)
5786     # On DJGPP, this test can blow up pretty badly due to problems in libc
5787     # (any single argument exceeding 2000 bytes causes a buffer overrun
5788     # during glob expansion).  Even if it were fixed, the result of this
5789     # check would be larger than it should be.
5790     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5791     ;;
5792
5793   gnu*)
5794     # Under GNU Hurd, this test is not required because there is
5795     # no limit to the length of command line arguments.
5796     # Libtool will interpret -1 as no limit whatsoever
5797     lt_cv_sys_max_cmd_len=-1;
5798     ;;
5799
5800   cygwin* | mingw* | cegcc*)
5801     # On Win9x/ME, this test blows up -- it succeeds, but takes
5802     # about 5 minutes as the teststring grows exponentially.
5803     # Worse, since 9x/ME are not pre-emptively multitasking,
5804     # you end up with a "frozen" computer, even though with patience
5805     # the test eventually succeeds (with a max line length of 256k).
5806     # Instead, let's just punt: use the minimum linelength reported by
5807     # all of the supported platforms: 8192 (on NT/2K/XP).
5808     lt_cv_sys_max_cmd_len=8192;
5809     ;;
5810
5811   mint*)
5812     # On MiNT this can take a long time and run out of memory.
5813     lt_cv_sys_max_cmd_len=8192;
5814     ;;
5815
5816   amigaos*)
5817     # On AmigaOS with pdksh, this test takes hours, literally.
5818     # So we just punt and use a minimum line length of 8192.
5819     lt_cv_sys_max_cmd_len=8192;
5820     ;;
5821
5822   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5823     # This has been around since 386BSD, at least.  Likely further.
5824     if test -x /sbin/sysctl; then
5825       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5826     elif test -x /usr/sbin/sysctl; then
5827       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5828     else
5829       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5830     fi
5831     # And add a safety zone
5832     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5833     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5834     ;;
5835
5836   interix*)
5837     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5838     lt_cv_sys_max_cmd_len=196608
5839     ;;
5840
5841   os2*)
5842     # The test takes a long time on OS/2.
5843     lt_cv_sys_max_cmd_len=8192
5844     ;;
5845
5846   osf*)
5847     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5848     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5849     # nice to cause kernel panics so lets avoid the loop below.
5850     # First set a reasonable default.
5851     lt_cv_sys_max_cmd_len=16384
5852     #
5853     if test -x /sbin/sysconfig; then
5854       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5855         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5856       esac
5857     fi
5858     ;;
5859   sco3.2v5*)
5860     lt_cv_sys_max_cmd_len=102400
5861     ;;
5862   sysv5* | sco5v6* | sysv4.2uw2*)
5863     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5864     if test -n "$kargmax"; then
5865       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5866     else
5867       lt_cv_sys_max_cmd_len=32768
5868     fi
5869     ;;
5870   *)
5871     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5872     if test -n "$lt_cv_sys_max_cmd_len"; then
5873       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5874       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5875     else
5876       # Make teststring a little bigger before we do anything with it.
5877       # a 1K string should be a reasonable start.
5878       for i in 1 2 3 4 5 6 7 8 ; do
5879         teststring=$teststring$teststring
5880       done
5881       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5882       # If test is not a shell built-in, we'll probably end up computing a
5883       # maximum length that is only half of the actual maximum length, but
5884       # we can't tell.
5885       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5886                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5887               test $i != 17 # 1/2 MB should be enough
5888       do
5889         i=`expr $i + 1`
5890         teststring=$teststring$teststring
5891       done
5892       # Only check the string length outside the loop.
5893       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5894       teststring=
5895       # Add a significant safety factor because C++ compilers can tack on
5896       # massive amounts of additional arguments before passing them to the
5897       # linker.  It appears as though 1/2 is a usable value.
5898       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5899     fi
5900     ;;
5901   esac
5902
5903 fi
5904
5905 if test -n $lt_cv_sys_max_cmd_len ; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5907 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5910 $as_echo "none" >&6; }
5911 fi
5912 max_cmd_len=$lt_cv_sys_max_cmd_len
5913
5914
5915
5916
5917
5918
5919 : ${CP="cp -f"}
5920 : ${MV="mv -f"}
5921 : ${RM="rm -f"}
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5924 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5925 # Try some XSI features
5926 xsi_shell=no
5927 ( _lt_dummy="a/b/c"
5928   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5929       = c,a/b,b/c, \
5930     && eval 'test $(( 1 + 1 )) -eq 2 \
5931     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5932   && xsi_shell=yes
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5934 $as_echo "$xsi_shell" >&6; }
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5938 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5939 lt_shell_append=no
5940 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5941     >/dev/null 2>&1 \
5942   && lt_shell_append=yes
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5944 $as_echo "$lt_shell_append" >&6; }
5945
5946
5947 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5948   lt_unset=unset
5949 else
5950   lt_unset=false
5951 fi
5952
5953
5954
5955
5956
5957 # test EBCDIC or ASCII
5958 case `echo X|tr X '\101'` in
5959  A) # ASCII based system
5960     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5961   lt_SP2NL='tr \040 \012'
5962   lt_NL2SP='tr \015\012 \040\040'
5963   ;;
5964  *) # EBCDIC based system
5965   lt_SP2NL='tr \100 \n'
5966   lt_NL2SP='tr \r\n \100\100'
5967   ;;
5968 esac
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5979 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5980 if ${lt_cv_to_host_file_cmd+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   case $host in
5984   *-*-mingw* )
5985     case $build in
5986       *-*-mingw* ) # actually msys
5987         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5988         ;;
5989       *-*-cygwin* )
5990         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5991         ;;
5992       * ) # otherwise, assume *nix
5993         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5994         ;;
5995     esac
5996     ;;
5997   *-*-cygwin* )
5998     case $build in
5999       *-*-mingw* ) # actually msys
6000         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6001         ;;
6002       *-*-cygwin* )
6003         lt_cv_to_host_file_cmd=func_convert_file_noop
6004         ;;
6005       * ) # otherwise, assume *nix
6006         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6007         ;;
6008     esac
6009     ;;
6010   * ) # unhandled hosts (and "normal" native builds)
6011     lt_cv_to_host_file_cmd=func_convert_file_noop
6012     ;;
6013 esac
6014
6015 fi
6016
6017 to_host_file_cmd=$lt_cv_to_host_file_cmd
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6019 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6026 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6027 if ${lt_cv_to_tool_file_cmd+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   #assume ordinary cross tools, or native build.
6031 lt_cv_to_tool_file_cmd=func_convert_file_noop
6032 case $host in
6033   *-*-mingw* )
6034     case $build in
6035       *-*-mingw* ) # actually msys
6036         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6037         ;;
6038     esac
6039     ;;
6040 esac
6041
6042 fi
6043
6044 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6046 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6047
6048
6049
6050
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6053 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6054 if ${lt_cv_ld_reload_flag+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   lt_cv_ld_reload_flag='-r'
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6060 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6061 reload_flag=$lt_cv_ld_reload_flag
6062 case $reload_flag in
6063 "" | " "*) ;;
6064 *) reload_flag=" $reload_flag" ;;
6065 esac
6066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6067 case $host_os in
6068   cygwin* | mingw* | pw32* | cegcc*)
6069     if test "$GCC" != yes; then
6070       reload_cmds=false
6071     fi
6072     ;;
6073   darwin*)
6074     if test "$GCC" = yes; then
6075       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6076     else
6077       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6078     fi
6079     ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 if test -n "$ac_tool_prefix"; then
6091   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_OBJDUMP+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if test -n "$OBJDUMP"; then
6099   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_exec_ext in '' $ac_executable_extensions; do
6107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110     break 2
6111   fi
6112 done
6113   done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 OBJDUMP=$ac_cv_prog_OBJDUMP
6119 if test -n "$OBJDUMP"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6121 $as_echo "$OBJDUMP" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127
6128 fi
6129 if test -z "$ac_cv_prog_OBJDUMP"; then
6130   ac_ct_OBJDUMP=$OBJDUMP
6131   # Extract the first word of "objdump", so it can be a program name with args.
6132 set dummy objdump; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6136   $as_echo_n "(cached) " >&6
6137 else
6138   if test -n "$ac_ct_OBJDUMP"; then
6139   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146     for ac_exec_ext in '' $ac_executable_extensions; do
6147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153   done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6159 if test -n "$ac_ct_OBJDUMP"; then
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6161 $as_echo "$ac_ct_OBJDUMP" >&6; }
6162 else
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167   if test "x$ac_ct_OBJDUMP" = x; then
6168     OBJDUMP="false"
6169   else
6170     case $cross_compiling:$ac_tool_warned in
6171 yes:)
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176     OBJDUMP=$ac_ct_OBJDUMP
6177   fi
6178 else
6179   OBJDUMP="$ac_cv_prog_OBJDUMP"
6180 fi
6181
6182 test -z "$OBJDUMP" && OBJDUMP=objdump
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6191 if ${lt_cv_deplibs_check_method+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   lt_cv_file_magic_cmd='$MAGIC_CMD'
6195 lt_cv_file_magic_test_file=
6196 lt_cv_deplibs_check_method='unknown'
6197 # Need to set the preceding variable on all platforms that support
6198 # interlibrary dependencies.
6199 # 'none' -- dependencies not supported.
6200 # `unknown' -- same as none, but documents that we really don't know.
6201 # 'pass_all' -- all dependencies passed with no checks.
6202 # 'test_compile' -- check by making test program.
6203 # 'file_magic [[regex]]' -- check by looking for files in library path
6204 # which responds to the $file_magic_cmd with a given extended regex.
6205 # If you have `file' or equivalent on your system and you're not sure
6206 # whether `pass_all' will *always* work, you probably want this one.
6207
6208 case $host_os in
6209 aix[4-9]*)
6210   lt_cv_deplibs_check_method=pass_all
6211   ;;
6212
6213 beos*)
6214   lt_cv_deplibs_check_method=pass_all
6215   ;;
6216
6217 bsdi[45]*)
6218   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6219   lt_cv_file_magic_cmd='/usr/bin/file -L'
6220   lt_cv_file_magic_test_file=/shlib/libc.so
6221   ;;
6222
6223 cygwin*)
6224   # func_win32_libid is a shell function defined in ltmain.sh
6225   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6226   lt_cv_file_magic_cmd='func_win32_libid'
6227   ;;
6228
6229 mingw* | pw32*)
6230   # Base MSYS/MinGW do not provide the 'file' command needed by
6231   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6232   # unless we find 'file', for example because we are cross-compiling.
6233   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6234   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6235     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236     lt_cv_file_magic_cmd='func_win32_libid'
6237   else
6238     # Keep this pattern in sync with the one in func_win32_libid.
6239     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6240     lt_cv_file_magic_cmd='$OBJDUMP -f'
6241   fi
6242   ;;
6243
6244 cegcc*)
6245   # use the weaker test based on 'objdump'. See mingw*.
6246   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6247   lt_cv_file_magic_cmd='$OBJDUMP -f'
6248   ;;
6249
6250 darwin* | rhapsody*)
6251   lt_cv_deplibs_check_method=pass_all
6252   ;;
6253
6254 freebsd* | dragonfly*)
6255   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6256     case $host_cpu in
6257     i*86 )
6258       # Not sure whether the presence of OpenBSD here was a mistake.
6259       # Let's accept both of them until this is cleared up.
6260       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6261       lt_cv_file_magic_cmd=/usr/bin/file
6262       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6263       ;;
6264     esac
6265   else
6266     lt_cv_deplibs_check_method=pass_all
6267   fi
6268   ;;
6269
6270 haiku*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 hpux10.20* | hpux11*)
6275   lt_cv_file_magic_cmd=/usr/bin/file
6276   case $host_cpu in
6277   ia64*)
6278     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6279     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6280     ;;
6281   hppa*64*)
6282     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]'
6283     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6284     ;;
6285   *)
6286     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6287     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6288     ;;
6289   esac
6290   ;;
6291
6292 interix[3-9]*)
6293   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6294   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6295   ;;
6296
6297 irix5* | irix6* | nonstopux*)
6298   case $LD in
6299   *-32|*"-32 ") libmagic=32-bit;;
6300   *-n32|*"-n32 ") libmagic=N32;;
6301   *-64|*"-64 ") libmagic=64-bit;;
6302   *) libmagic=never-match;;
6303   esac
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 # This must be glibc/ELF.
6308 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6309   lt_cv_deplibs_check_method=pass_all
6310   ;;
6311
6312 netbsd* | netbsdelf*-gnu)
6313   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6315   else
6316     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6317   fi
6318   ;;
6319
6320 newos6*)
6321   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6322   lt_cv_file_magic_cmd=/usr/bin/file
6323   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6324   ;;
6325
6326 *nto* | *qnx*)
6327   lt_cv_deplibs_check_method=pass_all
6328   ;;
6329
6330 openbsd*)
6331   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6332     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6333   else
6334     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6335   fi
6336   ;;
6337
6338 osf3* | osf4* | osf5*)
6339   lt_cv_deplibs_check_method=pass_all
6340   ;;
6341
6342 rdos*)
6343   lt_cv_deplibs_check_method=pass_all
6344   ;;
6345
6346 solaris*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 sysv4 | sysv4.3*)
6355   case $host_vendor in
6356   motorola)
6357     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]'
6358     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6359     ;;
6360   ncr)
6361     lt_cv_deplibs_check_method=pass_all
6362     ;;
6363   sequent)
6364     lt_cv_file_magic_cmd='/bin/file'
6365     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6366     ;;
6367   sni)
6368     lt_cv_file_magic_cmd='/bin/file'
6369     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6370     lt_cv_file_magic_test_file=/lib/libc.so
6371     ;;
6372   siemens)
6373     lt_cv_deplibs_check_method=pass_all
6374     ;;
6375   pc)
6376     lt_cv_deplibs_check_method=pass_all
6377     ;;
6378   esac
6379   ;;
6380
6381 tpf*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384 esac
6385
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6388 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6389
6390 file_magic_glob=
6391 want_nocaseglob=no
6392 if test "$build" = "$host"; then
6393   case $host_os in
6394   mingw* | pw32*)
6395     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6396       want_nocaseglob=yes
6397     else
6398       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6399     fi
6400     ;;
6401   esac
6402 fi
6403
6404 file_magic_cmd=$lt_cv_file_magic_cmd
6405 deplibs_check_method=$lt_cv_deplibs_check_method
6406 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_DLLTOOL+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$DLLTOOL"; then
6438   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 DLLTOOL=$ac_cv_prog_DLLTOOL
6458 if test -n "$DLLTOOL"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6460 $as_echo "$DLLTOOL" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_DLLTOOL"; then
6469   ac_ct_DLLTOOL=$DLLTOOL
6470   # Extract the first word of "dlltool", so it can be a program name with args.
6471 set dummy dlltool; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$ac_ct_DLLTOOL"; then
6478   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6498 if test -n "$ac_ct_DLLTOOL"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6500 $as_echo "$ac_ct_DLLTOOL" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506   if test "x$ac_ct_DLLTOOL" = x; then
6507     DLLTOOL="false"
6508   else
6509     case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515     DLLTOOL=$ac_ct_DLLTOOL
6516   fi
6517 else
6518   DLLTOOL="$ac_cv_prog_DLLTOOL"
6519 fi
6520
6521 test -z "$DLLTOOL" && DLLTOOL=dlltool
6522
6523
6524
6525
6526
6527
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6530 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6531 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   lt_cv_sharedlib_from_linklib_cmd='unknown'
6535
6536 case $host_os in
6537 cygwin* | mingw* | pw32* | cegcc*)
6538   # two different shell functions defined in ltmain.sh
6539   # decide which to use based on capabilities of $DLLTOOL
6540   case `$DLLTOOL --help 2>&1` in
6541   *--identify-strict*)
6542     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6543     ;;
6544   *)
6545     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6546     ;;
6547   esac
6548   ;;
6549 *)
6550   # fallback: assume linklib IS sharedlib
6551   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6552   ;;
6553 esac
6554
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6557 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6558 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6559 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568   for ac_prog in ar
6569   do
6570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_AR+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$AR"; then
6578   ac_cv_prog_AR="$AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 AR=$ac_cv_prog_AR
6598 if test -n "$AR"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6600 $as_echo "$AR" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607     test -n "$AR" && break
6608   done
6609 fi
6610 if test -z "$AR"; then
6611   ac_ct_AR=$AR
6612   for ac_prog in ar
6613 do
6614   # Extract the first word of "$ac_prog", so it can be a program name with args.
6615 set dummy $ac_prog; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$ac_ct_AR"; then
6622   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631     ac_cv_prog_ac_ct_AR="$ac_prog"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642 if test -n "$ac_ct_AR"; then
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6644 $as_echo "$ac_ct_AR" >&6; }
6645 else
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651   test -n "$ac_ct_AR" && break
6652 done
6653
6654   if test "x$ac_ct_AR" = x; then
6655     AR="false"
6656   else
6657     case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     AR=$ac_ct_AR
6664   fi
6665 fi
6666
6667 : ${AR=ar}
6668 : ${AR_FLAGS=cru}
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6681 $as_echo_n "checking for archiver @FILE support... " >&6; }
6682 if ${lt_cv_ar_at_file+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   lt_cv_ar_at_file=no
6686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h.  */
6688
6689 int
6690 main ()
6691 {
6692
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698   echo conftest.$ac_objext > conftest.lst
6699       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6700       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6701   (eval $lt_ar_try) 2>&5
6702   ac_status=$?
6703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704   test $ac_status = 0; }
6705       if test "$ac_status" -eq 0; then
6706         # Ensure the archiver fails upon bogus file names.
6707         rm -f conftest.$ac_objext libconftest.a
6708         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6709   (eval $lt_ar_try) 2>&5
6710   ac_status=$?
6711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712   test $ac_status = 0; }
6713         if test "$ac_status" -ne 0; then
6714           lt_cv_ar_at_file=@
6715         fi
6716       fi
6717       rm -f conftest.* libconftest.a
6718
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6724 $as_echo "$lt_cv_ar_at_file" >&6; }
6725
6726 if test "x$lt_cv_ar_at_file" = xno; then
6727   archiver_list_spec=
6728 else
6729   archiver_list_spec=$lt_cv_ar_at_file
6730 fi
6731
6732
6733
6734
6735
6736
6737
6738 if test -n "$ac_tool_prefix"; then
6739   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}strip; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_STRIP+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$STRIP"; then
6747   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 STRIP=$ac_cv_prog_STRIP
6767 if test -n "$STRIP"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6769 $as_echo "$STRIP" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_prog_STRIP"; then
6778   ac_ct_STRIP=$STRIP
6779   # Extract the first word of "strip", so it can be a program name with args.
6780 set dummy strip; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$ac_ct_STRIP"; then
6787   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_ac_ct_STRIP="strip"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6807 if test -n "$ac_ct_STRIP"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6809 $as_echo "$ac_ct_STRIP" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815   if test "x$ac_ct_STRIP" = x; then
6816     STRIP=":"
6817   else
6818     case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     STRIP=$ac_ct_STRIP
6825   fi
6826 else
6827   STRIP="$ac_cv_prog_STRIP"
6828 fi
6829
6830 test -z "$STRIP" && STRIP=:
6831
6832
6833
6834
6835
6836
6837 if test -n "$ac_tool_prefix"; then
6838   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_RANLIB+:} false; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   if test -n "$RANLIB"; then
6846   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 RANLIB=$ac_cv_prog_RANLIB
6866 if test -n "$RANLIB"; then
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6868 $as_echo "$RANLIB" >&6; }
6869 else
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874
6875 fi
6876 if test -z "$ac_cv_prog_RANLIB"; then
6877   ac_ct_RANLIB=$RANLIB
6878   # Extract the first word of "ranlib", so it can be a program name with args.
6879 set dummy ranlib; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$ac_ct_RANLIB"; then
6886   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_exec_ext in '' $ac_executable_extensions; do
6894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895     ac_cv_prog_ac_ct_RANLIB="ranlib"
6896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900   done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6906 if test -n "$ac_ct_RANLIB"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6908 $as_echo "$ac_ct_RANLIB" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913
6914   if test "x$ac_ct_RANLIB" = x; then
6915     RANLIB=":"
6916   else
6917     case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923     RANLIB=$ac_ct_RANLIB
6924   fi
6925 else
6926   RANLIB="$ac_cv_prog_RANLIB"
6927 fi
6928
6929 test -z "$RANLIB" && RANLIB=:
6930
6931
6932
6933
6934
6935
6936 # Determine commands to create old-style static archives.
6937 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6938 old_postinstall_cmds='chmod 644 $oldlib'
6939 old_postuninstall_cmds=
6940
6941 if test -n "$RANLIB"; then
6942   case $host_os in
6943   openbsd*)
6944     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6945     ;;
6946   *)
6947     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6948     ;;
6949   esac
6950   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6951 fi
6952
6953 case $host_os in
6954   darwin*)
6955     lock_old_archive_extraction=yes ;;
6956   *)
6957     lock_old_archive_extraction=no ;;
6958 esac
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 # If no C compiler was specified, use CC.
6999 LTCC=${LTCC-"$CC"}
7000
7001 # If no C compiler flags were specified, use CFLAGS.
7002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7003
7004 # Allow CC to be a program name with arguments.
7005 compiler=$CC
7006
7007
7008 # Check for command to grab the raw symbol name followed by C symbol from nm.
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7010 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7011 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014
7015 # These are sane defaults that work on at least a few old systems.
7016 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7017
7018 # Character class describing NM global symbol codes.
7019 symcode='[BCDEGRST]'
7020
7021 # Regexp to match symbols that can be accessed directly from C.
7022 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7023
7024 # Define system-specific variables.
7025 case $host_os in
7026 aix*)
7027   symcode='[BCDT]'
7028   ;;
7029 cygwin* | mingw* | pw32* | cegcc*)
7030   symcode='[ABCDGISTW]'
7031   ;;
7032 hpux*)
7033   if test "$host_cpu" = ia64; then
7034     symcode='[ABCDEGRST]'
7035   fi
7036   ;;
7037 irix* | nonstopux*)
7038   symcode='[BCDEGRST]'
7039   ;;
7040 osf*)
7041   symcode='[BCDEGQRST]'
7042   ;;
7043 solaris*)
7044   symcode='[BDRT]'
7045   ;;
7046 sco3.2v5*)
7047   symcode='[DT]'
7048   ;;
7049 sysv4.2uw2*)
7050   symcode='[DT]'
7051   ;;
7052 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7053   symcode='[ABDT]'
7054   ;;
7055 sysv4)
7056   symcode='[DFNSTU]'
7057   ;;
7058 esac
7059
7060 # If we're using GNU nm, then use its standard symbol codes.
7061 case `$NM -V 2>&1` in
7062 *GNU* | *'with BFD'*)
7063   symcode='[ABCDGIRSTW]' ;;
7064 esac
7065
7066 # Transform an extracted symbol line into a proper C declaration.
7067 # Some systems (esp. on ia64) link data and code symbols differently,
7068 # so use this general approach.
7069 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7070
7071 # Transform an extracted symbol line into symbol name and symbol address
7072 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7073 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'"
7074
7075 # Handle CRLF in mingw tool chain
7076 opt_cr=
7077 case $build_os in
7078 mingw*)
7079   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7080   ;;
7081 esac
7082
7083 # Try without a prefix underscore, then with it.
7084 for ac_symprfx in "" "_"; do
7085
7086   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7087   symxfrm="\\1 $ac_symprfx\\2 \\2"
7088
7089   # Write the raw and C identifiers.
7090   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7091     # Fake it for dumpbin and say T for any non-static function
7092     # and D for any global variable.
7093     # Also find C++ and __fastcall symbols from MSVC++,
7094     # which start with @ or ?.
7095     lt_cv_sys_global_symbol_pipe="$AWK '"\
7096 "     {last_section=section; section=\$ 3};"\
7097 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7098 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7099 "     \$ 0!~/External *\|/{next};"\
7100 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7101 "     {if(hide[section]) next};"\
7102 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7103 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7104 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7105 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7106 "     ' prfx=^$ac_symprfx"
7107   else
7108     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7109   fi
7110   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7111
7112   # Check to see that the pipe works correctly.
7113   pipe_works=no
7114
7115   rm -f conftest*
7116   cat > conftest.$ac_ext <<_LT_EOF
7117 #ifdef __cplusplus
7118 extern "C" {
7119 #endif
7120 char nm_test_var;
7121 void nm_test_func(void);
7122 void nm_test_func(void){}
7123 #ifdef __cplusplus
7124 }
7125 #endif
7126 int main(){nm_test_var='a';nm_test_func();return(0);}
7127 _LT_EOF
7128
7129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7130   (eval $ac_compile) 2>&5
7131   ac_status=$?
7132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133   test $ac_status = 0; }; then
7134     # Now try to grab the symbols.
7135     nlist=conftest.nm
7136     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7137   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7138   ac_status=$?
7139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140   test $ac_status = 0; } && test -s "$nlist"; then
7141       # Try sorting and uniquifying the output.
7142       if sort "$nlist" | uniq > "$nlist"T; then
7143         mv -f "$nlist"T "$nlist"
7144       else
7145         rm -f "$nlist"T
7146       fi
7147
7148       # Make sure that we snagged all the symbols we need.
7149       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7150         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7151           cat <<_LT_EOF > conftest.$ac_ext
7152 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7153 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7154 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7155    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7156 # define LT_DLSYM_CONST
7157 #elif defined(__osf__)
7158 /* This system does not cope well with relocations in const data.  */
7159 # define LT_DLSYM_CONST
7160 #else
7161 # define LT_DLSYM_CONST const
7162 #endif
7163
7164 #ifdef __cplusplus
7165 extern "C" {
7166 #endif
7167
7168 _LT_EOF
7169           # Now generate the symbol file.
7170           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7171
7172           cat <<_LT_EOF >> conftest.$ac_ext
7173
7174 /* The mapping between symbol names and symbols.  */
7175 LT_DLSYM_CONST struct {
7176   const char *name;
7177   void       *address;
7178 }
7179 lt__PROGRAM__LTX_preloaded_symbols[] =
7180 {
7181   { "@PROGRAM@", (void *) 0 },
7182 _LT_EOF
7183           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7184           cat <<\_LT_EOF >> conftest.$ac_ext
7185   {0, (void *) 0}
7186 };
7187
7188 /* This works around a problem in FreeBSD linker */
7189 #ifdef FREEBSD_WORKAROUND
7190 static const void *lt_preloaded_setup() {
7191   return lt__PROGRAM__LTX_preloaded_symbols;
7192 }
7193 #endif
7194
7195 #ifdef __cplusplus
7196 }
7197 #endif
7198 _LT_EOF
7199           # Now try linking the two files.
7200           mv conftest.$ac_objext conftstm.$ac_objext
7201           lt_globsym_save_LIBS=$LIBS
7202           lt_globsym_save_CFLAGS=$CFLAGS
7203           LIBS="conftstm.$ac_objext"
7204           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7205           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7206   (eval $ac_link) 2>&5
7207   ac_status=$?
7208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7210             pipe_works=yes
7211           fi
7212           LIBS=$lt_globsym_save_LIBS
7213           CFLAGS=$lt_globsym_save_CFLAGS
7214         else
7215           echo "cannot find nm_test_func in $nlist" >&5
7216         fi
7217       else
7218         echo "cannot find nm_test_var in $nlist" >&5
7219       fi
7220     else
7221       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7222     fi
7223   else
7224     echo "$progname: failed program was:" >&5
7225     cat conftest.$ac_ext >&5
7226   fi
7227   rm -rf conftest* conftst*
7228
7229   # Do not use the global_symbol_pipe unless it works.
7230   if test "$pipe_works" = yes; then
7231     break
7232   else
7233     lt_cv_sys_global_symbol_pipe=
7234   fi
7235 done
7236
7237 fi
7238
7239 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7240   lt_cv_sys_global_symbol_to_cdecl=
7241 fi
7242 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7244 $as_echo "failed" >&6; }
7245 else
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7247 $as_echo "ok" >&6; }
7248 fi
7249
7250 # Response file support.
7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7252   nm_file_list_spec='@'
7253 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7254   nm_file_list_spec='@'
7255 fi
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7284 $as_echo_n "checking for sysroot... " >&6; }
7285
7286 # Check whether --with-sysroot was given.
7287 if test "${with_sysroot+set}" = set; then :
7288   withval=$with_sysroot;
7289 else
7290   with_sysroot=no
7291 fi
7292
7293
7294 lt_sysroot=
7295 case ${with_sysroot} in #(
7296  yes)
7297    if test "$GCC" = yes; then
7298      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7299    fi
7300    ;; #(
7301  /*)
7302    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7303    ;; #(
7304  no|'')
7305    ;; #(
7306  *)
7307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7308 $as_echo "${with_sysroot}" >&6; }
7309    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7310    ;;
7311 esac
7312
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7314 $as_echo "${lt_sysroot:-no}" >&6; }
7315
7316
7317
7318
7319
7320 # Check whether --enable-libtool-lock was given.
7321 if test "${enable_libtool_lock+set}" = set; then :
7322   enableval=$enable_libtool_lock;
7323 fi
7324
7325 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7326
7327 # Some flags need to be propagated to the compiler or linker for good
7328 # libtool support.
7329 case $host in
7330 ia64-*-hpux*)
7331   # Find out which ABI we are using.
7332   echo 'int i;' > conftest.$ac_ext
7333   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334   (eval $ac_compile) 2>&5
7335   ac_status=$?
7336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337   test $ac_status = 0; }; then
7338     case `/usr/bin/file conftest.$ac_objext` in
7339       *ELF-32*)
7340         HPUX_IA64_MODE="32"
7341         ;;
7342       *ELF-64*)
7343         HPUX_IA64_MODE="64"
7344         ;;
7345     esac
7346   fi
7347   rm -rf conftest*
7348   ;;
7349 *-*-irix6*)
7350   # Find out which ABI we are using.
7351   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7352   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7353   (eval $ac_compile) 2>&5
7354   ac_status=$?
7355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356   test $ac_status = 0; }; then
7357     if test "$lt_cv_prog_gnu_ld" = yes; then
7358       case `/usr/bin/file conftest.$ac_objext` in
7359         *32-bit*)
7360           LD="${LD-ld} -melf32bsmip"
7361           ;;
7362         *N32*)
7363           LD="${LD-ld} -melf32bmipn32"
7364           ;;
7365         *64-bit*)
7366           LD="${LD-ld} -melf64bmip"
7367         ;;
7368       esac
7369     else
7370       case `/usr/bin/file conftest.$ac_objext` in
7371         *32-bit*)
7372           LD="${LD-ld} -32"
7373           ;;
7374         *N32*)
7375           LD="${LD-ld} -n32"
7376           ;;
7377         *64-bit*)
7378           LD="${LD-ld} -64"
7379           ;;
7380       esac
7381     fi
7382   fi
7383   rm -rf conftest*
7384   ;;
7385
7386 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7387 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7388   # Find out which ABI we are using.
7389   echo 'int i;' > conftest.$ac_ext
7390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7391   (eval $ac_compile) 2>&5
7392   ac_status=$?
7393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394   test $ac_status = 0; }; then
7395     case `/usr/bin/file conftest.o` in
7396       *32-bit*)
7397         case $host in
7398           x86_64-*kfreebsd*-gnu)
7399             LD="${LD-ld} -m elf_i386_fbsd"
7400             ;;
7401           x86_64-*linux*)
7402             LD="${LD-ld} -m elf_i386"
7403             ;;
7404           ppc64-*linux*|powerpc64-*linux*)
7405             LD="${LD-ld} -m elf32ppclinux"
7406             ;;
7407           s390x-*linux*)
7408             LD="${LD-ld} -m elf_s390"
7409             ;;
7410           sparc64-*linux*)
7411             LD="${LD-ld} -m elf32_sparc"
7412             ;;
7413         esac
7414         ;;
7415       *64-bit*)
7416         case $host in
7417           x86_64-*kfreebsd*-gnu)
7418             LD="${LD-ld} -m elf_x86_64_fbsd"
7419             ;;
7420           x86_64-*linux*)
7421             LD="${LD-ld} -m elf_x86_64"
7422             ;;
7423           ppc*-*linux*|powerpc*-*linux*)
7424             LD="${LD-ld} -m elf64ppc"
7425             ;;
7426           s390*-*linux*|s390*-*tpf*)
7427             LD="${LD-ld} -m elf64_s390"
7428             ;;
7429           sparc*-*linux*)
7430             LD="${LD-ld} -m elf64_sparc"
7431             ;;
7432         esac
7433         ;;
7434     esac
7435   fi
7436   rm -rf conftest*
7437   ;;
7438
7439 *-*-sco3.2v5*)
7440   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7441   SAVE_CFLAGS="$CFLAGS"
7442   CFLAGS="$CFLAGS -belf"
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7444 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7445 if ${lt_cv_cc_needs_belf+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h.  */
7456
7457 int
7458 main ()
7459 {
7460
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 if ac_fn_c_try_link "$LINENO"; then :
7466   lt_cv_cc_needs_belf=yes
7467 else
7468   lt_cv_cc_needs_belf=no
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext \
7471     conftest$ac_exeext conftest.$ac_ext
7472      ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7480 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7481   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7482     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7483     CFLAGS="$SAVE_CFLAGS"
7484   fi
7485   ;;
7486 *-*solaris*)
7487   # Find out which ABI we are using.
7488   echo 'int i;' > conftest.$ac_ext
7489   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490   (eval $ac_compile) 2>&5
7491   ac_status=$?
7492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493   test $ac_status = 0; }; then
7494     case `/usr/bin/file conftest.o` in
7495     *64-bit*)
7496       case $lt_cv_prog_gnu_ld in
7497       yes*)
7498         case $host in
7499         i?86-*-solaris*)
7500           LD="${LD-ld} -m elf_x86_64"
7501           ;;
7502         sparc*-*-solaris*)
7503           LD="${LD-ld} -m elf64_sparc"
7504           ;;
7505         esac
7506         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7507         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7508           LD="${LD-ld}_sol2"
7509         fi
7510         ;;
7511       *)
7512         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7513           LD="${LD-ld} -64"
7514         fi
7515         ;;
7516       esac
7517       ;;
7518     esac
7519   fi
7520   rm -rf conftest*
7521   ;;
7522 esac
7523
7524 need_locks="$enable_libtool_lock"
7525
7526 if test -n "$ac_tool_prefix"; then
7527   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}mt; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   if test -n "$MANIFEST_TOOL"; then
7535   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7555 if test -n "$MANIFEST_TOOL"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7557 $as_echo "$MANIFEST_TOOL" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7566   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7567   # Extract the first word of "mt", so it can be a program name with args.
7568 set dummy mt; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   if test -n "$ac_ct_MANIFEST_TOOL"; then
7575   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582     for ac_exec_ext in '' $ac_executable_extensions; do
7583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589   done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7595 if test -n "$ac_ct_MANIFEST_TOOL"; then
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7597 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7598 else
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7604     MANIFEST_TOOL=":"
7605   else
7606     case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7613   fi
7614 else
7615   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7616 fi
7617
7618 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7620 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7621 if ${lt_cv_path_mainfest_tool+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   lt_cv_path_mainfest_tool=no
7625   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7626   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7627   cat conftest.err >&5
7628   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7629     lt_cv_path_mainfest_tool=yes
7630   fi
7631   rm -f conftest*
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7634 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7635 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7636   MANIFEST_TOOL=:
7637 fi
7638
7639
7640
7641
7642
7643
7644   case $host_os in
7645     rhapsody* | darwin*)
7646     if test -n "$ac_tool_prefix"; then
7647   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7648 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   if test -n "$DSYMUTIL"; then
7655   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662     for ac_exec_ext in '' $ac_executable_extensions; do
7663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669   done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7675 if test -n "$DSYMUTIL"; then
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7677 $as_echo "$DSYMUTIL" >&6; }
7678 else
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682
7683
7684 fi
7685 if test -z "$ac_cv_prog_DSYMUTIL"; then
7686   ac_ct_DSYMUTIL=$DSYMUTIL
7687   # Extract the first word of "dsymutil", so it can be a program name with args.
7688 set dummy dsymutil; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   if test -n "$ac_ct_DSYMUTIL"; then
7695   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700   IFS=$as_save_IFS
7701   test -z "$as_dir" && as_dir=.
7702     for ac_exec_ext in '' $ac_executable_extensions; do
7703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709   done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7715 if test -n "$ac_ct_DSYMUTIL"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7717 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7718 else
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723   if test "x$ac_ct_DSYMUTIL" = x; then
7724     DSYMUTIL=":"
7725   else
7726     case $cross_compiling:$ac_tool_warned in
7727 yes:)
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7730 ac_tool_warned=yes ;;
7731 esac
7732     DSYMUTIL=$ac_ct_DSYMUTIL
7733   fi
7734 else
7735   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7736 fi
7737
7738     if test -n "$ac_tool_prefix"; then
7739   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7740 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_prog_NMEDIT+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   if test -n "$NMEDIT"; then
7747   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761   done
7762 IFS=$as_save_IFS
7763
7764 fi
7765 fi
7766 NMEDIT=$ac_cv_prog_NMEDIT
7767 if test -n "$NMEDIT"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7769 $as_echo "$NMEDIT" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776 fi
7777 if test -z "$ac_cv_prog_NMEDIT"; then
7778   ac_ct_NMEDIT=$NMEDIT
7779   # Extract the first word of "nmedit", so it can be a program name with args.
7780 set dummy nmedit; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -n "$ac_ct_NMEDIT"; then
7787   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7807 if test -n "$ac_ct_NMEDIT"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7809 $as_echo "$ac_ct_NMEDIT" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815   if test "x$ac_ct_NMEDIT" = x; then
7816     NMEDIT=":"
7817   else
7818     case $cross_compiling:$ac_tool_warned in
7819 yes:)
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822 ac_tool_warned=yes ;;
7823 esac
7824     NMEDIT=$ac_ct_NMEDIT
7825   fi
7826 else
7827   NMEDIT="$ac_cv_prog_NMEDIT"
7828 fi
7829
7830     if test -n "$ac_tool_prefix"; then
7831   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_LIPO+:} false; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   if test -n "$LIPO"; then
7839   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844   IFS=$as_save_IFS
7845   test -z "$as_dir" && as_dir=.
7846     for ac_exec_ext in '' $ac_executable_extensions; do
7847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850     break 2
7851   fi
7852 done
7853   done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 LIPO=$ac_cv_prog_LIPO
7859 if test -n "$LIPO"; then
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7861 $as_echo "$LIPO" >&6; }
7862 else
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867
7868 fi
7869 if test -z "$ac_cv_prog_LIPO"; then
7870   ac_ct_LIPO=$LIPO
7871   # Extract the first word of "lipo", so it can be a program name with args.
7872 set dummy lipo; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   if test -n "$ac_ct_LIPO"; then
7879   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888     ac_cv_prog_ac_ct_LIPO="lipo"
7889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7899 if test -n "$ac_ct_LIPO"; then
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7901 $as_echo "$ac_ct_LIPO" >&6; }
7902 else
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907   if test "x$ac_ct_LIPO" = x; then
7908     LIPO=":"
7909   else
7910     case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916     LIPO=$ac_ct_LIPO
7917   fi
7918 else
7919   LIPO="$ac_cv_prog_LIPO"
7920 fi
7921
7922     if test -n "$ac_tool_prefix"; then
7923   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7924 set dummy ${ac_tool_prefix}otool; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_OTOOL+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   if test -n "$OTOOL"; then
7931   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938     for ac_exec_ext in '' $ac_executable_extensions; do
7939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945   done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 OTOOL=$ac_cv_prog_OTOOL
7951 if test -n "$OTOOL"; then
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7953 $as_echo "$OTOOL" >&6; }
7954 else
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960 fi
7961 if test -z "$ac_cv_prog_OTOOL"; then
7962   ac_ct_OTOOL=$OTOOL
7963   # Extract the first word of "otool", so it can be a program name with args.
7964 set dummy otool; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   if test -n "$ac_ct_OTOOL"; then
7971   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978     for ac_exec_ext in '' $ac_executable_extensions; do
7979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980     ac_cv_prog_ac_ct_OTOOL="otool"
7981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985   done
7986 IFS=$as_save_IFS
7987
7988 fi
7989 fi
7990 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7991 if test -n "$ac_ct_OTOOL"; then
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7993 $as_echo "$ac_ct_OTOOL" >&6; }
7994 else
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999   if test "x$ac_ct_OTOOL" = x; then
8000     OTOOL=":"
8001   else
8002     case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008     OTOOL=$ac_ct_OTOOL
8009   fi
8010 else
8011   OTOOL="$ac_cv_prog_OTOOL"
8012 fi
8013
8014     if test -n "$ac_tool_prefix"; then
8015   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_OTOOL64+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   if test -n "$OTOOL64"; then
8023   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030     for ac_exec_ext in '' $ac_executable_extensions; do
8031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037   done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 OTOOL64=$ac_cv_prog_OTOOL64
8043 if test -n "$OTOOL64"; then
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8045 $as_echo "$OTOOL64" >&6; }
8046 else
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052 fi
8053 if test -z "$ac_cv_prog_OTOOL64"; then
8054   ac_ct_OTOOL64=$OTOOL64
8055   # Extract the first word of "otool64", so it can be a program name with args.
8056 set dummy otool64; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   if test -n "$ac_ct_OTOOL64"; then
8063   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070     for ac_exec_ext in '' $ac_executable_extensions; do
8071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072     ac_cv_prog_ac_ct_OTOOL64="otool64"
8073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077   done
8078 IFS=$as_save_IFS
8079
8080 fi
8081 fi
8082 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8083 if test -n "$ac_ct_OTOOL64"; then
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8085 $as_echo "$ac_ct_OTOOL64" >&6; }
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091   if test "x$ac_ct_OTOOL64" = x; then
8092     OTOOL64=":"
8093   else
8094     case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100     OTOOL64=$ac_ct_OTOOL64
8101   fi
8102 else
8103   OTOOL64="$ac_cv_prog_OTOOL64"
8104 fi
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8133 $as_echo_n "checking for -single_module linker flag... " >&6; }
8134 if ${lt_cv_apple_cc_single_mod+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   lt_cv_apple_cc_single_mod=no
8138       if test -z "${LT_MULTI_MODULE}"; then
8139         # By default we will add the -single_module flag. You can override
8140         # by either setting the environment variable LT_MULTI_MODULE
8141         # non-empty at configure time, or by adding -multi_module to the
8142         # link flags.
8143         rm -rf libconftest.dylib*
8144         echo "int foo(void){return 1;}" > conftest.c
8145         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8146 -dynamiclib -Wl,-single_module conftest.c" >&5
8147         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8148           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8149         _lt_result=$?
8150         # If there is a non-empty error log, and "single_module"
8151         # appears in it, assume the flag caused a linker warning
8152         if test -s conftest.err && $GREP single_module conftest.err; then
8153           cat conftest.err >&5
8154         # Otherwise, if the output was created with a 0 exit code from
8155         # the compiler, it worked.
8156         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8157           lt_cv_apple_cc_single_mod=yes
8158         else
8159           cat conftest.err >&5
8160         fi
8161         rm -rf libconftest.dylib*
8162         rm -f conftest.*
8163       fi
8164 fi
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8166 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8167
8168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8169 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8170 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_ld_exported_symbols_list=no
8174       save_LDFLAGS=$LDFLAGS
8175       echo "_main" > conftest.sym
8176       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8177       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h.  */
8179
8180 int
8181 main ()
8182 {
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189   lt_cv_ld_exported_symbols_list=yes
8190 else
8191   lt_cv_ld_exported_symbols_list=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext \
8194     conftest$ac_exeext conftest.$ac_ext
8195         LDFLAGS="$save_LDFLAGS"
8196
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8199 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8200
8201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8202 $as_echo_n "checking for -force_load linker flag... " >&6; }
8203 if ${lt_cv_ld_force_load+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   lt_cv_ld_force_load=no
8207       cat > conftest.c << _LT_EOF
8208 int forced_loaded() { return 2;}
8209 _LT_EOF
8210       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8211       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8212       echo "$AR cru libconftest.a conftest.o" >&5
8213       $AR cru libconftest.a conftest.o 2>&5
8214       echo "$RANLIB libconftest.a" >&5
8215       $RANLIB libconftest.a 2>&5
8216       cat > conftest.c << _LT_EOF
8217 int main() { return 0;}
8218 _LT_EOF
8219       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8220       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8221       _lt_result=$?
8222       if test -s conftest.err && $GREP force_load conftest.err; then
8223         cat conftest.err >&5
8224       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8225         lt_cv_ld_force_load=yes
8226       else
8227         cat conftest.err >&5
8228       fi
8229         rm -f conftest.err libconftest.a conftest conftest.c
8230         rm -rf conftest.dSYM
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8234 $as_echo "$lt_cv_ld_force_load" >&6; }
8235     case $host_os in
8236     rhapsody* | darwin1.[012])
8237       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8238     darwin1.*)
8239       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8240     darwin*) # darwin 5.x on
8241       # if running on 10.5 or later, the deployment target defaults
8242       # to the OS version, if on x86, and 10.4, the deployment
8243       # target defaults to 10.4. Don't you love it?
8244       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8245         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8246           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8247         10.[012]*)
8248           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8249         10.*)
8250           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8251       esac
8252     ;;
8253   esac
8254     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8255       _lt_dar_single_mod='$single_module'
8256     fi
8257     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8258       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8259     else
8260       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8261     fi
8262     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8263       _lt_dsymutil='~$DSYMUTIL $lib || :'
8264     else
8265       _lt_dsymutil=
8266     fi
8267     ;;
8268   esac
8269
8270 for ac_header in dlfcn.h
8271 do :
8272   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8273 "
8274 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8275   cat >>confdefs.h <<_ACEOF
8276 #define HAVE_DLFCN_H 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285
8286
8287 # Set options
8288 enable_win32_dll=yes
8289
8290 case $host in
8291 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8292   if test -n "$ac_tool_prefix"; then
8293   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}as; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_AS+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   if test -n "$AS"; then
8301   ac_cv_prog_AS="$AS" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308     for ac_exec_ext in '' $ac_executable_extensions; do
8309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310     ac_cv_prog_AS="${ac_tool_prefix}as"
8311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315   done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 AS=$ac_cv_prog_AS
8321 if test -n "$AS"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8323 $as_echo "$AS" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 fi
8331 if test -z "$ac_cv_prog_AS"; then
8332   ac_ct_AS=$AS
8333   # Extract the first word of "as", so it can be a program name with args.
8334 set dummy as; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$ac_ct_AS"; then
8341   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350     ac_cv_prog_ac_ct_AS="as"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8361 if test -n "$ac_ct_AS"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8363 $as_echo "$ac_ct_AS" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369   if test "x$ac_ct_AS" = x; then
8370     AS="false"
8371   else
8372     case $cross_compiling:$ac_tool_warned in
8373 yes:)
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8377 esac
8378     AS=$ac_ct_AS
8379   fi
8380 else
8381   AS="$ac_cv_prog_AS"
8382 fi
8383
8384   if test -n "$ac_tool_prefix"; then
8385   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_DLLTOOL+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$DLLTOOL"; then
8393   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 DLLTOOL=$ac_cv_prog_DLLTOOL
8413 if test -n "$DLLTOOL"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8415 $as_echo "$DLLTOOL" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_DLLTOOL"; then
8424   ac_ct_DLLTOOL=$DLLTOOL
8425   # Extract the first word of "dlltool", so it can be a program name with args.
8426 set dummy dlltool; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$ac_ct_DLLTOOL"; then
8433   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8453 if test -n "$ac_ct_DLLTOOL"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8455 $as_echo "$ac_ct_DLLTOOL" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461   if test "x$ac_ct_DLLTOOL" = x; then
8462     DLLTOOL="false"
8463   else
8464     case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470     DLLTOOL=$ac_ct_DLLTOOL
8471   fi
8472 else
8473   DLLTOOL="$ac_cv_prog_DLLTOOL"
8474 fi
8475
8476   if test -n "$ac_tool_prefix"; then
8477   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8478 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_OBJDUMP+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   if test -n "$OBJDUMP"; then
8485   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492     for ac_exec_ext in '' $ac_executable_extensions; do
8493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499   done
8500 IFS=$as_save_IFS
8501
8502 fi
8503 fi
8504 OBJDUMP=$ac_cv_prog_OBJDUMP
8505 if test -n "$OBJDUMP"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8507 $as_echo "$OBJDUMP" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514 fi
8515 if test -z "$ac_cv_prog_OBJDUMP"; then
8516   ac_ct_OBJDUMP=$OBJDUMP
8517   # Extract the first word of "objdump", so it can be a program name with args.
8518 set dummy objdump; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   if test -n "$ac_ct_OBJDUMP"; then
8525   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_exec_ext in '' $ac_executable_extensions; do
8533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539   done
8540 IFS=$as_save_IFS
8541
8542 fi
8543 fi
8544 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8545 if test -n "$ac_ct_OBJDUMP"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8547 $as_echo "$ac_ct_OBJDUMP" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553   if test "x$ac_ct_OBJDUMP" = x; then
8554     OBJDUMP="false"
8555   else
8556     case $cross_compiling:$ac_tool_warned in
8557 yes:)
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560 ac_tool_warned=yes ;;
8561 esac
8562     OBJDUMP=$ac_ct_OBJDUMP
8563   fi
8564 else
8565   OBJDUMP="$ac_cv_prog_OBJDUMP"
8566 fi
8567
8568   ;;
8569 esac
8570
8571 test -z "$AS" && AS=as
8572
8573
8574
8575
8576
8577 test -z "$DLLTOOL" && DLLTOOL=dlltool
8578
8579
8580
8581
8582
8583 test -z "$OBJDUMP" && OBJDUMP=objdump
8584
8585
8586
8587
8588
8589
8590
8591         enable_dlopen=no
8592
8593
8594
8595             # Check whether --enable-shared was given.
8596 if test "${enable_shared+set}" = set; then :
8597   enableval=$enable_shared; p=${PACKAGE-default}
8598     case $enableval in
8599     yes) enable_shared=yes ;;
8600     no) enable_shared=no ;;
8601     *)
8602       enable_shared=no
8603       # Look at the argument we got.  We use all the common list separators.
8604       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8605       for pkg in $enableval; do
8606         IFS="$lt_save_ifs"
8607         if test "X$pkg" = "X$p"; then
8608           enable_shared=yes
8609         fi
8610       done
8611       IFS="$lt_save_ifs"
8612       ;;
8613     esac
8614 else
8615   enable_shared=yes
8616 fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626   # Check whether --enable-static was given.
8627 if test "${enable_static+set}" = set; then :
8628   enableval=$enable_static; p=${PACKAGE-default}
8629     case $enableval in
8630     yes) enable_static=yes ;;
8631     no) enable_static=no ;;
8632     *)
8633      enable_static=no
8634       # Look at the argument we got.  We use all the common list separators.
8635       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8636       for pkg in $enableval; do
8637         IFS="$lt_save_ifs"
8638         if test "X$pkg" = "X$p"; then
8639           enable_static=yes
8640         fi
8641       done
8642       IFS="$lt_save_ifs"
8643       ;;
8644     esac
8645 else
8646   enable_static=yes
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 # Check whether --with-pic was given.
8659 if test "${with_pic+set}" = set; then :
8660   withval=$with_pic; lt_p=${PACKAGE-default}
8661     case $withval in
8662     yes|no) pic_mode=$withval ;;
8663     *)
8664       pic_mode=default
8665       # Look at the argument we got.  We use all the common list separators.
8666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8667       for lt_pkg in $withval; do
8668         IFS="$lt_save_ifs"
8669         if test "X$lt_pkg" = "X$lt_p"; then
8670           pic_mode=yes
8671         fi
8672       done
8673       IFS="$lt_save_ifs"
8674       ;;
8675     esac
8676 else
8677   pic_mode=default
8678 fi
8679
8680
8681 test -z "$pic_mode" && pic_mode=default
8682
8683
8684
8685
8686
8687
8688
8689   # Check whether --enable-fast-install was given.
8690 if test "${enable_fast_install+set}" = set; then :
8691   enableval=$enable_fast_install; p=${PACKAGE-default}
8692     case $enableval in
8693     yes) enable_fast_install=yes ;;
8694     no) enable_fast_install=no ;;
8695     *)
8696       enable_fast_install=no
8697       # Look at the argument we got.  We use all the common list separators.
8698       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8699       for pkg in $enableval; do
8700         IFS="$lt_save_ifs"
8701         if test "X$pkg" = "X$p"; then
8702           enable_fast_install=yes
8703         fi
8704       done
8705       IFS="$lt_save_ifs"
8706       ;;
8707     esac
8708 else
8709   enable_fast_install=yes
8710 fi
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 # This can be used to rebuild libtool when needed
8723 LIBTOOL_DEPS="$ltmain"
8724
8725 # Always use our own libtool.
8726 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757 test -z "$LN_S" && LN_S="ln -s"
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772 if test -n "${ZSH_VERSION+set}" ; then
8773    setopt NO_GLOB_SUBST
8774 fi
8775
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8777 $as_echo_n "checking for objdir... " >&6; }
8778 if ${lt_cv_objdir+:} false; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781   rm -f .libs 2>/dev/null
8782 mkdir .libs 2>/dev/null
8783 if test -d .libs; then
8784   lt_cv_objdir=.libs
8785 else
8786   # MS-DOS does not allow filenames that begin with a dot.
8787   lt_cv_objdir=_libs
8788 fi
8789 rmdir .libs 2>/dev/null
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8792 $as_echo "$lt_cv_objdir" >&6; }
8793 objdir=$lt_cv_objdir
8794
8795
8796
8797
8798
8799 cat >>confdefs.h <<_ACEOF
8800 #define LT_OBJDIR "$lt_cv_objdir/"
8801 _ACEOF
8802
8803
8804
8805
8806 case $host_os in
8807 aix3*)
8808   # AIX sometimes has problems with the GCC collect2 program.  For some
8809   # reason, if we set the COLLECT_NAMES environment variable, the problems
8810   # vanish in a puff of smoke.
8811   if test "X${COLLECT_NAMES+set}" != Xset; then
8812     COLLECT_NAMES=
8813     export COLLECT_NAMES
8814   fi
8815   ;;
8816 esac
8817
8818 # Global variables:
8819 ofile=libtool
8820 can_build_shared=yes
8821
8822 # All known linkers require a `.a' archive for static linking (except MSVC,
8823 # which needs '.lib').
8824 libext=a
8825
8826 with_gnu_ld="$lt_cv_prog_gnu_ld"
8827
8828 old_CC="$CC"
8829 old_CFLAGS="$CFLAGS"
8830
8831 # Set sane defaults for various variables
8832 test -z "$CC" && CC=cc
8833 test -z "$LTCC" && LTCC=$CC
8834 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8835 test -z "$LD" && LD=ld
8836 test -z "$ac_objext" && ac_objext=o
8837
8838 for cc_temp in $compiler""; do
8839   case $cc_temp in
8840     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8841     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8842     \-*) ;;
8843     *) break;;
8844   esac
8845 done
8846 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8847
8848
8849 # Only perform the check for file, if the check method requires it
8850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8851 case $deplibs_check_method in
8852 file_magic*)
8853   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8855 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8856 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   case $MAGIC_CMD in
8860 [\\/*] |  ?:[\\/]*)
8861   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8862   ;;
8863 *)
8864   lt_save_MAGIC_CMD="$MAGIC_CMD"
8865   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8866   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8867   for ac_dir in $ac_dummy; do
8868     IFS="$lt_save_ifs"
8869     test -z "$ac_dir" && ac_dir=.
8870     if test -f $ac_dir/${ac_tool_prefix}file; then
8871       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8872       if test -n "$file_magic_test_file"; then
8873         case $deplibs_check_method in
8874         "file_magic "*)
8875           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8876           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8877           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8878             $EGREP "$file_magic_regex" > /dev/null; then
8879             :
8880           else
8881             cat <<_LT_EOF 1>&2
8882
8883 *** Warning: the command libtool uses to detect shared libraries,
8884 *** $file_magic_cmd, produces output that libtool cannot recognize.
8885 *** The result is that libtool may fail to recognize shared libraries
8886 *** as such.  This will affect the creation of libtool libraries that
8887 *** depend on shared libraries, but programs linked with such libtool
8888 *** libraries will work regardless of this problem.  Nevertheless, you
8889 *** may want to report the problem to your system manager and/or to
8890 *** bug-libtool@gnu.org
8891
8892 _LT_EOF
8893           fi ;;
8894         esac
8895       fi
8896       break
8897     fi
8898   done
8899   IFS="$lt_save_ifs"
8900   MAGIC_CMD="$lt_save_MAGIC_CMD"
8901   ;;
8902 esac
8903 fi
8904
8905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8906 if test -n "$MAGIC_CMD"; then
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8908 $as_echo "$MAGIC_CMD" >&6; }
8909 else
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915
8916
8917
8918 if test -z "$lt_cv_path_MAGIC_CMD"; then
8919   if test -n "$ac_tool_prefix"; then
8920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8921 $as_echo_n "checking for file... " >&6; }
8922 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   case $MAGIC_CMD in
8926 [\\/*] |  ?:[\\/]*)
8927   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8928   ;;
8929 *)
8930   lt_save_MAGIC_CMD="$MAGIC_CMD"
8931   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8932   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8933   for ac_dir in $ac_dummy; do
8934     IFS="$lt_save_ifs"
8935     test -z "$ac_dir" && ac_dir=.
8936     if test -f $ac_dir/file; then
8937       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8938       if test -n "$file_magic_test_file"; then
8939         case $deplibs_check_method in
8940         "file_magic "*)
8941           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8942           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8943           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8944             $EGREP "$file_magic_regex" > /dev/null; then
8945             :
8946           else
8947             cat <<_LT_EOF 1>&2
8948
8949 *** Warning: the command libtool uses to detect shared libraries,
8950 *** $file_magic_cmd, produces output that libtool cannot recognize.
8951 *** The result is that libtool may fail to recognize shared libraries
8952 *** as such.  This will affect the creation of libtool libraries that
8953 *** depend on shared libraries, but programs linked with such libtool
8954 *** libraries will work regardless of this problem.  Nevertheless, you
8955 *** may want to report the problem to your system manager and/or to
8956 *** bug-libtool@gnu.org
8957
8958 _LT_EOF
8959           fi ;;
8960         esac
8961       fi
8962       break
8963     fi
8964   done
8965   IFS="$lt_save_ifs"
8966   MAGIC_CMD="$lt_save_MAGIC_CMD"
8967   ;;
8968 esac
8969 fi
8970
8971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8972 if test -n "$MAGIC_CMD"; then
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8974 $as_echo "$MAGIC_CMD" >&6; }
8975 else
8976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 $as_echo "no" >&6; }
8978 fi
8979
8980
8981   else
8982     MAGIC_CMD=:
8983   fi
8984 fi
8985
8986   fi
8987   ;;
8988 esac
8989
8990 # Use C for the default configuration in the libtool script
8991
8992 lt_save_CC="$CC"
8993 ac_ext=c
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999
9000 # Source file extension for C test sources.
9001 ac_ext=c
9002
9003 # Object file extension for compiled C test sources.
9004 objext=o
9005 objext=$objext
9006
9007 # Code to be used in simple compile tests
9008 lt_simple_compile_test_code="int some_variable = 0;"
9009
9010 # Code to be used in simple link tests
9011 lt_simple_link_test_code='int main(){return(0);}'
9012
9013
9014
9015
9016
9017
9018
9019 # If no C compiler was specified, use CC.
9020 LTCC=${LTCC-"$CC"}
9021
9022 # If no C compiler flags were specified, use CFLAGS.
9023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9024
9025 # Allow CC to be a program name with arguments.
9026 compiler=$CC
9027
9028 # Save the default compiler, since it gets overwritten when the other
9029 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9030 compiler_DEFAULT=$CC
9031
9032 # save warnings/boilerplate of simple test code
9033 ac_outfile=conftest.$ac_objext
9034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9036 _lt_compiler_boilerplate=`cat conftest.err`
9037 $RM conftest*
9038
9039 ac_outfile=conftest.$ac_objext
9040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9042 _lt_linker_boilerplate=`cat conftest.err`
9043 $RM -r conftest*
9044
9045
9046 ## CAVEAT EMPTOR:
9047 ## There is no encapsulation within the following macros, do not change
9048 ## the running order or otherwise move them around unless you know exactly
9049 ## what you are doing...
9050 if test -n "$compiler"; then
9051
9052 lt_prog_compiler_no_builtin_flag=
9053
9054 if test "$GCC" = yes; then
9055   case $cc_basename in
9056   nvcc*)
9057     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9058   *)
9059     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9060   esac
9061
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9063 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9064 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   lt_cv_prog_compiler_rtti_exceptions=no
9068    ac_outfile=conftest.$ac_objext
9069    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9070    lt_compiler_flag="-fno-rtti -fno-exceptions"
9071    # Insert the option either (1) after the last *FLAGS variable, or
9072    # (2) before a word containing "conftest.", or (3) at the end.
9073    # Note that $ac_compile itself does not contain backslashes and begins
9074    # with a dollar sign (not a hyphen), so the echo should work correctly.
9075    # The option is referenced via a variable to avoid confusing sed.
9076    lt_compile=`echo "$ac_compile" | $SED \
9077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079    -e 's:$: $lt_compiler_flag:'`
9080    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9081    (eval "$lt_compile" 2>conftest.err)
9082    ac_status=$?
9083    cat conftest.err >&5
9084    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085    if (exit $ac_status) && test -s "$ac_outfile"; then
9086      # The compiler can only warn and ignore the option if not recognized
9087      # So say no if there are warnings other than the usual output.
9088      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9089      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9090      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9091        lt_cv_prog_compiler_rtti_exceptions=yes
9092      fi
9093    fi
9094    $RM conftest*
9095
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9098 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9099
9100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9101     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9102 else
9103     :
9104 fi
9105
9106 fi
9107
9108
9109
9110
9111
9112
9113   lt_prog_compiler_wl=
9114 lt_prog_compiler_pic=
9115 lt_prog_compiler_static=
9116
9117
9118   if test "$GCC" = yes; then
9119     lt_prog_compiler_wl='-Wl,'
9120     lt_prog_compiler_static='-static'
9121
9122     case $host_os in
9123       aix*)
9124       # All AIX code is PIC.
9125       if test "$host_cpu" = ia64; then
9126         # AIX 5 now supports IA64 processor
9127         lt_prog_compiler_static='-Bstatic'
9128       fi
9129       ;;
9130
9131     amigaos*)
9132       case $host_cpu in
9133       powerpc)
9134             # see comment about AmigaOS4 .so support
9135             lt_prog_compiler_pic='-fPIC'
9136         ;;
9137       m68k)
9138             # FIXME: we need at least 68020 code to build shared libraries, but
9139             # adding the `-m68020' flag to GCC prevents building anything better,
9140             # like `-m68040'.
9141             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9142         ;;
9143       esac
9144       ;;
9145
9146     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9147       # PIC is the default for these OSes.
9148       ;;
9149
9150     mingw* | cygwin* | pw32* | os2* | cegcc*)
9151       # This hack is so that the source file can tell whether it is being
9152       # built for inclusion in a dll (and should export symbols for example).
9153       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9154       # (--disable-auto-import) libraries
9155       lt_prog_compiler_pic='-DDLL_EXPORT'
9156       ;;
9157
9158     darwin* | rhapsody*)
9159       # PIC is the default on this platform
9160       # Common symbols not allowed in MH_DYLIB files
9161       lt_prog_compiler_pic='-fno-common'
9162       ;;
9163
9164     haiku*)
9165       # PIC is the default for Haiku.
9166       # The "-static" flag exists, but is broken.
9167       lt_prog_compiler_static=
9168       ;;
9169
9170     hpux*)
9171       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9172       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9173       # sets the default TLS model and affects inlining.
9174       case $host_cpu in
9175       hppa*64*)
9176         # +Z the default
9177         ;;
9178       *)
9179         lt_prog_compiler_pic='-fPIC'
9180         ;;
9181       esac
9182       ;;
9183
9184     interix[3-9]*)
9185       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9186       # Instead, we relocate shared libraries at runtime.
9187       ;;
9188
9189     msdosdjgpp*)
9190       # Just because we use GCC doesn't mean we suddenly get shared libraries
9191       # on systems that don't support them.
9192       lt_prog_compiler_can_build_shared=no
9193       enable_shared=no
9194       ;;
9195
9196     *nto* | *qnx*)
9197       # QNX uses GNU C++, but need to define -shared option too, otherwise
9198       # it will coredump.
9199       lt_prog_compiler_pic='-fPIC -shared'
9200       ;;
9201
9202     sysv4*MP*)
9203       if test -d /usr/nec; then
9204         lt_prog_compiler_pic=-Kconform_pic
9205       fi
9206       ;;
9207
9208     *)
9209       lt_prog_compiler_pic='-fPIC'
9210       ;;
9211     esac
9212
9213     case $cc_basename in
9214     nvcc*) # Cuda Compiler Driver 2.2
9215       lt_prog_compiler_wl='-Xlinker '
9216       if test -n "$lt_prog_compiler_pic"; then
9217         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9218       fi
9219       ;;
9220     esac
9221   else
9222     # PORTME Check for flag to pass linker flags through the system compiler.
9223     case $host_os in
9224     aix*)
9225       lt_prog_compiler_wl='-Wl,'
9226       if test "$host_cpu" = ia64; then
9227         # AIX 5 now supports IA64 processor
9228         lt_prog_compiler_static='-Bstatic'
9229       else
9230         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9231       fi
9232       ;;
9233
9234     mingw* | cygwin* | pw32* | os2* | cegcc*)
9235       # This hack is so that the source file can tell whether it is being
9236       # built for inclusion in a dll (and should export symbols for example).
9237       lt_prog_compiler_pic='-DDLL_EXPORT'
9238       ;;
9239
9240     hpux9* | hpux10* | hpux11*)
9241       lt_prog_compiler_wl='-Wl,'
9242       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9243       # not for PA HP-UX.
9244       case $host_cpu in
9245       hppa*64*|ia64*)
9246         # +Z the default
9247         ;;
9248       *)
9249         lt_prog_compiler_pic='+Z'
9250         ;;
9251       esac
9252       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9253       lt_prog_compiler_static='${wl}-a ${wl}archive'
9254       ;;
9255
9256     irix5* | irix6* | nonstopux*)
9257       lt_prog_compiler_wl='-Wl,'
9258       # PIC (with -KPIC) is the default.
9259       lt_prog_compiler_static='-non_shared'
9260       ;;
9261
9262     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9263       case $cc_basename in
9264       # old Intel for x86_64 which still supported -KPIC.
9265       ecc*)
9266         lt_prog_compiler_wl='-Wl,'
9267         lt_prog_compiler_pic='-KPIC'
9268         lt_prog_compiler_static='-static'
9269         ;;
9270       # icc used to be incompatible with GCC.
9271       # ICC 10 doesn't accept -KPIC any more.
9272       icc* | ifort*)
9273         lt_prog_compiler_wl='-Wl,'
9274         lt_prog_compiler_pic='-fPIC'
9275         lt_prog_compiler_static='-static'
9276         ;;
9277       # Lahey Fortran 8.1.
9278       lf95*)
9279         lt_prog_compiler_wl='-Wl,'
9280         lt_prog_compiler_pic='--shared'
9281         lt_prog_compiler_static='--static'
9282         ;;
9283       nagfor*)
9284         # NAG Fortran compiler
9285         lt_prog_compiler_wl='-Wl,-Wl,,'
9286         lt_prog_compiler_pic='-PIC'
9287         lt_prog_compiler_static='-Bstatic'
9288         ;;
9289       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9290         # Portland Group compilers (*not* the Pentium gcc compiler,
9291         # which looks to be a dead project)
9292         lt_prog_compiler_wl='-Wl,'
9293         lt_prog_compiler_pic='-fpic'
9294         lt_prog_compiler_static='-Bstatic'
9295         ;;
9296       ccc*)
9297         lt_prog_compiler_wl='-Wl,'
9298         # All Alpha code is PIC.
9299         lt_prog_compiler_static='-non_shared'
9300         ;;
9301       xl* | bgxl* | bgf* | mpixl*)
9302         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9303         lt_prog_compiler_wl='-Wl,'
9304         lt_prog_compiler_pic='-qpic'
9305         lt_prog_compiler_static='-qstaticlink'
9306         ;;
9307       *)
9308         case `$CC -V 2>&1 | sed 5q` in
9309         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9310           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9311           lt_prog_compiler_pic='-KPIC'
9312           lt_prog_compiler_static='-Bstatic'
9313           lt_prog_compiler_wl=''
9314           ;;
9315         *Sun\ F* | *Sun*Fortran*)
9316           lt_prog_compiler_pic='-KPIC'
9317           lt_prog_compiler_static='-Bstatic'
9318           lt_prog_compiler_wl='-Qoption ld '
9319           ;;
9320         *Sun\ C*)
9321           # Sun C 5.9
9322           lt_prog_compiler_pic='-KPIC'
9323           lt_prog_compiler_static='-Bstatic'
9324           lt_prog_compiler_wl='-Wl,'
9325           ;;
9326         *Intel*\ [CF]*Compiler*)
9327           lt_prog_compiler_wl='-Wl,'
9328           lt_prog_compiler_pic='-fPIC'
9329           lt_prog_compiler_static='-static'
9330           ;;
9331         *Portland\ Group*)
9332           lt_prog_compiler_wl='-Wl,'
9333           lt_prog_compiler_pic='-fpic'
9334           lt_prog_compiler_static='-Bstatic'
9335           ;;
9336         esac
9337         ;;
9338       esac
9339       ;;
9340
9341     newsos6)
9342       lt_prog_compiler_pic='-KPIC'
9343       lt_prog_compiler_static='-Bstatic'
9344       ;;
9345
9346     *nto* | *qnx*)
9347       # QNX uses GNU C++, but need to define -shared option too, otherwise
9348       # it will coredump.
9349       lt_prog_compiler_pic='-fPIC -shared'
9350       ;;
9351
9352     osf3* | osf4* | osf5*)
9353       lt_prog_compiler_wl='-Wl,'
9354       # All OSF/1 code is PIC.
9355       lt_prog_compiler_static='-non_shared'
9356       ;;
9357
9358     rdos*)
9359       lt_prog_compiler_static='-non_shared'
9360       ;;
9361
9362     solaris*)
9363       lt_prog_compiler_pic='-KPIC'
9364       lt_prog_compiler_static='-Bstatic'
9365       case $cc_basename in
9366       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9367         lt_prog_compiler_wl='-Qoption ld ';;
9368       *)
9369         lt_prog_compiler_wl='-Wl,';;
9370       esac
9371       ;;
9372
9373     sunos4*)
9374       lt_prog_compiler_wl='-Qoption ld '
9375       lt_prog_compiler_pic='-PIC'
9376       lt_prog_compiler_static='-Bstatic'
9377       ;;
9378
9379     sysv4 | sysv4.2uw2* | sysv4.3*)
9380       lt_prog_compiler_wl='-Wl,'
9381       lt_prog_compiler_pic='-KPIC'
9382       lt_prog_compiler_static='-Bstatic'
9383       ;;
9384
9385     sysv4*MP*)
9386       if test -d /usr/nec ;then
9387         lt_prog_compiler_pic='-Kconform_pic'
9388         lt_prog_compiler_static='-Bstatic'
9389       fi
9390       ;;
9391
9392     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9393       lt_prog_compiler_wl='-Wl,'
9394       lt_prog_compiler_pic='-KPIC'
9395       lt_prog_compiler_static='-Bstatic'
9396       ;;
9397
9398     unicos*)
9399       lt_prog_compiler_wl='-Wl,'
9400       lt_prog_compiler_can_build_shared=no
9401       ;;
9402
9403     uts4*)
9404       lt_prog_compiler_pic='-pic'
9405       lt_prog_compiler_static='-Bstatic'
9406       ;;
9407
9408     *)
9409       lt_prog_compiler_can_build_shared=no
9410       ;;
9411     esac
9412   fi
9413
9414 case $host_os in
9415   # For platforms which do not support PIC, -DPIC is meaningless:
9416   *djgpp*)
9417     lt_prog_compiler_pic=
9418     ;;
9419   *)
9420     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9421     ;;
9422 esac
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9425 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9426 if ${lt_cv_prog_compiler_pic+:} false; then :
9427   $as_echo_n "(cached) " >&6
9428 else
9429   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9432 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9433 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9434
9435 #
9436 # Check to make sure the PIC flag actually works.
9437 #
9438 if test -n "$lt_prog_compiler_pic"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9441 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9442   $as_echo_n "(cached) " >&6
9443 else
9444   lt_cv_prog_compiler_pic_works=no
9445    ac_outfile=conftest.$ac_objext
9446    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9447    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9448    # Insert the option either (1) after the last *FLAGS variable, or
9449    # (2) before a word containing "conftest.", or (3) at the end.
9450    # Note that $ac_compile itself does not contain backslashes and begins
9451    # with a dollar sign (not a hyphen), so the echo should work correctly.
9452    # The option is referenced via a variable to avoid confusing sed.
9453    lt_compile=`echo "$ac_compile" | $SED \
9454    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9456    -e 's:$: $lt_compiler_flag:'`
9457    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9458    (eval "$lt_compile" 2>conftest.err)
9459    ac_status=$?
9460    cat conftest.err >&5
9461    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462    if (exit $ac_status) && test -s "$ac_outfile"; then
9463      # The compiler can only warn and ignore the option if not recognized
9464      # So say no if there are warnings other than the usual output.
9465      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9466      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9467      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9468        lt_cv_prog_compiler_pic_works=yes
9469      fi
9470    fi
9471    $RM conftest*
9472
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9476
9477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9478     case $lt_prog_compiler_pic in
9479      "" | " "*) ;;
9480      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9481      esac
9482 else
9483     lt_prog_compiler_pic=
9484      lt_prog_compiler_can_build_shared=no
9485 fi
9486
9487 fi
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499 #
9500 # Check to make sure the static flag actually works.
9501 #
9502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9504 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9505 if ${lt_cv_prog_compiler_static_works+:} false; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   lt_cv_prog_compiler_static_works=no
9509    save_LDFLAGS="$LDFLAGS"
9510    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9511    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9512    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9513      # The linker can only warn and ignore the option if not recognized
9514      # So say no if there are warnings
9515      if test -s conftest.err; then
9516        # Append any errors to the config.log.
9517        cat conftest.err 1>&5
9518        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9519        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9520        if diff conftest.exp conftest.er2 >/dev/null; then
9521          lt_cv_prog_compiler_static_works=yes
9522        fi
9523      else
9524        lt_cv_prog_compiler_static_works=yes
9525      fi
9526    fi
9527    $RM -r conftest*
9528    LDFLAGS="$save_LDFLAGS"
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9532 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9533
9534 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9535     :
9536 else
9537     lt_prog_compiler_static=
9538 fi
9539
9540
9541
9542
9543
9544
9545
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9548 if ${lt_cv_prog_compiler_c_o+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   lt_cv_prog_compiler_c_o=no
9552    $RM -r conftest 2>/dev/null
9553    mkdir conftest
9554    cd conftest
9555    mkdir out
9556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9557
9558    lt_compiler_flag="-o out/conftest2.$ac_objext"
9559    # Insert the option either (1) after the last *FLAGS variable, or
9560    # (2) before a word containing "conftest.", or (3) at the end.
9561    # Note that $ac_compile itself does not contain backslashes and begins
9562    # with a dollar sign (not a hyphen), so the echo should work correctly.
9563    lt_compile=`echo "$ac_compile" | $SED \
9564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9566    -e 's:$: $lt_compiler_flag:'`
9567    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9568    (eval "$lt_compile" 2>out/conftest.err)
9569    ac_status=$?
9570    cat out/conftest.err >&5
9571    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9573    then
9574      # The compiler can only warn and ignore the option if not recognized
9575      # So say no if there are warnings
9576      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9579        lt_cv_prog_compiler_c_o=yes
9580      fi
9581    fi
9582    chmod u+w . 2>&5
9583    $RM conftest*
9584    # SGI C++ compiler will create directory out/ii_files/ for
9585    # template instantiation
9586    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9587    $RM out/* && rmdir out
9588    cd ..
9589    $RM -r conftest
9590    $RM conftest*
9591
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9595
9596
9597
9598
9599
9600
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9603 if ${lt_cv_prog_compiler_c_o+:} false; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   lt_cv_prog_compiler_c_o=no
9607    $RM -r conftest 2>/dev/null
9608    mkdir conftest
9609    cd conftest
9610    mkdir out
9611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9612
9613    lt_compiler_flag="-o out/conftest2.$ac_objext"
9614    # Insert the option either (1) after the last *FLAGS variable, or
9615    # (2) before a word containing "conftest.", or (3) at the end.
9616    # Note that $ac_compile itself does not contain backslashes and begins
9617    # with a dollar sign (not a hyphen), so the echo should work correctly.
9618    lt_compile=`echo "$ac_compile" | $SED \
9619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9621    -e 's:$: $lt_compiler_flag:'`
9622    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9623    (eval "$lt_compile" 2>out/conftest.err)
9624    ac_status=$?
9625    cat out/conftest.err >&5
9626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9628    then
9629      # The compiler can only warn and ignore the option if not recognized
9630      # So say no if there are warnings
9631      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9632      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9633      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9634        lt_cv_prog_compiler_c_o=yes
9635      fi
9636    fi
9637    chmod u+w . 2>&5
9638    $RM conftest*
9639    # SGI C++ compiler will create directory out/ii_files/ for
9640    # template instantiation
9641    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9642    $RM out/* && rmdir out
9643    cd ..
9644    $RM -r conftest
9645    $RM conftest*
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9650
9651
9652
9653
9654 hard_links="nottested"
9655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9656   # do not overwrite the value of need_locks provided by the user
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9658 $as_echo_n "checking if we can lock with hard links... " >&6; }
9659   hard_links=yes
9660   $RM conftest*
9661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9662   touch conftest.a
9663   ln conftest.a conftest.b 2>&5 || hard_links=no
9664   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9666 $as_echo "$hard_links" >&6; }
9667   if test "$hard_links" = no; then
9668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9670     need_locks=warn
9671   fi
9672 else
9673   need_locks=no
9674 fi
9675
9676
9677
9678
9679
9680
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9683
9684   runpath_var=
9685   allow_undefined_flag=
9686   always_export_symbols=no
9687   archive_cmds=
9688   archive_expsym_cmds=
9689   compiler_needs_object=no
9690   enable_shared_with_static_runtimes=no
9691   export_dynamic_flag_spec=
9692   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9693   hardcode_automatic=no
9694   hardcode_direct=no
9695   hardcode_direct_absolute=no
9696   hardcode_libdir_flag_spec=
9697   hardcode_libdir_separator=
9698   hardcode_minus_L=no
9699   hardcode_shlibpath_var=unsupported
9700   inherit_rpath=no
9701   link_all_deplibs=unknown
9702   module_cmds=
9703   module_expsym_cmds=
9704   old_archive_from_new_cmds=
9705   old_archive_from_expsyms_cmds=
9706   thread_safe_flag_spec=
9707   whole_archive_flag_spec=
9708   # include_expsyms should be a list of space-separated symbols to be *always*
9709   # included in the symbol list
9710   include_expsyms=
9711   # exclude_expsyms can be an extended regexp of symbols to exclude
9712   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9713   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9714   # as well as any symbol that contains `d'.
9715   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9716   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9717   # platforms (ab)use it in PIC code, but their linkers get confused if
9718   # the symbol is explicitly referenced.  Since portable code cannot
9719   # rely on this symbol name, it's probably fine to never include it in
9720   # preloaded symbol tables.
9721   # Exclude shared library initialization/finalization symbols.
9722   extract_expsyms_cmds=
9723
9724   case $host_os in
9725   cygwin* | mingw* | pw32* | cegcc*)
9726     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9727     # When not using gcc, we currently assume that we are using
9728     # Microsoft Visual C++.
9729     if test "$GCC" != yes; then
9730       with_gnu_ld=no
9731     fi
9732     ;;
9733   interix*)
9734     # we just hope/assume this is gcc and not c89 (= MSVC++)
9735     with_gnu_ld=yes
9736     ;;
9737   openbsd*)
9738     with_gnu_ld=no
9739     ;;
9740   linux* | k*bsd*-gnu | gnu*)
9741     link_all_deplibs=no
9742     ;;
9743   esac
9744
9745   ld_shlibs=yes
9746
9747   # On some targets, GNU ld is compatible enough with the native linker
9748   # that we're better off using the native interface for both.
9749   lt_use_gnu_ld_interface=no
9750   if test "$with_gnu_ld" = yes; then
9751     case $host_os in
9752       aix*)
9753         # The AIX port of GNU ld has always aspired to compatibility
9754         # with the native linker.  However, as the warning in the GNU ld
9755         # block says, versions before 2.19.5* couldn't really create working
9756         # shared libraries, regardless of the interface used.
9757         case `$LD -v 2>&1` in
9758           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9759           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9760           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9761           *)
9762             lt_use_gnu_ld_interface=yes
9763             ;;
9764         esac
9765         ;;
9766       *)
9767         lt_use_gnu_ld_interface=yes
9768         ;;
9769     esac
9770   fi
9771
9772   if test "$lt_use_gnu_ld_interface" = yes; then
9773     # If archive_cmds runs LD, not CC, wlarc should be empty
9774     wlarc='${wl}'
9775
9776     # Set some defaults for GNU ld with shared library support. These
9777     # are reset later if shared libraries are not supported. Putting them
9778     # here allows them to be overridden if necessary.
9779     runpath_var=LD_RUN_PATH
9780     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781     export_dynamic_flag_spec='${wl}--export-dynamic'
9782     # ancient GNU ld didn't support --whole-archive et. al.
9783     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9784       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9785     else
9786       whole_archive_flag_spec=
9787     fi
9788     supports_anon_versioning=no
9789     case `$LD -v 2>&1` in
9790       *GNU\ gold*) supports_anon_versioning=yes ;;
9791       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9792       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9793       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9794       *\ 2.11.*) ;; # other 2.11 versions
9795       *) supports_anon_versioning=yes ;;
9796     esac
9797
9798     # See if GNU ld supports shared libraries.
9799     case $host_os in
9800     aix[3-9]*)
9801       # On AIX/PPC, the GNU linker is very broken
9802       if test "$host_cpu" != ia64; then
9803         ld_shlibs=no
9804         cat <<_LT_EOF 1>&2
9805
9806 *** Warning: the GNU linker, at least up to release 2.19, is reported
9807 *** to be unable to reliably create shared libraries on AIX.
9808 *** Therefore, libtool is disabling shared libraries support.  If you
9809 *** really care for shared libraries, you may want to install binutils
9810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9811 *** You will then need to restart the configuration process.
9812
9813 _LT_EOF
9814       fi
9815       ;;
9816
9817     amigaos*)
9818       case $host_cpu in
9819       powerpc)
9820             # see comment about AmigaOS4 .so support
9821             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822             archive_expsym_cmds=''
9823         ;;
9824       m68k)
9825             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)'
9826             hardcode_libdir_flag_spec='-L$libdir'
9827             hardcode_minus_L=yes
9828         ;;
9829       esac
9830       ;;
9831
9832     beos*)
9833       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9834         allow_undefined_flag=unsupported
9835         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9836         # support --undefined.  This deserves some investigation.  FIXME
9837         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838       else
9839         ld_shlibs=no
9840       fi
9841       ;;
9842
9843     cygwin* | mingw* | pw32* | cegcc*)
9844       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9845       # as there is no search path for DLLs.
9846       hardcode_libdir_flag_spec='-L$libdir'
9847       export_dynamic_flag_spec='${wl}--export-all-symbols'
9848       allow_undefined_flag=unsupported
9849       always_export_symbols=no
9850       enable_shared_with_static_runtimes=yes
9851       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'
9852       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9853
9854       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9855         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9856         # If the export-symbols file already is a .def file (1st line
9857         # is EXPORTS), use it as is; otherwise, prepend...
9858         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9859           cp $export_symbols $output_objdir/$soname.def;
9860         else
9861           echo EXPORTS > $output_objdir/$soname.def;
9862           cat $export_symbols >> $output_objdir/$soname.def;
9863         fi~
9864         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9865       else
9866         ld_shlibs=no
9867       fi
9868       ;;
9869
9870     haiku*)
9871       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872       link_all_deplibs=yes
9873       ;;
9874
9875     interix[3-9]*)
9876       hardcode_direct=no
9877       hardcode_shlibpath_var=no
9878       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9879       export_dynamic_flag_spec='${wl}-E'
9880       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9881       # Instead, shared libraries are loaded at an image base (0x10000000 by
9882       # default) and relocated if they conflict, which is a slow very memory
9883       # consuming and fragmenting process.  To avoid this, we pick a random,
9884       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9885       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9886       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9887       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'
9888       ;;
9889
9890     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9891       tmp_diet=no
9892       if test "$host_os" = linux-dietlibc; then
9893         case $cc_basename in
9894           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9895         esac
9896       fi
9897       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9898          && test "$tmp_diet" = no
9899       then
9900         tmp_addflag=' $pic_flag'
9901         tmp_sharedflag='-shared'
9902         case $cc_basename,$host_cpu in
9903         pgcc*)                          # Portland Group C compiler
9904           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'
9905           tmp_addflag=' $pic_flag'
9906           ;;
9907         pgf77* | pgf90* | pgf95* | pgfortran*)
9908                                         # Portland Group f77 and f90 compilers
9909           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'
9910           tmp_addflag=' $pic_flag -Mnomain' ;;
9911         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9912           tmp_addflag=' -i_dynamic' ;;
9913         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9914           tmp_addflag=' -i_dynamic -nofor_main' ;;
9915         ifc* | ifort*)                  # Intel Fortran compiler
9916           tmp_addflag=' -nofor_main' ;;
9917         lf95*)                          # Lahey Fortran 8.1
9918           whole_archive_flag_spec=
9919           tmp_sharedflag='--shared' ;;
9920         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9921           tmp_sharedflag='-qmkshrobj'
9922           tmp_addflag= ;;
9923         nvcc*)  # Cuda Compiler Driver 2.2
9924           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'
9925           compiler_needs_object=yes
9926           ;;
9927         esac
9928         case `$CC -V 2>&1 | sed 5q` in
9929         *Sun\ C*)                       # Sun C 5.9
9930           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'
9931           compiler_needs_object=yes
9932           tmp_sharedflag='-G' ;;
9933         *Sun\ F*)                       # Sun Fortran 8.3
9934           tmp_sharedflag='-G' ;;
9935         esac
9936         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9937
9938         if test "x$supports_anon_versioning" = xyes; then
9939           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9940             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9941             echo "local: *; };" >> $output_objdir/$libname.ver~
9942             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9943         fi
9944
9945         case $cc_basename in
9946         xlf* | bgf* | bgxlf* | mpixlf*)
9947           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9948           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9949           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9951           if test "x$supports_anon_versioning" = xyes; then
9952             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9953               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9954               echo "local: *; };" >> $output_objdir/$libname.ver~
9955               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9956           fi
9957           ;;
9958         esac
9959       else
9960         ld_shlibs=no
9961       fi
9962       ;;
9963
9964     netbsd* | netbsdelf*-gnu)
9965       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9967         wlarc=
9968       else
9969         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9970         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9971       fi
9972       ;;
9973
9974     solaris*)
9975       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9976         ld_shlibs=no
9977         cat <<_LT_EOF 1>&2
9978
9979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9980 *** create shared libraries on Solaris systems.  Therefore, libtool
9981 *** is disabling shared libraries support.  We urge you to upgrade GNU
9982 *** binutils to release 2.9.1 or newer.  Another option is to modify
9983 *** your PATH or compiler configuration so that the native linker is
9984 *** used, and then restart.
9985
9986 _LT_EOF
9987       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9988         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9989         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9990       else
9991         ld_shlibs=no
9992       fi
9993       ;;
9994
9995     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9996       case `$LD -v 2>&1` in
9997         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9998         ld_shlibs=no
9999         cat <<_LT_EOF 1>&2
10000
10001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10002 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10003 *** is disabling shared libraries support.  We urge you to upgrade GNU
10004 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10005 *** your PATH or compiler configuration so that the native linker is
10006 *** used, and then restart.
10007
10008 _LT_EOF
10009         ;;
10010         *)
10011           # For security reasons, it is highly recommended that you always
10012           # use absolute paths for naming shared libraries, and exclude the
10013           # DT_RUNPATH tag from executables and libraries.  But doing so
10014           # requires that you compile everything twice, which is a pain.
10015           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10016             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10019           else
10020             ld_shlibs=no
10021           fi
10022         ;;
10023       esac
10024       ;;
10025
10026     sunos4*)
10027       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10028       wlarc=
10029       hardcode_direct=yes
10030       hardcode_shlibpath_var=no
10031       ;;
10032
10033     *)
10034       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10037       else
10038         ld_shlibs=no
10039       fi
10040       ;;
10041     esac
10042
10043     if test "$ld_shlibs" = no; then
10044       runpath_var=
10045       hardcode_libdir_flag_spec=
10046       export_dynamic_flag_spec=
10047       whole_archive_flag_spec=
10048     fi
10049   else
10050     # PORTME fill in a description of your system's linker (not GNU ld)
10051     case $host_os in
10052     aix3*)
10053       allow_undefined_flag=unsupported
10054       always_export_symbols=yes
10055       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'
10056       # Note: this linker hardcodes the directories in LIBPATH if there
10057       # are no directories specified by -L.
10058       hardcode_minus_L=yes
10059       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10060         # Neither direct hardcoding nor static linking is supported with a
10061         # broken collect2.
10062         hardcode_direct=unsupported
10063       fi
10064       ;;
10065
10066     aix[4-9]*)
10067       if test "$host_cpu" = ia64; then
10068         # On IA64, the linker does run time linking by default, so we don't
10069         # have to do anything special.
10070         aix_use_runtimelinking=no
10071         exp_sym_flag='-Bexport'
10072         no_entry_flag=""
10073       else
10074         # If we're using GNU nm, then we don't want the "-C" option.
10075         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10076         # Also, AIX nm treats weak defined symbols like other global
10077         # defined symbols, whereas GNU nm marks them as "W".
10078         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10079           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'
10080         else
10081           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'
10082         fi
10083         aix_use_runtimelinking=no
10084
10085         # Test if we are trying to use run time linking or normal
10086         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10087         # need to do runtime linking.
10088         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10089           for ld_flag in $LDFLAGS; do
10090           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10091             aix_use_runtimelinking=yes
10092             break
10093           fi
10094           done
10095           ;;
10096         esac
10097
10098         exp_sym_flag='-bexport'
10099         no_entry_flag='-bnoentry'
10100       fi
10101
10102       # When large executables or shared objects are built, AIX ld can
10103       # have problems creating the table of contents.  If linking a library
10104       # or program results in "error TOC overflow" add -mminimal-toc to
10105       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10106       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10107
10108       archive_cmds=''
10109       hardcode_direct=yes
10110       hardcode_direct_absolute=yes
10111       hardcode_libdir_separator=':'
10112       link_all_deplibs=yes
10113       file_list_spec='${wl}-f,'
10114
10115       if test "$GCC" = yes; then
10116         case $host_os in aix4.[012]|aix4.[012].*)
10117         # We only want to do this on AIX 4.2 and lower, the check
10118         # below for broken collect2 doesn't work under 4.3+
10119           collect2name=`${CC} -print-prog-name=collect2`
10120           if test -f "$collect2name" &&
10121            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10122           then
10123           # We have reworked collect2
10124           :
10125           else
10126           # We have old collect2
10127           hardcode_direct=unsupported
10128           # It fails to find uninstalled libraries when the uninstalled
10129           # path is not listed in the libpath.  Setting hardcode_minus_L
10130           # to unsupported forces relinking
10131           hardcode_minus_L=yes
10132           hardcode_libdir_flag_spec='-L$libdir'
10133           hardcode_libdir_separator=
10134           fi
10135           ;;
10136         esac
10137         shared_flag='-shared'
10138         if test "$aix_use_runtimelinking" = yes; then
10139           shared_flag="$shared_flag "'${wl}-G'
10140         fi
10141         link_all_deplibs=no
10142       else
10143         # not using gcc
10144         if test "$host_cpu" = ia64; then
10145         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10146         # chokes on -Wl,-G. The following line is correct:
10147           shared_flag='-G'
10148         else
10149           if test "$aix_use_runtimelinking" = yes; then
10150             shared_flag='${wl}-G'
10151           else
10152             shared_flag='${wl}-bM:SRE'
10153           fi
10154         fi
10155       fi
10156
10157       export_dynamic_flag_spec='${wl}-bexpall'
10158       # It seems that -bexpall does not export symbols beginning with
10159       # underscore (_), so it is better to generate a list of symbols to export.
10160       always_export_symbols=yes
10161       if test "$aix_use_runtimelinking" = yes; then
10162         # Warning - without using the other runtime loading flags (-brtl),
10163         # -berok will link without error, but may produce a broken library.
10164         allow_undefined_flag='-berok'
10165         # Determine the default libpath from the value encoded in an
10166         # empty executable.
10167         if test "${lt_cv_aix_libpath+set}" = set; then
10168   aix_libpath=$lt_cv_aix_libpath
10169 else
10170   if ${lt_cv_aix_libpath_+:} false; then :
10171   $as_echo_n "(cached) " >&6
10172 else
10173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175
10176 int
10177 main ()
10178 {
10179
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"; then :
10185
10186   lt_aix_libpath_sed='
10187       /Import File Strings/,/^$/ {
10188           /^0/ {
10189               s/^0  *\([^ ]*\) *$/\1/
10190               p
10191           }
10192       }'
10193   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194   # Check for a 64-bit object if we didn't find anything.
10195   if test -z "$lt_cv_aix_libpath_"; then
10196     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10197   fi
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200     conftest$ac_exeext conftest.$ac_ext
10201   if test -z "$lt_cv_aix_libpath_"; then
10202     lt_cv_aix_libpath_="/usr/lib:/lib"
10203   fi
10204
10205 fi
10206
10207   aix_libpath=$lt_cv_aix_libpath_
10208 fi
10209
10210         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10211         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"
10212       else
10213         if test "$host_cpu" = ia64; then
10214           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10215           allow_undefined_flag="-z nodefs"
10216           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"
10217         else
10218          # Determine the default libpath from the value encoded in an
10219          # empty executable.
10220          if test "${lt_cv_aix_libpath+set}" = set; then
10221   aix_libpath=$lt_cv_aix_libpath
10222 else
10223   if ${lt_cv_aix_libpath_+:} false; then :
10224   $as_echo_n "(cached) " >&6
10225 else
10226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h.  */
10228
10229 int
10230 main ()
10231 {
10232
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238
10239   lt_aix_libpath_sed='
10240       /Import File Strings/,/^$/ {
10241           /^0/ {
10242               s/^0  *\([^ ]*\) *$/\1/
10243               p
10244           }
10245       }'
10246   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10247   # Check for a 64-bit object if we didn't find anything.
10248   if test -z "$lt_cv_aix_libpath_"; then
10249     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10250   fi
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext \
10253     conftest$ac_exeext conftest.$ac_ext
10254   if test -z "$lt_cv_aix_libpath_"; then
10255     lt_cv_aix_libpath_="/usr/lib:/lib"
10256   fi
10257
10258 fi
10259
10260   aix_libpath=$lt_cv_aix_libpath_
10261 fi
10262
10263          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10264           # Warning - without using the other run time loading flags,
10265           # -berok will link without error, but may produce a broken library.
10266           no_undefined_flag=' ${wl}-bernotok'
10267           allow_undefined_flag=' ${wl}-berok'
10268           if test "$with_gnu_ld" = yes; then
10269             # We only use this code for GNU lds that support --whole-archive.
10270             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10271           else
10272             # Exported symbols can be pulled into shared objects from archives
10273             whole_archive_flag_spec='$convenience'
10274           fi
10275           archive_cmds_need_lc=yes
10276           # This is similar to how AIX traditionally builds its shared libraries.
10277           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'
10278         fi
10279       fi
10280       ;;
10281
10282     amigaos*)
10283       case $host_cpu in
10284       powerpc)
10285             # see comment about AmigaOS4 .so support
10286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287             archive_expsym_cmds=''
10288         ;;
10289       m68k)
10290             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)'
10291             hardcode_libdir_flag_spec='-L$libdir'
10292             hardcode_minus_L=yes
10293         ;;
10294       esac
10295       ;;
10296
10297     bsdi[45]*)
10298       export_dynamic_flag_spec=-rdynamic
10299       ;;
10300
10301     cygwin* | mingw* | pw32* | cegcc*)
10302       # When not using gcc, we currently assume that we are using
10303       # Microsoft Visual C++.
10304       # hardcode_libdir_flag_spec is actually meaningless, as there is
10305       # no search path for DLLs.
10306       case $cc_basename in
10307       cl*)
10308         # Native MSVC
10309         hardcode_libdir_flag_spec=' '
10310         allow_undefined_flag=unsupported
10311         always_export_symbols=yes
10312         file_list_spec='@'
10313         # Tell ltmain to make .lib files, not .a files.
10314         libext=lib
10315         # Tell ltmain to make .dll files, not .so files.
10316         shrext_cmds=".dll"
10317         # FIXME: Setting linknames here is a bad hack.
10318         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10319         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10321           else
10322             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10323           fi~
10324           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10325           linknames='
10326         # The linker will not automatically build a static lib if we build a DLL.
10327         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10328         enable_shared_with_static_runtimes=yes
10329         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10330         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10331         # Don't use ranlib
10332         old_postinstall_cmds='chmod 644 $oldlib'
10333         postlink_cmds='lt_outputfile="@OUTPUT@"~
10334           lt_tool_outputfile="@TOOL_OUTPUT@"~
10335           case $lt_outputfile in
10336             *.exe|*.EXE) ;;
10337             *)
10338               lt_outputfile="$lt_outputfile.exe"
10339               lt_tool_outputfile="$lt_tool_outputfile.exe"
10340               ;;
10341           esac~
10342           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10343             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10344             $RM "$lt_outputfile.manifest";
10345           fi'
10346         ;;
10347       *)
10348         # Assume MSVC wrapper
10349         hardcode_libdir_flag_spec=' '
10350         allow_undefined_flag=unsupported
10351         # Tell ltmain to make .lib files, not .a files.
10352         libext=lib
10353         # Tell ltmain to make .dll files, not .so files.
10354         shrext_cmds=".dll"
10355         # FIXME: Setting linknames here is a bad hack.
10356         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10357         # The linker will automatically build a .lib file if we build a DLL.
10358         old_archive_from_new_cmds='true'
10359         # FIXME: Should let the user specify the lib program.
10360         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10361         enable_shared_with_static_runtimes=yes
10362         ;;
10363       esac
10364       ;;
10365
10366     darwin* | rhapsody*)
10367
10368
10369   archive_cmds_need_lc=no
10370   hardcode_direct=no
10371   hardcode_automatic=yes
10372   hardcode_shlibpath_var=unsupported
10373   if test "$lt_cv_ld_force_load" = "yes"; then
10374     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\"`'
10375
10376   else
10377     whole_archive_flag_spec=''
10378   fi
10379   link_all_deplibs=yes
10380   allow_undefined_flag="$_lt_dar_allow_undefined"
10381   case $cc_basename in
10382      ifort*) _lt_dar_can_shared=yes ;;
10383      *) _lt_dar_can_shared=$GCC ;;
10384   esac
10385   if test "$_lt_dar_can_shared" = "yes"; then
10386     output_verbose_link_cmd=func_echo_all
10387     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10388     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10389     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}"
10390     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}"
10391
10392   else
10393   ld_shlibs=no
10394   fi
10395
10396       ;;
10397
10398     dgux*)
10399       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400       hardcode_libdir_flag_spec='-L$libdir'
10401       hardcode_shlibpath_var=no
10402       ;;
10403
10404     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10405     # support.  Future versions do this automatically, but an explicit c++rt0.o
10406     # does not break anything, and helps significantly (at the cost of a little
10407     # extra space).
10408     freebsd2.2*)
10409       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10410       hardcode_libdir_flag_spec='-R$libdir'
10411       hardcode_direct=yes
10412       hardcode_shlibpath_var=no
10413       ;;
10414
10415     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10416     freebsd2.*)
10417       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10418       hardcode_direct=yes
10419       hardcode_minus_L=yes
10420       hardcode_shlibpath_var=no
10421       ;;
10422
10423     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10424     freebsd* | dragonfly*)
10425       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10426       hardcode_libdir_flag_spec='-R$libdir'
10427       hardcode_direct=yes
10428       hardcode_shlibpath_var=no
10429       ;;
10430
10431     hpux9*)
10432       if test "$GCC" = yes; then
10433         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'
10434       else
10435         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'
10436       fi
10437       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10438       hardcode_libdir_separator=:
10439       hardcode_direct=yes
10440
10441       # hardcode_minus_L: Not really in the search PATH,
10442       # but as the default location of the library.
10443       hardcode_minus_L=yes
10444       export_dynamic_flag_spec='${wl}-E'
10445       ;;
10446
10447     hpux10*)
10448       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10449         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10450       else
10451         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10452       fi
10453       if test "$with_gnu_ld" = no; then
10454         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10455         hardcode_libdir_separator=:
10456         hardcode_direct=yes
10457         hardcode_direct_absolute=yes
10458         export_dynamic_flag_spec='${wl}-E'
10459         # hardcode_minus_L: Not really in the search PATH,
10460         # but as the default location of the library.
10461         hardcode_minus_L=yes
10462       fi
10463       ;;
10464
10465     hpux11*)
10466       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10467         case $host_cpu in
10468         hppa*64*)
10469           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470           ;;
10471         ia64*)
10472           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10473           ;;
10474         *)
10475           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10476           ;;
10477         esac
10478       else
10479         case $host_cpu in
10480         hppa*64*)
10481           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10482           ;;
10483         ia64*)
10484           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10485           ;;
10486         *)
10487
10488           # Older versions of the 11.00 compiler do not understand -b yet
10489           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10491 $as_echo_n "checking if $CC understands -b... " >&6; }
10492 if ${lt_cv_prog_compiler__b+:} false; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   lt_cv_prog_compiler__b=no
10496    save_LDFLAGS="$LDFLAGS"
10497    LDFLAGS="$LDFLAGS -b"
10498    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10500      # The linker can only warn and ignore the option if not recognized
10501      # So say no if there are warnings
10502      if test -s conftest.err; then
10503        # Append any errors to the config.log.
10504        cat conftest.err 1>&5
10505        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10506        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10507        if diff conftest.exp conftest.er2 >/dev/null; then
10508          lt_cv_prog_compiler__b=yes
10509        fi
10510      else
10511        lt_cv_prog_compiler__b=yes
10512      fi
10513    fi
10514    $RM -r conftest*
10515    LDFLAGS="$save_LDFLAGS"
10516
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10519 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10520
10521 if test x"$lt_cv_prog_compiler__b" = xyes; then
10522     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10523 else
10524     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10525 fi
10526
10527           ;;
10528         esac
10529       fi
10530       if test "$with_gnu_ld" = no; then
10531         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10532         hardcode_libdir_separator=:
10533
10534         case $host_cpu in
10535         hppa*64*|ia64*)
10536           hardcode_direct=no
10537           hardcode_shlibpath_var=no
10538           ;;
10539         *)
10540           hardcode_direct=yes
10541           hardcode_direct_absolute=yes
10542           export_dynamic_flag_spec='${wl}-E'
10543
10544           # hardcode_minus_L: Not really in the search PATH,
10545           # but as the default location of the library.
10546           hardcode_minus_L=yes
10547           ;;
10548         esac
10549       fi
10550       ;;
10551
10552     irix5* | irix6* | nonstopux*)
10553       if test "$GCC" = yes; then
10554         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'
10555         # Try to use the -exported_symbol ld option, if it does not
10556         # work, assume that -exports_file does not work either and
10557         # implicitly export all symbols.
10558         # This should be the same for all languages, so no per-tag cache variable.
10559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10560 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10561 if ${lt_cv_irix_exported_symbol+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   save_LDFLAGS="$LDFLAGS"
10565            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10566            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h.  */
10568 int foo (void) { return 0; }
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571   lt_cv_irix_exported_symbol=yes
10572 else
10573   lt_cv_irix_exported_symbol=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext \
10576     conftest$ac_exeext conftest.$ac_ext
10577            LDFLAGS="$save_LDFLAGS"
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10580 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10581         if test "$lt_cv_irix_exported_symbol" = yes; then
10582           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'
10583         fi
10584       else
10585         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'
10586         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'
10587       fi
10588       archive_cmds_need_lc='no'
10589       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10590       hardcode_libdir_separator=:
10591       inherit_rpath=yes
10592       link_all_deplibs=yes
10593       ;;
10594
10595     netbsd* | netbsdelf*-gnu)
10596       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10597         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10598       else
10599         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10600       fi
10601       hardcode_libdir_flag_spec='-R$libdir'
10602       hardcode_direct=yes
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     newsos6)
10607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608       hardcode_direct=yes
10609       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10610       hardcode_libdir_separator=:
10611       hardcode_shlibpath_var=no
10612       ;;
10613
10614     *nto* | *qnx*)
10615       ;;
10616
10617     openbsd*)
10618       if test -f /usr/libexec/ld.so; then
10619         hardcode_direct=yes
10620         hardcode_shlibpath_var=no
10621         hardcode_direct_absolute=yes
10622         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10623           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10624           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10625           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10626           export_dynamic_flag_spec='${wl}-E'
10627         else
10628           case $host_os in
10629            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10630              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10631              hardcode_libdir_flag_spec='-R$libdir'
10632              ;;
10633            *)
10634              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10636              ;;
10637           esac
10638         fi
10639       else
10640         ld_shlibs=no
10641       fi
10642       ;;
10643
10644     os2*)
10645       hardcode_libdir_flag_spec='-L$libdir'
10646       hardcode_minus_L=yes
10647       allow_undefined_flag=unsupported
10648       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'
10649       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10650       ;;
10651
10652     osf3*)
10653       if test "$GCC" = yes; then
10654         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10655         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'
10656       else
10657         allow_undefined_flag=' -expect_unresolved \*'
10658         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'
10659       fi
10660       archive_cmds_need_lc='no'
10661       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662       hardcode_libdir_separator=:
10663       ;;
10664
10665     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10666       if test "$GCC" = yes; then
10667         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10668         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'
10669         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10670       else
10671         allow_undefined_flag=' -expect_unresolved \*'
10672         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'
10673         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~
10674         $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'
10675
10676         # Both c and cxx compiler support -rpath directly
10677         hardcode_libdir_flag_spec='-rpath $libdir'
10678       fi
10679       archive_cmds_need_lc='no'
10680       hardcode_libdir_separator=:
10681       ;;
10682
10683     solaris*)
10684       no_undefined_flag=' -z defs'
10685       if test "$GCC" = yes; then
10686         wlarc='${wl}'
10687         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10688         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10689           $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'
10690       else
10691         case `$CC -V 2>&1` in
10692         *"Compilers 5.0"*)
10693           wlarc=''
10694           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10695           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10696           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10697           ;;
10698         *)
10699           wlarc='${wl}'
10700           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10701           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10702           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10703           ;;
10704         esac
10705       fi
10706       hardcode_libdir_flag_spec='-R$libdir'
10707       hardcode_shlibpath_var=no
10708       case $host_os in
10709       solaris2.[0-5] | solaris2.[0-5].*) ;;
10710       *)
10711         # The compiler driver will combine and reorder linker options,
10712         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10713         # but is careful enough not to reorder.
10714         # Supported since Solaris 2.6 (maybe 2.5.1?)
10715         if test "$GCC" = yes; then
10716           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10717         else
10718           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10719         fi
10720         ;;
10721       esac
10722       link_all_deplibs=yes
10723       ;;
10724
10725     sunos4*)
10726       if test "x$host_vendor" = xsequent; then
10727         # Use $CC to link under sequent, because it throws in some extra .o
10728         # files that make .init and .fini sections work.
10729         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10730       else
10731         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10732       fi
10733       hardcode_libdir_flag_spec='-L$libdir'
10734       hardcode_direct=yes
10735       hardcode_minus_L=yes
10736       hardcode_shlibpath_var=no
10737       ;;
10738
10739     sysv4)
10740       case $host_vendor in
10741         sni)
10742           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743           hardcode_direct=yes # is this really true???
10744         ;;
10745         siemens)
10746           ## LD is ld it makes a PLAMLIB
10747           ## CC just makes a GrossModule.
10748           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10749           reload_cmds='$CC -r -o $output$reload_objs'
10750           hardcode_direct=no
10751         ;;
10752         motorola)
10753           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10755         ;;
10756       esac
10757       runpath_var='LD_RUN_PATH'
10758       hardcode_shlibpath_var=no
10759       ;;
10760
10761     sysv4.3*)
10762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763       hardcode_shlibpath_var=no
10764       export_dynamic_flag_spec='-Bexport'
10765       ;;
10766
10767     sysv4*MP*)
10768       if test -d /usr/nec; then
10769         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770         hardcode_shlibpath_var=no
10771         runpath_var=LD_RUN_PATH
10772         hardcode_runpath_var=yes
10773         ld_shlibs=yes
10774       fi
10775       ;;
10776
10777     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10778       no_undefined_flag='${wl}-z,text'
10779       archive_cmds_need_lc=no
10780       hardcode_shlibpath_var=no
10781       runpath_var='LD_RUN_PATH'
10782
10783       if test "$GCC" = yes; then
10784         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786       else
10787         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789       fi
10790       ;;
10791
10792     sysv5* | sco3.2v5* | sco5v6*)
10793       # Note: We can NOT use -z defs as we might desire, because we do not
10794       # link with -lc, and that would cause any symbols used from libc to
10795       # always be unresolved, which means just about no library would
10796       # ever link correctly.  If we're not using GNU ld we use -z text
10797       # though, which does catch some bad symbols but isn't as heavy-handed
10798       # as -z defs.
10799       no_undefined_flag='${wl}-z,text'
10800       allow_undefined_flag='${wl}-z,nodefs'
10801       archive_cmds_need_lc=no
10802       hardcode_shlibpath_var=no
10803       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10804       hardcode_libdir_separator=':'
10805       link_all_deplibs=yes
10806       export_dynamic_flag_spec='${wl}-Bexport'
10807       runpath_var='LD_RUN_PATH'
10808
10809       if test "$GCC" = yes; then
10810         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812       else
10813         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815       fi
10816       ;;
10817
10818     uts4*)
10819       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10820       hardcode_libdir_flag_spec='-L$libdir'
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     *)
10825       ld_shlibs=no
10826       ;;
10827     esac
10828
10829     if test x$host_vendor = xsni; then
10830       case $host in
10831       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10832         export_dynamic_flag_spec='${wl}-Blargedynsym'
10833         ;;
10834       esac
10835     fi
10836   fi
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10839 $as_echo "$ld_shlibs" >&6; }
10840 test "$ld_shlibs" = no && can_build_shared=no
10841
10842 with_gnu_ld=$with_gnu_ld
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858 #
10859 # Do we need to explicitly link libc?
10860 #
10861 case "x$archive_cmds_need_lc" in
10862 x|xyes)
10863   # Assume -lc should be added
10864   archive_cmds_need_lc=yes
10865
10866   if test "$enable_shared" = yes && test "$GCC" = yes; then
10867     case $archive_cmds in
10868     *'~'*)
10869       # FIXME: we may have to deal with multi-command sequences.
10870       ;;
10871     '$CC '*)
10872       # Test whether the compiler implicitly links with -lc since on some
10873       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10874       # to ld, don't add -lc before -lgcc.
10875       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10876 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10877 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10878   $as_echo_n "(cached) " >&6
10879 else
10880   $RM conftest*
10881         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10882
10883         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10884   (eval $ac_compile) 2>&5
10885   ac_status=$?
10886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10887   test $ac_status = 0; } 2>conftest.err; then
10888           soname=conftest
10889           lib=conftest
10890           libobjs=conftest.$ac_objext
10891           deplibs=
10892           wl=$lt_prog_compiler_wl
10893           pic_flag=$lt_prog_compiler_pic
10894           compiler_flags=-v
10895           linker_flags=-v
10896           verstring=
10897           output_objdir=.
10898           libname=conftest
10899           lt_save_allow_undefined_flag=$allow_undefined_flag
10900           allow_undefined_flag=
10901           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10902   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10903   ac_status=$?
10904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10905   test $ac_status = 0; }
10906           then
10907             lt_cv_archive_cmds_need_lc=no
10908           else
10909             lt_cv_archive_cmds_need_lc=yes
10910           fi
10911           allow_undefined_flag=$lt_save_allow_undefined_flag
10912         else
10913           cat conftest.err 1>&5
10914         fi
10915         $RM conftest*
10916
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10919 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10920       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10921       ;;
10922     esac
10923   fi
10924   ;;
10925 esac
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11079 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11080
11081 if test "$GCC" = yes; then
11082   case $host_os in
11083     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11084     *) lt_awk_arg="/^libraries:/" ;;
11085   esac
11086   case $host_os in
11087     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11088     *) lt_sed_strip_eq="s,=/,/,g" ;;
11089   esac
11090   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11091   case $lt_search_path_spec in
11092   *\;*)
11093     # if the path contains ";" then we assume it to be the separator
11094     # otherwise default to the standard path separator (i.e. ":") - it is
11095     # assumed that no part of a normal pathname contains ";" but that should
11096     # okay in the real world where ";" in dirpaths is itself problematic.
11097     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11098     ;;
11099   *)
11100     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11101     ;;
11102   esac
11103   # Ok, now we have the path, separated by spaces, we can step through it
11104   # and add multilib dir if necessary.
11105   lt_tmp_lt_search_path_spec=
11106   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11107   for lt_sys_path in $lt_search_path_spec; do
11108     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11109       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11110     else
11111       test -d "$lt_sys_path" && \
11112         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11113     fi
11114   done
11115   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11116 BEGIN {RS=" "; FS="/|\n";} {
11117   lt_foo="";
11118   lt_count=0;
11119   for (lt_i = NF; lt_i > 0; lt_i--) {
11120     if ($lt_i != "" && $lt_i != ".") {
11121       if ($lt_i == "..") {
11122         lt_count++;
11123       } else {
11124         if (lt_count == 0) {
11125           lt_foo="/" $lt_i lt_foo;
11126         } else {
11127           lt_count--;
11128         }
11129       }
11130     }
11131   }
11132   if (lt_foo != "") { lt_freq[lt_foo]++; }
11133   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11134 }'`
11135   # AWK program above erroneously prepends '/' to C:/dos/paths
11136   # for these hosts.
11137   case $host_os in
11138     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11139       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11140   esac
11141   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11142 else
11143   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11144 fi
11145 library_names_spec=
11146 libname_spec='lib$name'
11147 soname_spec=
11148 shrext_cmds=".so"
11149 postinstall_cmds=
11150 postuninstall_cmds=
11151 finish_cmds=
11152 finish_eval=
11153 shlibpath_var=
11154 shlibpath_overrides_runpath=unknown
11155 version_type=none
11156 dynamic_linker="$host_os ld.so"
11157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11158 need_lib_prefix=unknown
11159 hardcode_into_libs=no
11160
11161 # when you set need_version to no, make sure it does not cause -set_version
11162 # flags to be left without arguments
11163 need_version=unknown
11164
11165 case $host_os in
11166 aix3*)
11167   version_type=linux # correct to gnu/linux during the next big refactor
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11169   shlibpath_var=LIBPATH
11170
11171   # AIX 3 has no versioning support, so we append a major version to the name.
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   ;;
11174
11175 aix[4-9]*)
11176   version_type=linux # correct to gnu/linux during the next big refactor
11177   need_lib_prefix=no
11178   need_version=no
11179   hardcode_into_libs=yes
11180   if test "$host_cpu" = ia64; then
11181     # AIX 5 supports IA64
11182     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11183     shlibpath_var=LD_LIBRARY_PATH
11184   else
11185     # With GCC up to 2.95.x, collect2 would create an import file
11186     # for dependence libraries.  The import file would start with
11187     # the line `#! .'.  This would cause the generated library to
11188     # depend on `.', always an invalid library.  This was fixed in
11189     # development snapshots of GCC prior to 3.0.
11190     case $host_os in
11191       aix4 | aix4.[01] | aix4.[01].*)
11192       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11193            echo ' yes '
11194            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11195         :
11196       else
11197         can_build_shared=no
11198       fi
11199       ;;
11200     esac
11201     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11202     # soname into executable. Probably we can add versioning support to
11203     # collect2, so additional links can be useful in future.
11204     if test "$aix_use_runtimelinking" = yes; then
11205       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11206       # instead of lib<name>.a to let people know that these are not
11207       # typical AIX shared libraries.
11208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209     else
11210       # We preserve .a as extension for shared libraries through AIX4.2
11211       # and later when we are not doing run time linking.
11212       library_names_spec='${libname}${release}.a $libname.a'
11213       soname_spec='${libname}${release}${shared_ext}$major'
11214     fi
11215     shlibpath_var=LIBPATH
11216   fi
11217   ;;
11218
11219 amigaos*)
11220   case $host_cpu in
11221   powerpc)
11222     # Since July 2007 AmigaOS4 officially supports .so libraries.
11223     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225     ;;
11226   m68k)
11227     library_names_spec='$libname.ixlibrary $libname.a'
11228     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11229     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'
11230     ;;
11231   esac
11232   ;;
11233
11234 beos*)
11235   library_names_spec='${libname}${shared_ext}'
11236   dynamic_linker="$host_os ld.so"
11237   shlibpath_var=LIBRARY_PATH
11238   ;;
11239
11240 bsdi[45]*)
11241   version_type=linux # correct to gnu/linux during the next big refactor
11242   need_version=no
11243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244   soname_spec='${libname}${release}${shared_ext}$major'
11245   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11246   shlibpath_var=LD_LIBRARY_PATH
11247   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11248   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11249   # the default ld.so.conf also contains /usr/contrib/lib and
11250   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11251   # libtool to hard-code these into programs
11252   ;;
11253
11254 cygwin* | mingw* | pw32* | cegcc*)
11255   version_type=windows
11256   shrext_cmds=".dll"
11257   need_version=no
11258   need_lib_prefix=no
11259
11260   case $GCC,$cc_basename in
11261   yes,*)
11262     # gcc
11263     library_names_spec='$libname.dll.a'
11264     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11265     postinstall_cmds='base_file=`basename \${file}`~
11266       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11267       dldir=$destdir/`dirname \$dlpath`~
11268       test -d \$dldir || mkdir -p \$dldir~
11269       $install_prog $dir/$dlname \$dldir/$dlname~
11270       chmod a+x \$dldir/$dlname~
11271       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11272         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11273       fi'
11274     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11275       dlpath=$dir/\$dldll~
11276        $RM \$dlpath'
11277     shlibpath_overrides_runpath=yes
11278
11279     case $host_os in
11280     cygwin*)
11281       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11282       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11283
11284       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11285       ;;
11286     mingw* | cegcc*)
11287       # MinGW DLLs use traditional 'lib' prefix
11288       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11289       ;;
11290     pw32*)
11291       # pw32 DLLs use 'pw' prefix rather than 'lib'
11292       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11293       ;;
11294     esac
11295     dynamic_linker='Win32 ld.exe'
11296     ;;
11297
11298   *,cl*)
11299     # Native MSVC
11300     libname_spec='$name'
11301     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11302     library_names_spec='${libname}.dll.lib'
11303
11304     case $build_os in
11305     mingw*)
11306       sys_lib_search_path_spec=
11307       lt_save_ifs=$IFS
11308       IFS=';'
11309       for lt_path in $LIB
11310       do
11311         IFS=$lt_save_ifs
11312         # Let DOS variable expansion print the short 8.3 style file name.
11313         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11314         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11315       done
11316       IFS=$lt_save_ifs
11317       # Convert to MSYS style.
11318       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11319       ;;
11320     cygwin*)
11321       # Convert to unix form, then to dos form, then back to unix form
11322       # but this time dos style (no spaces!) so that the unix form looks
11323       # like /cygdrive/c/PROGRA~1:/cygdr...
11324       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11325       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11326       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11327       ;;
11328     *)
11329       sys_lib_search_path_spec="$LIB"
11330       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11331         # It is most probably a Windows format PATH.
11332         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11333       else
11334         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11335       fi
11336       # FIXME: find the short name or the path components, as spaces are
11337       # common. (e.g. "Program Files" -> "PROGRA~1")
11338       ;;
11339     esac
11340
11341     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11342     postinstall_cmds='base_file=`basename \${file}`~
11343       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11344       dldir=$destdir/`dirname \$dlpath`~
11345       test -d \$dldir || mkdir -p \$dldir~
11346       $install_prog $dir/$dlname \$dldir/$dlname'
11347     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11348       dlpath=$dir/\$dldll~
11349        $RM \$dlpath'
11350     shlibpath_overrides_runpath=yes
11351     dynamic_linker='Win32 link.exe'
11352     ;;
11353
11354   *)
11355     # Assume MSVC wrapper
11356     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11357     dynamic_linker='Win32 ld.exe'
11358     ;;
11359   esac
11360   # FIXME: first we should search . and the directory the executable is in
11361   shlibpath_var=PATH
11362   ;;
11363
11364 darwin* | rhapsody*)
11365   dynamic_linker="$host_os dyld"
11366   version_type=darwin
11367   need_lib_prefix=no
11368   need_version=no
11369   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11370   soname_spec='${libname}${release}${major}$shared_ext'
11371   shlibpath_overrides_runpath=yes
11372   shlibpath_var=DYLD_LIBRARY_PATH
11373   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11374
11375   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11376   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11377   ;;
11378
11379 dgux*)
11380   version_type=linux # correct to gnu/linux during the next big refactor
11381   need_lib_prefix=no
11382   need_version=no
11383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11384   soname_spec='${libname}${release}${shared_ext}$major'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   ;;
11387
11388 freebsd* | dragonfly*)
11389   # DragonFly does not have aout.  When/if they implement a new
11390   # versioning mechanism, adjust this.
11391   if test -x /usr/bin/objformat; then
11392     objformat=`/usr/bin/objformat`
11393   else
11394     case $host_os in
11395     freebsd[23].*) objformat=aout ;;
11396     *) objformat=elf ;;
11397     esac
11398   fi
11399   version_type=freebsd-$objformat
11400   case $version_type in
11401     freebsd-elf*)
11402       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11403       need_version=no
11404       need_lib_prefix=no
11405       ;;
11406     freebsd-*)
11407       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11408       need_version=yes
11409       ;;
11410   esac
11411   shlibpath_var=LD_LIBRARY_PATH
11412   case $host_os in
11413   freebsd2.*)
11414     shlibpath_overrides_runpath=yes
11415     ;;
11416   freebsd3.[01]* | freebsdelf3.[01]*)
11417     shlibpath_overrides_runpath=yes
11418     hardcode_into_libs=yes
11419     ;;
11420   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11421   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11422     shlibpath_overrides_runpath=no
11423     hardcode_into_libs=yes
11424     ;;
11425   *) # from 4.6 on, and DragonFly
11426     shlibpath_overrides_runpath=yes
11427     hardcode_into_libs=yes
11428     ;;
11429   esac
11430   ;;
11431
11432 haiku*)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   need_lib_prefix=no
11435   need_version=no
11436   dynamic_linker="$host_os runtime_loader"
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   shlibpath_var=LIBRARY_PATH
11440   shlibpath_overrides_runpath=yes
11441   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11442   hardcode_into_libs=yes
11443   ;;
11444
11445 hpux9* | hpux10* | hpux11*)
11446   # Give a soname corresponding to the major version so that dld.sl refuses to
11447   # link against other versions.
11448   version_type=sunos
11449   need_lib_prefix=no
11450   need_version=no
11451   case $host_cpu in
11452   ia64*)
11453     shrext_cmds='.so'
11454     hardcode_into_libs=yes
11455     dynamic_linker="$host_os dld.so"
11456     shlibpath_var=LD_LIBRARY_PATH
11457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459     soname_spec='${libname}${release}${shared_ext}$major'
11460     if test "X$HPUX_IA64_MODE" = X32; then
11461       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11462     else
11463       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11464     fi
11465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11466     ;;
11467   hppa*64*)
11468     shrext_cmds='.sl'
11469     hardcode_into_libs=yes
11470     dynamic_linker="$host_os dld.sl"
11471     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11472     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474     soname_spec='${libname}${release}${shared_ext}$major'
11475     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11476     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11477     ;;
11478   *)
11479     shrext_cmds='.sl'
11480     dynamic_linker="$host_os dld.sl"
11481     shlibpath_var=SHLIB_PATH
11482     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484     soname_spec='${libname}${release}${shared_ext}$major'
11485     ;;
11486   esac
11487   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11488   postinstall_cmds='chmod 555 $lib'
11489   # or fails outright, so override atomically:
11490   install_override_mode=555
11491   ;;
11492
11493 interix[3-9]*)
11494   version_type=linux # correct to gnu/linux during the next big refactor
11495   need_lib_prefix=no
11496   need_version=no
11497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11498   soname_spec='${libname}${release}${shared_ext}$major'
11499   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=no
11502   hardcode_into_libs=yes
11503   ;;
11504
11505 irix5* | irix6* | nonstopux*)
11506   case $host_os in
11507     nonstopux*) version_type=nonstopux ;;
11508     *)
11509         if test "$lt_cv_prog_gnu_ld" = yes; then
11510                 version_type=linux # correct to gnu/linux during the next big refactor
11511         else
11512                 version_type=irix
11513         fi ;;
11514   esac
11515   need_lib_prefix=no
11516   need_version=no
11517   soname_spec='${libname}${release}${shared_ext}$major'
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11519   case $host_os in
11520   irix5* | nonstopux*)
11521     libsuff= shlibsuff=
11522     ;;
11523   *)
11524     case $LD in # libtool.m4 will add one of these switches to LD
11525     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11526       libsuff= shlibsuff= libmagic=32-bit;;
11527     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11528       libsuff=32 shlibsuff=N32 libmagic=N32;;
11529     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11530       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11531     *) libsuff= shlibsuff= libmagic=never-match;;
11532     esac
11533     ;;
11534   esac
11535   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11536   shlibpath_overrides_runpath=no
11537   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11538   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11539   hardcode_into_libs=yes
11540   ;;
11541
11542 # No shared lib support for Linux oldld, aout, or coff.
11543 linux*oldld* | linux*aout* | linux*coff*)
11544   dynamic_linker=no
11545   ;;
11546
11547 # This must be glibc/ELF.
11548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11549   version_type=linux # correct to gnu/linux during the next big refactor
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   shlibpath_overrides_runpath=no
11557
11558   # Some binutils ld are patched to set DT_RUNPATH
11559   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   lt_cv_shlibpath_overrides_runpath=no
11563     save_LDFLAGS=$LDFLAGS
11564     save_libdir=$libdir
11565     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11566          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h.  */
11569
11570 int
11571 main ()
11572 {
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_link "$LINENO"; then :
11579   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11580   lt_cv_shlibpath_overrides_runpath=yes
11581 fi
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext \
11584     conftest$ac_exeext conftest.$ac_ext
11585     LDFLAGS=$save_LDFLAGS
11586     libdir=$save_libdir
11587
11588 fi
11589
11590   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11591
11592   # This implies no fast_install, which is unacceptable.
11593   # Some rework will be needed to allow for fast_install
11594   # before this can be enabled.
11595   hardcode_into_libs=yes
11596
11597   # Append ld.so.conf contents to the search path
11598   if test -f /etc/ld.so.conf; then
11599     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' ' '`
11600     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11601   fi
11602
11603   # We used to test for /lib/ld.so.1 and disable shared libraries on
11604   # powerpc, because MkLinux only supported shared libraries with the
11605   # GNU dynamic linker.  Since this was broken with cross compilers,
11606   # most powerpc-linux boxes support dynamic linking these days and
11607   # people can always --disable-shared, the test was removed, and we
11608   # assume the GNU/Linux dynamic linker is in use.
11609   dynamic_linker='GNU/Linux ld.so'
11610   ;;
11611
11612 netbsdelf*-gnu)
11613   version_type=linux
11614   need_lib_prefix=no
11615   need_version=no
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=no
11620   hardcode_into_libs=yes
11621   dynamic_linker='NetBSD ld.elf_so'
11622   ;;
11623
11624 netbsd*)
11625   version_type=sunos
11626   need_lib_prefix=no
11627   need_version=no
11628   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11630     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11631     dynamic_linker='NetBSD (a.out) ld.so'
11632   else
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     dynamic_linker='NetBSD ld.elf_so'
11636   fi
11637   shlibpath_var=LD_LIBRARY_PATH
11638   shlibpath_overrides_runpath=yes
11639   hardcode_into_libs=yes
11640   ;;
11641
11642 newsos6)
11643   version_type=linux # correct to gnu/linux during the next big refactor
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   shlibpath_overrides_runpath=yes
11647   ;;
11648
11649 *nto* | *qnx*)
11650   version_type=qnx
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   hardcode_into_libs=yes
11658   dynamic_linker='ldqnx.so'
11659   ;;
11660
11661 openbsd*)
11662   version_type=sunos
11663   sys_lib_dlsearch_path_spec="/usr/lib"
11664   need_lib_prefix=no
11665   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11666   case $host_os in
11667     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11668     *)                          need_version=no  ;;
11669   esac
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672   shlibpath_var=LD_LIBRARY_PATH
11673   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11674     case $host_os in
11675       openbsd2.[89] | openbsd2.[89].*)
11676         shlibpath_overrides_runpath=no
11677         ;;
11678       *)
11679         shlibpath_overrides_runpath=yes
11680         ;;
11681       esac
11682   else
11683     shlibpath_overrides_runpath=yes
11684   fi
11685   ;;
11686
11687 os2*)
11688   libname_spec='$name'
11689   shrext_cmds=".dll"
11690   need_lib_prefix=no
11691   library_names_spec='$libname${shared_ext} $libname.a'
11692   dynamic_linker='OS/2 ld.exe'
11693   shlibpath_var=LIBPATH
11694   ;;
11695
11696 osf3* | osf4* | osf5*)
11697   version_type=osf
11698   need_lib_prefix=no
11699   need_version=no
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11704   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11705   ;;
11706
11707 rdos*)
11708   dynamic_linker=no
11709   ;;
11710
11711 solaris*)
11712   version_type=linux # correct to gnu/linux during the next big refactor
11713   need_lib_prefix=no
11714   need_version=no
11715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716   soname_spec='${libname}${release}${shared_ext}$major'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=yes
11719   hardcode_into_libs=yes
11720   # ldd complains unless libraries are executable
11721   postinstall_cmds='chmod +x $lib'
11722   ;;
11723
11724 sunos4*)
11725   version_type=sunos
11726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=yes
11730   if test "$with_gnu_ld" = yes; then
11731     need_lib_prefix=no
11732   fi
11733   need_version=yes
11734   ;;
11735
11736 sysv4 | sysv4.3*)
11737   version_type=linux # correct to gnu/linux during the next big refactor
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739   soname_spec='${libname}${release}${shared_ext}$major'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   case $host_vendor in
11742     sni)
11743       shlibpath_overrides_runpath=no
11744       need_lib_prefix=no
11745       runpath_var=LD_RUN_PATH
11746       ;;
11747     siemens)
11748       need_lib_prefix=no
11749       ;;
11750     motorola)
11751       need_lib_prefix=no
11752       need_version=no
11753       shlibpath_overrides_runpath=no
11754       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11755       ;;
11756   esac
11757   ;;
11758
11759 sysv4*MP*)
11760   if test -d /usr/nec ;then
11761     version_type=linux # correct to gnu/linux during the next big refactor
11762     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11763     soname_spec='$libname${shared_ext}.$major'
11764     shlibpath_var=LD_LIBRARY_PATH
11765   fi
11766   ;;
11767
11768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11769   version_type=freebsd-elf
11770   need_lib_prefix=no
11771   need_version=no
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11773   soname_spec='${libname}${release}${shared_ext}$major'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   shlibpath_overrides_runpath=yes
11776   hardcode_into_libs=yes
11777   if test "$with_gnu_ld" = yes; then
11778     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11779   else
11780     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11781     case $host_os in
11782       sco3.2v5*)
11783         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11784         ;;
11785     esac
11786   fi
11787   sys_lib_dlsearch_path_spec='/usr/lib'
11788   ;;
11789
11790 tpf*)
11791   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11792   version_type=linux # correct to gnu/linux during the next big refactor
11793   need_lib_prefix=no
11794   need_version=no
11795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=no
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 uts4*)
11802   version_type=linux # correct to gnu/linux during the next big refactor
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   soname_spec='${libname}${release}${shared_ext}$major'
11805   shlibpath_var=LD_LIBRARY_PATH
11806   ;;
11807
11808 *)
11809   dynamic_linker=no
11810   ;;
11811 esac
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11813 $as_echo "$dynamic_linker" >&6; }
11814 test "$dynamic_linker" = no && can_build_shared=no
11815
11816 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11817 if test "$GCC" = yes; then
11818   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11819 fi
11820
11821 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11822   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11823 fi
11824 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11825   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11826 fi
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11920 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11921 hardcode_action=
11922 if test -n "$hardcode_libdir_flag_spec" ||
11923    test -n "$runpath_var" ||
11924    test "X$hardcode_automatic" = "Xyes" ; then
11925
11926   # We can hardcode non-existent directories.
11927   if test "$hardcode_direct" != no &&
11928      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11929      # have to relink, otherwise we might link with an installed library
11930      # when we should be linking with a yet-to-be-installed one
11931      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11932      test "$hardcode_minus_L" != no; then
11933     # Linking always hardcodes the temporary library directory.
11934     hardcode_action=relink
11935   else
11936     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11937     hardcode_action=immediate
11938   fi
11939 else
11940   # We cannot hardcode anything, or else we can only hardcode existing
11941   # directories.
11942   hardcode_action=unsupported
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11945 $as_echo "$hardcode_action" >&6; }
11946
11947 if test "$hardcode_action" = relink ||
11948    test "$inherit_rpath" = yes; then
11949   # Fast installation is not supported
11950   enable_fast_install=no
11951 elif test "$shlibpath_overrides_runpath" = yes ||
11952      test "$enable_shared" = no; then
11953   # Fast installation is not necessary
11954   enable_fast_install=needless
11955 fi
11956
11957
11958
11959
11960
11961
11962   if test "x$enable_dlopen" != xyes; then
11963   enable_dlopen=unknown
11964   enable_dlopen_self=unknown
11965   enable_dlopen_self_static=unknown
11966 else
11967   lt_cv_dlopen=no
11968   lt_cv_dlopen_libs=
11969
11970   case $host_os in
11971   beos*)
11972     lt_cv_dlopen="load_add_on"
11973     lt_cv_dlopen_libs=
11974     lt_cv_dlopen_self=yes
11975     ;;
11976
11977   mingw* | pw32* | cegcc*)
11978     lt_cv_dlopen="LoadLibrary"
11979     lt_cv_dlopen_libs=
11980     ;;
11981
11982   cygwin*)
11983     lt_cv_dlopen="dlopen"
11984     lt_cv_dlopen_libs=
11985     ;;
11986
11987   darwin*)
11988   # if libdl is installed we need to link against it
11989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11991 if ${ac_cv_lib_dl_dlopen+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-ldl  $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000    Use char because int might match the return type of a GCC
12001    builtin and then its argument prototype would still apply.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char dlopen ();
12006 int
12007 main ()
12008 {
12009 return dlopen ();
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015   ac_cv_lib_dl_dlopen=yes
12016 else
12017   ac_cv_lib_dl_dlopen=no
12018 fi
12019 rm -f core conftest.err conftest.$ac_objext \
12020     conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12027 else
12028
12029     lt_cv_dlopen="dyld"
12030     lt_cv_dlopen_libs=
12031     lt_cv_dlopen_self=yes
12032
12033 fi
12034
12035     ;;
12036
12037   *)
12038     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12039 if test "x$ac_cv_func_shl_load" = xyes; then :
12040   lt_cv_dlopen="shl_load"
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12043 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12044 if ${ac_cv_lib_dld_shl_load+:} false; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-ldld  $LIBS"
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053    Use char because int might match the return type of a GCC
12054    builtin and then its argument prototype would still apply.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char shl_load ();
12059 int
12060 main ()
12061 {
12062 return shl_load ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068   ac_cv_lib_dld_shl_load=yes
12069 else
12070   ac_cv_lib_dld_shl_load=no
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext \
12073     conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12077 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12078 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12079   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12080 else
12081   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12082 if test "x$ac_cv_func_dlopen" = xyes; then :
12083   lt_cv_dlopen="dlopen"
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12087 if ${ac_cv_lib_dl_dlopen+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-ldl  $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094
12095 /* Override any GCC internal prototype to avoid an error.
12096    Use char because int might match the return type of a GCC
12097    builtin and then its argument prototype would still apply.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char dlopen ();
12102 int
12103 main ()
12104 {
12105 return dlopen ();
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111   ac_cv_lib_dl_dlopen=yes
12112 else
12113   ac_cv_lib_dl_dlopen=no
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext \
12116     conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12120 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12121 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12122   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12123 else
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12125 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12126 if ${ac_cv_lib_svld_dlopen+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   ac_check_lib_save_LIBS=$LIBS
12130 LIBS="-lsvld  $LIBS"
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h.  */
12133
12134 /* Override any GCC internal prototype to avoid an error.
12135    Use char because int might match the return type of a GCC
12136    builtin and then its argument prototype would still apply.  */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char dlopen ();
12141 int
12142 main ()
12143 {
12144 return dlopen ();
12145   ;
12146   return 0;
12147 }
12148 _ACEOF
12149 if ac_fn_c_try_link "$LINENO"; then :
12150   ac_cv_lib_svld_dlopen=yes
12151 else
12152   ac_cv_lib_svld_dlopen=no
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext \
12155     conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12159 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12160 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12162 else
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12164 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12165 if ${ac_cv_lib_dld_dld_link+:} false; then :
12166   $as_echo_n "(cached) " >&6
12167 else
12168   ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-ldld  $LIBS"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h.  */
12172
12173 /* Override any GCC internal prototype to avoid an error.
12174    Use char because int might match the return type of a GCC
12175    builtin and then its argument prototype would still apply.  */
12176 #ifdef __cplusplus
12177 extern "C"
12178 #endif
12179 char dld_link ();
12180 int
12181 main ()
12182 {
12183 return dld_link ();
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189   ac_cv_lib_dld_dld_link=yes
12190 else
12191   ac_cv_lib_dld_dld_link=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194     conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12199 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12200   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12201 fi
12202
12203
12204 fi
12205
12206
12207 fi
12208
12209
12210 fi
12211
12212
12213 fi
12214
12215
12216 fi
12217
12218     ;;
12219   esac
12220
12221   if test "x$lt_cv_dlopen" != xno; then
12222     enable_dlopen=yes
12223   else
12224     enable_dlopen=no
12225   fi
12226
12227   case $lt_cv_dlopen in
12228   dlopen)
12229     save_CPPFLAGS="$CPPFLAGS"
12230     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12231
12232     save_LDFLAGS="$LDFLAGS"
12233     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12234
12235     save_LIBS="$LIBS"
12236     LIBS="$lt_cv_dlopen_libs $LIBS"
12237
12238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12239 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12240 if ${lt_cv_dlopen_self+:} false; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243           if test "$cross_compiling" = yes; then :
12244   lt_cv_dlopen_self=cross
12245 else
12246   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247   lt_status=$lt_dlunknown
12248   cat > conftest.$ac_ext <<_LT_EOF
12249 #line $LINENO "configure"
12250 #include "confdefs.h"
12251
12252 #if HAVE_DLFCN_H
12253 #include <dlfcn.h>
12254 #endif
12255
12256 #include <stdio.h>
12257
12258 #ifdef RTLD_GLOBAL
12259 #  define LT_DLGLOBAL           RTLD_GLOBAL
12260 #else
12261 #  ifdef DL_GLOBAL
12262 #    define LT_DLGLOBAL         DL_GLOBAL
12263 #  else
12264 #    define LT_DLGLOBAL         0
12265 #  endif
12266 #endif
12267
12268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269    find out it does not work in some platform. */
12270 #ifndef LT_DLLAZY_OR_NOW
12271 #  ifdef RTLD_LAZY
12272 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12273 #  else
12274 #    ifdef DL_LAZY
12275 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12276 #    else
12277 #      ifdef RTLD_NOW
12278 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12279 #      else
12280 #        ifdef DL_NOW
12281 #          define LT_DLLAZY_OR_NOW      DL_NOW
12282 #        else
12283 #          define LT_DLLAZY_OR_NOW      0
12284 #        endif
12285 #      endif
12286 #    endif
12287 #  endif
12288 #endif
12289
12290 /* When -fvisbility=hidden is used, assume the code has been annotated
12291    correspondingly for the symbols needed.  */
12292 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12293 int fnord () __attribute__((visibility("default")));
12294 #endif
12295
12296 int fnord () { return 42; }
12297 int main ()
12298 {
12299   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12300   int status = $lt_dlunknown;
12301
12302   if (self)
12303     {
12304       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12305       else
12306         {
12307           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12308           else puts (dlerror ());
12309         }
12310       /* dlclose (self); */
12311     }
12312   else
12313     puts (dlerror ());
12314
12315   return status;
12316 }
12317 _LT_EOF
12318   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12319   (eval $ac_link) 2>&5
12320   ac_status=$?
12321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12323     (./conftest; exit; ) >&5 2>/dev/null
12324     lt_status=$?
12325     case x$lt_status in
12326       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12327       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12328       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12329     esac
12330   else :
12331     # compilation failed
12332     lt_cv_dlopen_self=no
12333   fi
12334 fi
12335 rm -fr conftest*
12336
12337
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12340 $as_echo "$lt_cv_dlopen_self" >&6; }
12341
12342     if test "x$lt_cv_dlopen_self" = xyes; then
12343       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12345 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12346 if ${lt_cv_dlopen_self_static+:} false; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349           if test "$cross_compiling" = yes; then :
12350   lt_cv_dlopen_self_static=cross
12351 else
12352   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12353   lt_status=$lt_dlunknown
12354   cat > conftest.$ac_ext <<_LT_EOF
12355 #line $LINENO "configure"
12356 #include "confdefs.h"
12357
12358 #if HAVE_DLFCN_H
12359 #include <dlfcn.h>
12360 #endif
12361
12362 #include <stdio.h>
12363
12364 #ifdef RTLD_GLOBAL
12365 #  define LT_DLGLOBAL           RTLD_GLOBAL
12366 #else
12367 #  ifdef DL_GLOBAL
12368 #    define LT_DLGLOBAL         DL_GLOBAL
12369 #  else
12370 #    define LT_DLGLOBAL         0
12371 #  endif
12372 #endif
12373
12374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12375    find out it does not work in some platform. */
12376 #ifndef LT_DLLAZY_OR_NOW
12377 #  ifdef RTLD_LAZY
12378 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12379 #  else
12380 #    ifdef DL_LAZY
12381 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12382 #    else
12383 #      ifdef RTLD_NOW
12384 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12385 #      else
12386 #        ifdef DL_NOW
12387 #          define LT_DLLAZY_OR_NOW      DL_NOW
12388 #        else
12389 #          define LT_DLLAZY_OR_NOW      0
12390 #        endif
12391 #      endif
12392 #    endif
12393 #  endif
12394 #endif
12395
12396 /* When -fvisbility=hidden is used, assume the code has been annotated
12397    correspondingly for the symbols needed.  */
12398 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12399 int fnord () __attribute__((visibility("default")));
12400 #endif
12401
12402 int fnord () { return 42; }
12403 int main ()
12404 {
12405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12406   int status = $lt_dlunknown;
12407
12408   if (self)
12409     {
12410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12411       else
12412         {
12413           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12414           else puts (dlerror ());
12415         }
12416       /* dlclose (self); */
12417     }
12418   else
12419     puts (dlerror ());
12420
12421   return status;
12422 }
12423 _LT_EOF
12424   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12425   (eval $ac_link) 2>&5
12426   ac_status=$?
12427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12429     (./conftest; exit; ) >&5 2>/dev/null
12430     lt_status=$?
12431     case x$lt_status in
12432       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12433       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12434       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12435     esac
12436   else :
12437     # compilation failed
12438     lt_cv_dlopen_self_static=no
12439   fi
12440 fi
12441 rm -fr conftest*
12442
12443
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12446 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12447     fi
12448
12449     CPPFLAGS="$save_CPPFLAGS"
12450     LDFLAGS="$save_LDFLAGS"
12451     LIBS="$save_LIBS"
12452     ;;
12453   esac
12454
12455   case $lt_cv_dlopen_self in
12456   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12457   *) enable_dlopen_self=unknown ;;
12458   esac
12459
12460   case $lt_cv_dlopen_self_static in
12461   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12462   *) enable_dlopen_self_static=unknown ;;
12463   esac
12464 fi
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482 striplib=
12483 old_striplib=
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12485 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12486 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12487   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12488   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; }
12491 else
12492 # FIXME - insert some real tests, host_os isn't really good enough
12493   case $host_os in
12494   darwin*)
12495     if test -n "$STRIP" ; then
12496       striplib="$STRIP -x"
12497       old_striplib="$STRIP -S"
12498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12499 $as_echo "yes" >&6; }
12500     else
12501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503     fi
12504     ;;
12505   *)
12506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508     ;;
12509   esac
12510 fi
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523   # Report which library types will actually be built
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12525 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12527 $as_echo "$can_build_shared" >&6; }
12528
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12530 $as_echo_n "checking whether to build shared libraries... " >&6; }
12531   test "$can_build_shared" = "no" && enable_shared=no
12532
12533   # On AIX, shared libraries and static libraries use the same namespace, and
12534   # are all built from PIC.
12535   case $host_os in
12536   aix3*)
12537     test "$enable_shared" = yes && enable_static=no
12538     if test -n "$RANLIB"; then
12539       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12540       postinstall_cmds='$RANLIB $lib'
12541     fi
12542     ;;
12543
12544   aix[4-9]*)
12545     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12546       test "$enable_shared" = yes && enable_static=no
12547     fi
12548     ;;
12549   esac
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12551 $as_echo "$enable_shared" >&6; }
12552
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12554 $as_echo_n "checking whether to build static libraries... " >&6; }
12555   # Make sure either enable_shared or enable_static is yes.
12556   test "$enable_shared" = yes || enable_static=yes
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12558 $as_echo "$enable_static" >&6; }
12559
12560
12561
12562
12563 fi
12564 ac_ext=c
12565 ac_cpp='$CPP $CPPFLAGS'
12566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569
12570 CC="$lt_save_CC"
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586         ac_config_commands="$ac_config_commands libtool"
12587
12588
12589
12590
12591 # Only expand once:
12592
12593
12594
12595 # Api documentation
12596
12597
12598 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12599         if test -n "$ac_tool_prefix"; then
12600   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   case $PKG_CONFIG in
12608   [\\/]* | ?:[\\/]*)
12609   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12610   ;;
12611   *)
12612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12614 do
12615   IFS=$as_save_IFS
12616   test -z "$as_dir" && as_dir=.
12617     for ac_exec_ext in '' $ac_executable_extensions; do
12618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621     break 2
12622   fi
12623 done
12624   done
12625 IFS=$as_save_IFS
12626
12627   ;;
12628 esac
12629 fi
12630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12631 if test -n "$PKG_CONFIG"; then
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12633 $as_echo "$PKG_CONFIG" >&6; }
12634 else
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$ac_cv_path_PKG_CONFIG"; then
12642   ac_pt_PKG_CONFIG=$PKG_CONFIG
12643   # Extract the first word of "pkg-config", so it can be a program name with args.
12644 set dummy pkg-config; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   case $ac_pt_PKG_CONFIG in
12651   [\\/]* | ?:[\\/]*)
12652   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12653   ;;
12654   *)
12655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658   IFS=$as_save_IFS
12659   test -z "$as_dir" && as_dir=.
12660     for ac_exec_ext in '' $ac_executable_extensions; do
12661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664     break 2
12665   fi
12666 done
12667   done
12668 IFS=$as_save_IFS
12669
12670   ;;
12671 esac
12672 fi
12673 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12674 if test -n "$ac_pt_PKG_CONFIG"; then
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12676 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12677 else
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680 fi
12681
12682   if test "x$ac_pt_PKG_CONFIG" = x; then
12683     PKG_CONFIG=""
12684   else
12685     case $cross_compiling:$ac_tool_warned in
12686 yes:)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689 ac_tool_warned=yes ;;
12690 esac
12691     PKG_CONFIG=$ac_pt_PKG_CONFIG
12692   fi
12693 else
12694   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12695 fi
12696
12697 fi
12698 if test -n "$PKG_CONFIG"; then
12699         _pkg_min_version=0.9.0
12700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12701 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12702         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12703                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12704 $as_echo "yes" >&6; }
12705         else
12706                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708                 PKG_CONFIG=""
12709         fi
12710
12711 fi
12712
12713
12714
12715     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12716 set dummy gtkdoc-check; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12720   $as_echo_n "(cached) " >&6
12721 else
12722   case $GTKDOC_CHECK in
12723   [\\/]* | ?:[\\/]*)
12724   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12725   ;;
12726   *)
12727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12729 do
12730   IFS=$as_save_IFS
12731   test -z "$as_dir" && as_dir=.
12732     for ac_exec_ext in '' $ac_executable_extensions; do
12733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736     break 2
12737   fi
12738 done
12739   done
12740 IFS=$as_save_IFS
12741
12742   ;;
12743 esac
12744 fi
12745 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12746 if test -n "$GTKDOC_CHECK"; then
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12748 $as_echo "$GTKDOC_CHECK" >&6; }
12749 else
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12752 fi
12753
12754
12755   for ac_prog in gtkdoc-rebase
12756 do
12757   # Extract the first word of "$ac_prog", so it can be a program name with args.
12758 set dummy $ac_prog; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12762   $as_echo_n "(cached) " >&6
12763 else
12764   case $GTKDOC_REBASE in
12765   [\\/]* | ?:[\\/]*)
12766   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12767   ;;
12768   *)
12769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 for as_dir in $PATH
12771 do
12772   IFS=$as_save_IFS
12773   test -z "$as_dir" && as_dir=.
12774     for ac_exec_ext in '' $ac_executable_extensions; do
12775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778     break 2
12779   fi
12780 done
12781   done
12782 IFS=$as_save_IFS
12783
12784   ;;
12785 esac
12786 fi
12787 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12788 if test -n "$GTKDOC_REBASE"; then
12789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12790 $as_echo "$GTKDOC_REBASE" >&6; }
12791 else
12792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795
12796
12797   test -n "$GTKDOC_REBASE" && break
12798 done
12799 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12800
12801   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12802 set dummy gtkdoc-mkpdf; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12806   $as_echo_n "(cached) " >&6
12807 else
12808   case $GTKDOC_MKPDF in
12809   [\\/]* | ?:[\\/]*)
12810   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12811   ;;
12812   *)
12813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816   IFS=$as_save_IFS
12817   test -z "$as_dir" && as_dir=.
12818     for ac_exec_ext in '' $ac_executable_extensions; do
12819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822     break 2
12823   fi
12824 done
12825   done
12826 IFS=$as_save_IFS
12827
12828   ;;
12829 esac
12830 fi
12831 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12832 if test -n "$GTKDOC_MKPDF"; then
12833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12834 $as_echo "$GTKDOC_MKPDF" >&6; }
12835 else
12836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12838 fi
12839
12840
12841
12842
12843 # Check whether --with-html-dir was given.
12844 if test "${with_html_dir+set}" = set; then :
12845   withval=$with_html_dir;
12846 else
12847   with_html_dir='${datadir}/gtk-doc/html'
12848 fi
12849
12850   HTML_DIR="$with_html_dir"
12851
12852
12853     # Check whether --enable-gtk-doc was given.
12854 if test "${enable_gtk_doc+set}" = set; then :
12855   enableval=$enable_gtk_doc;
12856 else
12857   enable_gtk_doc=no
12858 fi
12859
12860
12861   if test x$enable_gtk_doc = xyes; then
12862     if test -n "$PKG_CONFIG" && \
12863     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
12864   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
12865   ac_status=$?
12866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867   test $ac_status = 0; }; then
12868   :
12869 else
12870   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
12871 fi
12872         if test "x$PACKAGE_NAME" != "xglib"; then
12873
12874 pkg_failed=no
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12876 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12877
12878 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12879     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12880  elif test -n "$PKG_CONFIG"; then
12881     if test -n "$PKG_CONFIG" && \
12882     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12883   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12884   ac_status=$?
12885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12886   test $ac_status = 0; }; then
12887   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12888 else
12889   pkg_failed=yes
12890 fi
12891  else
12892     pkg_failed=untried
12893 fi
12894 if test -n "$GTKDOC_DEPS_LIBS"; then
12895     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12896  elif test -n "$PKG_CONFIG"; then
12897     if test -n "$PKG_CONFIG" && \
12898     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12899   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12900   ac_status=$?
12901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902   test $ac_status = 0; }; then
12903   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12904 else
12905   pkg_failed=yes
12906 fi
12907  else
12908     pkg_failed=untried
12909 fi
12910
12911
12912
12913 if test $pkg_failed = yes; then
12914
12915 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12916         _pkg_short_errors_supported=yes
12917 else
12918         _pkg_short_errors_supported=no
12919 fi
12920         if test $_pkg_short_errors_supported = yes; then
12921                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12922         else
12923                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12924         fi
12925         # Put the nasty error message in config.log where it belongs
12926         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12927
12928         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
12929
12930 $GTKDOC_DEPS_PKG_ERRORS
12931
12932 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12933 installed software in a non-standard prefix.
12934
12935 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12936 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12937 See the pkg-config man page for more details.
12938 " "$LINENO" 5
12939 elif test $pkg_failed = untried; then
12940         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12942 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12943 is in your PATH or set the PKG_CONFIG environment variable to the full
12944 path to pkg-config.
12945
12946 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12947 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12948 See the pkg-config man page for more details.
12949
12950 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12951 See \`config.log' for more details" "$LINENO" 5; }
12952 else
12953         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12954         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956 $as_echo "yes" >&6; }
12957         :
12958 fi
12959     fi
12960   fi
12961
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12963 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12965 $as_echo "$enable_gtk_doc" >&6; }
12966
12967     # Check whether --enable-gtk-doc-html was given.
12968 if test "${enable_gtk_doc_html+set}" = set; then :
12969   enableval=$enable_gtk_doc_html;
12970 else
12971   enable_gtk_doc_html=yes
12972 fi
12973
12974     # Check whether --enable-gtk-doc-pdf was given.
12975 if test "${enable_gtk_doc_pdf+set}" = set; then :
12976   enableval=$enable_gtk_doc_pdf;
12977 else
12978   enable_gtk_doc_pdf=no
12979 fi
12980
12981
12982   if test -z "$GTKDOC_MKPDF"; then
12983     enable_gtk_doc_pdf=no
12984   fi
12985
12986
12987    if test x$enable_gtk_doc = xyes; then
12988   ENABLE_GTK_DOC_TRUE=
12989   ENABLE_GTK_DOC_FALSE='#'
12990 else
12991   ENABLE_GTK_DOC_TRUE='#'
12992   ENABLE_GTK_DOC_FALSE=
12993 fi
12994
12995    if test x$enable_gtk_doc_html = xyes; then
12996   GTK_DOC_BUILD_HTML_TRUE=
12997   GTK_DOC_BUILD_HTML_FALSE='#'
12998 else
12999   GTK_DOC_BUILD_HTML_TRUE='#'
13000   GTK_DOC_BUILD_HTML_FALSE=
13001 fi
13002
13003    if test x$enable_gtk_doc_pdf = xyes; then
13004   GTK_DOC_BUILD_PDF_TRUE=
13005   GTK_DOC_BUILD_PDF_FALSE='#'
13006 else
13007   GTK_DOC_BUILD_PDF_TRUE='#'
13008   GTK_DOC_BUILD_PDF_FALSE=
13009 fi
13010
13011    if test -n "$LIBTOOL"; then
13012   GTK_DOC_USE_LIBTOOL_TRUE=
13013   GTK_DOC_USE_LIBTOOL_FALSE='#'
13014 else
13015   GTK_DOC_USE_LIBTOOL_TRUE='#'
13016   GTK_DOC_USE_LIBTOOL_FALSE=
13017 fi
13018
13019    if test -n "$GTKDOC_REBASE"; then
13020   GTK_DOC_USE_REBASE_TRUE=
13021   GTK_DOC_USE_REBASE_FALSE='#'
13022 else
13023   GTK_DOC_USE_REBASE_TRUE='#'
13024   GTK_DOC_USE_REBASE_FALSE=
13025 fi
13026
13027
13028
13029 # Check whether --enable-largefile was given.
13030 if test "${enable_largefile+set}" = set; then :
13031   enableval=$enable_largefile;
13032 fi
13033
13034 if test "$enable_largefile" != no; then
13035
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13037 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13038 if ${ac_cv_sys_largefile_CC+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   ac_cv_sys_largefile_CC=no
13042      if test "$GCC" != yes; then
13043        ac_save_CC=$CC
13044        while :; do
13045          # IRIX 6.2 and later do not support large files by default,
13046          # so use the C compiler's -n32 option if that helps.
13047          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049 #include <sys/types.h>
13050  /* Check that off_t can represent 2**63 - 1 correctly.
13051     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13052     since some C++ compilers masquerading as C compilers
13053     incorrectly reject 9223372036854775807.  */
13054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13055   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13056                        && LARGE_OFF_T % 2147483647 == 1)
13057                       ? 1 : -1];
13058 int
13059 main ()
13060 {
13061
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066          if ac_fn_c_try_compile "$LINENO"; then :
13067   break
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext
13070          CC="$CC -n32"
13071          if ac_fn_c_try_compile "$LINENO"; then :
13072   ac_cv_sys_largefile_CC=' -n32'; break
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext
13075          break
13076        done
13077        CC=$ac_save_CC
13078        rm -f conftest.$ac_ext
13079     fi
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13082 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13083   if test "$ac_cv_sys_largefile_CC" != no; then
13084     CC=$CC$ac_cv_sys_largefile_CC
13085   fi
13086
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13088 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13089 if ${ac_cv_sys_file_offset_bits+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   while :; do
13093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h.  */
13095 #include <sys/types.h>
13096  /* Check that off_t can represent 2**63 - 1 correctly.
13097     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13098     since some C++ compilers masquerading as C compilers
13099     incorrectly reject 9223372036854775807.  */
13100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13101   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13102                        && LARGE_OFF_T % 2147483647 == 1)
13103                       ? 1 : -1];
13104 int
13105 main ()
13106 {
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 if ac_fn_c_try_compile "$LINENO"; then :
13113   ac_cv_sys_file_offset_bits=no; break
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118 #define _FILE_OFFSET_BITS 64
13119 #include <sys/types.h>
13120  /* Check that off_t can represent 2**63 - 1 correctly.
13121     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13122     since some C++ compilers masquerading as C compilers
13123     incorrectly reject 9223372036854775807.  */
13124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13125   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13126                        && LARGE_OFF_T % 2147483647 == 1)
13127                       ? 1 : -1];
13128 int
13129 main ()
13130 {
13131
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137   ac_cv_sys_file_offset_bits=64; break
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140   ac_cv_sys_file_offset_bits=unknown
13141   break
13142 done
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13145 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13146 case $ac_cv_sys_file_offset_bits in #(
13147   no | unknown) ;;
13148   *)
13149 cat >>confdefs.h <<_ACEOF
13150 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13151 _ACEOF
13152 ;;
13153 esac
13154 rm -rf conftest*
13155   if test $ac_cv_sys_file_offset_bits = unknown; then
13156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13157 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13158 if ${ac_cv_sys_large_files+:} false; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   while :; do
13162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h.  */
13164 #include <sys/types.h>
13165  /* Check that off_t can represent 2**63 - 1 correctly.
13166     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13167     since some C++ compilers masquerading as C compilers
13168     incorrectly reject 9223372036854775807.  */
13169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13170   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13171                        && LARGE_OFF_T % 2147483647 == 1)
13172                       ? 1 : -1];
13173 int
13174 main ()
13175 {
13176
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182   ac_cv_sys_large_files=no; break
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h.  */
13187 #define _LARGE_FILES 1
13188 #include <sys/types.h>
13189  /* Check that off_t can represent 2**63 - 1 correctly.
13190     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13191     since some C++ compilers masquerading as C compilers
13192     incorrectly reject 9223372036854775807.  */
13193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13194   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13195                        && LARGE_OFF_T % 2147483647 == 1)
13196                       ? 1 : -1];
13197 int
13198 main ()
13199 {
13200
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206   ac_cv_sys_large_files=1; break
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209   ac_cv_sys_large_files=unknown
13210   break
13211 done
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13214 $as_echo "$ac_cv_sys_large_files" >&6; }
13215 case $ac_cv_sys_large_files in #(
13216   no | unknown) ;;
13217   *)
13218 cat >>confdefs.h <<_ACEOF
13219 #define _LARGE_FILES $ac_cv_sys_large_files
13220 _ACEOF
13221 ;;
13222 esac
13223 rm -rf conftest*
13224   fi
13225
13226
13227 fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242 CAIRO_VERSION_MAJOR=1
13243 CAIRO_VERSION_MINOR=12
13244 CAIRO_VERSION_MICRO=16
13245 CAIRO_VERSION_SONUM=2
13246 CAIRO_RELEASE_STATUS=release
13247 CAIRO_LIBTOOL_VERSION_INFO=11202:16:11200
13248
13249
13250
13251
13252
13253
13254
13255 # Extract the first word of "find", so it can be a program name with args.
13256 set dummy find; ac_word=$2
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 $as_echo_n "checking for $ac_word... " >&6; }
13259 if ${ac_cv_path_FIND+:} false; then :
13260   $as_echo_n "(cached) " >&6
13261 else
13262   case $FIND in
13263   [\\/]* | ?:[\\/]*)
13264   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
13265   ;;
13266   *)
13267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270   IFS=$as_save_IFS
13271   test -z "$as_dir" && as_dir=.
13272     for ac_exec_ext in '' $ac_executable_extensions; do
13273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13274     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
13275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276     break 2
13277   fi
13278 done
13279   done
13280 IFS=$as_save_IFS
13281
13282   ;;
13283 esac
13284 fi
13285 FIND=$ac_cv_path_FIND
13286 if test -n "$FIND"; then
13287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
13288 $as_echo "$FIND" >&6; }
13289 else
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13292 fi
13293
13294
13295 # Extract the first word of "xargs", so it can be a program name with args.
13296 set dummy xargs; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if ${ac_cv_path_XARGS+:} false; then :
13300   $as_echo_n "(cached) " >&6
13301 else
13302   case $XARGS in
13303   [\\/]* | ?:[\\/]*)
13304   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13305   ;;
13306   *)
13307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310   IFS=$as_save_IFS
13311   test -z "$as_dir" && as_dir=.
13312     for ac_exec_ext in '' $ac_executable_extensions; do
13313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316     break 2
13317   fi
13318 done
13319   done
13320 IFS=$as_save_IFS
13321
13322   ;;
13323 esac
13324 fi
13325 XARGS=$ac_cv_path_XARGS
13326 if test -n "$XARGS"; then
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13328 $as_echo "$XARGS" >&6; }
13329 else
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335
13336 ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13341 if test -n "$ac_tool_prefix"; then
13342   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if ${ac_cv_prog_CC+:} false; then :
13347   $as_echo_n "(cached) " >&6
13348 else
13349   if test -n "$CC"; then
13350   ac_cv_prog_CC="$CC" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13354 do
13355   IFS=$as_save_IFS
13356   test -z "$as_dir" && as_dir=.
13357     for ac_exec_ext in '' $ac_executable_extensions; do
13358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361     break 2
13362   fi
13363 done
13364   done
13365 IFS=$as_save_IFS
13366
13367 fi
13368 fi
13369 CC=$ac_cv_prog_CC
13370 if test -n "$CC"; then
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13372 $as_echo "$CC" >&6; }
13373 else
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13376 fi
13377
13378
13379 fi
13380 if test -z "$ac_cv_prog_CC"; then
13381   ac_ct_CC=$CC
13382   # Extract the first word of "gcc", so it can be a program name with args.
13383 set dummy gcc; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13387   $as_echo_n "(cached) " >&6
13388 else
13389   if test -n "$ac_ct_CC"; then
13390   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13391 else
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $PATH
13394 do
13395   IFS=$as_save_IFS
13396   test -z "$as_dir" && as_dir=.
13397     for ac_exec_ext in '' $ac_executable_extensions; do
13398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399     ac_cv_prog_ac_ct_CC="gcc"
13400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401     break 2
13402   fi
13403 done
13404   done
13405 IFS=$as_save_IFS
13406
13407 fi
13408 fi
13409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13410 if test -n "$ac_ct_CC"; then
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13412 $as_echo "$ac_ct_CC" >&6; }
13413 else
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416 fi
13417
13418   if test "x$ac_ct_CC" = x; then
13419     CC=""
13420   else
13421     case $cross_compiling:$ac_tool_warned in
13422 yes:)
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425 ac_tool_warned=yes ;;
13426 esac
13427     CC=$ac_ct_CC
13428   fi
13429 else
13430   CC="$ac_cv_prog_CC"
13431 fi
13432
13433 if test -z "$CC"; then
13434           if test -n "$ac_tool_prefix"; then
13435     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13436 set dummy ${ac_tool_prefix}cc; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_prog_CC+:} false; then :
13440   $as_echo_n "(cached) " >&6
13441 else
13442   if test -n "$CC"; then
13443   ac_cv_prog_CC="$CC" # Let the user override the test.
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13447 do
13448   IFS=$as_save_IFS
13449   test -z "$as_dir" && as_dir=.
13450     for ac_exec_ext in '' $ac_executable_extensions; do
13451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452     ac_cv_prog_CC="${ac_tool_prefix}cc"
13453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454     break 2
13455   fi
13456 done
13457   done
13458 IFS=$as_save_IFS
13459
13460 fi
13461 fi
13462 CC=$ac_cv_prog_CC
13463 if test -n "$CC"; then
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13465 $as_echo "$CC" >&6; }
13466 else
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468 $as_echo "no" >&6; }
13469 fi
13470
13471
13472   fi
13473 fi
13474 if test -z "$CC"; then
13475   # Extract the first word of "cc", so it can be a program name with args.
13476 set dummy cc; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_prog_CC+:} false; then :
13480   $as_echo_n "(cached) " >&6
13481 else
13482   if test -n "$CC"; then
13483   ac_cv_prog_CC="$CC" # Let the user override the test.
13484 else
13485   ac_prog_rejected=no
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH
13488 do
13489   IFS=$as_save_IFS
13490   test -z "$as_dir" && as_dir=.
13491     for ac_exec_ext in '' $ac_executable_extensions; do
13492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13494        ac_prog_rejected=yes
13495        continue
13496      fi
13497     ac_cv_prog_CC="cc"
13498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499     break 2
13500   fi
13501 done
13502   done
13503 IFS=$as_save_IFS
13504
13505 if test $ac_prog_rejected = yes; then
13506   # We found a bogon in the path, so make sure we never use it.
13507   set dummy $ac_cv_prog_CC
13508   shift
13509   if test $# != 0; then
13510     # We chose a different compiler from the bogus one.
13511     # However, it has the same basename, so the bogon will be chosen
13512     # first if we set CC to just the basename; use the full file name.
13513     shift
13514     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13515   fi
13516 fi
13517 fi
13518 fi
13519 CC=$ac_cv_prog_CC
13520 if test -n "$CC"; then
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13522 $as_echo "$CC" >&6; }
13523 else
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527
13528
13529 fi
13530 if test -z "$CC"; then
13531   if test -n "$ac_tool_prefix"; then
13532   for ac_prog in cl.exe
13533   do
13534     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_CC+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   if test -n "$CC"; then
13542   ac_cv_prog_CC="$CC" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547   IFS=$as_save_IFS
13548   test -z "$as_dir" && as_dir=.
13549     for ac_exec_ext in '' $ac_executable_extensions; do
13550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553     break 2
13554   fi
13555 done
13556   done
13557 IFS=$as_save_IFS
13558
13559 fi
13560 fi
13561 CC=$ac_cv_prog_CC
13562 if test -n "$CC"; then
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13564 $as_echo "$CC" >&6; }
13565 else
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569
13570
13571     test -n "$CC" && break
13572   done
13573 fi
13574 if test -z "$CC"; then
13575   ac_ct_CC=$CC
13576   for ac_prog in cl.exe
13577 do
13578   # Extract the first word of "$ac_prog", so it can be a program name with args.
13579 set dummy $ac_prog; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585   if test -n "$ac_ct_CC"; then
13586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13590 do
13591   IFS=$as_save_IFS
13592   test -z "$as_dir" && as_dir=.
13593     for ac_exec_ext in '' $ac_executable_extensions; do
13594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595     ac_cv_prog_ac_ct_CC="$ac_prog"
13596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597     break 2
13598   fi
13599 done
13600   done
13601 IFS=$as_save_IFS
13602
13603 fi
13604 fi
13605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13606 if test -n "$ac_ct_CC"; then
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13608 $as_echo "$ac_ct_CC" >&6; }
13609 else
13610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13612 fi
13613
13614
13615   test -n "$ac_ct_CC" && break
13616 done
13617
13618   if test "x$ac_ct_CC" = x; then
13619     CC=""
13620   else
13621     case $cross_compiling:$ac_tool_warned in
13622 yes:)
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13625 ac_tool_warned=yes ;;
13626 esac
13627     CC=$ac_ct_CC
13628   fi
13629 fi
13630
13631 fi
13632
13633
13634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13636 as_fn_error $? "no acceptable C compiler found in \$PATH
13637 See \`config.log' for more details" "$LINENO" 5; }
13638
13639 # Provide some information about the compiler.
13640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13641 set X $ac_compile
13642 ac_compiler=$2
13643 for ac_option in --version -v -V -qversion; do
13644   { { ac_try="$ac_compiler $ac_option >&5"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13650 $as_echo "$ac_try_echo"; } >&5
13651   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13652   ac_status=$?
13653   if test -s conftest.err; then
13654     sed '10a\
13655 ... rest of stderr output deleted ...
13656          10q' conftest.err >conftest.er1
13657     cat conftest.er1 >&5
13658   fi
13659   rm -f conftest.er1 conftest.err
13660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13661   test $ac_status = 0; }
13662 done
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13666 if ${ac_cv_c_compiler_gnu+:} false; then :
13667   $as_echo_n "(cached) " >&6
13668 else
13669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h.  */
13671
13672 int
13673 main ()
13674 {
13675 #ifndef __GNUC__
13676        choke me
13677 #endif
13678
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684   ac_compiler_gnu=yes
13685 else
13686   ac_compiler_gnu=no
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13690
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13694 if test $ac_compiler_gnu = yes; then
13695   GCC=yes
13696 else
13697   GCC=
13698 fi
13699 ac_test_CFLAGS=${CFLAGS+set}
13700 ac_save_CFLAGS=$CFLAGS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13703 if ${ac_cv_prog_cc_g+:} false; then :
13704   $as_echo_n "(cached) " >&6
13705 else
13706   ac_save_c_werror_flag=$ac_c_werror_flag
13707    ac_c_werror_flag=yes
13708    ac_cv_prog_cc_g=no
13709    CFLAGS="-g"
13710    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h.  */
13712
13713 int
13714 main ()
13715 {
13716
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722   ac_cv_prog_cc_g=yes
13723 else
13724   CFLAGS=""
13725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h.  */
13727
13728 int
13729 main ()
13730 {
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737
13738 else
13739   ac_c_werror_flag=$ac_save_c_werror_flag
13740          CFLAGS="-g"
13741          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h.  */
13743
13744 int
13745 main ()
13746 {
13747
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"; then :
13753   ac_cv_prog_cc_g=yes
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 fi
13757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760    ac_c_werror_flag=$ac_save_c_werror_flag
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13763 $as_echo "$ac_cv_prog_cc_g" >&6; }
13764 if test "$ac_test_CFLAGS" = set; then
13765   CFLAGS=$ac_save_CFLAGS
13766 elif test $ac_cv_prog_cc_g = yes; then
13767   if test "$GCC" = yes; then
13768     CFLAGS="-g -O2"
13769   else
13770     CFLAGS="-g"
13771   fi
13772 else
13773   if test "$GCC" = yes; then
13774     CFLAGS="-O2"
13775   else
13776     CFLAGS=
13777   fi
13778 fi
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13781 if ${ac_cv_prog_cc_c89+:} false; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   ac_cv_prog_cc_c89=no
13785 ac_save_CC=$CC
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h.  */
13788 #include <stdarg.h>
13789 #include <stdio.h>
13790 struct stat;
13791 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13792 struct buf { int x; };
13793 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13794 static char *e (p, i)
13795      char **p;
13796      int i;
13797 {
13798   return p[i];
13799 }
13800 static char *f (char * (*g) (char **, int), char **p, ...)
13801 {
13802   char *s;
13803   va_list v;
13804   va_start (v,p);
13805   s = g (p, va_arg (v,int));
13806   va_end (v);
13807   return s;
13808 }
13809
13810 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13811    function prototypes and stuff, but not '\xHH' hex character constants.
13812    These don't provoke an error unfortunately, instead are silently treated
13813    as 'x'.  The following induces an error, until -std is added to get
13814    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13815    array size at least.  It's necessary to write '\x00'==0 to get something
13816    that's true only with -std.  */
13817 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13818
13819 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13820    inside strings and character constants.  */
13821 #define FOO(x) 'x'
13822 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13823
13824 int test (int i, double x);
13825 struct s1 {int (*f) (int a);};
13826 struct s2 {int (*f) (double a);};
13827 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13828 int argc;
13829 char **argv;
13830 int
13831 main ()
13832 {
13833 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13839         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13840 do
13841   CC="$ac_save_CC $ac_arg"
13842   if ac_fn_c_try_compile "$LINENO"; then :
13843   ac_cv_prog_cc_c89=$ac_arg
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext
13846   test "x$ac_cv_prog_cc_c89" != "xno" && break
13847 done
13848 rm -f conftest.$ac_ext
13849 CC=$ac_save_CC
13850
13851 fi
13852 # AC_CACHE_VAL
13853 case "x$ac_cv_prog_cc_c89" in
13854   x)
13855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13856 $as_echo "none needed" >&6; } ;;
13857   xno)
13858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13859 $as_echo "unsupported" >&6; } ;;
13860   *)
13861     CC="$CC $ac_cv_prog_cc_c89"
13862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13863 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13864 esac
13865 if test "x$ac_cv_prog_cc_c89" != xno; then :
13866
13867 fi
13868
13869 ac_ext=c
13870 ac_cpp='$CPP $CPPFLAGS'
13871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13874
13875 ac_ext=c
13876 ac_cpp='$CPP $CPPFLAGS'
13877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13881 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13882 # On Suns, sometimes $CPP names a directory.
13883 if test -n "$CPP" && test -d "$CPP"; then
13884   CPP=
13885 fi
13886 if test -z "$CPP"; then
13887   if ${ac_cv_prog_CPP+:} false; then :
13888   $as_echo_n "(cached) " >&6
13889 else
13890       # Double quotes because CPP needs to be expanded
13891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13892     do
13893       ac_preproc_ok=false
13894 for ac_c_preproc_warn_flag in '' yes
13895 do
13896   # Use a header file that comes with gcc, so configuring glibc
13897   # with a fresh cross-compiler works.
13898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13899   # <limits.h> exists even on freestanding compilers.
13900   # On the NeXT, cc -E runs the code through the compiler's parser,
13901   # not just through cpp. "Syntax error" is here to catch this case.
13902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h.  */
13904 #ifdef __STDC__
13905 # include <limits.h>
13906 #else
13907 # include <assert.h>
13908 #endif
13909                      Syntax error
13910 _ACEOF
13911 if ac_fn_c_try_cpp "$LINENO"; then :
13912
13913 else
13914   # Broken: fails on valid input.
13915 continue
13916 fi
13917 rm -f conftest.err conftest.i conftest.$ac_ext
13918
13919   # OK, works on sane cases.  Now check whether nonexistent headers
13920   # can be detected and how.
13921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h.  */
13923 #include <ac_nonexistent.h>
13924 _ACEOF
13925 if ac_fn_c_try_cpp "$LINENO"; then :
13926   # Broken: success on invalid input.
13927 continue
13928 else
13929   # Passes both tests.
13930 ac_preproc_ok=:
13931 break
13932 fi
13933 rm -f conftest.err conftest.i conftest.$ac_ext
13934
13935 done
13936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13937 rm -f conftest.i conftest.err conftest.$ac_ext
13938 if $ac_preproc_ok; then :
13939   break
13940 fi
13941
13942     done
13943     ac_cv_prog_CPP=$CPP
13944
13945 fi
13946   CPP=$ac_cv_prog_CPP
13947 else
13948   ac_cv_prog_CPP=$CPP
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13951 $as_echo "$CPP" >&6; }
13952 ac_preproc_ok=false
13953 for ac_c_preproc_warn_flag in '' yes
13954 do
13955   # Use a header file that comes with gcc, so configuring glibc
13956   # with a fresh cross-compiler works.
13957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13958   # <limits.h> exists even on freestanding compilers.
13959   # On the NeXT, cc -E runs the code through the compiler's parser,
13960   # not just through cpp. "Syntax error" is here to catch this case.
13961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h.  */
13963 #ifdef __STDC__
13964 # include <limits.h>
13965 #else
13966 # include <assert.h>
13967 #endif
13968                      Syntax error
13969 _ACEOF
13970 if ac_fn_c_try_cpp "$LINENO"; then :
13971
13972 else
13973   # Broken: fails on valid input.
13974 continue
13975 fi
13976 rm -f conftest.err conftest.i conftest.$ac_ext
13977
13978   # OK, works on sane cases.  Now check whether nonexistent headers
13979   # can be detected and how.
13980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h.  */
13982 #include <ac_nonexistent.h>
13983 _ACEOF
13984 if ac_fn_c_try_cpp "$LINENO"; then :
13985   # Broken: success on invalid input.
13986 continue
13987 else
13988   # Passes both tests.
13989 ac_preproc_ok=:
13990 break
13991 fi
13992 rm -f conftest.err conftest.i conftest.$ac_ext
13993
13994 done
13995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13996 rm -f conftest.i conftest.err conftest.$ac_ext
13997 if $ac_preproc_ok; then :
13998
13999 else
14000   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14002 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14003 See \`config.log' for more details" "$LINENO" 5; }
14004 fi
14005
14006 ac_ext=c
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14011
14012 ac_ext=cpp
14013 ac_cpp='$CXXCPP $CPPFLAGS'
14014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14017 if test -z "$CXX"; then
14018   if test -n "$CCC"; then
14019     CXX=$CCC
14020   else
14021     if test -n "$ac_tool_prefix"; then
14022   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14023   do
14024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_prog_CXX+:} false; then :
14029   $as_echo_n "(cached) " >&6
14030 else
14031   if test -n "$CXX"; then
14032   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14036 do
14037   IFS=$as_save_IFS
14038   test -z "$as_dir" && as_dir=.
14039     for ac_exec_ext in '' $ac_executable_extensions; do
14040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043     break 2
14044   fi
14045 done
14046   done
14047 IFS=$as_save_IFS
14048
14049 fi
14050 fi
14051 CXX=$ac_cv_prog_CXX
14052 if test -n "$CXX"; then
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14054 $as_echo "$CXX" >&6; }
14055 else
14056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14058 fi
14059
14060
14061     test -n "$CXX" && break
14062   done
14063 fi
14064 if test -z "$CXX"; then
14065   ac_ct_CXX=$CXX
14066   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14067 do
14068   # Extract the first word of "$ac_prog", so it can be a program name with args.
14069 set dummy $ac_prog; ac_word=$2
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071 $as_echo_n "checking for $ac_word... " >&6; }
14072 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   if test -n "$ac_ct_CXX"; then
14076   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14077 else
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14080 do
14081   IFS=$as_save_IFS
14082   test -z "$as_dir" && as_dir=.
14083     for ac_exec_ext in '' $ac_executable_extensions; do
14084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14085     ac_cv_prog_ac_ct_CXX="$ac_prog"
14086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087     break 2
14088   fi
14089 done
14090   done
14091 IFS=$as_save_IFS
14092
14093 fi
14094 fi
14095 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14096 if test -n "$ac_ct_CXX"; then
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14098 $as_echo "$ac_ct_CXX" >&6; }
14099 else
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102 fi
14103
14104
14105   test -n "$ac_ct_CXX" && break
14106 done
14107
14108   if test "x$ac_ct_CXX" = x; then
14109     CXX="g++"
14110   else
14111     case $cross_compiling:$ac_tool_warned in
14112 yes:)
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14115 ac_tool_warned=yes ;;
14116 esac
14117     CXX=$ac_ct_CXX
14118   fi
14119 fi
14120
14121   fi
14122 fi
14123 # Provide some information about the compiler.
14124 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14125 set X $ac_compile
14126 ac_compiler=$2
14127 for ac_option in --version -v -V -qversion; do
14128   { { ac_try="$ac_compiler $ac_option >&5"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14134 $as_echo "$ac_try_echo"; } >&5
14135   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14136   ac_status=$?
14137   if test -s conftest.err; then
14138     sed '10a\
14139 ... rest of stderr output deleted ...
14140          10q' conftest.err >conftest.er1
14141     cat conftest.er1 >&5
14142   fi
14143   rm -f conftest.er1 conftest.err
14144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145   test $ac_status = 0; }
14146 done
14147
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14149 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14150 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14151   $as_echo_n "(cached) " >&6
14152 else
14153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h.  */
14155
14156 int
14157 main ()
14158 {
14159 #ifndef __GNUC__
14160        choke me
14161 #endif
14162
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_cxx_try_compile "$LINENO"; then :
14168   ac_compiler_gnu=yes
14169 else
14170   ac_compiler_gnu=no
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14174
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14177 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14178 if test $ac_compiler_gnu = yes; then
14179   GXX=yes
14180 else
14181   GXX=
14182 fi
14183 ac_test_CXXFLAGS=${CXXFLAGS+set}
14184 ac_save_CXXFLAGS=$CXXFLAGS
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14186 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14187 if ${ac_cv_prog_cxx_g+:} false; then :
14188   $as_echo_n "(cached) " >&6
14189 else
14190   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14191    ac_cxx_werror_flag=yes
14192    ac_cv_prog_cxx_g=no
14193    CXXFLAGS="-g"
14194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h.  */
14196
14197 int
14198 main ()
14199 {
14200
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_cxx_try_compile "$LINENO"; then :
14206   ac_cv_prog_cxx_g=yes
14207 else
14208   CXXFLAGS=""
14209       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211
14212 int
14213 main ()
14214 {
14215
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_cxx_try_compile "$LINENO"; then :
14221
14222 else
14223   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14224          CXXFLAGS="-g"
14225          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h.  */
14227
14228 int
14229 main ()
14230 {
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_cxx_try_compile "$LINENO"; then :
14237   ac_cv_prog_cxx_g=yes
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14245 fi
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14247 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14248 if test "$ac_test_CXXFLAGS" = set; then
14249   CXXFLAGS=$ac_save_CXXFLAGS
14250 elif test $ac_cv_prog_cxx_g = yes; then
14251   if test "$GXX" = yes; then
14252     CXXFLAGS="-g -O2"
14253   else
14254     CXXFLAGS="-g"
14255   fi
14256 else
14257   if test "$GXX" = yes; then
14258     CXXFLAGS="-O2"
14259   else
14260     CXXFLAGS=
14261   fi
14262 fi
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268
14269 depcc="$CXX"  am_compiler_list=
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14272 $as_echo_n "checking dependency style of $depcc... " >&6; }
14273 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14274   $as_echo_n "(cached) " >&6
14275 else
14276   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14277   # We make a subdir and do the tests there.  Otherwise we can end up
14278   # making bogus files that we don't know about and never remove.  For
14279   # instance it was reported that on HP-UX the gcc test will end up
14280   # making a dummy file named `D' -- because `-MD' means `put the output
14281   # in D'.
14282   rm -rf conftest.dir
14283   mkdir conftest.dir
14284   # Copy depcomp to subdir because otherwise we won't find it if we're
14285   # using a relative directory.
14286   cp "$am_depcomp" conftest.dir
14287   cd conftest.dir
14288   # We will build objects and dependencies in a subdirectory because
14289   # it helps to detect inapplicable dependency modes.  For instance
14290   # both Tru64's cc and ICC support -MD to output dependencies as a
14291   # side effect of compilation, but ICC will put the dependencies in
14292   # the current directory while Tru64 will put them in the object
14293   # directory.
14294   mkdir sub
14295
14296   am_cv_CXX_dependencies_compiler_type=none
14297   if test "$am_compiler_list" = ""; then
14298      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14299   fi
14300   am__universal=false
14301   case " $depcc " in #(
14302      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14303      esac
14304
14305   for depmode in $am_compiler_list; do
14306     # Setup a source with many dependencies, because some compilers
14307     # like to wrap large dependency lists on column 80 (with \), and
14308     # we should not choose a depcomp mode which is confused by this.
14309     #
14310     # We need to recreate these files for each test, as the compiler may
14311     # overwrite some of them when testing with obscure command lines.
14312     # This happens at least with the AIX C compiler.
14313     : > sub/conftest.c
14314     for i in 1 2 3 4 5 6; do
14315       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14316       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14317       # Solaris 8's {/usr,}/bin/sh.
14318       touch sub/conftst$i.h
14319     done
14320     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14321
14322     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14323     # mode.  It turns out that the SunPro C++ compiler does not properly
14324     # handle `-M -o', and we need to detect this.  Also, some Intel
14325     # versions had trouble with output in subdirs
14326     am__obj=sub/conftest.${OBJEXT-o}
14327     am__minus_obj="-o $am__obj"
14328     case $depmode in
14329     gcc)
14330       # This depmode causes a compiler race in universal mode.
14331       test "$am__universal" = false || continue
14332       ;;
14333     nosideeffect)
14334       # after this tag, mechanisms are not by side-effect, so they'll
14335       # only be used when explicitly requested
14336       if test "x$enable_dependency_tracking" = xyes; then
14337         continue
14338       else
14339         break
14340       fi
14341       ;;
14342     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14343       # This compiler won't grok `-c -o', but also, the minuso test has
14344       # not run yet.  These depmodes are late enough in the game, and
14345       # so weak that their functioning should not be impacted.
14346       am__obj=conftest.${OBJEXT-o}
14347       am__minus_obj=
14348       ;;
14349     none) break ;;
14350     esac
14351     if depmode=$depmode \
14352        source=sub/conftest.c object=$am__obj \
14353        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14354        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14355          >/dev/null 2>conftest.err &&
14356        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14357        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14358        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14359        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14360       # icc doesn't choke on unknown options, it will just issue warnings
14361       # or remarks (even with -Werror).  So we grep stderr for any message
14362       # that says an option was ignored or not supported.
14363       # When given -MP, icc 7.0 and 7.1 complain thusly:
14364       #   icc: Command line warning: ignoring option '-M'; no argument required
14365       # The diagnosis changed in icc 8.0:
14366       #   icc: Command line remark: option '-MP' not supported
14367       if (grep 'ignoring option' conftest.err ||
14368           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14369         am_cv_CXX_dependencies_compiler_type=$depmode
14370         break
14371       fi
14372     fi
14373   done
14374
14375   cd ..
14376   rm -rf conftest.dir
14377 else
14378   am_cv_CXX_dependencies_compiler_type=none
14379 fi
14380
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14383 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14384 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14385
14386  if
14387   test "x$enable_dependency_tracking" != xno \
14388   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14389   am__fastdepCXX_TRUE=
14390   am__fastdepCXX_FALSE='#'
14391 else
14392   am__fastdepCXX_TRUE='#'
14393   am__fastdepCXX_FALSE=
14394 fi
14395
14396
14397
14398
14399 func_stripname_cnf ()
14400 {
14401   case ${2} in
14402   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14403   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14404   esac
14405 } # func_stripname_cnf
14406
14407       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14408     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14409     (test "X$CXX" != "Xg++"))) ; then
14410   ac_ext=cpp
14411 ac_cpp='$CXXCPP $CPPFLAGS'
14412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14416 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14417 if test -z "$CXXCPP"; then
14418   if ${ac_cv_prog_CXXCPP+:} false; then :
14419   $as_echo_n "(cached) " >&6
14420 else
14421       # Double quotes because CXXCPP needs to be expanded
14422     for CXXCPP in "$CXX -E" "/lib/cpp"
14423     do
14424       ac_preproc_ok=false
14425 for ac_cxx_preproc_warn_flag in '' yes
14426 do
14427   # Use a header file that comes with gcc, so configuring glibc
14428   # with a fresh cross-compiler works.
14429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14430   # <limits.h> exists even on freestanding compilers.
14431   # On the NeXT, cc -E runs the code through the compiler's parser,
14432   # not just through cpp. "Syntax error" is here to catch this case.
14433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h.  */
14435 #ifdef __STDC__
14436 # include <limits.h>
14437 #else
14438 # include <assert.h>
14439 #endif
14440                      Syntax error
14441 _ACEOF
14442 if ac_fn_cxx_try_cpp "$LINENO"; then :
14443
14444 else
14445   # Broken: fails on valid input.
14446 continue
14447 fi
14448 rm -f conftest.err conftest.i conftest.$ac_ext
14449
14450   # OK, works on sane cases.  Now check whether nonexistent headers
14451   # can be detected and how.
14452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h.  */
14454 #include <ac_nonexistent.h>
14455 _ACEOF
14456 if ac_fn_cxx_try_cpp "$LINENO"; then :
14457   # Broken: success on invalid input.
14458 continue
14459 else
14460   # Passes both tests.
14461 ac_preproc_ok=:
14462 break
14463 fi
14464 rm -f conftest.err conftest.i conftest.$ac_ext
14465
14466 done
14467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14468 rm -f conftest.i conftest.err conftest.$ac_ext
14469 if $ac_preproc_ok; then :
14470   break
14471 fi
14472
14473     done
14474     ac_cv_prog_CXXCPP=$CXXCPP
14475
14476 fi
14477   CXXCPP=$ac_cv_prog_CXXCPP
14478 else
14479   ac_cv_prog_CXXCPP=$CXXCPP
14480 fi
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14482 $as_echo "$CXXCPP" >&6; }
14483 ac_preproc_ok=false
14484 for ac_cxx_preproc_warn_flag in '' yes
14485 do
14486   # Use a header file that comes with gcc, so configuring glibc
14487   # with a fresh cross-compiler works.
14488   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14489   # <limits.h> exists even on freestanding compilers.
14490   # On the NeXT, cc -E runs the code through the compiler's parser,
14491   # not just through cpp. "Syntax error" is here to catch this case.
14492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h.  */
14494 #ifdef __STDC__
14495 # include <limits.h>
14496 #else
14497 # include <assert.h>
14498 #endif
14499                      Syntax error
14500 _ACEOF
14501 if ac_fn_cxx_try_cpp "$LINENO"; then :
14502
14503 else
14504   # Broken: fails on valid input.
14505 continue
14506 fi
14507 rm -f conftest.err conftest.i conftest.$ac_ext
14508
14509   # OK, works on sane cases.  Now check whether nonexistent headers
14510   # can be detected and how.
14511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h.  */
14513 #include <ac_nonexistent.h>
14514 _ACEOF
14515 if ac_fn_cxx_try_cpp "$LINENO"; then :
14516   # Broken: success on invalid input.
14517 continue
14518 else
14519   # Passes both tests.
14520 ac_preproc_ok=:
14521 break
14522 fi
14523 rm -f conftest.err conftest.i conftest.$ac_ext
14524
14525 done
14526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14527 rm -f conftest.i conftest.err conftest.$ac_ext
14528 if $ac_preproc_ok; then :
14529
14530 else
14531   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14533 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14534 See \`config.log' for more details" "$LINENO" 5; }
14535 fi
14536
14537 ac_ext=c
14538 ac_cpp='$CPP $CPPFLAGS'
14539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14542
14543 else
14544   _lt_caught_CXX_error=yes
14545 fi
14546
14547 ac_ext=cpp
14548 ac_cpp='$CXXCPP $CPPFLAGS'
14549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14552
14553 archive_cmds_need_lc_CXX=no
14554 allow_undefined_flag_CXX=
14555 always_export_symbols_CXX=no
14556 archive_expsym_cmds_CXX=
14557 compiler_needs_object_CXX=no
14558 export_dynamic_flag_spec_CXX=
14559 hardcode_direct_CXX=no
14560 hardcode_direct_absolute_CXX=no
14561 hardcode_libdir_flag_spec_CXX=
14562 hardcode_libdir_separator_CXX=
14563 hardcode_minus_L_CXX=no
14564 hardcode_shlibpath_var_CXX=unsupported
14565 hardcode_automatic_CXX=no
14566 inherit_rpath_CXX=no
14567 module_cmds_CXX=
14568 module_expsym_cmds_CXX=
14569 link_all_deplibs_CXX=unknown
14570 old_archive_cmds_CXX=$old_archive_cmds
14571 reload_flag_CXX=$reload_flag
14572 reload_cmds_CXX=$reload_cmds
14573 no_undefined_flag_CXX=
14574 whole_archive_flag_spec_CXX=
14575 enable_shared_with_static_runtimes_CXX=no
14576
14577 # Source file extension for C++ test sources.
14578 ac_ext=cpp
14579
14580 # Object file extension for compiled C++ test sources.
14581 objext=o
14582 objext_CXX=$objext
14583
14584 # No sense in running all these tests if we already determined that
14585 # the CXX compiler isn't working.  Some variables (like enable_shared)
14586 # are currently assumed to apply to all compilers on this platform,
14587 # and will be corrupted by setting them based on a non-working compiler.
14588 if test "$_lt_caught_CXX_error" != yes; then
14589   # Code to be used in simple compile tests
14590   lt_simple_compile_test_code="int some_variable = 0;"
14591
14592   # Code to be used in simple link tests
14593   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14594
14595   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14596
14597
14598
14599
14600
14601
14602 # If no C compiler was specified, use CC.
14603 LTCC=${LTCC-"$CC"}
14604
14605 # If no C compiler flags were specified, use CFLAGS.
14606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14607
14608 # Allow CC to be a program name with arguments.
14609 compiler=$CC
14610
14611
14612   # save warnings/boilerplate of simple test code
14613   ac_outfile=conftest.$ac_objext
14614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14616 _lt_compiler_boilerplate=`cat conftest.err`
14617 $RM conftest*
14618
14619   ac_outfile=conftest.$ac_objext
14620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14622 _lt_linker_boilerplate=`cat conftest.err`
14623 $RM -r conftest*
14624
14625
14626   # Allow CC to be a program name with arguments.
14627   lt_save_CC=$CC
14628   lt_save_CFLAGS=$CFLAGS
14629   lt_save_LD=$LD
14630   lt_save_GCC=$GCC
14631   GCC=$GXX
14632   lt_save_with_gnu_ld=$with_gnu_ld
14633   lt_save_path_LD=$lt_cv_path_LD
14634   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14635     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14636   else
14637     $as_unset lt_cv_prog_gnu_ld
14638   fi
14639   if test -n "${lt_cv_path_LDCXX+set}"; then
14640     lt_cv_path_LD=$lt_cv_path_LDCXX
14641   else
14642     $as_unset lt_cv_path_LD
14643   fi
14644   test -z "${LDCXX+set}" || LD=$LDCXX
14645   CC=${CXX-"c++"}
14646   CFLAGS=$CXXFLAGS
14647   compiler=$CC
14648   compiler_CXX=$CC
14649   for cc_temp in $compiler""; do
14650   case $cc_temp in
14651     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14652     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14653     \-*) ;;
14654     *) break;;
14655   esac
14656 done
14657 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14658
14659
14660   if test -n "$compiler"; then
14661     # We don't want -fno-exception when compiling C++ code, so set the
14662     # no_builtin_flag separately
14663     if test "$GXX" = yes; then
14664       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14665     else
14666       lt_prog_compiler_no_builtin_flag_CXX=
14667     fi
14668
14669     if test "$GXX" = yes; then
14670       # Set up default GNU C++ configuration
14671
14672
14673
14674 # Check whether --with-gnu-ld was given.
14675 if test "${with_gnu_ld+set}" = set; then :
14676   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14677 else
14678   with_gnu_ld=no
14679 fi
14680
14681 ac_prog=ld
14682 if test "$GCC" = yes; then
14683   # Check if gcc -print-prog-name=ld gives a path.
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14685 $as_echo_n "checking for ld used by $CC... " >&6; }
14686   case $host in
14687   *-*-mingw*)
14688     # gcc leaves a trailing carriage return which upsets mingw
14689     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14690   *)
14691     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14692   esac
14693   case $ac_prog in
14694     # Accept absolute paths.
14695     [\\/]* | ?:[\\/]*)
14696       re_direlt='/[^/][^/]*/\.\./'
14697       # Canonicalize the pathname of ld
14698       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14699       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14700         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14701       done
14702       test -z "$LD" && LD="$ac_prog"
14703       ;;
14704   "")
14705     # If it fails, then pretend we aren't using GCC.
14706     ac_prog=ld
14707     ;;
14708   *)
14709     # If it is relative, then search for the first ld in PATH.
14710     with_gnu_ld=unknown
14711     ;;
14712   esac
14713 elif test "$with_gnu_ld" = yes; then
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14715 $as_echo_n "checking for GNU ld... " >&6; }
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14718 $as_echo_n "checking for non-GNU ld... " >&6; }
14719 fi
14720 if ${lt_cv_path_LD+:} false; then :
14721   $as_echo_n "(cached) " >&6
14722 else
14723   if test -z "$LD"; then
14724   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14725   for ac_dir in $PATH; do
14726     IFS="$lt_save_ifs"
14727     test -z "$ac_dir" && ac_dir=.
14728     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14729       lt_cv_path_LD="$ac_dir/$ac_prog"
14730       # Check to see if the program is GNU ld.  I'd rather use --version,
14731       # but apparently some variants of GNU ld only accept -v.
14732       # Break only if it was the GNU/non-GNU ld that we prefer.
14733       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14734       *GNU* | *'with BFD'*)
14735         test "$with_gnu_ld" != no && break
14736         ;;
14737       *)
14738         test "$with_gnu_ld" != yes && break
14739         ;;
14740       esac
14741     fi
14742   done
14743   IFS="$lt_save_ifs"
14744 else
14745   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14746 fi
14747 fi
14748
14749 LD="$lt_cv_path_LD"
14750 if test -n "$LD"; then
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14752 $as_echo "$LD" >&6; }
14753 else
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 $as_echo "no" >&6; }
14756 fi
14757 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14759 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14760 if ${lt_cv_prog_gnu_ld+:} false; then :
14761   $as_echo_n "(cached) " >&6
14762 else
14763   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14764 case `$LD -v 2>&1 </dev/null` in
14765 *GNU* | *'with BFD'*)
14766   lt_cv_prog_gnu_ld=yes
14767   ;;
14768 *)
14769   lt_cv_prog_gnu_ld=no
14770   ;;
14771 esac
14772 fi
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14774 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14775 with_gnu_ld=$lt_cv_prog_gnu_ld
14776
14777
14778
14779
14780
14781
14782
14783       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14784       # archiving commands below assume that GNU ld is being used.
14785       if test "$with_gnu_ld" = yes; then
14786         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14788
14789         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14790         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14791
14792         # If archive_cmds runs LD, not CC, wlarc should be empty
14793         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14794         #     investigate it a little bit more. (MM)
14795         wlarc='${wl}'
14796
14797         # ancient GNU ld didn't support --whole-archive et. al.
14798         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14799           $GREP 'no-whole-archive' > /dev/null; then
14800           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14801         else
14802           whole_archive_flag_spec_CXX=
14803         fi
14804       else
14805         with_gnu_ld=no
14806         wlarc=
14807
14808         # A generic and very simple default shared library creation
14809         # command for GNU C++ for the case where it uses the native
14810         # linker, instead of GNU ld.  If possible, this setting should
14811         # overridden to take advantage of the native linker features on
14812         # the platform it is being used on.
14813         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14814       fi
14815
14816       # Commands to make compiler produce verbose output that lists
14817       # what "hidden" libraries, object files and flags are used when
14818       # linking a shared library.
14819       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14820
14821     else
14822       GXX=no
14823       with_gnu_ld=no
14824       wlarc=
14825     fi
14826
14827     # PORTME: fill in a description of your system's C++ link characteristics
14828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14830     ld_shlibs_CXX=yes
14831     case $host_os in
14832       aix3*)
14833         # FIXME: insert proper C++ library support
14834         ld_shlibs_CXX=no
14835         ;;
14836       aix[4-9]*)
14837         if test "$host_cpu" = ia64; then
14838           # On IA64, the linker does run time linking by default, so we don't
14839           # have to do anything special.
14840           aix_use_runtimelinking=no
14841           exp_sym_flag='-Bexport'
14842           no_entry_flag=""
14843         else
14844           aix_use_runtimelinking=no
14845
14846           # Test if we are trying to use run time linking or normal
14847           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14848           # need to do runtime linking.
14849           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14850             for ld_flag in $LDFLAGS; do
14851               case $ld_flag in
14852               *-brtl*)
14853                 aix_use_runtimelinking=yes
14854                 break
14855                 ;;
14856               esac
14857             done
14858             ;;
14859           esac
14860
14861           exp_sym_flag='-bexport'
14862           no_entry_flag='-bnoentry'
14863         fi
14864
14865         # When large executables or shared objects are built, AIX ld can
14866         # have problems creating the table of contents.  If linking a library
14867         # or program results in "error TOC overflow" add -mminimal-toc to
14868         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14869         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14870
14871         archive_cmds_CXX=''
14872         hardcode_direct_CXX=yes
14873         hardcode_direct_absolute_CXX=yes
14874         hardcode_libdir_separator_CXX=':'
14875         link_all_deplibs_CXX=yes
14876         file_list_spec_CXX='${wl}-f,'
14877
14878         if test "$GXX" = yes; then
14879           case $host_os in aix4.[012]|aix4.[012].*)
14880           # We only want to do this on AIX 4.2 and lower, the check
14881           # below for broken collect2 doesn't work under 4.3+
14882           collect2name=`${CC} -print-prog-name=collect2`
14883           if test -f "$collect2name" &&
14884              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14885           then
14886             # We have reworked collect2
14887             :
14888           else
14889             # We have old collect2
14890             hardcode_direct_CXX=unsupported
14891             # It fails to find uninstalled libraries when the uninstalled
14892             # path is not listed in the libpath.  Setting hardcode_minus_L
14893             # to unsupported forces relinking
14894             hardcode_minus_L_CXX=yes
14895             hardcode_libdir_flag_spec_CXX='-L$libdir'
14896             hardcode_libdir_separator_CXX=
14897           fi
14898           esac
14899           shared_flag='-shared'
14900           if test "$aix_use_runtimelinking" = yes; then
14901             shared_flag="$shared_flag "'${wl}-G'
14902           fi
14903         else
14904           # not using gcc
14905           if test "$host_cpu" = ia64; then
14906           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14907           # chokes on -Wl,-G. The following line is correct:
14908           shared_flag='-G'
14909           else
14910             if test "$aix_use_runtimelinking" = yes; then
14911               shared_flag='${wl}-G'
14912             else
14913               shared_flag='${wl}-bM:SRE'
14914             fi
14915           fi
14916         fi
14917
14918         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14919         # It seems that -bexpall does not export symbols beginning with
14920         # underscore (_), so it is better to generate a list of symbols to
14921         # export.
14922         always_export_symbols_CXX=yes
14923         if test "$aix_use_runtimelinking" = yes; then
14924           # Warning - without using the other runtime loading flags (-brtl),
14925           # -berok will link without error, but may produce a broken library.
14926           allow_undefined_flag_CXX='-berok'
14927           # Determine the default libpath from the value encoded in an empty
14928           # executable.
14929           if test "${lt_cv_aix_libpath+set}" = set; then
14930   aix_libpath=$lt_cv_aix_libpath
14931 else
14932   if ${lt_cv_aix_libpath__CXX+:} false; then :
14933   $as_echo_n "(cached) " >&6
14934 else
14935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h.  */
14937
14938 int
14939 main ()
14940 {
14941
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_cxx_try_link "$LINENO"; then :
14947
14948   lt_aix_libpath_sed='
14949       /Import File Strings/,/^$/ {
14950           /^0/ {
14951               s/^0  *\([^ ]*\) *$/\1/
14952               p
14953           }
14954       }'
14955   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14956   # Check for a 64-bit object if we didn't find anything.
14957   if test -z "$lt_cv_aix_libpath__CXX"; then
14958     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14959   fi
14960 fi
14961 rm -f core conftest.err conftest.$ac_objext \
14962     conftest$ac_exeext conftest.$ac_ext
14963   if test -z "$lt_cv_aix_libpath__CXX"; then
14964     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14965   fi
14966
14967 fi
14968
14969   aix_libpath=$lt_cv_aix_libpath__CXX
14970 fi
14971
14972           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14973
14974           archive_expsym_cmds_CXX='$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"
14975         else
14976           if test "$host_cpu" = ia64; then
14977             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14978             allow_undefined_flag_CXX="-z nodefs"
14979             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14980           else
14981             # Determine the default libpath from the value encoded in an
14982             # empty executable.
14983             if test "${lt_cv_aix_libpath+set}" = set; then
14984   aix_libpath=$lt_cv_aix_libpath
14985 else
14986   if ${lt_cv_aix_libpath__CXX+:} false; then :
14987   $as_echo_n "(cached) " >&6
14988 else
14989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h.  */
14991
14992 int
14993 main ()
14994 {
14995
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 if ac_fn_cxx_try_link "$LINENO"; then :
15001
15002   lt_aix_libpath_sed='
15003       /Import File Strings/,/^$/ {
15004           /^0/ {
15005               s/^0  *\([^ ]*\) *$/\1/
15006               p
15007           }
15008       }'
15009   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15010   # Check for a 64-bit object if we didn't find anything.
15011   if test -z "$lt_cv_aix_libpath__CXX"; then
15012     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013   fi
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016     conftest$ac_exeext conftest.$ac_ext
15017   if test -z "$lt_cv_aix_libpath__CXX"; then
15018     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15019   fi
15020
15021 fi
15022
15023   aix_libpath=$lt_cv_aix_libpath__CXX
15024 fi
15025
15026             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15027             # Warning - without using the other run time loading flags,
15028             # -berok will link without error, but may produce a broken library.
15029             no_undefined_flag_CXX=' ${wl}-bernotok'
15030             allow_undefined_flag_CXX=' ${wl}-berok'
15031             if test "$with_gnu_ld" = yes; then
15032               # We only use this code for GNU lds that support --whole-archive.
15033               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15034             else
15035               # Exported symbols can be pulled into shared objects from archives
15036               whole_archive_flag_spec_CXX='$convenience'
15037             fi
15038             archive_cmds_need_lc_CXX=yes
15039             # This is similar to how AIX traditionally builds its shared
15040             # libraries.
15041             archive_expsym_cmds_CXX="\$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'
15042           fi
15043         fi
15044         ;;
15045
15046       beos*)
15047         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15048           allow_undefined_flag_CXX=unsupported
15049           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15050           # support --undefined.  This deserves some investigation.  FIXME
15051           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052         else
15053           ld_shlibs_CXX=no
15054         fi
15055         ;;
15056
15057       chorus*)
15058         case $cc_basename in
15059           *)
15060           # FIXME: insert proper C++ library support
15061           ld_shlibs_CXX=no
15062           ;;
15063         esac
15064         ;;
15065
15066       cygwin* | mingw* | pw32* | cegcc*)
15067         case $GXX,$cc_basename in
15068         ,cl* | no,cl*)
15069           # Native MSVC
15070           # hardcode_libdir_flag_spec is actually meaningless, as there is
15071           # no search path for DLLs.
15072           hardcode_libdir_flag_spec_CXX=' '
15073           allow_undefined_flag_CXX=unsupported
15074           always_export_symbols_CXX=yes
15075           file_list_spec_CXX='@'
15076           # Tell ltmain to make .lib files, not .a files.
15077           libext=lib
15078           # Tell ltmain to make .dll files, not .so files.
15079           shrext_cmds=".dll"
15080           # FIXME: Setting linknames here is a bad hack.
15081           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15082           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15083               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15084             else
15085               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15086             fi~
15087             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15088             linknames='
15089           # The linker will not automatically build a static lib if we build a DLL.
15090           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15091           enable_shared_with_static_runtimes_CXX=yes
15092           # Don't use ranlib
15093           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15094           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15095             lt_tool_outputfile="@TOOL_OUTPUT@"~
15096             case $lt_outputfile in
15097               *.exe|*.EXE) ;;
15098               *)
15099                 lt_outputfile="$lt_outputfile.exe"
15100                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15101                 ;;
15102             esac~
15103             func_to_tool_file "$lt_outputfile"~
15104             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15105               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15106               $RM "$lt_outputfile.manifest";
15107             fi'
15108           ;;
15109         *)
15110           # g++
15111           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15112           # as there is no search path for DLLs.
15113           hardcode_libdir_flag_spec_CXX='-L$libdir'
15114           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15115           allow_undefined_flag_CXX=unsupported
15116           always_export_symbols_CXX=no
15117           enable_shared_with_static_runtimes_CXX=yes
15118
15119           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15120             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15121             # If the export-symbols file already is a .def file (1st line
15122             # is EXPORTS), use it as is; otherwise, prepend...
15123             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15124               cp $export_symbols $output_objdir/$soname.def;
15125             else
15126               echo EXPORTS > $output_objdir/$soname.def;
15127               cat $export_symbols >> $output_objdir/$soname.def;
15128             fi~
15129             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15130           else
15131             ld_shlibs_CXX=no
15132           fi
15133           ;;
15134         esac
15135         ;;
15136       darwin* | rhapsody*)
15137
15138
15139   archive_cmds_need_lc_CXX=no
15140   hardcode_direct_CXX=no
15141   hardcode_automatic_CXX=yes
15142   hardcode_shlibpath_var_CXX=unsupported
15143   if test "$lt_cv_ld_force_load" = "yes"; then
15144     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15145
15146   else
15147     whole_archive_flag_spec_CXX=''
15148   fi
15149   link_all_deplibs_CXX=yes
15150   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15151   case $cc_basename in
15152      ifort*) _lt_dar_can_shared=yes ;;
15153      *) _lt_dar_can_shared=$GCC ;;
15154   esac
15155   if test "$_lt_dar_can_shared" = "yes"; then
15156     output_verbose_link_cmd=func_echo_all
15157     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15158     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15159     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15160     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15161        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15162       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15163       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15164     fi
15165
15166   else
15167   ld_shlibs_CXX=no
15168   fi
15169
15170         ;;
15171
15172       dgux*)
15173         case $cc_basename in
15174           ec++*)
15175             # FIXME: insert proper C++ library support
15176             ld_shlibs_CXX=no
15177             ;;
15178           ghcx*)
15179             # Green Hills C++ Compiler
15180             # FIXME: insert proper C++ library support
15181             ld_shlibs_CXX=no
15182             ;;
15183           *)
15184             # FIXME: insert proper C++ library support
15185             ld_shlibs_CXX=no
15186             ;;
15187         esac
15188         ;;
15189
15190       freebsd2.*)
15191         # C++ shared libraries reported to be fairly broken before
15192         # switch to ELF
15193         ld_shlibs_CXX=no
15194         ;;
15195
15196       freebsd-elf*)
15197         archive_cmds_need_lc_CXX=no
15198         ;;
15199
15200       freebsd* | dragonfly*)
15201         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15202         # conventions
15203         ld_shlibs_CXX=yes
15204         ;;
15205
15206       haiku*)
15207         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208         link_all_deplibs_CXX=yes
15209         ;;
15210
15211       hpux9*)
15212         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15213         hardcode_libdir_separator_CXX=:
15214         export_dynamic_flag_spec_CXX='${wl}-E'
15215         hardcode_direct_CXX=yes
15216         hardcode_minus_L_CXX=yes # Not in the search PATH,
15217                                              # but as the default
15218                                              # location of the library.
15219
15220         case $cc_basename in
15221           CC*)
15222             # FIXME: insert proper C++ library support
15223             ld_shlibs_CXX=no
15224             ;;
15225           aCC*)
15226             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15227             # Commands to make compiler produce verbose output that lists
15228             # what "hidden" libraries, object files and flags are used when
15229             # linking a shared library.
15230             #
15231             # There doesn't appear to be a way to prevent this compiler from
15232             # explicitly linking system object files so we need to strip them
15233             # from the output so that they don't get included in the library
15234             # dependencies.
15235             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15236             ;;
15237           *)
15238             if test "$GXX" = yes; then
15239               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15240             else
15241               # FIXME: insert proper C++ library support
15242               ld_shlibs_CXX=no
15243             fi
15244             ;;
15245         esac
15246         ;;
15247
15248       hpux10*|hpux11*)
15249         if test $with_gnu_ld = no; then
15250           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15251           hardcode_libdir_separator_CXX=:
15252
15253           case $host_cpu in
15254             hppa*64*|ia64*)
15255               ;;
15256             *)
15257               export_dynamic_flag_spec_CXX='${wl}-E'
15258               ;;
15259           esac
15260         fi
15261         case $host_cpu in
15262           hppa*64*|ia64*)
15263             hardcode_direct_CXX=no
15264             hardcode_shlibpath_var_CXX=no
15265             ;;
15266           *)
15267             hardcode_direct_CXX=yes
15268             hardcode_direct_absolute_CXX=yes
15269             hardcode_minus_L_CXX=yes # Not in the search PATH,
15270                                                  # but as the default
15271                                                  # location of the library.
15272             ;;
15273         esac
15274
15275         case $cc_basename in
15276           CC*)
15277             # FIXME: insert proper C++ library support
15278             ld_shlibs_CXX=no
15279             ;;
15280           aCC*)
15281             case $host_cpu in
15282               hppa*64*)
15283                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15284                 ;;
15285               ia64*)
15286                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15287                 ;;
15288               *)
15289                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15290                 ;;
15291             esac
15292             # Commands to make compiler produce verbose output that lists
15293             # what "hidden" libraries, object files and flags are used when
15294             # linking a shared library.
15295             #
15296             # There doesn't appear to be a way to prevent this compiler from
15297             # explicitly linking system object files so we need to strip them
15298             # from the output so that they don't get included in the library
15299             # dependencies.
15300             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15301             ;;
15302           *)
15303             if test "$GXX" = yes; then
15304               if test $with_gnu_ld = no; then
15305                 case $host_cpu in
15306                   hppa*64*)
15307                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15308                     ;;
15309                   ia64*)
15310                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15311                     ;;
15312                   *)
15313                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15314                     ;;
15315                 esac
15316               fi
15317             else
15318               # FIXME: insert proper C++ library support
15319               ld_shlibs_CXX=no
15320             fi
15321             ;;
15322         esac
15323         ;;
15324
15325       interix[3-9]*)
15326         hardcode_direct_CXX=no
15327         hardcode_shlibpath_var_CXX=no
15328         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15329         export_dynamic_flag_spec_CXX='${wl}-E'
15330         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15331         # Instead, shared libraries are loaded at an image base (0x10000000 by
15332         # default) and relocated if they conflict, which is a slow very memory
15333         # consuming and fragmenting process.  To avoid this, we pick a random,
15334         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15335         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15336         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15337         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15338         ;;
15339       irix5* | irix6*)
15340         case $cc_basename in
15341           CC*)
15342             # SGI C++
15343             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15344
15345             # Archives containing C++ object files must be created using
15346             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15347             # necessary to make sure instantiated templates are included
15348             # in the archive.
15349             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15350             ;;
15351           *)
15352             if test "$GXX" = yes; then
15353               if test "$with_gnu_ld" = no; then
15354                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15355               else
15356                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15357               fi
15358             fi
15359             link_all_deplibs_CXX=yes
15360             ;;
15361         esac
15362         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15363         hardcode_libdir_separator_CXX=:
15364         inherit_rpath_CXX=yes
15365         ;;
15366
15367       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15368         case $cc_basename in
15369           KCC*)
15370             # Kuck and Associates, Inc. (KAI) C++ Compiler
15371
15372             # KCC will only create a shared library if the output file
15373             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15374             # to its proper name (with version) after linking.
15375             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15376             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15377             # Commands to make compiler produce verbose output that lists
15378             # what "hidden" libraries, object files and flags are used when
15379             # linking a shared library.
15380             #
15381             # There doesn't appear to be a way to prevent this compiler from
15382             # explicitly linking system object files so we need to strip them
15383             # from the output so that they don't get included in the library
15384             # dependencies.
15385             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15386
15387             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15388             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15389
15390             # Archives containing C++ object files must be created using
15391             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15392             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15393             ;;
15394           icpc* | ecpc* )
15395             # Intel C++
15396             with_gnu_ld=yes
15397             # version 8.0 and above of icpc choke on multiply defined symbols
15398             # if we add $predep_objects and $postdep_objects, however 7.1 and
15399             # earlier do not add the objects themselves.
15400             case `$CC -V 2>&1` in
15401               *"Version 7."*)
15402                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15403                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15404                 ;;
15405               *)  # Version 8.0 or newer
15406                 tmp_idyn=
15407                 case $host_cpu in
15408                   ia64*) tmp_idyn=' -i_dynamic';;
15409                 esac
15410                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15411                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15412                 ;;
15413             esac
15414             archive_cmds_need_lc_CXX=no
15415             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15416             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15417             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15418             ;;
15419           pgCC* | pgcpp*)
15420             # Portland Group C++ compiler
15421             case `$CC -V` in
15422             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15423               prelink_cmds_CXX='tpldir=Template.dir~
15424                 rm -rf $tpldir~
15425                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15426                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15427               old_archive_cmds_CXX='tpldir=Template.dir~
15428                 rm -rf $tpldir~
15429                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15430                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15431                 $RANLIB $oldlib'
15432               archive_cmds_CXX='tpldir=Template.dir~
15433                 rm -rf $tpldir~
15434                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15435                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15436               archive_expsym_cmds_CXX='tpldir=Template.dir~
15437                 rm -rf $tpldir~
15438                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15439                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15440               ;;
15441             *) # Version 6 and above use weak symbols
15442               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15443               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15444               ;;
15445             esac
15446
15447             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15448             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15449             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15450             ;;
15451           cxx*)
15452             # Compaq C++
15453             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15454             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15455
15456             runpath_var=LD_RUN_PATH
15457             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15458             hardcode_libdir_separator_CXX=:
15459
15460             # Commands to make compiler produce verbose output that lists
15461             # what "hidden" libraries, object files and flags are used when
15462             # linking a shared library.
15463             #
15464             # There doesn't appear to be a way to prevent this compiler from
15465             # explicitly linking system object files so we need to strip them
15466             # from the output so that they don't get included in the library
15467             # dependencies.
15468             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15469             ;;
15470           xl* | mpixl* | bgxl*)
15471             # IBM XL 8.0 on PPC, with GNU ld
15472             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15473             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15474             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15475             if test "x$supports_anon_versioning" = xyes; then
15476               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15477                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15478                 echo "local: *; };" >> $output_objdir/$libname.ver~
15479                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15480             fi
15481             ;;
15482           *)
15483             case `$CC -V 2>&1 | sed 5q` in
15484             *Sun\ C*)
15485               # Sun C++ 5.9
15486               no_undefined_flag_CXX=' -zdefs'
15487               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15488               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15489               hardcode_libdir_flag_spec_CXX='-R$libdir'
15490               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15491               compiler_needs_object_CXX=yes
15492
15493               # Not sure whether something based on
15494               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15495               # would be better.
15496               output_verbose_link_cmd='func_echo_all'
15497
15498               # Archives containing C++ object files must be created using
15499               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15500               # necessary to make sure instantiated templates are included
15501               # in the archive.
15502               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15503               ;;
15504             esac
15505             ;;
15506         esac
15507         ;;
15508
15509       lynxos*)
15510         # FIXME: insert proper C++ library support
15511         ld_shlibs_CXX=no
15512         ;;
15513
15514       m88k*)
15515         # FIXME: insert proper C++ library support
15516         ld_shlibs_CXX=no
15517         ;;
15518
15519       mvs*)
15520         case $cc_basename in
15521           cxx*)
15522             # FIXME: insert proper C++ library support
15523             ld_shlibs_CXX=no
15524             ;;
15525           *)
15526             # FIXME: insert proper C++ library support
15527             ld_shlibs_CXX=no
15528             ;;
15529         esac
15530         ;;
15531
15532       netbsd*)
15533         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15534           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15535           wlarc=
15536           hardcode_libdir_flag_spec_CXX='-R$libdir'
15537           hardcode_direct_CXX=yes
15538           hardcode_shlibpath_var_CXX=no
15539         fi
15540         # Workaround some broken pre-1.5 toolchains
15541         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15542         ;;
15543
15544       *nto* | *qnx*)
15545         ld_shlibs_CXX=yes
15546         ;;
15547
15548       openbsd2*)
15549         # C++ shared libraries are fairly broken
15550         ld_shlibs_CXX=no
15551         ;;
15552
15553       openbsd*)
15554         if test -f /usr/libexec/ld.so; then
15555           hardcode_direct_CXX=yes
15556           hardcode_shlibpath_var_CXX=no
15557           hardcode_direct_absolute_CXX=yes
15558           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15559           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15560           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15561             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15562             export_dynamic_flag_spec_CXX='${wl}-E'
15563             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15564           fi
15565           output_verbose_link_cmd=func_echo_all
15566         else
15567           ld_shlibs_CXX=no
15568         fi
15569         ;;
15570
15571       osf3* | osf4* | osf5*)
15572         case $cc_basename in
15573           KCC*)
15574             # Kuck and Associates, Inc. (KAI) C++ Compiler
15575
15576             # KCC will only create a shared library if the output file
15577             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15578             # to its proper name (with version) after linking.
15579             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15580
15581             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15582             hardcode_libdir_separator_CXX=:
15583
15584             # Archives containing C++ object files must be created using
15585             # the KAI C++ compiler.
15586             case $host in
15587               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15588               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15589             esac
15590             ;;
15591           RCC*)
15592             # Rational C++ 2.4.1
15593             # FIXME: insert proper C++ library support
15594             ld_shlibs_CXX=no
15595             ;;
15596           cxx*)
15597             case $host in
15598               osf3*)
15599                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15600                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15601                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15602                 ;;
15603               *)
15604                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15605                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15606                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15607                   echo "-hidden">> $lib.exp~
15608                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
15609                   $RM $lib.exp'
15610                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15611                 ;;
15612             esac
15613
15614             hardcode_libdir_separator_CXX=:
15615
15616             # Commands to make compiler produce verbose output that lists
15617             # what "hidden" libraries, object files and flags are used when
15618             # linking a shared library.
15619             #
15620             # There doesn't appear to be a way to prevent this compiler from
15621             # explicitly linking system object files so we need to strip them
15622             # from the output so that they don't get included in the library
15623             # dependencies.
15624             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15625             ;;
15626           *)
15627             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15628               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15629               case $host in
15630                 osf3*)
15631                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15632                   ;;
15633                 *)
15634                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15635                   ;;
15636               esac
15637
15638               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15639               hardcode_libdir_separator_CXX=:
15640
15641               # Commands to make compiler produce verbose output that lists
15642               # what "hidden" libraries, object files and flags are used when
15643               # linking a shared library.
15644               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15645
15646             else
15647               # FIXME: insert proper C++ library support
15648               ld_shlibs_CXX=no
15649             fi
15650             ;;
15651         esac
15652         ;;
15653
15654       psos*)
15655         # FIXME: insert proper C++ library support
15656         ld_shlibs_CXX=no
15657         ;;
15658
15659       sunos4*)
15660         case $cc_basename in
15661           CC*)
15662             # Sun C++ 4.x
15663             # FIXME: insert proper C++ library support
15664             ld_shlibs_CXX=no
15665             ;;
15666           lcc*)
15667             # Lucid
15668             # FIXME: insert proper C++ library support
15669             ld_shlibs_CXX=no
15670             ;;
15671           *)
15672             # FIXME: insert proper C++ library support
15673             ld_shlibs_CXX=no
15674             ;;
15675         esac
15676         ;;
15677
15678       solaris*)
15679         case $cc_basename in
15680           CC* | sunCC*)
15681             # Sun C++ 4.2, 5.x and Centerline C++
15682             archive_cmds_need_lc_CXX=yes
15683             no_undefined_flag_CXX=' -zdefs'
15684             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15685             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15686               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15687
15688             hardcode_libdir_flag_spec_CXX='-R$libdir'
15689             hardcode_shlibpath_var_CXX=no
15690             case $host_os in
15691               solaris2.[0-5] | solaris2.[0-5].*) ;;
15692               *)
15693                 # The compiler driver will combine and reorder linker options,
15694                 # but understands `-z linker_flag'.
15695                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15696                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15697                 ;;
15698             esac
15699             link_all_deplibs_CXX=yes
15700
15701             output_verbose_link_cmd='func_echo_all'
15702
15703             # Archives containing C++ object files must be created using
15704             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15705             # necessary to make sure instantiated templates are included
15706             # in the archive.
15707             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15708             ;;
15709           gcx*)
15710             # Green Hills C++ Compiler
15711             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15712
15713             # The C++ compiler must be used to create the archive.
15714             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15715             ;;
15716           *)
15717             # GNU C++ compiler with Solaris linker
15718             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15719               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15720               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15721                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15722                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15723                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15724
15725                 # Commands to make compiler produce verbose output that lists
15726                 # what "hidden" libraries, object files and flags are used when
15727                 # linking a shared library.
15728                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15729               else
15730                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15731                 # platform.
15732                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15733                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15734                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15735
15736                 # Commands to make compiler produce verbose output that lists
15737                 # what "hidden" libraries, object files and flags are used when
15738                 # linking a shared library.
15739                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15740               fi
15741
15742               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15743               case $host_os in
15744                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15745                 *)
15746                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15747                   ;;
15748               esac
15749             fi
15750             ;;
15751         esac
15752         ;;
15753
15754     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15755       no_undefined_flag_CXX='${wl}-z,text'
15756       archive_cmds_need_lc_CXX=no
15757       hardcode_shlibpath_var_CXX=no
15758       runpath_var='LD_RUN_PATH'
15759
15760       case $cc_basename in
15761         CC*)
15762           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15763           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15764           ;;
15765         *)
15766           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15767           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15768           ;;
15769       esac
15770       ;;
15771
15772       sysv5* | sco3.2v5* | sco5v6*)
15773         # Note: We can NOT use -z defs as we might desire, because we do not
15774         # link with -lc, and that would cause any symbols used from libc to
15775         # always be unresolved, which means just about no library would
15776         # ever link correctly.  If we're not using GNU ld we use -z text
15777         # though, which does catch some bad symbols but isn't as heavy-handed
15778         # as -z defs.
15779         no_undefined_flag_CXX='${wl}-z,text'
15780         allow_undefined_flag_CXX='${wl}-z,nodefs'
15781         archive_cmds_need_lc_CXX=no
15782         hardcode_shlibpath_var_CXX=no
15783         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15784         hardcode_libdir_separator_CXX=':'
15785         link_all_deplibs_CXX=yes
15786         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15787         runpath_var='LD_RUN_PATH'
15788
15789         case $cc_basename in
15790           CC*)
15791             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15792             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15793             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15794               '"$old_archive_cmds_CXX"
15795             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15796               '"$reload_cmds_CXX"
15797             ;;
15798           *)
15799             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15801             ;;
15802         esac
15803       ;;
15804
15805       tandem*)
15806         case $cc_basename in
15807           NCC*)
15808             # NonStop-UX NCC 3.20
15809             # FIXME: insert proper C++ library support
15810             ld_shlibs_CXX=no
15811             ;;
15812           *)
15813             # FIXME: insert proper C++ library support
15814             ld_shlibs_CXX=no
15815             ;;
15816         esac
15817         ;;
15818
15819       vxworks*)
15820         # FIXME: insert proper C++ library support
15821         ld_shlibs_CXX=no
15822         ;;
15823
15824       *)
15825         # FIXME: insert proper C++ library support
15826         ld_shlibs_CXX=no
15827         ;;
15828     esac
15829
15830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15831 $as_echo "$ld_shlibs_CXX" >&6; }
15832     test "$ld_shlibs_CXX" = no && can_build_shared=no
15833
15834     GCC_CXX="$GXX"
15835     LD_CXX="$LD"
15836
15837     ## CAVEAT EMPTOR:
15838     ## There is no encapsulation within the following macros, do not change
15839     ## the running order or otherwise move them around unless you know exactly
15840     ## what you are doing...
15841     # Dependencies to place before and after the object being linked:
15842 predep_objects_CXX=
15843 postdep_objects_CXX=
15844 predeps_CXX=
15845 postdeps_CXX=
15846 compiler_lib_search_path_CXX=
15847
15848 cat > conftest.$ac_ext <<_LT_EOF
15849 class Foo
15850 {
15851 public:
15852   Foo (void) { a = 0; }
15853 private:
15854   int a;
15855 };
15856 _LT_EOF
15857
15858
15859 _lt_libdeps_save_CFLAGS=$CFLAGS
15860 case "$CC $CFLAGS " in #(
15861 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15862 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15863 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15864 esac
15865
15866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15867   (eval $ac_compile) 2>&5
15868   ac_status=$?
15869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15870   test $ac_status = 0; }; then
15871   # Parse the compiler output and extract the necessary
15872   # objects, libraries and library flags.
15873
15874   # Sentinel used to keep track of whether or not we are before
15875   # the conftest object file.
15876   pre_test_object_deps_done=no
15877
15878   for p in `eval "$output_verbose_link_cmd"`; do
15879     case ${prev}${p} in
15880
15881     -L* | -R* | -l*)
15882        # Some compilers place space between "-{L,R}" and the path.
15883        # Remove the space.
15884        if test $p = "-L" ||
15885           test $p = "-R"; then
15886          prev=$p
15887          continue
15888        fi
15889
15890        # Expand the sysroot to ease extracting the directories later.
15891        if test -z "$prev"; then
15892          case $p in
15893          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15894          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15895          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15896          esac
15897        fi
15898        case $p in
15899        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15900        esac
15901        if test "$pre_test_object_deps_done" = no; then
15902          case ${prev} in
15903          -L | -R)
15904            # Internal compiler library paths should come after those
15905            # provided the user.  The postdeps already come after the
15906            # user supplied libs so there is no need to process them.
15907            if test -z "$compiler_lib_search_path_CXX"; then
15908              compiler_lib_search_path_CXX="${prev}${p}"
15909            else
15910              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15911            fi
15912            ;;
15913          # The "-l" case would never come before the object being
15914          # linked, so don't bother handling this case.
15915          esac
15916        else
15917          if test -z "$postdeps_CXX"; then
15918            postdeps_CXX="${prev}${p}"
15919          else
15920            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15921          fi
15922        fi
15923        prev=
15924        ;;
15925
15926     *.lto.$objext) ;; # Ignore GCC LTO objects
15927     *.$objext)
15928        # This assumes that the test object file only shows up
15929        # once in the compiler output.
15930        if test "$p" = "conftest.$objext"; then
15931          pre_test_object_deps_done=yes
15932          continue
15933        fi
15934
15935        if test "$pre_test_object_deps_done" = no; then
15936          if test -z "$predep_objects_CXX"; then
15937            predep_objects_CXX="$p"
15938          else
15939            predep_objects_CXX="$predep_objects_CXX $p"
15940          fi
15941        else
15942          if test -z "$postdep_objects_CXX"; then
15943            postdep_objects_CXX="$p"
15944          else
15945            postdep_objects_CXX="$postdep_objects_CXX $p"
15946          fi
15947        fi
15948        ;;
15949
15950     *) ;; # Ignore the rest.
15951
15952     esac
15953   done
15954
15955   # Clean up.
15956   rm -f a.out a.exe
15957 else
15958   echo "libtool.m4: error: problem compiling CXX test program"
15959 fi
15960
15961 $RM -f confest.$objext
15962 CFLAGS=$_lt_libdeps_save_CFLAGS
15963
15964 # PORTME: override above test on systems where it is broken
15965 case $host_os in
15966 interix[3-9]*)
15967   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15968   # hack all around it, let's just trust "g++" to DTRT.
15969   predep_objects_CXX=
15970   postdep_objects_CXX=
15971   postdeps_CXX=
15972   ;;
15973
15974 linux*)
15975   case `$CC -V 2>&1 | sed 5q` in
15976   *Sun\ C*)
15977     # Sun C++ 5.9
15978
15979     # The more standards-conforming stlport4 library is
15980     # incompatible with the Cstd library. Avoid specifying
15981     # it if it's in CXXFLAGS. Ignore libCrun as
15982     # -library=stlport4 depends on it.
15983     case " $CXX $CXXFLAGS " in
15984     *" -library=stlport4 "*)
15985       solaris_use_stlport4=yes
15986       ;;
15987     esac
15988
15989     if test "$solaris_use_stlport4" != yes; then
15990       postdeps_CXX='-library=Cstd -library=Crun'
15991     fi
15992     ;;
15993   esac
15994   ;;
15995
15996 solaris*)
15997   case $cc_basename in
15998   CC* | sunCC*)
15999     # The more standards-conforming stlport4 library is
16000     # incompatible with the Cstd library. Avoid specifying
16001     # it if it's in CXXFLAGS. Ignore libCrun as
16002     # -library=stlport4 depends on it.
16003     case " $CXX $CXXFLAGS " in
16004     *" -library=stlport4 "*)
16005       solaris_use_stlport4=yes
16006       ;;
16007     esac
16008
16009     # Adding this requires a known-good setup of shared libraries for
16010     # Sun compiler versions before 5.6, else PIC objects from an old
16011     # archive will be linked into the output, leading to subtle bugs.
16012     if test "$solaris_use_stlport4" != yes; then
16013       postdeps_CXX='-library=Cstd -library=Crun'
16014     fi
16015     ;;
16016   esac
16017   ;;
16018 esac
16019
16020
16021 case " $postdeps_CXX " in
16022 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16023 esac
16024  compiler_lib_search_dirs_CXX=
16025 if test -n "${compiler_lib_search_path_CXX}"; then
16026  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16027 fi
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059     lt_prog_compiler_wl_CXX=
16060 lt_prog_compiler_pic_CXX=
16061 lt_prog_compiler_static_CXX=
16062
16063
16064   # C++ specific cases for pic, static, wl, etc.
16065   if test "$GXX" = yes; then
16066     lt_prog_compiler_wl_CXX='-Wl,'
16067     lt_prog_compiler_static_CXX='-static'
16068
16069     case $host_os in
16070     aix*)
16071       # All AIX code is PIC.
16072       if test "$host_cpu" = ia64; then
16073         # AIX 5 now supports IA64 processor
16074         lt_prog_compiler_static_CXX='-Bstatic'
16075       fi
16076       ;;
16077
16078     amigaos*)
16079       case $host_cpu in
16080       powerpc)
16081             # see comment about AmigaOS4 .so support
16082             lt_prog_compiler_pic_CXX='-fPIC'
16083         ;;
16084       m68k)
16085             # FIXME: we need at least 68020 code to build shared libraries, but
16086             # adding the `-m68020' flag to GCC prevents building anything better,
16087             # like `-m68040'.
16088             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16089         ;;
16090       esac
16091       ;;
16092
16093     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16094       # PIC is the default for these OSes.
16095       ;;
16096     mingw* | cygwin* | os2* | pw32* | cegcc*)
16097       # This hack is so that the source file can tell whether it is being
16098       # built for inclusion in a dll (and should export symbols for example).
16099       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16100       # (--disable-auto-import) libraries
16101       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16102       ;;
16103     darwin* | rhapsody*)
16104       # PIC is the default on this platform
16105       # Common symbols not allowed in MH_DYLIB files
16106       lt_prog_compiler_pic_CXX='-fno-common'
16107       ;;
16108     *djgpp*)
16109       # DJGPP does not support shared libraries at all
16110       lt_prog_compiler_pic_CXX=
16111       ;;
16112     haiku*)
16113       # PIC is the default for Haiku.
16114       # The "-static" flag exists, but is broken.
16115       lt_prog_compiler_static_CXX=
16116       ;;
16117     interix[3-9]*)
16118       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16119       # Instead, we relocate shared libraries at runtime.
16120       ;;
16121     sysv4*MP*)
16122       if test -d /usr/nec; then
16123         lt_prog_compiler_pic_CXX=-Kconform_pic
16124       fi
16125       ;;
16126     hpux*)
16127       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16128       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16129       # sets the default TLS model and affects inlining.
16130       case $host_cpu in
16131       hppa*64*)
16132         ;;
16133       *)
16134         lt_prog_compiler_pic_CXX='-fPIC'
16135         ;;
16136       esac
16137       ;;
16138     *qnx* | *nto*)
16139       # QNX uses GNU C++, but need to define -shared option too, otherwise
16140       # it will coredump.
16141       lt_prog_compiler_pic_CXX='-fPIC -shared'
16142       ;;
16143     *)
16144       lt_prog_compiler_pic_CXX='-fPIC'
16145       ;;
16146     esac
16147   else
16148     case $host_os in
16149       aix[4-9]*)
16150         # All AIX code is PIC.
16151         if test "$host_cpu" = ia64; then
16152           # AIX 5 now supports IA64 processor
16153           lt_prog_compiler_static_CXX='-Bstatic'
16154         else
16155           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16156         fi
16157         ;;
16158       chorus*)
16159         case $cc_basename in
16160         cxch68*)
16161           # Green Hills C++ Compiler
16162           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16163           ;;
16164         esac
16165         ;;
16166       mingw* | cygwin* | os2* | pw32* | cegcc*)
16167         # This hack is so that the source file can tell whether it is being
16168         # built for inclusion in a dll (and should export symbols for example).
16169         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16170         ;;
16171       dgux*)
16172         case $cc_basename in
16173           ec++*)
16174             lt_prog_compiler_pic_CXX='-KPIC'
16175             ;;
16176           ghcx*)
16177             # Green Hills C++ Compiler
16178             lt_prog_compiler_pic_CXX='-pic'
16179             ;;
16180           *)
16181             ;;
16182         esac
16183         ;;
16184       freebsd* | dragonfly*)
16185         # FreeBSD uses GNU C++
16186         ;;
16187       hpux9* | hpux10* | hpux11*)
16188         case $cc_basename in
16189           CC*)
16190             lt_prog_compiler_wl_CXX='-Wl,'
16191             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16192             if test "$host_cpu" != ia64; then
16193               lt_prog_compiler_pic_CXX='+Z'
16194             fi
16195             ;;
16196           aCC*)
16197             lt_prog_compiler_wl_CXX='-Wl,'
16198             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16199             case $host_cpu in
16200             hppa*64*|ia64*)
16201               # +Z the default
16202               ;;
16203             *)
16204               lt_prog_compiler_pic_CXX='+Z'
16205               ;;
16206             esac
16207             ;;
16208           *)
16209             ;;
16210         esac
16211         ;;
16212       interix*)
16213         # This is c89, which is MS Visual C++ (no shared libs)
16214         # Anyone wants to do a port?
16215         ;;
16216       irix5* | irix6* | nonstopux*)
16217         case $cc_basename in
16218           CC*)
16219             lt_prog_compiler_wl_CXX='-Wl,'
16220             lt_prog_compiler_static_CXX='-non_shared'
16221             # CC pic flag -KPIC is the default.
16222             ;;
16223           *)
16224             ;;
16225         esac
16226         ;;
16227       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16228         case $cc_basename in
16229           KCC*)
16230             # KAI C++ Compiler
16231             lt_prog_compiler_wl_CXX='--backend -Wl,'
16232             lt_prog_compiler_pic_CXX='-fPIC'
16233             ;;
16234           ecpc* )
16235             # old Intel C++ for x86_64 which still supported -KPIC.
16236             lt_prog_compiler_wl_CXX='-Wl,'
16237             lt_prog_compiler_pic_CXX='-KPIC'
16238             lt_prog_compiler_static_CXX='-static'
16239             ;;
16240           icpc* )
16241             # Intel C++, used to be incompatible with GCC.
16242             # ICC 10 doesn't accept -KPIC any more.
16243             lt_prog_compiler_wl_CXX='-Wl,'
16244             lt_prog_compiler_pic_CXX='-fPIC'
16245             lt_prog_compiler_static_CXX='-static'
16246             ;;
16247           pgCC* | pgcpp*)
16248             # Portland Group C++ compiler
16249             lt_prog_compiler_wl_CXX='-Wl,'
16250             lt_prog_compiler_pic_CXX='-fpic'
16251             lt_prog_compiler_static_CXX='-Bstatic'
16252             ;;
16253           cxx*)
16254             # Compaq C++
16255             # Make sure the PIC flag is empty.  It appears that all Alpha
16256             # Linux and Compaq Tru64 Unix objects are PIC.
16257             lt_prog_compiler_pic_CXX=
16258             lt_prog_compiler_static_CXX='-non_shared'
16259             ;;
16260           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16261             # IBM XL 8.0, 9.0 on PPC and BlueGene
16262             lt_prog_compiler_wl_CXX='-Wl,'
16263             lt_prog_compiler_pic_CXX='-qpic'
16264             lt_prog_compiler_static_CXX='-qstaticlink'
16265             ;;
16266           *)
16267             case `$CC -V 2>&1 | sed 5q` in
16268             *Sun\ C*)
16269               # Sun C++ 5.9
16270               lt_prog_compiler_pic_CXX='-KPIC'
16271               lt_prog_compiler_static_CXX='-Bstatic'
16272               lt_prog_compiler_wl_CXX='-Qoption ld '
16273               ;;
16274             esac
16275             ;;
16276         esac
16277         ;;
16278       lynxos*)
16279         ;;
16280       m88k*)
16281         ;;
16282       mvs*)
16283         case $cc_basename in
16284           cxx*)
16285             lt_prog_compiler_pic_CXX='-W c,exportall'
16286             ;;
16287           *)
16288             ;;
16289         esac
16290         ;;
16291       netbsd* | netbsdelf*-gnu)
16292         ;;
16293       *qnx* | *nto*)
16294         # QNX uses GNU C++, but need to define -shared option too, otherwise
16295         # it will coredump.
16296         lt_prog_compiler_pic_CXX='-fPIC -shared'
16297         ;;
16298       osf3* | osf4* | osf5*)
16299         case $cc_basename in
16300           KCC*)
16301             lt_prog_compiler_wl_CXX='--backend -Wl,'
16302             ;;
16303           RCC*)
16304             # Rational C++ 2.4.1
16305             lt_prog_compiler_pic_CXX='-pic'
16306             ;;
16307           cxx*)
16308             # Digital/Compaq C++
16309             lt_prog_compiler_wl_CXX='-Wl,'
16310             # Make sure the PIC flag is empty.  It appears that all Alpha
16311             # Linux and Compaq Tru64 Unix objects are PIC.
16312             lt_prog_compiler_pic_CXX=
16313             lt_prog_compiler_static_CXX='-non_shared'
16314             ;;
16315           *)
16316             ;;
16317         esac
16318         ;;
16319       psos*)
16320         ;;
16321       solaris*)
16322         case $cc_basename in
16323           CC* | sunCC*)
16324             # Sun C++ 4.2, 5.x and Centerline C++
16325             lt_prog_compiler_pic_CXX='-KPIC'
16326             lt_prog_compiler_static_CXX='-Bstatic'
16327             lt_prog_compiler_wl_CXX='-Qoption ld '
16328             ;;
16329           gcx*)
16330             # Green Hills C++ Compiler
16331             lt_prog_compiler_pic_CXX='-PIC'
16332             ;;
16333           *)
16334             ;;
16335         esac
16336         ;;
16337       sunos4*)
16338         case $cc_basename in
16339           CC*)
16340             # Sun C++ 4.x
16341             lt_prog_compiler_pic_CXX='-pic'
16342             lt_prog_compiler_static_CXX='-Bstatic'
16343             ;;
16344           lcc*)
16345             # Lucid
16346             lt_prog_compiler_pic_CXX='-pic'
16347             ;;
16348           *)
16349             ;;
16350         esac
16351         ;;
16352       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16353         case $cc_basename in
16354           CC*)
16355             lt_prog_compiler_wl_CXX='-Wl,'
16356             lt_prog_compiler_pic_CXX='-KPIC'
16357             lt_prog_compiler_static_CXX='-Bstatic'
16358             ;;
16359         esac
16360         ;;
16361       tandem*)
16362         case $cc_basename in
16363           NCC*)
16364             # NonStop-UX NCC 3.20
16365             lt_prog_compiler_pic_CXX='-KPIC'
16366             ;;
16367           *)
16368             ;;
16369         esac
16370         ;;
16371       vxworks*)
16372         ;;
16373       *)
16374         lt_prog_compiler_can_build_shared_CXX=no
16375         ;;
16376     esac
16377   fi
16378
16379 case $host_os in
16380   # For platforms which do not support PIC, -DPIC is meaningless:
16381   *djgpp*)
16382     lt_prog_compiler_pic_CXX=
16383     ;;
16384   *)
16385     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16386     ;;
16387 esac
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16390 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16391 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16392   $as_echo_n "(cached) " >&6
16393 else
16394   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16397 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16398 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16399
16400 #
16401 # Check to make sure the PIC flag actually works.
16402 #
16403 if test -n "$lt_prog_compiler_pic_CXX"; then
16404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16405 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16406 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16407   $as_echo_n "(cached) " >&6
16408 else
16409   lt_cv_prog_compiler_pic_works_CXX=no
16410    ac_outfile=conftest.$ac_objext
16411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16412    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16413    # Insert the option either (1) after the last *FLAGS variable, or
16414    # (2) before a word containing "conftest.", or (3) at the end.
16415    # Note that $ac_compile itself does not contain backslashes and begins
16416    # with a dollar sign (not a hyphen), so the echo should work correctly.
16417    # The option is referenced via a variable to avoid confusing sed.
16418    lt_compile=`echo "$ac_compile" | $SED \
16419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16421    -e 's:$: $lt_compiler_flag:'`
16422    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16423    (eval "$lt_compile" 2>conftest.err)
16424    ac_status=$?
16425    cat conftest.err >&5
16426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427    if (exit $ac_status) && test -s "$ac_outfile"; then
16428      # The compiler can only warn and ignore the option if not recognized
16429      # So say no if there are warnings other than the usual output.
16430      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16431      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16432      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16433        lt_cv_prog_compiler_pic_works_CXX=yes
16434      fi
16435    fi
16436    $RM conftest*
16437
16438 fi
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16440 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16441
16442 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16443     case $lt_prog_compiler_pic_CXX in
16444      "" | " "*) ;;
16445      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16446      esac
16447 else
16448     lt_prog_compiler_pic_CXX=
16449      lt_prog_compiler_can_build_shared_CXX=no
16450 fi
16451
16452 fi
16453
16454
16455
16456
16457
16458 #
16459 # Check to make sure the static flag actually works.
16460 #
16461 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16463 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16464 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467   lt_cv_prog_compiler_static_works_CXX=no
16468    save_LDFLAGS="$LDFLAGS"
16469    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16470    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16471    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16472      # The linker can only warn and ignore the option if not recognized
16473      # So say no if there are warnings
16474      if test -s conftest.err; then
16475        # Append any errors to the config.log.
16476        cat conftest.err 1>&5
16477        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16478        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16479        if diff conftest.exp conftest.er2 >/dev/null; then
16480          lt_cv_prog_compiler_static_works_CXX=yes
16481        fi
16482      else
16483        lt_cv_prog_compiler_static_works_CXX=yes
16484      fi
16485    fi
16486    $RM -r conftest*
16487    LDFLAGS="$save_LDFLAGS"
16488
16489 fi
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16491 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16492
16493 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16494     :
16495 else
16496     lt_prog_compiler_static_CXX=
16497 fi
16498
16499
16500
16501
16502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16503 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16504 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16505   $as_echo_n "(cached) " >&6
16506 else
16507   lt_cv_prog_compiler_c_o_CXX=no
16508    $RM -r conftest 2>/dev/null
16509    mkdir conftest
16510    cd conftest
16511    mkdir out
16512    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16513
16514    lt_compiler_flag="-o out/conftest2.$ac_objext"
16515    # Insert the option either (1) after the last *FLAGS variable, or
16516    # (2) before a word containing "conftest.", or (3) at the end.
16517    # Note that $ac_compile itself does not contain backslashes and begins
16518    # with a dollar sign (not a hyphen), so the echo should work correctly.
16519    lt_compile=`echo "$ac_compile" | $SED \
16520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16522    -e 's:$: $lt_compiler_flag:'`
16523    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16524    (eval "$lt_compile" 2>out/conftest.err)
16525    ac_status=$?
16526    cat out/conftest.err >&5
16527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16529    then
16530      # The compiler can only warn and ignore the option if not recognized
16531      # So say no if there are warnings
16532      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16533      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16534      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16535        lt_cv_prog_compiler_c_o_CXX=yes
16536      fi
16537    fi
16538    chmod u+w . 2>&5
16539    $RM conftest*
16540    # SGI C++ compiler will create directory out/ii_files/ for
16541    # template instantiation
16542    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16543    $RM out/* && rmdir out
16544    cd ..
16545    $RM -r conftest
16546    $RM conftest*
16547
16548 fi
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16550 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16551
16552
16553
16554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16556 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16557   $as_echo_n "(cached) " >&6
16558 else
16559   lt_cv_prog_compiler_c_o_CXX=no
16560    $RM -r conftest 2>/dev/null
16561    mkdir conftest
16562    cd conftest
16563    mkdir out
16564    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16565
16566    lt_compiler_flag="-o out/conftest2.$ac_objext"
16567    # Insert the option either (1) after the last *FLAGS variable, or
16568    # (2) before a word containing "conftest.", or (3) at the end.
16569    # Note that $ac_compile itself does not contain backslashes and begins
16570    # with a dollar sign (not a hyphen), so the echo should work correctly.
16571    lt_compile=`echo "$ac_compile" | $SED \
16572    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16574    -e 's:$: $lt_compiler_flag:'`
16575    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16576    (eval "$lt_compile" 2>out/conftest.err)
16577    ac_status=$?
16578    cat out/conftest.err >&5
16579    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16581    then
16582      # The compiler can only warn and ignore the option if not recognized
16583      # So say no if there are warnings
16584      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16585      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16586      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16587        lt_cv_prog_compiler_c_o_CXX=yes
16588      fi
16589    fi
16590    chmod u+w . 2>&5
16591    $RM conftest*
16592    # SGI C++ compiler will create directory out/ii_files/ for
16593    # template instantiation
16594    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16595    $RM out/* && rmdir out
16596    cd ..
16597    $RM -r conftest
16598    $RM conftest*
16599
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16603
16604
16605
16606
16607 hard_links="nottested"
16608 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16609   # do not overwrite the value of need_locks provided by the user
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16611 $as_echo_n "checking if we can lock with hard links... " >&6; }
16612   hard_links=yes
16613   $RM conftest*
16614   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16615   touch conftest.a
16616   ln conftest.a conftest.b 2>&5 || hard_links=no
16617   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16619 $as_echo "$hard_links" >&6; }
16620   if test "$hard_links" = no; then
16621     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16622 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16623     need_locks=warn
16624   fi
16625 else
16626   need_locks=no
16627 fi
16628
16629
16630
16631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16632 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16633
16634   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16635   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16636   case $host_os in
16637   aix[4-9]*)
16638     # If we're using GNU nm, then we don't want the "-C" option.
16639     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16640     # Also, AIX nm treats weak defined symbols like other global defined
16641     # symbols, whereas GNU nm marks them as "W".
16642     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16643       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16644     else
16645       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16646     fi
16647     ;;
16648   pw32*)
16649     export_symbols_cmds_CXX="$ltdll_cmds"
16650     ;;
16651   cygwin* | mingw* | cegcc*)
16652     case $cc_basename in
16653     cl*)
16654       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16655       ;;
16656     *)
16657       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16658       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16659       ;;
16660     esac
16661     ;;
16662   linux* | k*bsd*-gnu | gnu*)
16663     link_all_deplibs_CXX=no
16664     ;;
16665   *)
16666     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16667     ;;
16668   esac
16669
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16671 $as_echo "$ld_shlibs_CXX" >&6; }
16672 test "$ld_shlibs_CXX" = no && can_build_shared=no
16673
16674 with_gnu_ld_CXX=$with_gnu_ld
16675
16676
16677
16678
16679
16680
16681 #
16682 # Do we need to explicitly link libc?
16683 #
16684 case "x$archive_cmds_need_lc_CXX" in
16685 x|xyes)
16686   # Assume -lc should be added
16687   archive_cmds_need_lc_CXX=yes
16688
16689   if test "$enable_shared" = yes && test "$GCC" = yes; then
16690     case $archive_cmds_CXX in
16691     *'~'*)
16692       # FIXME: we may have to deal with multi-command sequences.
16693       ;;
16694     '$CC '*)
16695       # Test whether the compiler implicitly links with -lc since on some
16696       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16697       # to ld, don't add -lc before -lgcc.
16698       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16700 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16701   $as_echo_n "(cached) " >&6
16702 else
16703   $RM conftest*
16704         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16705
16706         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16707   (eval $ac_compile) 2>&5
16708   ac_status=$?
16709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16710   test $ac_status = 0; } 2>conftest.err; then
16711           soname=conftest
16712           lib=conftest
16713           libobjs=conftest.$ac_objext
16714           deplibs=
16715           wl=$lt_prog_compiler_wl_CXX
16716           pic_flag=$lt_prog_compiler_pic_CXX
16717           compiler_flags=-v
16718           linker_flags=-v
16719           verstring=
16720           output_objdir=.
16721           libname=conftest
16722           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16723           allow_undefined_flag_CXX=
16724           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16725   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726   ac_status=$?
16727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16728   test $ac_status = 0; }
16729           then
16730             lt_cv_archive_cmds_need_lc_CXX=no
16731           else
16732             lt_cv_archive_cmds_need_lc_CXX=yes
16733           fi
16734           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16735         else
16736           cat conftest.err 1>&5
16737         fi
16738         $RM conftest*
16739
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16742 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16743       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16744       ;;
16745     esac
16746   fi
16747   ;;
16748 esac
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16812 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16813
16814 library_names_spec=
16815 libname_spec='lib$name'
16816 soname_spec=
16817 shrext_cmds=".so"
16818 postinstall_cmds=
16819 postuninstall_cmds=
16820 finish_cmds=
16821 finish_eval=
16822 shlibpath_var=
16823 shlibpath_overrides_runpath=unknown
16824 version_type=none
16825 dynamic_linker="$host_os ld.so"
16826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16827 need_lib_prefix=unknown
16828 hardcode_into_libs=no
16829
16830 # when you set need_version to no, make sure it does not cause -set_version
16831 # flags to be left without arguments
16832 need_version=unknown
16833
16834 case $host_os in
16835 aix3*)
16836   version_type=linux # correct to gnu/linux during the next big refactor
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16838   shlibpath_var=LIBPATH
16839
16840   # AIX 3 has no versioning support, so we append a major version to the name.
16841   soname_spec='${libname}${release}${shared_ext}$major'
16842   ;;
16843
16844 aix[4-9]*)
16845   version_type=linux # correct to gnu/linux during the next big refactor
16846   need_lib_prefix=no
16847   need_version=no
16848   hardcode_into_libs=yes
16849   if test "$host_cpu" = ia64; then
16850     # AIX 5 supports IA64
16851     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16852     shlibpath_var=LD_LIBRARY_PATH
16853   else
16854     # With GCC up to 2.95.x, collect2 would create an import file
16855     # for dependence libraries.  The import file would start with
16856     # the line `#! .'.  This would cause the generated library to
16857     # depend on `.', always an invalid library.  This was fixed in
16858     # development snapshots of GCC prior to 3.0.
16859     case $host_os in
16860       aix4 | aix4.[01] | aix4.[01].*)
16861       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16862            echo ' yes '
16863            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16864         :
16865       else
16866         can_build_shared=no
16867       fi
16868       ;;
16869     esac
16870     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16871     # soname into executable. Probably we can add versioning support to
16872     # collect2, so additional links can be useful in future.
16873     if test "$aix_use_runtimelinking" = yes; then
16874       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16875       # instead of lib<name>.a to let people know that these are not
16876       # typical AIX shared libraries.
16877       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878     else
16879       # We preserve .a as extension for shared libraries through AIX4.2
16880       # and later when we are not doing run time linking.
16881       library_names_spec='${libname}${release}.a $libname.a'
16882       soname_spec='${libname}${release}${shared_ext}$major'
16883     fi
16884     shlibpath_var=LIBPATH
16885   fi
16886   ;;
16887
16888 amigaos*)
16889   case $host_cpu in
16890   powerpc)
16891     # Since July 2007 AmigaOS4 officially supports .so libraries.
16892     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894     ;;
16895   m68k)
16896     library_names_spec='$libname.ixlibrary $libname.a'
16897     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16898     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'
16899     ;;
16900   esac
16901   ;;
16902
16903 beos*)
16904   library_names_spec='${libname}${shared_ext}'
16905   dynamic_linker="$host_os ld.so"
16906   shlibpath_var=LIBRARY_PATH
16907   ;;
16908
16909 bsdi[45]*)
16910   version_type=linux # correct to gnu/linux during the next big refactor
16911   need_version=no
16912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16915   shlibpath_var=LD_LIBRARY_PATH
16916   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16917   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16918   # the default ld.so.conf also contains /usr/contrib/lib and
16919   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16920   # libtool to hard-code these into programs
16921   ;;
16922
16923 cygwin* | mingw* | pw32* | cegcc*)
16924   version_type=windows
16925   shrext_cmds=".dll"
16926   need_version=no
16927   need_lib_prefix=no
16928
16929   case $GCC,$cc_basename in
16930   yes,*)
16931     # gcc
16932     library_names_spec='$libname.dll.a'
16933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16934     postinstall_cmds='base_file=`basename \${file}`~
16935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16936       dldir=$destdir/`dirname \$dlpath`~
16937       test -d \$dldir || mkdir -p \$dldir~
16938       $install_prog $dir/$dlname \$dldir/$dlname~
16939       chmod a+x \$dldir/$dlname~
16940       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16941         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16942       fi'
16943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16944       dlpath=$dir/\$dldll~
16945        $RM \$dlpath'
16946     shlibpath_overrides_runpath=yes
16947
16948     case $host_os in
16949     cygwin*)
16950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16952
16953       ;;
16954     mingw* | cegcc*)
16955       # MinGW DLLs use traditional 'lib' prefix
16956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16957       ;;
16958     pw32*)
16959       # pw32 DLLs use 'pw' prefix rather than 'lib'
16960       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16961       ;;
16962     esac
16963     dynamic_linker='Win32 ld.exe'
16964     ;;
16965
16966   *,cl*)
16967     # Native MSVC
16968     libname_spec='$name'
16969     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16970     library_names_spec='${libname}.dll.lib'
16971
16972     case $build_os in
16973     mingw*)
16974       sys_lib_search_path_spec=
16975       lt_save_ifs=$IFS
16976       IFS=';'
16977       for lt_path in $LIB
16978       do
16979         IFS=$lt_save_ifs
16980         # Let DOS variable expansion print the short 8.3 style file name.
16981         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16982         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16983       done
16984       IFS=$lt_save_ifs
16985       # Convert to MSYS style.
16986       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16987       ;;
16988     cygwin*)
16989       # Convert to unix form, then to dos form, then back to unix form
16990       # but this time dos style (no spaces!) so that the unix form looks
16991       # like /cygdrive/c/PROGRA~1:/cygdr...
16992       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16993       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16994       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16995       ;;
16996     *)
16997       sys_lib_search_path_spec="$LIB"
16998       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16999         # It is most probably a Windows format PATH.
17000         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17001       else
17002         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17003       fi
17004       # FIXME: find the short name or the path components, as spaces are
17005       # common. (e.g. "Program Files" -> "PROGRA~1")
17006       ;;
17007     esac
17008
17009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17010     postinstall_cmds='base_file=`basename \${file}`~
17011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17012       dldir=$destdir/`dirname \$dlpath`~
17013       test -d \$dldir || mkdir -p \$dldir~
17014       $install_prog $dir/$dlname \$dldir/$dlname'
17015     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17016       dlpath=$dir/\$dldll~
17017        $RM \$dlpath'
17018     shlibpath_overrides_runpath=yes
17019     dynamic_linker='Win32 link.exe'
17020     ;;
17021
17022   *)
17023     # Assume MSVC wrapper
17024     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17025     dynamic_linker='Win32 ld.exe'
17026     ;;
17027   esac
17028   # FIXME: first we should search . and the directory the executable is in
17029   shlibpath_var=PATH
17030   ;;
17031
17032 darwin* | rhapsody*)
17033   dynamic_linker="$host_os dyld"
17034   version_type=darwin
17035   need_lib_prefix=no
17036   need_version=no
17037   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17038   soname_spec='${libname}${release}${major}$shared_ext'
17039   shlibpath_overrides_runpath=yes
17040   shlibpath_var=DYLD_LIBRARY_PATH
17041   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17042
17043   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17044   ;;
17045
17046 dgux*)
17047   version_type=linux # correct to gnu/linux during the next big refactor
17048   need_lib_prefix=no
17049   need_version=no
17050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17051   soname_spec='${libname}${release}${shared_ext}$major'
17052   shlibpath_var=LD_LIBRARY_PATH
17053   ;;
17054
17055 freebsd* | dragonfly*)
17056   # DragonFly does not have aout.  When/if they implement a new
17057   # versioning mechanism, adjust this.
17058   if test -x /usr/bin/objformat; then
17059     objformat=`/usr/bin/objformat`
17060   else
17061     case $host_os in
17062     freebsd[23].*) objformat=aout ;;
17063     *) objformat=elf ;;
17064     esac
17065   fi
17066   version_type=freebsd-$objformat
17067   case $version_type in
17068     freebsd-elf*)
17069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17070       need_version=no
17071       need_lib_prefix=no
17072       ;;
17073     freebsd-*)
17074       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17075       need_version=yes
17076       ;;
17077   esac
17078   shlibpath_var=LD_LIBRARY_PATH
17079   case $host_os in
17080   freebsd2.*)
17081     shlibpath_overrides_runpath=yes
17082     ;;
17083   freebsd3.[01]* | freebsdelf3.[01]*)
17084     shlibpath_overrides_runpath=yes
17085     hardcode_into_libs=yes
17086     ;;
17087   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17088   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17089     shlibpath_overrides_runpath=no
17090     hardcode_into_libs=yes
17091     ;;
17092   *) # from 4.6 on, and DragonFly
17093     shlibpath_overrides_runpath=yes
17094     hardcode_into_libs=yes
17095     ;;
17096   esac
17097   ;;
17098
17099 haiku*)
17100   version_type=linux # correct to gnu/linux during the next big refactor
17101   need_lib_prefix=no
17102   need_version=no
17103   dynamic_linker="$host_os runtime_loader"
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17105   soname_spec='${libname}${release}${shared_ext}$major'
17106   shlibpath_var=LIBRARY_PATH
17107   shlibpath_overrides_runpath=yes
17108   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17109   hardcode_into_libs=yes
17110   ;;
17111
17112 hpux9* | hpux10* | hpux11*)
17113   # Give a soname corresponding to the major version so that dld.sl refuses to
17114   # link against other versions.
17115   version_type=sunos
17116   need_lib_prefix=no
17117   need_version=no
17118   case $host_cpu in
17119   ia64*)
17120     shrext_cmds='.so'
17121     hardcode_into_libs=yes
17122     dynamic_linker="$host_os dld.so"
17123     shlibpath_var=LD_LIBRARY_PATH
17124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126     soname_spec='${libname}${release}${shared_ext}$major'
17127     if test "X$HPUX_IA64_MODE" = X32; then
17128       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17129     else
17130       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17131     fi
17132     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17133     ;;
17134   hppa*64*)
17135     shrext_cmds='.sl'
17136     hardcode_into_libs=yes
17137     dynamic_linker="$host_os dld.sl"
17138     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141     soname_spec='${libname}${release}${shared_ext}$major'
17142     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17143     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17144     ;;
17145   *)
17146     shrext_cmds='.sl'
17147     dynamic_linker="$host_os dld.sl"
17148     shlibpath_var=SHLIB_PATH
17149     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151     soname_spec='${libname}${release}${shared_ext}$major'
17152     ;;
17153   esac
17154   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17155   postinstall_cmds='chmod 555 $lib'
17156   # or fails outright, so override atomically:
17157   install_override_mode=555
17158   ;;
17159
17160 interix[3-9]*)
17161   version_type=linux # correct to gnu/linux during the next big refactor
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=no
17169   hardcode_into_libs=yes
17170   ;;
17171
17172 irix5* | irix6* | nonstopux*)
17173   case $host_os in
17174     nonstopux*) version_type=nonstopux ;;
17175     *)
17176         if test "$lt_cv_prog_gnu_ld" = yes; then
17177                 version_type=linux # correct to gnu/linux during the next big refactor
17178         else
17179                 version_type=irix
17180         fi ;;
17181   esac
17182   need_lib_prefix=no
17183   need_version=no
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186   case $host_os in
17187   irix5* | nonstopux*)
17188     libsuff= shlibsuff=
17189     ;;
17190   *)
17191     case $LD in # libtool.m4 will add one of these switches to LD
17192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193       libsuff= shlibsuff= libmagic=32-bit;;
17194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195       libsuff=32 shlibsuff=N32 libmagic=N32;;
17196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198     *) libsuff= shlibsuff= libmagic=never-match;;
17199     esac
17200     ;;
17201   esac
17202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203   shlibpath_overrides_runpath=no
17204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206   hardcode_into_libs=yes
17207   ;;
17208
17209 # No shared lib support for Linux oldld, aout, or coff.
17210 linux*oldld* | linux*aout* | linux*coff*)
17211   dynamic_linker=no
17212   ;;
17213
17214 # This must be glibc/ELF.
17215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17216   version_type=linux # correct to gnu/linux during the next big refactor
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=no
17224
17225   # Some binutils ld are patched to set DT_RUNPATH
17226   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17227   $as_echo_n "(cached) " >&6
17228 else
17229   lt_cv_shlibpath_overrides_runpath=no
17230     save_LDFLAGS=$LDFLAGS
17231     save_libdir=$libdir
17232     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17233          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h.  */
17236
17237 int
17238 main ()
17239 {
17240
17241   ;
17242   return 0;
17243 }
17244 _ACEOF
17245 if ac_fn_cxx_try_link "$LINENO"; then :
17246   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17247   lt_cv_shlibpath_overrides_runpath=yes
17248 fi
17249 fi
17250 rm -f core conftest.err conftest.$ac_objext \
17251     conftest$ac_exeext conftest.$ac_ext
17252     LDFLAGS=$save_LDFLAGS
17253     libdir=$save_libdir
17254
17255 fi
17256
17257   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17258
17259   # This implies no fast_install, which is unacceptable.
17260   # Some rework will be needed to allow for fast_install
17261   # before this can be enabled.
17262   hardcode_into_libs=yes
17263
17264   # Append ld.so.conf contents to the search path
17265   if test -f /etc/ld.so.conf; then
17266     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' ' '`
17267     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17268   fi
17269
17270   # We used to test for /lib/ld.so.1 and disable shared libraries on
17271   # powerpc, because MkLinux only supported shared libraries with the
17272   # GNU dynamic linker.  Since this was broken with cross compilers,
17273   # most powerpc-linux boxes support dynamic linking these days and
17274   # people can always --disable-shared, the test was removed, and we
17275   # assume the GNU/Linux dynamic linker is in use.
17276   dynamic_linker='GNU/Linux ld.so'
17277   ;;
17278
17279 netbsdelf*-gnu)
17280   version_type=linux
17281   need_lib_prefix=no
17282   need_version=no
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17284   soname_spec='${libname}${release}${shared_ext}$major'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   shlibpath_overrides_runpath=no
17287   hardcode_into_libs=yes
17288   dynamic_linker='NetBSD ld.elf_so'
17289   ;;
17290
17291 netbsd*)
17292   version_type=sunos
17293   need_lib_prefix=no
17294   need_version=no
17295   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298     dynamic_linker='NetBSD (a.out) ld.so'
17299   else
17300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301     soname_spec='${libname}${release}${shared_ext}$major'
17302     dynamic_linker='NetBSD ld.elf_so'
17303   fi
17304   shlibpath_var=LD_LIBRARY_PATH
17305   shlibpath_overrides_runpath=yes
17306   hardcode_into_libs=yes
17307   ;;
17308
17309 newsos6)
17310   version_type=linux # correct to gnu/linux during the next big refactor
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   shlibpath_overrides_runpath=yes
17314   ;;
17315
17316 *nto* | *qnx*)
17317   version_type=qnx
17318   need_lib_prefix=no
17319   need_version=no
17320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321   soname_spec='${libname}${release}${shared_ext}$major'
17322   shlibpath_var=LD_LIBRARY_PATH
17323   shlibpath_overrides_runpath=no
17324   hardcode_into_libs=yes
17325   dynamic_linker='ldqnx.so'
17326   ;;
17327
17328 openbsd*)
17329   version_type=sunos
17330   sys_lib_dlsearch_path_spec="/usr/lib"
17331   need_lib_prefix=no
17332   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17333   case $host_os in
17334     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17335     *)                          need_version=no  ;;
17336   esac
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17339   shlibpath_var=LD_LIBRARY_PATH
17340   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17341     case $host_os in
17342       openbsd2.[89] | openbsd2.[89].*)
17343         shlibpath_overrides_runpath=no
17344         ;;
17345       *)
17346         shlibpath_overrides_runpath=yes
17347         ;;
17348       esac
17349   else
17350     shlibpath_overrides_runpath=yes
17351   fi
17352   ;;
17353
17354 os2*)
17355   libname_spec='$name'
17356   shrext_cmds=".dll"
17357   need_lib_prefix=no
17358   library_names_spec='$libname${shared_ext} $libname.a'
17359   dynamic_linker='OS/2 ld.exe'
17360   shlibpath_var=LIBPATH
17361   ;;
17362
17363 osf3* | osf4* | osf5*)
17364   version_type=osf
17365   need_lib_prefix=no
17366   need_version=no
17367   soname_spec='${libname}${release}${shared_ext}$major'
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369   shlibpath_var=LD_LIBRARY_PATH
17370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17372   ;;
17373
17374 rdos*)
17375   dynamic_linker=no
17376   ;;
17377
17378 solaris*)
17379   version_type=linux # correct to gnu/linux during the next big refactor
17380   need_lib_prefix=no
17381   need_version=no
17382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383   soname_spec='${libname}${release}${shared_ext}$major'
17384   shlibpath_var=LD_LIBRARY_PATH
17385   shlibpath_overrides_runpath=yes
17386   hardcode_into_libs=yes
17387   # ldd complains unless libraries are executable
17388   postinstall_cmds='chmod +x $lib'
17389   ;;
17390
17391 sunos4*)
17392   version_type=sunos
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17395   shlibpath_var=LD_LIBRARY_PATH
17396   shlibpath_overrides_runpath=yes
17397   if test "$with_gnu_ld" = yes; then
17398     need_lib_prefix=no
17399   fi
17400   need_version=yes
17401   ;;
17402
17403 sysv4 | sysv4.3*)
17404   version_type=linux # correct to gnu/linux during the next big refactor
17405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406   soname_spec='${libname}${release}${shared_ext}$major'
17407   shlibpath_var=LD_LIBRARY_PATH
17408   case $host_vendor in
17409     sni)
17410       shlibpath_overrides_runpath=no
17411       need_lib_prefix=no
17412       runpath_var=LD_RUN_PATH
17413       ;;
17414     siemens)
17415       need_lib_prefix=no
17416       ;;
17417     motorola)
17418       need_lib_prefix=no
17419       need_version=no
17420       shlibpath_overrides_runpath=no
17421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17422       ;;
17423   esac
17424   ;;
17425
17426 sysv4*MP*)
17427   if test -d /usr/nec ;then
17428     version_type=linux # correct to gnu/linux during the next big refactor
17429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430     soname_spec='$libname${shared_ext}.$major'
17431     shlibpath_var=LD_LIBRARY_PATH
17432   fi
17433   ;;
17434
17435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17436   version_type=freebsd-elf
17437   need_lib_prefix=no
17438   need_version=no
17439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440   soname_spec='${libname}${release}${shared_ext}$major'
17441   shlibpath_var=LD_LIBRARY_PATH
17442   shlibpath_overrides_runpath=yes
17443   hardcode_into_libs=yes
17444   if test "$with_gnu_ld" = yes; then
17445     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17446   else
17447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17448     case $host_os in
17449       sco3.2v5*)
17450         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17451         ;;
17452     esac
17453   fi
17454   sys_lib_dlsearch_path_spec='/usr/lib'
17455   ;;
17456
17457 tpf*)
17458   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17459   version_type=linux # correct to gnu/linux during the next big refactor
17460   need_lib_prefix=no
17461   need_version=no
17462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463   shlibpath_var=LD_LIBRARY_PATH
17464   shlibpath_overrides_runpath=no
17465   hardcode_into_libs=yes
17466   ;;
17467
17468 uts4*)
17469   version_type=linux # correct to gnu/linux during the next big refactor
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471   soname_spec='${libname}${release}${shared_ext}$major'
17472   shlibpath_var=LD_LIBRARY_PATH
17473   ;;
17474
17475 *)
17476   dynamic_linker=no
17477   ;;
17478 esac
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17480 $as_echo "$dynamic_linker" >&6; }
17481 test "$dynamic_linker" = no && can_build_shared=no
17482
17483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17486 fi
17487
17488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17489   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17490 fi
17491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17492   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17493 fi
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17533 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17534 hardcode_action_CXX=
17535 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17536    test -n "$runpath_var_CXX" ||
17537    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17538
17539   # We can hardcode non-existent directories.
17540   if test "$hardcode_direct_CXX" != no &&
17541      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17542      # have to relink, otherwise we might link with an installed library
17543      # when we should be linking with a yet-to-be-installed one
17544      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17545      test "$hardcode_minus_L_CXX" != no; then
17546     # Linking always hardcodes the temporary library directory.
17547     hardcode_action_CXX=relink
17548   else
17549     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17550     hardcode_action_CXX=immediate
17551   fi
17552 else
17553   # We cannot hardcode anything, or else we can only hardcode existing
17554   # directories.
17555   hardcode_action_CXX=unsupported
17556 fi
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17558 $as_echo "$hardcode_action_CXX" >&6; }
17559
17560 if test "$hardcode_action_CXX" = relink ||
17561    test "$inherit_rpath_CXX" = yes; then
17562   # Fast installation is not supported
17563   enable_fast_install=no
17564 elif test "$shlibpath_overrides_runpath" = yes ||
17565      test "$enable_shared" = no; then
17566   # Fast installation is not necessary
17567   enable_fast_install=needless
17568 fi
17569
17570
17571
17572
17573
17574
17575
17576   fi # test -n "$compiler"
17577
17578   CC=$lt_save_CC
17579   CFLAGS=$lt_save_CFLAGS
17580   LDCXX=$LD
17581   LD=$lt_save_LD
17582   GCC=$lt_save_GCC
17583   with_gnu_ld=$lt_save_with_gnu_ld
17584   lt_cv_path_LDCXX=$lt_cv_path_LD
17585   lt_cv_path_LD=$lt_save_path_LD
17586   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17587   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17588 fi # test "$_lt_caught_CXX_error" != yes
17589
17590 ac_ext=c
17591 ac_cpp='$CPP $CPPFLAGS'
17592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17595
17596  if test "x$CC" != xcc; then
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17598 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17599 else
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17601 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17602 fi
17603 set dummy $CC; ac_cc=`$as_echo "$2" |
17604                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17605 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h.  */
17610
17611 int
17612 main ()
17613 {
17614
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 # Make sure it works both with $CC and with simple cc.
17620 # We do the test twice because some compilers refuse to overwrite an
17621 # existing .o file with -o, though they will create one.
17622 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17623 rm -f conftest2.*
17624 if { { case "(($ac_try" in
17625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626   *) ac_try_echo=$ac_try;;
17627 esac
17628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17629 $as_echo "$ac_try_echo"; } >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633   test $ac_status = 0; } &&
17634    test -f conftest2.$ac_objext && { { case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17639 $as_echo "$ac_try_echo"; } >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17643   test $ac_status = 0; };
17644 then
17645   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17646   if test "x$CC" != xcc; then
17647     # Test first that cc exists at all.
17648     if { ac_try='cc -c conftest.$ac_ext >&5'
17649   { { case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17654 $as_echo "$ac_try_echo"; } >&5
17655   (eval "$ac_try") 2>&5
17656   ac_status=$?
17657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658   test $ac_status = 0; }; }; then
17659       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17660       rm -f conftest2.*
17661       if { { case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17666 $as_echo "$ac_try_echo"; } >&5
17667   (eval "$ac_try") 2>&5
17668   ac_status=$?
17669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17670   test $ac_status = 0; } &&
17671          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17676 $as_echo "$ac_try_echo"; } >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680   test $ac_status = 0; };
17681       then
17682         # cc works too.
17683         :
17684       else
17685         # cc exists but doesn't like -o.
17686         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17687       fi
17688     fi
17689   fi
17690 else
17691   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17692 fi
17693 rm -f core conftest*
17694
17695 fi
17696 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17698 $as_echo "yes" >&6; }
17699 else
17700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17701 $as_echo "no" >&6; }
17702
17703 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17704
17705 fi
17706
17707 # FIXME: we rely on the cache variable name because
17708 # there is no other way.
17709 set dummy $CC
17710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17712 if test "$am_t" != yes; then
17713    # Losing compiler, so override with the script.
17714    # FIXME: It is wrong to rewrite CC.
17715    # But if we don't then we get into trouble of one sort or another.
17716    # A longer-term fix would be to have automake use am__CC in this case,
17717    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17718    CC="$am_aux_dir/compile $CC"
17719 fi
17720
17721
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17723 $as_echo_n "checking for inline... " >&6; }
17724 if ${ac_cv_c_inline+:} false; then :
17725   $as_echo_n "(cached) " >&6
17726 else
17727   ac_cv_c_inline=no
17728 for ac_kw in inline __inline__ __inline; do
17729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h.  */
17731 #ifndef __cplusplus
17732 typedef int foo_t;
17733 static $ac_kw foo_t static_foo () {return 0; }
17734 $ac_kw foo_t foo () {return 0; }
17735 #endif
17736
17737 _ACEOF
17738 if ac_fn_c_try_compile "$LINENO"; then :
17739   ac_cv_c_inline=$ac_kw
17740 fi
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742   test "$ac_cv_c_inline" != no && break
17743 done
17744
17745 fi
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17747 $as_echo "$ac_cv_c_inline" >&6; }
17748
17749 case $ac_cv_c_inline in
17750   inline | yes) ;;
17751   *)
17752     case $ac_cv_c_inline in
17753       no) ac_val=;;
17754       *) ac_val=$ac_cv_c_inline;;
17755     esac
17756     cat >>confdefs.h <<_ACEOF
17757 #ifndef __cplusplus
17758 #define inline $ac_val
17759 #endif
17760 _ACEOF
17761     ;;
17762 esac
17763
17764
17765
17766
17767
17768 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17769         if test -n "$ac_tool_prefix"; then
17770   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17773 $as_echo_n "checking for $ac_word... " >&6; }
17774 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17775   $as_echo_n "(cached) " >&6
17776 else
17777   case $PKG_CONFIG in
17778   [\\/]* | ?:[\\/]*)
17779   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17780   ;;
17781   *)
17782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17783 for as_dir in $PATH
17784 do
17785   IFS=$as_save_IFS
17786   test -z "$as_dir" && as_dir=.
17787     for ac_exec_ext in '' $ac_executable_extensions; do
17788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17789     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17791     break 2
17792   fi
17793 done
17794   done
17795 IFS=$as_save_IFS
17796
17797   ;;
17798 esac
17799 fi
17800 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17801 if test -n "$PKG_CONFIG"; then
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17803 $as_echo "$PKG_CONFIG" >&6; }
17804 else
17805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806 $as_echo "no" >&6; }
17807 fi
17808
17809
17810 fi
17811 if test -z "$ac_cv_path_PKG_CONFIG"; then
17812   ac_pt_PKG_CONFIG=$PKG_CONFIG
17813   # Extract the first word of "pkg-config", so it can be a program name with args.
17814 set dummy pkg-config; ac_word=$2
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17816 $as_echo_n "checking for $ac_word... " >&6; }
17817 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   case $ac_pt_PKG_CONFIG in
17821   [\\/]* | ?:[\\/]*)
17822   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17823   ;;
17824   *)
17825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17826 for as_dir in $PATH
17827 do
17828   IFS=$as_save_IFS
17829   test -z "$as_dir" && as_dir=.
17830     for ac_exec_ext in '' $ac_executable_extensions; do
17831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17832     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17834     break 2
17835   fi
17836 done
17837   done
17838 IFS=$as_save_IFS
17839
17840   ;;
17841 esac
17842 fi
17843 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17844 if test -n "$ac_pt_PKG_CONFIG"; then
17845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17846 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17847 else
17848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850 fi
17851
17852   if test "x$ac_pt_PKG_CONFIG" = x; then
17853     PKG_CONFIG=""
17854   else
17855     case $cross_compiling:$ac_tool_warned in
17856 yes:)
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17859 ac_tool_warned=yes ;;
17860 esac
17861     PKG_CONFIG=$ac_pt_PKG_CONFIG
17862   fi
17863 else
17864   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17865 fi
17866
17867 fi
17868 if test -n "$PKG_CONFIG"; then
17869         _pkg_min_version=0.9.0
17870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17871 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17872         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17873                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17874 $as_echo "yes" >&6; }
17875         else
17876                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877 $as_echo "no" >&6; }
17878                 PKG_CONFIG=""
17879         fi
17880
17881 fi
17882 if test "x$PKG_CONFIG" = x; then
17883         as_fn_error $? "pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)" "$LINENO" 5
17884 fi
17885
17886 case `$PKG_CONFIG --version` in
17887 0.?|0.?.?|0.1[0-7]|0.1[0-7].?) PKGCONFIG_REQUIRES="Requires"; ;;
17888 *) PKGCONFIG_REQUIRES="Requires.private"; ;;
17889 esac
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908                                                 CAIRO_MAKEFILE___WIN32='# Generated by configure.  Modify to customize.
17909 '
17910
17911                         ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features"
17912
17913
17914
17915
17916                                                 CAIRO_MAKEFILE_cairo_AMAKE='# Generated by configure.  Do not edit.
17917 '
17918
17919                         ac_config_commands="$ac_config_commands $srcdir/src/Makefile.am.features"
17920
17921
17922                                                 CAIRO_MAKEFILE_cairo_WIN32='# Generated by configure.  Do not edit.
17923 '
17924
17925                         ac_config_commands="$ac_config_commands $srcdir/src/Makefile.win32.features"
17926
17927
17928
17929                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='# Generated by configure.  Do not edit.
17930 '
17931
17932                         ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.am.features"
17933
17934
17935                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32='# Generated by configure.  Do not edit.
17936 '
17937
17938                         ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.win32.features"
17939
17940                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17941 "'include $(top_srcdir)/src/Makefile.sources
17942 '
17943
17944                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17945 "'ifeq ($(top_srcdir),)
17946 include Makefile.sources
17947 else
17948 include $(top_srcdir)/src/Makefile.sources
17949 endif
17950 '
17951
17952                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17953 "'include $(top_srcdir)/boilerplate/Makefile.sources
17954 '
17955
17956                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17957 "'ifeq ($(top_srcdir),)
17958 include Makefile.sources
17959 else
17960 include $(top_srcdir)/boilerplate/Makefile.sources
17961 endif
17962 '
17963
17964
17965
17966                                                 cr_make_tmp='supported_cairo_headers = $(cairo_headers)'
17967                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17968 ""$cr_make_tmp"
17969
17970                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17971 ""$cr_make_tmp"
17972
17973                                                         cr_make_tmp='supported_cairo_boilerplate_headers = $(cairo_boilerplate_headers)'
17974                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17975 ""$cr_make_tmp"
17976
17977                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17978 ""$cr_make_tmp"
17979
17980
17981                                                 cr_make_tmp='unsupported_cairo_headers ='
17982                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17983 ""$cr_make_tmp"
17984
17985                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17986 ""$cr_make_tmp"
17987
17988                                                         cr_make_tmp='unsupported_cairo_boilerplate_headers ='
17989                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17990 ""$cr_make_tmp"
17991
17992                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17993 ""$cr_make_tmp"
17994
17995
17996                                                 cr_make_tmp='all_cairo_headers = $(cairo_headers)
17997 all_cairo_private = $(cairo_private)
17998 all_cairo_cxx_sources = $(cairo_cxx_sources)
17999 all_cairo_sources = $(cairo_sources)
18000 '
18001                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
18002 ""$cr_make_tmp"
18003
18004                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
18005 ""$cr_make_tmp"
18006
18007                                                         cr_make_tmp='all_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
18008 all_cairo_boilerplate_private = $(cairo_boilerplate_private)
18009 all_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
18010 all_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
18011 '
18012                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
18013 ""$cr_make_tmp"
18014
18015                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
18016 ""$cr_make_tmp"
18017
18018
18019                                                 cr_make_tmp='enabled_cairo_headers = $(cairo_headers)
18020 enabled_cairo_private = $(cairo_private)
18021 enabled_cairo_cxx_sources = $(cairo_cxx_sources)
18022 enabled_cairo_sources = $(cairo_sources)
18023 '
18024                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
18025 ""$cr_make_tmp"
18026
18027                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
18028 ""$cr_make_tmp"
18029
18030                                                         cr_make_tmp='enabled_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
18031 enabled_cairo_boilerplate_private = $(cairo_boilerplate_private)
18032 enabled_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
18033 enabled_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
18034 '
18035                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
18036 ""$cr_make_tmp"
18037
18038                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
18039 ""$cr_make_tmp"
18040
18041
18042
18043
18044
18045
18046
18047 ac_config_files="$ac_config_files src/cairo.pc"
18048 ac_config_files="$ac_config_files cairo-uninstalled.pc:src/cairo-uninstalled.pc.in"
18049
18050                                                                                                                                         CAIRO_REQUIRES=""
18051                                                                                                                                 CAIRO_CFLAGS=""
18052 CAIRO_NONPKGCONFIG_CFLAGS=""
18053                                                                                                                                 CAIRO_LIBS="$LIBS"
18054 CAIRO_NONPKGCONFIG_LIBS="$LIBS"
18055
18056
18057
18058
18059
18060
18061                                                         cr_make_tmp='all_cairo_pkgconf = cairo.pc'
18062                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
18063 ""$cr_make_tmp"
18064
18065                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
18066 ""$cr_make_tmp"
18067
18068
18069                                                         cr_make_tmp='enabled_cairo_pkgconf = cairo.pc'
18070                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
18071 ""$cr_make_tmp"
18072
18073                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
18074 ""$cr_make_tmp"
18075
18076
18077
18078
18079                                 CAIRO_FEATURES=''
18080                                                 CAIRO_SUPPORTED_FEATURES=''
18081                                                 CAIRO_NO_FEATURES=''
18082
18083         ac_config_commands="$ac_config_commands src/cairo-features.h"
18084
18085         ac_config_commands="$ac_config_commands src/cairo-supported-features.h"
18086
18087
18088
18089
18090
18091                                                 CAIRO_MAKEFILE_win32_features_h_WIN32='# Generated by configure.  Do not edit.
18092 '
18093
18094                         ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features-h"
18095
18096
18097                                                         cr_make_tmp='$(top_srcdir)/src/cairo-features.h: $(top_srcdir)/build/Makefile.win32.features
18098         @echo "Generating src/cairo-features.h"
18099         @echo "/* Generated by Makefile.win32.features-h.  Do not edit. */" > $(top_srcdir)/src/cairo-features.h
18100         @echo "#ifndef CAIRO_FEATURES_H" >> $(top_srcdir)/src/cairo-features.h
18101         @echo "#define CAIRO_FEATURES_H 1" >> $(top_srcdir)/src/cairo-features.h'
18102                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
18103 ""$cr_make_tmp"
18104
18105
18106
18107
18108
18109                                 CAIRO_WARNING_MESSAGE=''
18110
18111
18112
18113
18114                                 CAIRO_NATIVE_SURFACE_BACKENDS=''
18115                                         CAIRO_NATIVE_FONT_BACKENDS=''
18116
18117
18118
18119
18120
18121
18122 # -Wcast-align generates lots of false positive reports we need to
18123 # cast image data from uint8_t to uin32_t.
18124
18125 # -Wlogical-op causes too much noise from strcmp("literal", str)
18126
18127 MAYBE_WARN="-Wall -Wextra \
18128 -Wold-style-definition -Wdeclaration-after-statement \
18129 -Wmissing-declarations -Werror-implicit-function-declaration \
18130 -Wnested-externs -Wpointer-arith -Wwrite-strings \
18131 -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \
18132 -Wpacked -Wswitch-enum -Wmissing-format-attribute \
18133 -Wbad-function-cast -Wvolatile-register-var \
18134 -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
18135 -Wno-missing-field-initializers -Wno-unused-parameter \
18136 -Wno-attributes -Wno-long-long -Winline"
18137
18138 # New -Wno options should be added here
18139 # gcc-4.4 and later accept every -Wno- option but may complain later that this
18140 # option is unknow each time another warning happen.
18141 # -Wunused-but-set-variable is too noisy at present
18142 NO_WARN="unused-but-set-variable"
18143
18144 MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
18145                         -erroff=E_ENUM_TYPE_MISMATCH_OP"
18146
18147
18148
18149 safe_MAYBE_WARN="$MAYBE_WARN"
18150 MAYBE_WARN="$MAYBE_WARN -flto"
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h.  */
18153
18154 int
18155 main ()
18156 {
18157
18158         int main(int argc, char **argv) { return 0; }
18159
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 if ac_fn_c_try_link "$LINENO"; then :
18165
18166 else
18167
18168         MAYBE_WARN="$safe_MAYBE_WARN"
18169
18170 fi
18171 rm -f core conftest.err conftest.$ac_objext \
18172     conftest$ac_exeext conftest.$ac_ext
18173
18174 MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
18175
18176 MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
18177
18178 # invalidate cached value if MAYBE_WARN has changed
18179 if test "x$cairo_cv_warn_maybe" != "x$MAYBE_WARN"; then
18180         unset cairo_cv_warn_cflags
18181 fi
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
18183 $as_echo_n "checking for supported warning flags... " >&6; }
18184 if ${cairo_cv_warn_cflags+:} false; then :
18185   $as_echo_n "(cached) " >&6
18186 else
18187
18188         echo
18189         WARN_CFLAGS=""
18190
18191         # Some warning options are not supported by all versions of
18192         # gcc, so test all desired options against the current
18193         # compiler.
18194         #
18195         # Note that there are some order dependencies
18196         # here. Specifically, an option that disables a warning will
18197         # have no net effect if a later option then enables that
18198         # warnings, (perhaps implicitly). So we put some grouped
18199         # options (-Wall and -Wextra) up front and the -Wno options
18200         # last.
18201
18202         for W in $MAYBE_WARN; do
18203                                 _test_WERROR=${WERROR+set}
18204         if test "z$_test_WERROR" != zset; then
18205                 WERROR=""
18206                 for _werror in -Werror -errwarn; do
18207                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
18208 $as_echo_n "checking whether $CC supports $_werror... " >&6; }
18209                                         # AC_LANG_PROGRAM() produces a main() w/o args,
18210         # but -Wold-style-definition doesn't like that.
18211         # We need _some_ program so that we don't get
18212         # warnings about empty compilation units, so always
18213         # append a reasonable main().
18214         _compile_program=""'
18215                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18216
18217         _save_cflags="$CFLAGS"
18218         _save_ldflags="$LDFLAGS"
18219         _save_libs="$LIBS"
18220         CFLAGS="$CFLAGS $_werror"
18221         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h.  */
18223 $_compile_program
18224 _ACEOF
18225 if ac_fn_c_try_link "$LINENO"; then :
18226   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18227                  cairo_cc_flag=yes
18228 else
18229   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18230                  cairo_cc_flag=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext \
18233     conftest$ac_exeext conftest.$ac_ext
18234
18235         if test "x$cairo_cc_stderr" != "x"; then
18236                 cairo_cc_flag=no
18237         fi
18238
18239         if test "x$cairo_cc_flag" = "xyes"; then
18240                 WERROR="$WERROR $_werror"
18241         else
18242                 :
18243         fi
18244         CFLAGS="$_save_cflags"
18245         LDFLAGS="$_save_ldflags"
18246         LIBS="$_save_libs"
18247
18248
18249                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
18250 $as_echo "$cairo_cc_flag" >&6; }
18251                 done
18252         fi
18253
18254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
18255 $as_echo_n "checking whether $CC supports $W... " >&6; }
18256                         # AC_LANG_PROGRAM() produces a main() w/o args,
18257         # but -Wold-style-definition doesn't like that.
18258         # We need _some_ program so that we don't get
18259         # warnings about empty compilation units, so always
18260         # append a reasonable main().
18261         _compile_program=""'
18262                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18263
18264         _save_cflags="$CFLAGS"
18265         _save_ldflags="$LDFLAGS"
18266         _save_libs="$LIBS"
18267         CFLAGS="$CFLAGS $WERROR $W"
18268         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h.  */
18270 $_compile_program
18271 _ACEOF
18272 if ac_fn_c_try_link "$LINENO"; then :
18273   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18274                  cairo_cc_flag=yes
18275 else
18276   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18277                  cairo_cc_flag=no
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext \
18280     conftest$ac_exeext conftest.$ac_ext
18281
18282         if test "x$cairo_cc_stderr" != "x"; then
18283                 cairo_cc_flag=no
18284         fi
18285
18286         if test "x$cairo_cc_flag" = "xyes"; then
18287                 WARN_CFLAGS="$WARN_CFLAGS $W"
18288         else
18289                 :
18290         fi
18291         CFLAGS="$_save_cflags"
18292         LDFLAGS="$_save_ldflags"
18293         LIBS="$_save_libs"
18294
18295
18296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
18297 $as_echo "$cairo_cc_flag" >&6; }
18298
18299         done
18300         for W in $NO_WARN; do
18301                                 _test_WERROR=${WERROR+set}
18302         if test "z$_test_WERROR" != zset; then
18303                 WERROR=""
18304                 for _werror in -Werror -errwarn; do
18305                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
18306 $as_echo_n "checking whether $CC supports $_werror... " >&6; }
18307                                         # AC_LANG_PROGRAM() produces a main() w/o args,
18308         # but -Wold-style-definition doesn't like that.
18309         # We need _some_ program so that we don't get
18310         # warnings about empty compilation units, so always
18311         # append a reasonable main().
18312         _compile_program=""'
18313                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18314
18315         _save_cflags="$CFLAGS"
18316         _save_ldflags="$LDFLAGS"
18317         _save_libs="$LIBS"
18318         CFLAGS="$CFLAGS $_werror"
18319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h.  */
18321 $_compile_program
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18325                  cairo_cc_flag=yes
18326 else
18327   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18328                  cairo_cc_flag=no
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext \
18331     conftest$ac_exeext conftest.$ac_ext
18332
18333         if test "x$cairo_cc_stderr" != "x"; then
18334                 cairo_cc_flag=no
18335         fi
18336
18337         if test "x$cairo_cc_flag" = "xyes"; then
18338                 WERROR="$WERROR $_werror"
18339         else
18340                 :
18341         fi
18342         CFLAGS="$_save_cflags"
18343         LDFLAGS="$_save_ldflags"
18344         LIBS="$_save_libs"
18345
18346
18347                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
18348 $as_echo "$cairo_cc_flag" >&6; }
18349                 done
18350         fi
18351
18352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W$W -Wno-$W" >&5
18353 $as_echo_n "checking whether $CC supports -W$W -Wno-$W... " >&6; }
18354                         # AC_LANG_PROGRAM() produces a main() w/o args,
18355         # but -Wold-style-definition doesn't like that.
18356         # We need _some_ program so that we don't get
18357         # warnings about empty compilation units, so always
18358         # append a reasonable main().
18359         _compile_program=""'
18360                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18361
18362         _save_cflags="$CFLAGS"
18363         _save_ldflags="$LDFLAGS"
18364         _save_libs="$LIBS"
18365         CFLAGS="$CFLAGS $WERROR -W$W -Wno-$W"
18366         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368 $_compile_program
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18371   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18372                  cairo_cc_flag=yes
18373 else
18374   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18375                  cairo_cc_flag=no
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext \
18378     conftest$ac_exeext conftest.$ac_ext
18379
18380         if test "x$cairo_cc_stderr" != "x"; then
18381                 cairo_cc_flag=no
18382         fi
18383
18384         if test "x$cairo_cc_flag" = "xyes"; then
18385                 WARN_CFLAGS="$WARN_CFLAGS -Wno-$W"
18386         else
18387                 :
18388         fi
18389         CFLAGS="$_save_cflags"
18390         LDFLAGS="$_save_ldflags"
18391         LIBS="$_save_libs"
18392
18393
18394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
18395 $as_echo "$cairo_cc_flag" >&6; }
18396
18397         done
18398         cairo_cv_warn_cflags=$WARN_CFLAGS
18399         cairo_cv_warn_maybe=$MAYBE_WARN
18400
18401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
18402 $as_echo_n "checking which warning flags were supported... " >&6; }
18403
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_cflags" >&5
18406 $as_echo "$cairo_cv_warn_cflags" >&6; }
18407 WARN_CFLAGS="$cairo_cv_warn_cflags"
18408 CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS"
18409
18410 # We only wish to enable attribute(warn_unused_result) if we can prevent
18411 # gcc from generating thousands of warnings about the misapplication of the
18412 # attribute to void functions and variables.
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to enable unused result warnings" >&5
18414 $as_echo_n "checking how to enable unused result warnings... " >&6; }
18415 if ${cairo_cv_warn_unused_result+:} false; then :
18416   $as_echo_n "(cached) " >&6
18417 else
18418
18419
18420         cairo_cv_warn_unused_result=""
18421         if echo $WARN_CFLAGS | $GREP -e '-Wno-attributes' >/dev/null; then
18422                         # AC_LANG_PROGRAM() produces a main() w/o args,
18423         # but -Wold-style-definition doesn't like that.
18424         # We need _some_ program so that we don't get
18425         # warnings about empty compilation units, so always
18426         # append a reasonable main().
18427         _compile_program="__attribute__((__warn_unused_result__)) void f (void) {}
18428                          __attribute__((__warn_unused_result__)) int g;"'
18429                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18430
18431         _save_cflags="$CFLAGS"
18432         _save_ldflags="$LDFLAGS"
18433         _save_libs="$LIBS"
18434         CFLAGS="$CFLAGS -Wno-attributes"
18435         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h.  */
18437 $_compile_program
18438 _ACEOF
18439 if ac_fn_c_try_link "$LINENO"; then :
18440   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18441                  cairo_cc_flag=yes
18442 else
18443   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18444                  cairo_cc_flag=no
18445 fi
18446 rm -f core conftest.err conftest.$ac_objext \
18447     conftest$ac_exeext conftest.$ac_ext
18448
18449         if test "x$cairo_cc_stderr" != "x"; then
18450                 cairo_cc_flag=no
18451         fi
18452
18453         if test "x$cairo_cc_flag" = "xyes"; then
18454                 cairo_cv_warn_unused_result="__attribute__((__warn_unused_result__))"
18455         else
18456                 :
18457         fi
18458         CFLAGS="$_save_cflags"
18459         LDFLAGS="$_save_ldflags"
18460         LIBS="$_save_libs"
18461
18462
18463         fi
18464
18465 fi
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_unused_result" >&5
18467 $as_echo "$cairo_cv_warn_unused_result" >&6; }
18468
18469 cat >>confdefs.h <<_ACEOF
18470 #define WARN_UNUSED_RESULT $cairo_cv_warn_unused_result
18471 _ACEOF
18472
18473
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allow undefined symbols in shared libraries used by test suite" >&5
18475 $as_echo_n "checking how to allow undefined symbols in shared libraries used by test suite... " >&6; }
18476 if ${cairo_cv_test_undefined_ldflags+:} false; then :
18477   $as_echo_n "(cached) " >&6
18478 else
18479                 # AC_LANG_PROGRAM() produces a main() w/o args,
18480         # but -Wold-style-definition doesn't like that.
18481         # We need _some_ program so that we don't get
18482         # warnings about empty compilation units, so always
18483         # append a reasonable main().
18484         _compile_program=""'
18485                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
18486
18487         _save_cflags="$CFLAGS"
18488         _save_ldflags="$LDFLAGS"
18489         _save_libs="$LIBS"
18490         CFLAGS="$CFLAGS -Wl,--allow-shlib-undefined"
18491         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h.  */
18493 $_compile_program
18494 _ACEOF
18495 if ac_fn_c_try_link "$LINENO"; then :
18496   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18497                  cairo_cc_flag=yes
18498 else
18499   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
18500                  cairo_cc_flag=no
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext \
18503     conftest$ac_exeext conftest.$ac_ext
18504
18505         if test "x$cairo_cc_stderr" != "x"; then
18506                 cairo_cc_flag=no
18507         fi
18508
18509         if test "x$cairo_cc_flag" = "xyes"; then
18510                 cairo_cv_test_undefined_ldflags="-Wl,--allow-shlib-undefined"
18511         else
18512                 :
18513         fi
18514         CFLAGS="$_save_cflags"
18515         LDFLAGS="$_save_ldflags"
18516         LIBS="$_save_libs"
18517
18518
18519 fi
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_test_undefined_ldflags" >&5
18521 $as_echo "$cairo_cv_test_undefined_ldflags" >&6; }
18522 CAIRO_TEST_UNDEFINED_LDFLAGS="$cairo_cv_test_undefined_ldflags"
18523
18524
18525
18526  if test "x$cross_compiling" = "xyes"; then
18527   CROSS_COMPILING_TRUE=
18528   CROSS_COMPILING_FALSE='#'
18529 else
18530   CROSS_COMPILING_TRUE='#'
18531   CROSS_COMPILING_FALSE=
18532 fi
18533
18534         case $host_os in
18535                 darwin*)
18536
18537                 ;;
18538                 *)
18539          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18540 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18541 if ${ac_cv_c_bigendian+:} false; then :
18542   $as_echo_n "(cached) " >&6
18543 else
18544   ac_cv_c_bigendian=unknown
18545     # See if we're dealing with a universal compiler.
18546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h.  */
18548 #ifndef __APPLE_CC__
18549                not a universal capable compiler
18550              #endif
18551              typedef int dummy;
18552
18553 _ACEOF
18554 if ac_fn_c_try_compile "$LINENO"; then :
18555
18556         # Check for potential -arch flags.  It is not universal unless
18557         # there are at least two -arch flags with different values.
18558         ac_arch=
18559         ac_prev=
18560         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18561          if test -n "$ac_prev"; then
18562            case $ac_word in
18563              i?86 | x86_64 | ppc | ppc64)
18564                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18565                  ac_arch=$ac_word
18566                else
18567                  ac_cv_c_bigendian=universal
18568                  break
18569                fi
18570                ;;
18571            esac
18572            ac_prev=
18573          elif test "x$ac_word" = "x-arch"; then
18574            ac_prev=arch
18575          fi
18576        done
18577 fi
18578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18579     if test $ac_cv_c_bigendian = unknown; then
18580       # See if sys/param.h defines the BYTE_ORDER macro.
18581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h.  */
18583 #include <sys/types.h>
18584              #include <sys/param.h>
18585
18586 int
18587 main ()
18588 {
18589 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18590                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18591                      && LITTLE_ENDIAN)
18592               bogus endian macros
18593              #endif
18594
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 if ac_fn_c_try_compile "$LINENO"; then :
18600   # It does; now see whether it defined to BIG_ENDIAN or not.
18601          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h.  */
18603 #include <sys/types.h>
18604                 #include <sys/param.h>
18605
18606 int
18607 main ()
18608 {
18609 #if BYTE_ORDER != BIG_ENDIAN
18610                  not big endian
18611                 #endif
18612
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_c_try_compile "$LINENO"; then :
18618   ac_cv_c_bigendian=yes
18619 else
18620   ac_cv_c_bigendian=no
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 fi
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625     fi
18626     if test $ac_cv_c_bigendian = unknown; then
18627       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18628       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h.  */
18630 #include <limits.h>
18631
18632 int
18633 main ()
18634 {
18635 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18636               bogus endian macros
18637              #endif
18638
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 if ac_fn_c_try_compile "$LINENO"; then :
18644   # It does; now see whether it defined to _BIG_ENDIAN or not.
18645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h.  */
18647 #include <limits.h>
18648
18649 int
18650 main ()
18651 {
18652 #ifndef _BIG_ENDIAN
18653                  not big endian
18654                 #endif
18655
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_c_try_compile "$LINENO"; then :
18661   ac_cv_c_bigendian=yes
18662 else
18663   ac_cv_c_bigendian=no
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666 fi
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18668     fi
18669     if test $ac_cv_c_bigendian = unknown; then
18670       # Compile a test program.
18671       if test "$cross_compiling" = yes; then :
18672   # Try to guess by grepping values from an object file.
18673          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h.  */
18675 short int ascii_mm[] =
18676                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18677                 short int ascii_ii[] =
18678                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18679                 int use_ascii (int i) {
18680                   return ascii_mm[i] + ascii_ii[i];
18681                 }
18682                 short int ebcdic_ii[] =
18683                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18684                 short int ebcdic_mm[] =
18685                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18686                 int use_ebcdic (int i) {
18687                   return ebcdic_mm[i] + ebcdic_ii[i];
18688                 }
18689                 extern int foo;
18690
18691 int
18692 main ()
18693 {
18694 return use_ascii (foo) == use_ebcdic (foo);
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 if ac_fn_c_try_compile "$LINENO"; then :
18700   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18701               ac_cv_c_bigendian=yes
18702             fi
18703             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18704               if test "$ac_cv_c_bigendian" = unknown; then
18705                 ac_cv_c_bigendian=no
18706               else
18707                 # finding both strings is unlikely to happen, but who knows?
18708                 ac_cv_c_bigendian=unknown
18709               fi
18710             fi
18711 fi
18712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18713 else
18714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h.  */
18716 $ac_includes_default
18717 int
18718 main ()
18719 {
18720
18721              /* Are we little or big endian?  From Harbison&Steele.  */
18722              union
18723              {
18724                long int l;
18725                char c[sizeof (long int)];
18726              } u;
18727              u.l = 1;
18728              return u.c[sizeof (long int) - 1] == 1;
18729
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 if ac_fn_c_try_run "$LINENO"; then :
18735   ac_cv_c_bigendian=no
18736 else
18737   ac_cv_c_bigendian=yes
18738 fi
18739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18740   conftest.$ac_objext conftest.beam conftest.$ac_ext
18741 fi
18742
18743     fi
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18746 $as_echo "$ac_cv_c_bigendian" >&6; }
18747  case $ac_cv_c_bigendian in #(
18748    yes)
18749      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18750 ;; #(
18751    no)
18752       ;; #(
18753    universal)
18754
18755 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18756
18757      ;; #(
18758    *)
18759      as_fn_error $? "unknown endianness
18760  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18761  esac
18762
18763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
18764 $as_echo_n "checking whether float word ordering is bigendian... " >&6; }
18765 if ${ax_cv_c_float_words_bigendian+:} false; then :
18766   $as_echo_n "(cached) " >&6
18767 else
18768
18769
18770 # The endianess is detected by first compiling C code that contains a special
18771 # double float value, then grepping the resulting object file for certain
18772 # strings of ascii values. The double is specially crafted to have a
18773 # binary representation that corresponds with a simple string. In this
18774 # implementation, the string "noonsees" was selected because the individual
18775 # word values ("noon" and "sees") are palindromes, thus making this test
18776 # byte-order agnostic. If grep finds the string "noonsees" in the object
18777 # file, the target platform stores float words in big-endian order. If grep
18778 # finds "seesnoon", float words are in little-endian order. If neither value
18779 # is found, the user is instructed to specify the ordering.
18780
18781 ax_cv_c_float_words_bigendian=unknown
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h.  */
18784
18785
18786 double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
18787
18788
18789 _ACEOF
18790 if ac_fn_c_try_compile "$LINENO"; then :
18791
18792
18793 if strings - conftest.$ac_objext | grep noonsees >/dev/null ; then
18794   ax_cv_c_float_words_bigendian=yes
18795 fi
18796 if strings - conftest.$ac_objext | grep seesnoon >/dev/null ; then
18797   if test "$ax_cv_c_float_words_bigendian" = unknown; then
18798     ax_cv_c_float_words_bigendian=no
18799   else
18800     ax_cv_c_float_words_bigendian=unknown
18801   fi
18802 fi
18803
18804
18805 fi
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 fi
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
18809 $as_echo "$ax_cv_c_float_words_bigendian" >&6; }
18810
18811 case $ax_cv_c_float_words_bigendian in
18812   yes)
18813
18814 $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
18815  ;;
18816   no)
18817      ;;
18818   *)
18819     as_fn_error $? "
18820
18821 Unknown float word ordering. You need to manually preset
18822 ax_cv_c_float_words_bigendian=no (or yes) according to your system.
18823
18824     " "$LINENO" 5 ;;
18825 esac
18826
18827
18828                 ;;
18829         esac
18830
18831 # Check whether --enable-atomic was given.
18832 if test "${enable_atomic+set}" = set; then :
18833   enableval=$enable_atomic; use_atomic=$enableval
18834 else
18835   use_atomic=yes
18836 fi
18837
18838 if test "x$use_atomic" = "xyes"; then :
18839
18840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
18841 $as_echo_n "checking for native atomic primitives... " >&6; }
18842 if ${cairo_cv_atomic_primitives+:} false; then :
18843   $as_echo_n "(cached) " >&6
18844 else
18845
18846                 cairo_cv_atomic_primitives="none"
18847
18848                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h.  */
18850
18851 int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
18852 int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
18853
18854 int
18855 main ()
18856 {
18857
18858   ;
18859   return 0;
18860 }
18861 _ACEOF
18862 if ac_fn_c_try_link "$LINENO"; then :
18863   cairo_cv_atomic_primitives="Intel"
18864
18865 fi
18866 rm -f core conftest.err conftest.$ac_objext \
18867     conftest$ac_exeext conftest.$ac_ext
18868
18869                 if test "x$cairo_cv_atomic_primitives" = "xnone"; then
18870                         ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
18871 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
18872   cairo_cv_atomic_primitives="libatomic-ops"
18873 fi
18874
18875
18876                 fi
18877
18878                 if test "x$cairo_cv_atomic_primitives" = "xnone"; then
18879                         ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
18880 if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
18881   cairo_cv_atomic_primitives="OSAtomic"
18882 fi
18883
18884
18885                 fi
18886
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_primitives" >&5
18889 $as_echo "$cairo_cv_atomic_primitives" >&6; }
18890         if test "x$cairo_cv_atomic_primitives" = xIntel; then
18891
18892 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
18893
18894         fi
18895
18896         if test "x$cairo_cv_atomic_primitives" = "xlibatomic-ops"; then
18897
18898 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
18899
18900         fi
18901
18902         if test "x$cairo_cv_atomic_primitives" = xOSAtomic; then
18903
18904 $as_echo "#define HAVE_OS_ATOMIC_OPS 1" >>confdefs.h
18905
18906         fi
18907
18908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic ops require a memory barrier" >&5
18909 $as_echo_n "checking whether atomic ops require a memory barrier... " >&6; }
18910 if ${cairo_cv_atomic_op_needs_memory_barrier+:} false; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913
18914                 case $host_cpu in
18915                     i?86)       cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18916                     x86_64)     cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18917                     arm*)       cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18918                     *)          cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
18919                 esac
18920
18921 fi
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_op_needs_memory_barrier" >&5
18923 $as_echo "$cairo_cv_atomic_op_needs_memory_barrier" >&6; }
18924         if test "x$cairo_cv_atomic_op_needs_memory_barrier" = "xyes"; then
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define ATOMIC_OP_NEEDS_MEMORY_BARRIER 1
18928 _ACEOF
18929
18930         fi
18931
18932
18933 fi
18934 # The cast to long int works around a bug in the HP C Compiler
18935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18937 # This bug is HP SR number 8606223364.
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18939 $as_echo_n "checking size of void *... " >&6; }
18940 if ${ac_cv_sizeof_void_p+:} false; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18944
18945 else
18946   if test "$ac_cv_type_void_p" = yes; then
18947      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18949 as_fn_error 77 "cannot compute sizeof (void *)
18950 See \`config.log' for more details" "$LINENO" 5; }
18951    else
18952      ac_cv_sizeof_void_p=0
18953    fi
18954 fi
18955
18956 fi
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18958 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18959
18960
18961
18962 cat >>confdefs.h <<_ACEOF
18963 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18964 _ACEOF
18965
18966
18967 # The cast to long int works around a bug in the HP C Compiler
18968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18970 # This bug is HP SR number 8606223364.
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18972 $as_echo_n "checking size of int... " >&6; }
18973 if ${ac_cv_sizeof_int+:} false; then :
18974   $as_echo_n "(cached) " >&6
18975 else
18976   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18977
18978 else
18979   if test "$ac_cv_type_int" = yes; then
18980      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18982 as_fn_error 77 "cannot compute sizeof (int)
18983 See \`config.log' for more details" "$LINENO" 5; }
18984    else
18985      ac_cv_sizeof_int=0
18986    fi
18987 fi
18988
18989 fi
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18991 $as_echo "$ac_cv_sizeof_int" >&6; }
18992
18993
18994
18995 cat >>confdefs.h <<_ACEOF
18996 #define SIZEOF_INT $ac_cv_sizeof_int
18997 _ACEOF
18998
18999
19000 # The cast to long int works around a bug in the HP C Compiler
19001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19003 # This bug is HP SR number 8606223364.
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19005 $as_echo_n "checking size of long... " >&6; }
19006 if ${ac_cv_sizeof_long+:} false; then :
19007   $as_echo_n "(cached) " >&6
19008 else
19009   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19010
19011 else
19012   if test "$ac_cv_type_long" = yes; then
19013      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19015 as_fn_error 77 "cannot compute sizeof (long)
19016 See \`config.log' for more details" "$LINENO" 5; }
19017    else
19018      ac_cv_sizeof_long=0
19019    fi
19020 fi
19021
19022 fi
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19024 $as_echo "$ac_cv_sizeof_long" >&6; }
19025
19026
19027
19028 cat >>confdefs.h <<_ACEOF
19029 #define SIZEOF_LONG $ac_cv_sizeof_long
19030 _ACEOF
19031
19032
19033 # The cast to long int works around a bug in the HP C Compiler
19034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19036 # This bug is HP SR number 8606223364.
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
19038 $as_echo_n "checking size of long long... " >&6; }
19039 if ${ac_cv_sizeof_long_long+:} false; then :
19040   $as_echo_n "(cached) " >&6
19041 else
19042   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
19043
19044 else
19045   if test "$ac_cv_type_long_long" = yes; then
19046      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19048 as_fn_error 77 "cannot compute sizeof (long long)
19049 See \`config.log' for more details" "$LINENO" 5; }
19050    else
19051      ac_cv_sizeof_long_long=0
19052    fi
19053 fi
19054
19055 fi
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
19057 $as_echo "$ac_cv_sizeof_long_long" >&6; }
19058
19059
19060
19061 cat >>confdefs.h <<_ACEOF
19062 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19063 _ACEOF
19064
19065
19066 # The cast to long int works around a bug in the HP C Compiler
19067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19069 # This bug is HP SR number 8606223364.
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19071 $as_echo_n "checking size of size_t... " >&6; }
19072 if ${ac_cv_sizeof_size_t+:} false; then :
19073   $as_echo_n "(cached) " >&6
19074 else
19075   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
19076
19077 else
19078   if test "$ac_cv_type_size_t" = yes; then
19079      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19081 as_fn_error 77 "cannot compute sizeof (size_t)
19082 See \`config.log' for more details" "$LINENO" 5; }
19083    else
19084      ac_cv_sizeof_size_t=0
19085    fi
19086 fi
19087
19088 fi
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19090 $as_echo "$ac_cv_sizeof_size_t" >&6; }
19091
19092
19093
19094 cat >>confdefs.h <<_ACEOF
19095 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19096 _ACEOF
19097
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19101 $as_echo_n "checking for native Win32... " >&6; }
19102 case "$host" in
19103   *-*-mingw*)
19104     cairo_os_win32=yes
19105     ;;
19106   *)
19107     cairo_os_win32=no
19108     ;;
19109 esac
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_os_win32" >&5
19111 $as_echo "$cairo_os_win32" >&6; }
19112  if test "$cairo_os_win32" = "yes"; then
19113   OS_WIN32_TRUE=
19114   OS_WIN32_FALSE='#'
19115 else
19116   OS_WIN32_TRUE='#'
19117   OS_WIN32_FALSE=
19118 fi
19119
19120
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun Solaris (non-POSIX ctime_r)" >&5
19122 $as_echo_n "checking for Sun Solaris (non-POSIX ctime_r)... " >&6; }
19123 case "$host" in
19124     *-*-solaris*)
19125         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
19126         solaris_posix_pthread=yes
19127         ;;
19128     *)
19129         solaris_posix_pthread=no
19130         ;;
19131 esac
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $solaris_posix_pthread" >&5
19133 $as_echo "$solaris_posix_pthread" >&6; }
19134
19135
19136 LIBM=
19137 case $host in
19138 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
19139   # These system don't have libm, or don't need it
19140   ;;
19141 *-ncr-sysv4.3*)
19142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
19143 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
19144 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
19145   $as_echo_n "(cached) " >&6
19146 else
19147   ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lmw  $LIBS"
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h.  */
19151
19152 /* Override any GCC internal prototype to avoid an error.
19153    Use char because int might match the return type of a GCC
19154    builtin and then its argument prototype would still apply.  */
19155 #ifdef __cplusplus
19156 extern "C"
19157 #endif
19158 char _mwvalidcheckl ();
19159 int
19160 main ()
19161 {
19162 return _mwvalidcheckl ();
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 if ac_fn_c_try_link "$LINENO"; then :
19168   ac_cv_lib_mw__mwvalidcheckl=yes
19169 else
19170   ac_cv_lib_mw__mwvalidcheckl=no
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext \
19173     conftest$ac_exeext conftest.$ac_ext
19174 LIBS=$ac_check_lib_save_LIBS
19175 fi
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
19177 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
19178 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
19179   LIBM="-lmw"
19180 fi
19181
19182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
19183 $as_echo_n "checking for cos in -lm... " >&6; }
19184 if ${ac_cv_lib_m_cos+:} false; then :
19185   $as_echo_n "(cached) " >&6
19186 else
19187   ac_check_lib_save_LIBS=$LIBS
19188 LIBS="-lm  $LIBS"
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h.  */
19191
19192 /* Override any GCC internal prototype to avoid an error.
19193    Use char because int might match the return type of a GCC
19194    builtin and then its argument prototype would still apply.  */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char cos ();
19199 int
19200 main ()
19201 {
19202 return cos ();
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 if ac_fn_c_try_link "$LINENO"; then :
19208   ac_cv_lib_m_cos=yes
19209 else
19210   ac_cv_lib_m_cos=no
19211 fi
19212 rm -f core conftest.err conftest.$ac_objext \
19213     conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19215 fi
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
19217 $as_echo "$ac_cv_lib_m_cos" >&6; }
19218 if test "x$ac_cv_lib_m_cos" = xyes; then :
19219   LIBM="$LIBM -lm"
19220 fi
19221
19222   ;;
19223 *)
19224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
19225 $as_echo_n "checking for cos in -lm... " >&6; }
19226 if ${ac_cv_lib_m_cos+:} false; then :
19227   $as_echo_n "(cached) " >&6
19228 else
19229   ac_check_lib_save_LIBS=$LIBS
19230 LIBS="-lm  $LIBS"
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h.  */
19233
19234 /* Override any GCC internal prototype to avoid an error.
19235    Use char because int might match the return type of a GCC
19236    builtin and then its argument prototype would still apply.  */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 char cos ();
19241 int
19242 main ()
19243 {
19244 return cos ();
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 if ac_fn_c_try_link "$LINENO"; then :
19250   ac_cv_lib_m_cos=yes
19251 else
19252   ac_cv_lib_m_cos=no
19253 fi
19254 rm -f core conftest.err conftest.$ac_objext \
19255     conftest$ac_exeext conftest.$ac_ext
19256 LIBS=$ac_check_lib_save_LIBS
19257 fi
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
19259 $as_echo "$ac_cv_lib_m_cos" >&6; }
19260 if test "x$ac_cv_lib_m_cos" = xyes; then :
19261   LIBM="-lm"
19262 fi
19263
19264   ;;
19265 esac
19266
19267
19268 LIBS="$LIBS $LIBM"
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19271 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19272 if ${ac_cv_lib_rt_sched_yield+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lrt  $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279
19280 /* Override any GCC internal prototype to avoid an error.
19281    Use char because int might match the return type of a GCC
19282    builtin and then its argument prototype would still apply.  */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char sched_yield ();
19287 int
19288 main ()
19289 {
19290 return sched_yield ();
19291   ;
19292   return 0;
19293 }
19294 _ACEOF
19295 if ac_fn_c_try_link "$LINENO"; then :
19296   ac_cv_lib_rt_sched_yield=yes
19297 else
19298   ac_cv_lib_rt_sched_yield=no
19299 fi
19300 rm -f core conftest.err conftest.$ac_objext \
19301     conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19303 fi
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19305 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19306 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
19307   cat >>confdefs.h <<_ACEOF
19308 #define HAVE_LIBRT 1
19309 _ACEOF
19310
19311   LIBS="-lrt $LIBS"
19312
19313 fi
19314
19315
19316 has_shm_open=
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
19318 $as_echo_n "checking for shm_open in -lrt... " >&6; }
19319 if ${ac_cv_lib_rt_shm_open+:} false; then :
19320   $as_echo_n "(cached) " >&6
19321 else
19322   ac_check_lib_save_LIBS=$LIBS
19323 LIBS="-lrt  $LIBS"
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326
19327 /* Override any GCC internal prototype to avoid an error.
19328    Use char because int might match the return type of a GCC
19329    builtin and then its argument prototype would still apply.  */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char shm_open ();
19334 int
19335 main ()
19336 {
19337 return shm_open ();
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 if ac_fn_c_try_link "$LINENO"; then :
19343   ac_cv_lib_rt_shm_open=yes
19344 else
19345   ac_cv_lib_rt_shm_open=no
19346 fi
19347 rm -f core conftest.err conftest.$ac_objext \
19348     conftest$ac_exeext conftest.$ac_ext
19349 LIBS=$ac_check_lib_save_LIBS
19350 fi
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
19352 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
19353 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
19354
19355              SHM_LIBS=-lrt
19356              has_shm_open=yes
19357
19358 else
19359   SHM_LIBS=
19360 fi
19361
19362  if test "x$has_shm_open" = "xyes"; then
19363   HAVE_SHM_TRUE=
19364   HAVE_SHM_FALSE='#'
19365 else
19366   HAVE_SHM_TRUE='#'
19367   HAVE_SHM_FALSE=
19368 fi
19369
19370
19371
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19373 $as_echo_n "checking for connect in -lsocket... " >&6; }
19374 if ${ac_cv_lib_socket_connect+:} false; then :
19375   $as_echo_n "(cached) " >&6
19376 else
19377   ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lsocket  $LIBS"
19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h.  */
19381
19382 /* Override any GCC internal prototype to avoid an error.
19383    Use char because int might match the return type of a GCC
19384    builtin and then its argument prototype would still apply.  */
19385 #ifdef __cplusplus
19386 extern "C"
19387 #endif
19388 char connect ();
19389 int
19390 main ()
19391 {
19392 return connect ();
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398   ac_cv_lib_socket_connect=yes
19399 else
19400   ac_cv_lib_socket_connect=no
19401 fi
19402 rm -f core conftest.err conftest.$ac_objext \
19403     conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19405 fi
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19407 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19408 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19409   SOCKET_LIBS=-lsocket
19410 else
19411   SOCKET_LIBS=
19412 fi
19413
19414 CAIROBOILERPLATE_LIBS=$SOCKET_LIBS
19415
19416
19417
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_return_address(0)" >&5
19419 $as_echo_n "checking for __builtin_return_address(0)... " >&6; }
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h.  */
19422
19423 int
19424 main ()
19425 {
19426 __builtin_return_address(0);
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 if ac_fn_c_try_compile "$LINENO"; then :
19432   have_builtin_return_address=yes
19433 else
19434   have_builtin_return_address=no
19435 fi
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_return_address" >&5
19438 $as_echo "$have_builtin_return_address" >&6; }
19439 if test "x$have_builtin_return_address" = "xyes"; then
19440
19441 $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h
19442
19443 fi
19444
19445 for ac_header in stdint.h inttypes.h sys/int_types.h
19446 do :
19447   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19448 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19449 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19450   cat >>confdefs.h <<_ACEOF
19451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19452 _ACEOF
19453
19454 fi
19455
19456 done
19457
19458 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
19459 if test "x$ac_cv_type_uint64_t" = xyes; then :
19460
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_UINT64_T 1
19463 _ACEOF
19464
19465
19466 fi
19467 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default"
19468 if test "x$ac_cv_type_uint128_t" = xyes; then :
19469
19470 cat >>confdefs.h <<_ACEOF
19471 #define HAVE_UINT128_T 1
19472 _ACEOF
19473
19474
19475 fi
19476 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
19477 if test "x$ac_cv_type___uint128_t" = xyes; then :
19478
19479 cat >>confdefs.h <<_ACEOF
19480 #define HAVE___UINT128_T 1
19481 _ACEOF
19482
19483
19484 fi
19485
19486
19487 for ac_header in fcntl.h unistd.h signal.h sys/stat.h sys/socket.h sys/poll.h sys/un.h
19488 do :
19489   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19490 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19492   cat >>confdefs.h <<_ACEOF
19493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19494 _ACEOF
19495
19496 fi
19497
19498 done
19499
19500
19501 for ac_func in alarm
19502 do :
19503   ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
19504 if test "x$ac_cv_func_alarm" = xyes; then :
19505   cat >>confdefs.h <<_ACEOF
19506 #define HAVE_ALARM 1
19507 _ACEOF
19508
19509 fi
19510 done
19511
19512
19513 for ac_header in sched.h
19514 do :
19515   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19516 if test "x$ac_cv_header_sched_h" = xyes; then :
19517   cat >>confdefs.h <<_ACEOF
19518 #define HAVE_SCHED_H 1
19519 _ACEOF
19520  for ac_func in sched_getaffinity
19521 do :
19522   ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity"
19523 if test "x$ac_cv_func_sched_getaffinity" = xyes; then :
19524   cat >>confdefs.h <<_ACEOF
19525 #define HAVE_SCHED_GETAFFINITY 1
19526 _ACEOF
19527
19528 fi
19529 done
19530
19531 fi
19532
19533 done
19534
19535
19536 for ac_header in sys/mman.h
19537 do :
19538   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
19539 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
19540   cat >>confdefs.h <<_ACEOF
19541 #define HAVE_SYS_MMAN_H 1
19542 _ACEOF
19543  for ac_func in mmap
19544 do :
19545   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19546 if test "x$ac_cv_func_mmap" = xyes; then :
19547   cat >>confdefs.h <<_ACEOF
19548 #define HAVE_MMAP 1
19549 _ACEOF
19550
19551 fi
19552 done
19553
19554 fi
19555
19556 done
19557
19558
19559 for ac_header in time.h
19560 do :
19561   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
19562 if test "x$ac_cv_header_time_h" = xyes; then :
19563   cat >>confdefs.h <<_ACEOF
19564 #define HAVE_TIME_H 1
19565 _ACEOF
19566  for ac_func in clock_gettime
19567 do :
19568   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
19569 if test "x$ac_cv_func_clock_gettime" = xyes; then :
19570   cat >>confdefs.h <<_ACEOF
19571 #define HAVE_CLOCK_GETTIME 1
19572 _ACEOF
19573
19574 fi
19575 done
19576
19577 fi
19578
19579 done
19580
19581
19582 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
19583 if test "x$ac_cv_header_fenv_h" = xyes; then :
19584   for ac_func in feenableexcept fedisableexcept feclearexcept
19585 do :
19586   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19589   cat >>confdefs.h <<_ACEOF
19590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19591 _ACEOF
19592
19593 fi
19594 done
19595
19596 fi
19597
19598
19599
19600 for ac_header in libgen.h byteswap.h signal.h setjmp.h fenv.h sys/wait.h
19601 do :
19602   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19603 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19605   cat >>confdefs.h <<_ACEOF
19606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19607 _ACEOF
19608
19609 fi
19610
19611 done
19612
19613 for ac_func in ctime_r drand48 flockfile funlockfile getline link strndup
19614 do :
19615   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19618   cat >>confdefs.h <<_ACEOF
19619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19620 _ACEOF
19621
19622 fi
19623 done
19624
19625
19626 for ac_header in windows.h
19627 do :
19628   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19629 if test "x$ac_cv_header_windows_h" = xyes; then :
19630   cat >>confdefs.h <<_ACEOF
19631 #define HAVE_WINDOWS_H 1
19632 _ACEOF
19633  have_windows=yes
19634 else
19635   have_windows=no
19636 fi
19637
19638 done
19639
19640
19641
19642 for ac_header in sys/stat.h io.h
19643 do :
19644   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19646 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19647   cat >>confdefs.h <<_ACEOF
19648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19649 _ACEOF
19650
19651 fi
19652
19653 done
19654
19655 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19656 if test "x$ac_cv_func_mkdir" = xyes; then :
19657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mkdir variant" >&5
19658 $as_echo_n "checking mkdir variant... " >&6; }
19659               mkdir_variant="unknown"
19660               save_CFLAGS="$CFLAGS"
19661               CFLAGS=$WARN_CFLAGS
19662               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h.  */
19664
19665 #ifdef HAVE_SYS_STAT_H
19666 #include <sys/stat.h>
19667 #endif
19668 #ifdef HAVE_IO_H
19669 #include <io.h>
19670 #endif
19671
19672 int
19673 main ()
19674 {
19675 mkdir ("hello.world", 0777)
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 if ac_fn_c_try_compile "$LINENO"; then :
19681   mkdir_variant="mkdir(path, mode)"
19682 else
19683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h.  */
19685
19686 #ifdef HAVE_SYS_STAT_H
19687 #include <sys/stat.h>
19688 #endif
19689 #ifdef HAVE_IO_H
19690 #include <io.h>
19691 #endif
19692
19693 int
19694 main ()
19695 {
19696 mkdir ("hello.world")
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 if ac_fn_c_try_compile "$LINENO"; then :
19702   mkdir_variant="mkdir(path)"
19703 fi
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 fi
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkdir_variant" >&5
19708 $as_echo "$mkdir_variant" >&6; }
19709               CFLAGS="$save_CFLAGS"
19710               if test "x$mkdir_variant" = "xmkdir(path, mode)"; then
19711
19712 $as_echo "#define HAVE_MKDIR 2" >>confdefs.h
19713
19714               else
19715
19716 $as_echo "#define HAVE_MKDIR 1" >>confdefs.h
19717
19718               fi
19719 fi
19720
19721
19722
19723 for ac_func in fork waitpid raise
19724 do :
19725   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19728   cat >>confdefs.h <<_ACEOF
19729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19730 _ACEOF
19731
19732 fi
19733 done
19734
19735
19736         cairo_has_lcov=no
19737 # Check whether --enable-gcov was given.
19738 if test "${enable_gcov+set}" = set; then :
19739   enableval=$enable_gcov; use_gcov=$enableval
19740 else
19741   use_gcov=no
19742 fi
19743
19744
19745 if test "x$use_gcov" = "xyes"; then
19746     if test "$GCC" != "yes"; then
19747     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
19748   fi
19749
19750     # Extract the first word of "shtool", so it can be a program name with args.
19751 set dummy shtool; ac_word=$2
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19753 $as_echo_n "checking for $ac_word... " >&6; }
19754 if ${ac_cv_prog_SHTOOL+:} false; then :
19755   $as_echo_n "(cached) " >&6
19756 else
19757   if test -n "$SHTOOL"; then
19758   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
19759 else
19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763   IFS=$as_save_IFS
19764   test -z "$as_dir" && as_dir=.
19765     for ac_exec_ext in '' $ac_executable_extensions; do
19766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19767     ac_cv_prog_SHTOOL="shtool"
19768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19769     break 2
19770   fi
19771 done
19772   done
19773 IFS=$as_save_IFS
19774
19775 fi
19776 fi
19777 SHTOOL=$ac_cv_prog_SHTOOL
19778 if test -n "$SHTOOL"; then
19779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
19780 $as_echo "$SHTOOL" >&6; }
19781 else
19782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783 $as_echo "no" >&6; }
19784 fi
19785
19786
19787   case `$SHTOOL path $CC` in
19788     *ccache*) gcc_ccache=yes;;
19789     *) gcc_ccache=no;;
19790   esac
19791
19792   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
19793     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
19794   fi
19795
19796   ltp_version_list="1.7 1.6 1.5 1.4"
19797   # Extract the first word of "lcov", so it can be a program name with args.
19798 set dummy lcov; ac_word=$2
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19800 $as_echo_n "checking for $ac_word... " >&6; }
19801 if ${ac_cv_prog_LTP+:} false; then :
19802   $as_echo_n "(cached) " >&6
19803 else
19804   if test -n "$LTP"; then
19805   ac_cv_prog_LTP="$LTP" # Let the user override the test.
19806 else
19807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19808 for as_dir in $PATH
19809 do
19810   IFS=$as_save_IFS
19811   test -z "$as_dir" && as_dir=.
19812     for ac_exec_ext in '' $ac_executable_extensions; do
19813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19814     ac_cv_prog_LTP="lcov"
19815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19816     break 2
19817   fi
19818 done
19819   done
19820 IFS=$as_save_IFS
19821
19822 fi
19823 fi
19824 LTP=$ac_cv_prog_LTP
19825 if test -n "$LTP"; then
19826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
19827 $as_echo "$LTP" >&6; }
19828 else
19829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830 $as_echo "no" >&6; }
19831 fi
19832
19833
19834   # Extract the first word of "genhtml", so it can be a program name with args.
19835 set dummy genhtml; ac_word=$2
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19837 $as_echo_n "checking for $ac_word... " >&6; }
19838 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
19839   $as_echo_n "(cached) " >&6
19840 else
19841   if test -n "$LTP_GENHTML"; then
19842   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
19843 else
19844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845 for as_dir in $PATH
19846 do
19847   IFS=$as_save_IFS
19848   test -z "$as_dir" && as_dir=.
19849     for ac_exec_ext in '' $ac_executable_extensions; do
19850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19851     ac_cv_prog_LTP_GENHTML="genhtml"
19852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19853     break 2
19854   fi
19855 done
19856   done
19857 IFS=$as_save_IFS
19858
19859 fi
19860 fi
19861 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
19862 if test -n "$LTP_GENHTML"; then
19863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
19864 $as_echo "$LTP_GENHTML" >&6; }
19865 else
19866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 $as_echo "no" >&6; }
19868 fi
19869
19870
19871
19872   if test "$LTP"; then
19873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
19874 $as_echo_n "checking for ltp version... " >&6; }
19875 if ${cairo_cv_ltp_version+:} false; then :
19876   $as_echo_n "(cached) " >&6
19877 else
19878
19879       cairo_cv_ltp_version=invalid
19880       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
19881       for ltp_check_version in $ltp_version_list; do
19882         if test "$ltp_version" = "$ltp_check_version"; then
19883           cairo_cv_ltp_version="$ltp_check_version (ok)"
19884         fi
19885       done
19886
19887 fi
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_ltp_version" >&5
19889 $as_echo "$cairo_cv_ltp_version" >&6; }
19890   fi
19891
19892   case $cairo_cv_ltp_version in
19893     ""|invalid)
19894       ;;
19895     *)
19896       cairo_has_lcov=yes
19897       ;;
19898   esac
19899
19900   if test "x$cairo_has_lcov" != "xyes"; then
19901     as_fn_error $? "To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list.
19902 Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
19903    fi
19904
19905   if test -z "$LTP_GENHTML"; then
19906     as_fn_error $? "Could not find genhtml from the LTP package.
19907 Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
19908   fi
19909
19910
19911 $as_echo "#define HAVE_GCOV 1" >>confdefs.h
19912
19913
19914
19915   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
19916   CAIRO_CFLAGS=`echo "$CAIRO_CFLAGS" | $SED -e 's/-O[0-9]*//g'`
19917
19918
19919                         _test_WERROR=${WERROR+set}
19920         if test "z$_test_WERROR" != zset; then
19921                 WERROR=""
19922                 for _werror in -Werror -errwarn; do
19923                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
19924 $as_echo_n "checking whether $CC supports $_werror... " >&6; }
19925                                         # AC_LANG_PROGRAM() produces a main() w/o args,
19926         # but -Wold-style-definition doesn't like that.
19927         # We need _some_ program so that we don't get
19928         # warnings about empty compilation units, so always
19929         # append a reasonable main().
19930         _compile_program=""'
19931                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
19932
19933         _save_cflags="$CFLAGS"
19934         _save_ldflags="$LDFLAGS"
19935         _save_libs="$LIBS"
19936         CFLAGS="$CFLAGS $_werror"
19937         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939 $_compile_program
19940 _ACEOF
19941 if ac_fn_c_try_link "$LINENO"; then :
19942   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19943                  cairo_cc_flag=yes
19944 else
19945   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19946                  cairo_cc_flag=no
19947 fi
19948 rm -f core conftest.err conftest.$ac_objext \
19949     conftest$ac_exeext conftest.$ac_ext
19950
19951         if test "x$cairo_cc_stderr" != "x"; then
19952                 cairo_cc_flag=no
19953         fi
19954
19955         if test "x$cairo_cc_flag" = "xyes"; then
19956                 WERROR="$WERROR $_werror"
19957         else
19958                 :
19959         fi
19960         CFLAGS="$_save_cflags"
19961         LDFLAGS="$_save_ldflags"
19962         LIBS="$_save_libs"
19963
19964
19965                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
19966 $as_echo "$cairo_cc_flag" >&6; }
19967                 done
19968         fi
19969
19970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports --coverage" >&5
19971 $as_echo_n "checking whether $CC supports --coverage... " >&6; }
19972                         # AC_LANG_PROGRAM() produces a main() w/o args,
19973         # but -Wold-style-definition doesn't like that.
19974         # We need _some_ program so that we don't get
19975         # warnings about empty compilation units, so always
19976         # append a reasonable main().
19977         _compile_program=""'
19978                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
19979
19980         _save_cflags="$CFLAGS"
19981         _save_ldflags="$LDFLAGS"
19982         _save_libs="$LIBS"
19983         CFLAGS="$CFLAGS $WERROR --coverage"
19984         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h.  */
19986 $_compile_program
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19990                  cairo_cc_flag=yes
19991 else
19992   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19993                  cairo_cc_flag=no
19994 fi
19995 rm -f core conftest.err conftest.$ac_objext \
19996     conftest$ac_exeext conftest.$ac_ext
19997
19998         if test "x$cairo_cc_stderr" != "x"; then
19999                 cairo_cc_flag=no
20000         fi
20001
20002         if test "x$cairo_cc_flag" = "xyes"; then
20003
20004                     CAIRO_CFLAGS="$CAIRO_CFLAGS -O0 --coverage"
20005                     CAIRO_LDFLAGS="$CAIRO_LDFLAGS -O0 --coverage"
20006
20007         else
20008                 :
20009         fi
20010         CFLAGS="$_save_cflags"
20011         LDFLAGS="$_save_ldflags"
20012         LIBS="$_save_libs"
20013
20014
20015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
20016 $as_echo "$cairo_cc_flag" >&6; }
20017
20018 fi
20019  if test "x$cairo_has_lcov" = "xyes"; then
20020   CAIRO_HAS_LCOV_TRUE=
20021   CAIRO_HAS_LCOV_FALSE='#'
20022 else
20023   CAIRO_HAS_LCOV_TRUE='#'
20024   CAIRO_HAS_LCOV_FALSE=
20025 fi
20026
20027
20028 # Check whether --enable-valgrind was given.
20029 if test "${enable_valgrind+set}" = set; then :
20030   enableval=$enable_valgrind; use_valgrind=$enableval
20031 else
20032   use_valgrind=yes
20033 fi
20034
20035
20036 if test "x$use_valgrind" = "xyes"; then
20037
20038 pkg_failed=no
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
20040 $as_echo_n "checking for VALGRIND... " >&6; }
20041
20042 if test -n "$VALGRIND_CFLAGS"; then
20043     pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
20044  elif test -n "$PKG_CONFIG"; then
20045     if test -n "$PKG_CONFIG" && \
20046     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20047   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20048   ac_status=$?
20049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20050   test $ac_status = 0; }; then
20051   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
20052 else
20053   pkg_failed=yes
20054 fi
20055  else
20056     pkg_failed=untried
20057 fi
20058 if test -n "$VALGRIND_LIBS"; then
20059     pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
20060  elif test -n "$PKG_CONFIG"; then
20061     if test -n "$PKG_CONFIG" && \
20062     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20063   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20064   ac_status=$?
20065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20066   test $ac_status = 0; }; then
20067   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
20068 else
20069   pkg_failed=yes
20070 fi
20071  else
20072     pkg_failed=untried
20073 fi
20074
20075
20076
20077 if test $pkg_failed = yes; then
20078
20079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20080         _pkg_short_errors_supported=yes
20081 else
20082         _pkg_short_errors_supported=no
20083 fi
20084         if test $_pkg_short_errors_supported = yes; then
20085                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind" 2>&1`
20086         else
20087                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind" 2>&1`
20088         fi
20089         # Put the nasty error message in config.log where it belongs
20090         echo "$VALGRIND_PKG_ERRORS" >&5
20091
20092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20093 $as_echo "no" >&6; }
20094                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20095 $as_echo "no" >&6; }
20096 elif test $pkg_failed = untried; then
20097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20098 $as_echo "no" >&6; }
20099 else
20100         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
20101         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
20102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20104
20105             _save_CFLAGS="$CFLAGS"
20106             _save_CPPFLAGS="$CPPFLAGS"
20107             CFLAGS="$CFLAGS $VALGRIND_CFLAGS"
20108             CPPFLAGS="$CPPFLAGS $VALGRIND_CFLAGS"
20109             ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
20110 if test "x$ac_cv_header_valgrind_h" = xyes; then :
20111
20112 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
20113
20114 fi
20115
20116
20117             ac_fn_c_check_header_mongrel "$LINENO" "lockdep.h" "ac_cv_header_lockdep_h" "$ac_includes_default"
20118 if test "x$ac_cv_header_lockdep_h" = xyes; then :
20119
20120 $as_echo "#define HAVE_LOCKDEP 1" >>confdefs.h
20121
20122 fi
20123
20124
20125             ac_fn_c_check_header_mongrel "$LINENO" "memfault.h" "ac_cv_header_memfault_h" "$ac_includes_default"
20126 if test "x$ac_cv_header_memfault_h" = xyes; then :
20127
20128 $as_echo "#define HAVE_MEMFAULT 1" >>confdefs.h
20129
20130 fi
20131
20132
20133             CAIRO_CFLAGS="$VALGRIND_CFLAGS $CAIRO_CFLAGS"
20134             CFLAGS="$_save_CFLAGS"
20135             CPPFLAGS="$_save_CPPFLAGS"
20136
20137 fi
20138 fi
20139
20140 echo '#undef PACKAGE_VERSION' >>confdefs.h
20141 echo '#undef PACKAGE_STRING' >>confdefs.h
20142 echo '#undef PACKAGE_NAME' >>confdefs.h
20143 echo '#undef PACKAGE_TARNAME' >>confdefs.h
20144 $as_echo "#define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
20145
20146 $as_echo "#define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
20147
20148 $as_echo "#define PACKAGE_NAME USE_cairo_INSTEAD" >>confdefs.h
20149
20150 $as_echo "#define PACKAGE_TARNAME USE_cairo_INSTEAD" >>confdefs.h
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161   cat >confcache <<\_ACEOF
20162 # This file is a shell script that caches the results of configure
20163 # tests run on this system so they can be shared between configure
20164 # scripts and configure runs, see configure's option --config-cache.
20165 # It is not useful on other systems.  If it contains results you don't
20166 # want to keep, you may remove or edit it.
20167 #
20168 # config.status only pays attention to the cache file if you give it
20169 # the --recheck option to rerun configure.
20170 #
20171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20173 # following values.
20174
20175 _ACEOF
20176
20177 # The following way of writing the cache mishandles newlines in values,
20178 # but we know of no workaround that is simple, portable, and efficient.
20179 # So, we kill variables containing newlines.
20180 # Ultrix sh set writes to stderr and can't be redirected directly,
20181 # and sets the high bit in the cache file unless we assign to the vars.
20182 (
20183   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20184     eval ac_val=\$$ac_var
20185     case $ac_val in #(
20186     *${as_nl}*)
20187       case $ac_var in #(
20188       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20190       esac
20191       case $ac_var in #(
20192       _ | IFS | as_nl) ;; #(
20193       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20194       *) { eval $ac_var=; unset $ac_var;} ;;
20195       esac ;;
20196     esac
20197   done
20198
20199   (set) 2>&1 |
20200     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20201     *${as_nl}ac_space=\ *)
20202       # `set' does not quote correctly, so add quotes: double-quote
20203       # substitution turns \\\\ into \\, and sed turns \\ into \.
20204       sed -n \
20205         "s/'/'\\\\''/g;
20206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20207       ;; #(
20208     *)
20209       # `set' quotes correctly as required by POSIX, so do not add quotes.
20210       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20211       ;;
20212     esac |
20213     sort
20214 ) |
20215   sed '
20216      /^ac_cv_env_/b end
20217      t clear
20218      :clear
20219      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20220      t end
20221      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20222      :end' >>confcache
20223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20224   if test -w "$cache_file"; then
20225     if test "x$cache_file" != "x/dev/null"; then
20226       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20227 $as_echo "$as_me: updating cache $cache_file" >&6;}
20228       if test ! -f "$cache_file" || test -h "$cache_file"; then
20229         cat confcache >"$cache_file"
20230       else
20231         case $cache_file in #(
20232         */* | ?:*)
20233           mv -f confcache "$cache_file"$$ &&
20234           mv -f "$cache_file"$$ "$cache_file" ;; #(
20235         *)
20236           mv -f confcache "$cache_file" ;;
20237         esac
20238       fi
20239     fi
20240   else
20241     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20242 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20243   fi
20244 fi
20245 rm -f confcache
20246
20247
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20249 $as_echo_n "checking for compress in -lz... " >&6; }
20250 if ${ac_cv_lib_z_compress+:} false; then :
20251   $as_echo_n "(cached) " >&6
20252 else
20253   ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lz  $LIBS"
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h.  */
20257
20258 /* Override any GCC internal prototype to avoid an error.
20259    Use char because int might match the return type of a GCC
20260    builtin and then its argument prototype would still apply.  */
20261 #ifdef __cplusplus
20262 extern "C"
20263 #endif
20264 char compress ();
20265 int
20266 main ()
20267 {
20268 return compress ();
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 if ac_fn_c_try_link "$LINENO"; then :
20274   ac_cv_lib_z_compress=yes
20275 else
20276   ac_cv_lib_z_compress=no
20277 fi
20278 rm -f core conftest.err conftest.$ac_objext \
20279     conftest$ac_exeext conftest.$ac_ext
20280 LIBS=$ac_check_lib_save_LIBS
20281 fi
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20283 $as_echo "$ac_cv_lib_z_compress" >&6; }
20284 if test "x$ac_cv_lib_z_compress" = xyes; then :
20285   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20286 if test "x$ac_cv_header_zlib_h" = xyes; then :
20287
20288           have_libz=yes
20289
20290 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
20291
20292
20293 else
20294   have_libz="no (requires zlib http://www.gzip.org/zlib/)"
20295 fi
20296
20297
20298 else
20299   have_libz="no (requires zlib http://www.gzip.org/zlib/)"
20300 fi
20301
20302
20303 save_LIBS="$LIBS"
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo2a_decompress in -llzo2" >&5
20305 $as_echo_n "checking for lzo2a_decompress in -llzo2... " >&6; }
20306 if ${ac_cv_lib_lzo2_lzo2a_decompress+:} false; then :
20307   $as_echo_n "(cached) " >&6
20308 else
20309   ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-llzo2  $LIBS"
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h.  */
20313
20314 /* Override any GCC internal prototype to avoid an error.
20315    Use char because int might match the return type of a GCC
20316    builtin and then its argument prototype would still apply.  */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char lzo2a_decompress ();
20321 int
20322 main ()
20323 {
20324 return lzo2a_decompress ();
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 if ac_fn_c_try_link "$LINENO"; then :
20330   ac_cv_lib_lzo2_lzo2a_decompress=yes
20331 else
20332   ac_cv_lib_lzo2_lzo2a_decompress=no
20333 fi
20334 rm -f core conftest.err conftest.$ac_objext \
20335     conftest$ac_exeext conftest.$ac_ext
20336 LIBS=$ac_check_lib_save_LIBS
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo2a_decompress" >&5
20339 $as_echo "$ac_cv_lib_lzo2_lzo2a_decompress" >&6; }
20340 if test "x$ac_cv_lib_lzo2_lzo2a_decompress" = xyes; then :
20341   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo2a.h" "ac_cv_header_lzo_lzo2a_h" "$ac_includes_default"
20342 if test "x$ac_cv_header_lzo_lzo2a_h" = xyes; then :
20343
20344           have_lzo=yes
20345
20346 $as_echo "#define HAVE_LZO 1" >>confdefs.h
20347
20348           lzo_LIBS="-llzo2"
20349
20350 else
20351   have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"
20352 fi
20353
20354
20355 else
20356   have_lzo="no (requires lzpo http://www.oberhumer.com/opensource/lzo/)"
20357 fi
20358
20359
20360 LIBS="$save_LIBS"
20361
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
20363 $as_echo_n "checking for dlsym in -ldl... " >&6; }
20364 if ${ac_cv_lib_dl_dlsym+:} false; then :
20365   $as_echo_n "(cached) " >&6
20366 else
20367   ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-ldl  $LIBS"
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h.  */
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373    Use char because int might match the return type of a GCC
20374    builtin and then its argument prototype would still apply.  */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char dlsym ();
20379 int
20380 main ()
20381 {
20382 return dlsym ();
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 if ac_fn_c_try_link "$LINENO"; then :
20388   ac_cv_lib_dl_dlsym=yes
20389 else
20390   ac_cv_lib_dl_dlsym=no
20391 fi
20392 rm -f core conftest.err conftest.$ac_objext \
20393     conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20395 fi
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
20397 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
20398 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
20399   have_dlsym=yes; have_dl=yes
20400 else
20401   have_dlsym=no; have_dl=no
20402 fi
20403
20404 if test "x$have_dlsym" = "xno"; then
20405    ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
20406 if test "x$ac_cv_func_dlsym" = xyes; then :
20407   have_dlsym=yes
20408 else
20409   have_dlsym=no
20410 fi
20411
20412 fi
20413 for ac_header in dlfcn.h
20414 do :
20415   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20416 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20417   cat >>confdefs.h <<_ACEOF
20418 #define HAVE_DLFCN_H 1
20419 _ACEOF
20420  have_dlsym=yes
20421 else
20422   have_dlsym=no
20423 fi
20424
20425 done
20426
20427  if test "x$have_dl" = "xyes"; then
20428   CAIRO_HAS_DL_TRUE=
20429   CAIRO_HAS_DL_FALSE='#'
20430 else
20431   CAIRO_HAS_DL_TRUE='#'
20432   CAIRO_HAS_DL_FALSE=
20433 fi
20434
20435 if test "x$have_dlsym" = "xyes"; then
20436
20437 $as_echo "#define CAIRO_HAS_DLSYM 1" >>confdefs.h
20438
20439 fi
20440  if test "x$have_dlsym" = "xyes"; then
20441   CAIRO_HAS_DLSYM_TRUE=
20442   CAIRO_HAS_DLSYM_FALSE='#'
20443 else
20444   CAIRO_HAS_DLSYM_TRUE='#'
20445   CAIRO_HAS_DLSYM_FALSE=
20446 fi
20447
20448
20449
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
20451 $as_echo_n "checking for X... " >&6; }
20452
20453
20454 # Check whether --with-x was given.
20455 if test "${with_x+set}" = set; then :
20456   withval=$with_x;
20457 fi
20458
20459 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20460 if test "x$with_x" = xno; then
20461   # The user explicitly disabled X.
20462   have_x=disabled
20463 else
20464   case $x_includes,$x_libraries in #(
20465     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
20466     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
20467   $as_echo_n "(cached) " >&6
20468 else
20469   # One or both of the vars are not set, and there is no cached value.
20470 ac_x_includes=no ac_x_libraries=no
20471 rm -f -r conftest.dir
20472 if mkdir conftest.dir; then
20473   cd conftest.dir
20474   cat >Imakefile <<'_ACEOF'
20475 incroot:
20476         @echo incroot='${INCROOT}'
20477 usrlibdir:
20478         @echo usrlibdir='${USRLIBDIR}'
20479 libdir:
20480         @echo libdir='${LIBDIR}'
20481 _ACEOF
20482   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20483     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20484     for ac_var in incroot usrlibdir libdir; do
20485       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20486     done
20487     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20488     for ac_extension in a so sl dylib la dll; do
20489       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20490          test -f "$ac_im_libdir/libX11.$ac_extension"; then
20491         ac_im_usrlibdir=$ac_im_libdir; break
20492       fi
20493     done
20494     # Screen out bogus values from the imake configuration.  They are
20495     # bogus both because they are the default anyway, and because
20496     # using them would break gcc on systems where it needs fixed includes.
20497     case $ac_im_incroot in
20498         /usr/include) ac_x_includes= ;;
20499         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20500     esac
20501     case $ac_im_usrlibdir in
20502         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
20503         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20504     esac
20505   fi
20506   cd ..
20507   rm -f -r conftest.dir
20508 fi
20509
20510 # Standard set of common directories for X headers.
20511 # Check X11 before X11Rn because it is often a symlink to the current release.
20512 ac_x_header_dirs='
20513 /usr/X11/include
20514 /usr/X11R7/include
20515 /usr/X11R6/include
20516 /usr/X11R5/include
20517 /usr/X11R4/include
20518
20519 /usr/include/X11
20520 /usr/include/X11R7
20521 /usr/include/X11R6
20522 /usr/include/X11R5
20523 /usr/include/X11R4
20524
20525 /usr/local/X11/include
20526 /usr/local/X11R7/include
20527 /usr/local/X11R6/include
20528 /usr/local/X11R5/include
20529 /usr/local/X11R4/include
20530
20531 /usr/local/include/X11
20532 /usr/local/include/X11R7
20533 /usr/local/include/X11R6
20534 /usr/local/include/X11R5
20535 /usr/local/include/X11R4
20536
20537 /usr/X386/include
20538 /usr/x386/include
20539 /usr/XFree86/include/X11
20540
20541 /usr/include
20542 /usr/local/include
20543 /usr/unsupported/include
20544 /usr/athena/include
20545 /usr/local/x11r5/include
20546 /usr/lpp/Xamples/include
20547
20548 /usr/openwin/include
20549 /usr/openwin/share/include'
20550
20551 if test "$ac_x_includes" = no; then
20552   # Guess where to find include files, by looking for Xlib.h.
20553   # First, try using that file with no special directory specified.
20554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h.  */
20556 #include <X11/Xlib.h>
20557 _ACEOF
20558 if ac_fn_c_try_cpp "$LINENO"; then :
20559   # We can compile using X headers with no special include directory.
20560 ac_x_includes=
20561 else
20562   for ac_dir in $ac_x_header_dirs; do
20563   if test -r "$ac_dir/X11/Xlib.h"; then
20564     ac_x_includes=$ac_dir
20565     break
20566   fi
20567 done
20568 fi
20569 rm -f conftest.err conftest.i conftest.$ac_ext
20570 fi # $ac_x_includes = no
20571
20572 if test "$ac_x_libraries" = no; then
20573   # Check for the libraries.
20574   # See if we find them without any special options.
20575   # Don't add to $LIBS permanently.
20576   ac_save_LIBS=$LIBS
20577   LIBS="-lX11 $LIBS"
20578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h.  */
20580 #include <X11/Xlib.h>
20581 int
20582 main ()
20583 {
20584 XrmInitialize ()
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 if ac_fn_c_try_link "$LINENO"; then :
20590   LIBS=$ac_save_LIBS
20591 # We can link X programs with no special library path.
20592 ac_x_libraries=
20593 else
20594   LIBS=$ac_save_LIBS
20595 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20596 do
20597   # Don't even attempt the hair of trying to link an X program!
20598   for ac_extension in a so sl dylib la dll; do
20599     if test -r "$ac_dir/libX11.$ac_extension"; then
20600       ac_x_libraries=$ac_dir
20601       break 2
20602     fi
20603   done
20604 done
20605 fi
20606 rm -f core conftest.err conftest.$ac_objext \
20607     conftest$ac_exeext conftest.$ac_ext
20608 fi # $ac_x_libraries = no
20609
20610 case $ac_x_includes,$ac_x_libraries in #(
20611   no,* | *,no | *\'*)
20612     # Didn't find X, or a directory has "'" in its name.
20613     ac_cv_have_x="have_x=no";; #(
20614   *)
20615     # Record where we found X for the cache.
20616     ac_cv_have_x="have_x=yes\
20617         ac_x_includes='$ac_x_includes'\
20618         ac_x_libraries='$ac_x_libraries'"
20619 esac
20620 fi
20621 ;; #(
20622     *) have_x=yes;;
20623   esac
20624   eval "$ac_cv_have_x"
20625 fi # $with_x != no
20626
20627 if test "$have_x" != yes; then
20628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20629 $as_echo "$have_x" >&6; }
20630   no_x=yes
20631 else
20632   # If each of the values was on the command line, it overrides each guess.
20633   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20634   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20635   # Update the cache value to reflect the command line values.
20636   ac_cv_have_x="have_x=yes\
20637         ac_x_includes='$x_includes'\
20638         ac_x_libraries='$x_libraries'"
20639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20640 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20641 fi
20642
20643                                                                                                                                 # Check whether --enable-xlib was given.
20644 if test "${enable_xlib+set}" = set; then :
20645   enableval=$enable_xlib; enable_xlib=$enableval
20646 else
20647   enable_xlib=auto
20648 fi
20649
20650                         case $enable_xlib in #(
20651   no) :
20652                 use_xlib="no (disabled, use --enable-xlib to enable)"
20653          ;; #(
20654         yes|auto) :
20655                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib surface backend feature" >&5
20656 $as_echo_n "checking for cairo's Xlib surface backend feature... " >&6; }
20657                 echo
20658
20659                 use_xlib=yes
20660                         xlib_BASE="cairo"
20661 xlib_REQUIRES="$ac_env_xlib_REQUIRES_value"
20662 xlib_CFLAGS="$ac_env_xlib_CFLAGS_value"
20663 xlib_NONPKGCONFIG_CFLAGS="$ac_env_xlib_NONPKGCONFIG_CFLAGS_value"
20664 xlib_LIBS="$ac_env_xlib_LIBS_value"
20665 xlib_NONPKGCONFIG_LIBS="$ac_env_xlib_NONPKGCONFIG_LIBS_value"
20666 xlib_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_NONPKGCONFIG_EXTRA_LIBS_value"
20667
20668
20669
20670   xlib_REQUIRES="x11 xext"
20671
20672 pkg_failed=no
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib" >&5
20674 $as_echo_n "checking for xlib... " >&6; }
20675
20676 if test -n "$xlib_CFLAGS"; then
20677     pkg_cv_xlib_CFLAGS="$xlib_CFLAGS"
20678  elif test -n "$PKG_CONFIG"; then
20679     if test -n "$PKG_CONFIG" && \
20680     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
20681   ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
20682   ac_status=$?
20683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20684   test $ac_status = 0; }; then
20685   pkg_cv_xlib_CFLAGS=`$PKG_CONFIG --cflags "$xlib_REQUIRES" 2>/dev/null`
20686 else
20687   pkg_failed=yes
20688 fi
20689  else
20690     pkg_failed=untried
20691 fi
20692 if test -n "$xlib_LIBS"; then
20693     pkg_cv_xlib_LIBS="$xlib_LIBS"
20694  elif test -n "$PKG_CONFIG"; then
20695     if test -n "$PKG_CONFIG" && \
20696     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
20697   ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
20698   ac_status=$?
20699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20700   test $ac_status = 0; }; then
20701   pkg_cv_xlib_LIBS=`$PKG_CONFIG --libs "$xlib_REQUIRES" 2>/dev/null`
20702 else
20703   pkg_failed=yes
20704 fi
20705  else
20706     pkg_failed=untried
20707 fi
20708
20709
20710
20711 if test $pkg_failed = yes; then
20712
20713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20714         _pkg_short_errors_supported=yes
20715 else
20716         _pkg_short_errors_supported=no
20717 fi
20718         if test $_pkg_short_errors_supported = yes; then
20719                 xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_REQUIRES" 2>&1`
20720         else
20721                 xlib_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_REQUIRES" 2>&1`
20722         fi
20723         # Put the nasty error message in config.log where it belongs
20724         echo "$xlib_PKG_ERRORS" >&5
20725
20726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20727 $as_echo "no" >&6; }
20728                 xlib_REQUIRES=""
20729                      if test "$no_x" = yes; then
20730   # Not all programs may use this symbol, but it does not hurt to define it.
20731
20732 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20733
20734   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20735 else
20736   if test -n "$x_includes"; then
20737     X_CFLAGS="$X_CFLAGS -I$x_includes"
20738   fi
20739
20740   # It would also be nice to do this for all -L options, not just this one.
20741   if test -n "$x_libraries"; then
20742     X_LIBS="$X_LIBS -L$x_libraries"
20743     # For Solaris; some versions of Sun CC require a space after -R and
20744     # others require no space.  Words are not sufficient . . . .
20745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20746 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20747     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20748     ac_xsave_c_werror_flag=$ac_c_werror_flag
20749     ac_c_werror_flag=yes
20750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h.  */
20752
20753 int
20754 main ()
20755 {
20756
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 if ac_fn_c_try_link "$LINENO"; then :
20762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20763 $as_echo "no" >&6; }
20764        X_LIBS="$X_LIBS -R$x_libraries"
20765 else
20766   LIBS="$ac_xsave_LIBS -R $x_libraries"
20767        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h.  */
20769
20770 int
20771 main ()
20772 {
20773
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 if ac_fn_c_try_link "$LINENO"; then :
20779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20780 $as_echo "yes" >&6; }
20781           X_LIBS="$X_LIBS -R $x_libraries"
20782 else
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20784 $as_echo "neither works" >&6; }
20785 fi
20786 rm -f core conftest.err conftest.$ac_objext \
20787     conftest$ac_exeext conftest.$ac_ext
20788 fi
20789 rm -f core conftest.err conftest.$ac_objext \
20790     conftest$ac_exeext conftest.$ac_ext
20791     ac_c_werror_flag=$ac_xsave_c_werror_flag
20792     LIBS=$ac_xsave_LIBS
20793   fi
20794
20795   # Check for system-dependent libraries X programs must link with.
20796   # Do this before checking for the system-independent R6 libraries
20797   # (-lICE), since we may need -lsocket or whatever for X linking.
20798
20799   if test "$ISC" = yes; then
20800     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20801   else
20802     # Martyn Johnson says this is needed for Ultrix, if the X
20803     # libraries were built with DECnet support.  And Karl Berry says
20804     # the Alpha needs dnet_stub (dnet does not exist).
20805     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h.  */
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810    Use char because int might match the return type of a GCC
20811    builtin and then its argument prototype would still apply.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char XOpenDisplay ();
20816 int
20817 main ()
20818 {
20819 return XOpenDisplay ();
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 if ac_fn_c_try_link "$LINENO"; then :
20825
20826 else
20827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20828 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20829 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20830   $as_echo_n "(cached) " >&6
20831 else
20832   ac_check_lib_save_LIBS=$LIBS
20833 LIBS="-ldnet  $LIBS"
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h.  */
20836
20837 /* Override any GCC internal prototype to avoid an error.
20838    Use char because int might match the return type of a GCC
20839    builtin and then its argument prototype would still apply.  */
20840 #ifdef __cplusplus
20841 extern "C"
20842 #endif
20843 char dnet_ntoa ();
20844 int
20845 main ()
20846 {
20847 return dnet_ntoa ();
20848   ;
20849   return 0;
20850 }
20851 _ACEOF
20852 if ac_fn_c_try_link "$LINENO"; then :
20853   ac_cv_lib_dnet_dnet_ntoa=yes
20854 else
20855   ac_cv_lib_dnet_dnet_ntoa=no
20856 fi
20857 rm -f core conftest.err conftest.$ac_objext \
20858     conftest$ac_exeext conftest.$ac_ext
20859 LIBS=$ac_check_lib_save_LIBS
20860 fi
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20862 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20863 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20864   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20865 fi
20866
20867     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20868       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20869 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20870 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20871   $as_echo_n "(cached) " >&6
20872 else
20873   ac_check_lib_save_LIBS=$LIBS
20874 LIBS="-ldnet_stub  $LIBS"
20875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h.  */
20877
20878 /* Override any GCC internal prototype to avoid an error.
20879    Use char because int might match the return type of a GCC
20880    builtin and then its argument prototype would still apply.  */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char dnet_ntoa ();
20885 int
20886 main ()
20887 {
20888 return dnet_ntoa ();
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 if ac_fn_c_try_link "$LINENO"; then :
20894   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20895 else
20896   ac_cv_lib_dnet_stub_dnet_ntoa=no
20897 fi
20898 rm -f core conftest.err conftest.$ac_objext \
20899     conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20901 fi
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20903 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20904 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20905   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20906 fi
20907
20908     fi
20909 fi
20910 rm -f core conftest.err conftest.$ac_objext \
20911     conftest$ac_exeext conftest.$ac_ext
20912     LIBS="$ac_xsave_LIBS"
20913
20914     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20915     # to get the SysV transport functions.
20916     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20917     # needs -lnsl.
20918     # The nsl library prevents programs from opening the X display
20919     # on Irix 5.2, according to T.E. Dickey.
20920     # The functions gethostbyname, getservbyname, and inet_addr are
20921     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20922     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20923 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20924
20925 fi
20926
20927     if test $ac_cv_func_gethostbyname = no; then
20928       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20929 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20930 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20931   $as_echo_n "(cached) " >&6
20932 else
20933   ac_check_lib_save_LIBS=$LIBS
20934 LIBS="-lnsl  $LIBS"
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h.  */
20937
20938 /* Override any GCC internal prototype to avoid an error.
20939    Use char because int might match the return type of a GCC
20940    builtin and then its argument prototype would still apply.  */
20941 #ifdef __cplusplus
20942 extern "C"
20943 #endif
20944 char gethostbyname ();
20945 int
20946 main ()
20947 {
20948 return gethostbyname ();
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 if ac_fn_c_try_link "$LINENO"; then :
20954   ac_cv_lib_nsl_gethostbyname=yes
20955 else
20956   ac_cv_lib_nsl_gethostbyname=no
20957 fi
20958 rm -f core conftest.err conftest.$ac_objext \
20959     conftest$ac_exeext conftest.$ac_ext
20960 LIBS=$ac_check_lib_save_LIBS
20961 fi
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20963 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20964 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20965   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20966 fi
20967
20968       if test $ac_cv_lib_nsl_gethostbyname = no; then
20969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20970 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20971 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20972   $as_echo_n "(cached) " >&6
20973 else
20974   ac_check_lib_save_LIBS=$LIBS
20975 LIBS="-lbsd  $LIBS"
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h.  */
20978
20979 /* Override any GCC internal prototype to avoid an error.
20980    Use char because int might match the return type of a GCC
20981    builtin and then its argument prototype would still apply.  */
20982 #ifdef __cplusplus
20983 extern "C"
20984 #endif
20985 char gethostbyname ();
20986 int
20987 main ()
20988 {
20989 return gethostbyname ();
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 if ac_fn_c_try_link "$LINENO"; then :
20995   ac_cv_lib_bsd_gethostbyname=yes
20996 else
20997   ac_cv_lib_bsd_gethostbyname=no
20998 fi
20999 rm -f core conftest.err conftest.$ac_objext \
21000     conftest$ac_exeext conftest.$ac_ext
21001 LIBS=$ac_check_lib_save_LIBS
21002 fi
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
21004 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
21005 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
21006   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21007 fi
21008
21009       fi
21010     fi
21011
21012     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21013     # socket/setsockopt and other routines are undefined under SCO ODT
21014     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21015     # on later versions), says Simon Leinen: it contains gethostby*
21016     # variants that don't use the name server (or something).  -lsocket
21017     # must be given before -lnsl if both are needed.  We assume that
21018     # if connect needs -lnsl, so does gethostbyname.
21019     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
21020 if test "x$ac_cv_func_connect" = xyes; then :
21021
21022 fi
21023
21024     if test $ac_cv_func_connect = no; then
21025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
21026 $as_echo_n "checking for connect in -lsocket... " >&6; }
21027 if ${ac_cv_lib_socket_connect+:} false; then :
21028   $as_echo_n "(cached) " >&6
21029 else
21030   ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033 /* end confdefs.h.  */
21034
21035 /* Override any GCC internal prototype to avoid an error.
21036    Use char because int might match the return type of a GCC
21037    builtin and then its argument prototype would still apply.  */
21038 #ifdef __cplusplus
21039 extern "C"
21040 #endif
21041 char connect ();
21042 int
21043 main ()
21044 {
21045 return connect ();
21046   ;
21047   return 0;
21048 }
21049 _ACEOF
21050 if ac_fn_c_try_link "$LINENO"; then :
21051   ac_cv_lib_socket_connect=yes
21052 else
21053   ac_cv_lib_socket_connect=no
21054 fi
21055 rm -f core conftest.err conftest.$ac_objext \
21056     conftest$ac_exeext conftest.$ac_ext
21057 LIBS=$ac_check_lib_save_LIBS
21058 fi
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
21060 $as_echo "$ac_cv_lib_socket_connect" >&6; }
21061 if test "x$ac_cv_lib_socket_connect" = xyes; then :
21062   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21063 fi
21064
21065     fi
21066
21067     # Guillermo Gomez says -lposix is necessary on A/UX.
21068     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
21069 if test "x$ac_cv_func_remove" = xyes; then :
21070
21071 fi
21072
21073     if test $ac_cv_func_remove = no; then
21074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
21075 $as_echo_n "checking for remove in -lposix... " >&6; }
21076 if ${ac_cv_lib_posix_remove+:} false; then :
21077   $as_echo_n "(cached) " >&6
21078 else
21079   ac_check_lib_save_LIBS=$LIBS
21080 LIBS="-lposix  $LIBS"
21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h.  */
21083
21084 /* Override any GCC internal prototype to avoid an error.
21085    Use char because int might match the return type of a GCC
21086    builtin and then its argument prototype would still apply.  */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 char remove ();
21091 int
21092 main ()
21093 {
21094 return remove ();
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100   ac_cv_lib_posix_remove=yes
21101 else
21102   ac_cv_lib_posix_remove=no
21103 fi
21104 rm -f core conftest.err conftest.$ac_objext \
21105     conftest$ac_exeext conftest.$ac_ext
21106 LIBS=$ac_check_lib_save_LIBS
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
21109 $as_echo "$ac_cv_lib_posix_remove" >&6; }
21110 if test "x$ac_cv_lib_posix_remove" = xyes; then :
21111   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21112 fi
21113
21114     fi
21115
21116     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21117     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
21118 if test "x$ac_cv_func_shmat" = xyes; then :
21119
21120 fi
21121
21122     if test $ac_cv_func_shmat = no; then
21123       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
21124 $as_echo_n "checking for shmat in -lipc... " >&6; }
21125 if ${ac_cv_lib_ipc_shmat+:} false; then :
21126   $as_echo_n "(cached) " >&6
21127 else
21128   ac_check_lib_save_LIBS=$LIBS
21129 LIBS="-lipc  $LIBS"
21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h.  */
21132
21133 /* Override any GCC internal prototype to avoid an error.
21134    Use char because int might match the return type of a GCC
21135    builtin and then its argument prototype would still apply.  */
21136 #ifdef __cplusplus
21137 extern "C"
21138 #endif
21139 char shmat ();
21140 int
21141 main ()
21142 {
21143 return shmat ();
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 if ac_fn_c_try_link "$LINENO"; then :
21149   ac_cv_lib_ipc_shmat=yes
21150 else
21151   ac_cv_lib_ipc_shmat=no
21152 fi
21153 rm -f core conftest.err conftest.$ac_objext \
21154     conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21156 fi
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
21158 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
21159 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
21160   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21161 fi
21162
21163     fi
21164   fi
21165
21166   # Check for libraries that X11R6 Xt/Xaw programs need.
21167   ac_save_LDFLAGS=$LDFLAGS
21168   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21169   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21170   # check for ICE first), but we must link in the order -lSM -lICE or
21171   # we get undefined symbols.  So assume we have SM if we have ICE.
21172   # These have to be linked with before -lX11, unlike the other
21173   # libraries we check for below, so use a different variable.
21174   # John Interrante, Karl Berry
21175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
21176 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
21177 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
21178   $as_echo_n "(cached) " >&6
21179 else
21180   ac_check_lib_save_LIBS=$LIBS
21181 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h.  */
21184
21185 /* Override any GCC internal prototype to avoid an error.
21186    Use char because int might match the return type of a GCC
21187    builtin and then its argument prototype would still apply.  */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char IceConnectionNumber ();
21192 int
21193 main ()
21194 {
21195 return IceConnectionNumber ();
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 if ac_fn_c_try_link "$LINENO"; then :
21201   ac_cv_lib_ICE_IceConnectionNumber=yes
21202 else
21203   ac_cv_lib_ICE_IceConnectionNumber=no
21204 fi
21205 rm -f core conftest.err conftest.$ac_objext \
21206     conftest$ac_exeext conftest.$ac_ext
21207 LIBS=$ac_check_lib_save_LIBS
21208 fi
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21210 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21211 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
21212   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21213 fi
21214
21215   LDFLAGS=$ac_save_LDFLAGS
21216
21217 fi
21218
21219                      if test "x$no_x" = xyes; then
21220                        use_xlib="no (requires X development libraries)"
21221                      else
21222                        xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
21223                        xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
21224                      fi
21225 elif test $pkg_failed = untried; then
21226         xlib_REQUIRES=""
21227                      if test "$no_x" = yes; then
21228   # Not all programs may use this symbol, but it does not hurt to define it.
21229
21230 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
21231
21232   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21233 else
21234   if test -n "$x_includes"; then
21235     X_CFLAGS="$X_CFLAGS -I$x_includes"
21236   fi
21237
21238   # It would also be nice to do this for all -L options, not just this one.
21239   if test -n "$x_libraries"; then
21240     X_LIBS="$X_LIBS -L$x_libraries"
21241     # For Solaris; some versions of Sun CC require a space after -R and
21242     # others require no space.  Words are not sufficient . . . .
21243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
21244 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
21245     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21246     ac_xsave_c_werror_flag=$ac_c_werror_flag
21247     ac_c_werror_flag=yes
21248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h.  */
21250
21251 int
21252 main ()
21253 {
21254
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 if ac_fn_c_try_link "$LINENO"; then :
21260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21261 $as_echo "no" >&6; }
21262        X_LIBS="$X_LIBS -R$x_libraries"
21263 else
21264   LIBS="$ac_xsave_LIBS -R $x_libraries"
21265        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h.  */
21267
21268 int
21269 main ()
21270 {
21271
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 if ac_fn_c_try_link "$LINENO"; then :
21277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21278 $as_echo "yes" >&6; }
21279           X_LIBS="$X_LIBS -R $x_libraries"
21280 else
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
21282 $as_echo "neither works" >&6; }
21283 fi
21284 rm -f core conftest.err conftest.$ac_objext \
21285     conftest$ac_exeext conftest.$ac_ext
21286 fi
21287 rm -f core conftest.err conftest.$ac_objext \
21288     conftest$ac_exeext conftest.$ac_ext
21289     ac_c_werror_flag=$ac_xsave_c_werror_flag
21290     LIBS=$ac_xsave_LIBS
21291   fi
21292
21293   # Check for system-dependent libraries X programs must link with.
21294   # Do this before checking for the system-independent R6 libraries
21295   # (-lICE), since we may need -lsocket or whatever for X linking.
21296
21297   if test "$ISC" = yes; then
21298     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21299   else
21300     # Martyn Johnson says this is needed for Ultrix, if the X
21301     # libraries were built with DECnet support.  And Karl Berry says
21302     # the Alpha needs dnet_stub (dnet does not exist).
21303     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h.  */
21306
21307 /* Override any GCC internal prototype to avoid an error.
21308    Use char because int might match the return type of a GCC
21309    builtin and then its argument prototype would still apply.  */
21310 #ifdef __cplusplus
21311 extern "C"
21312 #endif
21313 char XOpenDisplay ();
21314 int
21315 main ()
21316 {
21317 return XOpenDisplay ();
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 if ac_fn_c_try_link "$LINENO"; then :
21323
21324 else
21325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
21326 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
21327 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
21328   $as_echo_n "(cached) " >&6
21329 else
21330   ac_check_lib_save_LIBS=$LIBS
21331 LIBS="-ldnet  $LIBS"
21332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21333 /* end confdefs.h.  */
21334
21335 /* Override any GCC internal prototype to avoid an error.
21336    Use char because int might match the return type of a GCC
21337    builtin and then its argument prototype would still apply.  */
21338 #ifdef __cplusplus
21339 extern "C"
21340 #endif
21341 char dnet_ntoa ();
21342 int
21343 main ()
21344 {
21345 return dnet_ntoa ();
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 if ac_fn_c_try_link "$LINENO"; then :
21351   ac_cv_lib_dnet_dnet_ntoa=yes
21352 else
21353   ac_cv_lib_dnet_dnet_ntoa=no
21354 fi
21355 rm -f core conftest.err conftest.$ac_objext \
21356     conftest$ac_exeext conftest.$ac_ext
21357 LIBS=$ac_check_lib_save_LIBS
21358 fi
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21360 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
21361 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
21362   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21363 fi
21364
21365     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
21367 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
21368 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
21369   $as_echo_n "(cached) " >&6
21370 else
21371   ac_check_lib_save_LIBS=$LIBS
21372 LIBS="-ldnet_stub  $LIBS"
21373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374 /* end confdefs.h.  */
21375
21376 /* Override any GCC internal prototype to avoid an error.
21377    Use char because int might match the return type of a GCC
21378    builtin and then its argument prototype would still apply.  */
21379 #ifdef __cplusplus
21380 extern "C"
21381 #endif
21382 char dnet_ntoa ();
21383 int
21384 main ()
21385 {
21386 return dnet_ntoa ();
21387   ;
21388   return 0;
21389 }
21390 _ACEOF
21391 if ac_fn_c_try_link "$LINENO"; then :
21392   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21393 else
21394   ac_cv_lib_dnet_stub_dnet_ntoa=no
21395 fi
21396 rm -f core conftest.err conftest.$ac_objext \
21397     conftest$ac_exeext conftest.$ac_ext
21398 LIBS=$ac_check_lib_save_LIBS
21399 fi
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21401 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
21402 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
21403   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21404 fi
21405
21406     fi
21407 fi
21408 rm -f core conftest.err conftest.$ac_objext \
21409     conftest$ac_exeext conftest.$ac_ext
21410     LIBS="$ac_xsave_LIBS"
21411
21412     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21413     # to get the SysV transport functions.
21414     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21415     # needs -lnsl.
21416     # The nsl library prevents programs from opening the X display
21417     # on Irix 5.2, according to T.E. Dickey.
21418     # The functions gethostbyname, getservbyname, and inet_addr are
21419     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21420     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
21421 if test "x$ac_cv_func_gethostbyname" = xyes; then :
21422
21423 fi
21424
21425     if test $ac_cv_func_gethostbyname = no; then
21426       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
21427 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
21428 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
21429   $as_echo_n "(cached) " >&6
21430 else
21431   ac_check_lib_save_LIBS=$LIBS
21432 LIBS="-lnsl  $LIBS"
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h.  */
21435
21436 /* Override any GCC internal prototype to avoid an error.
21437    Use char because int might match the return type of a GCC
21438    builtin and then its argument prototype would still apply.  */
21439 #ifdef __cplusplus
21440 extern "C"
21441 #endif
21442 char gethostbyname ();
21443 int
21444 main ()
21445 {
21446 return gethostbyname ();
21447   ;
21448   return 0;
21449 }
21450 _ACEOF
21451 if ac_fn_c_try_link "$LINENO"; then :
21452   ac_cv_lib_nsl_gethostbyname=yes
21453 else
21454   ac_cv_lib_nsl_gethostbyname=no
21455 fi
21456 rm -f core conftest.err conftest.$ac_objext \
21457     conftest$ac_exeext conftest.$ac_ext
21458 LIBS=$ac_check_lib_save_LIBS
21459 fi
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
21461 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
21462 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
21463   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21464 fi
21465
21466       if test $ac_cv_lib_nsl_gethostbyname = no; then
21467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
21468 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
21469 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
21470   $as_echo_n "(cached) " >&6
21471 else
21472   ac_check_lib_save_LIBS=$LIBS
21473 LIBS="-lbsd  $LIBS"
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h.  */
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478    Use char because int might match the return type of a GCC
21479    builtin and then its argument prototype would still apply.  */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char gethostbyname ();
21484 int
21485 main ()
21486 {
21487 return gethostbyname ();
21488   ;
21489   return 0;
21490 }
21491 _ACEOF
21492 if ac_fn_c_try_link "$LINENO"; then :
21493   ac_cv_lib_bsd_gethostbyname=yes
21494 else
21495   ac_cv_lib_bsd_gethostbyname=no
21496 fi
21497 rm -f core conftest.err conftest.$ac_objext \
21498     conftest$ac_exeext conftest.$ac_ext
21499 LIBS=$ac_check_lib_save_LIBS
21500 fi
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
21502 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
21503 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
21504   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21505 fi
21506
21507       fi
21508     fi
21509
21510     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21511     # socket/setsockopt and other routines are undefined under SCO ODT
21512     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21513     # on later versions), says Simon Leinen: it contains gethostby*
21514     # variants that don't use the name server (or something).  -lsocket
21515     # must be given before -lnsl if both are needed.  We assume that
21516     # if connect needs -lnsl, so does gethostbyname.
21517     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
21518 if test "x$ac_cv_func_connect" = xyes; then :
21519
21520 fi
21521
21522     if test $ac_cv_func_connect = no; then
21523       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
21524 $as_echo_n "checking for connect in -lsocket... " >&6; }
21525 if ${ac_cv_lib_socket_connect+:} false; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   ac_check_lib_save_LIBS=$LIBS
21529 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h.  */
21532
21533 /* Override any GCC internal prototype to avoid an error.
21534    Use char because int might match the return type of a GCC
21535    builtin and then its argument prototype would still apply.  */
21536 #ifdef __cplusplus
21537 extern "C"
21538 #endif
21539 char connect ();
21540 int
21541 main ()
21542 {
21543 return connect ();
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 if ac_fn_c_try_link "$LINENO"; then :
21549   ac_cv_lib_socket_connect=yes
21550 else
21551   ac_cv_lib_socket_connect=no
21552 fi
21553 rm -f core conftest.err conftest.$ac_objext \
21554     conftest$ac_exeext conftest.$ac_ext
21555 LIBS=$ac_check_lib_save_LIBS
21556 fi
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
21558 $as_echo "$ac_cv_lib_socket_connect" >&6; }
21559 if test "x$ac_cv_lib_socket_connect" = xyes; then :
21560   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21561 fi
21562
21563     fi
21564
21565     # Guillermo Gomez says -lposix is necessary on A/UX.
21566     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
21567 if test "x$ac_cv_func_remove" = xyes; then :
21568
21569 fi
21570
21571     if test $ac_cv_func_remove = no; then
21572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
21573 $as_echo_n "checking for remove in -lposix... " >&6; }
21574 if ${ac_cv_lib_posix_remove+:} false; then :
21575   $as_echo_n "(cached) " >&6
21576 else
21577   ac_check_lib_save_LIBS=$LIBS
21578 LIBS="-lposix  $LIBS"
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h.  */
21581
21582 /* Override any GCC internal prototype to avoid an error.
21583    Use char because int might match the return type of a GCC
21584    builtin and then its argument prototype would still apply.  */
21585 #ifdef __cplusplus
21586 extern "C"
21587 #endif
21588 char remove ();
21589 int
21590 main ()
21591 {
21592 return remove ();
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 if ac_fn_c_try_link "$LINENO"; then :
21598   ac_cv_lib_posix_remove=yes
21599 else
21600   ac_cv_lib_posix_remove=no
21601 fi
21602 rm -f core conftest.err conftest.$ac_objext \
21603     conftest$ac_exeext conftest.$ac_ext
21604 LIBS=$ac_check_lib_save_LIBS
21605 fi
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
21607 $as_echo "$ac_cv_lib_posix_remove" >&6; }
21608 if test "x$ac_cv_lib_posix_remove" = xyes; then :
21609   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21610 fi
21611
21612     fi
21613
21614     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21615     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
21616 if test "x$ac_cv_func_shmat" = xyes; then :
21617
21618 fi
21619
21620     if test $ac_cv_func_shmat = no; then
21621       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
21622 $as_echo_n "checking for shmat in -lipc... " >&6; }
21623 if ${ac_cv_lib_ipc_shmat+:} false; then :
21624   $as_echo_n "(cached) " >&6
21625 else
21626   ac_check_lib_save_LIBS=$LIBS
21627 LIBS="-lipc  $LIBS"
21628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21629 /* end confdefs.h.  */
21630
21631 /* Override any GCC internal prototype to avoid an error.
21632    Use char because int might match the return type of a GCC
21633    builtin and then its argument prototype would still apply.  */
21634 #ifdef __cplusplus
21635 extern "C"
21636 #endif
21637 char shmat ();
21638 int
21639 main ()
21640 {
21641 return shmat ();
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 if ac_fn_c_try_link "$LINENO"; then :
21647   ac_cv_lib_ipc_shmat=yes
21648 else
21649   ac_cv_lib_ipc_shmat=no
21650 fi
21651 rm -f core conftest.err conftest.$ac_objext \
21652     conftest$ac_exeext conftest.$ac_ext
21653 LIBS=$ac_check_lib_save_LIBS
21654 fi
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
21656 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
21657 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
21658   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21659 fi
21660
21661     fi
21662   fi
21663
21664   # Check for libraries that X11R6 Xt/Xaw programs need.
21665   ac_save_LDFLAGS=$LDFLAGS
21666   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21667   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21668   # check for ICE first), but we must link in the order -lSM -lICE or
21669   # we get undefined symbols.  So assume we have SM if we have ICE.
21670   # These have to be linked with before -lX11, unlike the other
21671   # libraries we check for below, so use a different variable.
21672   # John Interrante, Karl Berry
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
21674 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
21675 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
21676   $as_echo_n "(cached) " >&6
21677 else
21678   ac_check_lib_save_LIBS=$LIBS
21679 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21681 /* end confdefs.h.  */
21682
21683 /* Override any GCC internal prototype to avoid an error.
21684    Use char because int might match the return type of a GCC
21685    builtin and then its argument prototype would still apply.  */
21686 #ifdef __cplusplus
21687 extern "C"
21688 #endif
21689 char IceConnectionNumber ();
21690 int
21691 main ()
21692 {
21693 return IceConnectionNumber ();
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 if ac_fn_c_try_link "$LINENO"; then :
21699   ac_cv_lib_ICE_IceConnectionNumber=yes
21700 else
21701   ac_cv_lib_ICE_IceConnectionNumber=no
21702 fi
21703 rm -f core conftest.err conftest.$ac_objext \
21704     conftest$ac_exeext conftest.$ac_ext
21705 LIBS=$ac_check_lib_save_LIBS
21706 fi
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21708 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21709 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
21710   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21711 fi
21712
21713   LDFLAGS=$ac_save_LDFLAGS
21714
21715 fi
21716
21717                      if test "x$no_x" = xyes; then
21718                        use_xlib="no (requires X development libraries)"
21719                      else
21720                        xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
21721                        xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
21722                      fi
21723 else
21724         xlib_CFLAGS=$pkg_cv_xlib_CFLAGS
21725         xlib_LIBS=$pkg_cv_xlib_LIBS
21726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21727 $as_echo "yes" >&6; }
21728         :
21729 fi
21730
21731   ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
21732 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
21733
21734 fi
21735
21736
21737   ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
21738 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
21739
21740 fi
21741
21742
21743
21744   if test "$ac_cv_header_sys_ipc_h" = "yes" -a "$ac_cv_header_sys_shm_h" = "yes"; then
21745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5
21746 $as_echo_n "checking whether shmctl IPC_RMID allowes subsequent attaches... " >&6; }
21747       if test "$cross_compiling" = yes; then :
21748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
21749 $as_echo "assuming no" >&6; }
21750 else
21751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h.  */
21753
21754                   #include <sys/types.h>
21755                   #include <sys/ipc.h>
21756                   #include <sys/shm.h>
21757                   int main()
21758                   {
21759                       char *shmaddr;
21760                       int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
21761                       if (id == -1) return 2;
21762                       shmaddr = shmat (id, 0, 0);
21763                       shmctl (id, IPC_RMID, 0);
21764                       if ((char*) shmat (id, 0, 0) == (char*) -1) {
21765                           shmdt (shmaddr);
21766                           return 1;
21767                       }
21768                       shmdt (shmaddr);
21769                       shmdt (shmaddr);
21770                       return 0;
21771                   }
21772
21773 _ACEOF
21774 if ac_fn_c_try_run "$LINENO"; then :
21775
21776 $as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h
21777
21778                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21779 $as_echo "yes" >&6; }
21780 else
21781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21782 $as_echo "no" >&6; }
21783 fi
21784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21785   conftest.$ac_objext conftest.beam conftest.$ac_ext
21786 fi
21787
21788       fi
21789
21790       for ac_header in X11/extensions/XShm.h X11/extensions/shmproto.h X11/extensions/shmstr.h
21791 do :
21792   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlibint.h>
21794                         #include <X11/Xproto.h>
21795 "
21796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21797   cat >>confdefs.h <<_ACEOF
21798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21799 _ACEOF
21800
21801 fi
21802
21803 done
21804
21805
21806
21807                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib surface backend feature could be enabled" >&5
21808 $as_echo_n "checking whether cairo's Xlib surface backend feature could be enabled... " >&6; }
21809                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib" >&5
21810 $as_echo "$use_xlib" >&6; }
21811
21812                 if test "x$enable_xlib" = "xyes" -a "x$use_xlib" != xyes; then :
21813                         as_fn_error $? " Xlib surface backend feature could not be enabled" "$LINENO" 5
21814
21815 fi       ;; #(
21816   *) :
21817                         as_fn_error $? "invalid argument passed to --enable-xlib: \`$use_xlib', should be one of [no/auto/yes]" "$LINENO" 5
21818          ;;
21819 esac
21820         if test "x$use_xlib" = "xyes"; then :
21821                                                                                 CAIRO_REQUIRES="$xlib_REQUIRES"" ${CAIRO_REQUIRES}"
21822
21823                                                                         CAIRO_CFLAGS="$xlib_CFLAGS"" ${CAIRO_CFLAGS}"
21824
21825                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
21826
21827                                                                         CAIRO_LIBS="$xlib_LIBS"" ${CAIRO_LIBS}"
21828
21829                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
21830
21831
21832 else
21833                                         unset xlib_BASE
21834 unset xlib_REQUIRES
21835 unset xlib_CFLAGS
21836 unset xlib_NONPKGCONFIG_CFLAGS
21837 unset xlib_LIBS
21838 unset xlib_NONPKGCONFIG_LIBS
21839 unset xlib_NONPKGCONFIG_EXTRA_LIBS
21840
21841
21842 fi
21843
21844                                                          if test "x$use_xlib" = xyes; then
21845   CAIRO_HAS_XLIB_SURFACE_TRUE=
21846   CAIRO_HAS_XLIB_SURFACE_FALSE='#'
21847 else
21848   CAIRO_HAS_XLIB_SURFACE_TRUE='#'
21849   CAIRO_HAS_XLIB_SURFACE_FALSE=
21850 fi
21851
21852
21853                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_SURFACE=0'
21854                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
21855 ""$cr_make_tmp"
21856
21857
21858                                                                                 cr_make_tmp=''
21859                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21860 ""$cr_make_tmp"
21861
21862                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21863 ""$cr_make_tmp"
21864                                                                                 cr_make_tmp=''
21865                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21866 ""$cr_make_tmp"
21867
21868                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21869 ""$cr_make_tmp"
21870
21871
21872                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xlib_headers)'
21873                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21874 ""$cr_make_tmp"
21875
21876                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21877 ""$cr_make_tmp"
21878                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)'
21879                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21880 ""$cr_make_tmp"
21881
21882                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21883 ""$cr_make_tmp"
21884
21885
21886
21887                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_headers)
21888 all_cairo_private += $(cairo_xlib_private)
21889 all_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
21890 all_cairo_sources += $(cairo_xlib_sources)'
21891                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21892 ""$cr_make_tmp"
21893
21894                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21895 ""$cr_make_tmp"
21896                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
21897 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
21898 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
21899 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
21900                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21901 ""$cr_make_tmp"
21902
21903                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21904 ""$cr_make_tmp"
21905
21906
21907                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_headers)
21908 enabled_cairo_private += $(cairo_xlib_private)
21909 enabled_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
21910 enabled_cairo_sources += $(cairo_xlib_sources)'
21911                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21912 "'if CAIRO_HAS_XLIB_SURFACE'
21913                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21914 ""$cr_make_tmp"
21915                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21916 "'endif'
21917
21918                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21919 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
21920                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21921 ""$cr_make_tmp"
21922                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21923 "'endif'
21924                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
21925 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
21926 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
21927 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
21928                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21929 "'if CAIRO_HAS_XLIB_SURFACE'
21930                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21931 ""$cr_make_tmp"
21932                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21933 "'endif'
21934
21935                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21936 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
21937                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21938 ""$cr_make_tmp"
21939                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21940 "'endif'
21941
21942
21943
21944
21945                                         if test "x$use_xlib" = xyes; then :
21946   :
21947                 ac_config_files="$ac_config_files src/cairo-xlib.pc:src/cairo-features.pc.in"
21948
21949
21950 fi
21951                                         if test "x$use_xlib" = xyes; then :
21952   :
21953                 ac_config_files="$ac_config_files cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
21954
21955
21956 fi
21957                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib.pc'
21958                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21959 ""$cr_make_tmp"
21960
21961                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21962 ""$cr_make_tmp"
21963
21964
21965                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib.pc'
21966                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21967 "'if CAIRO_HAS_XLIB_SURFACE'
21968                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21969 ""$cr_make_tmp"
21970                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21971 "'endif'
21972
21973                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21974 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
21975                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21976 ""$cr_make_tmp"
21977                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21978 "'endif'
21979
21980
21981                                         if test "x$use_xlib" = xyes; then :
21982   :
21983                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
21984
21985
21986 fi
21987                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
21988
21989
21990
21991                                         if test "x$use_xlib" != xyes; then :
21992   :
21993                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
21994
21995
21996
21997 fi
21998
21999                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
22000                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22001 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
22002                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22003 ""$cr_make_tmp"
22004                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22005 "'endif'
22006
22007
22008
22009
22010                                         if test "x$use_xlib" = xyes; then :
22011   :
22012                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib'
22013
22014
22015
22016 fi
22017
22018
22019
22020                                                                                                                                 # Check whether --enable-xlib-xrender was given.
22021 if test "${enable_xlib_xrender+set}" = set; then :
22022   enableval=$enable_xlib_xrender; enable_xlib_xrender=$enableval
22023 else
22024   enable_xlib_xrender=auto
22025 fi
22026
22027                         case $enable_xlib_xrender in #(
22028   no) :
22029                 use_xlib_xrender="no (disabled, use --enable-xlib-xrender to enable)"
22030          ;; #(
22031         yes|auto) :
22032                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib Xrender surface backend feature" >&5
22033 $as_echo_n "checking for cairo's Xlib Xrender surface backend feature... " >&6; }
22034                 echo
22035
22036                 use_xlib_xrender=yes
22037                         xlib_xrender_BASE="cairo"
22038 xlib_xrender_REQUIRES="$ac_env_xlib_xrender_REQUIRES_value"
22039 xlib_xrender_CFLAGS="$ac_env_xlib_xrender_CFLAGS_value"
22040 xlib_xrender_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xrender_NONPKGCONFIG_CFLAGS_value"
22041 xlib_xrender_LIBS="$ac_env_xlib_xrender_LIBS_value"
22042 xlib_xrender_NONPKGCONFIG_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_LIBS_value"
22043 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_EXTRA_LIBS_value"
22044
22045
22046
22047   if test "x$use_xlib" != "xyes"; then
22048     use_xlib_xrender="no (requires --enable-xlib)"
22049   else
22050         xlib_xrender_BASE=cairo-xlib
22051     xlib_xrender_REQUIRES="xrender >= 0.6"
22052
22053 pkg_failed=no
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xrender" >&5
22055 $as_echo_n "checking for xlib_xrender... " >&6; }
22056
22057 if test -n "$xlib_xrender_CFLAGS"; then
22058     pkg_cv_xlib_xrender_CFLAGS="$xlib_xrender_CFLAGS"
22059  elif test -n "$PKG_CONFIG"; then
22060     if test -n "$PKG_CONFIG" && \
22061     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
22062   ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
22063   ac_status=$?
22064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22065   test $ac_status = 0; }; then
22066   pkg_cv_xlib_xrender_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xrender_REQUIRES" 2>/dev/null`
22067 else
22068   pkg_failed=yes
22069 fi
22070  else
22071     pkg_failed=untried
22072 fi
22073 if test -n "$xlib_xrender_LIBS"; then
22074     pkg_cv_xlib_xrender_LIBS="$xlib_xrender_LIBS"
22075  elif test -n "$PKG_CONFIG"; then
22076     if test -n "$PKG_CONFIG" && \
22077     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
22078   ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
22079   ac_status=$?
22080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081   test $ac_status = 0; }; then
22082   pkg_cv_xlib_xrender_LIBS=`$PKG_CONFIG --libs "$xlib_xrender_REQUIRES" 2>/dev/null`
22083 else
22084   pkg_failed=yes
22085 fi
22086  else
22087     pkg_failed=untried
22088 fi
22089
22090
22091
22092 if test $pkg_failed = yes; then
22093
22094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22095         _pkg_short_errors_supported=yes
22096 else
22097         _pkg_short_errors_supported=no
22098 fi
22099         if test $_pkg_short_errors_supported = yes; then
22100                 xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xrender_REQUIRES" 2>&1`
22101         else
22102                 xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xrender_REQUIRES" 2>&1`
22103         fi
22104         # Put the nasty error message in config.log where it belongs
22105         echo "$xlib_xrender_PKG_ERRORS" >&5
22106
22107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22108 $as_echo "no" >&6; }
22109                 xlib_xrender_REQUIRES=""
22110                        old_CPPFLAGS=$CPPFLAGS
22111                        CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
22112                        ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/X.h>
22113 "
22114 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
22115   xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
22116 else
22117   use_xlib_xrender="no (requires $xlib_xrender_REQUIRES http://freedesktop.org/Software/xlibs)"
22118 fi
22119
22120
22121                        CPPFLAGS=$old_CPPFLAGS
22122
22123 elif test $pkg_failed = untried; then
22124         xlib_xrender_REQUIRES=""
22125                        old_CPPFLAGS=$CPPFLAGS
22126                        CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
22127                        ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/X.h>
22128 "
22129 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
22130   xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
22131 else
22132   use_xlib_xrender="no (requires $xlib_xrender_REQUIRES http://freedesktop.org/Software/xlibs)"
22133 fi
22134
22135
22136                        CPPFLAGS=$old_CPPFLAGS
22137
22138 else
22139         xlib_xrender_CFLAGS=$pkg_cv_xlib_xrender_CFLAGS
22140         xlib_xrender_LIBS=$pkg_cv_xlib_xrender_LIBS
22141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22142 $as_echo "yes" >&6; }
22143         :
22144 fi
22145
22146     old_CFLAGS=$CFLAGS
22147     old_LIBS=$LIBS
22148     CFLAGS="$CFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS $xlib_xrender_CFLAGS $xlib_xrender_NONPKGCONFIG_CFLAGS"
22149     LIBS="$LIBS $xlib_LIBS $xlib_NONPKGCONFIG_LIBS $xlib_xrender_LIBS $xlib_xrender_NONPKGCONFIG_LIBS"
22150     for ac_func in XRenderCreateLinearGradient XRenderCreateRadialGradient XRenderCreateConicalGradient
22151 do :
22152   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22153 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22154 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22155   cat >>confdefs.h <<_ACEOF
22156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22157 _ACEOF
22158
22159 fi
22160 done
22161
22162     CFLAGS=$old_CFLAGS
22163     LIBS=$old_LIBS
22164
22165   fi
22166
22167
22168                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib Xrender surface backend feature could be enabled" >&5
22169 $as_echo_n "checking whether cairo's Xlib Xrender surface backend feature could be enabled... " >&6; }
22170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xrender" >&5
22171 $as_echo "$use_xlib_xrender" >&6; }
22172
22173                 if test "x$enable_xlib_xrender" = "xyes" -a "x$use_xlib_xrender" != xyes; then :
22174                         as_fn_error $? " Xlib Xrender surface backend feature could not be enabled" "$LINENO" 5
22175
22176 fi       ;; #(
22177   *) :
22178                         as_fn_error $? "invalid argument passed to --enable-xlib-xrender: \`$use_xlib_xrender', should be one of [no/auto/yes]" "$LINENO" 5
22179          ;;
22180 esac
22181         if test "x$use_xlib_xrender" = "xyes"; then :
22182                                                                                 CAIRO_REQUIRES="$xlib_xrender_REQUIRES"" ${CAIRO_REQUIRES}"
22183
22184                                                                         CAIRO_CFLAGS="$xlib_xrender_CFLAGS"" ${CAIRO_CFLAGS}"
22185
22186                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xrender_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22187
22188                                                                         CAIRO_LIBS="$xlib_xrender_LIBS"" ${CAIRO_LIBS}"
22189
22190                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_xrender_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22191
22192
22193 else
22194                                         unset xlib_xrender_BASE
22195 unset xlib_xrender_REQUIRES
22196 unset xlib_xrender_CFLAGS
22197 unset xlib_xrender_NONPKGCONFIG_CFLAGS
22198 unset xlib_xrender_LIBS
22199 unset xlib_xrender_NONPKGCONFIG_LIBS
22200 unset xlib_xrender_NONPKGCONFIG_EXTRA_LIBS
22201
22202
22203 fi
22204
22205                                                          if test "x$use_xlib_xrender" = xyes; then
22206   CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE=
22207   CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE='#'
22208 else
22209   CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE='#'
22210   CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE=
22211 fi
22212
22213
22214                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_XRENDER_SURFACE=0'
22215                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22216 ""$cr_make_tmp"
22217
22218
22219                                                                                 cr_make_tmp=''
22220                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22221 ""$cr_make_tmp"
22222
22223                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22224 ""$cr_make_tmp"
22225                                                                                 cr_make_tmp=''
22226                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22227 ""$cr_make_tmp"
22228
22229                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22230 ""$cr_make_tmp"
22231
22232
22233                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xlib_xrender_headers)'
22234                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22235 ""$cr_make_tmp"
22236
22237                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22238 ""$cr_make_tmp"
22239                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)'
22240                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22241 ""$cr_make_tmp"
22242
22243                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22244 ""$cr_make_tmp"
22245
22246
22247
22248                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_xrender_headers)
22249 all_cairo_private += $(cairo_xlib_xrender_private)
22250 all_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
22251 all_cairo_sources += $(cairo_xlib_xrender_sources)'
22252                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22253 ""$cr_make_tmp"
22254
22255                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22256 ""$cr_make_tmp"
22257                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
22258 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
22259 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
22260 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
22261                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22262 ""$cr_make_tmp"
22263
22264                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22265 ""$cr_make_tmp"
22266
22267
22268                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xrender_headers)
22269 enabled_cairo_private += $(cairo_xlib_xrender_private)
22270 enabled_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
22271 enabled_cairo_sources += $(cairo_xlib_xrender_sources)'
22272                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22273 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
22274                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22275 ""$cr_make_tmp"
22276                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22277 "'endif'
22278
22279                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22280 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
22281                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22282 ""$cr_make_tmp"
22283                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22284 "'endif'
22285                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
22286 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
22287 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
22288 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
22289                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22290 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
22291                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22292 ""$cr_make_tmp"
22293                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22294 "'endif'
22295
22296                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22297 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
22298                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22299 ""$cr_make_tmp"
22300                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22301 "'endif'
22302
22303
22304
22305
22306                                         if test "x$use_xlib_xrender" = xyes; then :
22307   :
22308                 ac_config_files="$ac_config_files src/cairo-xlib-xrender.pc:src/cairo-features.pc.in"
22309
22310
22311 fi
22312                                         if test "x$use_xlib_xrender" = xyes; then :
22313   :
22314                 ac_config_files="$ac_config_files cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22315
22316
22317 fi
22318                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xrender.pc'
22319                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22320 ""$cr_make_tmp"
22321
22322                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22323 ""$cr_make_tmp"
22324
22325
22326                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xrender.pc'
22327                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22328 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
22329                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22330 ""$cr_make_tmp"
22331                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22332 "'endif'
22333
22334                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22335 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
22336                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22337 ""$cr_make_tmp"
22338                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22339 "'endif'
22340
22341
22342                                         if test "x$use_xlib_xrender" = xyes; then :
22343   :
22344                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
22345
22346
22347 fi
22348                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
22349
22350
22351
22352                                         if test "x$use_xlib_xrender" != xyes; then :
22353   :
22354                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
22355
22356
22357
22358 fi
22359
22360                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
22361                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22362 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
22363                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22364 ""$cr_make_tmp"
22365                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22366 "'endif'
22367
22368
22369
22370
22371                                         if test "x$use_xlib_xrender" = xyes; then :
22372   :
22373                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib_xrender'
22374
22375
22376
22377 fi
22378
22379
22380
22381
22382                                                                                                                                 # Check whether --enable-xcb was given.
22383 if test "${enable_xcb+set}" = set; then :
22384   enableval=$enable_xcb; enable_xcb=$enableval
22385 else
22386   enable_xcb=auto
22387 fi
22388
22389                         case $enable_xcb in #(
22390   no) :
22391                 use_xcb="no (disabled, use --enable-xcb to enable)"
22392          ;; #(
22393         yes|auto) :
22394                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB surface backend feature" >&5
22395 $as_echo_n "checking for cairo's XCB surface backend feature... " >&6; }
22396                 echo
22397
22398                 use_xcb=yes
22399                         xcb_BASE="cairo"
22400 xcb_REQUIRES="$ac_env_xcb_REQUIRES_value"
22401 xcb_CFLAGS="$ac_env_xcb_CFLAGS_value"
22402 xcb_NONPKGCONFIG_CFLAGS="$ac_env_xcb_NONPKGCONFIG_CFLAGS_value"
22403 xcb_LIBS="$ac_env_xcb_LIBS_value"
22404 xcb_NONPKGCONFIG_LIBS="$ac_env_xcb_NONPKGCONFIG_LIBS_value"
22405 xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
22406
22407
22408
22409   xcb_REQUIRES="xcb >= 1.6 xcb-render >= 1.6"
22410
22411 pkg_failed=no
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb" >&5
22413 $as_echo_n "checking for xcb... " >&6; }
22414
22415 if test -n "$xcb_CFLAGS"; then
22416     pkg_cv_xcb_CFLAGS="$xcb_CFLAGS"
22417  elif test -n "$PKG_CONFIG"; then
22418     if test -n "$PKG_CONFIG" && \
22419     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
22420   ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
22421   ac_status=$?
22422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22423   test $ac_status = 0; }; then
22424   pkg_cv_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xcb_REQUIRES" 2>/dev/null`
22425 else
22426   pkg_failed=yes
22427 fi
22428  else
22429     pkg_failed=untried
22430 fi
22431 if test -n "$xcb_LIBS"; then
22432     pkg_cv_xcb_LIBS="$xcb_LIBS"
22433  elif test -n "$PKG_CONFIG"; then
22434     if test -n "$PKG_CONFIG" && \
22435     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
22436   ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
22437   ac_status=$?
22438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22439   test $ac_status = 0; }; then
22440   pkg_cv_xcb_LIBS=`$PKG_CONFIG --libs "$xcb_REQUIRES" 2>/dev/null`
22441 else
22442   pkg_failed=yes
22443 fi
22444  else
22445     pkg_failed=untried
22446 fi
22447
22448
22449
22450 if test $pkg_failed = yes; then
22451
22452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22453         _pkg_short_errors_supported=yes
22454 else
22455         _pkg_short_errors_supported=no
22456 fi
22457         if test $_pkg_short_errors_supported = yes; then
22458                 xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_REQUIRES" 2>&1`
22459         else
22460                 xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_REQUIRES" 2>&1`
22461         fi
22462         # Put the nasty error message in config.log where it belongs
22463         echo "$xcb_PKG_ERRORS" >&5
22464
22465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22466 $as_echo "no" >&6; }
22467                 use_xcb="no (requires $xcb_REQUIRES http://xcb.freedesktop.org)"
22468 elif test $pkg_failed = untried; then
22469         use_xcb="no (requires $xcb_REQUIRES http://xcb.freedesktop.org)"
22470 else
22471         xcb_CFLAGS=$pkg_cv_xcb_CFLAGS
22472         xcb_LIBS=$pkg_cv_xcb_LIBS
22473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22474 $as_echo "yes" >&6; }
22475         :
22476 fi
22477
22478
22479                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB surface backend feature could be enabled" >&5
22480 $as_echo_n "checking whether cairo's XCB surface backend feature could be enabled... " >&6; }
22481                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb" >&5
22482 $as_echo "$use_xcb" >&6; }
22483
22484                 if test "x$enable_xcb" = "xyes" -a "x$use_xcb" != xyes; then :
22485                         as_fn_error $? " XCB surface backend feature could not be enabled" "$LINENO" 5
22486
22487 fi       ;; #(
22488   *) :
22489                         as_fn_error $? "invalid argument passed to --enable-xcb: \`$use_xcb', should be one of [no/auto/yes]" "$LINENO" 5
22490          ;;
22491 esac
22492         if test "x$use_xcb" = "xyes"; then :
22493                                                                                 CAIRO_REQUIRES="$xcb_REQUIRES"" ${CAIRO_REQUIRES}"
22494
22495                                                                         CAIRO_CFLAGS="$xcb_CFLAGS"" ${CAIRO_CFLAGS}"
22496
22497                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22498
22499                                                                         CAIRO_LIBS="$xcb_LIBS"" ${CAIRO_LIBS}"
22500
22501                                                                         CAIRO_NONPKGCONFIG_LIBS="$xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22502
22503
22504 else
22505                                         unset xcb_BASE
22506 unset xcb_REQUIRES
22507 unset xcb_CFLAGS
22508 unset xcb_NONPKGCONFIG_CFLAGS
22509 unset xcb_LIBS
22510 unset xcb_NONPKGCONFIG_LIBS
22511 unset xcb_NONPKGCONFIG_EXTRA_LIBS
22512
22513
22514 fi
22515
22516                                                          if test "x$use_xcb" = xyes; then
22517   CAIRO_HAS_XCB_SURFACE_TRUE=
22518   CAIRO_HAS_XCB_SURFACE_FALSE='#'
22519 else
22520   CAIRO_HAS_XCB_SURFACE_TRUE='#'
22521   CAIRO_HAS_XCB_SURFACE_FALSE=
22522 fi
22523
22524
22525                                                                                 cr_make_tmp='CAIRO_HAS_XCB_SURFACE=0'
22526                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22527 ""$cr_make_tmp"
22528
22529
22530                                                                                 cr_make_tmp=''
22531                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22532 ""$cr_make_tmp"
22533
22534                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22535 ""$cr_make_tmp"
22536                                                                                 cr_make_tmp=''
22537                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22538 ""$cr_make_tmp"
22539
22540                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22541 ""$cr_make_tmp"
22542
22543
22544                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xcb_headers)'
22545                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22546 ""$cr_make_tmp"
22547
22548                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22549 ""$cr_make_tmp"
22550                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)'
22551                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22552 ""$cr_make_tmp"
22553
22554                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22555 ""$cr_make_tmp"
22556
22557
22558
22559                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xcb_headers)
22560 all_cairo_private += $(cairo_xcb_private)
22561 all_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
22562 all_cairo_sources += $(cairo_xcb_sources)'
22563                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22564 ""$cr_make_tmp"
22565
22566                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22567 ""$cr_make_tmp"
22568                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
22569 all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
22570 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
22571 all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
22572                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22573 ""$cr_make_tmp"
22574
22575                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22576 ""$cr_make_tmp"
22577
22578
22579                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_headers)
22580 enabled_cairo_private += $(cairo_xcb_private)
22581 enabled_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
22582 enabled_cairo_sources += $(cairo_xcb_sources)'
22583                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22584 "'if CAIRO_HAS_XCB_SURFACE'
22585                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22586 ""$cr_make_tmp"
22587                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22588 "'endif'
22589
22590                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22591 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
22592                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22593 ""$cr_make_tmp"
22594                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22595 "'endif'
22596                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
22597 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
22598 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
22599 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
22600                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22601 "'if CAIRO_HAS_XCB_SURFACE'
22602                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22603 ""$cr_make_tmp"
22604                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22605 "'endif'
22606
22607                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22608 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
22609                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22610 ""$cr_make_tmp"
22611                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22612 "'endif'
22613
22614
22615
22616
22617                                         if test "x$use_xcb" = xyes; then :
22618   :
22619                 ac_config_files="$ac_config_files src/cairo-xcb.pc:src/cairo-features.pc.in"
22620
22621
22622 fi
22623                                         if test "x$use_xcb" = xyes; then :
22624   :
22625                 ac_config_files="$ac_config_files cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22626
22627
22628 fi
22629                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xcb.pc'
22630                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22631 ""$cr_make_tmp"
22632
22633                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22634 ""$cr_make_tmp"
22635
22636
22637                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb.pc'
22638                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22639 "'if CAIRO_HAS_XCB_SURFACE'
22640                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22641 ""$cr_make_tmp"
22642                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22643 "'endif'
22644
22645                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22646 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
22647                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22648 ""$cr_make_tmp"
22649                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22650 "'endif'
22651
22652
22653                                         if test "x$use_xcb" = xyes; then :
22654   :
22655                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
22656
22657
22658 fi
22659                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
22660
22661
22662
22663                                         if test "x$use_xcb" != xyes; then :
22664   :
22665                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
22666
22667
22668
22669 fi
22670
22671                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XCB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
22672                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22673 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
22674                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22675 ""$cr_make_tmp"
22676                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22677 "'endif'
22678
22679
22680
22681
22682                                         if test "x$use_xcb" = xyes; then :
22683   :
22684                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xcb'
22685
22686
22687
22688 fi
22689
22690
22691
22692                                                                                                                                 # Check whether --enable-xlib-xcb was given.
22693 if test "${enable_xlib_xcb+set}" = set; then :
22694   enableval=$enable_xlib_xcb; enable_xlib_xcb=$enableval
22695 else
22696   enable_xlib_xcb=no
22697 fi
22698
22699                         case $enable_xlib_xcb in #(
22700   no) :
22701                 use_xlib_xcb="no (disabled, use --enable-xlib-xcb to enable)"
22702          ;; #(
22703         yes|auto) :
22704                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib/XCB functions feature" >&5
22705 $as_echo_n "checking for cairo's Xlib/XCB functions feature... " >&6; }
22706                 echo
22707
22708                 use_xlib_xcb=yes
22709                         xlib_xcb_BASE="cairo"
22710 xlib_xcb_REQUIRES="$ac_env_xlib_xcb_REQUIRES_value"
22711 xlib_xcb_CFLAGS="$ac_env_xlib_xcb_CFLAGS_value"
22712 xlib_xcb_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xcb_NONPKGCONFIG_CFLAGS_value"
22713 xlib_xcb_LIBS="$ac_env_xlib_xcb_LIBS_value"
22714 xlib_xcb_NONPKGCONFIG_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_LIBS_value"
22715 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
22716
22717
22718
22719   if test "x$use_xcb" = "xyes" -a "x$use_xlib" = "xyes"; then
22720     xlib_xcb_REQUIRES="x11-xcb"
22721
22722 pkg_failed=no
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xcb" >&5
22724 $as_echo_n "checking for xlib_xcb... " >&6; }
22725
22726 if test -n "$xlib_xcb_CFLAGS"; then
22727     pkg_cv_xlib_xcb_CFLAGS="$xlib_xcb_CFLAGS"
22728  elif test -n "$PKG_CONFIG"; then
22729     if test -n "$PKG_CONFIG" && \
22730     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
22731   ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
22732   ac_status=$?
22733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734   test $ac_status = 0; }; then
22735   pkg_cv_xlib_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xcb_REQUIRES" 2>/dev/null`
22736 else
22737   pkg_failed=yes
22738 fi
22739  else
22740     pkg_failed=untried
22741 fi
22742 if test -n "$xlib_xcb_LIBS"; then
22743     pkg_cv_xlib_xcb_LIBS="$xlib_xcb_LIBS"
22744  elif test -n "$PKG_CONFIG"; then
22745     if test -n "$PKG_CONFIG" && \
22746     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
22747   ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
22748   ac_status=$?
22749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22750   test $ac_status = 0; }; then
22751   pkg_cv_xlib_xcb_LIBS=`$PKG_CONFIG --libs "$xlib_xcb_REQUIRES" 2>/dev/null`
22752 else
22753   pkg_failed=yes
22754 fi
22755  else
22756     pkg_failed=untried
22757 fi
22758
22759
22760
22761 if test $pkg_failed = yes; then
22762
22763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22764         _pkg_short_errors_supported=yes
22765 else
22766         _pkg_short_errors_supported=no
22767 fi
22768         if test $_pkg_short_errors_supported = yes; then
22769                 xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xcb_REQUIRES" 2>&1`
22770         else
22771                 xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xcb_REQUIRES" 2>&1`
22772         fi
22773         # Put the nasty error message in config.log where it belongs
22774         echo "$xlib_xcb_PKG_ERRORS" >&5
22775
22776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22778                 use_xlib_xcb="no (requires $xlib_xcb_REQUIRES http://xcb.freedesktop.org)"
22779 elif test $pkg_failed = untried; then
22780         use_xlib_xcb="no (requires $xlib_xcb_REQUIRES http://xcb.freedesktop.org)"
22781 else
22782         xlib_xcb_CFLAGS=$pkg_cv_xlib_xcb_CFLAGS
22783         xlib_xcb_LIBS=$pkg_cv_xlib_xcb_LIBS
22784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22785 $as_echo "yes" >&6; }
22786         :
22787 fi
22788   else
22789     use_xlib_xcb="no (requires both --enable-xlib and --enable-xcb)"
22790   fi
22791
22792
22793                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib/XCB functions feature could be enabled" >&5
22794 $as_echo_n "checking whether cairo's Xlib/XCB functions feature could be enabled... " >&6; }
22795                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xcb" >&5
22796 $as_echo "$use_xlib_xcb" >&6; }
22797
22798                 if test "x$enable_xlib_xcb" = "xyes" -a "x$use_xlib_xcb" != xyes; then :
22799                         as_fn_error $? " Xlib/XCB functions feature could not be enabled" "$LINENO" 5
22800
22801 fi       ;; #(
22802   *) :
22803                         as_fn_error $? "invalid argument passed to --enable-xlib-xcb: \`$use_xlib_xcb', should be one of [no/auto/yes]" "$LINENO" 5
22804          ;;
22805 esac
22806         if test "x$use_xlib_xcb" = "xyes"; then :
22807                                                                                 CAIRO_REQUIRES="$xlib_xcb_REQUIRES"" ${CAIRO_REQUIRES}"
22808
22809                                                                         CAIRO_CFLAGS="$xlib_xcb_CFLAGS"" ${CAIRO_CFLAGS}"
22810
22811                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22812
22813                                                                         CAIRO_LIBS="$xlib_xcb_LIBS"" ${CAIRO_LIBS}"
22814
22815                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22816
22817
22818 else
22819                                         unset xlib_xcb_BASE
22820 unset xlib_xcb_REQUIRES
22821 unset xlib_xcb_CFLAGS
22822 unset xlib_xcb_NONPKGCONFIG_CFLAGS
22823 unset xlib_xcb_LIBS
22824 unset xlib_xcb_NONPKGCONFIG_LIBS
22825 unset xlib_xcb_NONPKGCONFIG_EXTRA_LIBS
22826
22827
22828 fi
22829
22830                                                          if test "x$use_xlib_xcb" = xyes; then
22831   CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE=
22832   CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE='#'
22833 else
22834   CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE='#'
22835   CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE=
22836 fi
22837
22838
22839                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_XCB_FUNCTIONS=0'
22840                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22841 ""$cr_make_tmp"
22842
22843
22844                                                                                 cr_make_tmp=''
22845                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22846 ""$cr_make_tmp"
22847
22848                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22849 ""$cr_make_tmp"
22850                                                                                 cr_make_tmp=''
22851                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22852 ""$cr_make_tmp"
22853
22854                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22855 ""$cr_make_tmp"
22856
22857
22858
22859                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_xlib_xcb_headers)'
22860                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22861 ""$cr_make_tmp"
22862
22863                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22864 ""$cr_make_tmp"
22865                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)'
22866                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22867 ""$cr_make_tmp"
22868
22869                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22870 ""$cr_make_tmp"
22871
22872
22873                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_xcb_headers)
22874 all_cairo_private += $(cairo_xlib_xcb_private)
22875 all_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
22876 all_cairo_sources += $(cairo_xlib_xcb_sources)'
22877                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22878 ""$cr_make_tmp"
22879
22880                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22881 ""$cr_make_tmp"
22882                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
22883 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
22884 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
22885 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
22886                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22887 ""$cr_make_tmp"
22888
22889                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22890 ""$cr_make_tmp"
22891
22892
22893                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xcb_headers)
22894 enabled_cairo_private += $(cairo_xlib_xcb_private)
22895 enabled_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
22896 enabled_cairo_sources += $(cairo_xlib_xcb_sources)'
22897                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22898 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
22899                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22900 ""$cr_make_tmp"
22901                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22902 "'endif'
22903
22904                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22905 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
22906                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22907 ""$cr_make_tmp"
22908                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22909 "'endif'
22910                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
22911 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
22912 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
22913 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
22914                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22915 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
22916                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22917 ""$cr_make_tmp"
22918                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22919 "'endif'
22920
22921                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22922 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
22923                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22924 ""$cr_make_tmp"
22925                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22926 "'endif'
22927
22928
22929
22930
22931                                         if test "x$use_xlib_xcb" = xyes; then :
22932   :
22933                 ac_config_files="$ac_config_files src/cairo-xlib-xcb.pc:src/cairo-features.pc.in"
22934
22935
22936 fi
22937                                         if test "x$use_xlib_xcb" = xyes; then :
22938   :
22939                 ac_config_files="$ac_config_files cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22940
22941
22942 fi
22943                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xcb.pc'
22944                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22945 ""$cr_make_tmp"
22946
22947                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22948 ""$cr_make_tmp"
22949
22950
22951                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xcb.pc'
22952                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22953 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
22954                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22955 ""$cr_make_tmp"
22956                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22957 "'endif'
22958
22959                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22960 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
22961                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22962 ""$cr_make_tmp"
22963                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22964 "'endif'
22965
22966
22967                                         if test "x$use_xlib_xcb" = xyes; then :
22968   :
22969                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XCB_FUNCTIONS'
22970
22971
22972 fi
22973
22974
22975
22976                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_XCB_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
22977                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22978 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
22979                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22980 ""$cr_make_tmp"
22981                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22982 "'endif'
22983
22984
22985                                         if test "x$use_xlib_xcb" = xyes; then :
22986   :
22987                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
22988
22989 "'--- The Xlib/XCB functions feature is still under active development and is
22990 --- included in this release only as a preview. It does NOT fully work yet
22991 --- and incompatible changes may yet be made to Xlib/XCB functions specific
22992 --- API.'
22993
22994
22995
22996 fi
22997
22998
22999
23000
23001
23002                                                                                                                                 # Check whether --enable-xcb-shm was given.
23003 if test "${enable_xcb_shm+set}" = set; then :
23004   enableval=$enable_xcb_shm; enable_xcb_shm=$enableval
23005 else
23006   enable_xcb_shm=auto
23007 fi
23008
23009                         case $enable_xcb_shm in #(
23010   no) :
23011                 use_xcb_shm="no (disabled, use --enable-xcb-shm to enable)"
23012          ;; #(
23013         yes|auto) :
23014                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB/SHM functions feature" >&5
23015 $as_echo_n "checking for cairo's XCB/SHM functions feature... " >&6; }
23016                 echo
23017
23018                 use_xcb_shm=yes
23019                         xcb_shm_BASE="cairo"
23020 xcb_shm_REQUIRES="$ac_env_xcb_shm_REQUIRES_value"
23021 xcb_shm_CFLAGS="$ac_env_xcb_shm_CFLAGS_value"
23022 xcb_shm_NONPKGCONFIG_CFLAGS="$ac_env_xcb_shm_NONPKGCONFIG_CFLAGS_value"
23023 xcb_shm_LIBS="$ac_env_xcb_shm_LIBS_value"
23024 xcb_shm_NONPKGCONFIG_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_LIBS_value"
23025 xcb_shm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_EXTRA_LIBS_value"
23026
23027
23028
23029   if test "x$use_xcb" = "xyes"; then
23030       xcb_shm_REQUIRES="xcb-shm"
23031
23032 pkg_failed=no
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_shm" >&5
23034 $as_echo_n "checking for xcb_shm... " >&6; }
23035
23036 if test -n "$xcb_shm_CFLAGS"; then
23037     pkg_cv_xcb_shm_CFLAGS="$xcb_shm_CFLAGS"
23038  elif test -n "$PKG_CONFIG"; then
23039     if test -n "$PKG_CONFIG" && \
23040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
23041   ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
23042   ac_status=$?
23043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23044   test $ac_status = 0; }; then
23045   pkg_cv_xcb_shm_CFLAGS=`$PKG_CONFIG --cflags "$xcb_shm_REQUIRES" 2>/dev/null`
23046 else
23047   pkg_failed=yes
23048 fi
23049  else
23050     pkg_failed=untried
23051 fi
23052 if test -n "$xcb_shm_LIBS"; then
23053     pkg_cv_xcb_shm_LIBS="$xcb_shm_LIBS"
23054  elif test -n "$PKG_CONFIG"; then
23055     if test -n "$PKG_CONFIG" && \
23056     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
23057   ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
23058   ac_status=$?
23059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23060   test $ac_status = 0; }; then
23061   pkg_cv_xcb_shm_LIBS=`$PKG_CONFIG --libs "$xcb_shm_REQUIRES" 2>/dev/null`
23062 else
23063   pkg_failed=yes
23064 fi
23065  else
23066     pkg_failed=untried
23067 fi
23068
23069
23070
23071 if test $pkg_failed = yes; then
23072
23073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23074         _pkg_short_errors_supported=yes
23075 else
23076         _pkg_short_errors_supported=no
23077 fi
23078         if test $_pkg_short_errors_supported = yes; then
23079                 xcb_shm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_shm_REQUIRES" 2>&1`
23080         else
23081                 xcb_shm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_shm_REQUIRES" 2>&1`
23082         fi
23083         # Put the nasty error message in config.log where it belongs
23084         echo "$xcb_shm_PKG_ERRORS" >&5
23085
23086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23087 $as_echo "no" >&6; }
23088                 use_xcb_shm="no (requires $xcb_shm http://xcb.freedesktop.org)"
23089 elif test $pkg_failed = untried; then
23090         use_xcb_shm="no (requires $xcb_shm http://xcb.freedesktop.org)"
23091 else
23092         xcb_shm_CFLAGS=$pkg_cv_xcb_shm_CFLAGS
23093         xcb_shm_LIBS=$pkg_cv_xcb_shm_LIBS
23094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23095 $as_echo "yes" >&6; }
23096         :
23097 fi
23098   else
23099     use_xcb_shm="no (requires --enable-xcb)"
23100   fi
23101
23102
23103                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB/SHM functions feature could be enabled" >&5
23104 $as_echo_n "checking whether cairo's XCB/SHM functions feature could be enabled... " >&6; }
23105                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb_shm" >&5
23106 $as_echo "$use_xcb_shm" >&6; }
23107
23108                 if test "x$enable_xcb_shm" = "xyes" -a "x$use_xcb_shm" != xyes; then :
23109                         as_fn_error $? " XCB/SHM functions feature could not be enabled" "$LINENO" 5
23110
23111 fi       ;; #(
23112   *) :
23113                         as_fn_error $? "invalid argument passed to --enable-xcb-shm: \`$use_xcb_shm', should be one of [no/auto/yes]" "$LINENO" 5
23114          ;;
23115 esac
23116         if test "x$use_xcb_shm" = "xyes"; then :
23117                                                                                 CAIRO_REQUIRES="$xcb_shm_REQUIRES"" ${CAIRO_REQUIRES}"
23118
23119                                                                         CAIRO_CFLAGS="$xcb_shm_CFLAGS"" ${CAIRO_CFLAGS}"
23120
23121                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xcb_shm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23122
23123                                                                         CAIRO_LIBS="$xcb_shm_LIBS"" ${CAIRO_LIBS}"
23124
23125                                                                         CAIRO_NONPKGCONFIG_LIBS="$xcb_shm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23126
23127
23128 else
23129                                         unset xcb_shm_BASE
23130 unset xcb_shm_REQUIRES
23131 unset xcb_shm_CFLAGS
23132 unset xcb_shm_NONPKGCONFIG_CFLAGS
23133 unset xcb_shm_LIBS
23134 unset xcb_shm_NONPKGCONFIG_LIBS
23135 unset xcb_shm_NONPKGCONFIG_EXTRA_LIBS
23136
23137
23138 fi
23139
23140                                                          if test "x$use_xcb_shm" = xyes; then
23141   CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE=
23142   CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE='#'
23143 else
23144   CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE='#'
23145   CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE=
23146 fi
23147
23148
23149                                                                                 cr_make_tmp='CAIRO_HAS_XCB_SHM_FUNCTIONS=0'
23150                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23151 ""$cr_make_tmp"
23152
23153
23154                                                                                 cr_make_tmp=''
23155                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23156 ""$cr_make_tmp"
23157
23158                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23159 ""$cr_make_tmp"
23160                                                                                 cr_make_tmp=''
23161                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23162 ""$cr_make_tmp"
23163
23164                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23165 ""$cr_make_tmp"
23166
23167
23168                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xcb_shm_headers)'
23169                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23170 ""$cr_make_tmp"
23171
23172                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23173 ""$cr_make_tmp"
23174                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)'
23175                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23176 ""$cr_make_tmp"
23177
23178                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23179 ""$cr_make_tmp"
23180
23181
23182
23183                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xcb_shm_headers)
23184 all_cairo_private += $(cairo_xcb_shm_private)
23185 all_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
23186 all_cairo_sources += $(cairo_xcb_shm_sources)'
23187                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23188 ""$cr_make_tmp"
23189
23190                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23191 ""$cr_make_tmp"
23192                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
23193 all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
23194 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
23195 all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
23196                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23197 ""$cr_make_tmp"
23198
23199                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23200 ""$cr_make_tmp"
23201
23202
23203                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_shm_headers)
23204 enabled_cairo_private += $(cairo_xcb_shm_private)
23205 enabled_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
23206 enabled_cairo_sources += $(cairo_xcb_shm_sources)'
23207                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23208 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
23209                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23210 ""$cr_make_tmp"
23211                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23212 "'endif'
23213
23214                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23215 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
23216                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23217 ""$cr_make_tmp"
23218                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23219 "'endif'
23220                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
23221 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
23222 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
23223 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
23224                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23225 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
23226                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23227 ""$cr_make_tmp"
23228                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23229 "'endif'
23230
23231                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23232 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
23233                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23234 ""$cr_make_tmp"
23235                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23236 "'endif'
23237
23238
23239
23240
23241                                         if test "x$use_xcb_shm" = xyes; then :
23242   :
23243                 ac_config_files="$ac_config_files src/cairo-xcb-shm.pc:src/cairo-features.pc.in"
23244
23245
23246 fi
23247                                         if test "x$use_xcb_shm" = xyes; then :
23248   :
23249                 ac_config_files="$ac_config_files cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23250
23251
23252 fi
23253                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xcb-shm.pc'
23254                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23255 ""$cr_make_tmp"
23256
23257                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23258 ""$cr_make_tmp"
23259
23260
23261                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb-shm.pc'
23262                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23263 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
23264                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23265 ""$cr_make_tmp"
23266                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23267 "'endif'
23268
23269                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23270 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
23271                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23272 ""$cr_make_tmp"
23273                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23274 "'endif'
23275
23276
23277                                         if test "x$use_xcb_shm" = xyes; then :
23278   :
23279                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
23280
23281
23282 fi
23283                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
23284
23285
23286
23287                                         if test "x$use_xcb_shm" != xyes; then :
23288   :
23289                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
23290
23291
23292
23293 fi
23294
23295                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XCB_SHM_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
23296                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23297 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
23298                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23299 ""$cr_make_tmp"
23300                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23301 "'endif'
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311                                                                                                                                 # Check whether --enable-qt was given.
23312 if test "${enable_qt+set}" = set; then :
23313   enableval=$enable_qt; enable_qt=$enableval
23314 else
23315   enable_qt=no
23316 fi
23317
23318                         case $enable_qt in #(
23319   no) :
23320                 use_qt="no (disabled, use --enable-qt to enable)"
23321          ;; #(
23322         yes|auto) :
23323                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Qt surface backend feature" >&5
23324 $as_echo_n "checking for cairo's Qt surface backend feature... " >&6; }
23325                 echo
23326
23327                 use_qt=yes
23328                         qt_BASE="cairo"
23329 qt_REQUIRES="$ac_env_qt_REQUIRES_value"
23330 qt_CFLAGS="$ac_env_qt_CFLAGS_value"
23331 qt_NONPKGCONFIG_CFLAGS="$ac_env_qt_NONPKGCONFIG_CFLAGS_value"
23332 qt_LIBS="$ac_env_qt_LIBS_value"
23333 qt_NONPKGCONFIG_LIBS="$ac_env_qt_NONPKGCONFIG_LIBS_value"
23334 qt_NONPKGCONFIG_EXTRA_LIBS="$ac_env_qt_NONPKGCONFIG_EXTRA_LIBS_value"
23335
23336
23337
23338   qt_REQUIRES="QtGui >= 4.4.0"
23339
23340 pkg_failed=no
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
23342 $as_echo_n "checking for qt... " >&6; }
23343
23344 if test -n "$qt_CFLAGS"; then
23345     pkg_cv_qt_CFLAGS="$qt_CFLAGS"
23346  elif test -n "$PKG_CONFIG"; then
23347     if test -n "$PKG_CONFIG" && \
23348     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
23349   ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
23350   ac_status=$?
23351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352   test $ac_status = 0; }; then
23353   pkg_cv_qt_CFLAGS=`$PKG_CONFIG --cflags "$qt_REQUIRES" 2>/dev/null`
23354 else
23355   pkg_failed=yes
23356 fi
23357  else
23358     pkg_failed=untried
23359 fi
23360 if test -n "$qt_LIBS"; then
23361     pkg_cv_qt_LIBS="$qt_LIBS"
23362  elif test -n "$PKG_CONFIG"; then
23363     if test -n "$PKG_CONFIG" && \
23364     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
23365   ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
23366   ac_status=$?
23367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368   test $ac_status = 0; }; then
23369   pkg_cv_qt_LIBS=`$PKG_CONFIG --libs "$qt_REQUIRES" 2>/dev/null`
23370 else
23371   pkg_failed=yes
23372 fi
23373  else
23374     pkg_failed=untried
23375 fi
23376
23377
23378
23379 if test $pkg_failed = yes; then
23380
23381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23382         _pkg_short_errors_supported=yes
23383 else
23384         _pkg_short_errors_supported=no
23385 fi
23386         if test $_pkg_short_errors_supported = yes; then
23387                 qt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$qt_REQUIRES" 2>&1`
23388         else
23389                 qt_PKG_ERRORS=`$PKG_CONFIG --print-errors "$qt_REQUIRES" 2>&1`
23390         fi
23391         # Put the nasty error message in config.log where it belongs
23392         echo "$qt_PKG_ERRORS" >&5
23393
23394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23395 $as_echo "no" >&6; }
23396                 qt_REQUIRES=""
23397                      use_qt="no (requires Qt4 development libraries)"
23398
23399 elif test $pkg_failed = untried; then
23400         qt_REQUIRES=""
23401                      use_qt="no (requires Qt4 development libraries)"
23402
23403 else
23404         qt_CFLAGS=$pkg_cv_qt_CFLAGS
23405         qt_LIBS=$pkg_cv_qt_LIBS
23406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23407 $as_echo "yes" >&6; }
23408         :
23409 fi
23410
23411
23412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Qt surface backend feature could be enabled" >&5
23413 $as_echo_n "checking whether cairo's Qt surface backend feature could be enabled... " >&6; }
23414                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_qt" >&5
23415 $as_echo "$use_qt" >&6; }
23416
23417                 if test "x$enable_qt" = "xyes" -a "x$use_qt" != xyes; then :
23418                         as_fn_error $? " Qt surface backend feature could not be enabled" "$LINENO" 5
23419
23420 fi       ;; #(
23421   *) :
23422                         as_fn_error $? "invalid argument passed to --enable-qt: \`$use_qt', should be one of [no/auto/yes]" "$LINENO" 5
23423          ;;
23424 esac
23425         if test "x$use_qt" = "xyes"; then :
23426                                                                                 CAIRO_REQUIRES="$qt_REQUIRES"" ${CAIRO_REQUIRES}"
23427
23428                                                                         CAIRO_CFLAGS="$qt_CFLAGS"" ${CAIRO_CFLAGS}"
23429
23430                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$qt_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23431
23432                                                                         CAIRO_LIBS="$qt_LIBS"" ${CAIRO_LIBS}"
23433
23434                                                                         CAIRO_NONPKGCONFIG_LIBS="$qt_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23435
23436
23437 else
23438                                         unset qt_BASE
23439 unset qt_REQUIRES
23440 unset qt_CFLAGS
23441 unset qt_NONPKGCONFIG_CFLAGS
23442 unset qt_LIBS
23443 unset qt_NONPKGCONFIG_LIBS
23444 unset qt_NONPKGCONFIG_EXTRA_LIBS
23445
23446
23447 fi
23448
23449                                                          if test "x$use_qt" = xyes; then
23450   CAIRO_HAS_QT_SURFACE_TRUE=
23451   CAIRO_HAS_QT_SURFACE_FALSE='#'
23452 else
23453   CAIRO_HAS_QT_SURFACE_TRUE='#'
23454   CAIRO_HAS_QT_SURFACE_FALSE=
23455 fi
23456
23457
23458                                                                                 cr_make_tmp='CAIRO_HAS_QT_SURFACE=0'
23459                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23460 ""$cr_make_tmp"
23461
23462
23463                                                                                 cr_make_tmp=''
23464                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23465 ""$cr_make_tmp"
23466
23467                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23468 ""$cr_make_tmp"
23469                                                                                 cr_make_tmp=''
23470                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23471 ""$cr_make_tmp"
23472
23473                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23474 ""$cr_make_tmp"
23475
23476
23477
23478                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_qt_headers)'
23479                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23480 ""$cr_make_tmp"
23481
23482                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23483 ""$cr_make_tmp"
23484                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)'
23485                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23486 ""$cr_make_tmp"
23487
23488                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23489 ""$cr_make_tmp"
23490
23491
23492                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_qt_headers)
23493 all_cairo_private += $(cairo_qt_private)
23494 all_cairo_cxx_sources += $(cairo_qt_cxx_sources)
23495 all_cairo_sources += $(cairo_qt_sources)'
23496                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23497 ""$cr_make_tmp"
23498
23499                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23500 ""$cr_make_tmp"
23501                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
23502 all_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
23503 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
23504 all_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
23505                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23506 ""$cr_make_tmp"
23507
23508                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23509 ""$cr_make_tmp"
23510
23511
23512                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_qt_headers)
23513 enabled_cairo_private += $(cairo_qt_private)
23514 enabled_cairo_cxx_sources += $(cairo_qt_cxx_sources)
23515 enabled_cairo_sources += $(cairo_qt_sources)'
23516                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23517 "'if CAIRO_HAS_QT_SURFACE'
23518                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23519 ""$cr_make_tmp"
23520                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23521 "'endif'
23522
23523                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23524 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
23525                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23526 ""$cr_make_tmp"
23527                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23528 "'endif'
23529                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
23530 enabled_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
23531 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
23532 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
23533                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23534 "'if CAIRO_HAS_QT_SURFACE'
23535                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23536 ""$cr_make_tmp"
23537                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23538 "'endif'
23539
23540                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23541 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
23542                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23543 ""$cr_make_tmp"
23544                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23545 "'endif'
23546
23547
23548
23549
23550                                         if test "x$use_qt" = xyes; then :
23551   :
23552                 ac_config_files="$ac_config_files src/cairo-qt.pc:src/cairo-features.pc.in"
23553
23554
23555 fi
23556                                         if test "x$use_qt" = xyes; then :
23557   :
23558                 ac_config_files="$ac_config_files cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23559
23560
23561 fi
23562                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-qt.pc'
23563                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23564 ""$cr_make_tmp"
23565
23566                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23567 ""$cr_make_tmp"
23568
23569
23570                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-qt.pc'
23571                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23572 "'if CAIRO_HAS_QT_SURFACE'
23573                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23574 ""$cr_make_tmp"
23575                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23576 "'endif'
23577
23578                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23579 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
23580                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23581 ""$cr_make_tmp"
23582                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23583 "'endif'
23584
23585
23586                                         if test "x$use_qt" = xyes; then :
23587   :
23588                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QT_SURFACE'
23589
23590
23591 fi
23592
23593
23594
23595                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
23596                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23597 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
23598                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23599 ""$cr_make_tmp"
23600                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23601 "'endif'
23602
23603
23604                                         if test "x$use_qt" = xyes; then :
23605   :
23606                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
23607
23608 "'--- The Qt surface backend feature is still under active development and is
23609 --- included in this release only as a preview. It does NOT fully work yet
23610 --- and incompatible changes may yet be made to Qt surface backend specific
23611 --- API.'
23612
23613
23614
23615 fi
23616
23617
23618
23619
23620
23621
23622                                                                                                                                 # Check whether --enable-quartz was given.
23623 if test "${enable_quartz+set}" = set; then :
23624   enableval=$enable_quartz; enable_quartz=$enableval
23625 else
23626   enable_quartz=auto
23627 fi
23628
23629                         case $enable_quartz in #(
23630   no) :
23631                 use_quartz="no (disabled, use --enable-quartz to enable)"
23632          ;; #(
23633         yes|auto) :
23634                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz surface backend feature" >&5
23635 $as_echo_n "checking for cairo's Quartz surface backend feature... " >&6; }
23636                 echo
23637
23638                 use_quartz=yes
23639                         quartz_BASE="cairo"
23640 quartz_REQUIRES="$ac_env_quartz_REQUIRES_value"
23641 quartz_CFLAGS="$ac_env_quartz_CFLAGS_value"
23642 quartz_NONPKGCONFIG_CFLAGS="$ac_env_quartz_NONPKGCONFIG_CFLAGS_value"
23643 quartz_LIBS="$ac_env_quartz_LIBS_value"
23644 quartz_NONPKGCONFIG_LIBS="$ac_env_quartz_NONPKGCONFIG_LIBS_value"
23645 quartz_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_NONPKGCONFIG_EXTRA_LIBS_value"
23646
23647
23648
23649     ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
23650 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
23651
23652 else
23653   use_quartz="no (requires ApplicationServices framework)"
23654 fi
23655
23656
23657   if test "x$use_quartz" != "xyes" ; then
23658         ac_fn_c_check_header_mongrel "$LINENO" "CoreGraphics/CoreGraphics.h" "ac_cv_header_CoreGraphics_CoreGraphics_h" "$ac_includes_default"
23659 if test "x$ac_cv_header_CoreGraphics_CoreGraphics_h" = xyes; then :
23660
23661 else
23662   use_quartz="no (requires CoreGraphics framework)"
23663 fi
23664
23665
23666     quartz_LIBS="-Xlinker -framework -Xlinker CoreGraphics"
23667   else
23668     quartz_LIBS="-Xlinker -framework -Xlinker ApplicationServices"
23669   fi
23670
23671
23672                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz surface backend feature could be enabled" >&5
23673 $as_echo_n "checking whether cairo's Quartz surface backend feature could be enabled... " >&6; }
23674                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz" >&5
23675 $as_echo "$use_quartz" >&6; }
23676
23677                 if test "x$enable_quartz" = "xyes" -a "x$use_quartz" != xyes; then :
23678                         as_fn_error $? " Quartz surface backend feature could not be enabled" "$LINENO" 5
23679
23680 fi       ;; #(
23681   *) :
23682                         as_fn_error $? "invalid argument passed to --enable-quartz: \`$use_quartz', should be one of [no/auto/yes]" "$LINENO" 5
23683          ;;
23684 esac
23685         if test "x$use_quartz" = "xyes"; then :
23686                                                                                 CAIRO_REQUIRES="$quartz_REQUIRES"" ${CAIRO_REQUIRES}"
23687
23688                                                                         CAIRO_CFLAGS="$quartz_CFLAGS"" ${CAIRO_CFLAGS}"
23689
23690                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23691
23692                                                                         CAIRO_LIBS="$quartz_LIBS"" ${CAIRO_LIBS}"
23693
23694                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23695
23696
23697 else
23698                                         unset quartz_BASE
23699 unset quartz_REQUIRES
23700 unset quartz_CFLAGS
23701 unset quartz_NONPKGCONFIG_CFLAGS
23702 unset quartz_LIBS
23703 unset quartz_NONPKGCONFIG_LIBS
23704 unset quartz_NONPKGCONFIG_EXTRA_LIBS
23705
23706
23707 fi
23708
23709                                                          if test "x$use_quartz" = xyes; then
23710   CAIRO_HAS_QUARTZ_SURFACE_TRUE=
23711   CAIRO_HAS_QUARTZ_SURFACE_FALSE='#'
23712 else
23713   CAIRO_HAS_QUARTZ_SURFACE_TRUE='#'
23714   CAIRO_HAS_QUARTZ_SURFACE_FALSE=
23715 fi
23716
23717
23718                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_SURFACE=0'
23719                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23720 ""$cr_make_tmp"
23721
23722
23723                                                                                 cr_make_tmp=''
23724                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23725 ""$cr_make_tmp"
23726
23727                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23728 ""$cr_make_tmp"
23729                                                                                 cr_make_tmp=''
23730                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23731 ""$cr_make_tmp"
23732
23733                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23734 ""$cr_make_tmp"
23735
23736
23737                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_quartz_headers)'
23738                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23739 ""$cr_make_tmp"
23740
23741                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23742 ""$cr_make_tmp"
23743                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)'
23744                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23745 ""$cr_make_tmp"
23746
23747                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23748 ""$cr_make_tmp"
23749
23750
23751
23752                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_headers)
23753 all_cairo_private += $(cairo_quartz_private)
23754 all_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
23755 all_cairo_sources += $(cairo_quartz_sources)'
23756                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23757 ""$cr_make_tmp"
23758
23759                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23760 ""$cr_make_tmp"
23761                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
23762 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
23763 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
23764 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
23765                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23766 ""$cr_make_tmp"
23767
23768                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23769 ""$cr_make_tmp"
23770
23771
23772                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_headers)
23773 enabled_cairo_private += $(cairo_quartz_private)
23774 enabled_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
23775 enabled_cairo_sources += $(cairo_quartz_sources)'
23776                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23777 "'if CAIRO_HAS_QUARTZ_SURFACE'
23778                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23779 ""$cr_make_tmp"
23780                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23781 "'endif'
23782
23783                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23784 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
23785                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23786 ""$cr_make_tmp"
23787                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23788 "'endif'
23789                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
23790 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
23791 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
23792 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
23793                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23794 "'if CAIRO_HAS_QUARTZ_SURFACE'
23795                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23796 ""$cr_make_tmp"
23797                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23798 "'endif'
23799
23800                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23801 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
23802                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23803 ""$cr_make_tmp"
23804                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23805 "'endif'
23806
23807
23808
23809
23810                                         if test "x$use_quartz" = xyes; then :
23811   :
23812                 ac_config_files="$ac_config_files src/cairo-quartz.pc:src/cairo-features.pc.in"
23813
23814
23815 fi
23816                                         if test "x$use_quartz" = xyes; then :
23817   :
23818                 ac_config_files="$ac_config_files cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23819
23820
23821 fi
23822                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz.pc'
23823                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23824 ""$cr_make_tmp"
23825
23826                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23827 ""$cr_make_tmp"
23828
23829
23830                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz.pc'
23831                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23832 "'if CAIRO_HAS_QUARTZ_SURFACE'
23833                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23834 ""$cr_make_tmp"
23835                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23836 "'endif'
23837
23838                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23839 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
23840                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23841 ""$cr_make_tmp"
23842                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23843 "'endif'
23844
23845
23846                                         if test "x$use_quartz" = xyes; then :
23847   :
23848                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
23849
23850
23851 fi
23852                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
23853
23854
23855
23856                                         if test "x$use_quartz" != xyes; then :
23857   :
23858                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
23859
23860
23861
23862 fi
23863
23864                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
23865                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23866 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
23867                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23868 ""$cr_make_tmp"
23869                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23870 "'endif'
23871
23872
23873
23874
23875                                         if test "x$use_quartz" = xyes; then :
23876   :
23877                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'quartz'
23878
23879
23880
23881 fi
23882
23883
23884
23885                                                                                                                                 # Check whether --enable-quartz-font was given.
23886 if test "${enable_quartz_font+set}" = set; then :
23887   enableval=$enable_quartz_font; enable_quartz_font=$enableval
23888 else
23889   enable_quartz_font=auto
23890 fi
23891
23892                         case $enable_quartz_font in #(
23893   no) :
23894                 use_quartz_font="no (disabled, use --enable-quartz-font to enable)"
23895          ;; #(
23896         yes|auto) :
23897                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz font backend feature" >&5
23898 $as_echo_n "checking for cairo's Quartz font backend feature... " >&6; }
23899                 echo
23900
23901                 use_quartz_font=yes
23902                         quartz_font_BASE="cairo"
23903 quartz_font_REQUIRES="$ac_env_quartz_font_REQUIRES_value"
23904 quartz_font_CFLAGS="$ac_env_quartz_font_CFLAGS_value"
23905 quartz_font_NONPKGCONFIG_CFLAGS="$ac_env_quartz_font_NONPKGCONFIG_CFLAGS_value"
23906 quartz_font_LIBS="$ac_env_quartz_font_LIBS_value"
23907 quartz_font_NONPKGCONFIG_LIBS="$ac_env_quartz_font_NONPKGCONFIG_LIBS_value"
23908 quartz_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_font_NONPKGCONFIG_EXTRA_LIBS_value"
23909
23910
23911
23912   use_quartz_font=$use_quartz
23913
23914
23915                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz font backend feature could be enabled" >&5
23916 $as_echo_n "checking whether cairo's Quartz font backend feature could be enabled... " >&6; }
23917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_font" >&5
23918 $as_echo "$use_quartz_font" >&6; }
23919
23920                 if test "x$enable_quartz_font" = "xyes" -a "x$use_quartz_font" != xyes; then :
23921                         as_fn_error $? " Quartz font backend feature could not be enabled" "$LINENO" 5
23922
23923 fi       ;; #(
23924   *) :
23925                         as_fn_error $? "invalid argument passed to --enable-quartz-font: \`$use_quartz_font', should be one of [no/auto/yes]" "$LINENO" 5
23926          ;;
23927 esac
23928         if test "x$use_quartz_font" = "xyes"; then :
23929                                                                                 CAIRO_REQUIRES="$quartz_font_REQUIRES"" ${CAIRO_REQUIRES}"
23930
23931                                                                         CAIRO_CFLAGS="$quartz_font_CFLAGS"" ${CAIRO_CFLAGS}"
23932
23933                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23934
23935                                                                         CAIRO_LIBS="$quartz_font_LIBS"" ${CAIRO_LIBS}"
23936
23937                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23938
23939
23940 else
23941                                         unset quartz_font_BASE
23942 unset quartz_font_REQUIRES
23943 unset quartz_font_CFLAGS
23944 unset quartz_font_NONPKGCONFIG_CFLAGS
23945 unset quartz_font_LIBS
23946 unset quartz_font_NONPKGCONFIG_LIBS
23947 unset quartz_font_NONPKGCONFIG_EXTRA_LIBS
23948
23949
23950 fi
23951
23952                                                          if test "x$use_quartz_font" = xyes; then
23953   CAIRO_HAS_QUARTZ_FONT_TRUE=
23954   CAIRO_HAS_QUARTZ_FONT_FALSE='#'
23955 else
23956   CAIRO_HAS_QUARTZ_FONT_TRUE='#'
23957   CAIRO_HAS_QUARTZ_FONT_FALSE=
23958 fi
23959
23960
23961                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_FONT=0'
23962                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23963 ""$cr_make_tmp"
23964
23965
23966                                                                                 cr_make_tmp=''
23967                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23968 ""$cr_make_tmp"
23969
23970                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23971 ""$cr_make_tmp"
23972                                                                                 cr_make_tmp=''
23973                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23974 ""$cr_make_tmp"
23975
23976                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23977 ""$cr_make_tmp"
23978
23979
23980                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_quartz_font_headers)'
23981                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23982 ""$cr_make_tmp"
23983
23984                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23985 ""$cr_make_tmp"
23986                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)'
23987                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23988 ""$cr_make_tmp"
23989
23990                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23991 ""$cr_make_tmp"
23992
23993
23994
23995                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_font_headers)
23996 all_cairo_private += $(cairo_quartz_font_private)
23997 all_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
23998 all_cairo_sources += $(cairo_quartz_font_sources)'
23999                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24000 ""$cr_make_tmp"
24001
24002                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24003 ""$cr_make_tmp"
24004                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
24005 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
24006 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
24007 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
24008                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24009 ""$cr_make_tmp"
24010
24011                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24012 ""$cr_make_tmp"
24013
24014
24015                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_font_headers)
24016 enabled_cairo_private += $(cairo_quartz_font_private)
24017 enabled_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
24018 enabled_cairo_sources += $(cairo_quartz_font_sources)'
24019                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24020 "'if CAIRO_HAS_QUARTZ_FONT'
24021                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24022 ""$cr_make_tmp"
24023                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24024 "'endif'
24025
24026                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24027 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
24028                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24029 ""$cr_make_tmp"
24030                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24031 "'endif'
24032                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
24033 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
24034 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
24035 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
24036                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24037 "'if CAIRO_HAS_QUARTZ_FONT'
24038                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24039 ""$cr_make_tmp"
24040                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24041 "'endif'
24042
24043                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24044 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
24045                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24046 ""$cr_make_tmp"
24047                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24048 "'endif'
24049
24050
24051
24052
24053                                         if test "x$use_quartz_font" = xyes; then :
24054   :
24055                 ac_config_files="$ac_config_files src/cairo-quartz-font.pc:src/cairo-features.pc.in"
24056
24057
24058 fi
24059                                         if test "x$use_quartz_font" = xyes; then :
24060   :
24061                 ac_config_files="$ac_config_files cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24062
24063
24064 fi
24065                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz-font.pc'
24066                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24067 ""$cr_make_tmp"
24068
24069                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24070 ""$cr_make_tmp"
24071
24072
24073                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-font.pc'
24074                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24075 "'if CAIRO_HAS_QUARTZ_FONT'
24076                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24077 ""$cr_make_tmp"
24078                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24079 "'endif'
24080
24081                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24082 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
24083                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24084 ""$cr_make_tmp"
24085                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24086 "'endif'
24087
24088
24089                                         if test "x$use_quartz_font" = xyes; then :
24090   :
24091                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
24092
24093
24094 fi
24095                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
24096
24097
24098
24099                                         if test "x$use_quartz_font" != xyes; then :
24100   :
24101                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
24102
24103
24104
24105 fi
24106
24107                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
24108                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24109 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
24110                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24111 ""$cr_make_tmp"
24112                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24113 "'endif'
24114
24115
24116
24117
24118
24119                                         if test "x$use_quartz_font" = xyes; then :
24120   :
24121                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'quartz_font'
24122
24123
24124
24125 fi
24126
24127
24128                                                                                                                                 # Check whether --enable-quartz-image was given.
24129 if test "${enable_quartz_image+set}" = set; then :
24130   enableval=$enable_quartz_image; enable_quartz_image=$enableval
24131 else
24132   enable_quartz_image=no
24133 fi
24134
24135                         case $enable_quartz_image in #(
24136   no) :
24137                 use_quartz_image="no (disabled, use --enable-quartz-image to enable)"
24138          ;; #(
24139         yes|auto) :
24140                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz Image surface backend feature" >&5
24141 $as_echo_n "checking for cairo's Quartz Image surface backend feature... " >&6; }
24142                 echo
24143
24144                 use_quartz_image=yes
24145                         quartz_image_BASE="cairo"
24146 quartz_image_REQUIRES="$ac_env_quartz_image_REQUIRES_value"
24147 quartz_image_CFLAGS="$ac_env_quartz_image_CFLAGS_value"
24148 quartz_image_NONPKGCONFIG_CFLAGS="$ac_env_quartz_image_NONPKGCONFIG_CFLAGS_value"
24149 quartz_image_LIBS="$ac_env_quartz_image_LIBS_value"
24150 quartz_image_NONPKGCONFIG_LIBS="$ac_env_quartz_image_NONPKGCONFIG_LIBS_value"
24151 quartz_image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_image_NONPKGCONFIG_EXTRA_LIBS_value"
24152
24153
24154
24155   use_quartz_image=$use_quartz
24156
24157
24158                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz Image surface backend feature could be enabled" >&5
24159 $as_echo_n "checking whether cairo's Quartz Image surface backend feature could be enabled... " >&6; }
24160                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_image" >&5
24161 $as_echo "$use_quartz_image" >&6; }
24162
24163                 if test "x$enable_quartz_image" = "xyes" -a "x$use_quartz_image" != xyes; then :
24164                         as_fn_error $? " Quartz Image surface backend feature could not be enabled" "$LINENO" 5
24165
24166 fi       ;; #(
24167   *) :
24168                         as_fn_error $? "invalid argument passed to --enable-quartz-image: \`$use_quartz_image', should be one of [no/auto/yes]" "$LINENO" 5
24169          ;;
24170 esac
24171         if test "x$use_quartz_image" = "xyes"; then :
24172                                                                                 CAIRO_REQUIRES="$quartz_image_REQUIRES"" ${CAIRO_REQUIRES}"
24173
24174                                                                         CAIRO_CFLAGS="$quartz_image_CFLAGS"" ${CAIRO_CFLAGS}"
24175
24176                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24177
24178                                                                         CAIRO_LIBS="$quartz_image_LIBS"" ${CAIRO_LIBS}"
24179
24180                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24181
24182
24183 else
24184                                         unset quartz_image_BASE
24185 unset quartz_image_REQUIRES
24186 unset quartz_image_CFLAGS
24187 unset quartz_image_NONPKGCONFIG_CFLAGS
24188 unset quartz_image_LIBS
24189 unset quartz_image_NONPKGCONFIG_LIBS
24190 unset quartz_image_NONPKGCONFIG_EXTRA_LIBS
24191
24192
24193 fi
24194
24195                                                          if test "x$use_quartz_image" = xyes; then
24196   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE=
24197   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE='#'
24198 else
24199   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE='#'
24200   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE=
24201 fi
24202
24203
24204                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_IMAGE_SURFACE=0'
24205                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24206 ""$cr_make_tmp"
24207
24208
24209                                                                                 cr_make_tmp=''
24210                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24211 ""$cr_make_tmp"
24212
24213                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24214 ""$cr_make_tmp"
24215                                                                                 cr_make_tmp=''
24216                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24217 ""$cr_make_tmp"
24218
24219                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24220 ""$cr_make_tmp"
24221
24222
24223
24224                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_quartz_image_headers)'
24225                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24226 ""$cr_make_tmp"
24227
24228                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24229 ""$cr_make_tmp"
24230                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)'
24231                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24232 ""$cr_make_tmp"
24233
24234                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24235 ""$cr_make_tmp"
24236
24237
24238                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_image_headers)
24239 all_cairo_private += $(cairo_quartz_image_private)
24240 all_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
24241 all_cairo_sources += $(cairo_quartz_image_sources)'
24242                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24243 ""$cr_make_tmp"
24244
24245                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24246 ""$cr_make_tmp"
24247                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
24248 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
24249 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
24250 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
24251                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24252 ""$cr_make_tmp"
24253
24254                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24255 ""$cr_make_tmp"
24256
24257
24258                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_image_headers)
24259 enabled_cairo_private += $(cairo_quartz_image_private)
24260 enabled_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
24261 enabled_cairo_sources += $(cairo_quartz_image_sources)'
24262                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24263 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
24264                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24265 ""$cr_make_tmp"
24266                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24267 "'endif'
24268
24269                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24270 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
24271                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24272 ""$cr_make_tmp"
24273                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24274 "'endif'
24275                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
24276 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
24277 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
24278 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
24279                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24280 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
24281                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24282 ""$cr_make_tmp"
24283                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24284 "'endif'
24285
24286                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24287 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
24288                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24289 ""$cr_make_tmp"
24290                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24291 "'endif'
24292
24293
24294
24295
24296                                         if test "x$use_quartz_image" = xyes; then :
24297   :
24298                 ac_config_files="$ac_config_files src/cairo-quartz-image.pc:src/cairo-features.pc.in"
24299
24300
24301 fi
24302                                         if test "x$use_quartz_image" = xyes; then :
24303   :
24304                 ac_config_files="$ac_config_files cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24305
24306
24307 fi
24308                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz-image.pc'
24309                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24310 ""$cr_make_tmp"
24311
24312                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24313 ""$cr_make_tmp"
24314
24315
24316                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-image.pc'
24317                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24318 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
24319                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24320 ""$cr_make_tmp"
24321                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24322 "'endif'
24323
24324                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24325 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
24326                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24327 ""$cr_make_tmp"
24328                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24329 "'endif'
24330
24331
24332                                         if test "x$use_quartz_image" = xyes; then :
24333   :
24334                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
24335
24336
24337 fi
24338
24339
24340
24341                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
24342                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24343 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
24344                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24345 ""$cr_make_tmp"
24346                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24347 "'endif'
24348
24349
24350                                         if test "x$use_quartz_image" = xyes; then :
24351   :
24352                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
24353
24354 "'--- The Quartz Image surface backend feature is still under active
24355 --- development and is included in this release only as a preview. It does
24356 --- NOT fully work yet and incompatible changes may yet be made to Quartz
24357 --- Image surface backend specific API.'
24358
24359
24360
24361 fi
24362
24363
24364
24365
24366
24367
24368                                                                                                                                 # Check whether --enable-win32 was given.
24369 if test "${enable_win32+set}" = set; then :
24370   enableval=$enable_win32; enable_win32=$enableval
24371 else
24372   enable_win32=auto
24373 fi
24374
24375                         case $enable_win32 in #(
24376   no) :
24377                 use_win32="no (disabled, use --enable-win32 to enable)"
24378          ;; #(
24379         yes|auto) :
24380                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows surface backend feature" >&5
24381 $as_echo_n "checking for cairo's Microsoft Windows surface backend feature... " >&6; }
24382                 echo
24383
24384                 use_win32=yes
24385                         win32_BASE="cairo"
24386 win32_REQUIRES="$ac_env_win32_REQUIRES_value"
24387 win32_CFLAGS="$ac_env_win32_CFLAGS_value"
24388 win32_NONPKGCONFIG_CFLAGS="$ac_env_win32_NONPKGCONFIG_CFLAGS_value"
24389 win32_LIBS="$ac_env_win32_LIBS_value"
24390 win32_NONPKGCONFIG_LIBS="$ac_env_win32_NONPKGCONFIG_LIBS_value"
24391 win32_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_NONPKGCONFIG_EXTRA_LIBS_value"
24392
24393
24394
24395   if test "x$have_windows" != xyes; then
24396     use_win32="no (requires a Win32 platform)"
24397   fi
24398   win32_LIBS="-lgdi32 -lmsimg32"
24399
24400
24401                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows surface backend feature could be enabled" >&5
24402 $as_echo_n "checking whether cairo's Microsoft Windows surface backend feature could be enabled... " >&6; }
24403                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32" >&5
24404 $as_echo "$use_win32" >&6; }
24405
24406                 if test "x$enable_win32" = "xyes" -a "x$use_win32" != xyes; then :
24407                         as_fn_error $? " Microsoft Windows surface backend feature could not be enabled" "$LINENO" 5
24408
24409 fi       ;; #(
24410   *) :
24411                         as_fn_error $? "invalid argument passed to --enable-win32: \`$use_win32', should be one of [no/auto/yes]" "$LINENO" 5
24412          ;;
24413 esac
24414         if test "x$use_win32" = "xyes"; then :
24415                                                                                 CAIRO_REQUIRES="$win32_REQUIRES"" ${CAIRO_REQUIRES}"
24416
24417                                                                         CAIRO_CFLAGS="$win32_CFLAGS"" ${CAIRO_CFLAGS}"
24418
24419                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$win32_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24420
24421                                                                         CAIRO_LIBS="$win32_LIBS"" ${CAIRO_LIBS}"
24422
24423                                                                         CAIRO_NONPKGCONFIG_LIBS="$win32_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24424
24425
24426 else
24427                                         unset win32_BASE
24428 unset win32_REQUIRES
24429 unset win32_CFLAGS
24430 unset win32_NONPKGCONFIG_CFLAGS
24431 unset win32_LIBS
24432 unset win32_NONPKGCONFIG_LIBS
24433 unset win32_NONPKGCONFIG_EXTRA_LIBS
24434
24435
24436 fi
24437
24438                                                          if test "x$use_win32" = xyes; then
24439   CAIRO_HAS_WIN32_SURFACE_TRUE=
24440   CAIRO_HAS_WIN32_SURFACE_FALSE='#'
24441 else
24442   CAIRO_HAS_WIN32_SURFACE_TRUE='#'
24443   CAIRO_HAS_WIN32_SURFACE_FALSE=
24444 fi
24445
24446
24447                                                                                 cr_make_tmp='CAIRO_HAS_WIN32_SURFACE=1'
24448                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24449 ""$cr_make_tmp"
24450
24451
24452                                                                                 cr_make_tmp=''
24453                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24454 ""$cr_make_tmp"
24455
24456                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24457 ""$cr_make_tmp"
24458                                                                                 cr_make_tmp=''
24459                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24460 ""$cr_make_tmp"
24461
24462                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24463 ""$cr_make_tmp"
24464
24465
24466                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_win32_headers)'
24467                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24468 ""$cr_make_tmp"
24469
24470                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24471 ""$cr_make_tmp"
24472                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)'
24473                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24474 ""$cr_make_tmp"
24475
24476                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24477 ""$cr_make_tmp"
24478
24479
24480
24481                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_win32_headers)
24482 all_cairo_private += $(cairo_win32_private)
24483 all_cairo_cxx_sources += $(cairo_win32_cxx_sources)
24484 all_cairo_sources += $(cairo_win32_sources)'
24485                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24486 ""$cr_make_tmp"
24487
24488                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24489 ""$cr_make_tmp"
24490                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
24491 all_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
24492 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
24493 all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
24494                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24495 ""$cr_make_tmp"
24496
24497                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24498 ""$cr_make_tmp"
24499
24500
24501                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_win32_headers)
24502 enabled_cairo_private += $(cairo_win32_private)
24503 enabled_cairo_cxx_sources += $(cairo_win32_cxx_sources)
24504 enabled_cairo_sources += $(cairo_win32_sources)'
24505                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24506 "'if CAIRO_HAS_WIN32_SURFACE'
24507                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24508 ""$cr_make_tmp"
24509                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24510 "'endif'
24511
24512                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24513 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
24514                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24515 ""$cr_make_tmp"
24516                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24517 "'endif'
24518                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
24519 enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
24520 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
24521 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
24522                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24523 "'if CAIRO_HAS_WIN32_SURFACE'
24524                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24525 ""$cr_make_tmp"
24526                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24527 "'endif'
24528
24529                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24530 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
24531                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24532 ""$cr_make_tmp"
24533                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24534 "'endif'
24535
24536
24537
24538
24539                                         if test "x$use_win32" = xyes; then :
24540   :
24541                 ac_config_files="$ac_config_files src/cairo-win32.pc:src/cairo-features.pc.in"
24542
24543
24544 fi
24545                                         if test "x$use_win32" = xyes; then :
24546   :
24547                 ac_config_files="$ac_config_files cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24548
24549
24550 fi
24551                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-win32.pc'
24552                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24553 ""$cr_make_tmp"
24554
24555                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24556 ""$cr_make_tmp"
24557
24558
24559                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-win32.pc'
24560                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24561 "'if CAIRO_HAS_WIN32_SURFACE'
24562                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24563 ""$cr_make_tmp"
24564                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24565 "'endif'
24566
24567                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24568 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
24569                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24570 ""$cr_make_tmp"
24571                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24572 "'endif'
24573
24574
24575                                         if test "x$use_win32" = xyes; then :
24576   :
24577                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
24578
24579
24580 fi
24581                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
24582
24583
24584
24585                                         if test "x$use_win32" != xyes; then :
24586   :
24587                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
24588
24589
24590
24591 fi
24592
24593                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WIN32_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
24594                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24595 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
24596                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24597 ""$cr_make_tmp"
24598                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24599 "'endif'
24600
24601
24602
24603
24604                                         if test "x$use_win32" = xyes; then :
24605   :
24606                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'win32'
24607
24608
24609
24610 fi
24611
24612
24613
24614                                                                                                                                 # Check whether --enable-win32-font was given.
24615 if test "${enable_win32_font+set}" = set; then :
24616   enableval=$enable_win32_font; enable_win32_font=$enableval
24617 else
24618   enable_win32_font=auto
24619 fi
24620
24621                         case $enable_win32_font in #(
24622   no) :
24623                 use_win32_font="no (disabled, use --enable-win32-font to enable)"
24624          ;; #(
24625         yes|auto) :
24626                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows font backend feature" >&5
24627 $as_echo_n "checking for cairo's Microsoft Windows font backend feature... " >&6; }
24628                 echo
24629
24630                 use_win32_font=yes
24631                         win32_font_BASE="cairo"
24632 win32_font_REQUIRES="$ac_env_win32_font_REQUIRES_value"
24633 win32_font_CFLAGS="$ac_env_win32_font_CFLAGS_value"
24634 win32_font_NONPKGCONFIG_CFLAGS="$ac_env_win32_font_NONPKGCONFIG_CFLAGS_value"
24635 win32_font_LIBS="$ac_env_win32_font_LIBS_value"
24636 win32_font_NONPKGCONFIG_LIBS="$ac_env_win32_font_NONPKGCONFIG_LIBS_value"
24637 win32_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_font_NONPKGCONFIG_EXTRA_LIBS_value"
24638
24639
24640
24641   use_win32_font=$use_win32
24642
24643
24644                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows font backend feature could be enabled" >&5
24645 $as_echo_n "checking whether cairo's Microsoft Windows font backend feature could be enabled... " >&6; }
24646                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32_font" >&5
24647 $as_echo "$use_win32_font" >&6; }
24648
24649                 if test "x$enable_win32_font" = "xyes" -a "x$use_win32_font" != xyes; then :
24650                         as_fn_error $? " Microsoft Windows font backend feature could not be enabled" "$LINENO" 5
24651
24652 fi       ;; #(
24653   *) :
24654                         as_fn_error $? "invalid argument passed to --enable-win32-font: \`$use_win32_font', should be one of [no/auto/yes]" "$LINENO" 5
24655          ;;
24656 esac
24657         if test "x$use_win32_font" = "xyes"; then :
24658                                                                                 CAIRO_REQUIRES="$win32_font_REQUIRES"" ${CAIRO_REQUIRES}"
24659
24660                                                                         CAIRO_CFLAGS="$win32_font_CFLAGS"" ${CAIRO_CFLAGS}"
24661
24662                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$win32_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24663
24664                                                                         CAIRO_LIBS="$win32_font_LIBS"" ${CAIRO_LIBS}"
24665
24666                                                                         CAIRO_NONPKGCONFIG_LIBS="$win32_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24667
24668
24669 else
24670                                         unset win32_font_BASE
24671 unset win32_font_REQUIRES
24672 unset win32_font_CFLAGS
24673 unset win32_font_NONPKGCONFIG_CFLAGS
24674 unset win32_font_LIBS
24675 unset win32_font_NONPKGCONFIG_LIBS
24676 unset win32_font_NONPKGCONFIG_EXTRA_LIBS
24677
24678
24679 fi
24680
24681                                                          if test "x$use_win32_font" = xyes; then
24682   CAIRO_HAS_WIN32_FONT_TRUE=
24683   CAIRO_HAS_WIN32_FONT_FALSE='#'
24684 else
24685   CAIRO_HAS_WIN32_FONT_TRUE='#'
24686   CAIRO_HAS_WIN32_FONT_FALSE=
24687 fi
24688
24689
24690                                                                                 cr_make_tmp='CAIRO_HAS_WIN32_FONT=1'
24691                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24692 ""$cr_make_tmp"
24693
24694
24695                                                                                 cr_make_tmp=''
24696                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24697 ""$cr_make_tmp"
24698
24699                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24700 ""$cr_make_tmp"
24701                                                                                 cr_make_tmp=''
24702                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24703 ""$cr_make_tmp"
24704
24705                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24706 ""$cr_make_tmp"
24707
24708
24709                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_win32_font_headers)'
24710                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24711 ""$cr_make_tmp"
24712
24713                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24714 ""$cr_make_tmp"
24715                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)'
24716                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24717 ""$cr_make_tmp"
24718
24719                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24720 ""$cr_make_tmp"
24721
24722
24723
24724                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_win32_font_headers)
24725 all_cairo_private += $(cairo_win32_font_private)
24726 all_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
24727 all_cairo_sources += $(cairo_win32_font_sources)'
24728                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24729 ""$cr_make_tmp"
24730
24731                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24732 ""$cr_make_tmp"
24733                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
24734 all_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
24735 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
24736 all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
24737                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24738 ""$cr_make_tmp"
24739
24740                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24741 ""$cr_make_tmp"
24742
24743
24744                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_win32_font_headers)
24745 enabled_cairo_private += $(cairo_win32_font_private)
24746 enabled_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
24747 enabled_cairo_sources += $(cairo_win32_font_sources)'
24748                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24749 "'if CAIRO_HAS_WIN32_FONT'
24750                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24751 ""$cr_make_tmp"
24752                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24753 "'endif'
24754
24755                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24756 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
24757                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24758 ""$cr_make_tmp"
24759                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24760 "'endif'
24761                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
24762 enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
24763 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
24764 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
24765                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24766 "'if CAIRO_HAS_WIN32_FONT'
24767                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24768 ""$cr_make_tmp"
24769                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24770 "'endif'
24771
24772                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24773 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
24774                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24775 ""$cr_make_tmp"
24776                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24777 "'endif'
24778
24779
24780
24781
24782                                         if test "x$use_win32_font" = xyes; then :
24783   :
24784                 ac_config_files="$ac_config_files src/cairo-win32-font.pc:src/cairo-features.pc.in"
24785
24786
24787 fi
24788                                         if test "x$use_win32_font" = xyes; then :
24789   :
24790                 ac_config_files="$ac_config_files cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24791
24792
24793 fi
24794                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-win32-font.pc'
24795                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24796 ""$cr_make_tmp"
24797
24798                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24799 ""$cr_make_tmp"
24800
24801
24802                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-win32-font.pc'
24803                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24804 "'if CAIRO_HAS_WIN32_FONT'
24805                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24806 ""$cr_make_tmp"
24807                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24808 "'endif'
24809
24810                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24811 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
24812                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24813 ""$cr_make_tmp"
24814                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24815 "'endif'
24816
24817
24818                                         if test "x$use_win32_font" = xyes; then :
24819   :
24820                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
24821
24822
24823 fi
24824                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_FONT'
24825
24826
24827
24828                                         if test "x$use_win32_font" != xyes; then :
24829   :
24830                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
24831
24832
24833
24834 fi
24835
24836                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WIN32_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
24837                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24838 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
24839                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24840 ""$cr_make_tmp"
24841                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24842 "'endif'
24843
24844
24845
24846
24847
24848                                         if test "x$use_win32_font" = xyes; then :
24849   :
24850                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'win32_font'
24851
24852
24853
24854 fi
24855
24856
24857 test_win32_printing=no
24858 if test "x$use_win32" = "xyes"; then
24859   # Extract the first word of "gs", so it can be a program name with args.
24860 set dummy gs; ac_word=$2
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24862 $as_echo_n "checking for $ac_word... " >&6; }
24863 if ${ac_cv_prog_GS+:} false; then :
24864   $as_echo_n "(cached) " >&6
24865 else
24866   if test -n "$GS"; then
24867   ac_cv_prog_GS="$GS" # Let the user override the test.
24868 else
24869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24870 for as_dir in $PATH
24871 do
24872   IFS=$as_save_IFS
24873   test -z "$as_dir" && as_dir=.
24874     for ac_exec_ext in '' $ac_executable_extensions; do
24875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24876     ac_cv_prog_GS="gs"
24877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24878     break 2
24879   fi
24880 done
24881   done
24882 IFS=$as_save_IFS
24883
24884 fi
24885 fi
24886 GS=$ac_cv_prog_GS
24887 if test -n "$GS"; then
24888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
24889 $as_echo "$GS" >&6; }
24890 else
24891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892 $as_echo "no" >&6; }
24893 fi
24894
24895
24896   if test "$GS"; then
24897
24898 $as_echo "#define CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE 1" >>confdefs.h
24899
24900     test_win32_printing="yes"
24901   else
24902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&5
24903 $as_echo "$as_me: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&2;}
24904     test_win32_printing="no (requires ghostscript)"
24905   fi
24906 fi
24907
24908  if test "x$test_win32_printing" = "xyes"; then
24909   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE=
24910   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE='#'
24911 else
24912   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE='#'
24913   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE=
24914 fi
24915
24916
24917
24918                                                                                                                                 # Check whether --enable-skia was given.
24919 if test "${enable_skia+set}" = set; then :
24920   enableval=$enable_skia; enable_skia=$enableval
24921 else
24922   enable_skia=no
24923 fi
24924
24925                         case $enable_skia in #(
24926   no) :
24927                 use_skia="no (disabled, use --enable-skia to enable)"
24928          ;; #(
24929         yes|auto) :
24930                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Skia surface backend feature" >&5
24931 $as_echo_n "checking for cairo's Skia surface backend feature... " >&6; }
24932                 echo
24933
24934                 use_skia=yes
24935                         skia_BASE="cairo"
24936 skia_REQUIRES="$ac_env_skia_REQUIRES_value"
24937 skia_CFLAGS="$ac_env_skia_CFLAGS_value"
24938 skia_NONPKGCONFIG_CFLAGS="$ac_env_skia_NONPKGCONFIG_CFLAGS_value"
24939 skia_LIBS="$ac_env_skia_LIBS_value"
24940 skia_NONPKGCONFIG_LIBS="$ac_env_skia_NONPKGCONFIG_LIBS_value"
24941 skia_NONPKGCONFIG_EXTRA_LIBS="$ac_env_skia_NONPKGCONFIG_EXTRA_LIBS_value"
24942
24943
24944
24945
24946 # Check whether --with-skia was given.
24947 if test "${with_skia+set}" = set; then :
24948   withval=$with_skia; skia_DIR="$withval"
24949 else
24950   skia_DIR="`pwd`/../skia"
24951 fi
24952
24953
24954 # Check whether --with-skia-bulid was given.
24955 if test "${with_skia_bulid+set}" = set; then :
24956   withval=$with_skia_bulid; skia_BUILD="$withval"
24957 else
24958   skia_BUILD="Release"
24959 fi
24960
24961   skia_NONPKGCONFIG_CFLAGS="-I$skia_DIR/include/config -I$skia_DIR/include/core -I$skia_DIR/include/effects"
24962   if test "x$skia_BUILD" = x"Release"; then
24963         skia_NONPKGCONFIG_CFLAGS="-DSK_RELEASE -DSK_CAN_USE_FLOAT $skia_NONPKGCONFIG_CFLAGS"
24964   fi
24965   skia_NONPKGCONFIG_LIBS="--start-group $skia_DIR/out/$skia_BUILD/obj.target/gyp/libeffects.a $skia_DIR/out/$skia_BUILD/obj.target/gyp/libimages.a $skia_DIR/out/$skia_BUILD/obj.target/gyp/libutils.a $skia_DIR/out/$skia_BUILD/obj.target/gyp/libopts.a $skia_DIR/out/$skia_BUILD/obj.target/gyp/libcore.a -end-group"
24966
24967
24968
24969                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Skia surface backend feature could be enabled" >&5
24970 $as_echo_n "checking whether cairo's Skia surface backend feature could be enabled... " >&6; }
24971                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_skia" >&5
24972 $as_echo "$use_skia" >&6; }
24973
24974                 if test "x$enable_skia" = "xyes" -a "x$use_skia" != xyes; then :
24975                         as_fn_error $? " Skia surface backend feature could not be enabled" "$LINENO" 5
24976
24977 fi       ;; #(
24978   *) :
24979                         as_fn_error $? "invalid argument passed to --enable-skia: \`$use_skia', should be one of [no/auto/yes]" "$LINENO" 5
24980          ;;
24981 esac
24982         if test "x$use_skia" = "xyes"; then :
24983                                                                                 CAIRO_REQUIRES="$skia_REQUIRES"" ${CAIRO_REQUIRES}"
24984
24985                                                                         CAIRO_CFLAGS="$skia_CFLAGS"" ${CAIRO_CFLAGS}"
24986
24987                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$skia_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24988
24989                                                                         CAIRO_LIBS="$skia_LIBS"" ${CAIRO_LIBS}"
24990
24991                                                                         CAIRO_NONPKGCONFIG_LIBS="$skia_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24992
24993
24994 else
24995                                         unset skia_BASE
24996 unset skia_REQUIRES
24997 unset skia_CFLAGS
24998 unset skia_NONPKGCONFIG_CFLAGS
24999 unset skia_LIBS
25000 unset skia_NONPKGCONFIG_LIBS
25001 unset skia_NONPKGCONFIG_EXTRA_LIBS
25002
25003
25004 fi
25005
25006                                                          if test "x$use_skia" = xyes; then
25007   CAIRO_HAS_SKIA_SURFACE_TRUE=
25008   CAIRO_HAS_SKIA_SURFACE_FALSE='#'
25009 else
25010   CAIRO_HAS_SKIA_SURFACE_TRUE='#'
25011   CAIRO_HAS_SKIA_SURFACE_FALSE=
25012 fi
25013
25014
25015                                                                                 cr_make_tmp='CAIRO_HAS_SKIA_SURFACE=0'
25016                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25017 ""$cr_make_tmp"
25018
25019
25020                                                                                 cr_make_tmp=''
25021                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25022 ""$cr_make_tmp"
25023
25024                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25025 ""$cr_make_tmp"
25026                                                                                 cr_make_tmp=''
25027                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25028 ""$cr_make_tmp"
25029
25030                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25031 ""$cr_make_tmp"
25032
25033
25034
25035                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_skia_headers)'
25036                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25037 ""$cr_make_tmp"
25038
25039                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25040 ""$cr_make_tmp"
25041                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)'
25042                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25043 ""$cr_make_tmp"
25044
25045                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25046 ""$cr_make_tmp"
25047
25048
25049                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_skia_headers)
25050 all_cairo_private += $(cairo_skia_private)
25051 all_cairo_cxx_sources += $(cairo_skia_cxx_sources)
25052 all_cairo_sources += $(cairo_skia_sources)'
25053                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25054 ""$cr_make_tmp"
25055
25056                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25057 ""$cr_make_tmp"
25058                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)
25059 all_cairo_boilerplate_private += $(cairo_boilerplate_skia_private)
25060 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_skia_cxx_sources)
25061 all_cairo_boilerplate_sources += $(cairo_boilerplate_skia_sources)'
25062                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25063 ""$cr_make_tmp"
25064
25065                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25066 ""$cr_make_tmp"
25067
25068
25069                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_skia_headers)
25070 enabled_cairo_private += $(cairo_skia_private)
25071 enabled_cairo_cxx_sources += $(cairo_skia_cxx_sources)
25072 enabled_cairo_sources += $(cairo_skia_sources)'
25073                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25074 "'if CAIRO_HAS_SKIA_SURFACE'
25075                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25076 ""$cr_make_tmp"
25077                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25078 "'endif'
25079
25080                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25081 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
25082                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25083 ""$cr_make_tmp"
25084                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25085 "'endif'
25086                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)
25087 enabled_cairo_boilerplate_private += $(cairo_boilerplate_skia_private)
25088 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_skia_cxx_sources)
25089 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_skia_sources)'
25090                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25091 "'if CAIRO_HAS_SKIA_SURFACE'
25092                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25093 ""$cr_make_tmp"
25094                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25095 "'endif'
25096
25097                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25098 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
25099                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25100 ""$cr_make_tmp"
25101                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25102 "'endif'
25103
25104
25105
25106
25107                                         if test "x$use_skia" = xyes; then :
25108   :
25109                 ac_config_files="$ac_config_files src/cairo-skia.pc:src/cairo-features.pc.in"
25110
25111
25112 fi
25113                                         if test "x$use_skia" = xyes; then :
25114   :
25115                 ac_config_files="$ac_config_files cairo-skia-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25116
25117
25118 fi
25119                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-skia.pc'
25120                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25121 ""$cr_make_tmp"
25122
25123                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25124 ""$cr_make_tmp"
25125
25126
25127                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-skia.pc'
25128                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25129 "'if CAIRO_HAS_SKIA_SURFACE'
25130                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25131 ""$cr_make_tmp"
25132                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25133 "'endif'
25134
25135                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25136 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
25137                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25138 ""$cr_make_tmp"
25139                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25140 "'endif'
25141
25142
25143                                         if test "x$use_skia" = xyes; then :
25144   :
25145                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SKIA_SURFACE'
25146
25147
25148 fi
25149
25150
25151
25152                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SKIA_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25153                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25154 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
25155                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25156 ""$cr_make_tmp"
25157                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25158 "'endif'
25159
25160
25161                                         if test "x$use_skia" = xyes; then :
25162   :
25163                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25164
25165 "'--- The Skia surface backend feature is still under active development and is
25166 --- included in this release only as a preview. It does NOT fully work yet
25167 --- and incompatible changes may yet be made to Skia surface backend specific
25168 --- API.'
25169
25170
25171
25172 fi
25173
25174
25175
25176
25177
25178
25179                                                                                                                                 # Check whether --enable-os2 was given.
25180 if test "${enable_os2+set}" = set; then :
25181   enableval=$enable_os2; enable_os2=$enableval
25182 else
25183   enable_os2=no
25184 fi
25185
25186                         case $enable_os2 in #(
25187   no) :
25188                 use_os2="no (disabled, use --enable-os2 to enable)"
25189          ;; #(
25190         yes|auto) :
25191                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OS/2 surface backend feature" >&5
25192 $as_echo_n "checking for cairo's OS/2 surface backend feature... " >&6; }
25193                 echo
25194
25195                 use_os2=yes
25196                         os2_BASE="cairo"
25197 os2_REQUIRES="$ac_env_os2_REQUIRES_value"
25198 os2_CFLAGS="$ac_env_os2_CFLAGS_value"
25199 os2_NONPKGCONFIG_CFLAGS="$ac_env_os2_NONPKGCONFIG_CFLAGS_value"
25200 os2_LIBS="$ac_env_os2_LIBS_value"
25201 os2_NONPKGCONFIG_LIBS="$ac_env_os2_NONPKGCONFIG_LIBS_value"
25202 os2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_os2_NONPKGCONFIG_EXTRA_LIBS_value"
25203
25204
25205
25206   case "$host" in
25207     *-*-os2*)
25208       :
25209       ;;
25210     *)
25211       use_os2="no (requires an OS/2 platform)"
25212       ;;
25213   esac
25214
25215
25216                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OS/2 surface backend feature could be enabled" >&5
25217 $as_echo_n "checking whether cairo's OS/2 surface backend feature could be enabled... " >&6; }
25218                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_os2" >&5
25219 $as_echo "$use_os2" >&6; }
25220
25221                 if test "x$enable_os2" = "xyes" -a "x$use_os2" != xyes; then :
25222                         as_fn_error $? " OS/2 surface backend feature could not be enabled" "$LINENO" 5
25223
25224 fi       ;; #(
25225   *) :
25226                         as_fn_error $? "invalid argument passed to --enable-os2: \`$use_os2', should be one of [no/auto/yes]" "$LINENO" 5
25227          ;;
25228 esac
25229         if test "x$use_os2" = "xyes"; then :
25230                                                                                 CAIRO_REQUIRES="$os2_REQUIRES"" ${CAIRO_REQUIRES}"
25231
25232                                                                         CAIRO_CFLAGS="$os2_CFLAGS"" ${CAIRO_CFLAGS}"
25233
25234                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$os2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25235
25236                                                                         CAIRO_LIBS="$os2_LIBS"" ${CAIRO_LIBS}"
25237
25238                                                                         CAIRO_NONPKGCONFIG_LIBS="$os2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25239
25240
25241 else
25242                                         unset os2_BASE
25243 unset os2_REQUIRES
25244 unset os2_CFLAGS
25245 unset os2_NONPKGCONFIG_CFLAGS
25246 unset os2_LIBS
25247 unset os2_NONPKGCONFIG_LIBS
25248 unset os2_NONPKGCONFIG_EXTRA_LIBS
25249
25250
25251 fi
25252
25253                                                          if test "x$use_os2" = xyes; then
25254   CAIRO_HAS_OS2_SURFACE_TRUE=
25255   CAIRO_HAS_OS2_SURFACE_FALSE='#'
25256 else
25257   CAIRO_HAS_OS2_SURFACE_TRUE='#'
25258   CAIRO_HAS_OS2_SURFACE_FALSE=
25259 fi
25260
25261
25262                                                                                 cr_make_tmp='CAIRO_HAS_OS2_SURFACE=0'
25263                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25264 ""$cr_make_tmp"
25265
25266
25267                                                                                 cr_make_tmp=''
25268                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25269 ""$cr_make_tmp"
25270
25271                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25272 ""$cr_make_tmp"
25273                                                                                 cr_make_tmp=''
25274                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25275 ""$cr_make_tmp"
25276
25277                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25278 ""$cr_make_tmp"
25279
25280
25281
25282                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_os2_headers)'
25283                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25284 ""$cr_make_tmp"
25285
25286                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25287 ""$cr_make_tmp"
25288                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)'
25289                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25290 ""$cr_make_tmp"
25291
25292                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25293 ""$cr_make_tmp"
25294
25295
25296                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_os2_headers)
25297 all_cairo_private += $(cairo_os2_private)
25298 all_cairo_cxx_sources += $(cairo_os2_cxx_sources)
25299 all_cairo_sources += $(cairo_os2_sources)'
25300                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25301 ""$cr_make_tmp"
25302
25303                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25304 ""$cr_make_tmp"
25305                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
25306 all_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
25307 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
25308 all_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
25309                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25310 ""$cr_make_tmp"
25311
25312                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25313 ""$cr_make_tmp"
25314
25315
25316                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_os2_headers)
25317 enabled_cairo_private += $(cairo_os2_private)
25318 enabled_cairo_cxx_sources += $(cairo_os2_cxx_sources)
25319 enabled_cairo_sources += $(cairo_os2_sources)'
25320                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25321 "'if CAIRO_HAS_OS2_SURFACE'
25322                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25323 ""$cr_make_tmp"
25324                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25325 "'endif'
25326
25327                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25328 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
25329                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25330 ""$cr_make_tmp"
25331                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25332 "'endif'
25333                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
25334 enabled_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
25335 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
25336 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
25337                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25338 "'if CAIRO_HAS_OS2_SURFACE'
25339                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25340 ""$cr_make_tmp"
25341                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25342 "'endif'
25343
25344                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25345 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
25346                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25347 ""$cr_make_tmp"
25348                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25349 "'endif'
25350
25351
25352
25353
25354                                         if test "x$use_os2" = xyes; then :
25355   :
25356                 ac_config_files="$ac_config_files src/cairo-os2.pc:src/cairo-features.pc.in"
25357
25358
25359 fi
25360                                         if test "x$use_os2" = xyes; then :
25361   :
25362                 ac_config_files="$ac_config_files cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25363
25364
25365 fi
25366                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-os2.pc'
25367                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25368 ""$cr_make_tmp"
25369
25370                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25371 ""$cr_make_tmp"
25372
25373
25374                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-os2.pc'
25375                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25376 "'if CAIRO_HAS_OS2_SURFACE'
25377                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25378 ""$cr_make_tmp"
25379                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25380 "'endif'
25381
25382                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25383 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
25384                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25385 ""$cr_make_tmp"
25386                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25387 "'endif'
25388
25389
25390                                         if test "x$use_os2" = xyes; then :
25391   :
25392                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OS2_SURFACE'
25393
25394
25395 fi
25396
25397
25398
25399                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_OS2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25400                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25401 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
25402                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25403 ""$cr_make_tmp"
25404                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25405 "'endif'
25406
25407
25408                                         if test "x$use_os2" = xyes; then :
25409   :
25410                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25411
25412 "'--- The OS/2 surface backend feature is still under active development and is
25413 --- included in this release only as a preview. It does NOT fully work yet
25414 --- and incompatible changes may yet be made to OS/2 surface backend specific
25415 --- API.'
25416
25417
25418
25419 fi
25420
25421
25422
25423
25424
25425
25426                                                                                                                                 # Check whether --enable-beos was given.
25427 if test "${enable_beos+set}" = set; then :
25428   enableval=$enable_beos; enable_beos=$enableval
25429 else
25430   enable_beos=no
25431 fi
25432
25433                         case $enable_beos in #(
25434   no) :
25435                 use_beos="no (disabled, use --enable-beos to enable)"
25436          ;; #(
25437         yes|auto) :
25438                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's BeOS/Zeta surface backend feature" >&5
25439 $as_echo_n "checking for cairo's BeOS/Zeta surface backend feature... " >&6; }
25440                 echo
25441
25442                 use_beos=yes
25443                         beos_BASE="cairo"
25444 beos_REQUIRES="$ac_env_beos_REQUIRES_value"
25445 beos_CFLAGS="$ac_env_beos_CFLAGS_value"
25446 beos_NONPKGCONFIG_CFLAGS="$ac_env_beos_NONPKGCONFIG_CFLAGS_value"
25447 beos_LIBS="$ac_env_beos_LIBS_value"
25448 beos_NONPKGCONFIG_LIBS="$ac_env_beos_NONPKGCONFIG_LIBS_value"
25449 beos_NONPKGCONFIG_EXTRA_LIBS="$ac_env_beos_NONPKGCONFIG_EXTRA_LIBS_value"
25450
25451
25452
25453   case "$host" in
25454     *-*-beos)
25455       beos_LIBS=""
25456             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbe" >&5
25457 $as_echo_n "checking for main in -lbe... " >&6; }
25458 if ${ac_cv_lib_be_main+:} false; then :
25459   $as_echo_n "(cached) " >&6
25460 else
25461   ac_check_lib_save_LIBS=$LIBS
25462 LIBS="-lbe  $LIBS"
25463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464 /* end confdefs.h.  */
25465
25466
25467 int
25468 main ()
25469 {
25470 return main ();
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 if ac_fn_c_try_link "$LINENO"; then :
25476   ac_cv_lib_be_main=yes
25477 else
25478   ac_cv_lib_be_main=no
25479 fi
25480 rm -f core conftest.err conftest.$ac_objext \
25481     conftest$ac_exeext conftest.$ac_ext
25482 LIBS=$ac_check_lib_save_LIBS
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_main" >&5
25485 $as_echo "$ac_cv_lib_be_main" >&6; }
25486 if test "x$ac_cv_lib_be_main" = xyes; then :
25487   beos_LIBS="$beos_LIBS -lbe"
25488 fi
25489
25490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzeta" >&5
25491 $as_echo_n "checking for main in -lzeta... " >&6; }
25492 if ${ac_cv_lib_zeta_main+:} false; then :
25493   $as_echo_n "(cached) " >&6
25494 else
25495   ac_check_lib_save_LIBS=$LIBS
25496 LIBS="-lzeta  $LIBS"
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h.  */
25499
25500
25501 int
25502 main ()
25503 {
25504 return main ();
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 if ac_fn_c_try_link "$LINENO"; then :
25510   ac_cv_lib_zeta_main=yes
25511 else
25512   ac_cv_lib_zeta_main=no
25513 fi
25514 rm -f core conftest.err conftest.$ac_objext \
25515     conftest$ac_exeext conftest.$ac_ext
25516 LIBS=$ac_check_lib_save_LIBS
25517 fi
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zeta_main" >&5
25519 $as_echo "$ac_cv_lib_zeta_main" >&6; }
25520 if test "x$ac_cv_lib_zeta_main" = xyes; then :
25521   beos_LIBS="$beos_LIBS -lzeta"
25522 fi
25523
25524       ;;
25525     *)
25526       use_beos="no (requires a BeOS platform)"
25527       ;;
25528   esac
25529
25530
25531                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's BeOS/Zeta surface backend feature could be enabled" >&5
25532 $as_echo_n "checking whether cairo's BeOS/Zeta surface backend feature could be enabled... " >&6; }
25533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_beos" >&5
25534 $as_echo "$use_beos" >&6; }
25535
25536                 if test "x$enable_beos" = "xyes" -a "x$use_beos" != xyes; then :
25537                         as_fn_error $? " BeOS/Zeta surface backend feature could not be enabled" "$LINENO" 5
25538
25539 fi       ;; #(
25540   *) :
25541                         as_fn_error $? "invalid argument passed to --enable-beos: \`$use_beos', should be one of [no/auto/yes]" "$LINENO" 5
25542          ;;
25543 esac
25544         if test "x$use_beos" = "xyes"; then :
25545                                                                                 CAIRO_REQUIRES="$beos_REQUIRES"" ${CAIRO_REQUIRES}"
25546
25547                                                                         CAIRO_CFLAGS="$beos_CFLAGS"" ${CAIRO_CFLAGS}"
25548
25549                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$beos_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25550
25551                                                                         CAIRO_LIBS="$beos_LIBS"" ${CAIRO_LIBS}"
25552
25553                                                                         CAIRO_NONPKGCONFIG_LIBS="$beos_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25554
25555
25556 else
25557                                         unset beos_BASE
25558 unset beos_REQUIRES
25559 unset beos_CFLAGS
25560 unset beos_NONPKGCONFIG_CFLAGS
25561 unset beos_LIBS
25562 unset beos_NONPKGCONFIG_LIBS
25563 unset beos_NONPKGCONFIG_EXTRA_LIBS
25564
25565
25566 fi
25567
25568                                                          if test "x$use_beos" = xyes; then
25569   CAIRO_HAS_BEOS_SURFACE_TRUE=
25570   CAIRO_HAS_BEOS_SURFACE_FALSE='#'
25571 else
25572   CAIRO_HAS_BEOS_SURFACE_TRUE='#'
25573   CAIRO_HAS_BEOS_SURFACE_FALSE=
25574 fi
25575
25576
25577                                                                                 cr_make_tmp='CAIRO_HAS_BEOS_SURFACE=0'
25578                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25579 ""$cr_make_tmp"
25580
25581
25582                                                                                 cr_make_tmp=''
25583                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25584 ""$cr_make_tmp"
25585
25586                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25587 ""$cr_make_tmp"
25588                                                                                 cr_make_tmp=''
25589                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25590 ""$cr_make_tmp"
25591
25592                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25593 ""$cr_make_tmp"
25594
25595
25596
25597                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_beos_headers)'
25598                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25599 ""$cr_make_tmp"
25600
25601                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25602 ""$cr_make_tmp"
25603                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)'
25604                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25605 ""$cr_make_tmp"
25606
25607                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25608 ""$cr_make_tmp"
25609
25610
25611                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_beos_headers)
25612 all_cairo_private += $(cairo_beos_private)
25613 all_cairo_cxx_sources += $(cairo_beos_cxx_sources)
25614 all_cairo_sources += $(cairo_beos_sources)'
25615                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25616 ""$cr_make_tmp"
25617
25618                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25619 ""$cr_make_tmp"
25620                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
25621 all_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
25622 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
25623 all_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
25624                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25625 ""$cr_make_tmp"
25626
25627                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25628 ""$cr_make_tmp"
25629
25630
25631                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_beos_headers)
25632 enabled_cairo_private += $(cairo_beos_private)
25633 enabled_cairo_cxx_sources += $(cairo_beos_cxx_sources)
25634 enabled_cairo_sources += $(cairo_beos_sources)'
25635                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25636 "'if CAIRO_HAS_BEOS_SURFACE'
25637                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25638 ""$cr_make_tmp"
25639                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25640 "'endif'
25641
25642                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25643 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
25644                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25645 ""$cr_make_tmp"
25646                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25647 "'endif'
25648                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
25649 enabled_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
25650 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
25651 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
25652                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25653 "'if CAIRO_HAS_BEOS_SURFACE'
25654                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25655 ""$cr_make_tmp"
25656                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25657 "'endif'
25658
25659                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25660 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
25661                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25662 ""$cr_make_tmp"
25663                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25664 "'endif'
25665
25666
25667
25668
25669                                         if test "x$use_beos" = xyes; then :
25670   :
25671                 ac_config_files="$ac_config_files src/cairo-beos.pc:src/cairo-features.pc.in"
25672
25673
25674 fi
25675                                         if test "x$use_beos" = xyes; then :
25676   :
25677                 ac_config_files="$ac_config_files cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25678
25679
25680 fi
25681                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-beos.pc'
25682                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25683 ""$cr_make_tmp"
25684
25685                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25686 ""$cr_make_tmp"
25687
25688
25689                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-beos.pc'
25690                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25691 "'if CAIRO_HAS_BEOS_SURFACE'
25692                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25693 ""$cr_make_tmp"
25694                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25695 "'endif'
25696
25697                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25698 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
25699                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25700 ""$cr_make_tmp"
25701                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25702 "'endif'
25703
25704
25705                                         if test "x$use_beos" = xyes; then :
25706   :
25707                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_BEOS_SURFACE'
25708
25709
25710 fi
25711
25712
25713
25714                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_BEOS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25715                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25716 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
25717                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25718 ""$cr_make_tmp"
25719                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25720 "'endif'
25721
25722
25723                                         if test "x$use_beos" = xyes; then :
25724   :
25725                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25726
25727 "'--- The BeOS/Zeta surface backend feature is still under active development
25728 --- and is included in this release only as a preview. It does NOT fully work
25729 --- yet and incompatible changes may yet be made to BeOS/Zeta surface backend
25730 --- specific API.'
25731
25732
25733
25734 fi
25735
25736
25737
25738
25739
25740
25741                                                                                                                                 # Check whether --enable-drm was given.
25742 if test "${enable_drm+set}" = set; then :
25743   enableval=$enable_drm; enable_drm=$enableval
25744 else
25745   enable_drm=no
25746 fi
25747
25748                         case $enable_drm in #(
25749   no) :
25750                 use_drm="no (disabled, use --enable-drm to enable)"
25751          ;; #(
25752         yes|auto) :
25753                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's DRM surface backend feature" >&5
25754 $as_echo_n "checking for cairo's DRM surface backend feature... " >&6; }
25755                 echo
25756
25757                 use_drm=yes
25758                         drm_BASE="cairo"
25759 drm_REQUIRES="$ac_env_drm_REQUIRES_value"
25760 drm_CFLAGS="$ac_env_drm_CFLAGS_value"
25761 drm_NONPKGCONFIG_CFLAGS="$ac_env_drm_NONPKGCONFIG_CFLAGS_value"
25762 drm_LIBS="$ac_env_drm_LIBS_value"
25763 drm_NONPKGCONFIG_LIBS="$ac_env_drm_NONPKGCONFIG_LIBS_value"
25764 drm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_drm_NONPKGCONFIG_EXTRA_LIBS_value"
25765
25766
25767
25768   drm_REQUIRES="libudev >= 136"
25769
25770 pkg_failed=no
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for drm" >&5
25772 $as_echo_n "checking for drm... " >&6; }
25773
25774 if test -n "$drm_CFLAGS"; then
25775     pkg_cv_drm_CFLAGS="$drm_CFLAGS"
25776  elif test -n "$PKG_CONFIG"; then
25777     if test -n "$PKG_CONFIG" && \
25778     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
25779   ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
25780   ac_status=$?
25781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25782   test $ac_status = 0; }; then
25783   pkg_cv_drm_CFLAGS=`$PKG_CONFIG --cflags "$drm_REQUIRES" 2>/dev/null`
25784 else
25785   pkg_failed=yes
25786 fi
25787  else
25788     pkg_failed=untried
25789 fi
25790 if test -n "$drm_LIBS"; then
25791     pkg_cv_drm_LIBS="$drm_LIBS"
25792  elif test -n "$PKG_CONFIG"; then
25793     if test -n "$PKG_CONFIG" && \
25794     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
25795   ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
25796   ac_status=$?
25797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798   test $ac_status = 0; }; then
25799   pkg_cv_drm_LIBS=`$PKG_CONFIG --libs "$drm_REQUIRES" 2>/dev/null`
25800 else
25801   pkg_failed=yes
25802 fi
25803  else
25804     pkg_failed=untried
25805 fi
25806
25807
25808
25809 if test $pkg_failed = yes; then
25810
25811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25812         _pkg_short_errors_supported=yes
25813 else
25814         _pkg_short_errors_supported=no
25815 fi
25816         if test $_pkg_short_errors_supported = yes; then
25817                 drm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$drm_REQUIRES" 2>&1`
25818         else
25819                 drm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$drm_REQUIRES" 2>&1`
25820         fi
25821         # Put the nasty error message in config.log where it belongs
25822         echo "$drm_PKG_ERRORS" >&5
25823
25824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25825 $as_echo "no" >&6; }
25826                 use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
25827 elif test $pkg_failed = untried; then
25828         use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
25829 else
25830         drm_CFLAGS=$pkg_cv_drm_CFLAGS
25831         drm_LIBS=$pkg_cv_drm_LIBS
25832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25833 $as_echo "yes" >&6; }
25834         :
25835 fi
25836
25837
25838                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's DRM surface backend feature could be enabled" >&5
25839 $as_echo_n "checking whether cairo's DRM surface backend feature could be enabled... " >&6; }
25840                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_drm" >&5
25841 $as_echo "$use_drm" >&6; }
25842
25843                 if test "x$enable_drm" = "xyes" -a "x$use_drm" != xyes; then :
25844                         as_fn_error $? " DRM surface backend feature could not be enabled" "$LINENO" 5
25845
25846 fi       ;; #(
25847   *) :
25848                         as_fn_error $? "invalid argument passed to --enable-drm: \`$use_drm', should be one of [no/auto/yes]" "$LINENO" 5
25849          ;;
25850 esac
25851         if test "x$use_drm" = "xyes"; then :
25852                                                                                 CAIRO_REQUIRES="$drm_REQUIRES"" ${CAIRO_REQUIRES}"
25853
25854                                                                         CAIRO_CFLAGS="$drm_CFLAGS"" ${CAIRO_CFLAGS}"
25855
25856                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$drm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25857
25858                                                                         CAIRO_LIBS="$drm_LIBS"" ${CAIRO_LIBS}"
25859
25860                                                                         CAIRO_NONPKGCONFIG_LIBS="$drm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25861
25862
25863 else
25864                                         unset drm_BASE
25865 unset drm_REQUIRES
25866 unset drm_CFLAGS
25867 unset drm_NONPKGCONFIG_CFLAGS
25868 unset drm_LIBS
25869 unset drm_NONPKGCONFIG_LIBS
25870 unset drm_NONPKGCONFIG_EXTRA_LIBS
25871
25872
25873 fi
25874
25875                                                          if test "x$use_drm" = xyes; then
25876   CAIRO_HAS_DRM_SURFACE_TRUE=
25877   CAIRO_HAS_DRM_SURFACE_FALSE='#'
25878 else
25879   CAIRO_HAS_DRM_SURFACE_TRUE='#'
25880   CAIRO_HAS_DRM_SURFACE_FALSE=
25881 fi
25882
25883
25884                                                                                 cr_make_tmp='CAIRO_HAS_DRM_SURFACE=0'
25885                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25886 ""$cr_make_tmp"
25887
25888
25889                                                                                 cr_make_tmp=''
25890                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25891 ""$cr_make_tmp"
25892
25893                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25894 ""$cr_make_tmp"
25895                                                                                 cr_make_tmp=''
25896                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25897 ""$cr_make_tmp"
25898
25899                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25900 ""$cr_make_tmp"
25901
25902
25903
25904                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_drm_headers)'
25905                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25906 ""$cr_make_tmp"
25907
25908                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25909 ""$cr_make_tmp"
25910                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)'
25911                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25912 ""$cr_make_tmp"
25913
25914                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25915 ""$cr_make_tmp"
25916
25917
25918                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_drm_headers)
25919 all_cairo_private += $(cairo_drm_private)
25920 all_cairo_cxx_sources += $(cairo_drm_cxx_sources)
25921 all_cairo_sources += $(cairo_drm_sources)'
25922                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25923 ""$cr_make_tmp"
25924
25925                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25926 ""$cr_make_tmp"
25927                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
25928 all_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
25929 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
25930 all_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
25931                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25932 ""$cr_make_tmp"
25933
25934                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25935 ""$cr_make_tmp"
25936
25937
25938                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_drm_headers)
25939 enabled_cairo_private += $(cairo_drm_private)
25940 enabled_cairo_cxx_sources += $(cairo_drm_cxx_sources)
25941 enabled_cairo_sources += $(cairo_drm_sources)'
25942                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25943 "'if CAIRO_HAS_DRM_SURFACE'
25944                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25945 ""$cr_make_tmp"
25946                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25947 "'endif'
25948
25949                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25950 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
25951                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25952 ""$cr_make_tmp"
25953                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25954 "'endif'
25955                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
25956 enabled_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
25957 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
25958 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
25959                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25960 "'if CAIRO_HAS_DRM_SURFACE'
25961                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25962 ""$cr_make_tmp"
25963                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25964 "'endif'
25965
25966                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25967 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
25968                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25969 ""$cr_make_tmp"
25970                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25971 "'endif'
25972
25973
25974
25975
25976                                         if test "x$use_drm" = xyes; then :
25977   :
25978                 ac_config_files="$ac_config_files src/cairo-drm.pc:src/cairo-features.pc.in"
25979
25980
25981 fi
25982                                         if test "x$use_drm" = xyes; then :
25983   :
25984                 ac_config_files="$ac_config_files cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25985
25986
25987 fi
25988                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-drm.pc'
25989                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25990 ""$cr_make_tmp"
25991
25992                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25993 ""$cr_make_tmp"
25994
25995
25996                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-drm.pc'
25997                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25998 "'if CAIRO_HAS_DRM_SURFACE'
25999                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26000 ""$cr_make_tmp"
26001                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26002 "'endif'
26003
26004                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26005 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
26006                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26007 ""$cr_make_tmp"
26008                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26009 "'endif'
26010
26011
26012                                         if test "x$use_drm" = xyes; then :
26013   :
26014                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DRM_SURFACE'
26015
26016
26017 fi
26018
26019
26020
26021                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_DRM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26022                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26023 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
26024                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26025 ""$cr_make_tmp"
26026                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26027 "'endif'
26028
26029
26030                                         if test "x$use_drm" = xyes; then :
26031   :
26032                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26033
26034 "'--- The DRM surface backend feature is still under active development and is
26035 --- included in this release only as a preview. It does NOT fully work yet
26036 --- and incompatible changes may yet be made to DRM surface backend specific
26037 --- API.'
26038
26039
26040
26041 fi
26042
26043
26044
26045
26046
26047                                                                                                                                 # Check whether --enable-gallium was given.
26048 if test "${enable_gallium+set}" = set; then :
26049   enableval=$enable_gallium; enable_gallium=$enableval
26050 else
26051   enable_gallium=no
26052 fi
26053
26054                         case $enable_gallium in #(
26055   no) :
26056                 use_gallium="no (disabled, use --enable-gallium to enable)"
26057          ;; #(
26058         yes|auto) :
26059                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Gallium3D surface backend feature" >&5
26060 $as_echo_n "checking for cairo's Gallium3D surface backend feature... " >&6; }
26061                 echo
26062
26063                 use_gallium=yes
26064                         gallium_BASE="cairo"
26065 gallium_REQUIRES="$ac_env_gallium_REQUIRES_value"
26066 gallium_CFLAGS="$ac_env_gallium_CFLAGS_value"
26067 gallium_NONPKGCONFIG_CFLAGS="$ac_env_gallium_NONPKGCONFIG_CFLAGS_value"
26068 gallium_LIBS="$ac_env_gallium_LIBS_value"
26069 gallium_NONPKGCONFIG_LIBS="$ac_env_gallium_NONPKGCONFIG_LIBS_value"
26070 gallium_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gallium_NONPKGCONFIG_EXTRA_LIBS_value"
26071
26072
26073
26074   if test "x$use_drm" = "xyes"; then
26075
26076 # Check whether --with-gallium was given.
26077 if test "${with_gallium+set}" = set; then :
26078   withval=$with_gallium; mesa_DIR="$withval"
26079 else
26080   mesa_DIR="`pwd`/../mesa"
26081 fi
26082
26083       gallium_DIR="$mesa_DIR/src/gallium"
26084       gallium_NONPKGCONFIG_CFLAGS="-I$mesa_DIR/include -I$mesa_DIR/src/mesa -I$gallium_DIR/include -I$gallium_DIR/auxiliary"
26085       gallium_NONPKGCONFIG_LIBS="-lGL"
26086
26087
26088   else
26089     use_gallium="no (requires --enable-drm)"
26090   fi
26091
26092
26093                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Gallium3D surface backend feature could be enabled" >&5
26094 $as_echo_n "checking whether cairo's Gallium3D surface backend feature could be enabled... " >&6; }
26095                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gallium" >&5
26096 $as_echo "$use_gallium" >&6; }
26097
26098                 if test "x$enable_gallium" = "xyes" -a "x$use_gallium" != xyes; then :
26099                         as_fn_error $? " Gallium3D surface backend feature could not be enabled" "$LINENO" 5
26100
26101 fi       ;; #(
26102   *) :
26103                         as_fn_error $? "invalid argument passed to --enable-gallium: \`$use_gallium', should be one of [no/auto/yes]" "$LINENO" 5
26104          ;;
26105 esac
26106         if test "x$use_gallium" = "xyes"; then :
26107                                                                                 CAIRO_REQUIRES="$gallium_REQUIRES"" ${CAIRO_REQUIRES}"
26108
26109                                                                         CAIRO_CFLAGS="$gallium_CFLAGS"" ${CAIRO_CFLAGS}"
26110
26111                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gallium_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26112
26113                                                                         CAIRO_LIBS="$gallium_LIBS"" ${CAIRO_LIBS}"
26114
26115                                                                         CAIRO_NONPKGCONFIG_LIBS="$gallium_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26116
26117
26118 else
26119                                         unset gallium_BASE
26120 unset gallium_REQUIRES
26121 unset gallium_CFLAGS
26122 unset gallium_NONPKGCONFIG_CFLAGS
26123 unset gallium_LIBS
26124 unset gallium_NONPKGCONFIG_LIBS
26125 unset gallium_NONPKGCONFIG_EXTRA_LIBS
26126
26127
26128 fi
26129
26130                                                          if test "x$use_gallium" = xyes; then
26131   CAIRO_HAS_GALLIUM_SURFACE_TRUE=
26132   CAIRO_HAS_GALLIUM_SURFACE_FALSE='#'
26133 else
26134   CAIRO_HAS_GALLIUM_SURFACE_TRUE='#'
26135   CAIRO_HAS_GALLIUM_SURFACE_FALSE=
26136 fi
26137
26138
26139                                                                                 cr_make_tmp='CAIRO_HAS_GALLIUM_SURFACE=0'
26140                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26141 ""$cr_make_tmp"
26142
26143
26144                                                                                 cr_make_tmp=''
26145                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26146 ""$cr_make_tmp"
26147
26148                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26149 ""$cr_make_tmp"
26150                                                                                 cr_make_tmp=''
26151                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26152 ""$cr_make_tmp"
26153
26154                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26155 ""$cr_make_tmp"
26156
26157
26158
26159                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_gallium_headers)'
26160                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26161 ""$cr_make_tmp"
26162
26163                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26164 ""$cr_make_tmp"
26165                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)'
26166                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26167 ""$cr_make_tmp"
26168
26169                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26170 ""$cr_make_tmp"
26171
26172
26173                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gallium_headers)
26174 all_cairo_private += $(cairo_gallium_private)
26175 all_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
26176 all_cairo_sources += $(cairo_gallium_sources)'
26177                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26178 ""$cr_make_tmp"
26179
26180                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26181 ""$cr_make_tmp"
26182                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
26183 all_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
26184 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
26185 all_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
26186                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26187 ""$cr_make_tmp"
26188
26189                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26190 ""$cr_make_tmp"
26191
26192
26193                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gallium_headers)
26194 enabled_cairo_private += $(cairo_gallium_private)
26195 enabled_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
26196 enabled_cairo_sources += $(cairo_gallium_sources)'
26197                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26198 "'if CAIRO_HAS_GALLIUM_SURFACE'
26199                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26200 ""$cr_make_tmp"
26201                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26202 "'endif'
26203
26204                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26205 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
26206                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26207 ""$cr_make_tmp"
26208                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26209 "'endif'
26210                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
26211 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
26212 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
26213 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
26214                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26215 "'if CAIRO_HAS_GALLIUM_SURFACE'
26216                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26217 ""$cr_make_tmp"
26218                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26219 "'endif'
26220
26221                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26222 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
26223                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26224 ""$cr_make_tmp"
26225                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26226 "'endif'
26227
26228
26229
26230
26231                                         if test "x$use_gallium" = xyes; then :
26232   :
26233                 ac_config_files="$ac_config_files src/cairo-gallium.pc:src/cairo-features.pc.in"
26234
26235
26236 fi
26237                                         if test "x$use_gallium" = xyes; then :
26238   :
26239                 ac_config_files="$ac_config_files cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26240
26241
26242 fi
26243                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gallium.pc'
26244                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26245 ""$cr_make_tmp"
26246
26247                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26248 ""$cr_make_tmp"
26249
26250
26251                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gallium.pc'
26252                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26253 "'if CAIRO_HAS_GALLIUM_SURFACE'
26254                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26255 ""$cr_make_tmp"
26256                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26257 "'endif'
26258
26259                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26260 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
26261                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26262 ""$cr_make_tmp"
26263                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26264 "'endif'
26265
26266
26267                                         if test "x$use_gallium" = xyes; then :
26268   :
26269                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GALLIUM_SURFACE'
26270
26271
26272 fi
26273
26274
26275
26276                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GALLIUM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26277                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26278 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
26279                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26280 ""$cr_make_tmp"
26281                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26282 "'endif'
26283
26284
26285                                         if test "x$use_gallium" = xyes; then :
26286   :
26287                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26288
26289 "'--- The Gallium3D surface backend feature is still under active development
26290 --- and is included in this release only as a preview. It does NOT fully work
26291 --- yet and incompatible changes may yet be made to Gallium3D surface backend
26292 --- specific API.'
26293
26294
26295
26296 fi
26297
26298
26299
26300
26301
26302
26303                                                                                                                                 # Check whether --enable-png was given.
26304 if test "${enable_png+set}" = set; then :
26305   enableval=$enable_png; enable_png=$enableval
26306 else
26307   enable_png=yes
26308 fi
26309
26310                         case $enable_png in #(
26311   no) :
26312                 use_png="no (disabled, use --enable-png to enable)"
26313          ;; #(
26314         yes|auto) :
26315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PNG functions feature" >&5
26316 $as_echo_n "checking for cairo's PNG functions feature... " >&6; }
26317                 echo
26318
26319                 use_png=yes
26320                         png_BASE="cairo"
26321 png_REQUIRES="$ac_env_png_REQUIRES_value"
26322 png_CFLAGS="$ac_env_png_CFLAGS_value"
26323 png_NONPKGCONFIG_CFLAGS="$ac_env_png_NONPKGCONFIG_CFLAGS_value"
26324 png_LIBS="$ac_env_png_LIBS_value"
26325 png_NONPKGCONFIG_LIBS="$ac_env_png_NONPKGCONFIG_LIBS_value"
26326 png_NONPKGCONFIG_EXTRA_LIBS="$ac_env_png_NONPKGCONFIG_EXTRA_LIBS_value"
26327
26328
26329
26330   use_png=no
26331
26332   if test "x$png_REQUIRES" = x; then
26333     # libpng13 is GnuWin32's libpng-1.2.8 :-(
26334     for l in libpng libpng14 libpng12 libpng13 libpng10; do
26335       if $PKG_CONFIG --exists $l ; then
26336         png_REQUIRES=$l
26337         use_png=yes
26338         break
26339       fi
26340     done
26341   else
26342     use_png=yes
26343   fi
26344
26345   if test "x$use_png" = "xyes" ; then
26346
26347 pkg_failed=no
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
26349 $as_echo_n "checking for png... " >&6; }
26350
26351 if test -n "$png_CFLAGS"; then
26352     pkg_cv_png_CFLAGS="$png_CFLAGS"
26353  elif test -n "$PKG_CONFIG"; then
26354     if test -n "$PKG_CONFIG" && \
26355     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
26356   ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
26357   ac_status=$?
26358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359   test $ac_status = 0; }; then
26360   pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags "$png_REQUIRES" 2>/dev/null`
26361 else
26362   pkg_failed=yes
26363 fi
26364  else
26365     pkg_failed=untried
26366 fi
26367 if test -n "$png_LIBS"; then
26368     pkg_cv_png_LIBS="$png_LIBS"
26369  elif test -n "$PKG_CONFIG"; then
26370     if test -n "$PKG_CONFIG" && \
26371     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
26372   ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
26373   ac_status=$?
26374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375   test $ac_status = 0; }; then
26376   pkg_cv_png_LIBS=`$PKG_CONFIG --libs "$png_REQUIRES" 2>/dev/null`
26377 else
26378   pkg_failed=yes
26379 fi
26380  else
26381     pkg_failed=untried
26382 fi
26383
26384
26385
26386 if test $pkg_failed = yes; then
26387
26388 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26389         _pkg_short_errors_supported=yes
26390 else
26391         _pkg_short_errors_supported=no
26392 fi
26393         if test $_pkg_short_errors_supported = yes; then
26394                 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$png_REQUIRES" 2>&1`
26395         else
26396                 png_PKG_ERRORS=`$PKG_CONFIG --print-errors "$png_REQUIRES" 2>&1`
26397         fi
26398         # Put the nasty error message in config.log where it belongs
26399         echo "$png_PKG_ERRORS" >&5
26400
26401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26402 $as_echo "no" >&6; }
26403                 :
26404 elif test $pkg_failed = untried; then
26405         :
26406 else
26407         png_CFLAGS=$pkg_cv_png_CFLAGS
26408         png_LIBS=$pkg_cv_png_LIBS
26409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26410 $as_echo "yes" >&6; }
26411         :
26412 fi
26413   else
26414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libpng in the pkg-config search path" >&5
26415 $as_echo "$as_me: WARNING: Could not find libpng in the pkg-config search path" >&2;}
26416   fi
26417
26418
26419                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PNG functions feature could be enabled" >&5
26420 $as_echo_n "checking whether cairo's PNG functions feature could be enabled... " >&6; }
26421                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_png" >&5
26422 $as_echo "$use_png" >&6; }
26423
26424                 if test "x$enable_png" = "xyes" -a "x$use_png" != xyes; then :
26425                         as_fn_error $? "recommended PNG functions feature could not be enabled" "$LINENO" 5
26426
26427 fi       ;; #(
26428   *) :
26429                         as_fn_error $? "invalid argument passed to --enable-png: \`$use_png', should be one of [no/auto/yes]" "$LINENO" 5
26430          ;;
26431 esac
26432         if test "x$use_png" = "xyes"; then :
26433                                                                                 CAIRO_REQUIRES="$png_REQUIRES"" ${CAIRO_REQUIRES}"
26434
26435                                                                         CAIRO_CFLAGS="$png_CFLAGS"" ${CAIRO_CFLAGS}"
26436
26437                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$png_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26438
26439                                                                         CAIRO_LIBS="$png_LIBS"" ${CAIRO_LIBS}"
26440
26441                                                                         CAIRO_NONPKGCONFIG_LIBS="$png_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26442
26443
26444 else
26445                                         unset png_BASE
26446 unset png_REQUIRES
26447 unset png_CFLAGS
26448 unset png_NONPKGCONFIG_CFLAGS
26449 unset png_LIBS
26450 unset png_NONPKGCONFIG_LIBS
26451 unset png_NONPKGCONFIG_EXTRA_LIBS
26452
26453
26454 fi
26455
26456                                                          if test "x$use_png" = xyes; then
26457   CAIRO_HAS_PNG_FUNCTIONS_TRUE=
26458   CAIRO_HAS_PNG_FUNCTIONS_FALSE='#'
26459 else
26460   CAIRO_HAS_PNG_FUNCTIONS_TRUE='#'
26461   CAIRO_HAS_PNG_FUNCTIONS_FALSE=
26462 fi
26463
26464
26465                                                                                 cr_make_tmp='CAIRO_HAS_PNG_FUNCTIONS=1'
26466                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26467 ""$cr_make_tmp"
26468
26469
26470                                                                                 cr_make_tmp=''
26471                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26472 ""$cr_make_tmp"
26473
26474                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26475 ""$cr_make_tmp"
26476                                                                                 cr_make_tmp=''
26477                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26478 ""$cr_make_tmp"
26479
26480                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26481 ""$cr_make_tmp"
26482
26483
26484                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_png_headers)'
26485                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26486 ""$cr_make_tmp"
26487
26488                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26489 ""$cr_make_tmp"
26490                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)'
26491                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26492 ""$cr_make_tmp"
26493
26494                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26495 ""$cr_make_tmp"
26496
26497
26498
26499                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_png_headers)
26500 all_cairo_private += $(cairo_png_private)
26501 all_cairo_cxx_sources += $(cairo_png_cxx_sources)
26502 all_cairo_sources += $(cairo_png_sources)'
26503                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26504 ""$cr_make_tmp"
26505
26506                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26507 ""$cr_make_tmp"
26508                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
26509 all_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
26510 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
26511 all_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
26512                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26513 ""$cr_make_tmp"
26514
26515                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26516 ""$cr_make_tmp"
26517
26518
26519                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_png_headers)
26520 enabled_cairo_private += $(cairo_png_private)
26521 enabled_cairo_cxx_sources += $(cairo_png_cxx_sources)
26522 enabled_cairo_sources += $(cairo_png_sources)'
26523                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26524 "'if CAIRO_HAS_PNG_FUNCTIONS'
26525                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26526 ""$cr_make_tmp"
26527                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26528 "'endif'
26529
26530                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26531 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
26532                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26533 ""$cr_make_tmp"
26534                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26535 "'endif'
26536                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
26537 enabled_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
26538 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
26539 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
26540                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26541 "'if CAIRO_HAS_PNG_FUNCTIONS'
26542                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26543 ""$cr_make_tmp"
26544                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26545 "'endif'
26546
26547                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26548 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
26549                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26550 ""$cr_make_tmp"
26551                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26552 "'endif'
26553
26554
26555
26556
26557                                         if test "x$use_png" = xyes; then :
26558   :
26559                 ac_config_files="$ac_config_files src/cairo-png.pc:src/cairo-features.pc.in"
26560
26561
26562 fi
26563                                         if test "x$use_png" = xyes; then :
26564   :
26565                 ac_config_files="$ac_config_files cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26566
26567
26568 fi
26569                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-png.pc'
26570                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26571 ""$cr_make_tmp"
26572
26573                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26574 ""$cr_make_tmp"
26575
26576
26577                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-png.pc'
26578                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26579 "'if CAIRO_HAS_PNG_FUNCTIONS'
26580                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26581 ""$cr_make_tmp"
26582                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26583 "'endif'
26584
26585                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26586 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
26587                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26588 ""$cr_make_tmp"
26589                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26590 "'endif'
26591
26592
26593                                         if test "x$use_png" = xyes; then :
26594   :
26595                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
26596
26597
26598 fi
26599                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
26600
26601
26602
26603                                         if test "x$use_png" != xyes; then :
26604   :
26605                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
26606
26607
26608
26609 fi
26610
26611                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PNG_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
26612                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26613 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
26614                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26615 ""$cr_make_tmp"
26616                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26617 "'endif'
26618
26619
26620
26621                                         if test "x$use_png" != xyes; then :
26622   :
26623                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26624
26625 "'+++ It is strongly recommended that you do NOT disable the PNG functions
26626 +++ feature.'
26627
26628
26629
26630 fi
26631
26632
26633
26634
26635                                                                                                                                 # Check whether --enable-gl was given.
26636 if test "${enable_gl+set}" = set; then :
26637   enableval=$enable_gl; enable_gl=$enableval
26638 else
26639   enable_gl=no
26640 fi
26641
26642                         case $enable_gl in #(
26643   no) :
26644                 use_gl="no (disabled, use --enable-gl to enable)"
26645          ;; #(
26646         yes|auto) :
26647                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGL surface backend feature" >&5
26648 $as_echo_n "checking for cairo's OpenGL surface backend feature... " >&6; }
26649                 echo
26650
26651                 use_gl=yes
26652                         gl_BASE="cairo"
26653 gl_REQUIRES="$ac_env_gl_REQUIRES_value"
26654 gl_CFLAGS="$ac_env_gl_CFLAGS_value"
26655 gl_NONPKGCONFIG_CFLAGS="$ac_env_gl_NONPKGCONFIG_CFLAGS_value"
26656 gl_LIBS="$ac_env_gl_LIBS_value"
26657 gl_NONPKGCONFIG_LIBS="$ac_env_gl_NONPKGCONFIG_LIBS_value"
26658 gl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gl_NONPKGCONFIG_EXTRA_LIBS_value"
26659
26660
26661
26662   gl_REQUIRES="gl"
26663
26664 pkg_failed=no
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl" >&5
26666 $as_echo_n "checking for gl... " >&6; }
26667
26668 if test -n "$gl_CFLAGS"; then
26669     pkg_cv_gl_CFLAGS="$gl_CFLAGS"
26670  elif test -n "$PKG_CONFIG"; then
26671     if test -n "$PKG_CONFIG" && \
26672     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
26673   ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
26674   ac_status=$?
26675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26676   test $ac_status = 0; }; then
26677   pkg_cv_gl_CFLAGS=`$PKG_CONFIG --cflags "$gl_REQUIRES" 2>/dev/null`
26678 else
26679   pkg_failed=yes
26680 fi
26681  else
26682     pkg_failed=untried
26683 fi
26684 if test -n "$gl_LIBS"; then
26685     pkg_cv_gl_LIBS="$gl_LIBS"
26686  elif test -n "$PKG_CONFIG"; then
26687     if test -n "$PKG_CONFIG" && \
26688     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
26689   ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
26690   ac_status=$?
26691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26692   test $ac_status = 0; }; then
26693   pkg_cv_gl_LIBS=`$PKG_CONFIG --libs "$gl_REQUIRES" 2>/dev/null`
26694 else
26695   pkg_failed=yes
26696 fi
26697  else
26698     pkg_failed=untried
26699 fi
26700
26701
26702
26703 if test $pkg_failed = yes; then
26704
26705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26706         _pkg_short_errors_supported=yes
26707 else
26708         _pkg_short_errors_supported=no
26709 fi
26710         if test $_pkg_short_errors_supported = yes; then
26711                 gl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gl_REQUIRES" 2>&1`
26712         else
26713                 gl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gl_REQUIRES" 2>&1`
26714         fi
26715         # Put the nasty error message in config.log where it belongs
26716         echo "$gl_PKG_ERRORS" >&5
26717
26718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26719 $as_echo "no" >&6; }
26720
26721                   ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
26722 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
26723
26724 else
26725   use_gl="no (gl.pc nor OpenGL headers not found)"
26726 fi
26727
26728
26729           if test "x$use_gl" = "xyes"; then
26730               gl_NONPKGCONFIG_CFLAGS=
26731               gl_NONPKGCONFIG_LIBS="-lGL"
26732           fi
26733 elif test $pkg_failed = untried; then
26734
26735                   ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
26736 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
26737
26738 else
26739   use_gl="no (gl.pc nor OpenGL headers not found)"
26740 fi
26741
26742
26743           if test "x$use_gl" = "xyes"; then
26744               gl_NONPKGCONFIG_CFLAGS=
26745               gl_NONPKGCONFIG_LIBS="-lGL"
26746           fi
26747 else
26748         gl_CFLAGS=$pkg_cv_gl_CFLAGS
26749         gl_LIBS=$pkg_cv_gl_LIBS
26750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26751 $as_echo "yes" >&6; }
26752         :
26753 fi
26754
26755   if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
26756     gl_LIBS="$gl_LIBS -ldl"
26757   fi
26758
26759   need_glx_functions=yes
26760   need_wgl_functions=yes
26761   need_egl_functions=yes
26762
26763
26764                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGL surface backend feature could be enabled" >&5
26765 $as_echo_n "checking whether cairo's OpenGL surface backend feature could be enabled... " >&6; }
26766                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gl" >&5
26767 $as_echo "$use_gl" >&6; }
26768
26769                 if test "x$enable_gl" = "xyes" -a "x$use_gl" != xyes; then :
26770                         as_fn_error $? " OpenGL surface backend feature could not be enabled" "$LINENO" 5
26771
26772 fi       ;; #(
26773   *) :
26774                         as_fn_error $? "invalid argument passed to --enable-gl: \`$use_gl', should be one of [no/auto/yes]" "$LINENO" 5
26775          ;;
26776 esac
26777         if test "x$use_gl" = "xyes"; then :
26778                                                                                 CAIRO_REQUIRES="$gl_REQUIRES"" ${CAIRO_REQUIRES}"
26779
26780                                                                         CAIRO_CFLAGS="$gl_CFLAGS"" ${CAIRO_CFLAGS}"
26781
26782                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26783
26784                                                                         CAIRO_LIBS="$gl_LIBS"" ${CAIRO_LIBS}"
26785
26786                                                                         CAIRO_NONPKGCONFIG_LIBS="$gl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26787
26788
26789 else
26790                                         unset gl_BASE
26791 unset gl_REQUIRES
26792 unset gl_CFLAGS
26793 unset gl_NONPKGCONFIG_CFLAGS
26794 unset gl_LIBS
26795 unset gl_NONPKGCONFIG_LIBS
26796 unset gl_NONPKGCONFIG_EXTRA_LIBS
26797
26798
26799 fi
26800
26801                                                          if test "x$use_gl" = xyes; then
26802   CAIRO_HAS_GL_SURFACE_TRUE=
26803   CAIRO_HAS_GL_SURFACE_FALSE='#'
26804 else
26805   CAIRO_HAS_GL_SURFACE_TRUE='#'
26806   CAIRO_HAS_GL_SURFACE_FALSE=
26807 fi
26808
26809
26810                                                                                 cr_make_tmp='CAIRO_HAS_GL_SURFACE=0'
26811                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26812 ""$cr_make_tmp"
26813
26814
26815                                                                                 cr_make_tmp=''
26816                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26817 ""$cr_make_tmp"
26818
26819                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26820 ""$cr_make_tmp"
26821                                                                                 cr_make_tmp=''
26822                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26823 ""$cr_make_tmp"
26824
26825                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26826 ""$cr_make_tmp"
26827
26828
26829
26830                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_gl_headers)'
26831                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26832 ""$cr_make_tmp"
26833
26834                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26835 ""$cr_make_tmp"
26836                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)'
26837                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26838 ""$cr_make_tmp"
26839
26840                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26841 ""$cr_make_tmp"
26842
26843
26844                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gl_headers)
26845 all_cairo_private += $(cairo_gl_private)
26846 all_cairo_cxx_sources += $(cairo_gl_cxx_sources)
26847 all_cairo_sources += $(cairo_gl_sources)'
26848                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26849 ""$cr_make_tmp"
26850
26851                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26852 ""$cr_make_tmp"
26853                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
26854 all_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
26855 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
26856 all_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
26857                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26858 ""$cr_make_tmp"
26859
26860                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26861 ""$cr_make_tmp"
26862
26863
26864                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gl_headers)
26865 enabled_cairo_private += $(cairo_gl_private)
26866 enabled_cairo_cxx_sources += $(cairo_gl_cxx_sources)
26867 enabled_cairo_sources += $(cairo_gl_sources)'
26868                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26869 "'if CAIRO_HAS_GL_SURFACE'
26870                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26871 ""$cr_make_tmp"
26872                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26873 "'endif'
26874
26875                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26876 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
26877                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26878 ""$cr_make_tmp"
26879                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26880 "'endif'
26881                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
26882 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
26883 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
26884 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
26885                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26886 "'if CAIRO_HAS_GL_SURFACE'
26887                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26888 ""$cr_make_tmp"
26889                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26890 "'endif'
26891
26892                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26893 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
26894                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26895 ""$cr_make_tmp"
26896                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26897 "'endif'
26898
26899
26900
26901
26902                                         if test "x$use_gl" = xyes; then :
26903   :
26904                 ac_config_files="$ac_config_files src/cairo-gl.pc:src/cairo-features.pc.in"
26905
26906
26907 fi
26908                                         if test "x$use_gl" = xyes; then :
26909   :
26910                 ac_config_files="$ac_config_files cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26911
26912
26913 fi
26914                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gl.pc'
26915                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26916 ""$cr_make_tmp"
26917
26918                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26919 ""$cr_make_tmp"
26920
26921
26922                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gl.pc'
26923                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26924 "'if CAIRO_HAS_GL_SURFACE'
26925                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26926 ""$cr_make_tmp"
26927                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26928 "'endif'
26929
26930                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26931 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
26932                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26933 ""$cr_make_tmp"
26934                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26935 "'endif'
26936
26937
26938                                         if test "x$use_gl" = xyes; then :
26939   :
26940                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GL_SURFACE'
26941
26942
26943 fi
26944
26945
26946
26947                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26948                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26949 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
26950                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26951 ""$cr_make_tmp"
26952                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26953 "'endif'
26954
26955
26956                                         if test "x$use_gl" = xyes; then :
26957   :
26958                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26959
26960 "'--- The OpenGL surface backend feature is still under active development and
26961 --- is included in this release only as a preview. It does NOT fully work yet
26962 --- and incompatible changes may yet be made to OpenGL surface backend
26963 --- specific API.'
26964
26965
26966
26967 fi
26968
26969
26970
26971
26972
26973                                                                                                                                 # Check whether --enable-glesv2 was given.
26974 if test "${enable_glesv2+set}" = set; then :
26975   enableval=$enable_glesv2; enable_glesv2=$enableval
26976 else
26977   enable_glesv2=no
26978 fi
26979
26980                         case $enable_glesv2 in #(
26981   no) :
26982                 use_glesv2="no (disabled, use --enable-glesv2 to enable)"
26983          ;; #(
26984         yes|auto) :
26985                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGLESv2 surface backend feature" >&5
26986 $as_echo_n "checking for cairo's OpenGLESv2 surface backend feature... " >&6; }
26987                 echo
26988
26989                 use_glesv2=yes
26990                         glesv2_BASE="cairo"
26991 glesv2_REQUIRES="$ac_env_glesv2_REQUIRES_value"
26992 glesv2_CFLAGS="$ac_env_glesv2_CFLAGS_value"
26993 glesv2_NONPKGCONFIG_CFLAGS="$ac_env_glesv2_NONPKGCONFIG_CFLAGS_value"
26994 glesv2_LIBS="$ac_env_glesv2_LIBS_value"
26995 glesv2_NONPKGCONFIG_LIBS="$ac_env_glesv2_NONPKGCONFIG_LIBS_value"
26996 glesv2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glesv2_NONPKGCONFIG_EXTRA_LIBS_value"
26997
26998
26999
27000   glesv2_REQUIRES="glesv2"
27001
27002 pkg_failed=no
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glesv2" >&5
27004 $as_echo_n "checking for glesv2... " >&6; }
27005
27006 if test -n "$glesv2_CFLAGS"; then
27007     pkg_cv_glesv2_CFLAGS="$glesv2_CFLAGS"
27008  elif test -n "$PKG_CONFIG"; then
27009     if test -n "$PKG_CONFIG" && \
27010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
27011   ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
27012   ac_status=$?
27013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27014   test $ac_status = 0; }; then
27015   pkg_cv_glesv2_CFLAGS=`$PKG_CONFIG --cflags "$glesv2_REQUIRES" 2>/dev/null`
27016 else
27017   pkg_failed=yes
27018 fi
27019  else
27020     pkg_failed=untried
27021 fi
27022 if test -n "$glesv2_LIBS"; then
27023     pkg_cv_glesv2_LIBS="$glesv2_LIBS"
27024  elif test -n "$PKG_CONFIG"; then
27025     if test -n "$PKG_CONFIG" && \
27026     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
27027   ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
27028   ac_status=$?
27029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030   test $ac_status = 0; }; then
27031   pkg_cv_glesv2_LIBS=`$PKG_CONFIG --libs "$glesv2_REQUIRES" 2>/dev/null`
27032 else
27033   pkg_failed=yes
27034 fi
27035  else
27036     pkg_failed=untried
27037 fi
27038
27039
27040
27041 if test $pkg_failed = yes; then
27042
27043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27044         _pkg_short_errors_supported=yes
27045 else
27046         _pkg_short_errors_supported=no
27047 fi
27048         if test $_pkg_short_errors_supported = yes; then
27049                 glesv2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$glesv2_REQUIRES" 2>&1`
27050         else
27051                 glesv2_PKG_ERRORS=`$PKG_CONFIG --print-errors "$glesv2_REQUIRES" 2>&1`
27052         fi
27053         # Put the nasty error message in config.log where it belongs
27054         echo "$glesv2_PKG_ERRORS" >&5
27055
27056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27057 $as_echo "no" >&6; }
27058
27059                   ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
27060 if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
27061
27062 else
27063   use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
27064 fi
27065
27066
27067           if test "x$use_glesv2" = "xyes"; then
27068               glesv2_NONPKGCONFIG_CFLAGS=
27069               glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
27070           fi
27071 elif test $pkg_failed = untried; then
27072
27073                   ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
27074 if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
27075
27076 else
27077   use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
27078 fi
27079
27080
27081           if test "x$use_glesv2" = "xyes"; then
27082               glesv2_NONPKGCONFIG_CFLAGS=
27083               glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
27084           fi
27085 else
27086         glesv2_CFLAGS=$pkg_cv_glesv2_CFLAGS
27087         glesv2_LIBS=$pkg_cv_glesv2_LIBS
27088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27089 $as_echo "yes" >&6; }
27090         :
27091 fi
27092
27093   if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
27094     glesv2_LIBS="$glesv2_LIBS -ldl"
27095   fi
27096
27097   need_egl_functions=yes
27098
27099
27100                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGLESv2 surface backend feature could be enabled" >&5
27101 $as_echo_n "checking whether cairo's OpenGLESv2 surface backend feature could be enabled... " >&6; }
27102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glesv2" >&5
27103 $as_echo "$use_glesv2" >&6; }
27104
27105                 if test "x$enable_glesv2" = "xyes" -a "x$use_glesv2" != xyes; then :
27106                         as_fn_error $? " OpenGLESv2 surface backend feature could not be enabled" "$LINENO" 5
27107
27108 fi       ;; #(
27109   *) :
27110                         as_fn_error $? "invalid argument passed to --enable-glesv2: \`$use_glesv2', should be one of [no/auto/yes]" "$LINENO" 5
27111          ;;
27112 esac
27113         if test "x$use_glesv2" = "xyes"; then :
27114                                                                                 CAIRO_REQUIRES="$glesv2_REQUIRES"" ${CAIRO_REQUIRES}"
27115
27116                                                                         CAIRO_CFLAGS="$glesv2_CFLAGS"" ${CAIRO_CFLAGS}"
27117
27118                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$glesv2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27119
27120                                                                         CAIRO_LIBS="$glesv2_LIBS"" ${CAIRO_LIBS}"
27121
27122                                                                         CAIRO_NONPKGCONFIG_LIBS="$glesv2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27123
27124
27125 else
27126                                         unset glesv2_BASE
27127 unset glesv2_REQUIRES
27128 unset glesv2_CFLAGS
27129 unset glesv2_NONPKGCONFIG_CFLAGS
27130 unset glesv2_LIBS
27131 unset glesv2_NONPKGCONFIG_LIBS
27132 unset glesv2_NONPKGCONFIG_EXTRA_LIBS
27133
27134
27135 fi
27136
27137                                                          if test "x$use_glesv2" = xyes; then
27138   CAIRO_HAS_GLESV2_SURFACE_TRUE=
27139   CAIRO_HAS_GLESV2_SURFACE_FALSE='#'
27140 else
27141   CAIRO_HAS_GLESV2_SURFACE_TRUE='#'
27142   CAIRO_HAS_GLESV2_SURFACE_FALSE=
27143 fi
27144
27145
27146                                                                                 cr_make_tmp='CAIRO_HAS_GLESV2_SURFACE=0'
27147                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27148 ""$cr_make_tmp"
27149
27150
27151                                                                                 cr_make_tmp=''
27152                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27153 ""$cr_make_tmp"
27154
27155                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27156 ""$cr_make_tmp"
27157                                                                                 cr_make_tmp=''
27158                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27159 ""$cr_make_tmp"
27160
27161                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27162 ""$cr_make_tmp"
27163
27164
27165
27166                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_glesv2_headers)'
27167                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27168 ""$cr_make_tmp"
27169
27170                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27171 ""$cr_make_tmp"
27172                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)'
27173                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27174 ""$cr_make_tmp"
27175
27176                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27177 ""$cr_make_tmp"
27178
27179
27180                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_glesv2_headers)
27181 all_cairo_private += $(cairo_glesv2_private)
27182 all_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
27183 all_cairo_sources += $(cairo_glesv2_sources)'
27184                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27185 ""$cr_make_tmp"
27186
27187                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27188 ""$cr_make_tmp"
27189                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
27190 all_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
27191 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
27192 all_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
27193                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27194 ""$cr_make_tmp"
27195
27196                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27197 ""$cr_make_tmp"
27198
27199
27200                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_glesv2_headers)
27201 enabled_cairo_private += $(cairo_glesv2_private)
27202 enabled_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
27203 enabled_cairo_sources += $(cairo_glesv2_sources)'
27204                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27205 "'if CAIRO_HAS_GLESV2_SURFACE'
27206                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27207 ""$cr_make_tmp"
27208                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27209 "'endif'
27210
27211                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27212 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
27213                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27214 ""$cr_make_tmp"
27215                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27216 "'endif'
27217                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
27218 enabled_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
27219 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
27220 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
27221                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27222 "'if CAIRO_HAS_GLESV2_SURFACE'
27223                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27224 ""$cr_make_tmp"
27225                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27226 "'endif'
27227
27228                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27229 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
27230                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27231 ""$cr_make_tmp"
27232                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27233 "'endif'
27234
27235
27236
27237
27238                                         if test "x$use_glesv2" = xyes; then :
27239   :
27240                 ac_config_files="$ac_config_files src/cairo-glesv2.pc:src/cairo-features.pc.in"
27241
27242
27243 fi
27244                                         if test "x$use_glesv2" = xyes; then :
27245   :
27246                 ac_config_files="$ac_config_files cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27247
27248
27249 fi
27250                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-glesv2.pc'
27251                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27252 ""$cr_make_tmp"
27253
27254                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27255 ""$cr_make_tmp"
27256
27257
27258                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-glesv2.pc'
27259                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27260 "'if CAIRO_HAS_GLESV2_SURFACE'
27261                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27262 ""$cr_make_tmp"
27263                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27264 "'endif'
27265
27266                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27267 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
27268                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27269 ""$cr_make_tmp"
27270                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27271 "'endif'
27272
27273
27274                                         if test "x$use_glesv2" = xyes; then :
27275   :
27276                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLESV2_SURFACE'
27277
27278
27279 fi
27280
27281
27282
27283                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GLESV2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
27284                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27285 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
27286                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27287 ""$cr_make_tmp"
27288                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27289 "'endif'
27290
27291
27292                                         if test "x$use_glesv2" = xyes; then :
27293   :
27294                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
27295
27296 "'--- The OpenGLESv2 surface backend feature is still under active development
27297 --- and is included in this release only as a preview. It does NOT fully work
27298 --- yet and incompatible changes may yet be made to OpenGLESv2 surface
27299 --- backend specific API.'
27300
27301
27302
27303 fi
27304
27305
27306
27307
27308
27309                                                                                                                                 # Check whether --enable-cogl was given.
27310 if test "${enable_cogl+set}" = set; then :
27311   enableval=$enable_cogl; enable_cogl=$enableval
27312 else
27313   enable_cogl=no
27314 fi
27315
27316                         case $enable_cogl in #(
27317   no) :
27318                 use_cogl="no (disabled, use --enable-cogl to enable)"
27319          ;; #(
27320         yes|auto) :
27321                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Cogl surface backend feature" >&5
27322 $as_echo_n "checking for cairo's Cogl surface backend feature... " >&6; }
27323                 echo
27324
27325                 use_cogl=yes
27326                         cogl_BASE="cairo"
27327 cogl_REQUIRES="$ac_env_cogl_REQUIRES_value"
27328 cogl_CFLAGS="$ac_env_cogl_CFLAGS_value"
27329 cogl_NONPKGCONFIG_CFLAGS="$ac_env_cogl_NONPKGCONFIG_CFLAGS_value"
27330 cogl_LIBS="$ac_env_cogl_LIBS_value"
27331 cogl_NONPKGCONFIG_LIBS="$ac_env_cogl_NONPKGCONFIG_LIBS_value"
27332 cogl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_cogl_NONPKGCONFIG_EXTRA_LIBS_value"
27333
27334
27335
27336   cogl_REQUIRES="cogl-2.0-experimental"
27337
27338 pkg_failed=no
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cogl" >&5
27340 $as_echo_n "checking for cogl... " >&6; }
27341
27342 if test -n "$cogl_CFLAGS"; then
27343     pkg_cv_cogl_CFLAGS="$cogl_CFLAGS"
27344  elif test -n "$PKG_CONFIG"; then
27345     if test -n "$PKG_CONFIG" && \
27346     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
27347   ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
27348   ac_status=$?
27349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350   test $ac_status = 0; }; then
27351   pkg_cv_cogl_CFLAGS=`$PKG_CONFIG --cflags "$cogl_REQUIRES" 2>/dev/null`
27352 else
27353   pkg_failed=yes
27354 fi
27355  else
27356     pkg_failed=untried
27357 fi
27358 if test -n "$cogl_LIBS"; then
27359     pkg_cv_cogl_LIBS="$cogl_LIBS"
27360  elif test -n "$PKG_CONFIG"; then
27361     if test -n "$PKG_CONFIG" && \
27362     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
27363   ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
27364   ac_status=$?
27365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366   test $ac_status = 0; }; then
27367   pkg_cv_cogl_LIBS=`$PKG_CONFIG --libs "$cogl_REQUIRES" 2>/dev/null`
27368 else
27369   pkg_failed=yes
27370 fi
27371  else
27372     pkg_failed=untried
27373 fi
27374
27375
27376
27377 if test $pkg_failed = yes; then
27378
27379 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27380         _pkg_short_errors_supported=yes
27381 else
27382         _pkg_short_errors_supported=no
27383 fi
27384         if test $_pkg_short_errors_supported = yes; then
27385                 cogl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cogl_REQUIRES" 2>&1`
27386         else
27387                 cogl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cogl_REQUIRES" 2>&1`
27388         fi
27389         # Put the nasty error message in config.log where it belongs
27390         echo "$cogl_PKG_ERRORS" >&5
27391
27392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27393 $as_echo "no" >&6; }
27394                 use_cogl="no"
27395 elif test $pkg_failed = untried; then
27396         use_cogl="no"
27397 else
27398         cogl_CFLAGS=$pkg_cv_cogl_CFLAGS
27399         cogl_LIBS=$pkg_cv_cogl_LIBS
27400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27401 $as_echo "yes" >&6; }
27402         :
27403 fi
27404
27405
27406                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Cogl surface backend feature could be enabled" >&5
27407 $as_echo_n "checking whether cairo's Cogl surface backend feature could be enabled... " >&6; }
27408                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_cogl" >&5
27409 $as_echo "$use_cogl" >&6; }
27410
27411                 if test "x$enable_cogl" = "xyes" -a "x$use_cogl" != xyes; then :
27412                         as_fn_error $? " Cogl surface backend feature could not be enabled" "$LINENO" 5
27413
27414 fi       ;; #(
27415   *) :
27416                         as_fn_error $? "invalid argument passed to --enable-cogl: \`$use_cogl', should be one of [no/auto/yes]" "$LINENO" 5
27417          ;;
27418 esac
27419         if test "x$use_cogl" = "xyes"; then :
27420                                                                                 CAIRO_REQUIRES="$cogl_REQUIRES"" ${CAIRO_REQUIRES}"
27421
27422                                                                         CAIRO_CFLAGS="$cogl_CFLAGS"" ${CAIRO_CFLAGS}"
27423
27424                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$cogl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27425
27426                                                                         CAIRO_LIBS="$cogl_LIBS"" ${CAIRO_LIBS}"
27427
27428                                                                         CAIRO_NONPKGCONFIG_LIBS="$cogl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27429
27430
27431 else
27432                                         unset cogl_BASE
27433 unset cogl_REQUIRES
27434 unset cogl_CFLAGS
27435 unset cogl_NONPKGCONFIG_CFLAGS
27436 unset cogl_LIBS
27437 unset cogl_NONPKGCONFIG_LIBS
27438 unset cogl_NONPKGCONFIG_EXTRA_LIBS
27439
27440
27441 fi
27442
27443                                                          if test "x$use_cogl" = xyes; then
27444   CAIRO_HAS_COGL_SURFACE_TRUE=
27445   CAIRO_HAS_COGL_SURFACE_FALSE='#'
27446 else
27447   CAIRO_HAS_COGL_SURFACE_TRUE='#'
27448   CAIRO_HAS_COGL_SURFACE_FALSE=
27449 fi
27450
27451
27452                                                                                 cr_make_tmp='CAIRO_HAS_COGL_SURFACE=0'
27453                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27454 ""$cr_make_tmp"
27455
27456
27457                                                                                 cr_make_tmp=''
27458                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27459 ""$cr_make_tmp"
27460
27461                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27462 ""$cr_make_tmp"
27463                                                                                 cr_make_tmp=''
27464                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27465 ""$cr_make_tmp"
27466
27467                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27468 ""$cr_make_tmp"
27469
27470
27471
27472                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_cogl_headers)'
27473                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27474 ""$cr_make_tmp"
27475
27476                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27477 ""$cr_make_tmp"
27478                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)'
27479                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27480 ""$cr_make_tmp"
27481
27482                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27483 ""$cr_make_tmp"
27484
27485
27486                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_cogl_headers)
27487 all_cairo_private += $(cairo_cogl_private)
27488 all_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
27489 all_cairo_sources += $(cairo_cogl_sources)'
27490                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27491 ""$cr_make_tmp"
27492
27493                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27494 ""$cr_make_tmp"
27495                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
27496 all_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
27497 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
27498 all_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
27499                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27500 ""$cr_make_tmp"
27501
27502                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27503 ""$cr_make_tmp"
27504
27505
27506                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_cogl_headers)
27507 enabled_cairo_private += $(cairo_cogl_private)
27508 enabled_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
27509 enabled_cairo_sources += $(cairo_cogl_sources)'
27510                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27511 "'if CAIRO_HAS_COGL_SURFACE'
27512                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27513 ""$cr_make_tmp"
27514                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27515 "'endif'
27516
27517                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27518 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
27519                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27520 ""$cr_make_tmp"
27521                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27522 "'endif'
27523                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
27524 enabled_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
27525 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
27526 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
27527                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27528 "'if CAIRO_HAS_COGL_SURFACE'
27529                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27530 ""$cr_make_tmp"
27531                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27532 "'endif'
27533
27534                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27535 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
27536                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27537 ""$cr_make_tmp"
27538                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27539 "'endif'
27540
27541
27542
27543
27544                                         if test "x$use_cogl" = xyes; then :
27545   :
27546                 ac_config_files="$ac_config_files src/cairo-cogl.pc:src/cairo-features.pc.in"
27547
27548
27549 fi
27550                                         if test "x$use_cogl" = xyes; then :
27551   :
27552                 ac_config_files="$ac_config_files cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27553
27554
27555 fi
27556                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-cogl.pc'
27557                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27558 ""$cr_make_tmp"
27559
27560                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27561 ""$cr_make_tmp"
27562
27563
27564                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-cogl.pc'
27565                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27566 "'if CAIRO_HAS_COGL_SURFACE'
27567                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27568 ""$cr_make_tmp"
27569                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27570 "'endif'
27571
27572                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27573 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
27574                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27575 ""$cr_make_tmp"
27576                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27577 "'endif'
27578
27579
27580                                         if test "x$use_cogl" = xyes; then :
27581   :
27582                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_COGL_SURFACE'
27583
27584
27585 fi
27586
27587
27588
27589                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_COGL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
27590                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27591 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
27592                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27593 ""$cr_make_tmp"
27594                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27595 "'endif'
27596
27597
27598                                         if test "x$use_cogl" = xyes; then :
27599   :
27600                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
27601
27602 "'--- The Cogl surface backend feature is still under active development and is
27603 --- included in this release only as a preview. It does NOT fully work yet
27604 --- and incompatible changes may yet be made to Cogl surface backend specific
27605 --- API.'
27606
27607
27608
27609 fi
27610
27611
27612
27613
27614
27615
27616                                                                                                                                 # Check whether --enable-directfb was given.
27617 if test "${enable_directfb+set}" = set; then :
27618   enableval=$enable_directfb; enable_directfb=$enableval
27619 else
27620   enable_directfb=no
27621 fi
27622
27623                         case $enable_directfb in #(
27624   no) :
27625                 use_directfb="no (disabled, use --enable-directfb to enable)"
27626          ;; #(
27627         yes|auto) :
27628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's directfb surface backend feature" >&5
27629 $as_echo_n "checking for cairo's directfb surface backend feature... " >&6; }
27630                 echo
27631
27632                 use_directfb=yes
27633                         directfb_BASE="cairo"
27634 directfb_REQUIRES="$ac_env_directfb_REQUIRES_value"
27635 directfb_CFLAGS="$ac_env_directfb_CFLAGS_value"
27636 directfb_NONPKGCONFIG_CFLAGS="$ac_env_directfb_NONPKGCONFIG_CFLAGS_value"
27637 directfb_LIBS="$ac_env_directfb_LIBS_value"
27638 directfb_NONPKGCONFIG_LIBS="$ac_env_directfb_NONPKGCONFIG_LIBS_value"
27639 directfb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_directfb_NONPKGCONFIG_EXTRA_LIBS_value"
27640
27641
27642
27643   directfb_REQUIRES=directfb
27644
27645 pkg_failed=no
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb" >&5
27647 $as_echo_n "checking for directfb... " >&6; }
27648
27649 if test -n "$directfb_CFLAGS"; then
27650     pkg_cv_directfb_CFLAGS="$directfb_CFLAGS"
27651  elif test -n "$PKG_CONFIG"; then
27652     if test -n "$PKG_CONFIG" && \
27653     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
27654   ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
27655   ac_status=$?
27656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657   test $ac_status = 0; }; then
27658   pkg_cv_directfb_CFLAGS=`$PKG_CONFIG --cflags "$directfb_REQUIRES" 2>/dev/null`
27659 else
27660   pkg_failed=yes
27661 fi
27662  else
27663     pkg_failed=untried
27664 fi
27665 if test -n "$directfb_LIBS"; then
27666     pkg_cv_directfb_LIBS="$directfb_LIBS"
27667  elif test -n "$PKG_CONFIG"; then
27668     if test -n "$PKG_CONFIG" && \
27669     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
27670   ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
27671   ac_status=$?
27672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27673   test $ac_status = 0; }; then
27674   pkg_cv_directfb_LIBS=`$PKG_CONFIG --libs "$directfb_REQUIRES" 2>/dev/null`
27675 else
27676   pkg_failed=yes
27677 fi
27678  else
27679     pkg_failed=untried
27680 fi
27681
27682
27683
27684 if test $pkg_failed = yes; then
27685
27686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27687         _pkg_short_errors_supported=yes
27688 else
27689         _pkg_short_errors_supported=no
27690 fi
27691         if test $_pkg_short_errors_supported = yes; then
27692                 directfb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$directfb_REQUIRES" 2>&1`
27693         else
27694                 directfb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$directfb_REQUIRES" 2>&1`
27695         fi
27696         # Put the nasty error message in config.log where it belongs
27697         echo "$directfb_PKG_ERRORS" >&5
27698
27699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27700 $as_echo "no" >&6; }
27701                 use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
27702 elif test $pkg_failed = untried; then
27703         use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
27704 else
27705         directfb_CFLAGS=$pkg_cv_directfb_CFLAGS
27706         directfb_LIBS=$pkg_cv_directfb_LIBS
27707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27708 $as_echo "yes" >&6; }
27709         :
27710 fi
27711
27712
27713                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's directfb surface backend feature could be enabled" >&5
27714 $as_echo_n "checking whether cairo's directfb surface backend feature could be enabled... " >&6; }
27715                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_directfb" >&5
27716 $as_echo "$use_directfb" >&6; }
27717
27718                 if test "x$enable_directfb" = "xyes" -a "x$use_directfb" != xyes; then :
27719                         as_fn_error $? " directfb surface backend feature could not be enabled" "$LINENO" 5
27720
27721 fi       ;; #(
27722   *) :
27723                         as_fn_error $? "invalid argument passed to --enable-directfb: \`$use_directfb', should be one of [no/auto/yes]" "$LINENO" 5
27724          ;;
27725 esac
27726         if test "x$use_directfb" = "xyes"; then :
27727                                                                                 CAIRO_REQUIRES="$directfb_REQUIRES"" ${CAIRO_REQUIRES}"
27728
27729                                                                         CAIRO_CFLAGS="$directfb_CFLAGS"" ${CAIRO_CFLAGS}"
27730
27731                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$directfb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27732
27733                                                                         CAIRO_LIBS="$directfb_LIBS"" ${CAIRO_LIBS}"
27734
27735                                                                         CAIRO_NONPKGCONFIG_LIBS="$directfb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27736
27737
27738 else
27739                                         unset directfb_BASE
27740 unset directfb_REQUIRES
27741 unset directfb_CFLAGS
27742 unset directfb_NONPKGCONFIG_CFLAGS
27743 unset directfb_LIBS
27744 unset directfb_NONPKGCONFIG_LIBS
27745 unset directfb_NONPKGCONFIG_EXTRA_LIBS
27746
27747
27748 fi
27749
27750                                                          if test "x$use_directfb" = xyes; then
27751   CAIRO_HAS_DIRECTFB_SURFACE_TRUE=
27752   CAIRO_HAS_DIRECTFB_SURFACE_FALSE='#'
27753 else
27754   CAIRO_HAS_DIRECTFB_SURFACE_TRUE='#'
27755   CAIRO_HAS_DIRECTFB_SURFACE_FALSE=
27756 fi
27757
27758
27759                                                                                 cr_make_tmp='CAIRO_HAS_DIRECTFB_SURFACE=0'
27760                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27761 ""$cr_make_tmp"
27762
27763
27764                                                                                 cr_make_tmp=''
27765                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27766 ""$cr_make_tmp"
27767
27768                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27769 ""$cr_make_tmp"
27770                                                                                 cr_make_tmp=''
27771                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27772 ""$cr_make_tmp"
27773
27774                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27775 ""$cr_make_tmp"
27776
27777
27778
27779                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_directfb_headers)'
27780                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27781 ""$cr_make_tmp"
27782
27783                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27784 ""$cr_make_tmp"
27785                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)'
27786                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27787 ""$cr_make_tmp"
27788
27789                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27790 ""$cr_make_tmp"
27791
27792
27793                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_directfb_headers)
27794 all_cairo_private += $(cairo_directfb_private)
27795 all_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
27796 all_cairo_sources += $(cairo_directfb_sources)'
27797                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27798 ""$cr_make_tmp"
27799
27800                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27801 ""$cr_make_tmp"
27802                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
27803 all_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
27804 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
27805 all_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
27806                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27807 ""$cr_make_tmp"
27808
27809                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27810 ""$cr_make_tmp"
27811
27812
27813                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_directfb_headers)
27814 enabled_cairo_private += $(cairo_directfb_private)
27815 enabled_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
27816 enabled_cairo_sources += $(cairo_directfb_sources)'
27817                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27818 "'if CAIRO_HAS_DIRECTFB_SURFACE'
27819                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27820 ""$cr_make_tmp"
27821                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27822 "'endif'
27823
27824                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27825 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
27826                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27827 ""$cr_make_tmp"
27828                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27829 "'endif'
27830                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
27831 enabled_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
27832 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
27833 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
27834                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27835 "'if CAIRO_HAS_DIRECTFB_SURFACE'
27836                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27837 ""$cr_make_tmp"
27838                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27839 "'endif'
27840
27841                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27842 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
27843                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27844 ""$cr_make_tmp"
27845                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27846 "'endif'
27847
27848
27849
27850
27851                                         if test "x$use_directfb" = xyes; then :
27852   :
27853                 ac_config_files="$ac_config_files src/cairo-directfb.pc:src/cairo-features.pc.in"
27854
27855
27856 fi
27857                                         if test "x$use_directfb" = xyes; then :
27858   :
27859                 ac_config_files="$ac_config_files cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27860
27861
27862 fi
27863                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-directfb.pc'
27864                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27865 ""$cr_make_tmp"
27866
27867                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27868 ""$cr_make_tmp"
27869
27870
27871                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-directfb.pc'
27872                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27873 "'if CAIRO_HAS_DIRECTFB_SURFACE'
27874                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27875 ""$cr_make_tmp"
27876                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27877 "'endif'
27878
27879                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27880 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
27881                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27882 ""$cr_make_tmp"
27883                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27884 "'endif'
27885
27886
27887                                         if test "x$use_directfb" = xyes; then :
27888   :
27889                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DIRECTFB_SURFACE'
27890
27891
27892 fi
27893
27894
27895
27896                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_DIRECTFB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
27897                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27898 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
27899                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27900 ""$cr_make_tmp"
27901                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27902 "'endif'
27903
27904
27905                                         if test "x$use_directfb" = xyes; then :
27906   :
27907                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
27908
27909 "'--- The directfb surface backend feature is still under active development
27910 --- and is included in this release only as a preview. It does NOT fully work
27911 --- yet and incompatible changes may yet be made to directfb surface backend
27912 --- specific API.'
27913
27914
27915
27916 fi
27917
27918
27919
27920
27921
27922
27923                                                                                                                                 # Check whether --enable-vg was given.
27924 if test "${enable_vg+set}" = set; then :
27925   enableval=$enable_vg; enable_vg=$enableval
27926 else
27927   enable_vg=no
27928 fi
27929
27930                         case $enable_vg in #(
27931   no) :
27932                 use_vg="no (disabled, use --enable-vg to enable)"
27933          ;; #(
27934         yes|auto) :
27935                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenVG surface backend feature" >&5
27936 $as_echo_n "checking for cairo's OpenVG surface backend feature... " >&6; }
27937                 echo
27938
27939                 use_vg=yes
27940                         vg_BASE="cairo"
27941 vg_REQUIRES="$ac_env_vg_REQUIRES_value"
27942 vg_CFLAGS="$ac_env_vg_CFLAGS_value"
27943 vg_NONPKGCONFIG_CFLAGS="$ac_env_vg_NONPKGCONFIG_CFLAGS_value"
27944 vg_LIBS="$ac_env_vg_LIBS_value"
27945 vg_NONPKGCONFIG_LIBS="$ac_env_vg_NONPKGCONFIG_LIBS_value"
27946 vg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_vg_NONPKGCONFIG_EXTRA_LIBS_value"
27947
27948
27949
27950     ac_fn_c_check_header_mongrel "$LINENO" "VG/openvg.h" "ac_cv_header_VG_openvg_h" "$ac_includes_default"
27951 if test "x$ac_cv_header_VG_openvg_h" = xyes; then :
27952
27953 else
27954   use_vg="no (OpenVG headers not found)"
27955 fi
27956
27957
27958   if test "x$use_vg" = "xyes"; then
27959       vg_NONPKGCONFIG_CFLAGS=
27960       vg_NONPKGCONFIG_LIBS="-lOpenVG"
27961       need_egl_functions=yes
27962       need_glx_functions=yes
27963   fi
27964
27965
27966                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenVG surface backend feature could be enabled" >&5
27967 $as_echo_n "checking whether cairo's OpenVG surface backend feature could be enabled... " >&6; }
27968                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_vg" >&5
27969 $as_echo "$use_vg" >&6; }
27970
27971                 if test "x$enable_vg" = "xyes" -a "x$use_vg" != xyes; then :
27972                         as_fn_error $? " OpenVG surface backend feature could not be enabled" "$LINENO" 5
27973
27974 fi       ;; #(
27975   *) :
27976                         as_fn_error $? "invalid argument passed to --enable-vg: \`$use_vg', should be one of [no/auto/yes]" "$LINENO" 5
27977          ;;
27978 esac
27979         if test "x$use_vg" = "xyes"; then :
27980                                                                                 CAIRO_REQUIRES="$vg_REQUIRES"" ${CAIRO_REQUIRES}"
27981
27982                                                                         CAIRO_CFLAGS="$vg_CFLAGS"" ${CAIRO_CFLAGS}"
27983
27984                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$vg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27985
27986                                                                         CAIRO_LIBS="$vg_LIBS"" ${CAIRO_LIBS}"
27987
27988                                                                         CAIRO_NONPKGCONFIG_LIBS="$vg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27989
27990
27991 else
27992                                         unset vg_BASE
27993 unset vg_REQUIRES
27994 unset vg_CFLAGS
27995 unset vg_NONPKGCONFIG_CFLAGS
27996 unset vg_LIBS
27997 unset vg_NONPKGCONFIG_LIBS
27998 unset vg_NONPKGCONFIG_EXTRA_LIBS
27999
28000
28001 fi
28002
28003                                                          if test "x$use_vg" = xyes; then
28004   CAIRO_HAS_VG_SURFACE_TRUE=
28005   CAIRO_HAS_VG_SURFACE_FALSE='#'
28006 else
28007   CAIRO_HAS_VG_SURFACE_TRUE='#'
28008   CAIRO_HAS_VG_SURFACE_FALSE=
28009 fi
28010
28011
28012                                                                                 cr_make_tmp='CAIRO_HAS_VG_SURFACE=0'
28013                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28014 ""$cr_make_tmp"
28015
28016
28017                                                                                 cr_make_tmp=''
28018                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28019 ""$cr_make_tmp"
28020
28021                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28022 ""$cr_make_tmp"
28023                                                                                 cr_make_tmp=''
28024                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28025 ""$cr_make_tmp"
28026
28027                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28028 ""$cr_make_tmp"
28029
28030
28031
28032                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_vg_headers)'
28033                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28034 ""$cr_make_tmp"
28035
28036                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28037 ""$cr_make_tmp"
28038                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)'
28039                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28040 ""$cr_make_tmp"
28041
28042                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28043 ""$cr_make_tmp"
28044
28045
28046                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_vg_headers)
28047 all_cairo_private += $(cairo_vg_private)
28048 all_cairo_cxx_sources += $(cairo_vg_cxx_sources)
28049 all_cairo_sources += $(cairo_vg_sources)'
28050                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28051 ""$cr_make_tmp"
28052
28053                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28054 ""$cr_make_tmp"
28055                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
28056 all_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
28057 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
28058 all_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
28059                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28060 ""$cr_make_tmp"
28061
28062                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28063 ""$cr_make_tmp"
28064
28065
28066                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_vg_headers)
28067 enabled_cairo_private += $(cairo_vg_private)
28068 enabled_cairo_cxx_sources += $(cairo_vg_cxx_sources)
28069 enabled_cairo_sources += $(cairo_vg_sources)'
28070                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28071 "'if CAIRO_HAS_VG_SURFACE'
28072                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28073 ""$cr_make_tmp"
28074                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28075 "'endif'
28076
28077                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28078 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
28079                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28080 ""$cr_make_tmp"
28081                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28082 "'endif'
28083                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
28084 enabled_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
28085 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
28086 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
28087                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28088 "'if CAIRO_HAS_VG_SURFACE'
28089                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28090 ""$cr_make_tmp"
28091                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28092 "'endif'
28093
28094                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28095 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
28096                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28097 ""$cr_make_tmp"
28098                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28099 "'endif'
28100
28101
28102
28103
28104                                         if test "x$use_vg" = xyes; then :
28105   :
28106                 ac_config_files="$ac_config_files src/cairo-vg.pc:src/cairo-features.pc.in"
28107
28108
28109 fi
28110                                         if test "x$use_vg" = xyes; then :
28111   :
28112                 ac_config_files="$ac_config_files cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28113
28114
28115 fi
28116                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-vg.pc'
28117                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28118 ""$cr_make_tmp"
28119
28120                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28121 ""$cr_make_tmp"
28122
28123
28124                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-vg.pc'
28125                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28126 "'if CAIRO_HAS_VG_SURFACE'
28127                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28128 ""$cr_make_tmp"
28129                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28130 "'endif'
28131
28132                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28133 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
28134                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28135 ""$cr_make_tmp"
28136                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28137 "'endif'
28138
28139
28140                                         if test "x$use_vg" = xyes; then :
28141   :
28142                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_VG_SURFACE'
28143
28144
28145 fi
28146
28147
28148
28149                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_VG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
28150                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28151 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
28152                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28153 ""$cr_make_tmp"
28154                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28155 "'endif'
28156
28157
28158                                         if test "x$use_vg" = xyes; then :
28159   :
28160                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
28161
28162 "'--- The OpenVG surface backend feature is still under active development and
28163 --- is included in this release only as a preview. It does NOT fully work yet
28164 --- and incompatible changes may yet be made to OpenVG surface backend
28165 --- specific API.'
28166
28167
28168
28169 fi
28170
28171
28172
28173
28174
28175                                                                                                                                 # Check whether --enable-egl was given.
28176 if test "${enable_egl+set}" = set; then :
28177   enableval=$enable_egl; enable_egl=$enableval
28178 else
28179   enable_egl=auto
28180 fi
28181
28182                         case $enable_egl in #(
28183   no) :
28184                 use_egl="no (disabled, use --enable-egl to enable)"
28185          ;; #(
28186         yes|auto) :
28187                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's EGL functions feature" >&5
28188 $as_echo_n "checking for cairo's EGL functions feature... " >&6; }
28189                 echo
28190
28191                 use_egl=yes
28192                         egl_BASE="cairo"
28193 egl_REQUIRES="$ac_env_egl_REQUIRES_value"
28194 egl_CFLAGS="$ac_env_egl_CFLAGS_value"
28195 egl_NONPKGCONFIG_CFLAGS="$ac_env_egl_NONPKGCONFIG_CFLAGS_value"
28196 egl_LIBS="$ac_env_egl_LIBS_value"
28197 egl_NONPKGCONFIG_LIBS="$ac_env_egl_NONPKGCONFIG_LIBS_value"
28198 egl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_egl_NONPKGCONFIG_EXTRA_LIBS_value"
28199
28200
28201
28202   if test "x$need_egl_functions" = "xyes"; then
28203       egl_REQUIRES="egl"
28204
28205 pkg_failed=no
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egl" >&5
28207 $as_echo_n "checking for egl... " >&6; }
28208
28209 if test -n "$egl_CFLAGS"; then
28210     pkg_cv_egl_CFLAGS="$egl_CFLAGS"
28211  elif test -n "$PKG_CONFIG"; then
28212     if test -n "$PKG_CONFIG" && \
28213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
28214   ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
28215   ac_status=$?
28216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217   test $ac_status = 0; }; then
28218   pkg_cv_egl_CFLAGS=`$PKG_CONFIG --cflags "$egl_REQUIRES" 2>/dev/null`
28219 else
28220   pkg_failed=yes
28221 fi
28222  else
28223     pkg_failed=untried
28224 fi
28225 if test -n "$egl_LIBS"; then
28226     pkg_cv_egl_LIBS="$egl_LIBS"
28227  elif test -n "$PKG_CONFIG"; then
28228     if test -n "$PKG_CONFIG" && \
28229     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
28230   ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
28231   ac_status=$?
28232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233   test $ac_status = 0; }; then
28234   pkg_cv_egl_LIBS=`$PKG_CONFIG --libs "$egl_REQUIRES" 2>/dev/null`
28235 else
28236   pkg_failed=yes
28237 fi
28238  else
28239     pkg_failed=untried
28240 fi
28241
28242
28243
28244 if test $pkg_failed = yes; then
28245
28246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28247         _pkg_short_errors_supported=yes
28248 else
28249         _pkg_short_errors_supported=no
28250 fi
28251         if test $_pkg_short_errors_supported = yes; then
28252                 egl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$egl_REQUIRES" 2>&1`
28253         else
28254                 egl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$egl_REQUIRES" 2>&1`
28255         fi
28256         # Put the nasty error message in config.log where it belongs
28257         echo "$egl_PKG_ERRORS" >&5
28258
28259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28260 $as_echo "no" >&6; }
28261                 egl_REQUIRES=""
28262                      ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
28263 if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
28264
28265 else
28266   use_egl="no (EGL headers not found)"
28267 fi
28268
28269
28270                      if test "x$use_egl" = "xyes"; then
28271                          egl_NONPKGCONFIG_CFLAGS=
28272                          egl_NONPKGCONFIG_LIBS=
28273                          save_LIBS="$LIBS"
28274                          other_egl_LIBS=""
28275                          # Temporary workaround for missing link from egl13
28276                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
28277 $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
28278 if ${ac_cv_lib_csi_csi_stream_attachresource+:} false; then :
28279   $as_echo_n "(cached) " >&6
28280 else
28281   ac_check_lib_save_LIBS=$LIBS
28282 LIBS="-lcsi  $LIBS"
28283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28284 /* end confdefs.h.  */
28285
28286 /* Override any GCC internal prototype to avoid an error.
28287    Use char because int might match the return type of a GCC
28288    builtin and then its argument prototype would still apply.  */
28289 #ifdef __cplusplus
28290 extern "C"
28291 #endif
28292 char csi_stream_attachresource ();
28293 int
28294 main ()
28295 {
28296 return csi_stream_attachresource ();
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 if ac_fn_c_try_link "$LINENO"; then :
28302   ac_cv_lib_csi_csi_stream_attachresource=yes
28303 else
28304   ac_cv_lib_csi_csi_stream_attachresource=no
28305 fi
28306 rm -f core conftest.err conftest.$ac_objext \
28307     conftest$ac_exeext conftest.$ac_ext
28308 LIBS=$ac_check_lib_save_LIBS
28309 fi
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
28311 $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
28312 if test "x$ac_cv_lib_csi_csi_stream_attachresource" = xyes; then :
28313   other_egl_LIBS="-lcsi"
28314 fi
28315
28316                          LIBS="$other_egl_LIBS $LIBS"
28317                          for egl_lib in EGL egl13 egl12 egl11; do
28318                              if test -z "$egl_NONPKGCONFIG_LIBS"; then
28319                                  as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
28321 $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
28322 if eval \${$as_ac_Lib+:} false; then :
28323   $as_echo_n "(cached) " >&6
28324 else
28325   ac_check_lib_save_LIBS=$LIBS
28326 LIBS="-l$egl_lib  $LIBS"
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h.  */
28329
28330 /* Override any GCC internal prototype to avoid an error.
28331    Use char because int might match the return type of a GCC
28332    builtin and then its argument prototype would still apply.  */
28333 #ifdef __cplusplus
28334 extern "C"
28335 #endif
28336 char eglGetError ();
28337 int
28338 main ()
28339 {
28340 return eglGetError ();
28341   ;
28342   return 0;
28343 }
28344 _ACEOF
28345 if ac_fn_c_try_link "$LINENO"; then :
28346   eval "$as_ac_Lib=yes"
28347 else
28348   eval "$as_ac_Lib=no"
28349 fi
28350 rm -f core conftest.err conftest.$ac_objext \
28351     conftest$ac_exeext conftest.$ac_ext
28352 LIBS=$ac_check_lib_save_LIBS
28353 fi
28354 eval ac_res=\$$as_ac_Lib
28355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28356 $as_echo "$ac_res" >&6; }
28357 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
28358   egl_NONPKGCONFIG_LIBS="-l$egl_lib"
28359 fi
28360
28361                              fi
28362                          done
28363                          if test -z "$egl_NONPKGCONFIG_LIBS"; then
28364                              use_egl="no (EGL library not found)"
28365                          else
28366                              egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
28367                          fi
28368                          LIBS="$save_LIBS"
28369                      fi
28370
28371 elif test $pkg_failed = untried; then
28372         egl_REQUIRES=""
28373                      ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
28374 if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
28375
28376 else
28377   use_egl="no (EGL headers not found)"
28378 fi
28379
28380
28381                      if test "x$use_egl" = "xyes"; then
28382                          egl_NONPKGCONFIG_CFLAGS=
28383                          egl_NONPKGCONFIG_LIBS=
28384                          save_LIBS="$LIBS"
28385                          other_egl_LIBS=""
28386                          # Temporary workaround for missing link from egl13
28387                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
28388 $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
28389 if ${ac_cv_lib_csi_csi_stream_attachresource+:} false; then :
28390   $as_echo_n "(cached) " >&6
28391 else
28392   ac_check_lib_save_LIBS=$LIBS
28393 LIBS="-lcsi  $LIBS"
28394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h.  */
28396
28397 /* Override any GCC internal prototype to avoid an error.
28398    Use char because int might match the return type of a GCC
28399    builtin and then its argument prototype would still apply.  */
28400 #ifdef __cplusplus
28401 extern "C"
28402 #endif
28403 char csi_stream_attachresource ();
28404 int
28405 main ()
28406 {
28407 return csi_stream_attachresource ();
28408   ;
28409   return 0;
28410 }
28411 _ACEOF
28412 if ac_fn_c_try_link "$LINENO"; then :
28413   ac_cv_lib_csi_csi_stream_attachresource=yes
28414 else
28415   ac_cv_lib_csi_csi_stream_attachresource=no
28416 fi
28417 rm -f core conftest.err conftest.$ac_objext \
28418     conftest$ac_exeext conftest.$ac_ext
28419 LIBS=$ac_check_lib_save_LIBS
28420 fi
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
28422 $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
28423 if test "x$ac_cv_lib_csi_csi_stream_attachresource" = xyes; then :
28424   other_egl_LIBS="-lcsi"
28425 fi
28426
28427                          LIBS="$other_egl_LIBS $LIBS"
28428                          for egl_lib in EGL egl13 egl12 egl11; do
28429                              if test -z "$egl_NONPKGCONFIG_LIBS"; then
28430                                  as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
28432 $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
28433 if eval \${$as_ac_Lib+:} false; then :
28434   $as_echo_n "(cached) " >&6
28435 else
28436   ac_check_lib_save_LIBS=$LIBS
28437 LIBS="-l$egl_lib  $LIBS"
28438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28439 /* end confdefs.h.  */
28440
28441 /* Override any GCC internal prototype to avoid an error.
28442    Use char because int might match the return type of a GCC
28443    builtin and then its argument prototype would still apply.  */
28444 #ifdef __cplusplus
28445 extern "C"
28446 #endif
28447 char eglGetError ();
28448 int
28449 main ()
28450 {
28451 return eglGetError ();
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 if ac_fn_c_try_link "$LINENO"; then :
28457   eval "$as_ac_Lib=yes"
28458 else
28459   eval "$as_ac_Lib=no"
28460 fi
28461 rm -f core conftest.err conftest.$ac_objext \
28462     conftest$ac_exeext conftest.$ac_ext
28463 LIBS=$ac_check_lib_save_LIBS
28464 fi
28465 eval ac_res=\$$as_ac_Lib
28466                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28467 $as_echo "$ac_res" >&6; }
28468 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
28469   egl_NONPKGCONFIG_LIBS="-l$egl_lib"
28470 fi
28471
28472                              fi
28473                          done
28474                          if test -z "$egl_NONPKGCONFIG_LIBS"; then
28475                              use_egl="no (EGL library not found)"
28476                          else
28477                              egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
28478                          fi
28479                          LIBS="$save_LIBS"
28480                      fi
28481
28482 else
28483         egl_CFLAGS=$pkg_cv_egl_CFLAGS
28484         egl_LIBS=$pkg_cv_egl_LIBS
28485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28486 $as_echo "yes" >&6; }
28487         :
28488 fi
28489   else
28490       use_egl="no (not required by any backend)"
28491   fi
28492
28493
28494                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's EGL functions feature could be enabled" >&5
28495 $as_echo_n "checking whether cairo's EGL functions feature could be enabled... " >&6; }
28496                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_egl" >&5
28497 $as_echo "$use_egl" >&6; }
28498
28499                 if test "x$enable_egl" = "xyes" -a "x$use_egl" != xyes; then :
28500                         as_fn_error $? " EGL functions feature could not be enabled" "$LINENO" 5
28501
28502 fi       ;; #(
28503   *) :
28504                         as_fn_error $? "invalid argument passed to --enable-egl: \`$use_egl', should be one of [no/auto/yes]" "$LINENO" 5
28505          ;;
28506 esac
28507         if test "x$use_egl" = "xyes"; then :
28508                                                                                 CAIRO_REQUIRES="$egl_REQUIRES"" ${CAIRO_REQUIRES}"
28509
28510                                                                         CAIRO_CFLAGS="$egl_CFLAGS"" ${CAIRO_CFLAGS}"
28511
28512                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$egl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
28513
28514                                                                         CAIRO_LIBS="$egl_LIBS"" ${CAIRO_LIBS}"
28515
28516                                                                         CAIRO_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
28517
28518
28519 else
28520                                         unset egl_BASE
28521 unset egl_REQUIRES
28522 unset egl_CFLAGS
28523 unset egl_NONPKGCONFIG_CFLAGS
28524 unset egl_LIBS
28525 unset egl_NONPKGCONFIG_LIBS
28526 unset egl_NONPKGCONFIG_EXTRA_LIBS
28527
28528
28529 fi
28530
28531                                                          if test "x$use_egl" = xyes; then
28532   CAIRO_HAS_EGL_FUNCTIONS_TRUE=
28533   CAIRO_HAS_EGL_FUNCTIONS_FALSE='#'
28534 else
28535   CAIRO_HAS_EGL_FUNCTIONS_TRUE='#'
28536   CAIRO_HAS_EGL_FUNCTIONS_FALSE=
28537 fi
28538
28539
28540                                                                                 cr_make_tmp='CAIRO_HAS_EGL_FUNCTIONS=0'
28541                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28542 ""$cr_make_tmp"
28543
28544
28545                                                                                 cr_make_tmp=''
28546                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28547 ""$cr_make_tmp"
28548
28549                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28550 ""$cr_make_tmp"
28551                                                                                 cr_make_tmp=''
28552                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28553 ""$cr_make_tmp"
28554
28555                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28556 ""$cr_make_tmp"
28557
28558
28559                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_egl_headers)'
28560                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28561 ""$cr_make_tmp"
28562
28563                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28564 ""$cr_make_tmp"
28565                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)'
28566                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28567 ""$cr_make_tmp"
28568
28569                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28570 ""$cr_make_tmp"
28571
28572
28573
28574                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_egl_headers)
28575 all_cairo_private += $(cairo_egl_private)
28576 all_cairo_cxx_sources += $(cairo_egl_cxx_sources)
28577 all_cairo_sources += $(cairo_egl_sources)'
28578                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28579 ""$cr_make_tmp"
28580
28581                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28582 ""$cr_make_tmp"
28583                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
28584 all_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
28585 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
28586 all_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
28587                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28588 ""$cr_make_tmp"
28589
28590                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28591 ""$cr_make_tmp"
28592
28593
28594                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_egl_headers)
28595 enabled_cairo_private += $(cairo_egl_private)
28596 enabled_cairo_cxx_sources += $(cairo_egl_cxx_sources)
28597 enabled_cairo_sources += $(cairo_egl_sources)'
28598                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28599 "'if CAIRO_HAS_EGL_FUNCTIONS'
28600                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28601 ""$cr_make_tmp"
28602                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28603 "'endif'
28604
28605                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28606 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
28607                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28608 ""$cr_make_tmp"
28609                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28610 "'endif'
28611                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
28612 enabled_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
28613 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
28614 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
28615                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28616 "'if CAIRO_HAS_EGL_FUNCTIONS'
28617                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28618 ""$cr_make_tmp"
28619                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28620 "'endif'
28621
28622                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28623 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
28624                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28625 ""$cr_make_tmp"
28626                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28627 "'endif'
28628
28629
28630
28631
28632                                         if test "x$use_egl" = xyes; then :
28633   :
28634                 ac_config_files="$ac_config_files src/cairo-egl.pc:src/cairo-features.pc.in"
28635
28636
28637 fi
28638                                         if test "x$use_egl" = xyes; then :
28639   :
28640                 ac_config_files="$ac_config_files cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28641
28642
28643 fi
28644                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-egl.pc'
28645                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28646 ""$cr_make_tmp"
28647
28648                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28649 ""$cr_make_tmp"
28650
28651
28652                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-egl.pc'
28653                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28654 "'if CAIRO_HAS_EGL_FUNCTIONS'
28655                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28656 ""$cr_make_tmp"
28657                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28658 "'endif'
28659
28660                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28661 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
28662                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28663 ""$cr_make_tmp"
28664                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28665 "'endif'
28666
28667
28668                                         if test "x$use_egl" = xyes; then :
28669   :
28670                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
28671
28672
28673 fi
28674                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
28675
28676
28677
28678                                         if test "x$use_egl" != xyes; then :
28679   :
28680                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
28681
28682
28683
28684 fi
28685
28686                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_EGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
28687                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28688 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
28689                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28690 ""$cr_make_tmp"
28691                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28692 "'endif'
28693
28694
28695
28696
28697
28698
28699
28700
28701                                                                                                                                 # Check whether --enable-glx was given.
28702 if test "${enable_glx+set}" = set; then :
28703   enableval=$enable_glx; enable_glx=$enableval
28704 else
28705   enable_glx=auto
28706 fi
28707
28708                         case $enable_glx in #(
28709   no) :
28710                 use_glx="no (disabled, use --enable-glx to enable)"
28711          ;; #(
28712         yes|auto) :
28713                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's GLX functions feature" >&5
28714 $as_echo_n "checking for cairo's GLX functions feature... " >&6; }
28715                 echo
28716
28717                 use_glx=yes
28718                         glx_BASE="cairo"
28719 glx_REQUIRES="$ac_env_glx_REQUIRES_value"
28720 glx_CFLAGS="$ac_env_glx_CFLAGS_value"
28721 glx_NONPKGCONFIG_CFLAGS="$ac_env_glx_NONPKGCONFIG_CFLAGS_value"
28722 glx_LIBS="$ac_env_glx_LIBS_value"
28723 glx_NONPKGCONFIG_LIBS="$ac_env_glx_NONPKGCONFIG_LIBS_value"
28724 glx_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glx_NONPKGCONFIG_EXTRA_LIBS_value"
28725
28726
28727
28728   if test "x$need_glx_functions" = "xyes"; then
28729     save_CFLAGS="$CFLAGS"
28730     CFLAGS="$CFLAGS $gl_CFLAGS $gl_NONPKGCONFIG_CFLAGS"
28731     ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
28732 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
28733
28734 else
28735   use_glx="no (GLX headers not found)"
28736 fi
28737
28738
28739     glx_NONPKGCONFIG_CFLAGS=
28740     glx_NONPKGCONFIG_LIBS="-lGL"
28741     CFLAGS="$save_CFLAGS"
28742   else
28743       use_glx="no (not required by any backend)"
28744   fi
28745
28746
28747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's GLX functions feature could be enabled" >&5
28748 $as_echo_n "checking whether cairo's GLX functions feature could be enabled... " >&6; }
28749                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glx" >&5
28750 $as_echo "$use_glx" >&6; }
28751
28752                 if test "x$enable_glx" = "xyes" -a "x$use_glx" != xyes; then :
28753                         as_fn_error $? " GLX functions feature could not be enabled" "$LINENO" 5
28754
28755 fi       ;; #(
28756   *) :
28757                         as_fn_error $? "invalid argument passed to --enable-glx: \`$use_glx', should be one of [no/auto/yes]" "$LINENO" 5
28758          ;;
28759 esac
28760         if test "x$use_glx" = "xyes"; then :
28761                                                                                 CAIRO_REQUIRES="$glx_REQUIRES"" ${CAIRO_REQUIRES}"
28762
28763                                                                         CAIRO_CFLAGS="$glx_CFLAGS"" ${CAIRO_CFLAGS}"
28764
28765                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$glx_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
28766
28767                                                                         CAIRO_LIBS="$glx_LIBS"" ${CAIRO_LIBS}"
28768
28769                                                                         CAIRO_NONPKGCONFIG_LIBS="$glx_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
28770
28771
28772 else
28773                                         unset glx_BASE
28774 unset glx_REQUIRES
28775 unset glx_CFLAGS
28776 unset glx_NONPKGCONFIG_CFLAGS
28777 unset glx_LIBS
28778 unset glx_NONPKGCONFIG_LIBS
28779 unset glx_NONPKGCONFIG_EXTRA_LIBS
28780
28781
28782 fi
28783
28784                                                          if test "x$use_glx" = xyes; then
28785   CAIRO_HAS_GLX_FUNCTIONS_TRUE=
28786   CAIRO_HAS_GLX_FUNCTIONS_FALSE='#'
28787 else
28788   CAIRO_HAS_GLX_FUNCTIONS_TRUE='#'
28789   CAIRO_HAS_GLX_FUNCTIONS_FALSE=
28790 fi
28791
28792
28793                                                                                 cr_make_tmp='CAIRO_HAS_GLX_FUNCTIONS=0'
28794                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28795 ""$cr_make_tmp"
28796
28797
28798                                                                                 cr_make_tmp=''
28799                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28800 ""$cr_make_tmp"
28801
28802                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28803 ""$cr_make_tmp"
28804                                                                                 cr_make_tmp=''
28805                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28806 ""$cr_make_tmp"
28807
28808                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28809 ""$cr_make_tmp"
28810
28811
28812                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_glx_headers)'
28813                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28814 ""$cr_make_tmp"
28815
28816                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28817 ""$cr_make_tmp"
28818                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)'
28819                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28820 ""$cr_make_tmp"
28821
28822                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28823 ""$cr_make_tmp"
28824
28825
28826
28827                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_glx_headers)
28828 all_cairo_private += $(cairo_glx_private)
28829 all_cairo_cxx_sources += $(cairo_glx_cxx_sources)
28830 all_cairo_sources += $(cairo_glx_sources)'
28831                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28832 ""$cr_make_tmp"
28833
28834                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28835 ""$cr_make_tmp"
28836                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
28837 all_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
28838 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
28839 all_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
28840                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28841 ""$cr_make_tmp"
28842
28843                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28844 ""$cr_make_tmp"
28845
28846
28847                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_glx_headers)
28848 enabled_cairo_private += $(cairo_glx_private)
28849 enabled_cairo_cxx_sources += $(cairo_glx_cxx_sources)
28850 enabled_cairo_sources += $(cairo_glx_sources)'
28851                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28852 "'if CAIRO_HAS_GLX_FUNCTIONS'
28853                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28854 ""$cr_make_tmp"
28855                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28856 "'endif'
28857
28858                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28859 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
28860                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28861 ""$cr_make_tmp"
28862                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28863 "'endif'
28864                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
28865 enabled_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
28866 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
28867 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
28868                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28869 "'if CAIRO_HAS_GLX_FUNCTIONS'
28870                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28871 ""$cr_make_tmp"
28872                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28873 "'endif'
28874
28875                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28876 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
28877                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28878 ""$cr_make_tmp"
28879                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28880 "'endif'
28881
28882
28883
28884
28885                                         if test "x$use_glx" = xyes; then :
28886   :
28887                 ac_config_files="$ac_config_files src/cairo-glx.pc:src/cairo-features.pc.in"
28888
28889
28890 fi
28891                                         if test "x$use_glx" = xyes; then :
28892   :
28893                 ac_config_files="$ac_config_files cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28894
28895
28896 fi
28897                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-glx.pc'
28898                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28899 ""$cr_make_tmp"
28900
28901                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28902 ""$cr_make_tmp"
28903
28904
28905                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-glx.pc'
28906                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28907 "'if CAIRO_HAS_GLX_FUNCTIONS'
28908                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28909 ""$cr_make_tmp"
28910                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28911 "'endif'
28912
28913                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28914 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
28915                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28916 ""$cr_make_tmp"
28917                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28918 "'endif'
28919
28920
28921                                         if test "x$use_glx" = xyes; then :
28922   :
28923                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
28924
28925
28926 fi
28927                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
28928
28929
28930
28931                                         if test "x$use_glx" != xyes; then :
28932   :
28933                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
28934
28935
28936
28937 fi
28938
28939                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GLX_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
28940                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28941 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
28942                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28943 ""$cr_make_tmp"
28944                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28945 "'endif'
28946
28947
28948
28949
28950
28951
28952
28953
28954                                                                                                                                 # Check whether --enable-wgl was given.
28955 if test "${enable_wgl+set}" = set; then :
28956   enableval=$enable_wgl; enable_wgl=$enableval
28957 else
28958   enable_wgl=auto
28959 fi
28960
28961                         case $enable_wgl in #(
28962   no) :
28963                 use_wgl="no (disabled, use --enable-wgl to enable)"
28964          ;; #(
28965         yes|auto) :
28966                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's WGL functions feature" >&5
28967 $as_echo_n "checking for cairo's WGL functions feature... " >&6; }
28968                 echo
28969
28970                 use_wgl=yes
28971                         wgl_BASE="cairo"
28972 wgl_REQUIRES="$ac_env_wgl_REQUIRES_value"
28973 wgl_CFLAGS="$ac_env_wgl_CFLAGS_value"
28974 wgl_NONPKGCONFIG_CFLAGS="$ac_env_wgl_NONPKGCONFIG_CFLAGS_value"
28975 wgl_LIBS="$ac_env_wgl_LIBS_value"
28976 wgl_NONPKGCONFIG_LIBS="$ac_env_wgl_NONPKGCONFIG_LIBS_value"
28977 wgl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_wgl_NONPKGCONFIG_EXTRA_LIBS_value"
28978
28979
28980
28981   if test "x$need_wgl_functions" = "xyes"; then
28982     ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
28983 if test "x$ac_cv_header_windows_h" = xyes; then :
28984
28985 else
28986   use_wgl="no (WGL headers not found)"
28987 fi
28988
28989
28990   else
28991       use_wgl="no (not required by any backend)"
28992   fi
28993
28994
28995                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's WGL functions feature could be enabled" >&5
28996 $as_echo_n "checking whether cairo's WGL functions feature could be enabled... " >&6; }
28997                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_wgl" >&5
28998 $as_echo "$use_wgl" >&6; }
28999
29000                 if test "x$enable_wgl" = "xyes" -a "x$use_wgl" != xyes; then :
29001                         as_fn_error $? " WGL functions feature could not be enabled" "$LINENO" 5
29002
29003 fi       ;; #(
29004   *) :
29005                         as_fn_error $? "invalid argument passed to --enable-wgl: \`$use_wgl', should be one of [no/auto/yes]" "$LINENO" 5
29006          ;;
29007 esac
29008         if test "x$use_wgl" = "xyes"; then :
29009                                                                                 CAIRO_REQUIRES="$wgl_REQUIRES"" ${CAIRO_REQUIRES}"
29010
29011                                                                         CAIRO_CFLAGS="$wgl_CFLAGS"" ${CAIRO_CFLAGS}"
29012
29013                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$wgl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29014
29015                                                                         CAIRO_LIBS="$wgl_LIBS"" ${CAIRO_LIBS}"
29016
29017                                                                         CAIRO_NONPKGCONFIG_LIBS="$wgl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29018
29019
29020 else
29021                                         unset wgl_BASE
29022 unset wgl_REQUIRES
29023 unset wgl_CFLAGS
29024 unset wgl_NONPKGCONFIG_CFLAGS
29025 unset wgl_LIBS
29026 unset wgl_NONPKGCONFIG_LIBS
29027 unset wgl_NONPKGCONFIG_EXTRA_LIBS
29028
29029
29030 fi
29031
29032                                                          if test "x$use_wgl" = xyes; then
29033   CAIRO_HAS_WGL_FUNCTIONS_TRUE=
29034   CAIRO_HAS_WGL_FUNCTIONS_FALSE='#'
29035 else
29036   CAIRO_HAS_WGL_FUNCTIONS_TRUE='#'
29037   CAIRO_HAS_WGL_FUNCTIONS_FALSE=
29038 fi
29039
29040
29041                                                                                 cr_make_tmp='CAIRO_HAS_WGL_FUNCTIONS=0'
29042                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29043 ""$cr_make_tmp"
29044
29045
29046                                                                                 cr_make_tmp=''
29047                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29048 ""$cr_make_tmp"
29049
29050                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29051 ""$cr_make_tmp"
29052                                                                                 cr_make_tmp=''
29053                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29054 ""$cr_make_tmp"
29055
29056                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29057 ""$cr_make_tmp"
29058
29059
29060                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_wgl_headers)'
29061                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29062 ""$cr_make_tmp"
29063
29064                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29065 ""$cr_make_tmp"
29066                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)'
29067                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29068 ""$cr_make_tmp"
29069
29070                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29071 ""$cr_make_tmp"
29072
29073
29074
29075                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_wgl_headers)
29076 all_cairo_private += $(cairo_wgl_private)
29077 all_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
29078 all_cairo_sources += $(cairo_wgl_sources)'
29079                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29080 ""$cr_make_tmp"
29081
29082                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29083 ""$cr_make_tmp"
29084                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
29085 all_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
29086 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
29087 all_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
29088                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29089 ""$cr_make_tmp"
29090
29091                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29092 ""$cr_make_tmp"
29093
29094
29095                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_wgl_headers)
29096 enabled_cairo_private += $(cairo_wgl_private)
29097 enabled_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
29098 enabled_cairo_sources += $(cairo_wgl_sources)'
29099                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29100 "'if CAIRO_HAS_WGL_FUNCTIONS'
29101                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29102 ""$cr_make_tmp"
29103                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29104 "'endif'
29105
29106                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29107 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
29108                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29109 ""$cr_make_tmp"
29110                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29111 "'endif'
29112                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
29113 enabled_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
29114 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
29115 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
29116                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29117 "'if CAIRO_HAS_WGL_FUNCTIONS'
29118                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29119 ""$cr_make_tmp"
29120                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29121 "'endif'
29122
29123                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29124 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
29125                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29126 ""$cr_make_tmp"
29127                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29128 "'endif'
29129
29130
29131
29132
29133                                         if test "x$use_wgl" = xyes; then :
29134   :
29135                 ac_config_files="$ac_config_files src/cairo-wgl.pc:src/cairo-features.pc.in"
29136
29137
29138 fi
29139                                         if test "x$use_wgl" = xyes; then :
29140   :
29141                 ac_config_files="$ac_config_files cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29142
29143
29144 fi
29145                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-wgl.pc'
29146                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29147 ""$cr_make_tmp"
29148
29149                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29150 ""$cr_make_tmp"
29151
29152
29153                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-wgl.pc'
29154                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29155 "'if CAIRO_HAS_WGL_FUNCTIONS'
29156                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29157 ""$cr_make_tmp"
29158                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29159 "'endif'
29160
29161                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29162 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
29163                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29164 ""$cr_make_tmp"
29165                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29166 "'endif'
29167
29168
29169                                         if test "x$use_wgl" = xyes; then :
29170   :
29171                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
29172
29173
29174 fi
29175                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
29176
29177
29178
29179                                         if test "x$use_wgl" != xyes; then :
29180   :
29181                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
29182
29183
29184
29185 fi
29186
29187                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
29188                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29189 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
29190                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29191 ""$cr_make_tmp"
29192                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29193 "'endif'
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203 any2ppm_cs=no
29204                                                                                                                                 # Check whether --enable-script was given.
29205 if test "${enable_script+set}" = set; then :
29206   enableval=$enable_script; enable_script=$enableval
29207 else
29208   enable_script=yes
29209 fi
29210
29211                         case $enable_script in #(
29212   no) :
29213                 use_script="no (disabled, use --enable-script to enable)"
29214          ;; #(
29215         yes|auto) :
29216                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's script surface backend feature" >&5
29217 $as_echo_n "checking for cairo's script surface backend feature... " >&6; }
29218                 echo
29219
29220                 use_script=yes
29221                         script_BASE="cairo"
29222 script_REQUIRES="$ac_env_script_REQUIRES_value"
29223 script_CFLAGS="$ac_env_script_CFLAGS_value"
29224 script_NONPKGCONFIG_CFLAGS="$ac_env_script_NONPKGCONFIG_CFLAGS_value"
29225 script_LIBS="$ac_env_script_LIBS_value"
29226 script_NONPKGCONFIG_LIBS="$ac_env_script_NONPKGCONFIG_LIBS_value"
29227 script_NONPKGCONFIG_EXTRA_LIBS="$ac_env_script_NONPKGCONFIG_EXTRA_LIBS_value"
29228
29229
29230
29231   any2ppm_cs=yes
29232
29233
29234                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's script surface backend feature could be enabled" >&5
29235 $as_echo_n "checking whether cairo's script surface backend feature could be enabled... " >&6; }
29236                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_script" >&5
29237 $as_echo "$use_script" >&6; }
29238
29239                 if test "x$enable_script" = "xyes" -a "x$use_script" != xyes; then :
29240                         as_fn_error $? "recommended script surface backend feature could not be enabled" "$LINENO" 5
29241
29242 fi       ;; #(
29243   *) :
29244                         as_fn_error $? "invalid argument passed to --enable-script: \`$use_script', should be one of [no/auto/yes]" "$LINENO" 5
29245          ;;
29246 esac
29247         if test "x$use_script" = "xyes"; then :
29248                                                                                 CAIRO_REQUIRES="$script_REQUIRES"" ${CAIRO_REQUIRES}"
29249
29250                                                                         CAIRO_CFLAGS="$script_CFLAGS"" ${CAIRO_CFLAGS}"
29251
29252                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$script_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29253
29254                                                                         CAIRO_LIBS="$script_LIBS"" ${CAIRO_LIBS}"
29255
29256                                                                         CAIRO_NONPKGCONFIG_LIBS="$script_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29257
29258
29259 else
29260                                         unset script_BASE
29261 unset script_REQUIRES
29262 unset script_CFLAGS
29263 unset script_NONPKGCONFIG_CFLAGS
29264 unset script_LIBS
29265 unset script_NONPKGCONFIG_LIBS
29266 unset script_NONPKGCONFIG_EXTRA_LIBS
29267
29268
29269 fi
29270
29271                                                          if test "x$use_script" = xyes; then
29272   CAIRO_HAS_SCRIPT_SURFACE_TRUE=
29273   CAIRO_HAS_SCRIPT_SURFACE_FALSE='#'
29274 else
29275   CAIRO_HAS_SCRIPT_SURFACE_TRUE='#'
29276   CAIRO_HAS_SCRIPT_SURFACE_FALSE=
29277 fi
29278
29279
29280                                                                                 cr_make_tmp='CAIRO_HAS_SCRIPT_SURFACE=1'
29281                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29282 ""$cr_make_tmp"
29283
29284
29285                                                                                 cr_make_tmp=''
29286                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29287 ""$cr_make_tmp"
29288
29289                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29290 ""$cr_make_tmp"
29291                                                                                 cr_make_tmp=''
29292                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29293 ""$cr_make_tmp"
29294
29295                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29296 ""$cr_make_tmp"
29297
29298
29299                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_script_headers)'
29300                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29301 ""$cr_make_tmp"
29302
29303                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29304 ""$cr_make_tmp"
29305                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)'
29306                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29307 ""$cr_make_tmp"
29308
29309                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29310 ""$cr_make_tmp"
29311
29312
29313
29314                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_script_headers)
29315 all_cairo_private += $(cairo_script_private)
29316 all_cairo_cxx_sources += $(cairo_script_cxx_sources)
29317 all_cairo_sources += $(cairo_script_sources)'
29318                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29319 ""$cr_make_tmp"
29320
29321                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29322 ""$cr_make_tmp"
29323                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
29324 all_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
29325 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
29326 all_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
29327                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29328 ""$cr_make_tmp"
29329
29330                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29331 ""$cr_make_tmp"
29332
29333
29334                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_script_headers)
29335 enabled_cairo_private += $(cairo_script_private)
29336 enabled_cairo_cxx_sources += $(cairo_script_cxx_sources)
29337 enabled_cairo_sources += $(cairo_script_sources)'
29338                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29339 "'if CAIRO_HAS_SCRIPT_SURFACE'
29340                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29341 ""$cr_make_tmp"
29342                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29343 "'endif'
29344
29345                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29346 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
29347                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29348 ""$cr_make_tmp"
29349                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29350 "'endif'
29351                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
29352 enabled_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
29353 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
29354 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
29355                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29356 "'if CAIRO_HAS_SCRIPT_SURFACE'
29357                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29358 ""$cr_make_tmp"
29359                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29360 "'endif'
29361
29362                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29363 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
29364                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29365 ""$cr_make_tmp"
29366                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29367 "'endif'
29368
29369
29370
29371
29372                                         if test "x$use_script" = xyes; then :
29373   :
29374                 ac_config_files="$ac_config_files src/cairo-script.pc:src/cairo-features.pc.in"
29375
29376
29377 fi
29378                                         if test "x$use_script" = xyes; then :
29379   :
29380                 ac_config_files="$ac_config_files cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29381
29382
29383 fi
29384                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-script.pc'
29385                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29386 ""$cr_make_tmp"
29387
29388                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29389 ""$cr_make_tmp"
29390
29391
29392                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-script.pc'
29393                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29394 "'if CAIRO_HAS_SCRIPT_SURFACE'
29395                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29396 ""$cr_make_tmp"
29397                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29398 "'endif'
29399
29400                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29401 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
29402                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29403 ""$cr_make_tmp"
29404                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29405 "'endif'
29406
29407
29408                                         if test "x$use_script" = xyes; then :
29409   :
29410                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
29411
29412
29413 fi
29414                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
29415
29416
29417
29418                                         if test "x$use_script" != xyes; then :
29419   :
29420                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
29421
29422
29423
29424 fi
29425
29426                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SCRIPT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
29427                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29428 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
29429                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29430 ""$cr_make_tmp"
29431                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29432 "'endif'
29433
29434
29435
29436                                         if test "x$use_script" != xyes; then :
29437   :
29438                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
29439
29440 "'+++ It is strongly recommended that you do NOT disable the script surface
29441 +++ backend feature.'
29442
29443
29444
29445 fi
29446
29447
29448
29449
29450
29451 # We use pkg-config to look for freetype2, but fall back to
29452 # freetype-config if it fails.  We prefer pkg-config, since we can
29453 # then just put freetype2 >= $FREETYPE_MIN_VERSION in
29454 # Requires.private, but at least up to 2003-06-07, there was no
29455 # freetype2.pc in the release.
29456 #
29457 # FreeType versions come in three forms:
29458 #   release (such as 2.1.9)
29459 #   libtool (such as 9.7.3) (returned by freetype-config and pkg-config)
29460 #   platform-specific/soname (such as 6.3.4)
29461 # and they recommend you never use the platform-specific version
29462 # (see docs/VERSION.DLL in freetype2 sources)
29463 #
29464 # Set these as appropriate:
29465
29466 # release number - for information only
29467 FREETYPE_MIN_RELEASE=2.1.9
29468 # libtool-specific version - this is what is checked
29469 FREETYPE_MIN_VERSION=9.7.3
29470
29471                                                                                                                                 # Check whether --enable-ft was given.
29472 if test "${enable_ft+set}" = set; then :
29473   enableval=$enable_ft; enable_ft=$enableval
29474 else
29475   enable_ft=auto
29476 fi
29477
29478                         case $enable_ft in #(
29479   no) :
29480                 use_ft="no (disabled, use --enable-ft to enable)"
29481          ;; #(
29482         yes|auto) :
29483                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's FreeType font backend feature" >&5
29484 $as_echo_n "checking for cairo's FreeType font backend feature... " >&6; }
29485                 echo
29486
29487                 use_ft=yes
29488                         ft_BASE="cairo"
29489 ft_REQUIRES="$ac_env_ft_REQUIRES_value"
29490 ft_CFLAGS="$ac_env_ft_CFLAGS_value"
29491 ft_NONPKGCONFIG_CFLAGS="$ac_env_ft_NONPKGCONFIG_CFLAGS_value"
29492 ft_LIBS="$ac_env_ft_LIBS_value"
29493 ft_NONPKGCONFIG_LIBS="$ac_env_ft_NONPKGCONFIG_LIBS_value"
29494 ft_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ft_NONPKGCONFIG_EXTRA_LIBS_value"
29495
29496
29497
29498
29499
29500 pkg_failed=no
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29502 $as_echo_n "checking for FREETYPE... " >&6; }
29503
29504 if test -n "$FREETYPE_CFLAGS"; then
29505     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29506  elif test -n "$PKG_CONFIG"; then
29507     if test -n "$PKG_CONFIG" && \
29508     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
29509   ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
29510   ac_status=$?
29511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29512   test $ac_status = 0; }; then
29513   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
29514 else
29515   pkg_failed=yes
29516 fi
29517  else
29518     pkg_failed=untried
29519 fi
29520 if test -n "$FREETYPE_LIBS"; then
29521     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29522  elif test -n "$PKG_CONFIG"; then
29523     if test -n "$PKG_CONFIG" && \
29524     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
29525   ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
29526   ac_status=$?
29527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29528   test $ac_status = 0; }; then
29529   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
29530 else
29531   pkg_failed=yes
29532 fi
29533  else
29534     pkg_failed=untried
29535 fi
29536
29537
29538
29539 if test $pkg_failed = yes; then
29540
29541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29542         _pkg_short_errors_supported=yes
29543 else
29544         _pkg_short_errors_supported=no
29545 fi
29546         if test $_pkg_short_errors_supported = yes; then
29547                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
29548         else
29549                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
29550         fi
29551         # Put the nasty error message in config.log where it belongs
29552         echo "$FREETYPE_PKG_ERRORS" >&5
29553
29554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29555 $as_echo "no" >&6; }
29556                 freetype_pkgconfig=no
29557 elif test $pkg_failed = untried; then
29558         freetype_pkgconfig=no
29559 else
29560         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29561         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29563 $as_echo "yes" >&6; }
29564         freetype_pkgconfig=yes
29565 fi
29566
29567     if test "x$freetype_pkgconfig" = "xyes"; then
29568       ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES"
29569     else
29570
29571       if test -z "$FREETYPE_CONFIG"; then
29572         # Extract the first word of "freetype-config", so it can be a program name with args.
29573 set dummy freetype-config; ac_word=$2
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29575 $as_echo_n "checking for $ac_word... " >&6; }
29576 if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
29577   $as_echo_n "(cached) " >&6
29578 else
29579   case $FREETYPE_CONFIG in
29580   [\\/]* | ?:[\\/]*)
29581   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
29582   ;;
29583   *)
29584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29585 for as_dir in $PATH
29586 do
29587   IFS=$as_save_IFS
29588   test -z "$as_dir" && as_dir=.
29589     for ac_exec_ext in '' $ac_executable_extensions; do
29590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29591     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29593     break 2
29594   fi
29595 done
29596   done
29597 IFS=$as_save_IFS
29598
29599   test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
29600   ;;
29601 esac
29602 fi
29603 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
29604 if test -n "$FREETYPE_CONFIG"; then
29605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
29606 $as_echo "$FREETYPE_CONFIG" >&6; }
29607 else
29608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29609 $as_echo "no" >&6; }
29610 fi
29611
29612
29613       fi
29614       if test "x$FREETYPE_CONFIG" = "xno" ; then
29615         use_ft='no (freetype-config not found in path or $FREETYPE_CONFIG)'
29616       else
29617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking freetype2 libtool version" >&5
29618 $as_echo_n "checking freetype2 libtool version... " >&6; }
29619
29620         FREETYPE_VERSION=`$FREETYPE_CONFIG --version`
29621
29622   # Used to indicate true or false condition
29623   ax_compare_version=false
29624
29625   # Convert the two version strings to be compared into a format that
29626   # allows a simple string comparison.  The end result is that a version
29627   # string of the form 1.12.5-r617 will be converted to the form
29628   # 0001001200050617.  In other words, each number is zero padded to four
29629   # digits, and non digits are removed.
29630
29631   ax_compare_version_A=`echo "$FREETYPE_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
29632                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
29633                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
29634                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
29635                      -e 's/[^0-9]//g'`
29636
29637
29638   ax_compare_version_B=`echo "$FREETYPE_MIN_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
29639                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
29640                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
29641                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
29642                      -e 's/[^0-9]//g'`
29643
29644
29645     ax_compare_version=`echo "x$ax_compare_version_A
29646 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
29647
29648
29649
29650     if test "$ax_compare_version" = "true" ; then
29651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - OK" >&5
29652 $as_echo "$FREETYPE_VERSION - OK" >&6; }
29653                            ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags`
29654                            ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`
29655     else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - Too old" >&5
29656 $as_echo "$FREETYPE_VERSION - Too old" >&6; }
29657                            use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"
29658   fi
29659
29660       fi
29661     fi
29662
29663   ft_CFLAGS="$FREETYPE_CFLAGS"
29664   ft_LIBS="$FREETYPE_LIBS"
29665
29666
29667                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's FreeType font backend feature could be enabled" >&5
29668 $as_echo_n "checking whether cairo's FreeType font backend feature could be enabled... " >&6; }
29669                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ft" >&5
29670 $as_echo "$use_ft" >&6; }
29671
29672                 if test "x$enable_ft" = "xyes" -a "x$use_ft" != xyes; then :
29673                         as_fn_error $? " FreeType font backend feature could not be enabled" "$LINENO" 5
29674
29675 fi       ;; #(
29676   *) :
29677                         as_fn_error $? "invalid argument passed to --enable-ft: \`$use_ft', should be one of [no/auto/yes]" "$LINENO" 5
29678          ;;
29679 esac
29680         if test "x$use_ft" = "xyes"; then :
29681                                                                                 CAIRO_REQUIRES="$ft_REQUIRES"" ${CAIRO_REQUIRES}"
29682
29683                                                                         CAIRO_CFLAGS="$ft_CFLAGS"" ${CAIRO_CFLAGS}"
29684
29685                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$ft_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29686
29687                                                                         CAIRO_LIBS="$ft_LIBS"" ${CAIRO_LIBS}"
29688
29689                                                                         CAIRO_NONPKGCONFIG_LIBS="$ft_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29690
29691
29692 else
29693                                         unset ft_BASE
29694 unset ft_REQUIRES
29695 unset ft_CFLAGS
29696 unset ft_NONPKGCONFIG_CFLAGS
29697 unset ft_LIBS
29698 unset ft_NONPKGCONFIG_LIBS
29699 unset ft_NONPKGCONFIG_EXTRA_LIBS
29700
29701
29702 fi
29703
29704                                                          if test "x$use_ft" = xyes; then
29705   CAIRO_HAS_FT_FONT_TRUE=
29706   CAIRO_HAS_FT_FONT_FALSE='#'
29707 else
29708   CAIRO_HAS_FT_FONT_TRUE='#'
29709   CAIRO_HAS_FT_FONT_FALSE=
29710 fi
29711
29712
29713                                                                                 cr_make_tmp='CAIRO_HAS_FT_FONT=0'
29714                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29715 ""$cr_make_tmp"
29716
29717
29718                                                                                 cr_make_tmp=''
29719                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29720 ""$cr_make_tmp"
29721
29722                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29723 ""$cr_make_tmp"
29724                                                                                 cr_make_tmp=''
29725                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29726 ""$cr_make_tmp"
29727
29728                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29729 ""$cr_make_tmp"
29730
29731
29732                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_ft_headers)'
29733                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29734 ""$cr_make_tmp"
29735
29736                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29737 ""$cr_make_tmp"
29738                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)'
29739                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29740 ""$cr_make_tmp"
29741
29742                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29743 ""$cr_make_tmp"
29744
29745
29746
29747                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_ft_headers)
29748 all_cairo_private += $(cairo_ft_private)
29749 all_cairo_cxx_sources += $(cairo_ft_cxx_sources)
29750 all_cairo_sources += $(cairo_ft_sources)'
29751                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29752 ""$cr_make_tmp"
29753
29754                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29755 ""$cr_make_tmp"
29756                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
29757 all_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
29758 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
29759 all_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
29760                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29761 ""$cr_make_tmp"
29762
29763                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29764 ""$cr_make_tmp"
29765
29766
29767                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_ft_headers)
29768 enabled_cairo_private += $(cairo_ft_private)
29769 enabled_cairo_cxx_sources += $(cairo_ft_cxx_sources)
29770 enabled_cairo_sources += $(cairo_ft_sources)'
29771                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29772 "'if CAIRO_HAS_FT_FONT'
29773                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29774 ""$cr_make_tmp"
29775                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29776 "'endif'
29777
29778                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29779 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
29780                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29781 ""$cr_make_tmp"
29782                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29783 "'endif'
29784                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
29785 enabled_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
29786 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
29787 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
29788                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29789 "'if CAIRO_HAS_FT_FONT'
29790                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29791 ""$cr_make_tmp"
29792                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29793 "'endif'
29794
29795                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29796 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
29797                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29798 ""$cr_make_tmp"
29799                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29800 "'endif'
29801
29802
29803
29804
29805                                         if test "x$use_ft" = xyes; then :
29806   :
29807                 ac_config_files="$ac_config_files src/cairo-ft.pc:src/cairo-features.pc.in"
29808
29809
29810 fi
29811                                         if test "x$use_ft" = xyes; then :
29812   :
29813                 ac_config_files="$ac_config_files cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29814
29815
29816 fi
29817                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-ft.pc'
29818                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29819 ""$cr_make_tmp"
29820
29821                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29822 ""$cr_make_tmp"
29823
29824
29825                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-ft.pc'
29826                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29827 "'if CAIRO_HAS_FT_FONT'
29828                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29829 ""$cr_make_tmp"
29830                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29831 "'endif'
29832
29833                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29834 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
29835                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29836 ""$cr_make_tmp"
29837                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29838 "'endif'
29839
29840
29841                                         if test "x$use_ft" = xyes; then :
29842   :
29843                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FT_FONT'
29844
29845
29846 fi
29847                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FT_FONT'
29848
29849
29850
29851                                         if test "x$use_ft" != xyes; then :
29852   :
29853                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FT_FONT'
29854
29855
29856
29857 fi
29858
29859                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_FT_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
29860                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29861 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
29862                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29863 ""$cr_make_tmp"
29864                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29865 "'endif'
29866
29867
29868
29869
29870
29871                                         if test "x$use_ft" = xyes; then :
29872   :
29873                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'ft'
29874
29875
29876
29877 fi
29878
29879
29880 FONTCONFIG_MIN_VERSION=2.2.95
29881                                                                                                                                 # Check whether --enable-fc was given.
29882 if test "${enable_fc+set}" = set; then :
29883   enableval=$enable_fc; enable_fc=$enableval
29884 else
29885   enable_fc=auto
29886 fi
29887
29888                         case $enable_fc in #(
29889   no) :
29890                 use_fc="no (disabled, use --enable-fc to enable)"
29891          ;; #(
29892         yes|auto) :
29893                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Fontconfig font backend feature" >&5
29894 $as_echo_n "checking for cairo's Fontconfig font backend feature... " >&6; }
29895                 echo
29896
29897                 use_fc=yes
29898                         fc_BASE="cairo"
29899 fc_REQUIRES="$ac_env_fc_REQUIRES_value"
29900 fc_CFLAGS="$ac_env_fc_CFLAGS_value"
29901 fc_NONPKGCONFIG_CFLAGS="$ac_env_fc_NONPKGCONFIG_CFLAGS_value"
29902 fc_LIBS="$ac_env_fc_LIBS_value"
29903 fc_NONPKGCONFIG_LIBS="$ac_env_fc_NONPKGCONFIG_LIBS_value"
29904 fc_NONPKGCONFIG_EXTRA_LIBS="$ac_env_fc_NONPKGCONFIG_EXTRA_LIBS_value"
29905
29906
29907
29908   use_fc=$use_ft
29909   if test "x$use_fc" = "xyes"; then
29910     fc_REQUIRES="fontconfig >= $FONTCONFIG_MIN_VERSION"
29911
29912 pkg_failed=no
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29914 $as_echo_n "checking for FONTCONFIG... " >&6; }
29915
29916 if test -n "$FONTCONFIG_CFLAGS"; then
29917     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29918  elif test -n "$PKG_CONFIG"; then
29919     if test -n "$PKG_CONFIG" && \
29920     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
29921   ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
29922   ac_status=$?
29923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29924   test $ac_status = 0; }; then
29925   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "$fc_REQUIRES" 2>/dev/null`
29926 else
29927   pkg_failed=yes
29928 fi
29929  else
29930     pkg_failed=untried
29931 fi
29932 if test -n "$FONTCONFIG_LIBS"; then
29933     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29934  elif test -n "$PKG_CONFIG"; then
29935     if test -n "$PKG_CONFIG" && \
29936     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
29937   ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
29938   ac_status=$?
29939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29940   test $ac_status = 0; }; then
29941   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "$fc_REQUIRES" 2>/dev/null`
29942 else
29943   pkg_failed=yes
29944 fi
29945  else
29946     pkg_failed=untried
29947 fi
29948
29949
29950
29951 if test $pkg_failed = yes; then
29952
29953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29954         _pkg_short_errors_supported=yes
29955 else
29956         _pkg_short_errors_supported=no
29957 fi
29958         if test $_pkg_short_errors_supported = yes; then
29959                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$fc_REQUIRES" 2>&1`
29960         else
29961                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$fc_REQUIRES" 2>&1`
29962         fi
29963         # Put the nasty error message in config.log where it belongs
29964         echo "$FONTCONFIG_PKG_ERRORS" >&5
29965
29966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29967 $as_echo "no" >&6; }
29968                 use_fc="no (requires $fc_REQUIRES)"
29969 elif test $pkg_failed = untried; then
29970         use_fc="no (requires $fc_REQUIRES)"
29971 else
29972         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29973         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975 $as_echo "yes" >&6; }
29976         :
29977 fi
29978   fi
29979   fc_CFLAGS="$FONTCONFIG_CFLAGS"
29980   fc_LIBS="$FONTCONFIG_LIBS"
29981
29982
29983                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Fontconfig font backend feature could be enabled" >&5
29984 $as_echo_n "checking whether cairo's Fontconfig font backend feature could be enabled... " >&6; }
29985                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_fc" >&5
29986 $as_echo "$use_fc" >&6; }
29987
29988                 if test "x$enable_fc" = "xyes" -a "x$use_fc" != xyes; then :
29989                         as_fn_error $? " Fontconfig font backend feature could not be enabled" "$LINENO" 5
29990
29991 fi       ;; #(
29992   *) :
29993                         as_fn_error $? "invalid argument passed to --enable-fc: \`$use_fc', should be one of [no/auto/yes]" "$LINENO" 5
29994          ;;
29995 esac
29996         if test "x$use_fc" = "xyes"; then :
29997                                                                                 CAIRO_REQUIRES="$fc_REQUIRES"" ${CAIRO_REQUIRES}"
29998
29999                                                                         CAIRO_CFLAGS="$fc_CFLAGS"" ${CAIRO_CFLAGS}"
30000
30001                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$fc_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30002
30003                                                                         CAIRO_LIBS="$fc_LIBS"" ${CAIRO_LIBS}"
30004
30005                                                                         CAIRO_NONPKGCONFIG_LIBS="$fc_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30006
30007
30008 else
30009                                         unset fc_BASE
30010 unset fc_REQUIRES
30011 unset fc_CFLAGS
30012 unset fc_NONPKGCONFIG_CFLAGS
30013 unset fc_LIBS
30014 unset fc_NONPKGCONFIG_LIBS
30015 unset fc_NONPKGCONFIG_EXTRA_LIBS
30016
30017
30018 fi
30019
30020                                                          if test "x$use_fc" = xyes; then
30021   CAIRO_HAS_FC_FONT_TRUE=
30022   CAIRO_HAS_FC_FONT_FALSE='#'
30023 else
30024   CAIRO_HAS_FC_FONT_TRUE='#'
30025   CAIRO_HAS_FC_FONT_FALSE=
30026 fi
30027
30028
30029                                                                                 cr_make_tmp='CAIRO_HAS_FC_FONT=0'
30030                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
30031 ""$cr_make_tmp"
30032
30033
30034                                                                                 cr_make_tmp=''
30035                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30036 ""$cr_make_tmp"
30037
30038                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30039 ""$cr_make_tmp"
30040                                                                                 cr_make_tmp=''
30041                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30042 ""$cr_make_tmp"
30043
30044                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30045 ""$cr_make_tmp"
30046
30047
30048                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_fc_headers)'
30049                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30050 ""$cr_make_tmp"
30051
30052                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30053 ""$cr_make_tmp"
30054                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)'
30055                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30056 ""$cr_make_tmp"
30057
30058                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30059 ""$cr_make_tmp"
30060
30061
30062
30063                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_fc_headers)
30064 all_cairo_private += $(cairo_fc_private)
30065 all_cairo_cxx_sources += $(cairo_fc_cxx_sources)
30066 all_cairo_sources += $(cairo_fc_sources)'
30067                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30068 ""$cr_make_tmp"
30069
30070                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30071 ""$cr_make_tmp"
30072                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
30073 all_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
30074 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
30075 all_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
30076                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30077 ""$cr_make_tmp"
30078
30079                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30080 ""$cr_make_tmp"
30081
30082
30083                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_fc_headers)
30084 enabled_cairo_private += $(cairo_fc_private)
30085 enabled_cairo_cxx_sources += $(cairo_fc_cxx_sources)
30086 enabled_cairo_sources += $(cairo_fc_sources)'
30087                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30088 "'if CAIRO_HAS_FC_FONT'
30089                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30090 ""$cr_make_tmp"
30091                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30092 "'endif'
30093
30094                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30095 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
30096                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30097 ""$cr_make_tmp"
30098                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30099 "'endif'
30100                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
30101 enabled_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
30102 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
30103 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
30104                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30105 "'if CAIRO_HAS_FC_FONT'
30106                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30107 ""$cr_make_tmp"
30108                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30109 "'endif'
30110
30111                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30112 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
30113                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30114 ""$cr_make_tmp"
30115                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30116 "'endif'
30117
30118
30119
30120
30121                                         if test "x$use_fc" = xyes; then :
30122   :
30123                 ac_config_files="$ac_config_files src/cairo-fc.pc:src/cairo-features.pc.in"
30124
30125
30126 fi
30127                                         if test "x$use_fc" = xyes; then :
30128   :
30129                 ac_config_files="$ac_config_files cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
30130
30131
30132 fi
30133                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-fc.pc'
30134                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30135 ""$cr_make_tmp"
30136
30137                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30138 ""$cr_make_tmp"
30139
30140
30141                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-fc.pc'
30142                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30143 "'if CAIRO_HAS_FC_FONT'
30144                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30145 ""$cr_make_tmp"
30146                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30147 "'endif'
30148
30149                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30150 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
30151                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30152 ""$cr_make_tmp"
30153                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30154 "'endif'
30155
30156
30157                                         if test "x$use_fc" = xyes; then :
30158   :
30159                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FC_FONT'
30160
30161
30162 fi
30163                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FC_FONT'
30164
30165
30166
30167                                         if test "x$use_fc" != xyes; then :
30168   :
30169                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FC_FONT'
30170
30171
30172
30173 fi
30174
30175                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_FC_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
30176                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30177 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
30178                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30179 ""$cr_make_tmp"
30180                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30181 "'endif'
30182
30183
30184
30185
30186
30187                                         if test "x$use_fc" = xyes; then :
30188   :
30189                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'fc'
30190
30191
30192
30193 fi
30194
30195
30196 if test "x$use_ft" = "xyes"; then
30197   _save_libs="$LIBS"
30198   _save_cflags="$CFLAGS"
30199   LIBS="$LIBS $ft_LIBS"
30200   CFLAGS="$CFLAGS $ft_CFLAGS"
30201
30202   for ac_func in FT_Get_X11_Font_Format FT_GlyphSlot_Embolden FT_GlyphSlot_Oblique FT_Load_Sfnt_Table FT_Library_SetLcdFilter
30203 do :
30204   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30207   cat >>confdefs.h <<_ACEOF
30208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30209 _ACEOF
30210
30211 fi
30212 done
30213
30214
30215   LIBS="$_save_libs"
30216   CFLAGS="$_save_cflags"
30217 fi
30218
30219 if test "x$use_fc" = "xyes"; then
30220         _save_cflags="$CFLAGS"
30221         _save_libs="$LIBS"
30222         CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
30223         LIBS="$LIBS $FONTCONFIG_LIBS"
30224         for ac_func in FcInit FcFini
30225 do :
30226   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30229   cat >>confdefs.h <<_ACEOF
30230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30231 _ACEOF
30232
30233 fi
30234 done
30235
30236         CFLAGS="$_save_cflags"
30237         LIBS="$_save_libs"
30238
30239 fi
30240
30241
30242                                                                                                                                 # Check whether --enable-ps was given.
30243 if test "${enable_ps+set}" = set; then :
30244   enableval=$enable_ps; enable_ps=$enableval
30245 else
30246   enable_ps=yes
30247 fi
30248
30249                         case $enable_ps in #(
30250   no) :
30251                 use_ps="no (disabled, use --enable-ps to enable)"
30252          ;; #(
30253         yes|auto) :
30254                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PostScript surface backend feature" >&5
30255 $as_echo_n "checking for cairo's PostScript surface backend feature... " >&6; }
30256                 echo
30257
30258                 use_ps=yes
30259                         ps_BASE="cairo"
30260 ps_REQUIRES="$ac_env_ps_REQUIRES_value"
30261 ps_CFLAGS="$ac_env_ps_CFLAGS_value"
30262 ps_NONPKGCONFIG_CFLAGS="$ac_env_ps_NONPKGCONFIG_CFLAGS_value"
30263 ps_LIBS="$ac_env_ps_LIBS_value"
30264 ps_NONPKGCONFIG_LIBS="$ac_env_ps_NONPKGCONFIG_LIBS_value"
30265 ps_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ps_NONPKGCONFIG_EXTRA_LIBS_value"
30266
30267
30268
30269     # The ps backend requires zlib.
30270     use_ps=$have_libz
30271     ps_NONPKGCONFIG_LIBS=-lz
30272
30273
30274                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PostScript surface backend feature could be enabled" >&5
30275 $as_echo_n "checking whether cairo's PostScript surface backend feature could be enabled... " >&6; }
30276                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ps" >&5
30277 $as_echo "$use_ps" >&6; }
30278
30279                 if test "x$enable_ps" = "xyes" -a "x$use_ps" != xyes; then :
30280                         as_fn_error $? "recommended PostScript surface backend feature could not be enabled" "$LINENO" 5
30281
30282 fi       ;; #(
30283   *) :
30284                         as_fn_error $? "invalid argument passed to --enable-ps: \`$use_ps', should be one of [no/auto/yes]" "$LINENO" 5
30285          ;;
30286 esac
30287         if test "x$use_ps" = "xyes"; then :
30288                                                                                 CAIRO_REQUIRES="$ps_REQUIRES"" ${CAIRO_REQUIRES}"
30289
30290                                                                         CAIRO_CFLAGS="$ps_CFLAGS"" ${CAIRO_CFLAGS}"
30291
30292                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$ps_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30293
30294                                                                         CAIRO_LIBS="$ps_LIBS"" ${CAIRO_LIBS}"
30295
30296                                                                         CAIRO_NONPKGCONFIG_LIBS="$ps_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30297
30298
30299 else
30300                                         unset ps_BASE
30301 unset ps_REQUIRES
30302 unset ps_CFLAGS
30303 unset ps_NONPKGCONFIG_CFLAGS
30304 unset ps_LIBS
30305 unset ps_NONPKGCONFIG_LIBS
30306 unset ps_NONPKGCONFIG_EXTRA_LIBS
30307
30308
30309 fi
30310
30311                                                          if test "x$use_ps" = xyes; then
30312   CAIRO_HAS_PS_SURFACE_TRUE=
30313   CAIRO_HAS_PS_SURFACE_FALSE='#'
30314 else
30315   CAIRO_HAS_PS_SURFACE_TRUE='#'
30316   CAIRO_HAS_PS_SURFACE_FALSE=
30317 fi
30318
30319
30320                                                                                 cr_make_tmp='CAIRO_HAS_PS_SURFACE=1'
30321                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
30322 ""$cr_make_tmp"
30323
30324
30325                                                                                 cr_make_tmp=''
30326                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30327 ""$cr_make_tmp"
30328
30329                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30330 ""$cr_make_tmp"
30331                                                                                 cr_make_tmp=''
30332                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30333 ""$cr_make_tmp"
30334
30335                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30336 ""$cr_make_tmp"
30337
30338
30339                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_ps_headers)'
30340                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30341 ""$cr_make_tmp"
30342
30343                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30344 ""$cr_make_tmp"
30345                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)'
30346                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30347 ""$cr_make_tmp"
30348
30349                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30350 ""$cr_make_tmp"
30351
30352
30353
30354                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_ps_headers)
30355 all_cairo_private += $(cairo_ps_private)
30356 all_cairo_cxx_sources += $(cairo_ps_cxx_sources)
30357 all_cairo_sources += $(cairo_ps_sources)'
30358                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30359 ""$cr_make_tmp"
30360
30361                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30362 ""$cr_make_tmp"
30363                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
30364 all_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
30365 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
30366 all_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
30367                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30368 ""$cr_make_tmp"
30369
30370                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30371 ""$cr_make_tmp"
30372
30373
30374                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_ps_headers)
30375 enabled_cairo_private += $(cairo_ps_private)
30376 enabled_cairo_cxx_sources += $(cairo_ps_cxx_sources)
30377 enabled_cairo_sources += $(cairo_ps_sources)'
30378                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30379 "'if CAIRO_HAS_PS_SURFACE'
30380                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30381 ""$cr_make_tmp"
30382                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30383 "'endif'
30384
30385                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30386 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
30387                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30388 ""$cr_make_tmp"
30389                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30390 "'endif'
30391                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
30392 enabled_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
30393 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
30394 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
30395                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30396 "'if CAIRO_HAS_PS_SURFACE'
30397                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30398 ""$cr_make_tmp"
30399                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30400 "'endif'
30401
30402                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30403 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
30404                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30405 ""$cr_make_tmp"
30406                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30407 "'endif'
30408
30409
30410
30411
30412                                         if test "x$use_ps" = xyes; then :
30413   :
30414                 ac_config_files="$ac_config_files src/cairo-ps.pc:src/cairo-features.pc.in"
30415
30416
30417 fi
30418                                         if test "x$use_ps" = xyes; then :
30419   :
30420                 ac_config_files="$ac_config_files cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
30421
30422
30423 fi
30424                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-ps.pc'
30425                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30426 ""$cr_make_tmp"
30427
30428                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30429 ""$cr_make_tmp"
30430
30431
30432                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-ps.pc'
30433                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30434 "'if CAIRO_HAS_PS_SURFACE'
30435                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30436 ""$cr_make_tmp"
30437                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30438 "'endif'
30439
30440                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30441 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
30442                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30443 ""$cr_make_tmp"
30444                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30445 "'endif'
30446
30447
30448                                         if test "x$use_ps" = xyes; then :
30449   :
30450                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
30451
30452
30453 fi
30454                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PS_SURFACE'
30455
30456
30457
30458                                         if test "x$use_ps" != xyes; then :
30459   :
30460                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
30461
30462
30463
30464 fi
30465
30466                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
30467                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30468 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
30469                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30470 ""$cr_make_tmp"
30471                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30472 "'endif'
30473
30474
30475
30476                                         if test "x$use_ps" != xyes; then :
30477   :
30478                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
30479
30480 "'+++ It is strongly recommended that you do NOT disable the PostScript surface
30481 +++ backend feature.'
30482
30483
30484
30485 fi
30486
30487
30488
30489
30490
30491 SPECTRE_VERSION_REQUIRED=0.2.0
30492 test_ps=no
30493 any2ppm_ps=no
30494 if test "x$use_ps" = "xyes"; then
30495   # Extract the first word of "gs", so it can be a program name with args.
30496 set dummy gs; ac_word=$2
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30498 $as_echo_n "checking for $ac_word... " >&6; }
30499 if ${ac_cv_prog_GS+:} false; then :
30500   $as_echo_n "(cached) " >&6
30501 else
30502   if test -n "$GS"; then
30503   ac_cv_prog_GS="$GS" # Let the user override the test.
30504 else
30505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30506 for as_dir in $PATH
30507 do
30508   IFS=$as_save_IFS
30509   test -z "$as_dir" && as_dir=.
30510     for ac_exec_ext in '' $ac_executable_extensions; do
30511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30512     ac_cv_prog_GS="gs"
30513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30514     break 2
30515   fi
30516 done
30517   done
30518 IFS=$as_save_IFS
30519
30520 fi
30521 fi
30522 GS=$ac_cv_prog_GS
30523 if test -n "$GS"; then
30524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
30525 $as_echo "$GS" >&6; }
30526 else
30527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30528 $as_echo "no" >&6; }
30529 fi
30530
30531
30532   if test "$GS"; then
30533
30534 $as_echo "#define CAIRO_CAN_TEST_PS_SURFACE 1" >>confdefs.h
30535
30536     test_ps="yes"
30537   else
30538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PS backend will not be tested since ghostscript is not available" >&5
30539 $as_echo "$as_me: WARNING: PS backend will not be tested since ghostscript is not available" >&2;}
30540     test_ps="no (requires ghostscript)"
30541   fi
30542
30543   libspectre_DEPENDENCY="libspectre >= $SPECTRE_VERSION_REQUIRED"
30544
30545 pkg_failed=no
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPECTRE" >&5
30547 $as_echo_n "checking for LIBSPECTRE... " >&6; }
30548
30549 if test -n "$LIBSPECTRE_CFLAGS"; then
30550     pkg_cv_LIBSPECTRE_CFLAGS="$LIBSPECTRE_CFLAGS"
30551  elif test -n "$PKG_CONFIG"; then
30552     if test -n "$PKG_CONFIG" && \
30553     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
30554   ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
30555   ac_status=$?
30556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30557   test $ac_status = 0; }; then
30558   pkg_cv_LIBSPECTRE_CFLAGS=`$PKG_CONFIG --cflags "$libspectre_DEPENDENCY" 2>/dev/null`
30559 else
30560   pkg_failed=yes
30561 fi
30562  else
30563     pkg_failed=untried
30564 fi
30565 if test -n "$LIBSPECTRE_LIBS"; then
30566     pkg_cv_LIBSPECTRE_LIBS="$LIBSPECTRE_LIBS"
30567  elif test -n "$PKG_CONFIG"; then
30568     if test -n "$PKG_CONFIG" && \
30569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
30570   ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
30571   ac_status=$?
30572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30573   test $ac_status = 0; }; then
30574   pkg_cv_LIBSPECTRE_LIBS=`$PKG_CONFIG --libs "$libspectre_DEPENDENCY" 2>/dev/null`
30575 else
30576   pkg_failed=yes
30577 fi
30578  else
30579     pkg_failed=untried
30580 fi
30581
30582
30583
30584 if test $pkg_failed = yes; then
30585
30586 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30587         _pkg_short_errors_supported=yes
30588 else
30589         _pkg_short_errors_supported=no
30590 fi
30591         if test $_pkg_short_errors_supported = yes; then
30592                 LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$libspectre_DEPENDENCY" 2>&1`
30593         else
30594                 LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$libspectre_DEPENDENCY" 2>&1`
30595         fi
30596         # Put the nasty error message in config.log where it belongs
30597         echo "$LIBSPECTRE_PKG_ERRORS" >&5
30598
30599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30600 $as_echo "no" >&6; }
30601                 test_ps="no (requires libspectre)"
30602 elif test $pkg_failed = untried; then
30603         test_ps="no (requires libspectre)"
30604 else
30605         LIBSPECTRE_CFLAGS=$pkg_cv_LIBSPECTRE_CFLAGS
30606         LIBSPECTRE_LIBS=$pkg_cv_LIBSPECTRE_LIBS
30607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30608 $as_echo "yes" >&6; }
30609         any2ppm_ps=yes
30610 fi
30611 fi
30612
30613  if test "x$test_ps" = "xyes"; then
30614   CAIRO_CAN_TEST_PS_SURFACE_TRUE=
30615   CAIRO_CAN_TEST_PS_SURFACE_FALSE='#'
30616 else
30617   CAIRO_CAN_TEST_PS_SURFACE_TRUE='#'
30618   CAIRO_CAN_TEST_PS_SURFACE_FALSE=
30619 fi
30620
30621  if test "x$any2ppm_ps" = "xyes"; then
30622   CAIRO_HAS_SPECTRE_TRUE=
30623   CAIRO_HAS_SPECTRE_FALSE='#'
30624 else
30625   CAIRO_HAS_SPECTRE_TRUE='#'
30626   CAIRO_HAS_SPECTRE_FALSE=
30627 fi
30628
30629 if test "x$any2ppm_ps" = "xyes"; then
30630
30631 $as_echo "#define CAIRO_HAS_SPECTRE 1" >>confdefs.h
30632
30633 fi
30634
30635
30636
30637
30638                                                                                                                                 # Check whether --enable-pdf was given.
30639 if test "${enable_pdf+set}" = set; then :
30640   enableval=$enable_pdf; enable_pdf=$enableval
30641 else
30642   enable_pdf=yes
30643 fi
30644
30645                         case $enable_pdf in #(
30646   no) :
30647                 use_pdf="no (disabled, use --enable-pdf to enable)"
30648          ;; #(
30649         yes|auto) :
30650                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PDF surface backend feature" >&5
30651 $as_echo_n "checking for cairo's PDF surface backend feature... " >&6; }
30652                 echo
30653
30654                 use_pdf=yes
30655                         pdf_BASE="cairo"
30656 pdf_REQUIRES="$ac_env_pdf_REQUIRES_value"
30657 pdf_CFLAGS="$ac_env_pdf_CFLAGS_value"
30658 pdf_NONPKGCONFIG_CFLAGS="$ac_env_pdf_NONPKGCONFIG_CFLAGS_value"
30659 pdf_LIBS="$ac_env_pdf_LIBS_value"
30660 pdf_NONPKGCONFIG_LIBS="$ac_env_pdf_NONPKGCONFIG_LIBS_value"
30661 pdf_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pdf_NONPKGCONFIG_EXTRA_LIBS_value"
30662
30663
30664
30665     # The pdf backend requires zlib.
30666     use_pdf=$have_libz
30667     pdf_NONPKGCONFIG_LIBS=-lz
30668
30669
30670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PDF surface backend feature could be enabled" >&5
30671 $as_echo_n "checking whether cairo's PDF surface backend feature could be enabled... " >&6; }
30672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pdf" >&5
30673 $as_echo "$use_pdf" >&6; }
30674
30675                 if test "x$enable_pdf" = "xyes" -a "x$use_pdf" != xyes; then :
30676                         as_fn_error $? "recommended PDF surface backend feature could not be enabled" "$LINENO" 5
30677
30678 fi       ;; #(
30679   *) :
30680                         as_fn_error $? "invalid argument passed to --enable-pdf: \`$use_pdf', should be one of [no/auto/yes]" "$LINENO" 5
30681          ;;
30682 esac
30683         if test "x$use_pdf" = "xyes"; then :
30684                                                                                 CAIRO_REQUIRES="$pdf_REQUIRES"" ${CAIRO_REQUIRES}"
30685
30686                                                                         CAIRO_CFLAGS="$pdf_CFLAGS"" ${CAIRO_CFLAGS}"
30687
30688                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$pdf_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30689
30690                                                                         CAIRO_LIBS="$pdf_LIBS"" ${CAIRO_LIBS}"
30691
30692                                                                         CAIRO_NONPKGCONFIG_LIBS="$pdf_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30693
30694
30695 else
30696                                         unset pdf_BASE
30697 unset pdf_REQUIRES
30698 unset pdf_CFLAGS
30699 unset pdf_NONPKGCONFIG_CFLAGS
30700 unset pdf_LIBS
30701 unset pdf_NONPKGCONFIG_LIBS
30702 unset pdf_NONPKGCONFIG_EXTRA_LIBS
30703
30704
30705 fi
30706
30707                                                          if test "x$use_pdf" = xyes; then
30708   CAIRO_HAS_PDF_SURFACE_TRUE=
30709   CAIRO_HAS_PDF_SURFACE_FALSE='#'
30710 else
30711   CAIRO_HAS_PDF_SURFACE_TRUE='#'
30712   CAIRO_HAS_PDF_SURFACE_FALSE=
30713 fi
30714
30715
30716                                                                                 cr_make_tmp='CAIRO_HAS_PDF_SURFACE=1'
30717                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
30718 ""$cr_make_tmp"
30719
30720
30721                                                                                 cr_make_tmp=''
30722                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30723 ""$cr_make_tmp"
30724
30725                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30726 ""$cr_make_tmp"
30727                                                                                 cr_make_tmp=''
30728                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30729 ""$cr_make_tmp"
30730
30731                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30732 ""$cr_make_tmp"
30733
30734
30735                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_pdf_headers)'
30736                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30737 ""$cr_make_tmp"
30738
30739                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30740 ""$cr_make_tmp"
30741                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)'
30742                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30743 ""$cr_make_tmp"
30744
30745                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30746 ""$cr_make_tmp"
30747
30748
30749
30750                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_pdf_headers)
30751 all_cairo_private += $(cairo_pdf_private)
30752 all_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
30753 all_cairo_sources += $(cairo_pdf_sources)'
30754                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30755 ""$cr_make_tmp"
30756
30757                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30758 ""$cr_make_tmp"
30759                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
30760 all_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
30761 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
30762 all_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
30763                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30764 ""$cr_make_tmp"
30765
30766                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30767 ""$cr_make_tmp"
30768
30769
30770                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_pdf_headers)
30771 enabled_cairo_private += $(cairo_pdf_private)
30772 enabled_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
30773 enabled_cairo_sources += $(cairo_pdf_sources)'
30774                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30775 "'if CAIRO_HAS_PDF_SURFACE'
30776                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30777 ""$cr_make_tmp"
30778                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30779 "'endif'
30780
30781                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30782 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
30783                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30784 ""$cr_make_tmp"
30785                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30786 "'endif'
30787                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
30788 enabled_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
30789 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
30790 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
30791                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30792 "'if CAIRO_HAS_PDF_SURFACE'
30793                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30794 ""$cr_make_tmp"
30795                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30796 "'endif'
30797
30798                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30799 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
30800                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30801 ""$cr_make_tmp"
30802                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30803 "'endif'
30804
30805
30806
30807
30808                                         if test "x$use_pdf" = xyes; then :
30809   :
30810                 ac_config_files="$ac_config_files src/cairo-pdf.pc:src/cairo-features.pc.in"
30811
30812
30813 fi
30814                                         if test "x$use_pdf" = xyes; then :
30815   :
30816                 ac_config_files="$ac_config_files cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
30817
30818
30819 fi
30820                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-pdf.pc'
30821                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30822 ""$cr_make_tmp"
30823
30824                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30825 ""$cr_make_tmp"
30826
30827
30828                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-pdf.pc'
30829                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30830 "'if CAIRO_HAS_PDF_SURFACE'
30831                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30832 ""$cr_make_tmp"
30833                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30834 "'endif'
30835
30836                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30837 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
30838                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30839 ""$cr_make_tmp"
30840                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30841 "'endif'
30842
30843
30844                                         if test "x$use_pdf" = xyes; then :
30845   :
30846                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
30847
30848
30849 fi
30850                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
30851
30852
30853
30854                                         if test "x$use_pdf" != xyes; then :
30855   :
30856                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
30857
30858
30859
30860 fi
30861
30862                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PDF_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
30863                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30864 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
30865                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30866 ""$cr_make_tmp"
30867                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30868 "'endif'
30869
30870
30871
30872                                         if test "x$use_pdf" != xyes; then :
30873   :
30874                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
30875
30876 "'+++ It is strongly recommended that you do NOT disable the PDF surface
30877 +++ backend feature.'
30878
30879
30880
30881 fi
30882
30883
30884
30885
30886
30887 # poppler-0.17.4 fixes text-pattern and text-transform
30888 POPPLER_VERSION_REQUIRED=0.17.4
30889 test_pdf=no
30890 any2ppm_pdf=no
30891 if test "x$use_pdf" = "xyes"; then
30892   poppler_DEPENDENCY="poppler-glib >= $POPPLER_VERSION_REQUIRED"
30893
30894 pkg_failed=no
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
30896 $as_echo_n "checking for POPPLER... " >&6; }
30897
30898 if test -n "$POPPLER_CFLAGS"; then
30899     pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
30900  elif test -n "$PKG_CONFIG"; then
30901     if test -n "$PKG_CONFIG" && \
30902     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
30903   ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
30904   ac_status=$?
30905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30906   test $ac_status = 0; }; then
30907   pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "$poppler_DEPENDENCY" 2>/dev/null`
30908 else
30909   pkg_failed=yes
30910 fi
30911  else
30912     pkg_failed=untried
30913 fi
30914 if test -n "$POPPLER_LIBS"; then
30915     pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
30916  elif test -n "$PKG_CONFIG"; then
30917     if test -n "$PKG_CONFIG" && \
30918     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
30919   ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
30920   ac_status=$?
30921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30922   test $ac_status = 0; }; then
30923   pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "$poppler_DEPENDENCY" 2>/dev/null`
30924 else
30925   pkg_failed=yes
30926 fi
30927  else
30928     pkg_failed=untried
30929 fi
30930
30931
30932
30933 if test $pkg_failed = yes; then
30934
30935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30936         _pkg_short_errors_supported=yes
30937 else
30938         _pkg_short_errors_supported=no
30939 fi
30940         if test $_pkg_short_errors_supported = yes; then
30941                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$poppler_DEPENDENCY" 2>&1`
30942         else
30943                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "$poppler_DEPENDENCY" 2>&1`
30944         fi
30945         # Put the nasty error message in config.log where it belongs
30946         echo "$POPPLER_PKG_ERRORS" >&5
30947
30948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30949 $as_echo "no" >&6; }
30950                 test_pdf="no (requires $poppler_DEPENDENCY)"
30951 elif test $pkg_failed = untried; then
30952         test_pdf="no (requires $poppler_DEPENDENCY)"
30953 else
30954         POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
30955         POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
30956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957 $as_echo "yes" >&6; }
30958                 _save_cflags="$CFLAGS"
30959         _save_libs="$LIBS"
30960         CFLAGS="$CFLAGS $POPPLER_CFLAGS"
30961         LIBS="$LIBS $POPPLER_LIBS"
30962         for ac_func in poppler_page_render
30963 do :
30964   ac_fn_c_check_func "$LINENO" "poppler_page_render" "ac_cv_func_poppler_page_render"
30965 if test "x$ac_cv_func_poppler_page_render" = xyes; then :
30966   cat >>confdefs.h <<_ACEOF
30967 #define HAVE_POPPLER_PAGE_RENDER 1
30968 _ACEOF
30969  test_pdf=yes; any2ppm_pdf=yes
30970 else
30971   test_pdf="no (requires $poppler_DEPENDENCY)"
30972 fi
30973 done
30974
30975         CFLAGS="$_save_cflags"
30976         LIBS="$_save_libs"
30977
30978 fi
30979   if test "x$test_pdf" = "xyes"; then
30980
30981 $as_echo "#define CAIRO_CAN_TEST_PDF_SURFACE 1" >>confdefs.h
30982
30983   else
30984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&5
30985 $as_echo "$as_me: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&2;}
30986   fi
30987 fi
30988
30989  if test "x$test_pdf" = "xyes"; then
30990   CAIRO_CAN_TEST_PDF_SURFACE_TRUE=
30991   CAIRO_CAN_TEST_PDF_SURFACE_FALSE='#'
30992 else
30993   CAIRO_CAN_TEST_PDF_SURFACE_TRUE='#'
30994   CAIRO_CAN_TEST_PDF_SURFACE_FALSE=
30995 fi
30996
30997
30998
30999
31000  if test "x$use_ps" = "xyes" -o "x$use_pdf" = "xyes"; then
31001   CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE=
31002   CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE='#'
31003 else
31004   CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE='#'
31005   CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE=
31006 fi
31007
31008
31009
31010                                                                                                                                 # Check whether --enable-svg was given.
31011 if test "${enable_svg+set}" = set; then :
31012   enableval=$enable_svg; enable_svg=$enableval
31013 else
31014   enable_svg=yes
31015 fi
31016
31017                         case $enable_svg in #(
31018   no) :
31019                 use_svg="no (disabled, use --enable-svg to enable)"
31020          ;; #(
31021         yes|auto) :
31022                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's SVG surface backend feature" >&5
31023 $as_echo_n "checking for cairo's SVG surface backend feature... " >&6; }
31024                 echo
31025
31026                 use_svg=yes
31027                         svg_BASE="cairo"
31028 svg_REQUIRES="$ac_env_svg_REQUIRES_value"
31029 svg_CFLAGS="$ac_env_svg_CFLAGS_value"
31030 svg_NONPKGCONFIG_CFLAGS="$ac_env_svg_NONPKGCONFIG_CFLAGS_value"
31031 svg_LIBS="$ac_env_svg_LIBS_value"
31032 svg_NONPKGCONFIG_LIBS="$ac_env_svg_NONPKGCONFIG_LIBS_value"
31033 svg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_svg_NONPKGCONFIG_EXTRA_LIBS_value"
31034
31035
31036
31037   if test "x$use_png" != "xyes"; then
31038     use_svg="no (requires --enable-png)"
31039   fi
31040
31041
31042                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's SVG surface backend feature could be enabled" >&5
31043 $as_echo_n "checking whether cairo's SVG surface backend feature could be enabled... " >&6; }
31044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_svg" >&5
31045 $as_echo "$use_svg" >&6; }
31046
31047                 if test "x$enable_svg" = "xyes" -a "x$use_svg" != xyes; then :
31048                         as_fn_error $? "recommended SVG surface backend feature could not be enabled" "$LINENO" 5
31049
31050 fi       ;; #(
31051   *) :
31052                         as_fn_error $? "invalid argument passed to --enable-svg: \`$use_svg', should be one of [no/auto/yes]" "$LINENO" 5
31053          ;;
31054 esac
31055         if test "x$use_svg" = "xyes"; then :
31056                                                                                 CAIRO_REQUIRES="$svg_REQUIRES"" ${CAIRO_REQUIRES}"
31057
31058                                                                         CAIRO_CFLAGS="$svg_CFLAGS"" ${CAIRO_CFLAGS}"
31059
31060                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$svg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31061
31062                                                                         CAIRO_LIBS="$svg_LIBS"" ${CAIRO_LIBS}"
31063
31064                                                                         CAIRO_NONPKGCONFIG_LIBS="$svg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31065
31066
31067 else
31068                                         unset svg_BASE
31069 unset svg_REQUIRES
31070 unset svg_CFLAGS
31071 unset svg_NONPKGCONFIG_CFLAGS
31072 unset svg_LIBS
31073 unset svg_NONPKGCONFIG_LIBS
31074 unset svg_NONPKGCONFIG_EXTRA_LIBS
31075
31076
31077 fi
31078
31079                                                          if test "x$use_svg" = xyes; then
31080   CAIRO_HAS_SVG_SURFACE_TRUE=
31081   CAIRO_HAS_SVG_SURFACE_FALSE='#'
31082 else
31083   CAIRO_HAS_SVG_SURFACE_TRUE='#'
31084   CAIRO_HAS_SVG_SURFACE_FALSE=
31085 fi
31086
31087
31088                                                                                 cr_make_tmp='CAIRO_HAS_SVG_SURFACE=1'
31089                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
31090 ""$cr_make_tmp"
31091
31092
31093                                                                                 cr_make_tmp=''
31094                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31095 ""$cr_make_tmp"
31096
31097                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31098 ""$cr_make_tmp"
31099                                                                                 cr_make_tmp=''
31100                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31101 ""$cr_make_tmp"
31102
31103                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31104 ""$cr_make_tmp"
31105
31106
31107                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_svg_headers)'
31108                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31109 ""$cr_make_tmp"
31110
31111                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31112 ""$cr_make_tmp"
31113                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)'
31114                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31115 ""$cr_make_tmp"
31116
31117                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31118 ""$cr_make_tmp"
31119
31120
31121
31122                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_svg_headers)
31123 all_cairo_private += $(cairo_svg_private)
31124 all_cairo_cxx_sources += $(cairo_svg_cxx_sources)
31125 all_cairo_sources += $(cairo_svg_sources)'
31126                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31127 ""$cr_make_tmp"
31128
31129                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31130 ""$cr_make_tmp"
31131                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
31132 all_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
31133 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
31134 all_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
31135                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31136 ""$cr_make_tmp"
31137
31138                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31139 ""$cr_make_tmp"
31140
31141
31142                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_svg_headers)
31143 enabled_cairo_private += $(cairo_svg_private)
31144 enabled_cairo_cxx_sources += $(cairo_svg_cxx_sources)
31145 enabled_cairo_sources += $(cairo_svg_sources)'
31146                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31147 "'if CAIRO_HAS_SVG_SURFACE'
31148                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31149 ""$cr_make_tmp"
31150                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31151 "'endif'
31152
31153                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31154 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
31155                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31156 ""$cr_make_tmp"
31157                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31158 "'endif'
31159                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
31160 enabled_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
31161 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
31162 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
31163                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31164 "'if CAIRO_HAS_SVG_SURFACE'
31165                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31166 ""$cr_make_tmp"
31167                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31168 "'endif'
31169
31170                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31171 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
31172                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31173 ""$cr_make_tmp"
31174                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31175 "'endif'
31176
31177
31178
31179
31180                                         if test "x$use_svg" = xyes; then :
31181   :
31182                 ac_config_files="$ac_config_files src/cairo-svg.pc:src/cairo-features.pc.in"
31183
31184
31185 fi
31186                                         if test "x$use_svg" = xyes; then :
31187   :
31188                 ac_config_files="$ac_config_files cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
31189
31190
31191 fi
31192                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-svg.pc'
31193                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31194 ""$cr_make_tmp"
31195
31196                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31197 ""$cr_make_tmp"
31198
31199
31200                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-svg.pc'
31201                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31202 "'if CAIRO_HAS_SVG_SURFACE'
31203                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31204 ""$cr_make_tmp"
31205                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31206 "'endif'
31207
31208                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31209 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
31210                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31211 ""$cr_make_tmp"
31212                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31213 "'endif'
31214
31215
31216                                         if test "x$use_svg" = xyes; then :
31217   :
31218                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
31219
31220
31221 fi
31222                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
31223
31224
31225
31226                                         if test "x$use_svg" != xyes; then :
31227   :
31228                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
31229
31230
31231
31232 fi
31233
31234                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SVG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31235                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31236 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
31237                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31238 ""$cr_make_tmp"
31239                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31240 "'endif'
31241
31242
31243
31244                                         if test "x$use_svg" != xyes; then :
31245   :
31246                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
31247
31248 "'+++ It is strongly recommended that you do NOT disable the SVG surface
31249 +++ backend feature.'
31250
31251
31252
31253 fi
31254
31255
31256
31257
31258 LIBRSVG_VERSION_REQUIRED=2.15.0
31259 test_svg=no
31260 any2ppm_svg=no
31261 if test "x$use_svg" = "xyes"; then
31262   librsvg_DEPENDENCY="librsvg-2.0 >= $LIBRSVG_VERSION_REQUIRED"
31263
31264 pkg_failed=no
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
31266 $as_echo_n "checking for LIBRSVG... " >&6; }
31267
31268 if test -n "$LIBRSVG_CFLAGS"; then
31269     pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
31270  elif test -n "$PKG_CONFIG"; then
31271     if test -n "$PKG_CONFIG" && \
31272     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
31273   ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
31274   ac_status=$?
31275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31276   test $ac_status = 0; }; then
31277   pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
31278 else
31279   pkg_failed=yes
31280 fi
31281  else
31282     pkg_failed=untried
31283 fi
31284 if test -n "$LIBRSVG_LIBS"; then
31285     pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
31286  elif test -n "$PKG_CONFIG"; then
31287     if test -n "$PKG_CONFIG" && \
31288     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
31289   ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
31290   ac_status=$?
31291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31292   test $ac_status = 0; }; then
31293   pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
31294 else
31295   pkg_failed=yes
31296 fi
31297  else
31298     pkg_failed=untried
31299 fi
31300
31301
31302
31303 if test $pkg_failed = yes; then
31304
31305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31306         _pkg_short_errors_supported=yes
31307 else
31308         _pkg_short_errors_supported=no
31309 fi
31310         if test $_pkg_short_errors_supported = yes; then
31311                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
31312         else
31313                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
31314         fi
31315         # Put the nasty error message in config.log where it belongs
31316         echo "$LIBRSVG_PKG_ERRORS" >&5
31317
31318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319 $as_echo "no" >&6; }
31320                 test_svg="no (requires $librsvg_DEPENDENCY)"
31321 elif test $pkg_failed = untried; then
31322         test_svg="no (requires $librsvg_DEPENDENCY)"
31323 else
31324         LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
31325         LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
31326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31327 $as_echo "yes" >&6; }
31328                 _save_cflags="$CFLAGS"
31329         _save_libs="$LIBS"
31330         CFLAGS="$CFLAGS $LIBRSVG_CFLAGS"
31331         LIBS="$LIBS $LIBRSVG_LIBS"
31332         for ac_func in rsvg_pixbuf_from_file
31333 do :
31334   ac_fn_c_check_func "$LINENO" "rsvg_pixbuf_from_file" "ac_cv_func_rsvg_pixbuf_from_file"
31335 if test "x$ac_cv_func_rsvg_pixbuf_from_file" = xyes; then :
31336   cat >>confdefs.h <<_ACEOF
31337 #define HAVE_RSVG_PIXBUF_FROM_FILE 1
31338 _ACEOF
31339  test_svg=yes; any2ppm_svg=yes
31340 else
31341   test_svg="no (requires $librsvg_DEPENDENCY)"
31342 fi
31343 done
31344
31345         CFLAGS="$_save_cflags"
31346         LIBS="$_save_libs"
31347
31348 fi
31349   if test "x$test_svg" = "xyes"; then
31350
31351 $as_echo "#define CAIRO_CAN_TEST_SVG_SURFACE 1" >>confdefs.h
31352
31353   else
31354     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&5
31355 $as_echo "$as_me: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&2;}
31356   fi
31357 fi
31358
31359  if test "x$test_svg" = "xyes"; then
31360   CAIRO_CAN_TEST_SVG_SURFACE_TRUE=
31361   CAIRO_CAN_TEST_SVG_SURFACE_FALSE='#'
31362 else
31363   CAIRO_CAN_TEST_SVG_SURFACE_TRUE='#'
31364   CAIRO_CAN_TEST_SVG_SURFACE_FALSE=
31365 fi
31366
31367
31368
31369
31370
31371                                                                                                                                 # Check whether --enable-test-surfaces was given.
31372 if test "${enable_test_surfaces+set}" = set; then :
31373   enableval=$enable_test_surfaces; enable_test_surfaces=$enableval
31374 else
31375   enable_test_surfaces=no
31376 fi
31377
31378                         case $enable_test_surfaces in #(
31379   no) :
31380                 use_test_surfaces="no (disabled, use --enable-test-surfaces to enable)"
31381          ;; #(
31382         yes|auto) :
31383                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's test surfaces feature" >&5
31384 $as_echo_n "checking for cairo's test surfaces feature... " >&6; }
31385                 echo
31386
31387                 use_test_surfaces=yes
31388                         test_surfaces_BASE="cairo"
31389 test_surfaces_REQUIRES="$ac_env_test_surfaces_REQUIRES_value"
31390 test_surfaces_CFLAGS="$ac_env_test_surfaces_CFLAGS_value"
31391 test_surfaces_NONPKGCONFIG_CFLAGS="$ac_env_test_surfaces_NONPKGCONFIG_CFLAGS_value"
31392 test_surfaces_LIBS="$ac_env_test_surfaces_LIBS_value"
31393 test_surfaces_NONPKGCONFIG_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_LIBS_value"
31394 test_surfaces_NONPKGCONFIG_EXTRA_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_EXTRA_LIBS_value"
31395
31396
31397
31398
31399                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's test surfaces feature could be enabled" >&5
31400 $as_echo_n "checking whether cairo's test surfaces feature could be enabled... " >&6; }
31401                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_test_surfaces" >&5
31402 $as_echo "$use_test_surfaces" >&6; }
31403
31404                 if test "x$enable_test_surfaces" = "xyes" -a "x$use_test_surfaces" != xyes; then :
31405                         as_fn_error $? " test surfaces feature could not be enabled" "$LINENO" 5
31406
31407 fi       ;; #(
31408   *) :
31409                         as_fn_error $? "invalid argument passed to --enable-test-surfaces: \`$use_test_surfaces', should be one of [no/auto/yes]" "$LINENO" 5
31410          ;;
31411 esac
31412         if test "x$use_test_surfaces" = "xyes"; then :
31413                                                                                 CAIRO_REQUIRES="$test_surfaces_REQUIRES"" ${CAIRO_REQUIRES}"
31414
31415                                                                         CAIRO_CFLAGS="$test_surfaces_CFLAGS"" ${CAIRO_CFLAGS}"
31416
31417                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$test_surfaces_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31418
31419                                                                         CAIRO_LIBS="$test_surfaces_LIBS"" ${CAIRO_LIBS}"
31420
31421                                                                         CAIRO_NONPKGCONFIG_LIBS="$test_surfaces_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31422
31423
31424 else
31425                                         unset test_surfaces_BASE
31426 unset test_surfaces_REQUIRES
31427 unset test_surfaces_CFLAGS
31428 unset test_surfaces_NONPKGCONFIG_CFLAGS
31429 unset test_surfaces_LIBS
31430 unset test_surfaces_NONPKGCONFIG_LIBS
31431 unset test_surfaces_NONPKGCONFIG_EXTRA_LIBS
31432
31433
31434 fi
31435
31436                                                          if test "x$use_test_surfaces" = xyes; then
31437   CAIRO_HAS_TEST_SURFACES_TRUE=
31438   CAIRO_HAS_TEST_SURFACES_FALSE='#'
31439 else
31440   CAIRO_HAS_TEST_SURFACES_TRUE='#'
31441   CAIRO_HAS_TEST_SURFACES_FALSE=
31442 fi
31443
31444
31445                                                                                 cr_make_tmp='CAIRO_HAS_TEST_SURFACES=0'
31446                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
31447 ""$cr_make_tmp"
31448
31449
31450                                                                                 cr_make_tmp=''
31451                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31452 ""$cr_make_tmp"
31453
31454                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31455 ""$cr_make_tmp"
31456                                                                                 cr_make_tmp=''
31457                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31458 ""$cr_make_tmp"
31459
31460                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31461 ""$cr_make_tmp"
31462
31463
31464
31465
31466
31467
31468                                                                                 cr_make_tmp='all_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
31469 all_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
31470 all_cairo_sources += $(cairo_test_surfaces_sources)'
31471                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31472 ""$cr_make_tmp"
31473
31474                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31475 ""$cr_make_tmp"
31476                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
31477 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
31478 all_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
31479                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31480 ""$cr_make_tmp"
31481
31482                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31483 ""$cr_make_tmp"
31484
31485
31486                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
31487 enabled_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
31488 enabled_cairo_sources += $(cairo_test_surfaces_sources)'
31489                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31490 "'if CAIRO_HAS_TEST_SURFACES'
31491                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31492 ""$cr_make_tmp"
31493                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31494 "'endif'
31495
31496                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31497 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
31498                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31499 ""$cr_make_tmp"
31500                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31501 "'endif'
31502                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
31503 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
31504 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
31505                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31506 "'if CAIRO_HAS_TEST_SURFACES'
31507                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31508 ""$cr_make_tmp"
31509                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31510 "'endif'
31511
31512                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31513 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
31514                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31515 ""$cr_make_tmp"
31516                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31517 "'endif'
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527                                         if test "x$use_test_surfaces" = xyes; then :
31528   :
31529
31530 $as_echo "#define CAIRO_HAS_TEST_SURFACES 1" >>confdefs.h
31531
31532
31533
31534 fi
31535                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TEST_SURFACES 1" >> $(top_srcdir)/src/cairo-features.h'
31536                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31537 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
31538                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31539 ""$cr_make_tmp"
31540                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31541 "'endif'
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551                                                                                                                                 enable_image=yes
31552                         case $enable_image in #(
31553   no) :
31554                 use_image="no (disabled, use --enable-image to enable)"
31555          ;; #(
31556         yes|auto) :
31557                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's image surface backend feature" >&5
31558 $as_echo_n "checking for cairo's image surface backend feature... " >&6; }
31559                 echo
31560
31561                 use_image=yes
31562                         image_BASE="cairo"
31563 image_REQUIRES="$ac_env_image_REQUIRES_value"
31564 image_CFLAGS="$ac_env_image_CFLAGS_value"
31565 image_NONPKGCONFIG_CFLAGS="$ac_env_image_NONPKGCONFIG_CFLAGS_value"
31566 image_LIBS="$ac_env_image_LIBS_value"
31567 image_NONPKGCONFIG_LIBS="$ac_env_image_NONPKGCONFIG_LIBS_value"
31568 image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_image_NONPKGCONFIG_EXTRA_LIBS_value"
31569
31570
31571
31572   pixman_REQUIRES="pixman-1 >= 0.16.0"
31573
31574 pkg_failed=no
31575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman" >&5
31576 $as_echo_n "checking for pixman... " >&6; }
31577
31578 if test -n "$pixman_CFLAGS"; then
31579     pkg_cv_pixman_CFLAGS="$pixman_CFLAGS"
31580  elif test -n "$PKG_CONFIG"; then
31581     if test -n "$PKG_CONFIG" && \
31582     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
31583   ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
31584   ac_status=$?
31585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31586   test $ac_status = 0; }; then
31587   pkg_cv_pixman_CFLAGS=`$PKG_CONFIG --cflags "$pixman_REQUIRES" 2>/dev/null`
31588 else
31589   pkg_failed=yes
31590 fi
31591  else
31592     pkg_failed=untried
31593 fi
31594 if test -n "$pixman_LIBS"; then
31595     pkg_cv_pixman_LIBS="$pixman_LIBS"
31596  elif test -n "$PKG_CONFIG"; then
31597     if test -n "$PKG_CONFIG" && \
31598     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
31599   ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
31600   ac_status=$?
31601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31602   test $ac_status = 0; }; then
31603   pkg_cv_pixman_LIBS=`$PKG_CONFIG --libs "$pixman_REQUIRES" 2>/dev/null`
31604 else
31605   pkg_failed=yes
31606 fi
31607  else
31608     pkg_failed=untried
31609 fi
31610
31611
31612
31613 if test $pkg_failed = yes; then
31614
31615 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31616         _pkg_short_errors_supported=yes
31617 else
31618         _pkg_short_errors_supported=no
31619 fi
31620         if test $_pkg_short_errors_supported = yes; then
31621                 pixman_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pixman_REQUIRES" 2>&1`
31622         else
31623                 pixman_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pixman_REQUIRES" 2>&1`
31624         fi
31625         # Put the nasty error message in config.log where it belongs
31626         echo "$pixman_PKG_ERRORS" >&5
31627
31628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31630                 use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"
31631 elif test $pkg_failed = untried; then
31632         use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"
31633 else
31634         pixman_CFLAGS=$pkg_cv_pixman_CFLAGS
31635         pixman_LIBS=$pkg_cv_pixman_LIBS
31636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31637 $as_echo "yes" >&6; }
31638         :
31639 fi
31640   image_REQUIRES=$pixman_REQUIRES
31641   image_CFLAGS=$pixman_CFLAGS
31642   image_LIBS=$pixman_LIBS
31643
31644
31645                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's image surface backend feature could be enabled" >&5
31646 $as_echo_n "checking whether cairo's image surface backend feature could be enabled... " >&6; }
31647                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_image" >&5
31648 $as_echo "$use_image" >&6; }
31649
31650                 if test "x$enable_image" = "xyes" -a "x$use_image" != xyes; then :
31651                         as_fn_error $? "mandatory image surface backend feature could not be enabled" "$LINENO" 5
31652
31653 fi       ;; #(
31654   *) :
31655                         as_fn_error $? "invalid argument passed to --enable-image: \`$use_image', should be one of [no/auto/yes]" "$LINENO" 5
31656          ;;
31657 esac
31658         if test "x$use_image" = "xyes"; then :
31659                                                                                 CAIRO_REQUIRES="$image_REQUIRES"" ${CAIRO_REQUIRES}"
31660
31661                                                                         CAIRO_CFLAGS="$image_CFLAGS"" ${CAIRO_CFLAGS}"
31662
31663                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31664
31665                                                                         CAIRO_LIBS="$image_LIBS"" ${CAIRO_LIBS}"
31666
31667                                                                         CAIRO_NONPKGCONFIG_LIBS="$image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31668
31669
31670 else
31671                                         unset image_BASE
31672 unset image_REQUIRES
31673 unset image_CFLAGS
31674 unset image_NONPKGCONFIG_CFLAGS
31675 unset image_LIBS
31676 unset image_NONPKGCONFIG_LIBS
31677 unset image_NONPKGCONFIG_EXTRA_LIBS
31678
31679
31680 fi
31681
31682
31683
31684                                                                                 cr_make_tmp=''
31685                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31686 ""$cr_make_tmp"
31687
31688                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31689 ""$cr_make_tmp"
31690                                                                                 cr_make_tmp=''
31691                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31692 ""$cr_make_tmp"
31693
31694                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31695 ""$cr_make_tmp"
31696
31697
31698                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_image_headers)'
31699                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31700 ""$cr_make_tmp"
31701
31702                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31703 ""$cr_make_tmp"
31704                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)'
31705                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31706 ""$cr_make_tmp"
31707
31708                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31709 ""$cr_make_tmp"
31710
31711
31712
31713                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_image_headers)
31714 all_cairo_private += $(cairo_image_private)
31715 all_cairo_cxx_sources += $(cairo_image_cxx_sources)
31716 all_cairo_sources += $(cairo_image_sources)'
31717                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31718 ""$cr_make_tmp"
31719
31720                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31721 ""$cr_make_tmp"
31722                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
31723 all_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
31724 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
31725 all_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
31726                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31727 ""$cr_make_tmp"
31728
31729                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31730 ""$cr_make_tmp"
31731
31732
31733                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_image_headers)
31734 enabled_cairo_private += $(cairo_image_private)
31735 enabled_cairo_cxx_sources += $(cairo_image_cxx_sources)
31736 enabled_cairo_sources += $(cairo_image_sources)'
31737                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31738 ""$cr_make_tmp"
31739
31740                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31741 ""$cr_make_tmp"
31742                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
31743 enabled_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
31744 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
31745 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
31746                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31747 ""$cr_make_tmp"
31748
31749                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31750 ""$cr_make_tmp"
31751
31752
31753
31754
31755
31756
31757
31758
31759                                         if test "x$use_image" = xyes; then :
31760   :
31761                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
31762
31763
31764 fi
31765                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
31766
31767
31768
31769                                         if test "x$use_image" != xyes; then :
31770   :
31771                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
31772
31773
31774
31775 fi
31776
31777                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31778                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31779 ""$cr_make_tmp"
31780
31781
31782
31783
31784
31785
31786
31787
31788 if pkg-config --exists 'pixman-1 >= 0.27.1'; then
31789
31790 $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
31791
31792 fi
31793
31794
31795
31796                                                                                                                                 enable_mime=yes
31797                         case $enable_mime in #(
31798   no) :
31799                 use_mime="no (disabled, use --enable-mime to enable)"
31800          ;; #(
31801         yes|auto) :
31802                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's mime surface backend feature" >&5
31803 $as_echo_n "checking for cairo's mime surface backend feature... " >&6; }
31804                 echo
31805
31806                 use_mime=yes
31807                         mime_BASE="cairo"
31808 mime_REQUIRES="$ac_env_mime_REQUIRES_value"
31809 mime_CFLAGS="$ac_env_mime_CFLAGS_value"
31810 mime_NONPKGCONFIG_CFLAGS="$ac_env_mime_NONPKGCONFIG_CFLAGS_value"
31811 mime_LIBS="$ac_env_mime_LIBS_value"
31812 mime_NONPKGCONFIG_LIBS="$ac_env_mime_NONPKGCONFIG_LIBS_value"
31813 mime_NONPKGCONFIG_EXTRA_LIBS="$ac_env_mime_NONPKGCONFIG_EXTRA_LIBS_value"
31814
31815
31816
31817
31818                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's mime surface backend feature could be enabled" >&5
31819 $as_echo_n "checking whether cairo's mime surface backend feature could be enabled... " >&6; }
31820                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_mime" >&5
31821 $as_echo "$use_mime" >&6; }
31822
31823                 if test "x$enable_mime" = "xyes" -a "x$use_mime" != xyes; then :
31824                         as_fn_error $? "mandatory mime surface backend feature could not be enabled" "$LINENO" 5
31825
31826 fi       ;; #(
31827   *) :
31828                         as_fn_error $? "invalid argument passed to --enable-mime: \`$use_mime', should be one of [no/auto/yes]" "$LINENO" 5
31829          ;;
31830 esac
31831         if test "x$use_mime" = "xyes"; then :
31832                                                                                 CAIRO_REQUIRES="$mime_REQUIRES"" ${CAIRO_REQUIRES}"
31833
31834                                                                         CAIRO_CFLAGS="$mime_CFLAGS"" ${CAIRO_CFLAGS}"
31835
31836                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$mime_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31837
31838                                                                         CAIRO_LIBS="$mime_LIBS"" ${CAIRO_LIBS}"
31839
31840                                                                         CAIRO_NONPKGCONFIG_LIBS="$mime_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31841
31842
31843 else
31844                                         unset mime_BASE
31845 unset mime_REQUIRES
31846 unset mime_CFLAGS
31847 unset mime_NONPKGCONFIG_CFLAGS
31848 unset mime_LIBS
31849 unset mime_NONPKGCONFIG_LIBS
31850 unset mime_NONPKGCONFIG_EXTRA_LIBS
31851
31852
31853 fi
31854
31855
31856
31857                                                                                 cr_make_tmp=''
31858                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31859 ""$cr_make_tmp"
31860
31861                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31862 ""$cr_make_tmp"
31863                                                                                 cr_make_tmp=''
31864                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31865 ""$cr_make_tmp"
31866
31867                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31868 ""$cr_make_tmp"
31869
31870
31871                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_mime_headers)'
31872                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31873 ""$cr_make_tmp"
31874
31875                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31876 ""$cr_make_tmp"
31877                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)'
31878                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31879 ""$cr_make_tmp"
31880
31881                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31882 ""$cr_make_tmp"
31883
31884
31885
31886                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_mime_headers)
31887 all_cairo_private += $(cairo_mime_private)
31888 all_cairo_cxx_sources += $(cairo_mime_cxx_sources)
31889 all_cairo_sources += $(cairo_mime_sources)'
31890                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31891 ""$cr_make_tmp"
31892
31893                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31894 ""$cr_make_tmp"
31895                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
31896 all_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
31897 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
31898 all_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
31899                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31900 ""$cr_make_tmp"
31901
31902                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31903 ""$cr_make_tmp"
31904
31905
31906                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_mime_headers)
31907 enabled_cairo_private += $(cairo_mime_private)
31908 enabled_cairo_cxx_sources += $(cairo_mime_cxx_sources)
31909 enabled_cairo_sources += $(cairo_mime_sources)'
31910                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31911 ""$cr_make_tmp"
31912
31913                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31914 ""$cr_make_tmp"
31915                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
31916 enabled_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
31917 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
31918 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
31919                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31920 ""$cr_make_tmp"
31921
31922                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31923 ""$cr_make_tmp"
31924
31925
31926
31927
31928
31929
31930
31931
31932                                         if test "x$use_mime" = xyes; then :
31933   :
31934                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
31935
31936
31937 fi
31938                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
31939
31940
31941
31942                                         if test "x$use_mime" != xyes; then :
31943   :
31944                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
31945
31946
31947
31948 fi
31949
31950                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_MIME_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31951                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31952 ""$cr_make_tmp"
31953
31954
31955
31956
31957
31958
31959
31960                                                                                                                                 enable_recording=yes
31961                         case $enable_recording in #(
31962   no) :
31963                 use_recording="no (disabled, use --enable-recording to enable)"
31964          ;; #(
31965         yes|auto) :
31966                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's recording surface backend feature" >&5
31967 $as_echo_n "checking for cairo's recording surface backend feature... " >&6; }
31968                 echo
31969
31970                 use_recording=yes
31971                         recording_BASE="cairo"
31972 recording_REQUIRES="$ac_env_recording_REQUIRES_value"
31973 recording_CFLAGS="$ac_env_recording_CFLAGS_value"
31974 recording_NONPKGCONFIG_CFLAGS="$ac_env_recording_NONPKGCONFIG_CFLAGS_value"
31975 recording_LIBS="$ac_env_recording_LIBS_value"
31976 recording_NONPKGCONFIG_LIBS="$ac_env_recording_NONPKGCONFIG_LIBS_value"
31977 recording_NONPKGCONFIG_EXTRA_LIBS="$ac_env_recording_NONPKGCONFIG_EXTRA_LIBS_value"
31978
31979
31980
31981
31982                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's recording surface backend feature could be enabled" >&5
31983 $as_echo_n "checking whether cairo's recording surface backend feature could be enabled... " >&6; }
31984                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_recording" >&5
31985 $as_echo "$use_recording" >&6; }
31986
31987                 if test "x$enable_recording" = "xyes" -a "x$use_recording" != xyes; then :
31988                         as_fn_error $? "mandatory recording surface backend feature could not be enabled" "$LINENO" 5
31989
31990 fi       ;; #(
31991   *) :
31992                         as_fn_error $? "invalid argument passed to --enable-recording: \`$use_recording', should be one of [no/auto/yes]" "$LINENO" 5
31993          ;;
31994 esac
31995         if test "x$use_recording" = "xyes"; then :
31996                                                                                 CAIRO_REQUIRES="$recording_REQUIRES"" ${CAIRO_REQUIRES}"
31997
31998                                                                         CAIRO_CFLAGS="$recording_CFLAGS"" ${CAIRO_CFLAGS}"
31999
32000                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$recording_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32001
32002                                                                         CAIRO_LIBS="$recording_LIBS"" ${CAIRO_LIBS}"
32003
32004                                                                         CAIRO_NONPKGCONFIG_LIBS="$recording_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32005
32006
32007 else
32008                                         unset recording_BASE
32009 unset recording_REQUIRES
32010 unset recording_CFLAGS
32011 unset recording_NONPKGCONFIG_CFLAGS
32012 unset recording_LIBS
32013 unset recording_NONPKGCONFIG_LIBS
32014 unset recording_NONPKGCONFIG_EXTRA_LIBS
32015
32016
32017 fi
32018
32019
32020
32021                                                                                 cr_make_tmp=''
32022                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32023 ""$cr_make_tmp"
32024
32025                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32026 ""$cr_make_tmp"
32027                                                                                 cr_make_tmp=''
32028                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32029 ""$cr_make_tmp"
32030
32031                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32032 ""$cr_make_tmp"
32033
32034
32035                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_recording_headers)'
32036                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32037 ""$cr_make_tmp"
32038
32039                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32040 ""$cr_make_tmp"
32041                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)'
32042                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32043 ""$cr_make_tmp"
32044
32045                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32046 ""$cr_make_tmp"
32047
32048
32049
32050                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_recording_headers)
32051 all_cairo_private += $(cairo_recording_private)
32052 all_cairo_cxx_sources += $(cairo_recording_cxx_sources)
32053 all_cairo_sources += $(cairo_recording_sources)'
32054                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32055 ""$cr_make_tmp"
32056
32057                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32058 ""$cr_make_tmp"
32059                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
32060 all_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
32061 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
32062 all_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
32063                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32064 ""$cr_make_tmp"
32065
32066                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32067 ""$cr_make_tmp"
32068
32069
32070                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_recording_headers)
32071 enabled_cairo_private += $(cairo_recording_private)
32072 enabled_cairo_cxx_sources += $(cairo_recording_cxx_sources)
32073 enabled_cairo_sources += $(cairo_recording_sources)'
32074                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32075 ""$cr_make_tmp"
32076
32077                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32078 ""$cr_make_tmp"
32079                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
32080 enabled_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
32081 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
32082 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
32083                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32084 ""$cr_make_tmp"
32085
32086                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32087 ""$cr_make_tmp"
32088
32089
32090
32091
32092
32093
32094
32095
32096                                         if test "x$use_recording" = xyes; then :
32097   :
32098                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
32099
32100
32101 fi
32102                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
32103
32104
32105
32106                                         if test "x$use_recording" != xyes; then :
32107   :
32108                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
32109
32110
32111
32112 fi
32113
32114                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_RECORDING_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
32115                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32116 ""$cr_make_tmp"
32117
32118
32119
32120
32121
32122
32123
32124                                                                                                                                 enable_observer=yes
32125                         case $enable_observer in #(
32126   no) :
32127                 use_observer="no (disabled, use --enable-observer to enable)"
32128          ;; #(
32129         yes|auto) :
32130                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's observer surface backend feature" >&5
32131 $as_echo_n "checking for cairo's observer surface backend feature... " >&6; }
32132                 echo
32133
32134                 use_observer=yes
32135                         observer_BASE="cairo"
32136 observer_REQUIRES="$ac_env_observer_REQUIRES_value"
32137 observer_CFLAGS="$ac_env_observer_CFLAGS_value"
32138 observer_NONPKGCONFIG_CFLAGS="$ac_env_observer_NONPKGCONFIG_CFLAGS_value"
32139 observer_LIBS="$ac_env_observer_LIBS_value"
32140 observer_NONPKGCONFIG_LIBS="$ac_env_observer_NONPKGCONFIG_LIBS_value"
32141 observer_NONPKGCONFIG_EXTRA_LIBS="$ac_env_observer_NONPKGCONFIG_EXTRA_LIBS_value"
32142
32143
32144
32145
32146                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's observer surface backend feature could be enabled" >&5
32147 $as_echo_n "checking whether cairo's observer surface backend feature could be enabled... " >&6; }
32148                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_observer" >&5
32149 $as_echo "$use_observer" >&6; }
32150
32151                 if test "x$enable_observer" = "xyes" -a "x$use_observer" != xyes; then :
32152                         as_fn_error $? "mandatory observer surface backend feature could not be enabled" "$LINENO" 5
32153
32154 fi       ;; #(
32155   *) :
32156                         as_fn_error $? "invalid argument passed to --enable-observer: \`$use_observer', should be one of [no/auto/yes]" "$LINENO" 5
32157          ;;
32158 esac
32159         if test "x$use_observer" = "xyes"; then :
32160                                                                                 CAIRO_REQUIRES="$observer_REQUIRES"" ${CAIRO_REQUIRES}"
32161
32162                                                                         CAIRO_CFLAGS="$observer_CFLAGS"" ${CAIRO_CFLAGS}"
32163
32164                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$observer_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32165
32166                                                                         CAIRO_LIBS="$observer_LIBS"" ${CAIRO_LIBS}"
32167
32168                                                                         CAIRO_NONPKGCONFIG_LIBS="$observer_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32169
32170
32171 else
32172                                         unset observer_BASE
32173 unset observer_REQUIRES
32174 unset observer_CFLAGS
32175 unset observer_NONPKGCONFIG_CFLAGS
32176 unset observer_LIBS
32177 unset observer_NONPKGCONFIG_LIBS
32178 unset observer_NONPKGCONFIG_EXTRA_LIBS
32179
32180
32181 fi
32182
32183
32184
32185                                                                                 cr_make_tmp=''
32186                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32187 ""$cr_make_tmp"
32188
32189                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32190 ""$cr_make_tmp"
32191                                                                                 cr_make_tmp=''
32192                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32193 ""$cr_make_tmp"
32194
32195                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32196 ""$cr_make_tmp"
32197
32198
32199                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_observer_headers)'
32200                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32201 ""$cr_make_tmp"
32202
32203                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32204 ""$cr_make_tmp"
32205                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)'
32206                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32207 ""$cr_make_tmp"
32208
32209                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32210 ""$cr_make_tmp"
32211
32212
32213
32214                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_observer_headers)
32215 all_cairo_private += $(cairo_observer_private)
32216 all_cairo_cxx_sources += $(cairo_observer_cxx_sources)
32217 all_cairo_sources += $(cairo_observer_sources)'
32218                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32219 ""$cr_make_tmp"
32220
32221                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32222 ""$cr_make_tmp"
32223                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
32224 all_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
32225 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
32226 all_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
32227                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32228 ""$cr_make_tmp"
32229
32230                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32231 ""$cr_make_tmp"
32232
32233
32234                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_observer_headers)
32235 enabled_cairo_private += $(cairo_observer_private)
32236 enabled_cairo_cxx_sources += $(cairo_observer_cxx_sources)
32237 enabled_cairo_sources += $(cairo_observer_sources)'
32238                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32239 ""$cr_make_tmp"
32240
32241                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32242 ""$cr_make_tmp"
32243                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
32244 enabled_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
32245 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
32246 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
32247                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32248 ""$cr_make_tmp"
32249
32250                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32251 ""$cr_make_tmp"
32252
32253
32254
32255
32256
32257
32258
32259
32260                                         if test "x$use_observer" = xyes; then :
32261   :
32262                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
32263
32264
32265 fi
32266                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
32267
32268
32269
32270                                         if test "x$use_observer" != xyes; then :
32271   :
32272                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
32273
32274
32275
32276 fi
32277
32278                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_OBSERVER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
32279                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32280 ""$cr_make_tmp"
32281
32282
32283
32284
32285
32286
32287
32288                                                                                                                                 # Check whether --enable-tee was given.
32289 if test "${enable_tee+set}" = set; then :
32290   enableval=$enable_tee; enable_tee=$enableval
32291 else
32292   enable_tee=no
32293 fi
32294
32295                         case $enable_tee in #(
32296   no) :
32297                 use_tee="no (disabled, use --enable-tee to enable)"
32298          ;; #(
32299         yes|auto) :
32300                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's tee surface backend feature" >&5
32301 $as_echo_n "checking for cairo's tee surface backend feature... " >&6; }
32302                 echo
32303
32304                 use_tee=yes
32305                         tee_BASE="cairo"
32306 tee_REQUIRES="$ac_env_tee_REQUIRES_value"
32307 tee_CFLAGS="$ac_env_tee_CFLAGS_value"
32308 tee_NONPKGCONFIG_CFLAGS="$ac_env_tee_NONPKGCONFIG_CFLAGS_value"
32309 tee_LIBS="$ac_env_tee_LIBS_value"
32310 tee_NONPKGCONFIG_LIBS="$ac_env_tee_NONPKGCONFIG_LIBS_value"
32311 tee_NONPKGCONFIG_EXTRA_LIBS="$ac_env_tee_NONPKGCONFIG_EXTRA_LIBS_value"
32312
32313
32314
32315
32316                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's tee surface backend feature could be enabled" >&5
32317 $as_echo_n "checking whether cairo's tee surface backend feature could be enabled... " >&6; }
32318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tee" >&5
32319 $as_echo "$use_tee" >&6; }
32320
32321                 if test "x$enable_tee" = "xyes" -a "x$use_tee" != xyes; then :
32322                         as_fn_error $? " tee surface backend feature could not be enabled" "$LINENO" 5
32323
32324 fi       ;; #(
32325   *) :
32326                         as_fn_error $? "invalid argument passed to --enable-tee: \`$use_tee', should be one of [no/auto/yes]" "$LINENO" 5
32327          ;;
32328 esac
32329         if test "x$use_tee" = "xyes"; then :
32330                                                                                 CAIRO_REQUIRES="$tee_REQUIRES"" ${CAIRO_REQUIRES}"
32331
32332                                                                         CAIRO_CFLAGS="$tee_CFLAGS"" ${CAIRO_CFLAGS}"
32333
32334                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$tee_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32335
32336                                                                         CAIRO_LIBS="$tee_LIBS"" ${CAIRO_LIBS}"
32337
32338                                                                         CAIRO_NONPKGCONFIG_LIBS="$tee_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32339
32340
32341 else
32342                                         unset tee_BASE
32343 unset tee_REQUIRES
32344 unset tee_CFLAGS
32345 unset tee_NONPKGCONFIG_CFLAGS
32346 unset tee_LIBS
32347 unset tee_NONPKGCONFIG_LIBS
32348 unset tee_NONPKGCONFIG_EXTRA_LIBS
32349
32350
32351 fi
32352
32353                                                          if test "x$use_tee" = xyes; then
32354   CAIRO_HAS_TEE_SURFACE_TRUE=
32355   CAIRO_HAS_TEE_SURFACE_FALSE='#'
32356 else
32357   CAIRO_HAS_TEE_SURFACE_TRUE='#'
32358   CAIRO_HAS_TEE_SURFACE_FALSE=
32359 fi
32360
32361
32362                                                                                 cr_make_tmp='CAIRO_HAS_TEE_SURFACE=0'
32363                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
32364 ""$cr_make_tmp"
32365
32366
32367                                                                                 cr_make_tmp=''
32368                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32369 ""$cr_make_tmp"
32370
32371                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32372 ""$cr_make_tmp"
32373                                                                                 cr_make_tmp=''
32374                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32375 ""$cr_make_tmp"
32376
32377                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32378 ""$cr_make_tmp"
32379
32380
32381
32382                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_tee_headers)'
32383                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32384 ""$cr_make_tmp"
32385
32386                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32387 ""$cr_make_tmp"
32388                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)'
32389                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32390 ""$cr_make_tmp"
32391
32392                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32393 ""$cr_make_tmp"
32394
32395
32396                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_tee_headers)
32397 all_cairo_private += $(cairo_tee_private)
32398 all_cairo_cxx_sources += $(cairo_tee_cxx_sources)
32399 all_cairo_sources += $(cairo_tee_sources)'
32400                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32401 ""$cr_make_tmp"
32402
32403                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32404 ""$cr_make_tmp"
32405                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
32406 all_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
32407 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
32408 all_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
32409                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32410 ""$cr_make_tmp"
32411
32412                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32413 ""$cr_make_tmp"
32414
32415
32416                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_tee_headers)
32417 enabled_cairo_private += $(cairo_tee_private)
32418 enabled_cairo_cxx_sources += $(cairo_tee_cxx_sources)
32419 enabled_cairo_sources += $(cairo_tee_sources)'
32420                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32421 "'if CAIRO_HAS_TEE_SURFACE'
32422                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32423 ""$cr_make_tmp"
32424                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32425 "'endif'
32426
32427                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32428 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
32429                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32430 ""$cr_make_tmp"
32431                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32432 "'endif'
32433                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
32434 enabled_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
32435 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
32436 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
32437                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32438 "'if CAIRO_HAS_TEE_SURFACE'
32439                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32440 ""$cr_make_tmp"
32441                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32442 "'endif'
32443
32444                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32445 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
32446                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32447 ""$cr_make_tmp"
32448                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32449 "'endif'
32450
32451
32452
32453
32454                                         if test "x$use_tee" = xyes; then :
32455   :
32456                 ac_config_files="$ac_config_files src/cairo-tee.pc:src/cairo-features.pc.in"
32457
32458
32459 fi
32460                                         if test "x$use_tee" = xyes; then :
32461   :
32462                 ac_config_files="$ac_config_files cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
32463
32464
32465 fi
32466                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-tee.pc'
32467                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32468 ""$cr_make_tmp"
32469
32470                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32471 ""$cr_make_tmp"
32472
32473
32474                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-tee.pc'
32475                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32476 "'if CAIRO_HAS_TEE_SURFACE'
32477                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32478 ""$cr_make_tmp"
32479                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32480 "'endif'
32481
32482                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32483 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
32484                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32485 ""$cr_make_tmp"
32486                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32487 "'endif'
32488
32489
32490                                         if test "x$use_tee" = xyes; then :
32491   :
32492                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_TEE_SURFACE'
32493
32494
32495 fi
32496
32497
32498
32499                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TEE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
32500                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32501 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
32502                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32503 ""$cr_make_tmp"
32504                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32505 "'endif'
32506
32507
32508                                         if test "x$use_tee" = xyes; then :
32509   :
32510                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
32511
32512 "'--- The tee surface backend feature is still under active development and is
32513 --- included in this release only as a preview. It does NOT fully work yet
32514 --- and incompatible changes may yet be made to tee surface backend specific
32515 --- API.'
32516
32517
32518
32519 fi
32520
32521
32522
32523
32524                                                                                                                                 # Check whether --enable-xml was given.
32525 if test "${enable_xml+set}" = set; then :
32526   enableval=$enable_xml; enable_xml=$enableval
32527 else
32528   enable_xml=no
32529 fi
32530
32531                         case $enable_xml in #(
32532   no) :
32533                 use_xml="no (disabled, use --enable-xml to enable)"
32534          ;; #(
32535         yes|auto) :
32536                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's xml surface backend feature" >&5
32537 $as_echo_n "checking for cairo's xml surface backend feature... " >&6; }
32538                 echo
32539
32540                 use_xml=yes
32541                         xml_BASE="cairo"
32542 xml_REQUIRES="$ac_env_xml_REQUIRES_value"
32543 xml_CFLAGS="$ac_env_xml_CFLAGS_value"
32544 xml_NONPKGCONFIG_CFLAGS="$ac_env_xml_NONPKGCONFIG_CFLAGS_value"
32545 xml_LIBS="$ac_env_xml_LIBS_value"
32546 xml_NONPKGCONFIG_LIBS="$ac_env_xml_NONPKGCONFIG_LIBS_value"
32547 xml_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xml_NONPKGCONFIG_EXTRA_LIBS_value"
32548
32549
32550
32551     use_xml=$have_libz
32552     xml_NONPKGCONFIG_LIBS=-lz
32553
32554
32555                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's xml surface backend feature could be enabled" >&5
32556 $as_echo_n "checking whether cairo's xml surface backend feature could be enabled... " >&6; }
32557                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xml" >&5
32558 $as_echo "$use_xml" >&6; }
32559
32560                 if test "x$enable_xml" = "xyes" -a "x$use_xml" != xyes; then :
32561                         as_fn_error $? " xml surface backend feature could not be enabled" "$LINENO" 5
32562
32563 fi       ;; #(
32564   *) :
32565                         as_fn_error $? "invalid argument passed to --enable-xml: \`$use_xml', should be one of [no/auto/yes]" "$LINENO" 5
32566          ;;
32567 esac
32568         if test "x$use_xml" = "xyes"; then :
32569                                                                                 CAIRO_REQUIRES="$xml_REQUIRES"" ${CAIRO_REQUIRES}"
32570
32571                                                                         CAIRO_CFLAGS="$xml_CFLAGS"" ${CAIRO_CFLAGS}"
32572
32573                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xml_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32574
32575                                                                         CAIRO_LIBS="$xml_LIBS"" ${CAIRO_LIBS}"
32576
32577                                                                         CAIRO_NONPKGCONFIG_LIBS="$xml_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32578
32579
32580 else
32581                                         unset xml_BASE
32582 unset xml_REQUIRES
32583 unset xml_CFLAGS
32584 unset xml_NONPKGCONFIG_CFLAGS
32585 unset xml_LIBS
32586 unset xml_NONPKGCONFIG_LIBS
32587 unset xml_NONPKGCONFIG_EXTRA_LIBS
32588
32589
32590 fi
32591
32592                                                          if test "x$use_xml" = xyes; then
32593   CAIRO_HAS_XML_SURFACE_TRUE=
32594   CAIRO_HAS_XML_SURFACE_FALSE='#'
32595 else
32596   CAIRO_HAS_XML_SURFACE_TRUE='#'
32597   CAIRO_HAS_XML_SURFACE_FALSE=
32598 fi
32599
32600
32601                                                                                 cr_make_tmp='CAIRO_HAS_XML_SURFACE=0'
32602                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
32603 ""$cr_make_tmp"
32604
32605
32606                                                                                 cr_make_tmp=''
32607                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32608 ""$cr_make_tmp"
32609
32610                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32611 ""$cr_make_tmp"
32612                                                                                 cr_make_tmp=''
32613                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32614 ""$cr_make_tmp"
32615
32616                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32617 ""$cr_make_tmp"
32618
32619
32620
32621                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_xml_headers)'
32622                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32623 ""$cr_make_tmp"
32624
32625                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32626 ""$cr_make_tmp"
32627                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)'
32628                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32629 ""$cr_make_tmp"
32630
32631                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32632 ""$cr_make_tmp"
32633
32634
32635                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xml_headers)
32636 all_cairo_private += $(cairo_xml_private)
32637 all_cairo_cxx_sources += $(cairo_xml_cxx_sources)
32638 all_cairo_sources += $(cairo_xml_sources)'
32639                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32640 ""$cr_make_tmp"
32641
32642                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32643 ""$cr_make_tmp"
32644                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
32645 all_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
32646 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
32647 all_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
32648                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32649 ""$cr_make_tmp"
32650
32651                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32652 ""$cr_make_tmp"
32653
32654
32655                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xml_headers)
32656 enabled_cairo_private += $(cairo_xml_private)
32657 enabled_cairo_cxx_sources += $(cairo_xml_cxx_sources)
32658 enabled_cairo_sources += $(cairo_xml_sources)'
32659                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32660 "'if CAIRO_HAS_XML_SURFACE'
32661                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32662 ""$cr_make_tmp"
32663                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32664 "'endif'
32665
32666                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32667 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
32668                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32669 ""$cr_make_tmp"
32670                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32671 "'endif'
32672                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
32673 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
32674 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
32675 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
32676                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32677 "'if CAIRO_HAS_XML_SURFACE'
32678                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32679 ""$cr_make_tmp"
32680                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32681 "'endif'
32682
32683                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32684 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
32685                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32686 ""$cr_make_tmp"
32687                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32688 "'endif'
32689
32690
32691
32692
32693                                         if test "x$use_xml" = xyes; then :
32694   :
32695                 ac_config_files="$ac_config_files src/cairo-xml.pc:src/cairo-features.pc.in"
32696
32697
32698 fi
32699                                         if test "x$use_xml" = xyes; then :
32700   :
32701                 ac_config_files="$ac_config_files cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
32702
32703
32704 fi
32705                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xml.pc'
32706                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32707 ""$cr_make_tmp"
32708
32709                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32710 ""$cr_make_tmp"
32711
32712
32713                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xml.pc'
32714                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32715 "'if CAIRO_HAS_XML_SURFACE'
32716                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32717 ""$cr_make_tmp"
32718                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32719 "'endif'
32720
32721                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32722 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
32723                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32724 ""$cr_make_tmp"
32725                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32726 "'endif'
32727
32728
32729                                         if test "x$use_xml" = xyes; then :
32730   :
32731                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XML_SURFACE'
32732
32733
32734 fi
32735
32736
32737
32738                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XML_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
32739                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32740 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
32741                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32742 ""$cr_make_tmp"
32743                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32744 "'endif'
32745
32746
32747                                         if test "x$use_xml" = xyes; then :
32748   :
32749                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
32750
32751 "'--- The xml surface backend feature is still under active development and is
32752 --- included in this release only as a preview. It does NOT fully work yet
32753 --- and incompatible changes may yet be made to xml surface backend specific
32754 --- API.'
32755
32756
32757
32758 fi
32759
32760
32761
32762
32763
32764
32765                                                                                                                                 enable_user=yes
32766                         case $enable_user in #(
32767   no) :
32768                 use_user="no (disabled, use --enable-user to enable)"
32769          ;; #(
32770         yes|auto) :
32771                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's user font backend feature" >&5
32772 $as_echo_n "checking for cairo's user font backend feature... " >&6; }
32773                 echo
32774
32775                 use_user=yes
32776                         user_BASE="cairo"
32777 user_REQUIRES="$ac_env_user_REQUIRES_value"
32778 user_CFLAGS="$ac_env_user_CFLAGS_value"
32779 user_NONPKGCONFIG_CFLAGS="$ac_env_user_NONPKGCONFIG_CFLAGS_value"
32780 user_LIBS="$ac_env_user_LIBS_value"
32781 user_NONPKGCONFIG_LIBS="$ac_env_user_NONPKGCONFIG_LIBS_value"
32782 user_NONPKGCONFIG_EXTRA_LIBS="$ac_env_user_NONPKGCONFIG_EXTRA_LIBS_value"
32783
32784
32785
32786
32787                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's user font backend feature could be enabled" >&5
32788 $as_echo_n "checking whether cairo's user font backend feature could be enabled... " >&6; }
32789                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_user" >&5
32790 $as_echo "$use_user" >&6; }
32791
32792                 if test "x$enable_user" = "xyes" -a "x$use_user" != xyes; then :
32793                         as_fn_error $? "mandatory user font backend feature could not be enabled" "$LINENO" 5
32794
32795 fi       ;; #(
32796   *) :
32797                         as_fn_error $? "invalid argument passed to --enable-user: \`$use_user', should be one of [no/auto/yes]" "$LINENO" 5
32798          ;;
32799 esac
32800         if test "x$use_user" = "xyes"; then :
32801                                                                                 CAIRO_REQUIRES="$user_REQUIRES"" ${CAIRO_REQUIRES}"
32802
32803                                                                         CAIRO_CFLAGS="$user_CFLAGS"" ${CAIRO_CFLAGS}"
32804
32805                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$user_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32806
32807                                                                         CAIRO_LIBS="$user_LIBS"" ${CAIRO_LIBS}"
32808
32809                                                                         CAIRO_NONPKGCONFIG_LIBS="$user_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32810
32811
32812 else
32813                                         unset user_BASE
32814 unset user_REQUIRES
32815 unset user_CFLAGS
32816 unset user_NONPKGCONFIG_CFLAGS
32817 unset user_LIBS
32818 unset user_NONPKGCONFIG_LIBS
32819 unset user_NONPKGCONFIG_EXTRA_LIBS
32820
32821
32822 fi
32823
32824
32825
32826                                                                                 cr_make_tmp=''
32827                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32828 ""$cr_make_tmp"
32829
32830                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32831 ""$cr_make_tmp"
32832                                                                                 cr_make_tmp=''
32833                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32834 ""$cr_make_tmp"
32835
32836                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32837 ""$cr_make_tmp"
32838
32839
32840                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_user_headers)'
32841                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32842 ""$cr_make_tmp"
32843
32844                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32845 ""$cr_make_tmp"
32846                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)'
32847                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32848 ""$cr_make_tmp"
32849
32850                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32851 ""$cr_make_tmp"
32852
32853
32854
32855                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_user_headers)
32856 all_cairo_private += $(cairo_user_private)
32857 all_cairo_cxx_sources += $(cairo_user_cxx_sources)
32858 all_cairo_sources += $(cairo_user_sources)'
32859                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32860 ""$cr_make_tmp"
32861
32862                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32863 ""$cr_make_tmp"
32864                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
32865 all_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
32866 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
32867 all_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
32868                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32869 ""$cr_make_tmp"
32870
32871                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32872 ""$cr_make_tmp"
32873
32874
32875                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_user_headers)
32876 enabled_cairo_private += $(cairo_user_private)
32877 enabled_cairo_cxx_sources += $(cairo_user_cxx_sources)
32878 enabled_cairo_sources += $(cairo_user_sources)'
32879                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32880 ""$cr_make_tmp"
32881
32882                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32883 ""$cr_make_tmp"
32884                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
32885 enabled_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
32886 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
32887 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
32888                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32889 ""$cr_make_tmp"
32890
32891                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32892 ""$cr_make_tmp"
32893
32894
32895
32896
32897
32898
32899
32900
32901                                         if test "x$use_user" = xyes; then :
32902   :
32903                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_USER_FONT'
32904
32905
32906 fi
32907                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_USER_FONT'
32908
32909
32910
32911                                         if test "x$use_user" != xyes; then :
32912   :
32913                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_USER_FONT'
32914
32915
32916
32917 fi
32918
32919                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_USER_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
32920                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32921 ""$cr_make_tmp"
32922
32923
32924
32925
32926
32927
32928
32929
32930 have_real_pthread=no
32931 have_pthread=no
32932                                                                                                                                 # Check whether --enable-pthread was given.
32933 if test "${enable_pthread+set}" = set; then :
32934   enableval=$enable_pthread; enable_pthread=$enableval
32935 else
32936   enable_pthread=auto
32937 fi
32938
32939                         case $enable_pthread in #(
32940   no) :
32941                 use_pthread="no (disabled, use --enable-pthread to enable)"
32942          ;; #(
32943         yes|auto) :
32944                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's pthread feature" >&5
32945 $as_echo_n "checking for cairo's pthread feature... " >&6; }
32946                 echo
32947
32948                 use_pthread=yes
32949                         pthread_BASE="cairo"
32950 pthread_REQUIRES="$ac_env_pthread_REQUIRES_value"
32951 pthread_CFLAGS="$ac_env_pthread_CFLAGS_value"
32952 pthread_NONPKGCONFIG_CFLAGS="$ac_env_pthread_NONPKGCONFIG_CFLAGS_value"
32953 pthread_LIBS="$ac_env_pthread_LIBS_value"
32954 pthread_NONPKGCONFIG_LIBS="$ac_env_pthread_NONPKGCONFIG_LIBS_value"
32955 pthread_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pthread_NONPKGCONFIG_EXTRA_LIBS_value"
32956
32957
32958                                         if test "x$PTHREAD_CFLAGS" = "x"; then
32959                 PTHREAD_CFLAGS="-D_REENTRANT"
32960         fi
32961         if test "x$PTHREAD_LIBS" = "x"; then
32962                 PTHREAD_LIBS="-lpthread"
32963         fi
32964
32965                                 # AC_LANG_PROGRAM() produces a main() w/o args,
32966         # but -Wold-style-definition doesn't like that.
32967         # We need _some_ program so that we don't get
32968         # warnings about empty compilation units, so always
32969         # append a reasonable main().
32970         _compile_program="#ifndef _GNU_SOURCE
32971 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
32972 #endif
32973 #include <pthread.h>
32974
32975 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
32976 int test_mutex (void)
32977 {
32978         int x = 0;
32979         pthread_mutex_t mutex;
32980         x |= pthread_mutex_init (&mutex, NULL);
32981         x |= pthread_mutex_lock (&mutex);
32982         x |= pthread_mutex_unlock (&mutex);
32983         x |= pthread_mutex_destroy (&mutex);
32984         return 0;
32985 }
32986
32987 int test_mutex_attr (void)
32988 {
32989         int x = 0;
32990         pthread_mutexattr_t attr;
32991         pthread_mutex_t mutex;
32992         x |= pthread_mutexattr_init (&attr);
32993         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
32994         x |= pthread_mutex_init (&mutex, &attr);
32995         x |= pthread_mutex_lock (&mutex);
32996         x |= pthread_mutex_unlock (&mutex);
32997         x |= pthread_mutex_destroy (&mutex);
32998         x |= pthread_mutexattr_destroy (&attr);
32999         return x;
33000 }
33001
33002 pthread_once_t once_control = PTHREAD_ONCE_INIT;
33003 void test_once_init (void) {}
33004 int test_once (void)
33005 {
33006         return pthread_once (&once_control, test_once_init);
33007 }
33008
33009 pthread_key_t test_specific_key;
33010 int test_specific (void)
33011 {
33012         int x = 0;
33013         x |= pthread_key_create (&test_specific_key, NULL);
33014         x |= pthread_setspecific (test_specific_key, NULL);
33015         x |= pthread_getspecific (test_specific_key) != NULL;
33016         return x;
33017 }
33018
33019 void cleaner (void *arg) { (void)arg; }
33020
33021 void *
33022 test_thread_main (void *arg)
33023 {
33024         pthread_cleanup_push (cleaner, arg);
33025         pthread_exit (arg);
33026         pthread_cleanup_pop (1);
33027         return arg;
33028 }
33029
33030 int
33031 test_threads (void)
33032 {
33033         int x = 0;
33034         pthread_t thread;
33035         pthread_attr_t attr;
33036         void *arg = NULL;
33037         x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
33038         x |= pthread_create (&thread, &attr, test_thread_main, arg);
33039         x |= pthread_equal (pthread_self(), thread);
33040         x |= pthread_join (thread, &arg);
33041         x |= pthread_attr_destroy (&attr);
33042         return x;
33043 }"'
33044                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
33045
33046         _save_cflags="$CFLAGS"
33047         _save_ldflags="$LDFLAGS"
33048         _save_libs="$LIBS"
33049         CFLAGS="$CFLAGS $PTHREAD_CFLAGS";
33050                  LIBS="$LIBS $PTHREAD_LIBS"
33051         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33052 /* end confdefs.h.  */
33053 $_compile_program
33054 _ACEOF
33055 if ac_fn_c_try_link "$LINENO"; then :
33056   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33057                  cairo_cc_flag=yes
33058 else
33059   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33060                  cairo_cc_flag=no
33061 fi
33062 rm -f core conftest.err conftest.$ac_objext \
33063     conftest$ac_exeext conftest.$ac_ext
33064
33065         if test "x$cairo_cc_stderr" != "x"; then
33066                 cairo_cc_flag=no
33067         fi
33068
33069         if test "x$cairo_cc_flag" = "xyes"; then
33070                 real_pthread_CFLAGS="$PTHREAD_CFLAGS";
33071                  real_pthread_LIBS="$PTHREAD_LIBS";
33072                  have_real_pthread=yes
33073         else
33074                 real_pthread_CFLAGS="";
33075                  real_pthread_LIBS="";
33076                  have_real_pthread=no
33077         fi
33078         CFLAGS="$_save_cflags"
33079         LDFLAGS="$_save_ldflags"
33080         LIBS="$_save_libs"
33081
33082
33083         if test "x$have_real_pthread" != "xyes"; then
33084                                                 # AC_LANG_PROGRAM() produces a main() w/o args,
33085         # but -Wold-style-definition doesn't like that.
33086         # We need _some_ program so that we don't get
33087         # warnings about empty compilation units, so always
33088         # append a reasonable main().
33089         _compile_program="#ifndef _GNU_SOURCE
33090 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
33091 #endif
33092 #include <pthread.h>
33093
33094 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
33095 int test_mutex (void)
33096 {
33097         int x = 0;
33098         pthread_mutex_t mutex;
33099         x |= pthread_mutex_init (&mutex, NULL);
33100         x |= pthread_mutex_lock (&mutex);
33101         x |= pthread_mutex_unlock (&mutex);
33102         x |= pthread_mutex_destroy (&mutex);
33103         return 0;
33104 }
33105
33106 int test_mutex_attr (void)
33107 {
33108         int x = 0;
33109         pthread_mutexattr_t attr;
33110         pthread_mutex_t mutex;
33111         x |= pthread_mutexattr_init (&attr);
33112         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
33113         x |= pthread_mutex_init (&mutex, &attr);
33114         x |= pthread_mutex_lock (&mutex);
33115         x |= pthread_mutex_unlock (&mutex);
33116         x |= pthread_mutex_destroy (&mutex);
33117         x |= pthread_mutexattr_destroy (&attr);
33118         return x;
33119 }
33120
33121 pthread_once_t once_control = PTHREAD_ONCE_INIT;
33122 void test_once_init (void) {}
33123 int test_once (void)
33124 {
33125         return pthread_once (&once_control, test_once_init);
33126 }
33127
33128 pthread_key_t test_specific_key;
33129 int test_specific (void)
33130 {
33131         int x = 0;
33132         x |= pthread_key_create (&test_specific_key, NULL);
33133         x |= pthread_setspecific (test_specific_key, NULL);
33134         x |= pthread_getspecific (test_specific_key) != NULL;
33135         return x;
33136 }
33137
33138 void cleaner (void *arg) { (void)arg; }
33139
33140 void *
33141 test_thread_main (void *arg)
33142 {
33143         pthread_cleanup_push (cleaner, arg);
33144         pthread_exit (arg);
33145         pthread_cleanup_pop (1);
33146         return arg;
33147 }
33148
33149 int
33150 test_threads (void)
33151 {
33152         int x = 0;
33153         pthread_t thread;
33154         pthread_attr_t attr;
33155         void *arg = NULL;
33156         x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
33157         x |= pthread_create (&thread, &attr, test_thread_main, arg);
33158         x |= pthread_equal (pthread_self(), thread);
33159         x |= pthread_join (thread, &arg);
33160         x |= pthread_attr_destroy (&attr);
33161         return x;
33162 }"'
33163                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
33164
33165         _save_cflags="$CFLAGS"
33166         _save_ldflags="$LDFLAGS"
33167         _save_libs="$LIBS"
33168         CFLAGS="$CFLAGS -pthread";
33169                  LIBS="$LIBS "
33170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33171 /* end confdefs.h.  */
33172 $_compile_program
33173 _ACEOF
33174 if ac_fn_c_try_link "$LINENO"; then :
33175   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33176                  cairo_cc_flag=yes
33177 else
33178   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33179                  cairo_cc_flag=no
33180 fi
33181 rm -f core conftest.err conftest.$ac_objext \
33182     conftest$ac_exeext conftest.$ac_ext
33183
33184         if test "x$cairo_cc_stderr" != "x"; then
33185                 cairo_cc_flag=no
33186         fi
33187
33188         if test "x$cairo_cc_flag" = "xyes"; then
33189                 real_pthread_CFLAGS="-pthread";
33190                  real_pthread_LIBS="";
33191                  have_real_pthread=yes
33192         else
33193                 real_pthread_CFLAGS="";
33194                  real_pthread_LIBS="";
33195                  have_real_pthread="no (can't link with -lpthread or -pthread)"
33196         fi
33197         CFLAGS="$_save_cflags"
33198         LDFLAGS="$_save_ldflags"
33199         LIBS="$_save_libs"
33200
33201
33202         fi
33203         PTHREAD_CFLAGS=
33204         PTHREAD_LIBS=
33205
33206                                 have_pthread="no"
33207         if test "x$enable_pthread" != "xyes"; then
33208                                 # AC_LANG_PROGRAM() produces a main() w/o args,
33209         # but -Wold-style-definition doesn't like that.
33210         # We need _some_ program so that we don't get
33211         # warnings about empty compilation units, so always
33212         # append a reasonable main().
33213         _compile_program="#ifndef _GNU_SOURCE
33214 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
33215 #endif
33216 #include <pthread.h>
33217
33218 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
33219 int test_mutex (void)
33220 {
33221         int x = 0;
33222         pthread_mutex_t mutex;
33223         x |= pthread_mutex_init (&mutex, NULL);
33224         x |= pthread_mutex_lock (&mutex);
33225         x |= pthread_mutex_unlock (&mutex);
33226         x |= pthread_mutex_destroy (&mutex);
33227         return 0;
33228 }
33229
33230 int test_mutex_attr (void)
33231 {
33232         int x = 0;
33233         pthread_mutexattr_t attr;
33234         pthread_mutex_t mutex;
33235         x |= pthread_mutexattr_init (&attr);
33236         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
33237         x |= pthread_mutex_init (&mutex, &attr);
33238         x |= pthread_mutex_lock (&mutex);
33239         x |= pthread_mutex_unlock (&mutex);
33240         x |= pthread_mutex_destroy (&mutex);
33241         x |= pthread_mutexattr_destroy (&attr);
33242         return x;
33243 }"'
33244                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
33245
33246         _save_cflags="$CFLAGS"
33247         _save_ldflags="$LDFLAGS"
33248         _save_libs="$LIBS"
33249         CFLAGS="$CFLAGS -D_REENTRANT";
33250                  LIBS="$LIBS "
33251         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33252 /* end confdefs.h.  */
33253 $_compile_program
33254 _ACEOF
33255 if ac_fn_c_try_link "$LINENO"; then :
33256   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33257                  cairo_cc_flag=yes
33258 else
33259   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
33260                  cairo_cc_flag=no
33261 fi
33262 rm -f core conftest.err conftest.$ac_objext \
33263     conftest$ac_exeext conftest.$ac_ext
33264
33265         if test "x$cairo_cc_stderr" != "x"; then
33266                 cairo_cc_flag=no
33267         fi
33268
33269         if test "x$cairo_cc_flag" = "xyes"; then
33270                 pthread_CFLAGS="-D_REENTRANT";
33271                  pthread_LIBS="";
33272                  have_pthread=yes
33273         else
33274                 pthread_CFLAGS="";
33275                  pthread_LIBS="";
33276
33277         fi
33278         CFLAGS="$_save_cflags"
33279         LDFLAGS="$_save_ldflags"
33280         LIBS="$_save_libs"
33281
33282
33283         fi
33284
33285                 if test "x$have_pthread" != "xyes"; then
33286                 have_pthread="$have_real_pthread";
33287                 pthread_CFLAGS="$real_pthread_CFLAGS";
33288                 pthread_LIBS="$real_pthread_LIBS";
33289         fi
33290
33291                 if test "x$have_real_pthread" = "xyes"; then
33292
33293 $as_echo "#define CAIRO_HAS_REAL_PTHREAD 1" >>confdefs.h
33294
33295         fi
33296         if test "x$have_pthread" = "xyes"; then
33297
33298 $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
33299
33300         fi
33301
33302                 if test "x$enable_pthread" = "xyes" -a "x$have_pthread" != "xyes"; then
33303                 as_fn_error $? "pthread requested but not found" "$LINENO" 5
33304         fi
33305
33306                 use_pthread="$have_pthread"
33307         pthread_REQUIRES=""
33308
33309
33310                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's pthread feature could be enabled" >&5
33311 $as_echo_n "checking whether cairo's pthread feature could be enabled... " >&6; }
33312                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5
33313 $as_echo "$use_pthread" >&6; }
33314
33315                 if test "x$enable_pthread" = "xyes" -a "x$use_pthread" != xyes; then :
33316                         as_fn_error $? " pthread feature could not be enabled" "$LINENO" 5
33317
33318 fi       ;; #(
33319   *) :
33320                         as_fn_error $? "invalid argument passed to --enable-pthread: \`$use_pthread', should be one of [no/auto/yes]" "$LINENO" 5
33321          ;;
33322 esac
33323         if test "x$use_pthread" = "xyes"; then :
33324                                                                                 CAIRO_REQUIRES="$pthread_REQUIRES"" ${CAIRO_REQUIRES}"
33325
33326                                                                         CAIRO_CFLAGS="$pthread_CFLAGS"" ${CAIRO_CFLAGS}"
33327
33328                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$pthread_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33329
33330                                                                         CAIRO_LIBS="$pthread_LIBS"" ${CAIRO_LIBS}"
33331
33332                                                                         CAIRO_NONPKGCONFIG_LIBS="$pthread_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33333
33334
33335 else
33336                                         unset pthread_BASE
33337 unset pthread_REQUIRES
33338 unset pthread_CFLAGS
33339 unset pthread_NONPKGCONFIG_CFLAGS
33340 unset pthread_LIBS
33341 unset pthread_NONPKGCONFIG_LIBS
33342 unset pthread_NONPKGCONFIG_EXTRA_LIBS
33343
33344
33345 fi
33346
33347                                                          if test "x$use_pthread" = xyes; then
33348   CAIRO_HAS_PTHREAD_TRUE=
33349   CAIRO_HAS_PTHREAD_FALSE='#'
33350 else
33351   CAIRO_HAS_PTHREAD_TRUE='#'
33352   CAIRO_HAS_PTHREAD_FALSE=
33353 fi
33354
33355
33356                                                                                 cr_make_tmp='CAIRO_HAS_PTHREAD=0'
33357                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
33358 ""$cr_make_tmp"
33359
33360
33361                                                                                 cr_make_tmp=''
33362                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33363 ""$cr_make_tmp"
33364
33365                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33366 ""$cr_make_tmp"
33367                                                                                 cr_make_tmp=''
33368                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33369 ""$cr_make_tmp"
33370
33371                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33372 ""$cr_make_tmp"
33373
33374
33375
33376
33377
33378
33379                                                                                 cr_make_tmp='all_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
33380 all_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
33381 all_cairo_sources += $(cairo_pthread_sources)'
33382                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33383 ""$cr_make_tmp"
33384
33385                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33386 ""$cr_make_tmp"
33387                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
33388 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
33389 all_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
33390                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33391 ""$cr_make_tmp"
33392
33393                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33394 ""$cr_make_tmp"
33395
33396
33397                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
33398 enabled_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
33399 enabled_cairo_sources += $(cairo_pthread_sources)'
33400                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33401 "'if CAIRO_HAS_PTHREAD'
33402                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33403 ""$cr_make_tmp"
33404                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33405 "'endif'
33406
33407                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33408 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
33409                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33410 ""$cr_make_tmp"
33411                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33412 "'endif'
33413                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
33414 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
33415 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
33416                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33417 "'if CAIRO_HAS_PTHREAD'
33418                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33419 ""$cr_make_tmp"
33420                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33421 "'endif'
33422
33423                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33424 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
33425                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33426 ""$cr_make_tmp"
33427                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33428 "'endif'
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438                                         if test "x$use_pthread" = xyes; then :
33439   :
33440
33441 $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
33442
33443
33444
33445 fi
33446                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PTHREAD 1" >> $(top_srcdir)/src/cairo-features.h'
33447                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33448 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
33449                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33450 ""$cr_make_tmp"
33451                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33452 "'endif'
33453
33454
33455
33456
33457
33458
33459
33460  if test "x$use_pthread" = "xyes" -a "x$have_real_pthread" = "xyes"; then
33461   HAVE_REAL_PTHREAD_TRUE=
33462   HAVE_REAL_PTHREAD_FALSE='#'
33463 else
33464   HAVE_REAL_PTHREAD_TRUE='#'
33465   HAVE_REAL_PTHREAD_FALSE=
33466 fi
33467
33468  if test "x$use_pthread" = "xyes"; then
33469   HAVE_PTHREAD_TRUE=
33470   HAVE_PTHREAD_FALSE='#'
33471 else
33472   HAVE_PTHREAD_TRUE='#'
33473   HAVE_PTHREAD_FALSE=
33474 fi
33475
33476
33477
33478
33479
33480
33481
33482
33483                                                                                                                                 # Check whether --enable-gobject was given.
33484 if test "${enable_gobject+set}" = set; then :
33485   enableval=$enable_gobject; enable_gobject=$enableval
33486 else
33487   enable_gobject=auto
33488 fi
33489
33490                         case $enable_gobject in #(
33491   no) :
33492                 use_gobject="no (disabled, use --enable-gobject to enable)"
33493          ;; #(
33494         yes|auto) :
33495                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's gobject functions feature" >&5
33496 $as_echo_n "checking for cairo's gobject functions feature... " >&6; }
33497                 echo
33498
33499                 use_gobject=yes
33500                         gobject_BASE="cairo"
33501 gobject_REQUIRES="$ac_env_gobject_REQUIRES_value"
33502 gobject_CFLAGS="$ac_env_gobject_CFLAGS_value"
33503 gobject_NONPKGCONFIG_CFLAGS="$ac_env_gobject_NONPKGCONFIG_CFLAGS_value"
33504 gobject_LIBS="$ac_env_gobject_LIBS_value"
33505 gobject_NONPKGCONFIG_LIBS="$ac_env_gobject_NONPKGCONFIG_LIBS_value"
33506 gobject_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gobject_NONPKGCONFIG_EXTRA_LIBS_value"
33507
33508
33509
33510   gobject_REQUIRES="gobject-2.0 glib-2.0"
33511
33512 pkg_failed=no
33513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
33514 $as_echo_n "checking for GOBJECT... " >&6; }
33515
33516 if test -n "$GOBJECT_CFLAGS"; then
33517     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
33518  elif test -n "$PKG_CONFIG"; then
33519     if test -n "$PKG_CONFIG" && \
33520     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
33521   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
33522   ac_status=$?
33523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33524   test $ac_status = 0; }; then
33525   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
33526 else
33527   pkg_failed=yes
33528 fi
33529  else
33530     pkg_failed=untried
33531 fi
33532 if test -n "$GOBJECT_LIBS"; then
33533     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
33534  elif test -n "$PKG_CONFIG"; then
33535     if test -n "$PKG_CONFIG" && \
33536     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
33537   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
33538   ac_status=$?
33539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33540   test $ac_status = 0; }; then
33541   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
33542 else
33543   pkg_failed=yes
33544 fi
33545  else
33546     pkg_failed=untried
33547 fi
33548
33549
33550
33551 if test $pkg_failed = yes; then
33552
33553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33554         _pkg_short_errors_supported=yes
33555 else
33556         _pkg_short_errors_supported=no
33557 fi
33558         if test $_pkg_short_errors_supported = yes; then
33559                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
33560         else
33561                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
33562         fi
33563         # Put the nasty error message in config.log where it belongs
33564         echo "$GOBJECT_PKG_ERRORS" >&5
33565
33566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33567 $as_echo "no" >&6; }
33568                 use_gobject="no (requires $gobject_REQUIRES http://download.gnome.org/pub/GNOME/sources/glib/)"
33569 elif test $pkg_failed = untried; then
33570         use_gobject="no (requires $gobject_REQUIRES http://download.gnome.org/pub/GNOME/sources/glib/)"
33571 else
33572         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
33573         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
33574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33575 $as_echo "yes" >&6; }
33576         :
33577 fi
33578   gobject_NONPKGCONFIG_EXTRA_LIBS="-L\${libdir} -lcairo-gobject"
33579
33580
33581                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's gobject functions feature could be enabled" >&5
33582 $as_echo_n "checking whether cairo's gobject functions feature could be enabled... " >&6; }
33583                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gobject" >&5
33584 $as_echo "$use_gobject" >&6; }
33585
33586                 if test "x$enable_gobject" = "xyes" -a "x$use_gobject" != xyes; then :
33587                         as_fn_error $? " gobject functions feature could not be enabled" "$LINENO" 5
33588
33589 fi       ;; #(
33590   *) :
33591                         as_fn_error $? "invalid argument passed to --enable-gobject: \`$use_gobject', should be one of [no/auto/yes]" "$LINENO" 5
33592          ;;
33593 esac
33594         if test "x$use_gobject" = "xyes"; then :
33595                                                                                 CAIRO_REQUIRES="$gobject_REQUIRES"" ${CAIRO_REQUIRES}"
33596
33597                                                                         CAIRO_CFLAGS="$gobject_CFLAGS"" ${CAIRO_CFLAGS}"
33598
33599                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gobject_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33600
33601                                                                         CAIRO_LIBS="$gobject_LIBS"" ${CAIRO_LIBS}"
33602
33603                                                                         CAIRO_NONPKGCONFIG_LIBS="$gobject_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33604
33605
33606 else
33607                                         unset gobject_BASE
33608 unset gobject_REQUIRES
33609 unset gobject_CFLAGS
33610 unset gobject_NONPKGCONFIG_CFLAGS
33611 unset gobject_LIBS
33612 unset gobject_NONPKGCONFIG_LIBS
33613 unset gobject_NONPKGCONFIG_EXTRA_LIBS
33614
33615
33616 fi
33617
33618                                                          if test "x$use_gobject" = xyes; then
33619   CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE=
33620   CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE='#'
33621 else
33622   CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE='#'
33623   CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE=
33624 fi
33625
33626
33627                                                                                 cr_make_tmp='CAIRO_HAS_GOBJECT_FUNCTIONS=0'
33628                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
33629 ""$cr_make_tmp"
33630
33631
33632                                                                                 cr_make_tmp=''
33633                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33634 ""$cr_make_tmp"
33635
33636                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33637 ""$cr_make_tmp"
33638                                                                                 cr_make_tmp=''
33639                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33640 ""$cr_make_tmp"
33641
33642                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33643 ""$cr_make_tmp"
33644
33645
33646                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_gobject_headers)'
33647                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33648 ""$cr_make_tmp"
33649
33650                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33651 ""$cr_make_tmp"
33652                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)'
33653                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33654 ""$cr_make_tmp"
33655
33656                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33657 ""$cr_make_tmp"
33658
33659
33660
33661                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gobject_headers)
33662 all_cairo_private += $(cairo_gobject_private)
33663 all_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
33664 all_cairo_sources += $(cairo_gobject_sources)'
33665                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33666 ""$cr_make_tmp"
33667
33668                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33669 ""$cr_make_tmp"
33670                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
33671 all_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
33672 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
33673 all_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
33674                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33675 ""$cr_make_tmp"
33676
33677                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33678 ""$cr_make_tmp"
33679
33680
33681                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gobject_headers)
33682 enabled_cairo_private += $(cairo_gobject_private)
33683 enabled_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
33684 enabled_cairo_sources += $(cairo_gobject_sources)'
33685                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33686 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
33687                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33688 ""$cr_make_tmp"
33689                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33690 "'endif'
33691
33692                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33693 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
33694                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33695 ""$cr_make_tmp"
33696                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33697 "'endif'
33698                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
33699 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
33700 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
33701 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
33702                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33703 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
33704                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33705 ""$cr_make_tmp"
33706                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33707 "'endif'
33708
33709                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33710 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
33711                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33712 ""$cr_make_tmp"
33713                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33714 "'endif'
33715
33716
33717
33718
33719                                         if test "x$use_gobject" = xyes; then :
33720   :
33721                 ac_config_files="$ac_config_files src/cairo-gobject.pc:src/cairo-features.pc.in"
33722
33723
33724 fi
33725                                         if test "x$use_gobject" = xyes; then :
33726   :
33727                 ac_config_files="$ac_config_files cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
33728
33729
33730 fi
33731                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gobject.pc'
33732                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33733 ""$cr_make_tmp"
33734
33735                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33736 ""$cr_make_tmp"
33737
33738
33739                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gobject.pc'
33740                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33741 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
33742                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33743 ""$cr_make_tmp"
33744                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33745 "'endif'
33746
33747                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33748 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
33749                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33750 ""$cr_make_tmp"
33751                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33752 "'endif'
33753
33754
33755                                         if test "x$use_gobject" = xyes; then :
33756   :
33757                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
33758
33759
33760 fi
33761                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
33762
33763
33764
33765                                         if test "x$use_gobject" != xyes; then :
33766   :
33767                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
33768
33769
33770
33771 fi
33772
33773                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GOBJECT_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
33774                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33775 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
33776                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33777 ""$cr_make_tmp"
33778                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33779 "'endif'
33780
33781
33782
33783
33784
33785
33786
33787 if test "x$use_gobject" = "xyes"; then
33788
33789 pkg_failed=no
33790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
33791 $as_echo_n "checking for GOBJECT... " >&6; }
33792
33793 if test -n "$GOBJECT_CFLAGS"; then
33794     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
33795  elif test -n "$PKG_CONFIG"; then
33796     if test -n "$PKG_CONFIG" && \
33797     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
33798   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
33799   ac_status=$?
33800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33801   test $ac_status = 0; }; then
33802   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
33803 else
33804   pkg_failed=yes
33805 fi
33806  else
33807     pkg_failed=untried
33808 fi
33809 if test -n "$GOBJECT_LIBS"; then
33810     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
33811  elif test -n "$PKG_CONFIG"; then
33812     if test -n "$PKG_CONFIG" && \
33813     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
33814   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
33815   ac_status=$?
33816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33817   test $ac_status = 0; }; then
33818   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
33819 else
33820   pkg_failed=yes
33821 fi
33822  else
33823     pkg_failed=untried
33824 fi
33825
33826
33827
33828 if test $pkg_failed = yes; then
33829
33830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33831         _pkg_short_errors_supported=yes
33832 else
33833         _pkg_short_errors_supported=no
33834 fi
33835         if test $_pkg_short_errors_supported = yes; then
33836                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
33837         else
33838                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
33839         fi
33840         # Put the nasty error message in config.log where it belongs
33841         echo "$GOBJECT_PKG_ERRORS" >&5
33842
33843         as_fn_error $? "Package requirements ($gobject_REQUIRES) were not met:
33844
33845 $GOBJECT_PKG_ERRORS
33846
33847 Consider adjusting the PKG_CONFIG_PATH environment variable if you
33848 installed software in a non-standard prefix.
33849
33850 Alternatively, you may set the environment variables GOBJECT_CFLAGS
33851 and GOBJECT_LIBS to avoid the need to call pkg-config.
33852 See the pkg-config man page for more details.
33853 " "$LINENO" 5
33854 elif test $pkg_failed = untried; then
33855         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33857 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33858 is in your PATH or set the PKG_CONFIG environment variable to the full
33859 path to pkg-config.
33860
33861 Alternatively, you may set the environment variables GOBJECT_CFLAGS
33862 and GOBJECT_LIBS to avoid the need to call pkg-config.
33863 See the pkg-config man page for more details.
33864
33865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33866 See \`config.log' for more details" "$LINENO" 5; }
33867 else
33868         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
33869         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
33870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33871 $as_echo "yes" >&6; }
33872         :
33873 fi
33874 fi
33875
33876
33877 # Check whether --enable-full-testing was given.
33878 if test "${enable_full_testing+set}" = set; then :
33879   enableval=$enable_full_testing;
33880 if test "x$enableval" = "xyes"; then
33881     CAIRO_TEST_MODE=full
33882
33883 fi
33884
33885 fi
33886
33887
33888  if test "x$any2ppm_svg" = "xyes" \
33889                  -o "x$any2ppm_pdf" = "xyes" \
33890                  -o "x$any2ppm_ps"  = "xyes" \
33891                  -o "x$any2ppm_cs"  = "xyes"; then
33892   BUILD_ANY2PPM_TRUE=
33893   BUILD_ANY2PPM_FALSE='#'
33894 else
33895   BUILD_ANY2PPM_TRUE='#'
33896   BUILD_ANY2PPM_FALSE=
33897 fi
33898
33899
33900
33901 case $host in
33902 *-*-darwin*)
33903         SHLIB_EXT="dylib"
33904         ;;
33905 *)
33906         SHLIB_EXT="so"
33907         ;;
33908 esac
33909
33910 cat >>confdefs.h <<_ACEOF
33911 #define SHARED_LIB_EXT "${SHLIB_EXT}"
33912 _ACEOF
33913
33914
33915
33916
33917 case $host in
33918 *-linux*|*-*bsd*|*-solaris*|*-*-darwin*|*-dragonfly*|*-*-gnu*)
33919         have_ld_preload="yes"
33920         ;;
33921 *)
33922         have_ld_preload="no"
33923         ;;
33924 esac
33925
33926                                                                                                                                 # Check whether --enable-trace was given.
33927 if test "${enable_trace+set}" = set; then :
33928   enableval=$enable_trace; enable_trace=$enableval
33929 else
33930   enable_trace=auto
33931 fi
33932
33933                         case $enable_trace in #(
33934   no) :
33935                 use_trace="no (disabled, use --enable-trace to enable)"
33936          ;; #(
33937         yes|auto) :
33938                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-trace feature" >&5
33939 $as_echo_n "checking for cairo's cairo-trace feature... " >&6; }
33940                 echo
33941
33942                 use_trace=yes
33943                         trace_BASE="cairo"
33944 trace_REQUIRES="$ac_env_trace_REQUIRES_value"
33945 trace_CFLAGS="$ac_env_trace_CFLAGS_value"
33946 trace_NONPKGCONFIG_CFLAGS="$ac_env_trace_NONPKGCONFIG_CFLAGS_value"
33947 trace_LIBS="$ac_env_trace_LIBS_value"
33948 trace_NONPKGCONFIG_LIBS="$ac_env_trace_NONPKGCONFIG_LIBS_value"
33949 trace_NONPKGCONFIG_EXTRA_LIBS="$ac_env_trace_NONPKGCONFIG_EXTRA_LIBS_value"
33950
33951
33952
33953         if test "x$have_ld_preload" != "xyes" -o \
33954                 "x$have_libz" != "xyes" -o \
33955                 "x$have_real_pthread" != "xyes" -o \
33956                 "x$have_dlsym" != "xyes"; then
33957                 use_trace="no (requires dynamic linker and zlib and real pthreads)"
33958         fi
33959
33960
33961                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-trace feature could be enabled" >&5
33962 $as_echo_n "checking whether cairo's cairo-trace feature could be enabled... " >&6; }
33963                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trace" >&5
33964 $as_echo "$use_trace" >&6; }
33965
33966                 if test "x$enable_trace" = "xyes" -a "x$use_trace" != xyes; then :
33967                         as_fn_error $? " cairo-trace feature could not be enabled" "$LINENO" 5
33968
33969 fi       ;; #(
33970   *) :
33971                         as_fn_error $? "invalid argument passed to --enable-trace: \`$use_trace', should be one of [no/auto/yes]" "$LINENO" 5
33972          ;;
33973 esac
33974         if test "x$use_trace" = "xyes"; then :
33975                                                                                 CAIRO_REQUIRES="$trace_REQUIRES"" ${CAIRO_REQUIRES}"
33976
33977                                                                         CAIRO_CFLAGS="$trace_CFLAGS"" ${CAIRO_CFLAGS}"
33978
33979                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$trace_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33980
33981                                                                         CAIRO_LIBS="$trace_LIBS"" ${CAIRO_LIBS}"
33982
33983                                                                         CAIRO_NONPKGCONFIG_LIBS="$trace_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33984
33985
33986 else
33987                                         unset trace_BASE
33988 unset trace_REQUIRES
33989 unset trace_CFLAGS
33990 unset trace_NONPKGCONFIG_CFLAGS
33991 unset trace_LIBS
33992 unset trace_NONPKGCONFIG_LIBS
33993 unset trace_NONPKGCONFIG_EXTRA_LIBS
33994
33995
33996 fi
33997
33998                                                          if test "x$use_trace" = xyes; then
33999   CAIRO_HAS_TRACE_TRUE=
34000   CAIRO_HAS_TRACE_FALSE='#'
34001 else
34002   CAIRO_HAS_TRACE_TRUE='#'
34003   CAIRO_HAS_TRACE_FALSE=
34004 fi
34005
34006
34007                                                                                 cr_make_tmp='CAIRO_HAS_TRACE=0'
34008                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
34009 ""$cr_make_tmp"
34010
34011
34012                                                                                 cr_make_tmp=''
34013                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34014 ""$cr_make_tmp"
34015
34016                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34017 ""$cr_make_tmp"
34018                                                                                 cr_make_tmp=''
34019                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34020 ""$cr_make_tmp"
34021
34022                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34023 ""$cr_make_tmp"
34024
34025
34026
34027
34028
34029
34030                                                                                 cr_make_tmp='all_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
34031 all_cairo_cxx_sources += $(cairo_trace_cxx_sources)
34032 all_cairo_sources += $(cairo_trace_sources)'
34033                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34034 ""$cr_make_tmp"
34035
34036                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34037 ""$cr_make_tmp"
34038                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
34039 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
34040 all_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
34041                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34042 ""$cr_make_tmp"
34043
34044                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34045 ""$cr_make_tmp"
34046
34047
34048                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
34049 enabled_cairo_cxx_sources += $(cairo_trace_cxx_sources)
34050 enabled_cairo_sources += $(cairo_trace_sources)'
34051                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34052 "'if CAIRO_HAS_TRACE'
34053                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34054 ""$cr_make_tmp"
34055                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34056 "'endif'
34057
34058                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34059 "'ifeq ($(CAIRO_HAS_TRACE),1)'
34060                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34061 ""$cr_make_tmp"
34062                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34063 "'endif'
34064                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
34065 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
34066 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
34067                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34068 "'if CAIRO_HAS_TRACE'
34069                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34070 ""$cr_make_tmp"
34071                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34072 "'endif'
34073
34074                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34075 "'ifeq ($(CAIRO_HAS_TRACE),1)'
34076                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34077 ""$cr_make_tmp"
34078                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34079 "'endif'
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089                                         if test "x$use_trace" = xyes; then :
34090   :
34091
34092 $as_echo "#define CAIRO_HAS_TRACE 1" >>confdefs.h
34093
34094
34095
34096 fi
34097                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TRACE 1" >> $(top_srcdir)/src/cairo-features.h'
34098                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34099 "'ifeq ($(CAIRO_HAS_TRACE),1)'
34100                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34101 ""$cr_make_tmp"
34102                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34103 "'endif'
34104
34105
34106
34107
34108
34109
34110
34111
34112                                                                                                                                 # Check whether --enable-interpreter was given.
34113 if test "${enable_interpreter+set}" = set; then :
34114   enableval=$enable_interpreter; enable_interpreter=$enableval
34115 else
34116   enable_interpreter=yes
34117 fi
34118
34119                         case $enable_interpreter in #(
34120   no) :
34121                 use_interpreter="no (disabled, use --enable-interpreter to enable)"
34122          ;; #(
34123         yes|auto) :
34124                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-script-interpreter feature" >&5
34125 $as_echo_n "checking for cairo's cairo-script-interpreter feature... " >&6; }
34126                 echo
34127
34128                 use_interpreter=yes
34129                         interpreter_BASE="cairo"
34130 interpreter_REQUIRES="$ac_env_interpreter_REQUIRES_value"
34131 interpreter_CFLAGS="$ac_env_interpreter_CFLAGS_value"
34132 interpreter_NONPKGCONFIG_CFLAGS="$ac_env_interpreter_NONPKGCONFIG_CFLAGS_value"
34133 interpreter_LIBS="$ac_env_interpreter_LIBS_value"
34134 interpreter_NONPKGCONFIG_LIBS="$ac_env_interpreter_NONPKGCONFIG_LIBS_value"
34135 interpreter_NONPKGCONFIG_EXTRA_LIBS="$ac_env_interpreter_NONPKGCONFIG_EXTRA_LIBS_value"
34136
34137
34138
34139         if test "x$have_libz" != "xyes"; then
34140                 use_interpreter="no (requires zlib)"
34141         fi
34142
34143
34144                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-script-interpreter feature could be enabled" >&5
34145 $as_echo_n "checking whether cairo's cairo-script-interpreter feature could be enabled... " >&6; }
34146                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_interpreter" >&5
34147 $as_echo "$use_interpreter" >&6; }
34148
34149                 if test "x$enable_interpreter" = "xyes" -a "x$use_interpreter" != xyes; then :
34150                         as_fn_error $? "recommended cairo-script-interpreter feature could not be enabled" "$LINENO" 5
34151
34152 fi       ;; #(
34153   *) :
34154                         as_fn_error $? "invalid argument passed to --enable-interpreter: \`$use_interpreter', should be one of [no/auto/yes]" "$LINENO" 5
34155          ;;
34156 esac
34157         if test "x$use_interpreter" = "xyes"; then :
34158                                                                                 CAIRO_REQUIRES="$interpreter_REQUIRES"" ${CAIRO_REQUIRES}"
34159
34160                                                                         CAIRO_CFLAGS="$interpreter_CFLAGS"" ${CAIRO_CFLAGS}"
34161
34162                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$interpreter_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
34163
34164                                                                         CAIRO_LIBS="$interpreter_LIBS"" ${CAIRO_LIBS}"
34165
34166                                                                         CAIRO_NONPKGCONFIG_LIBS="$interpreter_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
34167
34168
34169 else
34170                                         unset interpreter_BASE
34171 unset interpreter_REQUIRES
34172 unset interpreter_CFLAGS
34173 unset interpreter_NONPKGCONFIG_CFLAGS
34174 unset interpreter_LIBS
34175 unset interpreter_NONPKGCONFIG_LIBS
34176 unset interpreter_NONPKGCONFIG_EXTRA_LIBS
34177
34178
34179 fi
34180
34181                                                          if test "x$use_interpreter" = xyes; then
34182   CAIRO_HAS_INTERPRETER_TRUE=
34183   CAIRO_HAS_INTERPRETER_FALSE='#'
34184 else
34185   CAIRO_HAS_INTERPRETER_TRUE='#'
34186   CAIRO_HAS_INTERPRETER_FALSE=
34187 fi
34188
34189
34190                                                                                 cr_make_tmp='CAIRO_HAS_INTERPRETER=1'
34191                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
34192 ""$cr_make_tmp"
34193
34194
34195                                                                                 cr_make_tmp=''
34196                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34197 ""$cr_make_tmp"
34198
34199                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34200 ""$cr_make_tmp"
34201                                                                                 cr_make_tmp=''
34202                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34203 ""$cr_make_tmp"
34204
34205                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34206 ""$cr_make_tmp"
34207
34208
34209
34210
34211
34212
34213                                                                                 cr_make_tmp='all_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
34214 all_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
34215 all_cairo_sources += $(cairo_interpreter_sources)'
34216                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34217 ""$cr_make_tmp"
34218
34219                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34220 ""$cr_make_tmp"
34221                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
34222 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
34223 all_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
34224                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34225 ""$cr_make_tmp"
34226
34227                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34228 ""$cr_make_tmp"
34229
34230
34231                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
34232 enabled_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
34233 enabled_cairo_sources += $(cairo_interpreter_sources)'
34234                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34235 "'if CAIRO_HAS_INTERPRETER'
34236                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34237 ""$cr_make_tmp"
34238                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34239 "'endif'
34240
34241                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34242 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
34243                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34244 ""$cr_make_tmp"
34245                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34246 "'endif'
34247                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
34248 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
34249 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
34250                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34251 "'if CAIRO_HAS_INTERPRETER'
34252                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34253 ""$cr_make_tmp"
34254                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34255 "'endif'
34256
34257                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34258 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
34259                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34260 ""$cr_make_tmp"
34261                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34262 "'endif'
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272                                         if test "x$use_interpreter" = xyes; then :
34273   :
34274
34275 $as_echo "#define CAIRO_HAS_INTERPRETER 1" >>confdefs.h
34276
34277
34278
34279 fi
34280                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_INTERPRETER 1" >> $(top_srcdir)/src/cairo-features.h'
34281                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34282 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
34283                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34284 ""$cr_make_tmp"
34285                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34286 "'endif'
34287
34288
34289
34290                                         if test "x$use_interpreter" != xyes; then :
34291   :
34292                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
34293
34294 "'+++ It is strongly recommended that you do NOT disable the
34295 +++ cairo-script-interpreter feature.'
34296
34297
34298
34299 fi
34300
34301
34302
34303
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
34305 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
34306 if ${ac_cv_lib_bfd_bfd_openr+:} false; then :
34307   $as_echo_n "(cached) " >&6
34308 else
34309   ac_check_lib_save_LIBS=$LIBS
34310 LIBS="-lbfd  $LIBS"
34311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34312 /* end confdefs.h.  */
34313
34314 /* Override any GCC internal prototype to avoid an error.
34315    Use char because int might match the return type of a GCC
34316    builtin and then its argument prototype would still apply.  */
34317 #ifdef __cplusplus
34318 extern "C"
34319 #endif
34320 char bfd_openr ();
34321 int
34322 main ()
34323 {
34324 return bfd_openr ();
34325   ;
34326   return 0;
34327 }
34328 _ACEOF
34329 if ac_fn_c_try_link "$LINENO"; then :
34330   ac_cv_lib_bfd_bfd_openr=yes
34331 else
34332   ac_cv_lib_bfd_bfd_openr=no
34333 fi
34334 rm -f core conftest.err conftest.$ac_objext \
34335     conftest$ac_exeext conftest.$ac_ext
34336 LIBS=$ac_check_lib_save_LIBS
34337 fi
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
34339 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
34340 if test "x$ac_cv_lib_bfd_bfd_openr" = xyes; then :
34341   ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
34342 if test "x$ac_cv_header_bfd_h" = xyes; then :
34343   have_bfd=yes
34344 else
34345   have_bfd=no
34346 fi
34347
34348
34349 else
34350   have_bfd=no
34351 fi
34352
34353 ac_fn_c_check_header_mongrel "$LINENO" "libiberty.h" "ac_cv_header_libiberty_h" "$ac_includes_default"
34354 if test "x$ac_cv_header_libiberty_h" = xyes; then :
34355
34356 else
34357   have_bfd=no
34358 fi
34359
34360
34361 if test "x$have_bfd" = "xyes"; then
34362
34363 $as_echo "#define HAVE_BFD 1" >>confdefs.h
34364
34365     BFD_LIBS=-lbfd
34366
34367 fi
34368
34369                                                                                                                                 # Check whether --enable-symbol-lookup was given.
34370 if test "${enable_symbol_lookup+set}" = set; then :
34371   enableval=$enable_symbol_lookup; enable_symbol_lookup=$enableval
34372 else
34373   enable_symbol_lookup=auto
34374 fi
34375
34376                         case $enable_symbol_lookup in #(
34377   no) :
34378                 use_symbol_lookup="no (disabled, use --enable-symbol-lookup to enable)"
34379          ;; #(
34380         yes|auto) :
34381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's symbol-lookup feature" >&5
34382 $as_echo_n "checking for cairo's symbol-lookup feature... " >&6; }
34383                 echo
34384
34385                 use_symbol_lookup=yes
34386                         symbol_lookup_BASE="cairo"
34387 symbol_lookup_REQUIRES="$ac_env_symbol_lookup_REQUIRES_value"
34388 symbol_lookup_CFLAGS="$ac_env_symbol_lookup_CFLAGS_value"
34389 symbol_lookup_NONPKGCONFIG_CFLAGS="$ac_env_symbol_lookup_NONPKGCONFIG_CFLAGS_value"
34390 symbol_lookup_LIBS="$ac_env_symbol_lookup_LIBS_value"
34391 symbol_lookup_NONPKGCONFIG_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_LIBS_value"
34392 symbol_lookup_NONPKGCONFIG_EXTRA_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_EXTRA_LIBS_value"
34393
34394
34395
34396         if test "x$have_bfd" != "xyes"; then
34397                 use_symbol_lookup="no (requires bfd)"
34398         fi
34399
34400
34401                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's symbol-lookup feature could be enabled" >&5
34402 $as_echo_n "checking whether cairo's symbol-lookup feature could be enabled... " >&6; }
34403                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_symbol_lookup" >&5
34404 $as_echo "$use_symbol_lookup" >&6; }
34405
34406                 if test "x$enable_symbol_lookup" = "xyes" -a "x$use_symbol_lookup" != xyes; then :
34407                         as_fn_error $? " symbol-lookup feature could not be enabled" "$LINENO" 5
34408
34409 fi       ;; #(
34410   *) :
34411                         as_fn_error $? "invalid argument passed to --enable-symbol-lookup: \`$use_symbol_lookup', should be one of [no/auto/yes]" "$LINENO" 5
34412          ;;
34413 esac
34414         if test "x$use_symbol_lookup" = "xyes"; then :
34415                                                                                 CAIRO_REQUIRES="$symbol_lookup_REQUIRES"" ${CAIRO_REQUIRES}"
34416
34417                                                                         CAIRO_CFLAGS="$symbol_lookup_CFLAGS"" ${CAIRO_CFLAGS}"
34418
34419                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$symbol_lookup_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
34420
34421                                                                         CAIRO_LIBS="$symbol_lookup_LIBS"" ${CAIRO_LIBS}"
34422
34423                                                                         CAIRO_NONPKGCONFIG_LIBS="$symbol_lookup_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
34424
34425
34426 else
34427                                         unset symbol_lookup_BASE
34428 unset symbol_lookup_REQUIRES
34429 unset symbol_lookup_CFLAGS
34430 unset symbol_lookup_NONPKGCONFIG_CFLAGS
34431 unset symbol_lookup_LIBS
34432 unset symbol_lookup_NONPKGCONFIG_LIBS
34433 unset symbol_lookup_NONPKGCONFIG_EXTRA_LIBS
34434
34435
34436 fi
34437
34438                                                          if test "x$use_symbol_lookup" = xyes; then
34439   CAIRO_HAS_SYMBOL_LOOKUP_TRUE=
34440   CAIRO_HAS_SYMBOL_LOOKUP_FALSE='#'
34441 else
34442   CAIRO_HAS_SYMBOL_LOOKUP_TRUE='#'
34443   CAIRO_HAS_SYMBOL_LOOKUP_FALSE=
34444 fi
34445
34446
34447                                                                                 cr_make_tmp='CAIRO_HAS_SYMBOL_LOOKUP=0'
34448                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
34449 ""$cr_make_tmp"
34450
34451
34452                                                                                 cr_make_tmp=''
34453                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34454 ""$cr_make_tmp"
34455
34456                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34457 ""$cr_make_tmp"
34458                                                                                 cr_make_tmp=''
34459                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34460 ""$cr_make_tmp"
34461
34462                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34463 ""$cr_make_tmp"
34464
34465
34466
34467
34468
34469
34470                                                                                 cr_make_tmp='all_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
34471 all_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
34472 all_cairo_sources += $(cairo_symbol_lookup_sources)'
34473                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34474 ""$cr_make_tmp"
34475
34476                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34477 ""$cr_make_tmp"
34478                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
34479 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
34480 all_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
34481                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34482 ""$cr_make_tmp"
34483
34484                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34485 ""$cr_make_tmp"
34486
34487
34488                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
34489 enabled_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
34490 enabled_cairo_sources += $(cairo_symbol_lookup_sources)'
34491                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34492 "'if CAIRO_HAS_SYMBOL_LOOKUP'
34493                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34494 ""$cr_make_tmp"
34495                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
34496 "'endif'
34497
34498                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34499 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
34500                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34501 ""$cr_make_tmp"
34502                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
34503 "'endif'
34504                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
34505 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
34506 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
34507                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34508 "'if CAIRO_HAS_SYMBOL_LOOKUP'
34509                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34510 ""$cr_make_tmp"
34511                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
34512 "'endif'
34513
34514                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34515 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
34516                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34517 ""$cr_make_tmp"
34518                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
34519 "'endif'
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529                                         if test "x$use_symbol_lookup" = xyes; then :
34530   :
34531
34532 $as_echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >>confdefs.h
34533
34534
34535
34536 fi
34537                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >> $(top_srcdir)/src/cairo-features.h'
34538                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34539 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
34540                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34541 ""$cr_make_tmp"
34542                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34543 "'endif'
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553 pkg_failed=no
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
34555 $as_echo_n "checking for glib... " >&6; }
34556
34557 if test -n "$glib_CFLAGS"; then
34558     pkg_cv_glib_CFLAGS="$glib_CFLAGS"
34559  elif test -n "$PKG_CONFIG"; then
34560     if test -n "$PKG_CONFIG" && \
34561     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
34562   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
34563   ac_status=$?
34564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34565   test $ac_status = 0; }; then
34566   pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
34567 else
34568   pkg_failed=yes
34569 fi
34570  else
34571     pkg_failed=untried
34572 fi
34573 if test -n "$glib_LIBS"; then
34574     pkg_cv_glib_LIBS="$glib_LIBS"
34575  elif test -n "$PKG_CONFIG"; then
34576     if test -n "$PKG_CONFIG" && \
34577     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
34578   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
34579   ac_status=$?
34580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34581   test $ac_status = 0; }; then
34582   pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
34583 else
34584   pkg_failed=yes
34585 fi
34586  else
34587     pkg_failed=untried
34588 fi
34589
34590
34591
34592 if test $pkg_failed = yes; then
34593
34594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34595         _pkg_short_errors_supported=yes
34596 else
34597         _pkg_short_errors_supported=no
34598 fi
34599         if test $_pkg_short_errors_supported = yes; then
34600                 glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
34601         else
34602                 glib_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
34603         fi
34604         # Put the nasty error message in config.log where it belongs
34605         echo "$glib_PKG_ERRORS" >&5
34606
34607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34608 $as_echo "no" >&6; }
34609                 have_glib=no
34610 elif test $pkg_failed = untried; then
34611         have_glib=no
34612 else
34613         glib_CFLAGS=$pkg_cv_glib_CFLAGS
34614         glib_LIBS=$pkg_cv_glib_LIBS
34615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34616 $as_echo "yes" >&6; }
34617         have_glib=yes
34618 fi
34619
34620
34621  if test "x$have_glib" = "xyes"; then
34622   BUILD_SPHINX_TRUE=
34623   BUILD_SPHINX_FALSE='#'
34624 else
34625   BUILD_SPHINX_TRUE='#'
34626   BUILD_SPHINX_FALSE=
34627 fi
34628
34629
34630 save_LIBS="$LIBS"
34631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
34632 $as_echo_n "checking for shm_open in -lrt... " >&6; }
34633 if ${ac_cv_lib_rt_shm_open+:} false; then :
34634   $as_echo_n "(cached) " >&6
34635 else
34636   ac_check_lib_save_LIBS=$LIBS
34637 LIBS="-lrt  $LIBS"
34638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34639 /* end confdefs.h.  */
34640
34641 /* Override any GCC internal prototype to avoid an error.
34642    Use char because int might match the return type of a GCC
34643    builtin and then its argument prototype would still apply.  */
34644 #ifdef __cplusplus
34645 extern "C"
34646 #endif
34647 char shm_open ();
34648 int
34649 main ()
34650 {
34651 return shm_open ();
34652   ;
34653   return 0;
34654 }
34655 _ACEOF
34656 if ac_fn_c_try_link "$LINENO"; then :
34657   ac_cv_lib_rt_shm_open=yes
34658 else
34659   ac_cv_lib_rt_shm_open=no
34660 fi
34661 rm -f core conftest.err conftest.$ac_objext \
34662     conftest$ac_exeext conftest.$ac_ext
34663 LIBS=$ac_check_lib_save_LIBS
34664 fi
34665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
34666 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
34667 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
34668   shm_LIBS="-lrt"
34669 fi
34670
34671
34672 LIBS="$save_LIBS"
34673
34674
34675 # Check whether --enable-some-floating-point was given.
34676 if test "${enable_some_floating_point+set}" = set; then :
34677   enableval=$enable_some_floating_point;
34678 if test "x$enableval" = "xno"; then
34679   # A value of 'no' for $enableval means that they want to disable, which
34680   # means 'yes' for $disable_some_floating_point.
34681   disable_some_floating_point=yes
34682 fi
34683
34684 else
34685   disable_some_floating_point=no
34686 fi
34687
34688
34689  if test "x$disable_some_floating_point" = "xyes"; then
34690   DISABLE_SOME_FLOATING_POINT_TRUE=
34691   DISABLE_SOME_FLOATING_POINT_FALSE='#'
34692 else
34693   DISABLE_SOME_FLOATING_POINT_TRUE='#'
34694   DISABLE_SOME_FLOATING_POINT_FALSE=
34695 fi
34696
34697 if test "x$disable_some_floating_point" = "xyes"; then
34698
34699 $as_echo "#define DISABLE_SOME_FLOATING_POINT 1" >>confdefs.h
34700
34701 fi
34702
34703
34704 need_cxx="no"
34705 if test "x$use_skia" = "xyes"; then :
34706   need_cxx="yes"
34707 fi
34708 if test "x$use_qt" = "xyes"; then :
34709   need_cxx="yes"
34710 fi
34711 if test "x$use_beos" = "xyes"; then :
34712   need_cxx="yes"
34713 fi
34714
34715  if test "x$need_cxx" = "xyes"; then
34716   BUILD_CXX_TRUE=
34717   BUILD_CXX_FALSE='#'
34718 else
34719   BUILD_CXX_TRUE='#'
34720   BUILD_CXX_FALSE=
34721 fi
34722
34723
34724
34725 # We use GTK+ for some utility/debugging tools
34726
34727 pkg_failed=no
34728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk" >&5
34729 $as_echo_n "checking for gtk... " >&6; }
34730
34731 if test -n "$gtk_CFLAGS"; then
34732     pkg_cv_gtk_CFLAGS="$gtk_CFLAGS"
34733  elif test -n "$PKG_CONFIG"; then
34734     if test -n "$PKG_CONFIG" && \
34735     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
34736   ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
34737   ac_status=$?
34738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34739   test $ac_status = 0; }; then
34740   pkg_cv_gtk_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0"" 2>/dev/null`
34741 else
34742   pkg_failed=yes
34743 fi
34744  else
34745     pkg_failed=untried
34746 fi
34747 if test -n "$gtk_LIBS"; then
34748     pkg_cv_gtk_LIBS="$gtk_LIBS"
34749  elif test -n "$PKG_CONFIG"; then
34750     if test -n "$PKG_CONFIG" && \
34751     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
34752   ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
34753   ac_status=$?
34754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34755   test $ac_status = 0; }; then
34756   pkg_cv_gtk_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0"" 2>/dev/null`
34757 else
34758   pkg_failed=yes
34759 fi
34760  else
34761     pkg_failed=untried
34762 fi
34763
34764
34765
34766 if test $pkg_failed = yes; then
34767
34768 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34769         _pkg_short_errors_supported=yes
34770 else
34771         _pkg_short_errors_supported=no
34772 fi
34773         if test $_pkg_short_errors_supported = yes; then
34774                 gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors ""gtk+-2.0"" 2>&1`
34775         else
34776                 gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors ""gtk+-2.0"" 2>&1`
34777         fi
34778         # Put the nasty error message in config.log where it belongs
34779         echo "$gtk_PKG_ERRORS" >&5
34780
34781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34782 $as_echo "no" >&6; }
34783                 have_gtk=no
34784 elif test $pkg_failed = untried; then
34785         have_gtk=no
34786 else
34787         gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
34788         gtk_LIBS=$pkg_cv_gtk_LIBS
34789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34790 $as_echo "yes" >&6; }
34791         have_gtk=yes
34792 fi
34793  if test "x$have_gtk" = "xyes"; then
34794   HAVE_GTK_TRUE=
34795   HAVE_GTK_FALSE='#'
34796 else
34797   HAVE_GTK_TRUE='#'
34798   HAVE_GTK_FALSE=
34799 fi
34800
34801
34802 ac_config_files="$ac_config_files Makefile boilerplate/Makefile src/Makefile test/Makefile test/pdiff/Makefile perf/Makefile perf/micro/Makefile util/Makefile util/cairo-fdr/Makefile util/cairo-gobject/Makefile util/cairo-missing/Makefile util/cairo-script/Makefile util/cairo-script/examples/Makefile util/cairo-sphinx/Makefile util/cairo-trace/Makefile util/cairo-trace/cairo-trace doc/Makefile doc/public/Makefile"
34803
34804
34805 cat >confcache <<\_ACEOF
34806 # This file is a shell script that caches the results of configure
34807 # tests run on this system so they can be shared between configure
34808 # scripts and configure runs, see configure's option --config-cache.
34809 # It is not useful on other systems.  If it contains results you don't
34810 # want to keep, you may remove or edit it.
34811 #
34812 # config.status only pays attention to the cache file if you give it
34813 # the --recheck option to rerun configure.
34814 #
34815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34817 # following values.
34818
34819 _ACEOF
34820
34821 # The following way of writing the cache mishandles newlines in values,
34822 # but we know of no workaround that is simple, portable, and efficient.
34823 # So, we kill variables containing newlines.
34824 # Ultrix sh set writes to stderr and can't be redirected directly,
34825 # and sets the high bit in the cache file unless we assign to the vars.
34826 (
34827   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34828     eval ac_val=\$$ac_var
34829     case $ac_val in #(
34830     *${as_nl}*)
34831       case $ac_var in #(
34832       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34834       esac
34835       case $ac_var in #(
34836       _ | IFS | as_nl) ;; #(
34837       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34838       *) { eval $ac_var=; unset $ac_var;} ;;
34839       esac ;;
34840     esac
34841   done
34842
34843   (set) 2>&1 |
34844     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34845     *${as_nl}ac_space=\ *)
34846       # `set' does not quote correctly, so add quotes: double-quote
34847       # substitution turns \\\\ into \\, and sed turns \\ into \.
34848       sed -n \
34849         "s/'/'\\\\''/g;
34850           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34851       ;; #(
34852     *)
34853       # `set' quotes correctly as required by POSIX, so do not add quotes.
34854       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34855       ;;
34856     esac |
34857     sort
34858 ) |
34859   sed '
34860      /^ac_cv_env_/b end
34861      t clear
34862      :clear
34863      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34864      t end
34865      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34866      :end' >>confcache
34867 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34868   if test -w "$cache_file"; then
34869     if test "x$cache_file" != "x/dev/null"; then
34870       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34871 $as_echo "$as_me: updating cache $cache_file" >&6;}
34872       if test ! -f "$cache_file" || test -h "$cache_file"; then
34873         cat confcache >"$cache_file"
34874       else
34875         case $cache_file in #(
34876         */* | ?:*)
34877           mv -f confcache "$cache_file"$$ &&
34878           mv -f "$cache_file"$$ "$cache_file" ;; #(
34879         *)
34880           mv -f confcache "$cache_file" ;;
34881         esac
34882       fi
34883     fi
34884   else
34885     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34886 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34887   fi
34888 fi
34889 rm -f confcache
34890
34891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34892 # Let make expand exec_prefix.
34893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34894
34895 DEFS=-DHAVE_CONFIG_H
34896
34897 ac_libobjs=
34898 ac_ltlibobjs=
34899 U=
34900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34901   # 1. Remove the extension, and $U if already installed.
34902   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34903   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34904   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34905   #    will be set to the directory where LIBOBJS objects are built.
34906   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34907   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34908 done
34909 LIBOBJS=$ac_libobjs
34910
34911 LTLIBOBJS=$ac_ltlibobjs
34912
34913
34914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34915   as_fn_error $? "conditional \"AMDEP\" was never defined.
34916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34917 fi
34918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34919   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34921 fi
34922  if test -n "$EXEEXT"; then
34923   am__EXEEXT_TRUE=
34924   am__EXEEXT_FALSE='#'
34925 else
34926   am__EXEEXT_TRUE='#'
34927   am__EXEEXT_FALSE=
34928 fi
34929
34930 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
34931   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
34932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34933 fi
34934 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
34935   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
34936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34937 fi
34938 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
34939   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
34940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34941 fi
34942 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
34943   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
34944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34945 fi
34946 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
34947   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
34948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34949 fi
34950 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34951   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34953 fi
34954 CAIRO_CFLAGS="$CAIRO_CFLAGS $CAIRO_NONPKGCONFIG_CFLAGS"
34955 CAIRO_LIBS="$CAIRO_LIBS $CAIRO_NONPKGCONFIG_LIBS"
34956
34957                                                                 cr_make_tmp='   @echo "#endif" >>  $(top_srcdir)/src/cairo-features.h'
34958                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
34959 ""$cr_make_tmp"
34960
34961
34962
34963         if test -z "$CAIRO_NATIVE_SURFACE_BACKENDS"; then :
34964                                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
34965
34966 "'*** No native surface backends enabled for your platform. It is strongly
34967 *** recommended that you enable the native surface backend feature for your
34968 *** platform.'
34969
34970
34971 fi
34972         if test -z "$CAIRO_NATIVE_FONT_BACKENDS"; then :
34973                                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
34974
34975 "'*** No native font backends enabled for your platform. It is strongly
34976 *** recommended that you enable the native font backend feature for your
34977 *** platform.'
34978
34979
34980 fi
34981
34982 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
34983   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
34984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34985 fi
34986
34987 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
34988   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
34989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34990 fi
34991 if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
34992   as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
34993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34994 fi
34995 if test -z "${CAIRO_HAS_LCOV_TRUE}" && test -z "${CAIRO_HAS_LCOV_FALSE}"; then
34996   as_fn_error $? "conditional \"CAIRO_HAS_LCOV\" was never defined.
34997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34998 fi
34999 if test -z "${CAIRO_HAS_DL_TRUE}" && test -z "${CAIRO_HAS_DL_FALSE}"; then
35000   as_fn_error $? "conditional \"CAIRO_HAS_DL\" was never defined.
35001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35002 fi
35003 if test -z "${CAIRO_HAS_DLSYM_TRUE}" && test -z "${CAIRO_HAS_DLSYM_FALSE}"; then
35004   as_fn_error $? "conditional \"CAIRO_HAS_DLSYM\" was never defined.
35005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35006 fi
35007 if test -z "${CAIRO_HAS_XLIB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_SURFACE_FALSE}"; then
35008   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_SURFACE\" was never defined.
35009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35010 fi
35011 if test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE}"; then
35012   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XRENDER_SURFACE\" was never defined.
35013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35014 fi
35015 if test -z "${CAIRO_HAS_XCB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XCB_SURFACE_FALSE}"; then
35016   as_fn_error $? "conditional \"CAIRO_HAS_XCB_SURFACE\" was never defined.
35017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35018 fi
35019 if test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE}"; then
35020   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XCB_FUNCTIONS\" was never defined.
35021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35022 fi
35023 if test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE}"; then
35024   as_fn_error $? "conditional \"CAIRO_HAS_XCB_SHM_FUNCTIONS\" was never defined.
35025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35026 fi
35027 if test -z "${CAIRO_HAS_QT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QT_SURFACE_FALSE}"; then
35028   as_fn_error $? "conditional \"CAIRO_HAS_QT_SURFACE\" was never defined.
35029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35030 fi
35031 if test -z "${CAIRO_HAS_QUARTZ_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_SURFACE_FALSE}"; then
35032   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_SURFACE\" was never defined.
35033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35034 fi
35035 if test -z "${CAIRO_HAS_QUARTZ_FONT_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_FONT_FALSE}"; then
35036   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_FONT\" was never defined.
35037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35038 fi
35039 if test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE}"; then
35040   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_IMAGE_SURFACE\" was never defined.
35041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35042 fi
35043 if test -z "${CAIRO_HAS_WIN32_SURFACE_TRUE}" && test -z "${CAIRO_HAS_WIN32_SURFACE_FALSE}"; then
35044   as_fn_error $? "conditional \"CAIRO_HAS_WIN32_SURFACE\" was never defined.
35045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35046 fi
35047 if test -z "${CAIRO_HAS_WIN32_FONT_TRUE}" && test -z "${CAIRO_HAS_WIN32_FONT_FALSE}"; then
35048   as_fn_error $? "conditional \"CAIRO_HAS_WIN32_FONT\" was never defined.
35049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35050 fi
35051 if test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE}"; then
35052   as_fn_error $? "conditional \"CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE\" was never defined.
35053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35054 fi
35055 if test -z "${CAIRO_HAS_SKIA_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SKIA_SURFACE_FALSE}"; then
35056   as_fn_error $? "conditional \"CAIRO_HAS_SKIA_SURFACE\" was never defined.
35057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35058 fi
35059 if test -z "${CAIRO_HAS_OS2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_OS2_SURFACE_FALSE}"; then
35060   as_fn_error $? "conditional \"CAIRO_HAS_OS2_SURFACE\" was never defined.
35061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35062 fi
35063 if test -z "${CAIRO_HAS_BEOS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_BEOS_SURFACE_FALSE}"; then
35064   as_fn_error $? "conditional \"CAIRO_HAS_BEOS_SURFACE\" was never defined.
35065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35066 fi
35067 if test -z "${CAIRO_HAS_DRM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DRM_SURFACE_FALSE}"; then
35068   as_fn_error $? "conditional \"CAIRO_HAS_DRM_SURFACE\" was never defined.
35069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35070 fi
35071 if test -z "${CAIRO_HAS_GALLIUM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GALLIUM_SURFACE_FALSE}"; then
35072   as_fn_error $? "conditional \"CAIRO_HAS_GALLIUM_SURFACE\" was never defined.
35073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35074 fi
35075 if test -z "${CAIRO_HAS_PNG_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_PNG_FUNCTIONS_FALSE}"; then
35076   as_fn_error $? "conditional \"CAIRO_HAS_PNG_FUNCTIONS\" was never defined.
35077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35078 fi
35079 if test -z "${CAIRO_HAS_GL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GL_SURFACE_FALSE}"; then
35080   as_fn_error $? "conditional \"CAIRO_HAS_GL_SURFACE\" was never defined.
35081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35082 fi
35083 if test -z "${CAIRO_HAS_GLESV2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GLESV2_SURFACE_FALSE}"; then
35084   as_fn_error $? "conditional \"CAIRO_HAS_GLESV2_SURFACE\" was never defined.
35085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35086 fi
35087 if test -z "${CAIRO_HAS_COGL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_COGL_SURFACE_FALSE}"; then
35088   as_fn_error $? "conditional \"CAIRO_HAS_COGL_SURFACE\" was never defined.
35089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35090 fi
35091 if test -z "${CAIRO_HAS_DIRECTFB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DIRECTFB_SURFACE_FALSE}"; then
35092   as_fn_error $? "conditional \"CAIRO_HAS_DIRECTFB_SURFACE\" was never defined.
35093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35094 fi
35095 if test -z "${CAIRO_HAS_VG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_VG_SURFACE_FALSE}"; then
35096   as_fn_error $? "conditional \"CAIRO_HAS_VG_SURFACE\" was never defined.
35097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35098 fi
35099 if test -z "${CAIRO_HAS_EGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_EGL_FUNCTIONS_FALSE}"; then
35100   as_fn_error $? "conditional \"CAIRO_HAS_EGL_FUNCTIONS\" was never defined.
35101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35102 fi
35103 if test -z "${CAIRO_HAS_GLX_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GLX_FUNCTIONS_FALSE}"; then
35104   as_fn_error $? "conditional \"CAIRO_HAS_GLX_FUNCTIONS\" was never defined.
35105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35106 fi
35107 if test -z "${CAIRO_HAS_WGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_WGL_FUNCTIONS_FALSE}"; then
35108   as_fn_error $? "conditional \"CAIRO_HAS_WGL_FUNCTIONS\" was never defined.
35109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35110 fi
35111 if test -z "${CAIRO_HAS_SCRIPT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SCRIPT_SURFACE_FALSE}"; then
35112   as_fn_error $? "conditional \"CAIRO_HAS_SCRIPT_SURFACE\" was never defined.
35113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35114 fi
35115 if test -z "${CAIRO_HAS_FT_FONT_TRUE}" && test -z "${CAIRO_HAS_FT_FONT_FALSE}"; then
35116   as_fn_error $? "conditional \"CAIRO_HAS_FT_FONT\" was never defined.
35117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35118 fi
35119 if test -z "${CAIRO_HAS_FC_FONT_TRUE}" && test -z "${CAIRO_HAS_FC_FONT_FALSE}"; then
35120   as_fn_error $? "conditional \"CAIRO_HAS_FC_FONT\" was never defined.
35121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35122 fi
35123 if test -z "${CAIRO_HAS_PS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PS_SURFACE_FALSE}"; then
35124   as_fn_error $? "conditional \"CAIRO_HAS_PS_SURFACE\" was never defined.
35125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35126 fi
35127 if test -z "${CAIRO_CAN_TEST_PS_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PS_SURFACE_FALSE}"; then
35128   as_fn_error $? "conditional \"CAIRO_CAN_TEST_PS_SURFACE\" was never defined.
35129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35130 fi
35131 if test -z "${CAIRO_HAS_SPECTRE_TRUE}" && test -z "${CAIRO_HAS_SPECTRE_FALSE}"; then
35132   as_fn_error $? "conditional \"CAIRO_HAS_SPECTRE\" was never defined.
35133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35134 fi
35135 if test -z "${CAIRO_HAS_PDF_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PDF_SURFACE_FALSE}"; then
35136   as_fn_error $? "conditional \"CAIRO_HAS_PDF_SURFACE\" was never defined.
35137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35138 fi
35139 if test -z "${CAIRO_CAN_TEST_PDF_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PDF_SURFACE_FALSE}"; then
35140   as_fn_error $? "conditional \"CAIRO_CAN_TEST_PDF_SURFACE\" was never defined.
35141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35142 fi
35143 if test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE}" && test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE}"; then
35144   as_fn_error $? "conditional \"CAIRO_HAS_MULTI_PAGE_SURFACES\" was never defined.
35145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35146 fi
35147 if test -z "${CAIRO_HAS_SVG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SVG_SURFACE_FALSE}"; then
35148   as_fn_error $? "conditional \"CAIRO_HAS_SVG_SURFACE\" was never defined.
35149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35150 fi
35151 if test -z "${CAIRO_CAN_TEST_SVG_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_SVG_SURFACE_FALSE}"; then
35152   as_fn_error $? "conditional \"CAIRO_CAN_TEST_SVG_SURFACE\" was never defined.
35153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35154 fi
35155 if test -z "${CAIRO_HAS_TEST_SURFACES_TRUE}" && test -z "${CAIRO_HAS_TEST_SURFACES_FALSE}"; then
35156   as_fn_error $? "conditional \"CAIRO_HAS_TEST_SURFACES\" was never defined.
35157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35158 fi
35159 if test -z "${CAIRO_HAS_TEE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_TEE_SURFACE_FALSE}"; then
35160   as_fn_error $? "conditional \"CAIRO_HAS_TEE_SURFACE\" was never defined.
35161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35162 fi
35163 if test -z "${CAIRO_HAS_XML_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XML_SURFACE_FALSE}"; then
35164   as_fn_error $? "conditional \"CAIRO_HAS_XML_SURFACE\" was never defined.
35165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35166 fi
35167 if test -z "${CAIRO_HAS_PTHREAD_TRUE}" && test -z "${CAIRO_HAS_PTHREAD_FALSE}"; then
35168   as_fn_error $? "conditional \"CAIRO_HAS_PTHREAD\" was never defined.
35169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35170 fi
35171 if test -z "${HAVE_REAL_PTHREAD_TRUE}" && test -z "${HAVE_REAL_PTHREAD_FALSE}"; then
35172   as_fn_error $? "conditional \"HAVE_REAL_PTHREAD\" was never defined.
35173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35174 fi
35175 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
35176   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
35177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35178 fi
35179 if test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE}"; then
35180   as_fn_error $? "conditional \"CAIRO_HAS_GOBJECT_FUNCTIONS\" was never defined.
35181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35182 fi
35183 if test -z "${BUILD_ANY2PPM_TRUE}" && test -z "${BUILD_ANY2PPM_FALSE}"; then
35184   as_fn_error $? "conditional \"BUILD_ANY2PPM\" was never defined.
35185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35186 fi
35187 if test -z "${CAIRO_HAS_TRACE_TRUE}" && test -z "${CAIRO_HAS_TRACE_FALSE}"; then
35188   as_fn_error $? "conditional \"CAIRO_HAS_TRACE\" was never defined.
35189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35190 fi
35191 if test -z "${CAIRO_HAS_INTERPRETER_TRUE}" && test -z "${CAIRO_HAS_INTERPRETER_FALSE}"; then
35192   as_fn_error $? "conditional \"CAIRO_HAS_INTERPRETER\" was never defined.
35193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35194 fi
35195 if test -z "${CAIRO_HAS_SYMBOL_LOOKUP_TRUE}" && test -z "${CAIRO_HAS_SYMBOL_LOOKUP_FALSE}"; then
35196   as_fn_error $? "conditional \"CAIRO_HAS_SYMBOL_LOOKUP\" was never defined.
35197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35198 fi
35199 if test -z "${BUILD_SPHINX_TRUE}" && test -z "${BUILD_SPHINX_FALSE}"; then
35200   as_fn_error $? "conditional \"BUILD_SPHINX\" was never defined.
35201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35202 fi
35203 if test -z "${DISABLE_SOME_FLOATING_POINT_TRUE}" && test -z "${DISABLE_SOME_FLOATING_POINT_FALSE}"; then
35204   as_fn_error $? "conditional \"DISABLE_SOME_FLOATING_POINT\" was never defined.
35205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35206 fi
35207 if test -z "${BUILD_CXX_TRUE}" && test -z "${BUILD_CXX_FALSE}"; then
35208   as_fn_error $? "conditional \"BUILD_CXX\" was never defined.
35209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35210 fi
35211 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
35212   as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
35213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35214 fi
35215
35216 : "${CONFIG_STATUS=./config.status}"
35217 ac_write_fail=0
35218 ac_clean_files_save=$ac_clean_files
35219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35222 as_write_fail=0
35223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35224 #! $SHELL
35225 # Generated by $as_me.
35226 # Run this file to recreate the current configuration.
35227 # Compiler output produced by configure, useful for debugging
35228 # configure, is in config.log if it exists.
35229
35230 debug=false
35231 ac_cs_recheck=false
35232 ac_cs_silent=false
35233
35234 SHELL=\${CONFIG_SHELL-$SHELL}
35235 export SHELL
35236 _ASEOF
35237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35238 ## -------------------- ##
35239 ## M4sh Initialization. ##
35240 ## -------------------- ##
35241
35242 # Be more Bourne compatible
35243 DUALCASE=1; export DUALCASE # for MKS sh
35244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35245   emulate sh
35246   NULLCMD=:
35247   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35248   # is contrary to our usage.  Disable this feature.
35249   alias -g '${1+"$@"}'='"$@"'
35250   setopt NO_GLOB_SUBST
35251 else
35252   case `(set -o) 2>/dev/null` in #(
35253   *posix*) :
35254     set -o posix ;; #(
35255   *) :
35256      ;;
35257 esac
35258 fi
35259
35260
35261 as_nl='
35262 '
35263 export as_nl
35264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35268 # Prefer a ksh shell builtin over an external printf program on Solaris,
35269 # but without wasting forks for bash or zsh.
35270 if test -z "$BASH_VERSION$ZSH_VERSION" \
35271     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35272   as_echo='print -r --'
35273   as_echo_n='print -rn --'
35274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35275   as_echo='printf %s\n'
35276   as_echo_n='printf %s'
35277 else
35278   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35279     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35280     as_echo_n='/usr/ucb/echo -n'
35281   else
35282     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35283     as_echo_n_body='eval
35284       arg=$1;
35285       case $arg in #(
35286       *"$as_nl"*)
35287         expr "X$arg" : "X\\(.*\\)$as_nl";
35288         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35289       esac;
35290       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35291     '
35292     export as_echo_n_body
35293     as_echo_n='sh -c $as_echo_n_body as_echo'
35294   fi
35295   export as_echo_body
35296   as_echo='sh -c $as_echo_body as_echo'
35297 fi
35298
35299 # The user is always right.
35300 if test "${PATH_SEPARATOR+set}" != set; then
35301   PATH_SEPARATOR=:
35302   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35303     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35304       PATH_SEPARATOR=';'
35305   }
35306 fi
35307
35308
35309 # IFS
35310 # We need space, tab and new line, in precisely that order.  Quoting is
35311 # there to prevent editors from complaining about space-tab.
35312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35313 # splitting by setting IFS to empty value.)
35314 IFS=" ""        $as_nl"
35315
35316 # Find who we are.  Look in the path if we contain no directory separator.
35317 as_myself=
35318 case $0 in #((
35319   *[\\/]* ) as_myself=$0 ;;
35320   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35321 for as_dir in $PATH
35322 do
35323   IFS=$as_save_IFS
35324   test -z "$as_dir" && as_dir=.
35325     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35326   done
35327 IFS=$as_save_IFS
35328
35329      ;;
35330 esac
35331 # We did not find ourselves, most probably we were run as `sh COMMAND'
35332 # in which case we are not to be found in the path.
35333 if test "x$as_myself" = x; then
35334   as_myself=$0
35335 fi
35336 if test ! -f "$as_myself"; then
35337   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35338   exit 1
35339 fi
35340
35341 # Unset variables that we do not need and which cause bugs (e.g. in
35342 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35343 # suppresses any "Segmentation fault" message there.  '((' could
35344 # trigger a bug in pdksh 5.2.14.
35345 for as_var in BASH_ENV ENV MAIL MAILPATH
35346 do eval test x\${$as_var+set} = xset \
35347   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35348 done
35349 PS1='$ '
35350 PS2='> '
35351 PS4='+ '
35352
35353 # NLS nuisances.
35354 LC_ALL=C
35355 export LC_ALL
35356 LANGUAGE=C
35357 export LANGUAGE
35358
35359 # CDPATH.
35360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35361
35362
35363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35364 # ----------------------------------------
35365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35367 # script with STATUS, using 1 if that was 0.
35368 as_fn_error ()
35369 {
35370   as_status=$1; test $as_status -eq 0 && as_status=1
35371   if test "$4"; then
35372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35374   fi
35375   $as_echo "$as_me: error: $2" >&2
35376   as_fn_exit $as_status
35377 } # as_fn_error
35378
35379
35380 # as_fn_set_status STATUS
35381 # -----------------------
35382 # Set $? to STATUS, without forking.
35383 as_fn_set_status ()
35384 {
35385   return $1
35386 } # as_fn_set_status
35387
35388 # as_fn_exit STATUS
35389 # -----------------
35390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35391 as_fn_exit ()
35392 {
35393   set +e
35394   as_fn_set_status $1
35395   exit $1
35396 } # as_fn_exit
35397
35398 # as_fn_unset VAR
35399 # ---------------
35400 # Portably unset VAR.
35401 as_fn_unset ()
35402 {
35403   { eval $1=; unset $1;}
35404 }
35405 as_unset=as_fn_unset
35406 # as_fn_append VAR VALUE
35407 # ----------------------
35408 # Append the text in VALUE to the end of the definition contained in VAR. Take
35409 # advantage of any shell optimizations that allow amortized linear growth over
35410 # repeated appends, instead of the typical quadratic growth present in naive
35411 # implementations.
35412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35413   eval 'as_fn_append ()
35414   {
35415     eval $1+=\$2
35416   }'
35417 else
35418   as_fn_append ()
35419   {
35420     eval $1=\$$1\$2
35421   }
35422 fi # as_fn_append
35423
35424 # as_fn_arith ARG...
35425 # ------------------
35426 # Perform arithmetic evaluation on the ARGs, and store the result in the
35427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35428 # must be portable across $(()) and expr.
35429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35430   eval 'as_fn_arith ()
35431   {
35432     as_val=$(( $* ))
35433   }'
35434 else
35435   as_fn_arith ()
35436   {
35437     as_val=`expr "$@" || test $? -eq 1`
35438   }
35439 fi # as_fn_arith
35440
35441
35442 if expr a : '\(a\)' >/dev/null 2>&1 &&
35443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35444   as_expr=expr
35445 else
35446   as_expr=false
35447 fi
35448
35449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35450   as_basename=basename
35451 else
35452   as_basename=false
35453 fi
35454
35455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35456   as_dirname=dirname
35457 else
35458   as_dirname=false
35459 fi
35460
35461 as_me=`$as_basename -- "$0" ||
35462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35463          X"$0" : 'X\(//\)$' \| \
35464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35465 $as_echo X/"$0" |
35466     sed '/^.*\/\([^/][^/]*\)\/*$/{
35467             s//\1/
35468             q
35469           }
35470           /^X\/\(\/\/\)$/{
35471             s//\1/
35472             q
35473           }
35474           /^X\/\(\/\).*/{
35475             s//\1/
35476             q
35477           }
35478           s/.*/./; q'`
35479
35480 # Avoid depending upon Character Ranges.
35481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35484 as_cr_digits='0123456789'
35485 as_cr_alnum=$as_cr_Letters$as_cr_digits
35486
35487 ECHO_C= ECHO_N= ECHO_T=
35488 case `echo -n x` in #(((((
35489 -n*)
35490   case `echo 'xy\c'` in
35491   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35492   xy)  ECHO_C='\c';;
35493   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35494        ECHO_T=' ';;
35495   esac;;
35496 *)
35497   ECHO_N='-n';;
35498 esac
35499
35500 rm -f conf$$ conf$$.exe conf$$.file
35501 if test -d conf$$.dir; then
35502   rm -f conf$$.dir/conf$$.file
35503 else
35504   rm -f conf$$.dir
35505   mkdir conf$$.dir 2>/dev/null
35506 fi
35507 if (echo >conf$$.file) 2>/dev/null; then
35508   if ln -s conf$$.file conf$$ 2>/dev/null; then
35509     as_ln_s='ln -s'
35510     # ... but there are two gotchas:
35511     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35512     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35513     # In both cases, we have to default to `cp -pR'.
35514     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35515       as_ln_s='cp -pR'
35516   elif ln conf$$.file conf$$ 2>/dev/null; then
35517     as_ln_s=ln
35518   else
35519     as_ln_s='cp -pR'
35520   fi
35521 else
35522   as_ln_s='cp -pR'
35523 fi
35524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35525 rmdir conf$$.dir 2>/dev/null
35526
35527
35528 # as_fn_mkdir_p
35529 # -------------
35530 # Create "$as_dir" as a directory, including parents if necessary.
35531 as_fn_mkdir_p ()
35532 {
35533
35534   case $as_dir in #(
35535   -*) as_dir=./$as_dir;;
35536   esac
35537   test -d "$as_dir" || eval $as_mkdir_p || {
35538     as_dirs=
35539     while :; do
35540       case $as_dir in #(
35541       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35542       *) as_qdir=$as_dir;;
35543       esac
35544       as_dirs="'$as_qdir' $as_dirs"
35545       as_dir=`$as_dirname -- "$as_dir" ||
35546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35547          X"$as_dir" : 'X\(//\)[^/]' \| \
35548          X"$as_dir" : 'X\(//\)$' \| \
35549          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35550 $as_echo X"$as_dir" |
35551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35552             s//\1/
35553             q
35554           }
35555           /^X\(\/\/\)[^/].*/{
35556             s//\1/
35557             q
35558           }
35559           /^X\(\/\/\)$/{
35560             s//\1/
35561             q
35562           }
35563           /^X\(\/\).*/{
35564             s//\1/
35565             q
35566           }
35567           s/.*/./; q'`
35568       test -d "$as_dir" && break
35569     done
35570     test -z "$as_dirs" || eval "mkdir $as_dirs"
35571   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35572
35573
35574 } # as_fn_mkdir_p
35575 if mkdir -p . 2>/dev/null; then
35576   as_mkdir_p='mkdir -p "$as_dir"'
35577 else
35578   test -d ./-p && rmdir ./-p
35579   as_mkdir_p=false
35580 fi
35581
35582
35583 # as_fn_executable_p FILE
35584 # -----------------------
35585 # Test if FILE is an executable regular file.
35586 as_fn_executable_p ()
35587 {
35588   test -f "$1" && test -x "$1"
35589 } # as_fn_executable_p
35590 as_test_x='test -x'
35591 as_executable_p=as_fn_executable_p
35592
35593 # Sed expression to map a string onto a valid CPP name.
35594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35595
35596 # Sed expression to map a string onto a valid variable name.
35597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35598
35599
35600 exec 6>&1
35601 ## ----------------------------------- ##
35602 ## Main body of $CONFIG_STATUS script. ##
35603 ## ----------------------------------- ##
35604 _ASEOF
35605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35606
35607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35608 # Save the log message, to keep $0 and so on meaningful, and to
35609 # report actual input values of CONFIG_FILES etc. instead of their
35610 # values after options handling.
35611 ac_log="
35612 This file was extended by cairo $as_me 1.12.16, which was
35613 generated by GNU Autoconf 2.69.  Invocation command line was
35614
35615   CONFIG_FILES    = $CONFIG_FILES
35616   CONFIG_HEADERS  = $CONFIG_HEADERS
35617   CONFIG_LINKS    = $CONFIG_LINKS
35618   CONFIG_COMMANDS = $CONFIG_COMMANDS
35619   $ $0 $@
35620
35621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35622 "
35623
35624 _ACEOF
35625
35626 case $ac_config_files in *"
35627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35628 esac
35629
35630 case $ac_config_headers in *"
35631 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35632 esac
35633
35634
35635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35636 # Files that config.status was made for.
35637 config_files="$ac_config_files"
35638 config_headers="$ac_config_headers"
35639 config_commands="$ac_config_commands"
35640
35641 _ACEOF
35642
35643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35644 ac_cs_usage="\
35645 \`$as_me' instantiates files and other configuration actions
35646 from templates according to the current configuration.  Unless the files
35647 and actions are specified as TAGs, all are instantiated by default.
35648
35649 Usage: $0 [OPTION]... [TAG]...
35650
35651   -h, --help       print this help, then exit
35652   -V, --version    print version number and configuration settings, then exit
35653       --config     print configuration, then exit
35654   -q, --quiet, --silent
35655                    do not print progress messages
35656   -d, --debug      don't remove temporary files
35657       --recheck    update $as_me by reconfiguring in the same conditions
35658       --file=FILE[:TEMPLATE]
35659                    instantiate the configuration file FILE
35660       --header=FILE[:TEMPLATE]
35661                    instantiate the configuration header FILE
35662
35663 Configuration files:
35664 $config_files
35665
35666 Configuration headers:
35667 $config_headers
35668
35669 Configuration commands:
35670 $config_commands
35671
35672 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
35673 cairo home page: <http://cairographics.org/>."
35674
35675 _ACEOF
35676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35678 ac_cs_version="\\
35679 cairo config.status 1.12.16
35680 configured by $0, generated by GNU Autoconf 2.69,
35681   with options \\"\$ac_cs_config\\"
35682
35683 Copyright (C) 2012 Free Software Foundation, Inc.
35684 This config.status script is free software; the Free Software Foundation
35685 gives unlimited permission to copy, distribute and modify it."
35686
35687 ac_pwd='$ac_pwd'
35688 srcdir='$srcdir'
35689 INSTALL='$INSTALL'
35690 MKDIR_P='$MKDIR_P'
35691 AWK='$AWK'
35692 test -n "\$AWK" || AWK=awk
35693 _ACEOF
35694
35695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35696 # The default lists apply if the user does not specify any file.
35697 ac_need_defaults=:
35698 while test $# != 0
35699 do
35700   case $1 in
35701   --*=?*)
35702     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35703     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35704     ac_shift=:
35705     ;;
35706   --*=)
35707     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35708     ac_optarg=
35709     ac_shift=:
35710     ;;
35711   *)
35712     ac_option=$1
35713     ac_optarg=$2
35714     ac_shift=shift
35715     ;;
35716   esac
35717
35718   case $ac_option in
35719   # Handling of the options.
35720   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35721     ac_cs_recheck=: ;;
35722   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35723     $as_echo "$ac_cs_version"; exit ;;
35724   --config | --confi | --conf | --con | --co | --c )
35725     $as_echo "$ac_cs_config"; exit ;;
35726   --debug | --debu | --deb | --de | --d | -d )
35727     debug=: ;;
35728   --file | --fil | --fi | --f )
35729     $ac_shift
35730     case $ac_optarg in
35731     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35732     '') as_fn_error $? "missing file argument" ;;
35733     esac
35734     as_fn_append CONFIG_FILES " '$ac_optarg'"
35735     ac_need_defaults=false;;
35736   --header | --heade | --head | --hea )
35737     $ac_shift
35738     case $ac_optarg in
35739     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35740     esac
35741     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35742     ac_need_defaults=false;;
35743   --he | --h)
35744     # Conflict between --help and --header
35745     as_fn_error $? "ambiguous option: \`$1'
35746 Try \`$0 --help' for more information.";;
35747   --help | --hel | -h )
35748     $as_echo "$ac_cs_usage"; exit ;;
35749   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35750   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35751     ac_cs_silent=: ;;
35752
35753   # This is an error.
35754   -*) as_fn_error $? "unrecognized option: \`$1'
35755 Try \`$0 --help' for more information." ;;
35756
35757   *) as_fn_append ac_config_targets " $1"
35758      ac_need_defaults=false ;;
35759
35760   esac
35761   shift
35762 done
35763
35764 ac_configure_extra_args=
35765
35766 if $ac_cs_silent; then
35767   exec 6>/dev/null
35768   ac_configure_extra_args="$ac_configure_extra_args --silent"
35769 fi
35770
35771 _ACEOF
35772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35773 if \$ac_cs_recheck; then
35774   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35775   shift
35776   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35777   CONFIG_SHELL='$SHELL'
35778   export CONFIG_SHELL
35779   exec "\$@"
35780 fi
35781
35782 _ACEOF
35783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35784 exec 5>>config.log
35785 {
35786   echo
35787   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35788 ## Running $as_me. ##
35789 _ASBOX
35790   $as_echo "$ac_log"
35791 } >&5
35792
35793 _ACEOF
35794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35795 #
35796 # INIT-COMMANDS
35797 #
35798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35799
35800
35801 # The HP-UX ksh and POSIX shell print the target directory to stdout
35802 # if CDPATH is set.
35803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35804
35805 sed_quote_subst='$sed_quote_subst'
35806 double_quote_subst='$double_quote_subst'
35807 delay_variable_subst='$delay_variable_subst'
35808 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35809 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35810 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35811 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35812 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35813 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35814 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35815 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35816 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35817 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35818 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35819 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
35820 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35821 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35822 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35823 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35824 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35825 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35826 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35827 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35828 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35829 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35830 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35831 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35832 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35833 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35834 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35835 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35836 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35837 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35838 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35839 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35840 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35841 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35842 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35843 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35844 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35845 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35846 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35847 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35848 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35849 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35850 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35851 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35852 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35853 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35854 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35855 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35856 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35857 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35858 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35859 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35860 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35861 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35862 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35863 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35864 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35865 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"`'
35866 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35867 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35868 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35869 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35870 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35871 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35872 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35873 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35874 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35875 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35876 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35877 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35878 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35879 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35880 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35881 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35882 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35883 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35884 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35885 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35886 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35887 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35888 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35889 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35890 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35891 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35892 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35893 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35894 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35895 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35896 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35897 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35898 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35899 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35900 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35901 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35902 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35903 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35904 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35905 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35906 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35907 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35908 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35909 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35910 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35911 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35912 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35913 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35914 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35915 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35916 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35917 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35918 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35919 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35920 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35921 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35922 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35923 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35924 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35925 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35926 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35927 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35928 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35929 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35930 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35931 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35932 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35933 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35934 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35935 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35936 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35937 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35938 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35939 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35940 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35941 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35942 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35943 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35944 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35945 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35946 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35947 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35948 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35949 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35950 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35951 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35952 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35953 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35954 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35955 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35956 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35957 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35958 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35959 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35960 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35961 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35962 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35963 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35964 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35965 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35966 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35967 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35968 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35969 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35970 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35971 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35972 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35973 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35974 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35975 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35976 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35977 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35978 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35979 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35980 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35981 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35982 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35983 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35984 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35985 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35986 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35987 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35988 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35989 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35990 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35991 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35992 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35993
35994 LTCC='$LTCC'
35995 LTCFLAGS='$LTCFLAGS'
35996 compiler='$compiler_DEFAULT'
35997
35998 # A function that is used when there is no print builtin or printf.
35999 func_fallback_echo ()
36000 {
36001   eval 'cat <<_LTECHO_EOF
36002 \$1
36003 _LTECHO_EOF'
36004 }
36005
36006 # Quote evaled strings.
36007 for var in AS \
36008 DLLTOOL \
36009 OBJDUMP \
36010 SHELL \
36011 ECHO \
36012 PATH_SEPARATOR \
36013 SED \
36014 GREP \
36015 EGREP \
36016 FGREP \
36017 LD \
36018 NM \
36019 LN_S \
36020 lt_SP2NL \
36021 lt_NL2SP \
36022 reload_flag \
36023 deplibs_check_method \
36024 file_magic_cmd \
36025 file_magic_glob \
36026 want_nocaseglob \
36027 sharedlib_from_linklib_cmd \
36028 AR \
36029 AR_FLAGS \
36030 archiver_list_spec \
36031 STRIP \
36032 RANLIB \
36033 CC \
36034 CFLAGS \
36035 compiler \
36036 lt_cv_sys_global_symbol_pipe \
36037 lt_cv_sys_global_symbol_to_cdecl \
36038 lt_cv_sys_global_symbol_to_c_name_address \
36039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36040 nm_file_list_spec \
36041 lt_prog_compiler_no_builtin_flag \
36042 lt_prog_compiler_pic \
36043 lt_prog_compiler_wl \
36044 lt_prog_compiler_static \
36045 lt_cv_prog_compiler_c_o \
36046 need_locks \
36047 MANIFEST_TOOL \
36048 DSYMUTIL \
36049 NMEDIT \
36050 LIPO \
36051 OTOOL \
36052 OTOOL64 \
36053 shrext_cmds \
36054 export_dynamic_flag_spec \
36055 whole_archive_flag_spec \
36056 compiler_needs_object \
36057 with_gnu_ld \
36058 allow_undefined_flag \
36059 no_undefined_flag \
36060 hardcode_libdir_flag_spec \
36061 hardcode_libdir_separator \
36062 exclude_expsyms \
36063 include_expsyms \
36064 file_list_spec \
36065 variables_saved_for_relink \
36066 libname_spec \
36067 library_names_spec \
36068 soname_spec \
36069 install_override_mode \
36070 finish_eval \
36071 old_striplib \
36072 striplib \
36073 compiler_lib_search_dirs \
36074 predep_objects \
36075 postdep_objects \
36076 predeps \
36077 postdeps \
36078 compiler_lib_search_path \
36079 LD_CXX \
36080 reload_flag_CXX \
36081 compiler_CXX \
36082 lt_prog_compiler_no_builtin_flag_CXX \
36083 lt_prog_compiler_pic_CXX \
36084 lt_prog_compiler_wl_CXX \
36085 lt_prog_compiler_static_CXX \
36086 lt_cv_prog_compiler_c_o_CXX \
36087 export_dynamic_flag_spec_CXX \
36088 whole_archive_flag_spec_CXX \
36089 compiler_needs_object_CXX \
36090 with_gnu_ld_CXX \
36091 allow_undefined_flag_CXX \
36092 no_undefined_flag_CXX \
36093 hardcode_libdir_flag_spec_CXX \
36094 hardcode_libdir_separator_CXX \
36095 exclude_expsyms_CXX \
36096 include_expsyms_CXX \
36097 file_list_spec_CXX \
36098 compiler_lib_search_dirs_CXX \
36099 predep_objects_CXX \
36100 postdep_objects_CXX \
36101 predeps_CXX \
36102 postdeps_CXX \
36103 compiler_lib_search_path_CXX; do
36104     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36105     *[\\\\\\\`\\"\\\$]*)
36106       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
36107       ;;
36108     *)
36109       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36110       ;;
36111     esac
36112 done
36113
36114 # Double-quote double-evaled strings.
36115 for var in reload_cmds \
36116 old_postinstall_cmds \
36117 old_postuninstall_cmds \
36118 old_archive_cmds \
36119 extract_expsyms_cmds \
36120 old_archive_from_new_cmds \
36121 old_archive_from_expsyms_cmds \
36122 archive_cmds \
36123 archive_expsym_cmds \
36124 module_cmds \
36125 module_expsym_cmds \
36126 export_symbols_cmds \
36127 prelink_cmds \
36128 postlink_cmds \
36129 postinstall_cmds \
36130 postuninstall_cmds \
36131 finish_cmds \
36132 sys_lib_search_path_spec \
36133 sys_lib_dlsearch_path_spec \
36134 reload_cmds_CXX \
36135 old_archive_cmds_CXX \
36136 old_archive_from_new_cmds_CXX \
36137 old_archive_from_expsyms_cmds_CXX \
36138 archive_cmds_CXX \
36139 archive_expsym_cmds_CXX \
36140 module_cmds_CXX \
36141 module_expsym_cmds_CXX \
36142 export_symbols_cmds_CXX \
36143 prelink_cmds_CXX \
36144 postlink_cmds_CXX; do
36145     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36146     *[\\\\\\\`\\"\\\$]*)
36147       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
36148       ;;
36149     *)
36150       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36151       ;;
36152     esac
36153 done
36154
36155 ac_aux_dir='$ac_aux_dir'
36156 xsi_shell='$xsi_shell'
36157 lt_shell_append='$lt_shell_append'
36158
36159 # See if we are running on zsh, and set the options which allow our
36160 # commands through without removal of \ escapes INIT.
36161 if test -n "\${ZSH_VERSION+set}" ; then
36162    setopt NO_GLOB_SUBST
36163 fi
36164
36165
36166     PACKAGE='$PACKAGE'
36167     VERSION='$VERSION'
36168     TIMESTAMP='$TIMESTAMP'
36169     RM='$RM'
36170     ofile='$ofile'
36171
36172
36173
36174
36175
36176 CAIRO_MAKEFILE___WIN32='$CAIRO_MAKEFILE___WIN32'
36177 CAIRO_MAKEFILE_cairo_AMAKE='$CAIRO_MAKEFILE_cairo_AMAKE'
36178 CAIRO_MAKEFILE_cairo_WIN32='$CAIRO_MAKEFILE_cairo_WIN32'
36179 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE'
36180 CAIRO_MAKEFILE_cairo_boilerplate_WIN32='$CAIRO_MAKEFILE_cairo_boilerplate_WIN32'
36181         CAIRO_FEATURES='$CAIRO_FEATURES'
36182         CAIRO_NO_FEATURES='$CAIRO_NO_FEATURES'
36183
36184         CAIRO_SUPPORTED_FEATURES='$CAIRO_SUPPORTED_FEATURES'
36185
36186 CAIRO_MAKEFILE_win32_features_h_WIN32='$CAIRO_MAKEFILE_win32_features_h_WIN32'
36187                 SED='$SED'
36188                 xlib_BASE='$xlib_BASE'
36189                 xlib_REQUIRES='$xlib_REQUIRES'
36190                 xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
36191                 xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
36192                 xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
36193
36194                 SED='$SED'
36195                 xlib_BASE='$xlib_BASE'
36196                 xlib_REQUIRES='$xlib_REQUIRES'
36197                 xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
36198                 xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
36199                 xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
36200
36201                 SED='$SED'
36202                 xlib_xrender_BASE='$xlib_xrender_BASE'
36203                 xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
36204                 xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
36205                 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
36206                 xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
36207
36208                 SED='$SED'
36209                 xlib_xrender_BASE='$xlib_xrender_BASE'
36210                 xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
36211                 xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
36212                 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
36213                 xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
36214
36215                 SED='$SED'
36216                 xcb_BASE='$xcb_BASE'
36217                 xcb_REQUIRES='$xcb_REQUIRES'
36218                 xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
36219                 xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
36220                 xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
36221
36222                 SED='$SED'
36223                 xcb_BASE='$xcb_BASE'
36224                 xcb_REQUIRES='$xcb_REQUIRES'
36225                 xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
36226                 xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
36227                 xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
36228
36229                 SED='$SED'
36230                 xlib_xcb_BASE='$xlib_xcb_BASE'
36231                 xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
36232                 xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
36233                 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
36234                 xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
36235
36236                 SED='$SED'
36237                 xlib_xcb_BASE='$xlib_xcb_BASE'
36238                 xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
36239                 xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
36240                 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
36241                 xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
36242
36243                 SED='$SED'
36244                 xcb_shm_BASE='$xcb_shm_BASE'
36245                 xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
36246                 xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
36247                 xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
36248                 xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
36249
36250                 SED='$SED'
36251                 xcb_shm_BASE='$xcb_shm_BASE'
36252                 xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
36253                 xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
36254                 xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
36255                 xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
36256
36257                 SED='$SED'
36258                 qt_BASE='$qt_BASE'
36259                 qt_REQUIRES='$qt_REQUIRES'
36260                 qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
36261                 qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
36262                 qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
36263
36264                 SED='$SED'
36265                 qt_BASE='$qt_BASE'
36266                 qt_REQUIRES='$qt_REQUIRES'
36267                 qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
36268                 qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
36269                 qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
36270
36271                 SED='$SED'
36272                 quartz_BASE='$quartz_BASE'
36273                 quartz_REQUIRES='$quartz_REQUIRES'
36274                 quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
36275                 quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
36276                 quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
36277
36278                 SED='$SED'
36279                 quartz_BASE='$quartz_BASE'
36280                 quartz_REQUIRES='$quartz_REQUIRES'
36281                 quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
36282                 quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
36283                 quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
36284
36285                 SED='$SED'
36286                 quartz_font_BASE='$quartz_font_BASE'
36287                 quartz_font_REQUIRES='$quartz_font_REQUIRES'
36288                 quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
36289                 quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
36290                 quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
36291
36292                 SED='$SED'
36293                 quartz_font_BASE='$quartz_font_BASE'
36294                 quartz_font_REQUIRES='$quartz_font_REQUIRES'
36295                 quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
36296                 quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
36297                 quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
36298
36299                 SED='$SED'
36300                 quartz_image_BASE='$quartz_image_BASE'
36301                 quartz_image_REQUIRES='$quartz_image_REQUIRES'
36302                 quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
36303                 quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
36304                 quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
36305
36306                 SED='$SED'
36307                 quartz_image_BASE='$quartz_image_BASE'
36308                 quartz_image_REQUIRES='$quartz_image_REQUIRES'
36309                 quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
36310                 quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
36311                 quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
36312
36313                 SED='$SED'
36314                 win32_BASE='$win32_BASE'
36315                 win32_REQUIRES='$win32_REQUIRES'
36316                 win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
36317                 win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
36318                 win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
36319
36320                 SED='$SED'
36321                 win32_BASE='$win32_BASE'
36322                 win32_REQUIRES='$win32_REQUIRES'
36323                 win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
36324                 win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
36325                 win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
36326
36327                 SED='$SED'
36328                 win32_font_BASE='$win32_font_BASE'
36329                 win32_font_REQUIRES='$win32_font_REQUIRES'
36330                 win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
36331                 win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
36332                 win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
36333
36334                 SED='$SED'
36335                 win32_font_BASE='$win32_font_BASE'
36336                 win32_font_REQUIRES='$win32_font_REQUIRES'
36337                 win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
36338                 win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
36339                 win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
36340
36341                 SED='$SED'
36342                 skia_BASE='$skia_BASE'
36343                 skia_REQUIRES='$skia_REQUIRES'
36344                 skia_NONPKGCONFIG_LIBS='$skia_NONPKGCONFIG_LIBS'
36345                 skia_NONPKGCONFIG_EXTRA_LIBS='$skia_NONPKGCONFIG_EXTRA_LIBS'
36346                 skia_NONPKGCONFIG_CFLAGS='$skia_NONPKGCONFIG_CFLAGS'
36347
36348                 SED='$SED'
36349                 skia_BASE='$skia_BASE'
36350                 skia_REQUIRES='$skia_REQUIRES'
36351                 skia_NONPKGCONFIG_LIBS='$skia_NONPKGCONFIG_LIBS'
36352                 skia_NONPKGCONFIG_EXTRA_LIBS='$skia_NONPKGCONFIG_EXTRA_LIBS'
36353                 skia_NONPKGCONFIG_CFLAGS='$skia_NONPKGCONFIG_CFLAGS'
36354
36355                 SED='$SED'
36356                 os2_BASE='$os2_BASE'
36357                 os2_REQUIRES='$os2_REQUIRES'
36358                 os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
36359                 os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
36360                 os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
36361
36362                 SED='$SED'
36363                 os2_BASE='$os2_BASE'
36364                 os2_REQUIRES='$os2_REQUIRES'
36365                 os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
36366                 os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
36367                 os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
36368
36369                 SED='$SED'
36370                 beos_BASE='$beos_BASE'
36371                 beos_REQUIRES='$beos_REQUIRES'
36372                 beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
36373                 beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
36374                 beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
36375
36376                 SED='$SED'
36377                 beos_BASE='$beos_BASE'
36378                 beos_REQUIRES='$beos_REQUIRES'
36379                 beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
36380                 beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
36381                 beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
36382
36383                 SED='$SED'
36384                 drm_BASE='$drm_BASE'
36385                 drm_REQUIRES='$drm_REQUIRES'
36386                 drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
36387                 drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
36388                 drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
36389
36390                 SED='$SED'
36391                 drm_BASE='$drm_BASE'
36392                 drm_REQUIRES='$drm_REQUIRES'
36393                 drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
36394                 drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
36395                 drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
36396
36397                 SED='$SED'
36398                 gallium_BASE='$gallium_BASE'
36399                 gallium_REQUIRES='$gallium_REQUIRES'
36400                 gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
36401                 gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
36402                 gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
36403
36404                 SED='$SED'
36405                 gallium_BASE='$gallium_BASE'
36406                 gallium_REQUIRES='$gallium_REQUIRES'
36407                 gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
36408                 gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
36409                 gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
36410
36411                 SED='$SED'
36412                 png_BASE='$png_BASE'
36413                 png_REQUIRES='$png_REQUIRES'
36414                 png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
36415                 png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
36416                 png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
36417
36418                 SED='$SED'
36419                 png_BASE='$png_BASE'
36420                 png_REQUIRES='$png_REQUIRES'
36421                 png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
36422                 png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
36423                 png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
36424
36425                 SED='$SED'
36426                 gl_BASE='$gl_BASE'
36427                 gl_REQUIRES='$gl_REQUIRES'
36428                 gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
36429                 gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
36430                 gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
36431
36432                 SED='$SED'
36433                 gl_BASE='$gl_BASE'
36434                 gl_REQUIRES='$gl_REQUIRES'
36435                 gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
36436                 gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
36437                 gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
36438
36439                 SED='$SED'
36440                 glesv2_BASE='$glesv2_BASE'
36441                 glesv2_REQUIRES='$glesv2_REQUIRES'
36442                 glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
36443                 glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
36444                 glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
36445
36446                 SED='$SED'
36447                 glesv2_BASE='$glesv2_BASE'
36448                 glesv2_REQUIRES='$glesv2_REQUIRES'
36449                 glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
36450                 glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
36451                 glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
36452
36453                 SED='$SED'
36454                 cogl_BASE='$cogl_BASE'
36455                 cogl_REQUIRES='$cogl_REQUIRES'
36456                 cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
36457                 cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
36458                 cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
36459
36460                 SED='$SED'
36461                 cogl_BASE='$cogl_BASE'
36462                 cogl_REQUIRES='$cogl_REQUIRES'
36463                 cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
36464                 cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
36465                 cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
36466
36467                 SED='$SED'
36468                 directfb_BASE='$directfb_BASE'
36469                 directfb_REQUIRES='$directfb_REQUIRES'
36470                 directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
36471                 directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
36472                 directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
36473
36474                 SED='$SED'
36475                 directfb_BASE='$directfb_BASE'
36476                 directfb_REQUIRES='$directfb_REQUIRES'
36477                 directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
36478                 directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
36479                 directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
36480
36481                 SED='$SED'
36482                 vg_BASE='$vg_BASE'
36483                 vg_REQUIRES='$vg_REQUIRES'
36484                 vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
36485                 vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
36486                 vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
36487
36488                 SED='$SED'
36489                 vg_BASE='$vg_BASE'
36490                 vg_REQUIRES='$vg_REQUIRES'
36491                 vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
36492                 vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
36493                 vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
36494
36495                 SED='$SED'
36496                 egl_BASE='$egl_BASE'
36497                 egl_REQUIRES='$egl_REQUIRES'
36498                 egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
36499                 egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
36500                 egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
36501
36502                 SED='$SED'
36503                 egl_BASE='$egl_BASE'
36504                 egl_REQUIRES='$egl_REQUIRES'
36505                 egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
36506                 egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
36507                 egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
36508
36509                 SED='$SED'
36510                 glx_BASE='$glx_BASE'
36511                 glx_REQUIRES='$glx_REQUIRES'
36512                 glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
36513                 glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
36514                 glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
36515
36516                 SED='$SED'
36517                 glx_BASE='$glx_BASE'
36518                 glx_REQUIRES='$glx_REQUIRES'
36519                 glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
36520                 glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
36521                 glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
36522
36523                 SED='$SED'
36524                 wgl_BASE='$wgl_BASE'
36525                 wgl_REQUIRES='$wgl_REQUIRES'
36526                 wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
36527                 wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
36528                 wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
36529
36530                 SED='$SED'
36531                 wgl_BASE='$wgl_BASE'
36532                 wgl_REQUIRES='$wgl_REQUIRES'
36533                 wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
36534                 wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
36535                 wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
36536
36537                 SED='$SED'
36538                 script_BASE='$script_BASE'
36539                 script_REQUIRES='$script_REQUIRES'
36540                 script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
36541                 script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
36542                 script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
36543
36544                 SED='$SED'
36545                 script_BASE='$script_BASE'
36546                 script_REQUIRES='$script_REQUIRES'
36547                 script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
36548                 script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
36549                 script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
36550
36551                 SED='$SED'
36552                 ft_BASE='$ft_BASE'
36553                 ft_REQUIRES='$ft_REQUIRES'
36554                 ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
36555                 ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
36556                 ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
36557
36558                 SED='$SED'
36559                 ft_BASE='$ft_BASE'
36560                 ft_REQUIRES='$ft_REQUIRES'
36561                 ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
36562                 ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
36563                 ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
36564
36565                 SED='$SED'
36566                 fc_BASE='$fc_BASE'
36567                 fc_REQUIRES='$fc_REQUIRES'
36568                 fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
36569                 fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
36570                 fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
36571
36572                 SED='$SED'
36573                 fc_BASE='$fc_BASE'
36574                 fc_REQUIRES='$fc_REQUIRES'
36575                 fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
36576                 fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
36577                 fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
36578
36579                 SED='$SED'
36580                 ps_BASE='$ps_BASE'
36581                 ps_REQUIRES='$ps_REQUIRES'
36582                 ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
36583                 ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
36584                 ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
36585
36586                 SED='$SED'
36587                 ps_BASE='$ps_BASE'
36588                 ps_REQUIRES='$ps_REQUIRES'
36589                 ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
36590                 ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
36591                 ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
36592
36593                 SED='$SED'
36594                 pdf_BASE='$pdf_BASE'
36595                 pdf_REQUIRES='$pdf_REQUIRES'
36596                 pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
36597                 pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
36598                 pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
36599
36600                 SED='$SED'
36601                 pdf_BASE='$pdf_BASE'
36602                 pdf_REQUIRES='$pdf_REQUIRES'
36603                 pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
36604                 pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
36605                 pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
36606
36607                 SED='$SED'
36608                 svg_BASE='$svg_BASE'
36609                 svg_REQUIRES='$svg_REQUIRES'
36610                 svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
36611                 svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
36612                 svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
36613
36614                 SED='$SED'
36615                 svg_BASE='$svg_BASE'
36616                 svg_REQUIRES='$svg_REQUIRES'
36617                 svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
36618                 svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
36619                 svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
36620
36621                 SED='$SED'
36622                 tee_BASE='$tee_BASE'
36623                 tee_REQUIRES='$tee_REQUIRES'
36624                 tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
36625                 tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
36626                 tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
36627
36628                 SED='$SED'
36629                 tee_BASE='$tee_BASE'
36630                 tee_REQUIRES='$tee_REQUIRES'
36631                 tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
36632                 tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
36633                 tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
36634
36635                 SED='$SED'
36636                 xml_BASE='$xml_BASE'
36637                 xml_REQUIRES='$xml_REQUIRES'
36638                 xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
36639                 xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
36640                 xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
36641
36642                 SED='$SED'
36643                 xml_BASE='$xml_BASE'
36644                 xml_REQUIRES='$xml_REQUIRES'
36645                 xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
36646                 xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
36647                 xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
36648
36649                 SED='$SED'
36650                 gobject_BASE='$gobject_BASE'
36651                 gobject_REQUIRES='$gobject_REQUIRES'
36652                 gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
36653                 gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
36654                 gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
36655
36656                 SED='$SED'
36657                 gobject_BASE='$gobject_BASE'
36658                 gobject_REQUIRES='$gobject_REQUIRES'
36659                 gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
36660                 gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
36661                 gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
36662
36663
36664 _ACEOF
36665
36666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36667
36668 # Handling of arguments.
36669 for ac_config_target in $ac_config_targets
36670 do
36671   case $ac_config_target in
36672     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36673     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36674     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36675     "$srcdir/build/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features" ;;
36676     "$srcdir/src/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.am.features" ;;
36677     "$srcdir/src/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.win32.features" ;;
36678     "$srcdir/boilerplate/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.am.features" ;;
36679     "$srcdir/boilerplate/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.win32.features" ;;
36680     "src/cairo.pc") CONFIG_FILES="$CONFIG_FILES src/cairo.pc" ;;
36681     "cairo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-uninstalled.pc:src/cairo-uninstalled.pc.in" ;;
36682     "src/cairo-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-features.h" ;;
36683     "src/cairo-supported-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-supported-features.h" ;;
36684     "$srcdir/build/Makefile.win32.features-h") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features-h" ;;
36685     "src/cairo-xlib.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib.pc:src/cairo-features.pc.in" ;;
36686     "cairo-xlib-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36687     "src/cairo-xlib-xrender.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xrender.pc:src/cairo-features.pc.in" ;;
36688     "cairo-xlib-xrender-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36689     "src/cairo-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb.pc:src/cairo-features.pc.in" ;;
36690     "cairo-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36691     "src/cairo-xlib-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xcb.pc:src/cairo-features.pc.in" ;;
36692     "cairo-xlib-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36693     "src/cairo-xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb-shm.pc:src/cairo-features.pc.in" ;;
36694     "cairo-xcb-shm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36695     "src/cairo-qt.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-qt.pc:src/cairo-features.pc.in" ;;
36696     "cairo-qt-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36697     "src/cairo-quartz.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz.pc:src/cairo-features.pc.in" ;;
36698     "cairo-quartz-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36699     "src/cairo-quartz-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-font.pc:src/cairo-features.pc.in" ;;
36700     "cairo-quartz-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36701     "src/cairo-quartz-image.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-image.pc:src/cairo-features.pc.in" ;;
36702     "cairo-quartz-image-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36703     "src/cairo-win32.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32.pc:src/cairo-features.pc.in" ;;
36704     "cairo-win32-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36705     "src/cairo-win32-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32-font.pc:src/cairo-features.pc.in" ;;
36706     "cairo-win32-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36707     "src/cairo-skia.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-skia.pc:src/cairo-features.pc.in" ;;
36708     "cairo-skia-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-skia-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36709     "src/cairo-os2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-os2.pc:src/cairo-features.pc.in" ;;
36710     "cairo-os2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36711     "src/cairo-beos.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-beos.pc:src/cairo-features.pc.in" ;;
36712     "cairo-beos-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36713     "src/cairo-drm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-drm.pc:src/cairo-features.pc.in" ;;
36714     "cairo-drm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36715     "src/cairo-gallium.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gallium.pc:src/cairo-features.pc.in" ;;
36716     "cairo-gallium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36717     "src/cairo-png.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-png.pc:src/cairo-features.pc.in" ;;
36718     "cairo-png-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36719     "src/cairo-gl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gl.pc:src/cairo-features.pc.in" ;;
36720     "cairo-gl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36721     "src/cairo-glesv2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glesv2.pc:src/cairo-features.pc.in" ;;
36722     "cairo-glesv2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36723     "src/cairo-cogl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-cogl.pc:src/cairo-features.pc.in" ;;
36724     "cairo-cogl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36725     "src/cairo-directfb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-directfb.pc:src/cairo-features.pc.in" ;;
36726     "cairo-directfb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36727     "src/cairo-vg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-vg.pc:src/cairo-features.pc.in" ;;
36728     "cairo-vg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36729     "src/cairo-egl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-egl.pc:src/cairo-features.pc.in" ;;
36730     "cairo-egl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36731     "src/cairo-glx.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glx.pc:src/cairo-features.pc.in" ;;
36732     "cairo-glx-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36733     "src/cairo-wgl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-wgl.pc:src/cairo-features.pc.in" ;;
36734     "cairo-wgl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36735     "src/cairo-script.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-script.pc:src/cairo-features.pc.in" ;;
36736     "cairo-script-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36737     "src/cairo-ft.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ft.pc:src/cairo-features.pc.in" ;;
36738     "cairo-ft-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36739     "src/cairo-fc.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-fc.pc:src/cairo-features.pc.in" ;;
36740     "cairo-fc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36741     "src/cairo-ps.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ps.pc:src/cairo-features.pc.in" ;;
36742     "cairo-ps-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36743     "src/cairo-pdf.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-pdf.pc:src/cairo-features.pc.in" ;;
36744     "cairo-pdf-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36745     "src/cairo-svg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-svg.pc:src/cairo-features.pc.in" ;;
36746     "cairo-svg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36747     "src/cairo-tee.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-tee.pc:src/cairo-features.pc.in" ;;
36748     "cairo-tee-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36749     "src/cairo-xml.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xml.pc:src/cairo-features.pc.in" ;;
36750     "cairo-xml-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36751     "src/cairo-gobject.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gobject.pc:src/cairo-features.pc.in" ;;
36752     "cairo-gobject-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
36753     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36754     "boilerplate/Makefile") CONFIG_FILES="$CONFIG_FILES boilerplate/Makefile" ;;
36755     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36756     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
36757     "test/pdiff/Makefile") CONFIG_FILES="$CONFIG_FILES test/pdiff/Makefile" ;;
36758     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
36759     "perf/micro/Makefile") CONFIG_FILES="$CONFIG_FILES perf/micro/Makefile" ;;
36760     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
36761     "util/cairo-fdr/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-fdr/Makefile" ;;
36762     "util/cairo-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-gobject/Makefile" ;;
36763     "util/cairo-missing/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-missing/Makefile" ;;
36764     "util/cairo-script/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/Makefile" ;;
36765     "util/cairo-script/examples/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/examples/Makefile" ;;
36766     "util/cairo-sphinx/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-sphinx/Makefile" ;;
36767     "util/cairo-trace/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/Makefile" ;;
36768     "util/cairo-trace/cairo-trace") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/cairo-trace" ;;
36769     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36770     "doc/public/Makefile") CONFIG_FILES="$CONFIG_FILES doc/public/Makefile" ;;
36771
36772   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36773   esac
36774 done
36775
36776
36777 # If the user did not use the arguments to specify the items to instantiate,
36778 # then the envvar interface is used.  Set only those that are not.
36779 # We use the long form for the default assignment because of an extremely
36780 # bizarre bug on SunOS 4.1.3.
36781 if $ac_need_defaults; then
36782   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36783   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36784   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36785 fi
36786
36787 # Have a temporary directory for convenience.  Make it in the build tree
36788 # simply because there is no reason against having it here, and in addition,
36789 # creating and moving files from /tmp can sometimes cause problems.
36790 # Hook for its removal unless debugging.
36791 # Note that there is a small window in which the directory will not be cleaned:
36792 # after its creation but before its name has been assigned to `$tmp'.
36793 $debug ||
36794 {
36795   tmp= ac_tmp=
36796   trap 'exit_status=$?
36797   : "${ac_tmp:=$tmp}"
36798   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36799 ' 0
36800   trap 'as_fn_exit 1' 1 2 13 15
36801 }
36802 # Create a (secure) tmp directory for tmp files.
36803
36804 {
36805   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36806   test -d "$tmp"
36807 }  ||
36808 {
36809   tmp=./conf$$-$RANDOM
36810   (umask 077 && mkdir "$tmp")
36811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36812 ac_tmp=$tmp
36813
36814 # Set up the scripts for CONFIG_FILES section.
36815 # No need to generate them if there are no CONFIG_FILES.
36816 # This happens for instance with `./config.status config.h'.
36817 if test -n "$CONFIG_FILES"; then
36818
36819
36820 ac_cr=`echo X | tr X '\015'`
36821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36822 # But we know of no other shell where ac_cr would be empty at this
36823 # point, so we can use a bashism as a fallback.
36824 if test "x$ac_cr" = x; then
36825   eval ac_cr=\$\'\\r\'
36826 fi
36827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36829   ac_cs_awk_cr='\\r'
36830 else
36831   ac_cs_awk_cr=$ac_cr
36832 fi
36833
36834 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36835 _ACEOF
36836
36837
36838 {
36839   echo "cat >conf$$subs.awk <<_ACEOF" &&
36840   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36841   echo "_ACEOF"
36842 } >conf$$subs.sh ||
36843   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36845 ac_delim='%!_!# '
36846 for ac_last_try in false false false false false :; do
36847   . ./conf$$subs.sh ||
36848     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36849
36850   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36851   if test $ac_delim_n = $ac_delim_num; then
36852     break
36853   elif $ac_last_try; then
36854     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36855   else
36856     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36857   fi
36858 done
36859 rm -f conf$$subs.sh
36860
36861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36862 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36863 _ACEOF
36864 sed -n '
36865 h
36866 s/^/S["/; s/!.*/"]=/
36867 p
36868 g
36869 s/^[^!]*!//
36870 :repl
36871 t repl
36872 s/'"$ac_delim"'$//
36873 t delim
36874 :nl
36875 h
36876 s/\(.\{148\}\)..*/\1/
36877 t more1
36878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36879 p
36880 n
36881 b repl
36882 :more1
36883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36884 p
36885 g
36886 s/.\{148\}//
36887 t nl
36888 :delim
36889 h
36890 s/\(.\{148\}\)..*/\1/
36891 t more2
36892 s/["\\]/\\&/g; s/^/"/; s/$/"/
36893 p
36894 b
36895 :more2
36896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36897 p
36898 g
36899 s/.\{148\}//
36900 t delim
36901 ' <conf$$subs.awk | sed '
36902 /^[^""]/{
36903   N
36904   s/\n//
36905 }
36906 ' >>$CONFIG_STATUS || ac_write_fail=1
36907 rm -f conf$$subs.awk
36908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36909 _ACAWK
36910 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36911   for (key in S) S_is_set[key] = 1
36912   FS = "\a"
36913
36914 }
36915 {
36916   line = $ 0
36917   nfields = split(line, field, "@")
36918   substed = 0
36919   len = length(field[1])
36920   for (i = 2; i < nfields; i++) {
36921     key = field[i]
36922     keylen = length(key)
36923     if (S_is_set[key]) {
36924       value = S[key]
36925       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36926       len += length(value) + length(field[++i])
36927       substed = 1
36928     } else
36929       len += 1 + keylen
36930   }
36931
36932   print line
36933 }
36934
36935 _ACAWK
36936 _ACEOF
36937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36939   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36940 else
36941   cat
36942 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36943   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36944 _ACEOF
36945
36946 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36947 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36948 # trailing colons and then remove the whole line if VPATH becomes empty
36949 # (actually we leave an empty line to preserve line numbers).
36950 if test "x$srcdir" = x.; then
36951   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
36952 h
36953 s///
36954 s/^/:/
36955 s/[      ]*$/:/
36956 s/:\$(srcdir):/:/g
36957 s/:\${srcdir}:/:/g
36958 s/:@srcdir@:/:/g
36959 s/^:*//
36960 s/:*$//
36961 x
36962 s/\(=[   ]*\).*/\1/
36963 G
36964 s/\n//
36965 s/^[^=]*=[       ]*$//
36966 }'
36967 fi
36968
36969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36970 fi # test -n "$CONFIG_FILES"
36971
36972 # Set up the scripts for CONFIG_HEADERS section.
36973 # No need to generate them if there are no CONFIG_HEADERS.
36974 # This happens for instance with `./config.status Makefile'.
36975 if test -n "$CONFIG_HEADERS"; then
36976 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36977 BEGIN {
36978 _ACEOF
36979
36980 # Transform confdefs.h into an awk script `defines.awk', embedded as
36981 # here-document in config.status, that substitutes the proper values into
36982 # config.h.in to produce config.h.
36983
36984 # Create a delimiter string that does not exist in confdefs.h, to ease
36985 # handling of long lines.
36986 ac_delim='%!_!# '
36987 for ac_last_try in false false :; do
36988   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36989   if test -z "$ac_tt"; then
36990     break
36991   elif $ac_last_try; then
36992     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36993   else
36994     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36995   fi
36996 done
36997
36998 # For the awk script, D is an array of macro values keyed by name,
36999 # likewise P contains macro parameters if any.  Preserve backslash
37000 # newline sequences.
37001
37002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37003 sed -n '
37004 s/.\{148\}/&'"$ac_delim"'/g
37005 t rset
37006 :rset
37007 s/^[     ]*#[    ]*define[       ][      ]*/ /
37008 t def
37009 d
37010 :def
37011 s/\\$//
37012 t bsnl
37013 s/["\\]/\\&/g
37014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
37015 D["\1"]=" \3"/p
37016 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
37017 d
37018 :bsnl
37019 s/["\\]/\\&/g
37020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
37021 D["\1"]=" \3\\\\\\n"\\/p
37022 t cont
37023 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37024 t cont
37025 d
37026 :cont
37027 n
37028 s/.\{148\}/&'"$ac_delim"'/g
37029 t clear
37030 :clear
37031 s/\\$//
37032 t bsnlc
37033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
37034 d
37035 :bsnlc
37036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37037 b cont
37038 ' <confdefs.h | sed '
37039 s/'"$ac_delim"'/"\\\
37040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37041
37042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37043   for (key in D) D_is_set[key] = 1
37044   FS = "\a"
37045 }
37046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37047   line = \$ 0
37048   split(line, arg, " ")
37049   if (arg[1] == "#") {
37050     defundef = arg[2]
37051     mac1 = arg[3]
37052   } else {
37053     defundef = substr(arg[1], 2)
37054     mac1 = arg[2]
37055   }
37056   split(mac1, mac2, "(") #)
37057   macro = mac2[1]
37058   prefix = substr(line, 1, index(line, defundef) - 1)
37059   if (D_is_set[macro]) {
37060     # Preserve the white space surrounding the "#".
37061     print prefix "define", macro P[macro] D[macro]
37062     next
37063   } else {
37064     # Replace #undef with comments.  This is necessary, for example,
37065     # in the case of _POSIX_SOURCE, which is predefined and required
37066     # on some systems where configure will not decide to define it.
37067     if (defundef == "undef") {
37068       print "/*", prefix defundef, macro, "*/"
37069       next
37070     }
37071   }
37072 }
37073 { print }
37074 _ACAWK
37075 _ACEOF
37076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37077   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37078 fi # test -n "$CONFIG_HEADERS"
37079
37080
37081 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37082 shift
37083 for ac_tag
37084 do
37085   case $ac_tag in
37086   :[FHLC]) ac_mode=$ac_tag; continue;;
37087   esac
37088   case $ac_mode$ac_tag in
37089   :[FHL]*:*);;
37090   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37091   :[FH]-) ac_tag=-:-;;
37092   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37093   esac
37094   ac_save_IFS=$IFS
37095   IFS=:
37096   set x $ac_tag
37097   IFS=$ac_save_IFS
37098   shift
37099   ac_file=$1
37100   shift
37101
37102   case $ac_mode in
37103   :L) ac_source=$1;;
37104   :[FH])
37105     ac_file_inputs=
37106     for ac_f
37107     do
37108       case $ac_f in
37109       -) ac_f="$ac_tmp/stdin";;
37110       *) # Look for the file first in the build tree, then in the source tree
37111          # (if the path is not absolute).  The absolute path cannot be DOS-style,
37112          # because $ac_f cannot contain `:'.
37113          test -f "$ac_f" ||
37114            case $ac_f in
37115            [\\/$]*) false;;
37116            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37117            esac ||
37118            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37119       esac
37120       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37121       as_fn_append ac_file_inputs " '$ac_f'"
37122     done
37123
37124     # Let's still pretend it is `configure' which instantiates (i.e., don't
37125     # use $as_me), people would be surprised to read:
37126     #    /* config.h.  Generated by config.status.  */
37127     configure_input='Generated from '`
37128           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37129         `' by configure.'
37130     if test x"$ac_file" != x-; then
37131       configure_input="$ac_file.  $configure_input"
37132       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37133 $as_echo "$as_me: creating $ac_file" >&6;}
37134     fi
37135     # Neutralize special characters interpreted by sed in replacement strings.
37136     case $configure_input in #(
37137     *\&* | *\|* | *\\* )
37138        ac_sed_conf_input=`$as_echo "$configure_input" |
37139        sed 's/[\\\\&|]/\\\\&/g'`;; #(
37140     *) ac_sed_conf_input=$configure_input;;
37141     esac
37142
37143     case $ac_tag in
37144     *:-:* | *:-) cat >"$ac_tmp/stdin" \
37145       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37146     esac
37147     ;;
37148   esac
37149
37150   ac_dir=`$as_dirname -- "$ac_file" ||
37151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37152          X"$ac_file" : 'X\(//\)[^/]' \| \
37153          X"$ac_file" : 'X\(//\)$' \| \
37154          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37155 $as_echo X"$ac_file" |
37156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37157             s//\1/
37158             q
37159           }
37160           /^X\(\/\/\)[^/].*/{
37161             s//\1/
37162             q
37163           }
37164           /^X\(\/\/\)$/{
37165             s//\1/
37166             q
37167           }
37168           /^X\(\/\).*/{
37169             s//\1/
37170             q
37171           }
37172           s/.*/./; q'`
37173   as_dir="$ac_dir"; as_fn_mkdir_p
37174   ac_builddir=.
37175
37176 case "$ac_dir" in
37177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37178 *)
37179   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37180   # A ".." for each directory in $ac_dir_suffix.
37181   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37182   case $ac_top_builddir_sub in
37183   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37184   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37185   esac ;;
37186 esac
37187 ac_abs_top_builddir=$ac_pwd
37188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37189 # for backward compatibility:
37190 ac_top_builddir=$ac_top_build_prefix
37191
37192 case $srcdir in
37193   .)  # We are building in place.
37194     ac_srcdir=.
37195     ac_top_srcdir=$ac_top_builddir_sub
37196     ac_abs_top_srcdir=$ac_pwd ;;
37197   [\\/]* | ?:[\\/]* )  # Absolute name.
37198     ac_srcdir=$srcdir$ac_dir_suffix;
37199     ac_top_srcdir=$srcdir
37200     ac_abs_top_srcdir=$srcdir ;;
37201   *) # Relative name.
37202     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37203     ac_top_srcdir=$ac_top_build_prefix$srcdir
37204     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37205 esac
37206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37207
37208
37209   case $ac_mode in
37210   :F)
37211   #
37212   # CONFIG_FILE
37213   #
37214
37215   case $INSTALL in
37216   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37217   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37218   esac
37219   ac_MKDIR_P=$MKDIR_P
37220   case $MKDIR_P in
37221   [\\/$]* | ?:[\\/]* ) ;;
37222   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37223   esac
37224 _ACEOF
37225
37226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37227 # If the template does not know about datarootdir, expand it.
37228 # FIXME: This hack should be removed a few years after 2.60.
37229 ac_datarootdir_hack=; ac_datarootdir_seen=
37230 ac_sed_dataroot='
37231 /datarootdir/ {
37232   p
37233   q
37234 }
37235 /@datadir@/p
37236 /@docdir@/p
37237 /@infodir@/p
37238 /@localedir@/p
37239 /@mandir@/p'
37240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37241 *datarootdir*) ac_datarootdir_seen=yes;;
37242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37245 _ACEOF
37246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37247   ac_datarootdir_hack='
37248   s&@datadir@&$datadir&g
37249   s&@docdir@&$docdir&g
37250   s&@infodir@&$infodir&g
37251   s&@localedir@&$localedir&g
37252   s&@mandir@&$mandir&g
37253   s&\\\${datarootdir}&$datarootdir&g' ;;
37254 esac
37255 _ACEOF
37256
37257 # Neutralize VPATH when `$srcdir' = `.'.
37258 # Shell code in configure.ac might set extrasub.
37259 # FIXME: do we really want to maintain this feature?
37260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37261 ac_sed_extra="$ac_vpsub
37262 $extrasub
37263 _ACEOF
37264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37265 :t
37266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37267 s|@configure_input@|$ac_sed_conf_input|;t t
37268 s&@top_builddir@&$ac_top_builddir_sub&;t t
37269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
37270 s&@srcdir@&$ac_srcdir&;t t
37271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
37272 s&@top_srcdir@&$ac_top_srcdir&;t t
37273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37274 s&@builddir@&$ac_builddir&;t t
37275 s&@abs_builddir@&$ac_abs_builddir&;t t
37276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37277 s&@INSTALL@&$ac_INSTALL&;t t
37278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
37279 $ac_datarootdir_hack
37280 "
37281 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37282   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37283
37284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37285   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37286   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
37287       "$ac_tmp/out"`; test -z "$ac_out"; } &&
37288   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37289 which seems to be undefined.  Please make sure it is defined" >&5
37290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37291 which seems to be undefined.  Please make sure it is defined" >&2;}
37292
37293   rm -f "$ac_tmp/stdin"
37294   case $ac_file in
37295   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37296   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37297   esac \
37298   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37299  ;;
37300   :H)
37301   #
37302   # CONFIG_HEADER
37303   #
37304   if test x"$ac_file" != x-; then
37305     {
37306       $as_echo "/* $configure_input  */" \
37307       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37308     } >"$ac_tmp/config.h" \
37309       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37310     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37311       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
37313     else
37314       rm -f "$ac_file"
37315       mv "$ac_tmp/config.h" "$ac_file" \
37316         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37317     fi
37318   else
37319     $as_echo "/* $configure_input  */" \
37320       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37321       || as_fn_error $? "could not create -" "$LINENO" 5
37322   fi
37323 # Compute "$ac_file"'s index in $config_headers.
37324 _am_arg="$ac_file"
37325 _am_stamp_count=1
37326 for _am_header in $config_headers :; do
37327   case $_am_header in
37328     $_am_arg | $_am_arg:* )
37329       break ;;
37330     * )
37331       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37332   esac
37333 done
37334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37336          X"$_am_arg" : 'X\(//\)[^/]' \| \
37337          X"$_am_arg" : 'X\(//\)$' \| \
37338          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37339 $as_echo X"$_am_arg" |
37340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37341             s//\1/
37342             q
37343           }
37344           /^X\(\/\/\)[^/].*/{
37345             s//\1/
37346             q
37347           }
37348           /^X\(\/\/\)$/{
37349             s//\1/
37350             q
37351           }
37352           /^X\(\/\).*/{
37353             s//\1/
37354             q
37355           }
37356           s/.*/./; q'`/stamp-h$_am_stamp_count
37357  ;;
37358
37359   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37360 $as_echo "$as_me: executing $ac_file commands" >&6;}
37361  ;;
37362   esac
37363
37364
37365   case $ac_file$ac_mode in
37366     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37367   # Autoconf 2.62 quotes --file arguments for eval, but not when files
37368   # are listed without --file.  Let's play safe and only enable the eval
37369   # if we detect the quoting.
37370   case $CONFIG_FILES in
37371   *\'*) eval set x "$CONFIG_FILES" ;;
37372   *)   set x $CONFIG_FILES ;;
37373   esac
37374   shift
37375   for mf
37376   do
37377     # Strip MF so we end up with the name of the file.
37378     mf=`echo "$mf" | sed -e 's/:.*$//'`
37379     # Check whether this is an Automake generated Makefile or not.
37380     # We used to match only the files named `Makefile.in', but
37381     # some people rename them; so instead we look at the file content.
37382     # Grep'ing the first line is not enough: some people post-process
37383     # each Makefile.in and add a new line on top of each file to say so.
37384     # Grep'ing the whole file is not good either: AIX grep has a line
37385     # limit of 2048, but all sed's we know have understand at least 4000.
37386     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37387       dirpart=`$as_dirname -- "$mf" ||
37388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37389          X"$mf" : 'X\(//\)[^/]' \| \
37390          X"$mf" : 'X\(//\)$' \| \
37391          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37392 $as_echo X"$mf" |
37393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37394             s//\1/
37395             q
37396           }
37397           /^X\(\/\/\)[^/].*/{
37398             s//\1/
37399             q
37400           }
37401           /^X\(\/\/\)$/{
37402             s//\1/
37403             q
37404           }
37405           /^X\(\/\).*/{
37406             s//\1/
37407             q
37408           }
37409           s/.*/./; q'`
37410     else
37411       continue
37412     fi
37413     # Extract the definition of DEPDIR, am__include, and am__quote
37414     # from the Makefile without running `make'.
37415     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37416     test -z "$DEPDIR" && continue
37417     am__include=`sed -n 's/^am__include = //p' < "$mf"`
37418     test -z "am__include" && continue
37419     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37420     # When using ansi2knr, U may be empty or an underscore; expand it
37421     U=`sed -n 's/^U = //p' < "$mf"`
37422     # Find all dependency output files, they are included files with
37423     # $(DEPDIR) in their names.  We invoke sed twice because it is the
37424     # simplest approach to changing $(DEPDIR) to its actual value in the
37425     # expansion.
37426     for file in `sed -n "
37427       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37428          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37429       # Make sure the directory exists.
37430       test -f "$dirpart/$file" && continue
37431       fdir=`$as_dirname -- "$file" ||
37432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37433          X"$file" : 'X\(//\)[^/]' \| \
37434          X"$file" : 'X\(//\)$' \| \
37435          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37436 $as_echo X"$file" |
37437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37438             s//\1/
37439             q
37440           }
37441           /^X\(\/\/\)[^/].*/{
37442             s//\1/
37443             q
37444           }
37445           /^X\(\/\/\)$/{
37446             s//\1/
37447             q
37448           }
37449           /^X\(\/\).*/{
37450             s//\1/
37451             q
37452           }
37453           s/.*/./; q'`
37454       as_dir=$dirpart/$fdir; as_fn_mkdir_p
37455       # echo "creating $dirpart/$file"
37456       echo '# dummy' > "$dirpart/$file"
37457     done
37458   done
37459 }
37460  ;;
37461     "libtool":C)
37462
37463     # See if we are running on zsh, and set the options which allow our
37464     # commands through without removal of \ escapes.
37465     if test -n "${ZSH_VERSION+set}" ; then
37466       setopt NO_GLOB_SUBST
37467     fi
37468
37469     cfgfile="${ofile}T"
37470     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37471     $RM "$cfgfile"
37472
37473     cat <<_LT_EOF >> "$cfgfile"
37474 #! $SHELL
37475
37476 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37477 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37480 #
37481 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37482 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37483 #                 Foundation, Inc.
37484 #   Written by Gordon Matzigkeit, 1996
37485 #
37486 #   This file is part of GNU Libtool.
37487 #
37488 # GNU Libtool is free software; you can redistribute it and/or
37489 # modify it under the terms of the GNU General Public License as
37490 # published by the Free Software Foundation; either version 2 of
37491 # the License, or (at your option) any later version.
37492 #
37493 # As a special exception to the GNU General Public License,
37494 # if you distribute this file as part of a program or library that
37495 # is built using GNU Libtool, you may include this file under the
37496 # same distribution terms that you use for the rest of that program.
37497 #
37498 # GNU Libtool is distributed in the hope that it will be useful,
37499 # but WITHOUT ANY WARRANTY; without even the implied warranty of
37500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
37501 # GNU General Public License for more details.
37502 #
37503 # You should have received a copy of the GNU General Public License
37504 # along with GNU Libtool; see the file COPYING.  If not, a copy
37505 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37506 # obtained by writing to the Free Software Foundation, Inc.,
37507 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37508
37509
37510 # The names of the tagged configurations supported by this script.
37511 available_tags="CXX "
37512
37513 # ### BEGIN LIBTOOL CONFIG
37514
37515 # Which release of libtool.m4 was used?
37516 macro_version=$macro_version
37517 macro_revision=$macro_revision
37518
37519 # Assembler program.
37520 AS=$lt_AS
37521
37522 # DLL creation program.
37523 DLLTOOL=$lt_DLLTOOL
37524
37525 # Object dumper program.
37526 OBJDUMP=$lt_OBJDUMP
37527
37528 # Whether or not to build shared libraries.
37529 build_libtool_libs=$enable_shared
37530
37531 # Whether or not to build static libraries.
37532 build_old_libs=$enable_static
37533
37534 # What type of objects to build.
37535 pic_mode=$pic_mode
37536
37537 # Whether or not to optimize for fast installation.
37538 fast_install=$enable_fast_install
37539
37540 # Shell to use when invoking shell scripts.
37541 SHELL=$lt_SHELL
37542
37543 # An echo program that protects backslashes.
37544 ECHO=$lt_ECHO
37545
37546 # The PATH separator for the build system.
37547 PATH_SEPARATOR=$lt_PATH_SEPARATOR
37548
37549 # The host system.
37550 host_alias=$host_alias
37551 host=$host
37552 host_os=$host_os
37553
37554 # The build system.
37555 build_alias=$build_alias
37556 build=$build
37557 build_os=$build_os
37558
37559 # A sed program that does not truncate output.
37560 SED=$lt_SED
37561
37562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37563 Xsed="\$SED -e 1s/^X//"
37564
37565 # A grep program that handles long lines.
37566 GREP=$lt_GREP
37567
37568 # An ERE matcher.
37569 EGREP=$lt_EGREP
37570
37571 # A literal string matcher.
37572 FGREP=$lt_FGREP
37573
37574 # A BSD- or MS-compatible name lister.
37575 NM=$lt_NM
37576
37577 # Whether we need soft or hard links.
37578 LN_S=$lt_LN_S
37579
37580 # What is the maximum length of a command?
37581 max_cmd_len=$max_cmd_len
37582
37583 # Object file suffix (normally "o").
37584 objext=$ac_objext
37585
37586 # Executable file suffix (normally "").
37587 exeext=$exeext
37588
37589 # whether the shell understands "unset".
37590 lt_unset=$lt_unset
37591
37592 # turn spaces into newlines.
37593 SP2NL=$lt_lt_SP2NL
37594
37595 # turn newlines into spaces.
37596 NL2SP=$lt_lt_NL2SP
37597
37598 # convert \$build file names to \$host format.
37599 to_host_file_cmd=$lt_cv_to_host_file_cmd
37600
37601 # convert \$build files to toolchain format.
37602 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37603
37604 # Method to check whether dependent libraries are shared objects.
37605 deplibs_check_method=$lt_deplibs_check_method
37606
37607 # Command to use when deplibs_check_method = "file_magic".
37608 file_magic_cmd=$lt_file_magic_cmd
37609
37610 # How to find potential files when deplibs_check_method = "file_magic".
37611 file_magic_glob=$lt_file_magic_glob
37612
37613 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37614 want_nocaseglob=$lt_want_nocaseglob
37615
37616 # Command to associate shared and link libraries.
37617 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37618
37619 # The archiver.
37620 AR=$lt_AR
37621
37622 # Flags to create an archive.
37623 AR_FLAGS=$lt_AR_FLAGS
37624
37625 # How to feed a file listing to the archiver.
37626 archiver_list_spec=$lt_archiver_list_spec
37627
37628 # A symbol stripping program.
37629 STRIP=$lt_STRIP
37630
37631 # Commands used to install an old-style archive.
37632 RANLIB=$lt_RANLIB
37633 old_postinstall_cmds=$lt_old_postinstall_cmds
37634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37635
37636 # Whether to use a lock for old archive extraction.
37637 lock_old_archive_extraction=$lock_old_archive_extraction
37638
37639 # A C compiler.
37640 LTCC=$lt_CC
37641
37642 # LTCC compiler flags.
37643 LTCFLAGS=$lt_CFLAGS
37644
37645 # Take the output of nm and produce a listing of raw symbols and C names.
37646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37647
37648 # Transform the output of nm in a proper C declaration.
37649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37650
37651 # Transform the output of nm in a C name address pair.
37652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37653
37654 # Transform the output of nm in a C name address pair when lib prefix is needed.
37655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37656
37657 # Specify filename containing input files for \$NM.
37658 nm_file_list_spec=$lt_nm_file_list_spec
37659
37660 # The root where to search for dependent libraries,and in which our libraries should be installed.
37661 lt_sysroot=$lt_sysroot
37662
37663 # The name of the directory that contains temporary libtool files.
37664 objdir=$objdir
37665
37666 # Used to examine libraries when file_magic_cmd begins with "file".
37667 MAGIC_CMD=$MAGIC_CMD
37668
37669 # Must we lock files when doing compilation?
37670 need_locks=$lt_need_locks
37671
37672 # Manifest tool.
37673 MANIFEST_TOOL=$lt_MANIFEST_TOOL
37674
37675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37676 DSYMUTIL=$lt_DSYMUTIL
37677
37678 # Tool to change global to local symbols on Mac OS X.
37679 NMEDIT=$lt_NMEDIT
37680
37681 # Tool to manipulate fat objects and archives on Mac OS X.
37682 LIPO=$lt_LIPO
37683
37684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
37685 OTOOL=$lt_OTOOL
37686
37687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37688 OTOOL64=$lt_OTOOL64
37689
37690 # Old archive suffix (normally "a").
37691 libext=$libext
37692
37693 # Shared library suffix (normally ".so").
37694 shrext_cmds=$lt_shrext_cmds
37695
37696 # The commands to extract the exported symbol list from a shared archive.
37697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
37698
37699 # Variables whose values should be saved in libtool wrapper scripts and
37700 # restored at link time.
37701 variables_saved_for_relink=$lt_variables_saved_for_relink
37702
37703 # Do we need the "lib" prefix for modules?
37704 need_lib_prefix=$need_lib_prefix
37705
37706 # Do we need a version for libraries?
37707 need_version=$need_version
37708
37709 # Library versioning type.
37710 version_type=$version_type
37711
37712 # Shared library runtime path variable.
37713 runpath_var=$runpath_var
37714
37715 # Shared library path variable.
37716 shlibpath_var=$shlibpath_var
37717
37718 # Is shlibpath searched before the hard-coded library search path?
37719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37720
37721 # Format of library name prefix.
37722 libname_spec=$lt_libname_spec
37723
37724 # List of archive names.  First name is the real one, the rest are links.
37725 # The last name is the one that the linker finds with -lNAME
37726 library_names_spec=$lt_library_names_spec
37727
37728 # The coded name of the library, if different from the real name.
37729 soname_spec=$lt_soname_spec
37730
37731 # Permission mode override for installation of shared libraries.
37732 install_override_mode=$lt_install_override_mode
37733
37734 # Command to use after installation of a shared archive.
37735 postinstall_cmds=$lt_postinstall_cmds
37736
37737 # Command to use after uninstallation of a shared archive.
37738 postuninstall_cmds=$lt_postuninstall_cmds
37739
37740 # Commands used to finish a libtool library installation in a directory.
37741 finish_cmds=$lt_finish_cmds
37742
37743 # As "finish_cmds", except a single script fragment to be evaled but
37744 # not shown.
37745 finish_eval=$lt_finish_eval
37746
37747 # Whether we should hardcode library paths into libraries.
37748 hardcode_into_libs=$hardcode_into_libs
37749
37750 # Compile-time system search path for libraries.
37751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37752
37753 # Run-time system search path for libraries.
37754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37755
37756 # Whether dlopen is supported.
37757 dlopen_support=$enable_dlopen
37758
37759 # Whether dlopen of programs is supported.
37760 dlopen_self=$enable_dlopen_self
37761
37762 # Whether dlopen of statically linked programs is supported.
37763 dlopen_self_static=$enable_dlopen_self_static
37764
37765 # Commands to strip libraries.
37766 old_striplib=$lt_old_striplib
37767 striplib=$lt_striplib
37768
37769
37770 # The linker used to build libraries.
37771 LD=$lt_LD
37772
37773 # How to create reloadable object files.
37774 reload_flag=$lt_reload_flag
37775 reload_cmds=$lt_reload_cmds
37776
37777 # Commands used to build an old-style archive.
37778 old_archive_cmds=$lt_old_archive_cmds
37779
37780 # A language specific compiler.
37781 CC=$lt_compiler
37782
37783 # Is the compiler the GNU compiler?
37784 with_gcc=$GCC
37785
37786 # Compiler flag to turn off builtin functions.
37787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37788
37789 # Additional compiler flags for building library objects.
37790 pic_flag=$lt_lt_prog_compiler_pic
37791
37792 # How to pass a linker flag through the compiler.
37793 wl=$lt_lt_prog_compiler_wl
37794
37795 # Compiler flag to prevent dynamic linking.
37796 link_static_flag=$lt_lt_prog_compiler_static
37797
37798 # Does compiler simultaneously support -c and -o options?
37799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37800
37801 # Whether or not to add -lc for building shared libraries.
37802 build_libtool_need_lc=$archive_cmds_need_lc
37803
37804 # Whether or not to disallow shared libs when runtime libs are static.
37805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37806
37807 # Compiler flag to allow reflexive dlopens.
37808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37809
37810 # Compiler flag to generate shared objects directly from archives.
37811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37812
37813 # Whether the compiler copes with passing no objects directly.
37814 compiler_needs_object=$lt_compiler_needs_object
37815
37816 # Create an old-style archive from a shared archive.
37817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37818
37819 # Create a temporary old-style archive to link instead of a shared archive.
37820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37821
37822 # Commands used to build a shared archive.
37823 archive_cmds=$lt_archive_cmds
37824 archive_expsym_cmds=$lt_archive_expsym_cmds
37825
37826 # Commands used to build a loadable module if different from building
37827 # a shared archive.
37828 module_cmds=$lt_module_cmds
37829 module_expsym_cmds=$lt_module_expsym_cmds
37830
37831 # Whether we are building with GNU ld or not.
37832 with_gnu_ld=$lt_with_gnu_ld
37833
37834 # Flag that allows shared libraries with undefined symbols to be built.
37835 allow_undefined_flag=$lt_allow_undefined_flag
37836
37837 # Flag that enforces no undefined symbols.
37838 no_undefined_flag=$lt_no_undefined_flag
37839
37840 # Flag to hardcode \$libdir into a binary during linking.
37841 # This must work even if \$libdir does not exist
37842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37843
37844 # Whether we need a single "-rpath" flag with a separated argument.
37845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37846
37847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37848 # DIR into the resulting binary.
37849 hardcode_direct=$hardcode_direct
37850
37851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37852 # DIR into the resulting binary and the resulting library dependency is
37853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37854 # library is relocated.
37855 hardcode_direct_absolute=$hardcode_direct_absolute
37856
37857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37858 # into the resulting binary.
37859 hardcode_minus_L=$hardcode_minus_L
37860
37861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37862 # into the resulting binary.
37863 hardcode_shlibpath_var=$hardcode_shlibpath_var
37864
37865 # Set to "yes" if building a shared library automatically hardcodes DIR
37866 # into the library and all subsequent libraries and executables linked
37867 # against it.
37868 hardcode_automatic=$hardcode_automatic
37869
37870 # Set to yes if linker adds runtime paths of dependent libraries
37871 # to runtime path list.
37872 inherit_rpath=$inherit_rpath
37873
37874 # Whether libtool must link a program against all its dependency libraries.
37875 link_all_deplibs=$link_all_deplibs
37876
37877 # Set to "yes" if exported symbols are required.
37878 always_export_symbols=$always_export_symbols
37879
37880 # The commands to list exported symbols.
37881 export_symbols_cmds=$lt_export_symbols_cmds
37882
37883 # Symbols that should not be listed in the preloaded symbols.
37884 exclude_expsyms=$lt_exclude_expsyms
37885
37886 # Symbols that must always be exported.
37887 include_expsyms=$lt_include_expsyms
37888
37889 # Commands necessary for linking programs (against libraries) with templates.
37890 prelink_cmds=$lt_prelink_cmds
37891
37892 # Commands necessary for finishing linking programs.
37893 postlink_cmds=$lt_postlink_cmds
37894
37895 # Specify filename containing input files.
37896 file_list_spec=$lt_file_list_spec
37897
37898 # How to hardcode a shared library path into an executable.
37899 hardcode_action=$hardcode_action
37900
37901 # The directories searched by this compiler when creating a shared library.
37902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37903
37904 # Dependencies to place before and after the objects being linked to
37905 # create a shared library.
37906 predep_objects=$lt_predep_objects
37907 postdep_objects=$lt_postdep_objects
37908 predeps=$lt_predeps
37909 postdeps=$lt_postdeps
37910
37911 # The library search path used internally by the compiler when linking
37912 # a shared library.
37913 compiler_lib_search_path=$lt_compiler_lib_search_path
37914
37915 # ### END LIBTOOL CONFIG
37916
37917 _LT_EOF
37918
37919   case $host_os in
37920   aix3*)
37921     cat <<\_LT_EOF >> "$cfgfile"
37922 # AIX sometimes has problems with the GCC collect2 program.  For some
37923 # reason, if we set the COLLECT_NAMES environment variable, the problems
37924 # vanish in a puff of smoke.
37925 if test "X${COLLECT_NAMES+set}" != Xset; then
37926   COLLECT_NAMES=
37927   export COLLECT_NAMES
37928 fi
37929 _LT_EOF
37930     ;;
37931   esac
37932
37933
37934 ltmain="$ac_aux_dir/ltmain.sh"
37935
37936
37937   # We use sed instead of cat because bash on DJGPP gets confused if
37938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37939   # text mode, it properly converts lines to CR/LF.  This bash problem
37940   # is reportedly fixed, but why not run on old versions too?
37941   sed '$q' "$ltmain" >> "$cfgfile" \
37942      || (rm -f "$cfgfile"; exit 1)
37943
37944   if test x"$xsi_shell" = xyes; then
37945   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37946 func_dirname ()\
37947 {\
37948 \    case ${1} in\
37949 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37950 \      *  ) func_dirname_result="${3}" ;;\
37951 \    esac\
37952 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37953   && mv -f "$cfgfile.tmp" "$cfgfile" \
37954     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37955 test 0 -eq $? || _lt_function_replace_fail=:
37956
37957
37958   sed -e '/^func_basename ()$/,/^} # func_basename /c\
37959 func_basename ()\
37960 {\
37961 \    func_basename_result="${1##*/}"\
37962 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37963   && mv -f "$cfgfile.tmp" "$cfgfile" \
37964     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37965 test 0 -eq $? || _lt_function_replace_fail=:
37966
37967
37968   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37969 func_dirname_and_basename ()\
37970 {\
37971 \    case ${1} in\
37972 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37973 \      *  ) func_dirname_result="${3}" ;;\
37974 \    esac\
37975 \    func_basename_result="${1##*/}"\
37976 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37977   && mv -f "$cfgfile.tmp" "$cfgfile" \
37978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37979 test 0 -eq $? || _lt_function_replace_fail=:
37980
37981
37982   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37983 func_stripname ()\
37984 {\
37985 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37986 \    # positional parameters, so assign one to ordinary parameter first.\
37987 \    func_stripname_result=${3}\
37988 \    func_stripname_result=${func_stripname_result#"${1}"}\
37989 \    func_stripname_result=${func_stripname_result%"${2}"}\
37990 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37991   && mv -f "$cfgfile.tmp" "$cfgfile" \
37992     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37993 test 0 -eq $? || _lt_function_replace_fail=:
37994
37995
37996   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37997 func_split_long_opt ()\
37998 {\
37999 \    func_split_long_opt_name=${1%%=*}\
38000 \    func_split_long_opt_arg=${1#*=}\
38001 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38002   && mv -f "$cfgfile.tmp" "$cfgfile" \
38003     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38004 test 0 -eq $? || _lt_function_replace_fail=:
38005
38006
38007   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38008 func_split_short_opt ()\
38009 {\
38010 \    func_split_short_opt_arg=${1#??}\
38011 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38012 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38013   && mv -f "$cfgfile.tmp" "$cfgfile" \
38014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38015 test 0 -eq $? || _lt_function_replace_fail=:
38016
38017
38018   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38019 func_lo2o ()\
38020 {\
38021 \    case ${1} in\
38022 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38023 \      *)    func_lo2o_result=${1} ;;\
38024 \    esac\
38025 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38026   && mv -f "$cfgfile.tmp" "$cfgfile" \
38027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38028 test 0 -eq $? || _lt_function_replace_fail=:
38029
38030
38031   sed -e '/^func_xform ()$/,/^} # func_xform /c\
38032 func_xform ()\
38033 {\
38034     func_xform_result=${1%.*}.lo\
38035 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38036   && mv -f "$cfgfile.tmp" "$cfgfile" \
38037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38038 test 0 -eq $? || _lt_function_replace_fail=:
38039
38040
38041   sed -e '/^func_arith ()$/,/^} # func_arith /c\
38042 func_arith ()\
38043 {\
38044     func_arith_result=$(( $* ))\
38045 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38046   && mv -f "$cfgfile.tmp" "$cfgfile" \
38047     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38048 test 0 -eq $? || _lt_function_replace_fail=:
38049
38050
38051   sed -e '/^func_len ()$/,/^} # func_len /c\
38052 func_len ()\
38053 {\
38054     func_len_result=${#1}\
38055 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38056   && mv -f "$cfgfile.tmp" "$cfgfile" \
38057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38058 test 0 -eq $? || _lt_function_replace_fail=:
38059
38060 fi
38061
38062 if test x"$lt_shell_append" = xyes; then
38063   sed -e '/^func_append ()$/,/^} # func_append /c\
38064 func_append ()\
38065 {\
38066     eval "${1}+=\\${2}"\
38067 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38068   && mv -f "$cfgfile.tmp" "$cfgfile" \
38069     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38070 test 0 -eq $? || _lt_function_replace_fail=:
38071
38072
38073   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38074 func_append_quoted ()\
38075 {\
38076 \    func_quote_for_eval "${2}"\
38077 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38078 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38079   && mv -f "$cfgfile.tmp" "$cfgfile" \
38080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38081 test 0 -eq $? || _lt_function_replace_fail=:
38082
38083
38084   # Save a `func_append' function call where possible by direct use of '+='
38085   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38086     && mv -f "$cfgfile.tmp" "$cfgfile" \
38087       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38088   test 0 -eq $? || _lt_function_replace_fail=:
38089 else
38090   # Save a `func_append' function call even when '+=' is not available
38091   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38092     && mv -f "$cfgfile.tmp" "$cfgfile" \
38093       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38094   test 0 -eq $? || _lt_function_replace_fail=:
38095 fi
38096
38097 if test x"$_lt_function_replace_fail" = x":"; then
38098   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38099 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38100 fi
38101
38102
38103    mv -f "$cfgfile" "$ofile" ||
38104     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38105   chmod +x "$ofile"
38106
38107
38108     cat <<_LT_EOF >> "$ofile"
38109
38110 # ### BEGIN LIBTOOL TAG CONFIG: CXX
38111
38112 # The linker used to build libraries.
38113 LD=$lt_LD_CXX
38114
38115 # How to create reloadable object files.
38116 reload_flag=$lt_reload_flag_CXX
38117 reload_cmds=$lt_reload_cmds_CXX
38118
38119 # Commands used to build an old-style archive.
38120 old_archive_cmds=$lt_old_archive_cmds_CXX
38121
38122 # A language specific compiler.
38123 CC=$lt_compiler_CXX
38124
38125 # Is the compiler the GNU compiler?
38126 with_gcc=$GCC_CXX
38127
38128 # Compiler flag to turn off builtin functions.
38129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38130
38131 # Additional compiler flags for building library objects.
38132 pic_flag=$lt_lt_prog_compiler_pic_CXX
38133
38134 # How to pass a linker flag through the compiler.
38135 wl=$lt_lt_prog_compiler_wl_CXX
38136
38137 # Compiler flag to prevent dynamic linking.
38138 link_static_flag=$lt_lt_prog_compiler_static_CXX
38139
38140 # Does compiler simultaneously support -c and -o options?
38141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38142
38143 # Whether or not to add -lc for building shared libraries.
38144 build_libtool_need_lc=$archive_cmds_need_lc_CXX
38145
38146 # Whether or not to disallow shared libs when runtime libs are static.
38147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38148
38149 # Compiler flag to allow reflexive dlopens.
38150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38151
38152 # Compiler flag to generate shared objects directly from archives.
38153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38154
38155 # Whether the compiler copes with passing no objects directly.
38156 compiler_needs_object=$lt_compiler_needs_object_CXX
38157
38158 # Create an old-style archive from a shared archive.
38159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38160
38161 # Create a temporary old-style archive to link instead of a shared archive.
38162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38163
38164 # Commands used to build a shared archive.
38165 archive_cmds=$lt_archive_cmds_CXX
38166 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38167
38168 # Commands used to build a loadable module if different from building
38169 # a shared archive.
38170 module_cmds=$lt_module_cmds_CXX
38171 module_expsym_cmds=$lt_module_expsym_cmds_CXX
38172
38173 # Whether we are building with GNU ld or not.
38174 with_gnu_ld=$lt_with_gnu_ld_CXX
38175
38176 # Flag that allows shared libraries with undefined symbols to be built.
38177 allow_undefined_flag=$lt_allow_undefined_flag_CXX
38178
38179 # Flag that enforces no undefined symbols.
38180 no_undefined_flag=$lt_no_undefined_flag_CXX
38181
38182 # Flag to hardcode \$libdir into a binary during linking.
38183 # This must work even if \$libdir does not exist
38184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38185
38186 # Whether we need a single "-rpath" flag with a separated argument.
38187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38188
38189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38190 # DIR into the resulting binary.
38191 hardcode_direct=$hardcode_direct_CXX
38192
38193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38194 # DIR into the resulting binary and the resulting library dependency is
38195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38196 # library is relocated.
38197 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38198
38199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38200 # into the resulting binary.
38201 hardcode_minus_L=$hardcode_minus_L_CXX
38202
38203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38204 # into the resulting binary.
38205 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38206
38207 # Set to "yes" if building a shared library automatically hardcodes DIR
38208 # into the library and all subsequent libraries and executables linked
38209 # against it.
38210 hardcode_automatic=$hardcode_automatic_CXX
38211
38212 # Set to yes if linker adds runtime paths of dependent libraries
38213 # to runtime path list.
38214 inherit_rpath=$inherit_rpath_CXX
38215
38216 # Whether libtool must link a program against all its dependency libraries.
38217 link_all_deplibs=$link_all_deplibs_CXX
38218
38219 # Set to "yes" if exported symbols are required.
38220 always_export_symbols=$always_export_symbols_CXX
38221
38222 # The commands to list exported symbols.
38223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
38224
38225 # Symbols that should not be listed in the preloaded symbols.
38226 exclude_expsyms=$lt_exclude_expsyms_CXX
38227
38228 # Symbols that must always be exported.
38229 include_expsyms=$lt_include_expsyms_CXX
38230
38231 # Commands necessary for linking programs (against libraries) with templates.
38232 prelink_cmds=$lt_prelink_cmds_CXX
38233
38234 # Commands necessary for finishing linking programs.
38235 postlink_cmds=$lt_postlink_cmds_CXX
38236
38237 # Specify filename containing input files.
38238 file_list_spec=$lt_file_list_spec_CXX
38239
38240 # How to hardcode a shared library path into an executable.
38241 hardcode_action=$hardcode_action_CXX
38242
38243 # The directories searched by this compiler when creating a shared library.
38244 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38245
38246 # Dependencies to place before and after the objects being linked to
38247 # create a shared library.
38248 predep_objects=$lt_predep_objects_CXX
38249 postdep_objects=$lt_postdep_objects_CXX
38250 predeps=$lt_predeps_CXX
38251 postdeps=$lt_postdeps_CXX
38252
38253 # The library search path used internally by the compiler when linking
38254 # a shared library.
38255 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38256
38257 # ### END LIBTOOL TAG CONFIG: CXX
38258 _LT_EOF
38259
38260  ;;
38261     "$srcdir/build/Makefile.win32.features":C)
38262                 _config_file=$srcdir/build/Makefile.win32.features
38263                 _tmp_file=cairoconf.tmp
38264                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38265 $as_echo "$as_me: creating $_config_file" >&6;}
38266                 {
38267                         echo "$CAIRO_MAKEFILE___WIN32"
38268                 } >> "$_tmp_file" ||
38269                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38270
38271                 if cmp -s "$_tmp_file" "$_config_file"; then
38272                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38273 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38274                   rm -f "$_tmp_file"
38275                 else
38276                   mv "$_tmp_file" "$_config_file" ||
38277                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38278                 fi
38279          ;;
38280     "$srcdir/src/Makefile.am.features":C)
38281                 _config_file=$srcdir/src/Makefile.am.features
38282                 _tmp_file=cairoconf.tmp
38283                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38284 $as_echo "$as_me: creating $_config_file" >&6;}
38285                 {
38286                         echo "$CAIRO_MAKEFILE_cairo_AMAKE"
38287                 } >> "$_tmp_file" ||
38288                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38289
38290                 if cmp -s "$_tmp_file" "$_config_file"; then
38291                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38292 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38293                   rm -f "$_tmp_file"
38294                 else
38295                   mv "$_tmp_file" "$_config_file" ||
38296                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38297                 fi
38298          ;;
38299     "$srcdir/src/Makefile.win32.features":C)
38300                 _config_file=$srcdir/src/Makefile.win32.features
38301                 _tmp_file=cairoconf.tmp
38302                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38303 $as_echo "$as_me: creating $_config_file" >&6;}
38304                 {
38305                         echo "$CAIRO_MAKEFILE_cairo_WIN32"
38306                 } >> "$_tmp_file" ||
38307                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38308
38309                 if cmp -s "$_tmp_file" "$_config_file"; then
38310                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38311 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38312                   rm -f "$_tmp_file"
38313                 else
38314                   mv "$_tmp_file" "$_config_file" ||
38315                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38316                 fi
38317          ;;
38318     "$srcdir/boilerplate/Makefile.am.features":C)
38319                 _config_file=$srcdir/boilerplate/Makefile.am.features
38320                 _tmp_file=cairoconf.tmp
38321                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38322 $as_echo "$as_me: creating $_config_file" >&6;}
38323                 {
38324                         echo "$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE"
38325                 } >> "$_tmp_file" ||
38326                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38327
38328                 if cmp -s "$_tmp_file" "$_config_file"; then
38329                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38330 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38331                   rm -f "$_tmp_file"
38332                 else
38333                   mv "$_tmp_file" "$_config_file" ||
38334                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38335                 fi
38336          ;;
38337     "$srcdir/boilerplate/Makefile.win32.features":C)
38338                 _config_file=$srcdir/boilerplate/Makefile.win32.features
38339                 _tmp_file=cairoconf.tmp
38340                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38341 $as_echo "$as_me: creating $_config_file" >&6;}
38342                 {
38343                         echo "$CAIRO_MAKEFILE_cairo_boilerplate_WIN32"
38344                 } >> "$_tmp_file" ||
38345                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38346
38347                 if cmp -s "$_tmp_file" "$_config_file"; then
38348                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38349 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38350                   rm -f "$_tmp_file"
38351                 else
38352                   mv "$_tmp_file" "$_config_file" ||
38353                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38354                 fi
38355          ;;
38356     "src/cairo-features.h":C)
38357                 _config_file=src/cairo-features.h
38358                 _tmp_file=cairoconf.tmp
38359                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38360 $as_echo "$as_me: creating $_config_file" >&6;}
38361                 {
38362                                 echo '/* Generated by configure.  Do not edit. */'
38363         echo '#ifndef CAIRO_FEATURES_H'
38364         echo '#define CAIRO_FEATURES_H'
38365         echo ''
38366         for FEATURE in $CAIRO_FEATURES; do
38367                 echo "#define $FEATURE 1"
38368         done | LANG=C sort
38369         echo ''
38370         for FEATURE in $CAIRO_NO_FEATURES; do
38371                 echo "/*#undef $FEATURE */"
38372         done | LANG=C sort
38373         echo ''
38374         echo '#endif'
38375
38376                 } >> "$_tmp_file" ||
38377                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38378
38379                 if cmp -s "$_tmp_file" "$_config_file"; then
38380                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38381 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38382                   rm -f "$_tmp_file"
38383                 else
38384                   mv "$_tmp_file" "$_config_file" ||
38385                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38386                 fi
38387          ;;
38388     "src/cairo-supported-features.h":C)
38389                 _config_file=src/cairo-supported-features.h
38390                 _tmp_file=cairoconf.tmp
38391                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38392 $as_echo "$as_me: creating $_config_file" >&6;}
38393                 {
38394                                 echo '/* Generated by configure.  Do not edit. */'
38395         echo '#ifndef CAIRO_SUPPORTED_FEATURES_H'
38396         echo '#define CAIRO_SUPPORTED_FEATURES_H'
38397         echo ''
38398         echo '/* This is a dummy header, to trick gtk-doc only */'
38399         echo ''
38400         for FEATURE in $CAIRO_SUPPORTED_FEATURES; do
38401                 echo "#define $FEATURE 1"
38402         done
38403         echo ''
38404         echo '#endif'
38405
38406                 } >> "$_tmp_file" ||
38407                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38408
38409                 if cmp -s "$_tmp_file" "$_config_file"; then
38410                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38411 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38412                   rm -f "$_tmp_file"
38413                 else
38414                   mv "$_tmp_file" "$_config_file" ||
38415                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38416                 fi
38417          ;;
38418     "$srcdir/build/Makefile.win32.features-h":C)
38419                 _config_file=$srcdir/build/Makefile.win32.features-h
38420                 _tmp_file=cairoconf.tmp
38421                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
38422 $as_echo "$as_me: creating $_config_file" >&6;}
38423                 {
38424                         echo "$CAIRO_MAKEFILE_win32_features_h_WIN32"
38425                 } >> "$_tmp_file" ||
38426                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
38427
38428                 if cmp -s "$_tmp_file" "$_config_file"; then
38429                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
38430 $as_echo "$as_me: $_config_file is unchanged" >&6;}
38431                   rm -f "$_tmp_file"
38432                 else
38433                   mv "$_tmp_file" "$_config_file" ||
38434                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
38435                 fi
38436          ;;
38437     "src/cairo-xlib.pc":F)              mv "src/cairo-xlib.pc" "src/cairo-xlib.pc.tmp" &&
38438                 $SED "          s%@FEATURE_PC@%cairo-xlib%g;            s%@FEATURE_NAME@%Xlib surface backend%g;                s%@FEATURE_BASE@%$xlib_BASE%g;          s%@FEATURE_REQUIRES@%$xlib_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-xlib.pc.tmp" > "src/cairo-xlib.pc" && rm -f "src/cairo-xlib.pc.tmp" ||
38439                 as_fn_error $? "failed to update src/cairo-xlib.pc" "$LINENO" 5
38440          ;;
38441     "cairo-xlib-uninstalled.pc":F)              mv "cairo-xlib-uninstalled.pc" "cairo-xlib-uninstalled.pc.tmp" &&
38442                 $SED "          s%@FEATURE_PC@%cairo-xlib%g;            s%@FEATURE_NAME@%Xlib surface backend%g;                s%@FEATURE_BASE@%$xlib_BASE%g;          s%@FEATURE_REQUIRES@%$xlib_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_NONPKGCONFIG_CFLAGS%g;            " < "cairo-xlib-uninstalled.pc.tmp" > "cairo-xlib-uninstalled.pc" && rm -f "cairo-xlib-uninstalled.pc.tmp" ||
38443                 as_fn_error $? "failed to update cairo-xlib-uninstalled.pc" "$LINENO" 5
38444          ;;
38445     "src/cairo-xlib-xrender.pc":F)              mv "src/cairo-xlib-xrender.pc" "src/cairo-xlib-xrender.pc.tmp" &&
38446                 $SED "          s%@FEATURE_PC@%cairo-xlib-xrender%g;            s%@FEATURE_NAME@%Xlib Xrender surface backend%g;                s%@FEATURE_BASE@%$xlib_xrender_BASE%g;          s%@FEATURE_REQUIRES@%$xlib_xrender_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xrender_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xrender_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-xlib-xrender.pc.tmp" > "src/cairo-xlib-xrender.pc" && rm -f "src/cairo-xlib-xrender.pc.tmp" ||
38447                 as_fn_error $? "failed to update src/cairo-xlib-xrender.pc" "$LINENO" 5
38448          ;;
38449     "cairo-xlib-xrender-uninstalled.pc":F)              mv "cairo-xlib-xrender-uninstalled.pc" "cairo-xlib-xrender-uninstalled.pc.tmp" &&
38450                 $SED "          s%@FEATURE_PC@%cairo-xlib-xrender%g;            s%@FEATURE_NAME@%Xlib Xrender surface backend%g;                s%@FEATURE_BASE@%$xlib_xrender_BASE%g;          s%@FEATURE_REQUIRES@%$xlib_xrender_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xrender_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xrender_NONPKGCONFIG_CFLAGS%g;            " < "cairo-xlib-xrender-uninstalled.pc.tmp" > "cairo-xlib-xrender-uninstalled.pc" && rm -f "cairo-xlib-xrender-uninstalled.pc.tmp" ||
38451                 as_fn_error $? "failed to update cairo-xlib-xrender-uninstalled.pc" "$LINENO" 5
38452          ;;
38453     "src/cairo-xcb.pc":F)               mv "src/cairo-xcb.pc" "src/cairo-xcb.pc.tmp" &&
38454                 $SED "          s%@FEATURE_PC@%cairo-xcb%g;             s%@FEATURE_NAME@%XCB surface backend%g;         s%@FEATURE_BASE@%$xcb_BASE%g;           s%@FEATURE_REQUIRES@%$xcb_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-xcb.pc.tmp" > "src/cairo-xcb.pc" && rm -f "src/cairo-xcb.pc.tmp" ||
38455                 as_fn_error $? "failed to update src/cairo-xcb.pc" "$LINENO" 5
38456          ;;
38457     "cairo-xcb-uninstalled.pc":F)               mv "cairo-xcb-uninstalled.pc" "cairo-xcb-uninstalled.pc.tmp" &&
38458                 $SED "          s%@FEATURE_PC@%cairo-xcb%g;             s%@FEATURE_NAME@%XCB surface backend%g;         s%@FEATURE_BASE@%$xcb_BASE%g;           s%@FEATURE_REQUIRES@%$xcb_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_NONPKGCONFIG_CFLAGS%g;             " < "cairo-xcb-uninstalled.pc.tmp" > "cairo-xcb-uninstalled.pc" && rm -f "cairo-xcb-uninstalled.pc.tmp" ||
38459                 as_fn_error $? "failed to update cairo-xcb-uninstalled.pc" "$LINENO" 5
38460          ;;
38461     "src/cairo-xlib-xcb.pc":F)          mv "src/cairo-xlib-xcb.pc" "src/cairo-xlib-xcb.pc.tmp" &&
38462                 $SED "          s%@FEATURE_PC@%cairo-xlib-xcb%g;                s%@FEATURE_NAME@%Xlib/XCB functions%g;          s%@FEATURE_BASE@%$xlib_xcb_BASE%g;              s%@FEATURE_REQUIRES@%$xlib_xcb_REQUIRES%g;              s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xcb_NONPKGCONFIG_LIBS%g;            s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS%g;                s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xcb_NONPKGCONFIG_CFLAGS%g;                " < "src/cairo-xlib-xcb.pc.tmp" > "src/cairo-xlib-xcb.pc" && rm -f "src/cairo-xlib-xcb.pc.tmp" ||
38463                 as_fn_error $? "failed to update src/cairo-xlib-xcb.pc" "$LINENO" 5
38464          ;;
38465     "cairo-xlib-xcb-uninstalled.pc":F)          mv "cairo-xlib-xcb-uninstalled.pc" "cairo-xlib-xcb-uninstalled.pc.tmp" &&
38466                 $SED "          s%@FEATURE_PC@%cairo-xlib-xcb%g;                s%@FEATURE_NAME@%Xlib/XCB functions%g;          s%@FEATURE_BASE@%$xlib_xcb_BASE%g;              s%@FEATURE_REQUIRES@%$xlib_xcb_REQUIRES%g;              s%@FEATURE_NONPKGCONFIG_LIBS@%$xlib_xcb_NONPKGCONFIG_LIBS%g;            s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS%g;                s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xlib_xcb_NONPKGCONFIG_CFLAGS%g;                " < "cairo-xlib-xcb-uninstalled.pc.tmp" > "cairo-xlib-xcb-uninstalled.pc" && rm -f "cairo-xlib-xcb-uninstalled.pc.tmp" ||
38467                 as_fn_error $? "failed to update cairo-xlib-xcb-uninstalled.pc" "$LINENO" 5
38468          ;;
38469     "src/cairo-xcb-shm.pc":F)           mv "src/cairo-xcb-shm.pc" "src/cairo-xcb-shm.pc.tmp" &&
38470                 $SED "          s%@FEATURE_PC@%cairo-xcb-shm%g;         s%@FEATURE_NAME@%XCB/SHM functions%g;           s%@FEATURE_BASE@%$xcb_shm_BASE%g;               s%@FEATURE_REQUIRES@%$xcb_shm_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_shm_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_shm_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_shm_NONPKGCONFIG_CFLAGS%g;         " < "src/cairo-xcb-shm.pc.tmp" > "src/cairo-xcb-shm.pc" && rm -f "src/cairo-xcb-shm.pc.tmp" ||
38471                 as_fn_error $? "failed to update src/cairo-xcb-shm.pc" "$LINENO" 5
38472          ;;
38473     "cairo-xcb-shm-uninstalled.pc":F)           mv "cairo-xcb-shm-uninstalled.pc" "cairo-xcb-shm-uninstalled.pc.tmp" &&
38474                 $SED "          s%@FEATURE_PC@%cairo-xcb-shm%g;         s%@FEATURE_NAME@%XCB/SHM functions%g;           s%@FEATURE_BASE@%$xcb_shm_BASE%g;               s%@FEATURE_REQUIRES@%$xcb_shm_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$xcb_shm_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xcb_shm_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xcb_shm_NONPKGCONFIG_CFLAGS%g;         " < "cairo-xcb-shm-uninstalled.pc.tmp" > "cairo-xcb-shm-uninstalled.pc" && rm -f "cairo-xcb-shm-uninstalled.pc.tmp" ||
38475                 as_fn_error $? "failed to update cairo-xcb-shm-uninstalled.pc" "$LINENO" 5
38476          ;;
38477     "src/cairo-qt.pc":F)                mv "src/cairo-qt.pc" "src/cairo-qt.pc.tmp" &&
38478                 $SED "          s%@FEATURE_PC@%cairo-qt%g;              s%@FEATURE_NAME@%Qt surface backend%g;          s%@FEATURE_BASE@%$qt_BASE%g;            s%@FEATURE_REQUIRES@%$qt_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$qt_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$qt_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$qt_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-qt.pc.tmp" > "src/cairo-qt.pc" && rm -f "src/cairo-qt.pc.tmp" ||
38479                 as_fn_error $? "failed to update src/cairo-qt.pc" "$LINENO" 5
38480          ;;
38481     "cairo-qt-uninstalled.pc":F)                mv "cairo-qt-uninstalled.pc" "cairo-qt-uninstalled.pc.tmp" &&
38482                 $SED "          s%@FEATURE_PC@%cairo-qt%g;              s%@FEATURE_NAME@%Qt surface backend%g;          s%@FEATURE_BASE@%$qt_BASE%g;            s%@FEATURE_REQUIRES@%$qt_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$qt_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$qt_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$qt_NONPKGCONFIG_CFLAGS%g;              " < "cairo-qt-uninstalled.pc.tmp" > "cairo-qt-uninstalled.pc" && rm -f "cairo-qt-uninstalled.pc.tmp" ||
38483                 as_fn_error $? "failed to update cairo-qt-uninstalled.pc" "$LINENO" 5
38484          ;;
38485     "src/cairo-quartz.pc":F)            mv "src/cairo-quartz.pc" "src/cairo-quartz.pc.tmp" &&
38486                 $SED "          s%@FEATURE_PC@%cairo-quartz%g;          s%@FEATURE_NAME@%Quartz surface backend%g;              s%@FEATURE_BASE@%$quartz_BASE%g;                s%@FEATURE_REQUIRES@%$quartz_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_NONPKGCONFIG_CFLAGS%g;          " < "src/cairo-quartz.pc.tmp" > "src/cairo-quartz.pc" && rm -f "src/cairo-quartz.pc.tmp" ||
38487                 as_fn_error $? "failed to update src/cairo-quartz.pc" "$LINENO" 5
38488          ;;
38489     "cairo-quartz-uninstalled.pc":F)            mv "cairo-quartz-uninstalled.pc" "cairo-quartz-uninstalled.pc.tmp" &&
38490                 $SED "          s%@FEATURE_PC@%cairo-quartz%g;          s%@FEATURE_NAME@%Quartz surface backend%g;              s%@FEATURE_BASE@%$quartz_BASE%g;                s%@FEATURE_REQUIRES@%$quartz_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_NONPKGCONFIG_CFLAGS%g;          " < "cairo-quartz-uninstalled.pc.tmp" > "cairo-quartz-uninstalled.pc" && rm -f "cairo-quartz-uninstalled.pc.tmp" ||
38491                 as_fn_error $? "failed to update cairo-quartz-uninstalled.pc" "$LINENO" 5
38492          ;;
38493     "src/cairo-quartz-font.pc":F)               mv "src/cairo-quartz-font.pc" "src/cairo-quartz-font.pc.tmp" &&
38494                 $SED "          s%@FEATURE_PC@%cairo-quartz-font%g;             s%@FEATURE_NAME@%Quartz font backend%g;         s%@FEATURE_BASE@%$quartz_font_BASE%g;           s%@FEATURE_REQUIRES@%$quartz_font_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_font_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_font_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_font_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-quartz-font.pc.tmp" > "src/cairo-quartz-font.pc" && rm -f "src/cairo-quartz-font.pc.tmp" ||
38495                 as_fn_error $? "failed to update src/cairo-quartz-font.pc" "$LINENO" 5
38496          ;;
38497     "cairo-quartz-font-uninstalled.pc":F)               mv "cairo-quartz-font-uninstalled.pc" "cairo-quartz-font-uninstalled.pc.tmp" &&
38498                 $SED "          s%@FEATURE_PC@%cairo-quartz-font%g;             s%@FEATURE_NAME@%Quartz font backend%g;         s%@FEATURE_BASE@%$quartz_font_BASE%g;           s%@FEATURE_REQUIRES@%$quartz_font_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_font_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_font_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_font_NONPKGCONFIG_CFLAGS%g;             " < "cairo-quartz-font-uninstalled.pc.tmp" > "cairo-quartz-font-uninstalled.pc" && rm -f "cairo-quartz-font-uninstalled.pc.tmp" ||
38499                 as_fn_error $? "failed to update cairo-quartz-font-uninstalled.pc" "$LINENO" 5
38500          ;;
38501     "src/cairo-quartz-image.pc":F)              mv "src/cairo-quartz-image.pc" "src/cairo-quartz-image.pc.tmp" &&
38502                 $SED "          s%@FEATURE_PC@%cairo-quartz-image%g;            s%@FEATURE_NAME@%Quartz Image surface backend%g;                s%@FEATURE_BASE@%$quartz_image_BASE%g;          s%@FEATURE_REQUIRES@%$quartz_image_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_image_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_image_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_image_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-quartz-image.pc.tmp" > "src/cairo-quartz-image.pc" && rm -f "src/cairo-quartz-image.pc.tmp" ||
38503                 as_fn_error $? "failed to update src/cairo-quartz-image.pc" "$LINENO" 5
38504          ;;
38505     "cairo-quartz-image-uninstalled.pc":F)              mv "cairo-quartz-image-uninstalled.pc" "cairo-quartz-image-uninstalled.pc.tmp" &&
38506                 $SED "          s%@FEATURE_PC@%cairo-quartz-image%g;            s%@FEATURE_NAME@%Quartz Image surface backend%g;                s%@FEATURE_BASE@%$quartz_image_BASE%g;          s%@FEATURE_REQUIRES@%$quartz_image_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$quartz_image_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$quartz_image_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$quartz_image_NONPKGCONFIG_CFLAGS%g;            " < "cairo-quartz-image-uninstalled.pc.tmp" > "cairo-quartz-image-uninstalled.pc" && rm -f "cairo-quartz-image-uninstalled.pc.tmp" ||
38507                 as_fn_error $? "failed to update cairo-quartz-image-uninstalled.pc" "$LINENO" 5
38508          ;;
38509     "src/cairo-win32.pc":F)             mv "src/cairo-win32.pc" "src/cairo-win32.pc.tmp" &&
38510                 $SED "          s%@FEATURE_PC@%cairo-win32%g;           s%@FEATURE_NAME@%Microsoft Windows surface backend%g;           s%@FEATURE_BASE@%$win32_BASE%g;         s%@FEATURE_REQUIRES@%$win32_REQUIRES%g;         s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_NONPKGCONFIG_LIBS%g;               s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_NONPKGCONFIG_EXTRA_LIBS%g;           s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_NONPKGCONFIG_CFLAGS%g;           " < "src/cairo-win32.pc.tmp" > "src/cairo-win32.pc" && rm -f "src/cairo-win32.pc.tmp" ||
38511                 as_fn_error $? "failed to update src/cairo-win32.pc" "$LINENO" 5
38512          ;;
38513     "cairo-win32-uninstalled.pc":F)             mv "cairo-win32-uninstalled.pc" "cairo-win32-uninstalled.pc.tmp" &&
38514                 $SED "          s%@FEATURE_PC@%cairo-win32%g;           s%@FEATURE_NAME@%Microsoft Windows surface backend%g;           s%@FEATURE_BASE@%$win32_BASE%g;         s%@FEATURE_REQUIRES@%$win32_REQUIRES%g;         s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_NONPKGCONFIG_LIBS%g;               s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_NONPKGCONFIG_EXTRA_LIBS%g;           s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_NONPKGCONFIG_CFLAGS%g;           " < "cairo-win32-uninstalled.pc.tmp" > "cairo-win32-uninstalled.pc" && rm -f "cairo-win32-uninstalled.pc.tmp" ||
38515                 as_fn_error $? "failed to update cairo-win32-uninstalled.pc" "$LINENO" 5
38516          ;;
38517     "src/cairo-win32-font.pc":F)                mv "src/cairo-win32-font.pc" "src/cairo-win32-font.pc.tmp" &&
38518                 $SED "          s%@FEATURE_PC@%cairo-win32-font%g;              s%@FEATURE_NAME@%Microsoft Windows font backend%g;              s%@FEATURE_BASE@%$win32_font_BASE%g;            s%@FEATURE_REQUIRES@%$win32_font_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_font_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_font_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_font_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-win32-font.pc.tmp" > "src/cairo-win32-font.pc" && rm -f "src/cairo-win32-font.pc.tmp" ||
38519                 as_fn_error $? "failed to update src/cairo-win32-font.pc" "$LINENO" 5
38520          ;;
38521     "cairo-win32-font-uninstalled.pc":F)                mv "cairo-win32-font-uninstalled.pc" "cairo-win32-font-uninstalled.pc.tmp" &&
38522                 $SED "          s%@FEATURE_PC@%cairo-win32-font%g;              s%@FEATURE_NAME@%Microsoft Windows font backend%g;              s%@FEATURE_BASE@%$win32_font_BASE%g;            s%@FEATURE_REQUIRES@%$win32_font_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$win32_font_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$win32_font_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$win32_font_NONPKGCONFIG_CFLAGS%g;              " < "cairo-win32-font-uninstalled.pc.tmp" > "cairo-win32-font-uninstalled.pc" && rm -f "cairo-win32-font-uninstalled.pc.tmp" ||
38523                 as_fn_error $? "failed to update cairo-win32-font-uninstalled.pc" "$LINENO" 5
38524          ;;
38525     "src/cairo-skia.pc":F)              mv "src/cairo-skia.pc" "src/cairo-skia.pc.tmp" &&
38526                 $SED "          s%@FEATURE_PC@%cairo-skia%g;            s%@FEATURE_NAME@%Skia surface backend%g;                s%@FEATURE_BASE@%$skia_BASE%g;          s%@FEATURE_REQUIRES@%$skia_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$skia_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$skia_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$skia_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-skia.pc.tmp" > "src/cairo-skia.pc" && rm -f "src/cairo-skia.pc.tmp" ||
38527                 as_fn_error $? "failed to update src/cairo-skia.pc" "$LINENO" 5
38528          ;;
38529     "cairo-skia-uninstalled.pc":F)              mv "cairo-skia-uninstalled.pc" "cairo-skia-uninstalled.pc.tmp" &&
38530                 $SED "          s%@FEATURE_PC@%cairo-skia%g;            s%@FEATURE_NAME@%Skia surface backend%g;                s%@FEATURE_BASE@%$skia_BASE%g;          s%@FEATURE_REQUIRES@%$skia_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$skia_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$skia_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$skia_NONPKGCONFIG_CFLAGS%g;            " < "cairo-skia-uninstalled.pc.tmp" > "cairo-skia-uninstalled.pc" && rm -f "cairo-skia-uninstalled.pc.tmp" ||
38531                 as_fn_error $? "failed to update cairo-skia-uninstalled.pc" "$LINENO" 5
38532          ;;
38533     "src/cairo-os2.pc":F)               mv "src/cairo-os2.pc" "src/cairo-os2.pc.tmp" &&
38534                 $SED "          s%@FEATURE_PC@%cairo-os2%g;             s%@FEATURE_NAME@%OS/2 surface backend%g;                s%@FEATURE_BASE@%$os2_BASE%g;           s%@FEATURE_REQUIRES@%$os2_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$os2_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$os2_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$os2_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-os2.pc.tmp" > "src/cairo-os2.pc" && rm -f "src/cairo-os2.pc.tmp" ||
38535                 as_fn_error $? "failed to update src/cairo-os2.pc" "$LINENO" 5
38536          ;;
38537     "cairo-os2-uninstalled.pc":F)               mv "cairo-os2-uninstalled.pc" "cairo-os2-uninstalled.pc.tmp" &&
38538                 $SED "          s%@FEATURE_PC@%cairo-os2%g;             s%@FEATURE_NAME@%OS/2 surface backend%g;                s%@FEATURE_BASE@%$os2_BASE%g;           s%@FEATURE_REQUIRES@%$os2_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$os2_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$os2_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$os2_NONPKGCONFIG_CFLAGS%g;             " < "cairo-os2-uninstalled.pc.tmp" > "cairo-os2-uninstalled.pc" && rm -f "cairo-os2-uninstalled.pc.tmp" ||
38539                 as_fn_error $? "failed to update cairo-os2-uninstalled.pc" "$LINENO" 5
38540          ;;
38541     "src/cairo-beos.pc":F)              mv "src/cairo-beos.pc" "src/cairo-beos.pc.tmp" &&
38542                 $SED "          s%@FEATURE_PC@%cairo-beos%g;            s%@FEATURE_NAME@%BeOS/Zeta surface backend%g;           s%@FEATURE_BASE@%$beos_BASE%g;          s%@FEATURE_REQUIRES@%$beos_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$beos_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$beos_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$beos_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-beos.pc.tmp" > "src/cairo-beos.pc" && rm -f "src/cairo-beos.pc.tmp" ||
38543                 as_fn_error $? "failed to update src/cairo-beos.pc" "$LINENO" 5
38544          ;;
38545     "cairo-beos-uninstalled.pc":F)              mv "cairo-beos-uninstalled.pc" "cairo-beos-uninstalled.pc.tmp" &&
38546                 $SED "          s%@FEATURE_PC@%cairo-beos%g;            s%@FEATURE_NAME@%BeOS/Zeta surface backend%g;           s%@FEATURE_BASE@%$beos_BASE%g;          s%@FEATURE_REQUIRES@%$beos_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$beos_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$beos_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$beos_NONPKGCONFIG_CFLAGS%g;            " < "cairo-beos-uninstalled.pc.tmp" > "cairo-beos-uninstalled.pc" && rm -f "cairo-beos-uninstalled.pc.tmp" ||
38547                 as_fn_error $? "failed to update cairo-beos-uninstalled.pc" "$LINENO" 5
38548          ;;
38549     "src/cairo-drm.pc":F)               mv "src/cairo-drm.pc" "src/cairo-drm.pc.tmp" &&
38550                 $SED "          s%@FEATURE_PC@%cairo-drm%g;             s%@FEATURE_NAME@%DRM surface backend%g;         s%@FEATURE_BASE@%$drm_BASE%g;           s%@FEATURE_REQUIRES@%$drm_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$drm_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$drm_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$drm_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-drm.pc.tmp" > "src/cairo-drm.pc" && rm -f "src/cairo-drm.pc.tmp" ||
38551                 as_fn_error $? "failed to update src/cairo-drm.pc" "$LINENO" 5
38552          ;;
38553     "cairo-drm-uninstalled.pc":F)               mv "cairo-drm-uninstalled.pc" "cairo-drm-uninstalled.pc.tmp" &&
38554                 $SED "          s%@FEATURE_PC@%cairo-drm%g;             s%@FEATURE_NAME@%DRM surface backend%g;         s%@FEATURE_BASE@%$drm_BASE%g;           s%@FEATURE_REQUIRES@%$drm_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$drm_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$drm_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$drm_NONPKGCONFIG_CFLAGS%g;             " < "cairo-drm-uninstalled.pc.tmp" > "cairo-drm-uninstalled.pc" && rm -f "cairo-drm-uninstalled.pc.tmp" ||
38555                 as_fn_error $? "failed to update cairo-drm-uninstalled.pc" "$LINENO" 5
38556          ;;
38557     "src/cairo-gallium.pc":F)           mv "src/cairo-gallium.pc" "src/cairo-gallium.pc.tmp" &&
38558                 $SED "          s%@FEATURE_PC@%cairo-gallium%g;         s%@FEATURE_NAME@%Gallium3D surface backend%g;           s%@FEATURE_BASE@%$gallium_BASE%g;               s%@FEATURE_REQUIRES@%$gallium_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$gallium_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gallium_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gallium_NONPKGCONFIG_CFLAGS%g;         " < "src/cairo-gallium.pc.tmp" > "src/cairo-gallium.pc" && rm -f "src/cairo-gallium.pc.tmp" ||
38559                 as_fn_error $? "failed to update src/cairo-gallium.pc" "$LINENO" 5
38560          ;;
38561     "cairo-gallium-uninstalled.pc":F)           mv "cairo-gallium-uninstalled.pc" "cairo-gallium-uninstalled.pc.tmp" &&
38562                 $SED "          s%@FEATURE_PC@%cairo-gallium%g;         s%@FEATURE_NAME@%Gallium3D surface backend%g;           s%@FEATURE_BASE@%$gallium_BASE%g;               s%@FEATURE_REQUIRES@%$gallium_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$gallium_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gallium_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gallium_NONPKGCONFIG_CFLAGS%g;         " < "cairo-gallium-uninstalled.pc.tmp" > "cairo-gallium-uninstalled.pc" && rm -f "cairo-gallium-uninstalled.pc.tmp" ||
38563                 as_fn_error $? "failed to update cairo-gallium-uninstalled.pc" "$LINENO" 5
38564          ;;
38565     "src/cairo-png.pc":F)               mv "src/cairo-png.pc" "src/cairo-png.pc.tmp" &&
38566                 $SED "          s%@FEATURE_PC@%cairo-png%g;             s%@FEATURE_NAME@%PNG functions%g;               s%@FEATURE_BASE@%$png_BASE%g;           s%@FEATURE_REQUIRES@%$png_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$png_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$png_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$png_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-png.pc.tmp" > "src/cairo-png.pc" && rm -f "src/cairo-png.pc.tmp" ||
38567                 as_fn_error $? "failed to update src/cairo-png.pc" "$LINENO" 5
38568          ;;
38569     "cairo-png-uninstalled.pc":F)               mv "cairo-png-uninstalled.pc" "cairo-png-uninstalled.pc.tmp" &&
38570                 $SED "          s%@FEATURE_PC@%cairo-png%g;             s%@FEATURE_NAME@%PNG functions%g;               s%@FEATURE_BASE@%$png_BASE%g;           s%@FEATURE_REQUIRES@%$png_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$png_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$png_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$png_NONPKGCONFIG_CFLAGS%g;             " < "cairo-png-uninstalled.pc.tmp" > "cairo-png-uninstalled.pc" && rm -f "cairo-png-uninstalled.pc.tmp" ||
38571                 as_fn_error $? "failed to update cairo-png-uninstalled.pc" "$LINENO" 5
38572          ;;
38573     "src/cairo-gl.pc":F)                mv "src/cairo-gl.pc" "src/cairo-gl.pc.tmp" &&
38574                 $SED "          s%@FEATURE_PC@%cairo-gl%g;              s%@FEATURE_NAME@%OpenGL surface backend%g;              s%@FEATURE_BASE@%$gl_BASE%g;            s%@FEATURE_REQUIRES@%$gl_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$gl_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gl_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gl_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-gl.pc.tmp" > "src/cairo-gl.pc" && rm -f "src/cairo-gl.pc.tmp" ||
38575                 as_fn_error $? "failed to update src/cairo-gl.pc" "$LINENO" 5
38576          ;;
38577     "cairo-gl-uninstalled.pc":F)                mv "cairo-gl-uninstalled.pc" "cairo-gl-uninstalled.pc.tmp" &&
38578                 $SED "          s%@FEATURE_PC@%cairo-gl%g;              s%@FEATURE_NAME@%OpenGL surface backend%g;              s%@FEATURE_BASE@%$gl_BASE%g;            s%@FEATURE_REQUIRES@%$gl_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$gl_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gl_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gl_NONPKGCONFIG_CFLAGS%g;              " < "cairo-gl-uninstalled.pc.tmp" > "cairo-gl-uninstalled.pc" && rm -f "cairo-gl-uninstalled.pc.tmp" ||
38579                 as_fn_error $? "failed to update cairo-gl-uninstalled.pc" "$LINENO" 5
38580          ;;
38581     "src/cairo-glesv2.pc":F)            mv "src/cairo-glesv2.pc" "src/cairo-glesv2.pc.tmp" &&
38582                 $SED "          s%@FEATURE_PC@%cairo-glesv2%g;          s%@FEATURE_NAME@%OpenGLESv2 surface backend%g;          s%@FEATURE_BASE@%$glesv2_BASE%g;                s%@FEATURE_REQUIRES@%$glesv2_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv2_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv2_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv2_NONPKGCONFIG_CFLAGS%g;          " < "src/cairo-glesv2.pc.tmp" > "src/cairo-glesv2.pc" && rm -f "src/cairo-glesv2.pc.tmp" ||
38583                 as_fn_error $? "failed to update src/cairo-glesv2.pc" "$LINENO" 5
38584          ;;
38585     "cairo-glesv2-uninstalled.pc":F)            mv "cairo-glesv2-uninstalled.pc" "cairo-glesv2-uninstalled.pc.tmp" &&
38586                 $SED "          s%@FEATURE_PC@%cairo-glesv2%g;          s%@FEATURE_NAME@%OpenGLESv2 surface backend%g;          s%@FEATURE_BASE@%$glesv2_BASE%g;                s%@FEATURE_REQUIRES@%$glesv2_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$glesv2_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glesv2_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glesv2_NONPKGCONFIG_CFLAGS%g;          " < "cairo-glesv2-uninstalled.pc.tmp" > "cairo-glesv2-uninstalled.pc" && rm -f "cairo-glesv2-uninstalled.pc.tmp" ||
38587                 as_fn_error $? "failed to update cairo-glesv2-uninstalled.pc" "$LINENO" 5
38588          ;;
38589     "src/cairo-cogl.pc":F)              mv "src/cairo-cogl.pc" "src/cairo-cogl.pc.tmp" &&
38590                 $SED "          s%@FEATURE_PC@%cairo-cogl%g;            s%@FEATURE_NAME@%Cogl surface backend%g;                s%@FEATURE_BASE@%$cogl_BASE%g;          s%@FEATURE_REQUIRES@%$cogl_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$cogl_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$cogl_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$cogl_NONPKGCONFIG_CFLAGS%g;            " < "src/cairo-cogl.pc.tmp" > "src/cairo-cogl.pc" && rm -f "src/cairo-cogl.pc.tmp" ||
38591                 as_fn_error $? "failed to update src/cairo-cogl.pc" "$LINENO" 5
38592          ;;
38593     "cairo-cogl-uninstalled.pc":F)              mv "cairo-cogl-uninstalled.pc" "cairo-cogl-uninstalled.pc.tmp" &&
38594                 $SED "          s%@FEATURE_PC@%cairo-cogl%g;            s%@FEATURE_NAME@%Cogl surface backend%g;                s%@FEATURE_BASE@%$cogl_BASE%g;          s%@FEATURE_REQUIRES@%$cogl_REQUIRES%g;          s%@FEATURE_NONPKGCONFIG_LIBS@%$cogl_NONPKGCONFIG_LIBS%g;                s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$cogl_NONPKGCONFIG_EXTRA_LIBS%g;            s%@FEATURE_NONPKGCONFIG_CFLAGS@%$cogl_NONPKGCONFIG_CFLAGS%g;            " < "cairo-cogl-uninstalled.pc.tmp" > "cairo-cogl-uninstalled.pc" && rm -f "cairo-cogl-uninstalled.pc.tmp" ||
38595                 as_fn_error $? "failed to update cairo-cogl-uninstalled.pc" "$LINENO" 5
38596          ;;
38597     "src/cairo-directfb.pc":F)          mv "src/cairo-directfb.pc" "src/cairo-directfb.pc.tmp" &&
38598                 $SED "          s%@FEATURE_PC@%cairo-directfb%g;                s%@FEATURE_NAME@%directfb surface backend%g;            s%@FEATURE_BASE@%$directfb_BASE%g;              s%@FEATURE_REQUIRES@%$directfb_REQUIRES%g;              s%@FEATURE_NONPKGCONFIG_LIBS@%$directfb_NONPKGCONFIG_LIBS%g;            s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$directfb_NONPKGCONFIG_EXTRA_LIBS%g;                s%@FEATURE_NONPKGCONFIG_CFLAGS@%$directfb_NONPKGCONFIG_CFLAGS%g;                " < "src/cairo-directfb.pc.tmp" > "src/cairo-directfb.pc" && rm -f "src/cairo-directfb.pc.tmp" ||
38599                 as_fn_error $? "failed to update src/cairo-directfb.pc" "$LINENO" 5
38600          ;;
38601     "cairo-directfb-uninstalled.pc":F)          mv "cairo-directfb-uninstalled.pc" "cairo-directfb-uninstalled.pc.tmp" &&
38602                 $SED "          s%@FEATURE_PC@%cairo-directfb%g;                s%@FEATURE_NAME@%directfb surface backend%g;            s%@FEATURE_BASE@%$directfb_BASE%g;              s%@FEATURE_REQUIRES@%$directfb_REQUIRES%g;              s%@FEATURE_NONPKGCONFIG_LIBS@%$directfb_NONPKGCONFIG_LIBS%g;            s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$directfb_NONPKGCONFIG_EXTRA_LIBS%g;                s%@FEATURE_NONPKGCONFIG_CFLAGS@%$directfb_NONPKGCONFIG_CFLAGS%g;                " < "cairo-directfb-uninstalled.pc.tmp" > "cairo-directfb-uninstalled.pc" && rm -f "cairo-directfb-uninstalled.pc.tmp" ||
38603                 as_fn_error $? "failed to update cairo-directfb-uninstalled.pc" "$LINENO" 5
38604          ;;
38605     "src/cairo-vg.pc":F)                mv "src/cairo-vg.pc" "src/cairo-vg.pc.tmp" &&
38606                 $SED "          s%@FEATURE_PC@%cairo-vg%g;              s%@FEATURE_NAME@%OpenVG surface backend%g;              s%@FEATURE_BASE@%$vg_BASE%g;            s%@FEATURE_REQUIRES@%$vg_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$vg_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$vg_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$vg_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-vg.pc.tmp" > "src/cairo-vg.pc" && rm -f "src/cairo-vg.pc.tmp" ||
38607                 as_fn_error $? "failed to update src/cairo-vg.pc" "$LINENO" 5
38608          ;;
38609     "cairo-vg-uninstalled.pc":F)                mv "cairo-vg-uninstalled.pc" "cairo-vg-uninstalled.pc.tmp" &&
38610                 $SED "          s%@FEATURE_PC@%cairo-vg%g;              s%@FEATURE_NAME@%OpenVG surface backend%g;              s%@FEATURE_BASE@%$vg_BASE%g;            s%@FEATURE_REQUIRES@%$vg_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$vg_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$vg_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$vg_NONPKGCONFIG_CFLAGS%g;              " < "cairo-vg-uninstalled.pc.tmp" > "cairo-vg-uninstalled.pc" && rm -f "cairo-vg-uninstalled.pc.tmp" ||
38611                 as_fn_error $? "failed to update cairo-vg-uninstalled.pc" "$LINENO" 5
38612          ;;
38613     "src/cairo-egl.pc":F)               mv "src/cairo-egl.pc" "src/cairo-egl.pc.tmp" &&
38614                 $SED "          s%@FEATURE_PC@%cairo-egl%g;             s%@FEATURE_NAME@%EGL functions%g;               s%@FEATURE_BASE@%$egl_BASE%g;           s%@FEATURE_REQUIRES@%$egl_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$egl_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$egl_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$egl_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-egl.pc.tmp" > "src/cairo-egl.pc" && rm -f "src/cairo-egl.pc.tmp" ||
38615                 as_fn_error $? "failed to update src/cairo-egl.pc" "$LINENO" 5
38616          ;;
38617     "cairo-egl-uninstalled.pc":F)               mv "cairo-egl-uninstalled.pc" "cairo-egl-uninstalled.pc.tmp" &&
38618                 $SED "          s%@FEATURE_PC@%cairo-egl%g;             s%@FEATURE_NAME@%EGL functions%g;               s%@FEATURE_BASE@%$egl_BASE%g;           s%@FEATURE_REQUIRES@%$egl_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$egl_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$egl_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$egl_NONPKGCONFIG_CFLAGS%g;             " < "cairo-egl-uninstalled.pc.tmp" > "cairo-egl-uninstalled.pc" && rm -f "cairo-egl-uninstalled.pc.tmp" ||
38619                 as_fn_error $? "failed to update cairo-egl-uninstalled.pc" "$LINENO" 5
38620          ;;
38621     "src/cairo-glx.pc":F)               mv "src/cairo-glx.pc" "src/cairo-glx.pc.tmp" &&
38622                 $SED "          s%@FEATURE_PC@%cairo-glx%g;             s%@FEATURE_NAME@%GLX functions%g;               s%@FEATURE_BASE@%$glx_BASE%g;           s%@FEATURE_REQUIRES@%$glx_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$glx_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glx_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glx_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-glx.pc.tmp" > "src/cairo-glx.pc" && rm -f "src/cairo-glx.pc.tmp" ||
38623                 as_fn_error $? "failed to update src/cairo-glx.pc" "$LINENO" 5
38624          ;;
38625     "cairo-glx-uninstalled.pc":F)               mv "cairo-glx-uninstalled.pc" "cairo-glx-uninstalled.pc.tmp" &&
38626                 $SED "          s%@FEATURE_PC@%cairo-glx%g;             s%@FEATURE_NAME@%GLX functions%g;               s%@FEATURE_BASE@%$glx_BASE%g;           s%@FEATURE_REQUIRES@%$glx_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$glx_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$glx_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$glx_NONPKGCONFIG_CFLAGS%g;             " < "cairo-glx-uninstalled.pc.tmp" > "cairo-glx-uninstalled.pc" && rm -f "cairo-glx-uninstalled.pc.tmp" ||
38627                 as_fn_error $? "failed to update cairo-glx-uninstalled.pc" "$LINENO" 5
38628          ;;
38629     "src/cairo-wgl.pc":F)               mv "src/cairo-wgl.pc" "src/cairo-wgl.pc.tmp" &&
38630                 $SED "          s%@FEATURE_PC@%cairo-wgl%g;             s%@FEATURE_NAME@%WGL functions%g;               s%@FEATURE_BASE@%$wgl_BASE%g;           s%@FEATURE_REQUIRES@%$wgl_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$wgl_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$wgl_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$wgl_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-wgl.pc.tmp" > "src/cairo-wgl.pc" && rm -f "src/cairo-wgl.pc.tmp" ||
38631                 as_fn_error $? "failed to update src/cairo-wgl.pc" "$LINENO" 5
38632          ;;
38633     "cairo-wgl-uninstalled.pc":F)               mv "cairo-wgl-uninstalled.pc" "cairo-wgl-uninstalled.pc.tmp" &&
38634                 $SED "          s%@FEATURE_PC@%cairo-wgl%g;             s%@FEATURE_NAME@%WGL functions%g;               s%@FEATURE_BASE@%$wgl_BASE%g;           s%@FEATURE_REQUIRES@%$wgl_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$wgl_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$wgl_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$wgl_NONPKGCONFIG_CFLAGS%g;             " < "cairo-wgl-uninstalled.pc.tmp" > "cairo-wgl-uninstalled.pc" && rm -f "cairo-wgl-uninstalled.pc.tmp" ||
38635                 as_fn_error $? "failed to update cairo-wgl-uninstalled.pc" "$LINENO" 5
38636          ;;
38637     "src/cairo-script.pc":F)            mv "src/cairo-script.pc" "src/cairo-script.pc.tmp" &&
38638                 $SED "          s%@FEATURE_PC@%cairo-script%g;          s%@FEATURE_NAME@%script surface backend%g;              s%@FEATURE_BASE@%$script_BASE%g;                s%@FEATURE_REQUIRES@%$script_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$script_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$script_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$script_NONPKGCONFIG_CFLAGS%g;          " < "src/cairo-script.pc.tmp" > "src/cairo-script.pc" && rm -f "src/cairo-script.pc.tmp" ||
38639                 as_fn_error $? "failed to update src/cairo-script.pc" "$LINENO" 5
38640          ;;
38641     "cairo-script-uninstalled.pc":F)            mv "cairo-script-uninstalled.pc" "cairo-script-uninstalled.pc.tmp" &&
38642                 $SED "          s%@FEATURE_PC@%cairo-script%g;          s%@FEATURE_NAME@%script surface backend%g;              s%@FEATURE_BASE@%$script_BASE%g;                s%@FEATURE_REQUIRES@%$script_REQUIRES%g;                s%@FEATURE_NONPKGCONFIG_LIBS@%$script_NONPKGCONFIG_LIBS%g;              s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$script_NONPKGCONFIG_EXTRA_LIBS%g;          s%@FEATURE_NONPKGCONFIG_CFLAGS@%$script_NONPKGCONFIG_CFLAGS%g;          " < "cairo-script-uninstalled.pc.tmp" > "cairo-script-uninstalled.pc" && rm -f "cairo-script-uninstalled.pc.tmp" ||
38643                 as_fn_error $? "failed to update cairo-script-uninstalled.pc" "$LINENO" 5
38644          ;;
38645     "src/cairo-ft.pc":F)                mv "src/cairo-ft.pc" "src/cairo-ft.pc.tmp" &&
38646                 $SED "          s%@FEATURE_PC@%cairo-ft%g;              s%@FEATURE_NAME@%FreeType font backend%g;               s%@FEATURE_BASE@%$ft_BASE%g;            s%@FEATURE_REQUIRES@%$ft_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$ft_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ft_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ft_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-ft.pc.tmp" > "src/cairo-ft.pc" && rm -f "src/cairo-ft.pc.tmp" ||
38647                 as_fn_error $? "failed to update src/cairo-ft.pc" "$LINENO" 5
38648          ;;
38649     "cairo-ft-uninstalled.pc":F)                mv "cairo-ft-uninstalled.pc" "cairo-ft-uninstalled.pc.tmp" &&
38650                 $SED "          s%@FEATURE_PC@%cairo-ft%g;              s%@FEATURE_NAME@%FreeType font backend%g;               s%@FEATURE_BASE@%$ft_BASE%g;            s%@FEATURE_REQUIRES@%$ft_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$ft_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ft_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ft_NONPKGCONFIG_CFLAGS%g;              " < "cairo-ft-uninstalled.pc.tmp" > "cairo-ft-uninstalled.pc" && rm -f "cairo-ft-uninstalled.pc.tmp" ||
38651                 as_fn_error $? "failed to update cairo-ft-uninstalled.pc" "$LINENO" 5
38652          ;;
38653     "src/cairo-fc.pc":F)                mv "src/cairo-fc.pc" "src/cairo-fc.pc.tmp" &&
38654                 $SED "          s%@FEATURE_PC@%cairo-fc%g;              s%@FEATURE_NAME@%Fontconfig font backend%g;             s%@FEATURE_BASE@%$fc_BASE%g;            s%@FEATURE_REQUIRES@%$fc_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$fc_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$fc_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$fc_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-fc.pc.tmp" > "src/cairo-fc.pc" && rm -f "src/cairo-fc.pc.tmp" ||
38655                 as_fn_error $? "failed to update src/cairo-fc.pc" "$LINENO" 5
38656          ;;
38657     "cairo-fc-uninstalled.pc":F)                mv "cairo-fc-uninstalled.pc" "cairo-fc-uninstalled.pc.tmp" &&
38658                 $SED "          s%@FEATURE_PC@%cairo-fc%g;              s%@FEATURE_NAME@%Fontconfig font backend%g;             s%@FEATURE_BASE@%$fc_BASE%g;            s%@FEATURE_REQUIRES@%$fc_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$fc_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$fc_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$fc_NONPKGCONFIG_CFLAGS%g;              " < "cairo-fc-uninstalled.pc.tmp" > "cairo-fc-uninstalled.pc" && rm -f "cairo-fc-uninstalled.pc.tmp" ||
38659                 as_fn_error $? "failed to update cairo-fc-uninstalled.pc" "$LINENO" 5
38660          ;;
38661     "src/cairo-ps.pc":F)                mv "src/cairo-ps.pc" "src/cairo-ps.pc.tmp" &&
38662                 $SED "          s%@FEATURE_PC@%cairo-ps%g;              s%@FEATURE_NAME@%PostScript surface backend%g;          s%@FEATURE_BASE@%$ps_BASE%g;            s%@FEATURE_REQUIRES@%$ps_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$ps_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ps_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ps_NONPKGCONFIG_CFLAGS%g;              " < "src/cairo-ps.pc.tmp" > "src/cairo-ps.pc" && rm -f "src/cairo-ps.pc.tmp" ||
38663                 as_fn_error $? "failed to update src/cairo-ps.pc" "$LINENO" 5
38664          ;;
38665     "cairo-ps-uninstalled.pc":F)                mv "cairo-ps-uninstalled.pc" "cairo-ps-uninstalled.pc.tmp" &&
38666                 $SED "          s%@FEATURE_PC@%cairo-ps%g;              s%@FEATURE_NAME@%PostScript surface backend%g;          s%@FEATURE_BASE@%$ps_BASE%g;            s%@FEATURE_REQUIRES@%$ps_REQUIRES%g;            s%@FEATURE_NONPKGCONFIG_LIBS@%$ps_NONPKGCONFIG_LIBS%g;          s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$ps_NONPKGCONFIG_EXTRA_LIBS%g;              s%@FEATURE_NONPKGCONFIG_CFLAGS@%$ps_NONPKGCONFIG_CFLAGS%g;              " < "cairo-ps-uninstalled.pc.tmp" > "cairo-ps-uninstalled.pc" && rm -f "cairo-ps-uninstalled.pc.tmp" ||
38667                 as_fn_error $? "failed to update cairo-ps-uninstalled.pc" "$LINENO" 5
38668          ;;
38669     "src/cairo-pdf.pc":F)               mv "src/cairo-pdf.pc" "src/cairo-pdf.pc.tmp" &&
38670                 $SED "          s%@FEATURE_PC@%cairo-pdf%g;             s%@FEATURE_NAME@%PDF surface backend%g;         s%@FEATURE_BASE@%$pdf_BASE%g;           s%@FEATURE_REQUIRES@%$pdf_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$pdf_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$pdf_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$pdf_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-pdf.pc.tmp" > "src/cairo-pdf.pc" && rm -f "src/cairo-pdf.pc.tmp" ||
38671                 as_fn_error $? "failed to update src/cairo-pdf.pc" "$LINENO" 5
38672          ;;
38673     "cairo-pdf-uninstalled.pc":F)               mv "cairo-pdf-uninstalled.pc" "cairo-pdf-uninstalled.pc.tmp" &&
38674                 $SED "          s%@FEATURE_PC@%cairo-pdf%g;             s%@FEATURE_NAME@%PDF surface backend%g;         s%@FEATURE_BASE@%$pdf_BASE%g;           s%@FEATURE_REQUIRES@%$pdf_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$pdf_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$pdf_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$pdf_NONPKGCONFIG_CFLAGS%g;             " < "cairo-pdf-uninstalled.pc.tmp" > "cairo-pdf-uninstalled.pc" && rm -f "cairo-pdf-uninstalled.pc.tmp" ||
38675                 as_fn_error $? "failed to update cairo-pdf-uninstalled.pc" "$LINENO" 5
38676          ;;
38677     "src/cairo-svg.pc":F)               mv "src/cairo-svg.pc" "src/cairo-svg.pc.tmp" &&
38678                 $SED "          s%@FEATURE_PC@%cairo-svg%g;             s%@FEATURE_NAME@%SVG surface backend%g;         s%@FEATURE_BASE@%$svg_BASE%g;           s%@FEATURE_REQUIRES@%$svg_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$svg_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$svg_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$svg_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-svg.pc.tmp" > "src/cairo-svg.pc" && rm -f "src/cairo-svg.pc.tmp" ||
38679                 as_fn_error $? "failed to update src/cairo-svg.pc" "$LINENO" 5
38680          ;;
38681     "cairo-svg-uninstalled.pc":F)               mv "cairo-svg-uninstalled.pc" "cairo-svg-uninstalled.pc.tmp" &&
38682                 $SED "          s%@FEATURE_PC@%cairo-svg%g;             s%@FEATURE_NAME@%SVG surface backend%g;         s%@FEATURE_BASE@%$svg_BASE%g;           s%@FEATURE_REQUIRES@%$svg_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$svg_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$svg_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$svg_NONPKGCONFIG_CFLAGS%g;             " < "cairo-svg-uninstalled.pc.tmp" > "cairo-svg-uninstalled.pc" && rm -f "cairo-svg-uninstalled.pc.tmp" ||
38683                 as_fn_error $? "failed to update cairo-svg-uninstalled.pc" "$LINENO" 5
38684          ;;
38685     "src/cairo-tee.pc":F)               mv "src/cairo-tee.pc" "src/cairo-tee.pc.tmp" &&
38686                 $SED "          s%@FEATURE_PC@%cairo-tee%g;             s%@FEATURE_NAME@%tee surface backend%g;         s%@FEATURE_BASE@%$tee_BASE%g;           s%@FEATURE_REQUIRES@%$tee_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$tee_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$tee_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$tee_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-tee.pc.tmp" > "src/cairo-tee.pc" && rm -f "src/cairo-tee.pc.tmp" ||
38687                 as_fn_error $? "failed to update src/cairo-tee.pc" "$LINENO" 5
38688          ;;
38689     "cairo-tee-uninstalled.pc":F)               mv "cairo-tee-uninstalled.pc" "cairo-tee-uninstalled.pc.tmp" &&
38690                 $SED "          s%@FEATURE_PC@%cairo-tee%g;             s%@FEATURE_NAME@%tee surface backend%g;         s%@FEATURE_BASE@%$tee_BASE%g;           s%@FEATURE_REQUIRES@%$tee_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$tee_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$tee_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$tee_NONPKGCONFIG_CFLAGS%g;             " < "cairo-tee-uninstalled.pc.tmp" > "cairo-tee-uninstalled.pc" && rm -f "cairo-tee-uninstalled.pc.tmp" ||
38691                 as_fn_error $? "failed to update cairo-tee-uninstalled.pc" "$LINENO" 5
38692          ;;
38693     "src/cairo-xml.pc":F)               mv "src/cairo-xml.pc" "src/cairo-xml.pc.tmp" &&
38694                 $SED "          s%@FEATURE_PC@%cairo-xml%g;             s%@FEATURE_NAME@%xml surface backend%g;         s%@FEATURE_BASE@%$xml_BASE%g;           s%@FEATURE_REQUIRES@%$xml_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$xml_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xml_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xml_NONPKGCONFIG_CFLAGS%g;             " < "src/cairo-xml.pc.tmp" > "src/cairo-xml.pc" && rm -f "src/cairo-xml.pc.tmp" ||
38695                 as_fn_error $? "failed to update src/cairo-xml.pc" "$LINENO" 5
38696          ;;
38697     "cairo-xml-uninstalled.pc":F)               mv "cairo-xml-uninstalled.pc" "cairo-xml-uninstalled.pc.tmp" &&
38698                 $SED "          s%@FEATURE_PC@%cairo-xml%g;             s%@FEATURE_NAME@%xml surface backend%g;         s%@FEATURE_BASE@%$xml_BASE%g;           s%@FEATURE_REQUIRES@%$xml_REQUIRES%g;           s%@FEATURE_NONPKGCONFIG_LIBS@%$xml_NONPKGCONFIG_LIBS%g;         s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$xml_NONPKGCONFIG_EXTRA_LIBS%g;             s%@FEATURE_NONPKGCONFIG_CFLAGS@%$xml_NONPKGCONFIG_CFLAGS%g;             " < "cairo-xml-uninstalled.pc.tmp" > "cairo-xml-uninstalled.pc" && rm -f "cairo-xml-uninstalled.pc.tmp" ||
38699                 as_fn_error $? "failed to update cairo-xml-uninstalled.pc" "$LINENO" 5
38700          ;;
38701     "src/cairo-gobject.pc":F)           mv "src/cairo-gobject.pc" "src/cairo-gobject.pc.tmp" &&
38702                 $SED "          s%@FEATURE_PC@%cairo-gobject%g;         s%@FEATURE_NAME@%gobject functions%g;           s%@FEATURE_BASE@%$gobject_BASE%g;               s%@FEATURE_REQUIRES@%$gobject_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$gobject_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gobject_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gobject_NONPKGCONFIG_CFLAGS%g;         " < "src/cairo-gobject.pc.tmp" > "src/cairo-gobject.pc" && rm -f "src/cairo-gobject.pc.tmp" ||
38703                 as_fn_error $? "failed to update src/cairo-gobject.pc" "$LINENO" 5
38704          ;;
38705     "cairo-gobject-uninstalled.pc":F)           mv "cairo-gobject-uninstalled.pc" "cairo-gobject-uninstalled.pc.tmp" &&
38706                 $SED "          s%@FEATURE_PC@%cairo-gobject%g;         s%@FEATURE_NAME@%gobject functions%g;           s%@FEATURE_BASE@%$gobject_BASE%g;               s%@FEATURE_REQUIRES@%$gobject_REQUIRES%g;               s%@FEATURE_NONPKGCONFIG_LIBS@%$gobject_NONPKGCONFIG_LIBS%g;             s%@FEATURE_NONPKGCONFIG_EXTRA_LIBS@%$gobject_NONPKGCONFIG_EXTRA_LIBS%g;         s%@FEATURE_NONPKGCONFIG_CFLAGS@%$gobject_NONPKGCONFIG_CFLAGS%g;         " < "cairo-gobject-uninstalled.pc.tmp" > "cairo-gobject-uninstalled.pc" && rm -f "cairo-gobject-uninstalled.pc.tmp" ||
38707                 as_fn_error $? "failed to update cairo-gobject-uninstalled.pc" "$LINENO" 5
38708          ;;
38709
38710   esac
38711 done # for ac_tag
38712
38713
38714 as_fn_exit 0
38715 _ACEOF
38716 ac_clean_files=$ac_clean_files_save
38717
38718 test $ac_write_fail = 0 ||
38719   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38720
38721
38722 # configure is writing to config.log, and then calls config.status.
38723 # config.status does its own redirection, appending to config.log.
38724 # Unfortunately, on DOS this fails, as config.log is still kept open
38725 # by configure, so config.status won't be able to write to it; its
38726 # output is simply discarded.  So we exec the FD to /dev/null,
38727 # effectively closing config.log, so it can be properly (re)opened and
38728 # appended to by config.status.  When coming back to configure, we
38729 # need to make the FD available again.
38730 if test "$no_create" != yes; then
38731   ac_cs_success=:
38732   ac_config_status_args=
38733   test "$silent" = yes &&
38734     ac_config_status_args="$ac_config_status_args --quiet"
38735   exec 5>/dev/null
38736   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38737   exec 5>>config.log
38738   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38739   # would make configure fail if this is the last instruction.
38740   $ac_cs_success || as_fn_exit 1
38741 fi
38742 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38743   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38744 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38745 fi
38746
38747         V="$CAIRO_VERSION_MAJOR.$CAIRO_VERSION_MINOR.$CAIRO_VERSION_MICRO"
38748         echo ""
38749         echo "cairo (version $V [$CAIRO_RELEASE_STATUS]) will be compiled with:"
38750         echo ""
38751         echo "The following surface backends:"
38752         echo "  Image:         yes (always builtin)"
38753         echo "  Recording:     yes (always builtin)"
38754         echo "  Observer:      yes (always builtin)"
38755         echo "  Mime:          yes (always builtin)"
38756         echo "  Tee:           $use_tee"
38757         echo "  XML:           $use_xml"
38758         echo "  Skia:          $use_skia"
38759         echo "  Xlib:          $use_xlib"
38760         echo "  Xlib Xrender:  $use_xlib_xrender"
38761         echo "  Qt:            $use_qt"
38762         echo "  Quartz:        $use_quartz"
38763         echo "  Quartz-image:  $use_quartz_image"
38764         echo "  XCB:           $use_xcb"
38765         echo "  Win32:         $use_win32"
38766         echo "  OS2:           $use_os2"
38767         echo "  CairoScript:   $use_script"
38768         echo "  PostScript:    $use_ps"
38769         echo "  PDF:           $use_pdf"
38770         echo "  SVG:           $use_svg"
38771         echo "  OpenGL:        $use_gl"
38772         echo "  OpenGL ES 2.0: $use_glesv2"
38773         echo "  BeOS:          $use_beos"
38774         echo "  DirectFB:      $use_directfb"
38775         echo "  OpenVG:        $use_vg"
38776         echo "  DRM:           $use_drm"
38777         echo "  Cogl:          $use_cogl"
38778         echo ""
38779         echo "The following font backends:"
38780         echo "  User:          yes (always builtin)"
38781         echo "  FreeType:      $use_ft"
38782         echo "  Fontconfig:    $use_fc"
38783         echo "  Win32:         $use_win32_font"
38784         echo "  Quartz:        $use_quartz_font"
38785         echo ""
38786         echo "The following functions:"
38787         echo "  PNG functions:   $use_png"
38788         echo "  GLX functions:   $use_glx"
38789         echo "  WGL functions:   $use_wgl"
38790         echo "  EGL functions:   $use_egl"
38791         echo "  X11-xcb functions: $use_xlib_xcb"
38792         echo "  XCB-shm functions: $use_xcb_shm"
38793         echo ""
38794         echo "The following features and utilities:"
38795         echo "  cairo-trace:                $use_trace"
38796         echo "  cairo-script-interpreter:   $use_interpreter"
38797         echo ""
38798         echo "And the following internal features:"
38799         echo "  pthread:       $use_pthread"
38800         echo "  gtk-doc:       $enable_gtk_doc"
38801         echo "  gcov support:  $use_gcov"
38802         echo "  symbol-lookup: $use_symbol_lookup"
38803         echo "  test surfaces: $use_test_surfaces"
38804         echo "  ps testing:    $test_ps"
38805         echo "  pdf testing:   $test_pdf"
38806         echo "  svg testing:   $test_svg"
38807         if test x"$use_win32" = "xyes"; then
38808                 echo "  win32 printing testing:    $test_win32_printing"
38809         fi
38810         echo "$CAIRO_WARNING_MESSAGE"
38811         echo ""
38812