Upload Tizen2.0 source
[framework/graphics/cairo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for cairo 1.12.3.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$1; test $as_status -eq 0 && as_status=1
371   if test "$4"; then
372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374   fi
375   $as_echo "$as_me: error: $2" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $ECHO works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<_LT_EOF
563 $*
564 _LT_EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573   if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579       then
580         break
581       fi
582     done
583   fi
584
585   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587      test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589   else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes.  This makes it impossible to quote backslashes using
592     #   echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595
596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598       IFS="$lt_save_ifs"
599       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602          test "X$echo_testing_string" = "X$echo_test_string"; then
603         ECHO="$dir/echo"
604         break
605       fi
606     done
607     IFS="$lt_save_ifs"
608
609     if test "X$ECHO" = Xecho; then
610       # We didn't find a better echo, so look for alternatives.
611       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613          test "X$echo_testing_string" = "X$echo_test_string"; then
614         # This shell has a builtin print -r that does the trick.
615         ECHO='print -r'
616       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617            test "X$CONFIG_SHELL" != X/bin/ksh; then
618         # If we have ksh, try running configure again with it.
619         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620         export ORIGINAL_CONFIG_SHELL
621         CONFIG_SHELL=/bin/ksh
622         export CONFIG_SHELL
623         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624       else
625         # Try using printf.
626         ECHO='printf %s\n'
627         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629            test "X$echo_testing_string" = "X$echo_test_string"; then
630           # Cool, printf works
631           :
632         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633              test "X$echo_testing_string" = 'X\t' &&
634              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635              test "X$echo_testing_string" = "X$echo_test_string"; then
636           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637           export CONFIG_SHELL
638           SHELL="$CONFIG_SHELL"
639           export SHELL
640           ECHO="$CONFIG_SHELL $0 --fallback-echo"
641         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642              test "X$echo_testing_string" = 'X\t' &&
643              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644              test "X$echo_testing_string" = "X$echo_test_string"; then
645           ECHO="$CONFIG_SHELL $0 --fallback-echo"
646         else
647           # maybe with a smaller string...
648           prev=:
649
650           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652             then
653               break
654             fi
655             prev="$cmd"
656           done
657
658           if test "$prev" != 'sed 50q "$0"'; then
659             echo_test_string=`eval $prev`
660             export echo_test_string
661             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662           else
663             # Oops.  We lost completely, so just stick with echo.
664             ECHO=echo
665           fi
666         fi
667       fi
668     fi
669   fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='cairo'
704 PACKAGE_TARNAME='cairo'
705 PACKAGE_VERSION='1.12.3'
706 PACKAGE_STRING='cairo 1.12.3'
707 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=cairo'
708 PACKAGE_URL='http://cairographics.org/'
709
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_unique_file="src/cairo.h"
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 HAVE_GTK_FALSE
752 HAVE_GTK_TRUE
753 gtk_LIBS
754 gtk_CFLAGS
755 BUILD_CXX_FALSE
756 BUILD_CXX_TRUE
757 DISABLE_SOME_FLOATING_POINT_FALSE
758 DISABLE_SOME_FLOATING_POINT_TRUE
759 shm_LIBS
760 BUILD_SPHINX_FALSE
761 BUILD_SPHINX_TRUE
762 glib_LIBS
763 glib_CFLAGS
764 CAIRO_HAS_SYMBOL_LOOKUP_FALSE
765 CAIRO_HAS_SYMBOL_LOOKUP_TRUE
766 BFD_LIBS
767 CAIRO_HAS_INTERPRETER_FALSE
768 CAIRO_HAS_INTERPRETER_TRUE
769 CAIRO_HAS_TRACE_FALSE
770 CAIRO_HAS_TRACE_TRUE
771 SHLIB_EXT
772 BUILD_ANY2PPM_FALSE
773 BUILD_ANY2PPM_TRUE
774 CAIRO_TEST_MODE
775 CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE
776 CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE
777 GOBJECT_LIBS
778 GOBJECT_CFLAGS
779 real_pthread_LIBS
780 real_pthread_CFLAGS
781 pthread_LIBS
782 pthread_CFLAGS
783 HAVE_PTHREAD_FALSE
784 HAVE_PTHREAD_TRUE
785 HAVE_REAL_PTHREAD_FALSE
786 HAVE_REAL_PTHREAD_TRUE
787 CAIRO_HAS_PTHREAD_FALSE
788 CAIRO_HAS_PTHREAD_TRUE
789 CAIRO_HAS_XML_SURFACE_FALSE
790 CAIRO_HAS_XML_SURFACE_TRUE
791 CAIRO_HAS_TEE_SURFACE_FALSE
792 CAIRO_HAS_TEE_SURFACE_TRUE
793 pixman_LIBS
794 pixman_CFLAGS
795 CAIRO_HAS_TEST_SURFACES_FALSE
796 CAIRO_HAS_TEST_SURFACES_TRUE
797 CAIRO_CAN_TEST_SVG_SURFACE_FALSE
798 CAIRO_CAN_TEST_SVG_SURFACE_TRUE
799 LIBRSVG_LIBS
800 LIBRSVG_CFLAGS
801 CAIRO_HAS_SVG_SURFACE_FALSE
802 CAIRO_HAS_SVG_SURFACE_TRUE
803 CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE
804 CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE
805 CAIRO_CAN_TEST_PDF_SURFACE_FALSE
806 CAIRO_CAN_TEST_PDF_SURFACE_TRUE
807 POPPLER_LIBS
808 POPPLER_CFLAGS
809 CAIRO_HAS_PDF_SURFACE_FALSE
810 CAIRO_HAS_PDF_SURFACE_TRUE
811 CAIRO_HAS_SPECTRE_FALSE
812 CAIRO_HAS_SPECTRE_TRUE
813 CAIRO_CAN_TEST_PS_SURFACE_FALSE
814 CAIRO_CAN_TEST_PS_SURFACE_TRUE
815 LIBSPECTRE_LIBS
816 LIBSPECTRE_CFLAGS
817 CAIRO_HAS_PS_SURFACE_FALSE
818 CAIRO_HAS_PS_SURFACE_TRUE
819 CAIRO_HAS_FC_FONT_FALSE
820 CAIRO_HAS_FC_FONT_TRUE
821 FONTCONFIG_LIBS
822 FONTCONFIG_CFLAGS
823 CAIRO_HAS_FT_FONT_FALSE
824 CAIRO_HAS_FT_FONT_TRUE
825 FREETYPE_CONFIG
826 FREETYPE_LIBS
827 FREETYPE_CFLAGS
828 CAIRO_HAS_SCRIPT_SURFACE_FALSE
829 CAIRO_HAS_SCRIPT_SURFACE_TRUE
830 CAIRO_HAS_WGL_FUNCTIONS_FALSE
831 CAIRO_HAS_WGL_FUNCTIONS_TRUE
832 CAIRO_HAS_GLX_FUNCTIONS_FALSE
833 CAIRO_HAS_GLX_FUNCTIONS_TRUE
834 CAIRO_HAS_EGL_FUNCTIONS_FALSE
835 CAIRO_HAS_EGL_FUNCTIONS_TRUE
836 egl_LIBS
837 egl_CFLAGS
838 CAIRO_HAS_VG_SURFACE_FALSE
839 CAIRO_HAS_VG_SURFACE_TRUE
840 CAIRO_HAS_DIRECTFB_SURFACE_FALSE
841 CAIRO_HAS_DIRECTFB_SURFACE_TRUE
842 directfb_LIBS
843 directfb_CFLAGS
844 CAIRO_HAS_COGL_SURFACE_FALSE
845 CAIRO_HAS_COGL_SURFACE_TRUE
846 cogl_LIBS
847 cogl_CFLAGS
848 CAIRO_HAS_GLESV2_SURFACE_FALSE
849 CAIRO_HAS_GLESV2_SURFACE_TRUE
850 glesv2_LIBS
851 glesv2_CFLAGS
852 CAIRO_HAS_GL_SURFACE_FALSE
853 CAIRO_HAS_GL_SURFACE_TRUE
854 gl_LIBS
855 gl_CFLAGS
856 CAIRO_HAS_PNG_FUNCTIONS_FALSE
857 CAIRO_HAS_PNG_FUNCTIONS_TRUE
858 png_LIBS
859 png_CFLAGS
860 png_REQUIRES
861 CAIRO_HAS_GALLIUM_SURFACE_FALSE
862 CAIRO_HAS_GALLIUM_SURFACE_TRUE
863 gallium_DIR
864 mesa_DIR
865 CAIRO_HAS_DRM_SURFACE_FALSE
866 CAIRO_HAS_DRM_SURFACE_TRUE
867 drm_LIBS
868 drm_CFLAGS
869 CAIRO_HAS_BEOS_SURFACE_FALSE
870 CAIRO_HAS_BEOS_SURFACE_TRUE
871 CAIRO_HAS_OS2_SURFACE_FALSE
872 CAIRO_HAS_OS2_SURFACE_TRUE
873 CAIRO_HAS_SKIA_SURFACE_FALSE
874 CAIRO_HAS_SKIA_SURFACE_TRUE
875 skia_DIR
876 CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE
877 CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE
878 GS
879 CAIRO_HAS_WIN32_FONT_FALSE
880 CAIRO_HAS_WIN32_FONT_TRUE
881 CAIRO_HAS_WIN32_SURFACE_FALSE
882 CAIRO_HAS_WIN32_SURFACE_TRUE
883 CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE
884 CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE
885 CAIRO_HAS_QUARTZ_FONT_FALSE
886 CAIRO_HAS_QUARTZ_FONT_TRUE
887 CAIRO_HAS_QUARTZ_SURFACE_FALSE
888 CAIRO_HAS_QUARTZ_SURFACE_TRUE
889 CAIRO_HAS_QT_SURFACE_FALSE
890 CAIRO_HAS_QT_SURFACE_TRUE
891 qt_LIBS
892 qt_CFLAGS
893 CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE
894 CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE
895 xcb_shm_LIBS
896 xcb_shm_CFLAGS
897 CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE
898 CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE
899 xlib_xcb_LIBS
900 xlib_xcb_CFLAGS
901 CAIRO_HAS_XCB_SURFACE_FALSE
902 CAIRO_HAS_XCB_SURFACE_TRUE
903 xcb_LIBS
904 xcb_CFLAGS
905 CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE
906 CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE
907 xlib_xrender_LIBS
908 xlib_xrender_CFLAGS
909 CAIRO_HAS_XLIB_SURFACE_FALSE
910 CAIRO_HAS_XLIB_SURFACE_TRUE
911 X_EXTRA_LIBS
912 X_LIBS
913 X_PRE_LIBS
914 X_CFLAGS
915 XMKMF
916 xlib_LIBS
917 xlib_CFLAGS
918 CAIRO_HAS_DLSYM_FALSE
919 CAIRO_HAS_DLSYM_TRUE
920 CAIRO_HAS_DL_FALSE
921 CAIRO_HAS_DL_TRUE
922 VALGRIND_LIBS
923 VALGRIND_CFLAGS
924 CAIRO_HAS_LCOV_FALSE
925 CAIRO_HAS_LCOV_TRUE
926 LTP_GENHTML
927 LTP
928 SHTOOL
929 CAIROBOILERPLATE_LIBS
930 SHM_LIBS
931 HAVE_SHM_FALSE
932 HAVE_SHM_TRUE
933 LIBM
934 OS_WIN32_FALSE
935 OS_WIN32_TRUE
936 CROSS_COMPILING_FALSE
937 CROSS_COMPILING_TRUE
938 CAIRO_TEST_UNDEFINED_LDFLAGS
939 CAIRO_NONPKGCONFIG_LIBS
940 CAIRO_LIBS
941 CAIRO_NONPKGCONFIG_CFLAGS
942 CAIRO_LDFLAGS
943 CAIRO_CFLAGS
944 CAIRO_REQUIRES
945 PKGCONFIG_REQUIRES
946 CXXCPP
947 am__fastdepCXX_FALSE
948 am__fastdepCXX_TRUE
949 CXXDEPMODE
950 ac_ct_CXX
951 CXXFLAGS
952 CXX
953 XARGS
954 FIND
955 CAIRO_LIBTOOL_VERSION_INFO
956 CAIRO_RELEASE_STATUS
957 CAIRO_VERSION_SONUM
958 CAIRO_VERSION_MICRO
959 CAIRO_VERSION_MINOR
960 CAIRO_VERSION_MAJOR
961 GTK_DOC_USE_REBASE_FALSE
962 GTK_DOC_USE_REBASE_TRUE
963 GTK_DOC_USE_LIBTOOL_FALSE
964 GTK_DOC_USE_LIBTOOL_TRUE
965 GTK_DOC_BUILD_PDF_FALSE
966 GTK_DOC_BUILD_PDF_TRUE
967 GTK_DOC_BUILD_HTML_FALSE
968 GTK_DOC_BUILD_HTML_TRUE
969 ENABLE_GTK_DOC_FALSE
970 ENABLE_GTK_DOC_TRUE
971 PKG_CONFIG
972 HTML_DIR
973 GTKDOC_MKPDF
974 GTKDOC_REBASE
975 GTKDOC_CHECK
976 OTOOL64
977 OTOOL
978 LIPO
979 NMEDIT
980 DSYMUTIL
981 lt_ECHO
982 RANLIB
983 AR
984 LN_S
985 NM
986 ac_ct_DUMPBIN
987 DUMPBIN
988 LD
989 FGREP
990 SED
991 host_os
992 host_vendor
993 host_cpu
994 host
995 build_os
996 build_vendor
997 build_cpu
998 build
999 LIBTOOL
1000 OBJDUMP
1001 DLLTOOL
1002 AS
1003 AM_BACKSLASH
1004 AM_DEFAULT_VERBOSITY
1005 am__fastdepCC_FALSE
1006 am__fastdepCC_TRUE
1007 CCDEPMODE
1008 AMDEPBACKSLASH
1009 AMDEP_FALSE
1010 AMDEP_TRUE
1011 am__quote
1012 am__include
1013 DEPDIR
1014 am__untar
1015 am__tar
1016 AMTAR
1017 am__leading_dot
1018 SET_MAKE
1019 AWK
1020 mkdir_p
1021 MKDIR_P
1022 INSTALL_STRIP_PROGRAM
1023 STRIP
1024 install_sh
1025 MAKEINFO
1026 AUTOHEADER
1027 AUTOMAKE
1028 AUTOCONF
1029 ACLOCAL
1030 VERSION
1031 PACKAGE
1032 CYGPATH_W
1033 am__isrc
1034 INSTALL_DATA
1035 INSTALL_SCRIPT
1036 INSTALL_PROGRAM
1037 EGREP
1038 GREP
1039 CPP
1040 OBJEXT
1041 EXEEXT
1042 ac_ct_CC
1043 CPPFLAGS
1044 LDFLAGS
1045 CFLAGS
1046 CC
1047 target_alias
1048 host_alias
1049 build_alias
1050 LIBS
1051 ECHO_T
1052 ECHO_N
1053 ECHO_C
1054 DEFS
1055 mandir
1056 localedir
1057 libdir
1058 psdir
1059 pdfdir
1060 dvidir
1061 htmldir
1062 infodir
1063 docdir
1064 oldincludedir
1065 includedir
1066 localstatedir
1067 sharedstatedir
1068 sysconfdir
1069 datadir
1070 datarootdir
1071 libexecdir
1072 sbindir
1073 bindir
1074 program_transform_name
1075 prefix
1076 exec_prefix
1077 PACKAGE_URL
1078 PACKAGE_BUGREPORT
1079 PACKAGE_STRING
1080 PACKAGE_VERSION
1081 PACKAGE_TARNAME
1082 PACKAGE_NAME
1083 PATH_SEPARATOR
1084 SHELL'
1085 ac_subst_files=''
1086 ac_user_opts='
1087 enable_option_checking
1088 enable_dependency_tracking
1089 enable_silent_rules
1090 enable_shared
1091 enable_static
1092 with_pic
1093 enable_fast_install
1094 with_gnu_ld
1095 enable_libtool_lock
1096 with_html_dir
1097 enable_gtk_doc
1098 enable_gtk_doc_html
1099 enable_gtk_doc_pdf
1100 enable_largefile
1101 enable_atomic
1102 enable_gcov
1103 enable_valgrind
1104 enable_xlib
1105 with_x
1106 enable_xlib_xrender
1107 enable_xcb
1108 enable_xlib_xcb
1109 enable_xcb_shm
1110 enable_qt
1111 enable_quartz
1112 enable_quartz_font
1113 enable_quartz_image
1114 enable_win32
1115 enable_win32_font
1116 enable_skia
1117 with_skia
1118 with_skia_bulid
1119 enable_os2
1120 enable_beos
1121 enable_drm
1122 enable_gallium
1123 with_gallium
1124 enable_png
1125 enable_gl
1126 enable_glesv2
1127 enable_cogl
1128 enable_directfb
1129 enable_vg
1130 enable_egl
1131 enable_glx
1132 enable_wgl
1133 enable_script
1134 enable_ft
1135 enable_fc
1136 enable_ps
1137 enable_pdf
1138 enable_svg
1139 enable_test_surfaces
1140 enable_tee
1141 enable_xml
1142 enable_pthread
1143 enable_gobject
1144 enable_full_testing
1145 enable_trace
1146 enable_interpreter
1147 enable_symbol_lookup
1148 enable_some_floating_point
1149 '
1150       ac_precious_vars='build_alias
1151 host_alias
1152 target_alias
1153 CC
1154 CFLAGS
1155 LDFLAGS
1156 LIBS
1157 CPPFLAGS
1158 CPP
1159 PKG_CONFIG
1160 CXX
1161 CXXFLAGS
1162 CCC
1163 CXXCPP
1164 VALGRIND_CFLAGS
1165 VALGRIND_LIBS
1166 xlib_CFLAGS
1167 xlib_LIBS
1168 XMKMF
1169 xlib_xrender_CFLAGS
1170 xlib_xrender_LIBS
1171 xcb_CFLAGS
1172 xcb_LIBS
1173 xlib_xcb_CFLAGS
1174 xlib_xcb_LIBS
1175 xcb_shm_CFLAGS
1176 xcb_shm_LIBS
1177 qt_CFLAGS
1178 qt_LIBS
1179 drm_CFLAGS
1180 drm_LIBS
1181 png_REQUIRES
1182 png_CFLAGS
1183 png_LIBS
1184 gl_CFLAGS
1185 gl_LIBS
1186 glesv2_CFLAGS
1187 glesv2_LIBS
1188 cogl_CFLAGS
1189 cogl_LIBS
1190 directfb_CFLAGS
1191 directfb_LIBS
1192 egl_CFLAGS
1193 egl_LIBS
1194 FREETYPE_CFLAGS
1195 FREETYPE_LIBS
1196 FONTCONFIG_CFLAGS
1197 FONTCONFIG_LIBS
1198 LIBSPECTRE_CFLAGS
1199 LIBSPECTRE_LIBS
1200 POPPLER_CFLAGS
1201 POPPLER_LIBS
1202 LIBRSVG_CFLAGS
1203 LIBRSVG_LIBS
1204 pixman_CFLAGS
1205 pixman_LIBS
1206 GOBJECT_CFLAGS
1207 GOBJECT_LIBS
1208 glib_CFLAGS
1209 glib_LIBS
1210 gtk_CFLAGS
1211 gtk_LIBS'
1212
1213
1214 # Initialize some variables set by options.
1215 ac_init_help=
1216 ac_init_version=false
1217 ac_unrecognized_opts=
1218 ac_unrecognized_sep=
1219 # The variables have the same names as the options, with
1220 # dashes changed to underlines.
1221 cache_file=/dev/null
1222 exec_prefix=NONE
1223 no_create=
1224 no_recursion=
1225 prefix=NONE
1226 program_prefix=NONE
1227 program_suffix=NONE
1228 program_transform_name=s,x,x,
1229 silent=
1230 site=
1231 srcdir=
1232 verbose=
1233 x_includes=NONE
1234 x_libraries=NONE
1235
1236 # Installation directory options.
1237 # These are left unexpanded so users can "make install exec_prefix=/foo"
1238 # and all the variables that are supposed to be based on exec_prefix
1239 # by default will actually change.
1240 # Use braces instead of parens because sh, perl, etc. also accept them.
1241 # (The list follows the same order as the GNU Coding Standards.)
1242 bindir='${exec_prefix}/bin'
1243 sbindir='${exec_prefix}/sbin'
1244 libexecdir='${exec_prefix}/libexec'
1245 datarootdir='${prefix}/share'
1246 datadir='${datarootdir}'
1247 sysconfdir='${prefix}/etc'
1248 sharedstatedir='${prefix}/com'
1249 localstatedir='${prefix}/var'
1250 includedir='${prefix}/include'
1251 oldincludedir='/usr/include'
1252 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1253 infodir='${datarootdir}/info'
1254 htmldir='${docdir}'
1255 dvidir='${docdir}'
1256 pdfdir='${docdir}'
1257 psdir='${docdir}'
1258 libdir='${exec_prefix}/lib'
1259 localedir='${datarootdir}/locale'
1260 mandir='${datarootdir}/man'
1261
1262 ac_prev=
1263 ac_dashdash=
1264 for ac_option
1265 do
1266   # If the previous option needs an argument, assign it.
1267   if test -n "$ac_prev"; then
1268     eval $ac_prev=\$ac_option
1269     ac_prev=
1270     continue
1271   fi
1272
1273   case $ac_option in
1274   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1275   *=)   ac_optarg= ;;
1276   *)    ac_optarg=yes ;;
1277   esac
1278
1279   # Accept the important Cygnus configure options, so we can diagnose typos.
1280
1281   case $ac_dashdash$ac_option in
1282   --)
1283     ac_dashdash=yes ;;
1284
1285   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1286     ac_prev=bindir ;;
1287   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288     bindir=$ac_optarg ;;
1289
1290   -build | --build | --buil | --bui | --bu)
1291     ac_prev=build_alias ;;
1292   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293     build_alias=$ac_optarg ;;
1294
1295   -cache-file | --cache-file | --cache-fil | --cache-fi \
1296   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297     ac_prev=cache_file ;;
1298   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300     cache_file=$ac_optarg ;;
1301
1302   --config-cache | -C)
1303     cache_file=config.cache ;;
1304
1305   -datadir | --datadir | --datadi | --datad)
1306     ac_prev=datadir ;;
1307   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308     datadir=$ac_optarg ;;
1309
1310   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311   | --dataroo | --dataro | --datar)
1312     ac_prev=datarootdir ;;
1313   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315     datarootdir=$ac_optarg ;;
1316
1317   -disable-* | --disable-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error $? "invalid feature name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "enable_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval enable_$ac_useropt=no ;;
1332
1333   -docdir | --docdir | --docdi | --doc | --do)
1334     ac_prev=docdir ;;
1335   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336     docdir=$ac_optarg ;;
1337
1338   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1339     ac_prev=dvidir ;;
1340   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341     dvidir=$ac_optarg ;;
1342
1343   -enable-* | --enable-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error $? "invalid feature name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "enable_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval enable_$ac_useropt=\$ac_optarg ;;
1358
1359   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361   | --exec | --exe | --ex)
1362     ac_prev=exec_prefix ;;
1363   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365   | --exec=* | --exe=* | --ex=*)
1366     exec_prefix=$ac_optarg ;;
1367
1368   -gas | --gas | --ga | --g)
1369     # Obsolete; use --with-gas.
1370     with_gas=yes ;;
1371
1372   -help | --help | --hel | --he | -h)
1373     ac_init_help=long ;;
1374   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375     ac_init_help=recursive ;;
1376   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377     ac_init_help=short ;;
1378
1379   -host | --host | --hos | --ho)
1380     ac_prev=host_alias ;;
1381   -host=* | --host=* | --hos=* | --ho=*)
1382     host_alias=$ac_optarg ;;
1383
1384   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1385     ac_prev=htmldir ;;
1386   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1387   | --ht=*)
1388     htmldir=$ac_optarg ;;
1389
1390   -includedir | --includedir | --includedi | --included | --include \
1391   | --includ | --inclu | --incl | --inc)
1392     ac_prev=includedir ;;
1393   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394   | --includ=* | --inclu=* | --incl=* | --inc=*)
1395     includedir=$ac_optarg ;;
1396
1397   -infodir | --infodir | --infodi | --infod | --info | --inf)
1398     ac_prev=infodir ;;
1399   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400     infodir=$ac_optarg ;;
1401
1402   -libdir | --libdir | --libdi | --libd)
1403     ac_prev=libdir ;;
1404   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405     libdir=$ac_optarg ;;
1406
1407   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408   | --libexe | --libex | --libe)
1409     ac_prev=libexecdir ;;
1410   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411   | --libexe=* | --libex=* | --libe=*)
1412     libexecdir=$ac_optarg ;;
1413
1414   -localedir | --localedir | --localedi | --localed | --locale)
1415     ac_prev=localedir ;;
1416   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417     localedir=$ac_optarg ;;
1418
1419   -localstatedir | --localstatedir | --localstatedi | --localstated \
1420   | --localstate | --localstat | --localsta | --localst | --locals)
1421     ac_prev=localstatedir ;;
1422   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424     localstatedir=$ac_optarg ;;
1425
1426   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1427     ac_prev=mandir ;;
1428   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429     mandir=$ac_optarg ;;
1430
1431   -nfp | --nfp | --nf)
1432     # Obsolete; use --without-fp.
1433     with_fp=no ;;
1434
1435   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436   | --no-cr | --no-c | -n)
1437     no_create=yes ;;
1438
1439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1441     no_recursion=yes ;;
1442
1443   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445   | --oldin | --oldi | --old | --ol | --o)
1446     ac_prev=oldincludedir ;;
1447   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450     oldincludedir=$ac_optarg ;;
1451
1452   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1453     ac_prev=prefix ;;
1454   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455     prefix=$ac_optarg ;;
1456
1457   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458   | --program-pre | --program-pr | --program-p)
1459     ac_prev=program_prefix ;;
1460   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462     program_prefix=$ac_optarg ;;
1463
1464   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465   | --program-suf | --program-su | --program-s)
1466     ac_prev=program_suffix ;;
1467   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469     program_suffix=$ac_optarg ;;
1470
1471   -program-transform-name | --program-transform-name \
1472   | --program-transform-nam | --program-transform-na \
1473   | --program-transform-n | --program-transform- \
1474   | --program-transform | --program-transfor \
1475   | --program-transfo | --program-transf \
1476   | --program-trans | --program-tran \
1477   | --progr-tra | --program-tr | --program-t)
1478     ac_prev=program_transform_name ;;
1479   -program-transform-name=* | --program-transform-name=* \
1480   | --program-transform-nam=* | --program-transform-na=* \
1481   | --program-transform-n=* | --program-transform-=* \
1482   | --program-transform=* | --program-transfor=* \
1483   | --program-transfo=* | --program-transf=* \
1484   | --program-trans=* | --program-tran=* \
1485   | --progr-tra=* | --program-tr=* | --program-t=*)
1486     program_transform_name=$ac_optarg ;;
1487
1488   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1489     ac_prev=pdfdir ;;
1490   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491     pdfdir=$ac_optarg ;;
1492
1493   -psdir | --psdir | --psdi | --psd | --ps)
1494     ac_prev=psdir ;;
1495   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1496     psdir=$ac_optarg ;;
1497
1498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499   | -silent | --silent | --silen | --sile | --sil)
1500     silent=yes ;;
1501
1502   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1503     ac_prev=sbindir ;;
1504   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1505   | --sbi=* | --sb=*)
1506     sbindir=$ac_optarg ;;
1507
1508   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1509   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1510   | --sharedst | --shareds | --shared | --share | --shar \
1511   | --sha | --sh)
1512     ac_prev=sharedstatedir ;;
1513   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1514   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1515   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1516   | --sha=* | --sh=*)
1517     sharedstatedir=$ac_optarg ;;
1518
1519   -site | --site | --sit)
1520     ac_prev=site ;;
1521   -site=* | --site=* | --sit=*)
1522     site=$ac_optarg ;;
1523
1524   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1525     ac_prev=srcdir ;;
1526   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1527     srcdir=$ac_optarg ;;
1528
1529   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1530   | --syscon | --sysco | --sysc | --sys | --sy)
1531     ac_prev=sysconfdir ;;
1532   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1533   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1534     sysconfdir=$ac_optarg ;;
1535
1536   -target | --target | --targe | --targ | --tar | --ta | --t)
1537     ac_prev=target_alias ;;
1538   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1539     target_alias=$ac_optarg ;;
1540
1541   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1542     verbose=yes ;;
1543
1544   -version | --version | --versio | --versi | --vers | -V)
1545     ac_init_version=: ;;
1546
1547   -with-* | --with-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error $? "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=\$ac_optarg ;;
1562
1563   -without-* | --without-*)
1564     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1565     # Reject names that are not valid shell variable names.
1566     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567       as_fn_error $? "invalid package name: $ac_useropt"
1568     ac_useropt_orig=$ac_useropt
1569     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1570     case $ac_user_opts in
1571       *"
1572 "with_$ac_useropt"
1573 "*) ;;
1574       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1575          ac_unrecognized_sep=', ';;
1576     esac
1577     eval with_$ac_useropt=no ;;
1578
1579   --x)
1580     # Obsolete; use --with-x.
1581     with_x=yes ;;
1582
1583   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1584   | --x-incl | --x-inc | --x-in | --x-i)
1585     ac_prev=x_includes ;;
1586   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1587   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1588     x_includes=$ac_optarg ;;
1589
1590   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1591   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1592     ac_prev=x_libraries ;;
1593   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1594   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1595     x_libraries=$ac_optarg ;;
1596
1597   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1598 Try \`$0 --help' for more information"
1599     ;;
1600
1601   *=*)
1602     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1603     # Reject names that are not valid shell variable names.
1604     case $ac_envvar in #(
1605       '' | [0-9]* | *[!_$as_cr_alnum]* )
1606       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1607     esac
1608     eval $ac_envvar=\$ac_optarg
1609     export $ac_envvar ;;
1610
1611   *)
1612     # FIXME: should be removed in autoconf 3.0.
1613     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1614     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1615       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1616     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1617     ;;
1618
1619   esac
1620 done
1621
1622 if test -n "$ac_prev"; then
1623   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1624   as_fn_error $? "missing argument to $ac_option"
1625 fi
1626
1627 if test -n "$ac_unrecognized_opts"; then
1628   case $enable_option_checking in
1629     no) ;;
1630     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1631     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1632   esac
1633 fi
1634
1635 # Check all directory arguments for consistency.
1636 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1637                 datadir sysconfdir sharedstatedir localstatedir includedir \
1638                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1639                 libdir localedir mandir
1640 do
1641   eval ac_val=\$$ac_var
1642   # Remove trailing slashes.
1643   case $ac_val in
1644     */ )
1645       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1646       eval $ac_var=\$ac_val;;
1647   esac
1648   # Be sure to have absolute directory names.
1649   case $ac_val in
1650     [\\/$]* | ?:[\\/]* )  continue;;
1651     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1652   esac
1653   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1654 done
1655
1656 # There might be people who depend on the old broken behavior: `$host'
1657 # used to hold the argument of --host etc.
1658 # FIXME: To remove some day.
1659 build=$build_alias
1660 host=$host_alias
1661 target=$target_alias
1662
1663 # FIXME: To remove some day.
1664 if test "x$host_alias" != x; then
1665   if test "x$build_alias" = x; then
1666     cross_compiling=maybe
1667     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1668     If a cross compiler is detected then cross compile mode will be used" >&2
1669   elif test "x$build_alias" != "x$host_alias"; then
1670     cross_compiling=yes
1671   fi
1672 fi
1673
1674 ac_tool_prefix=
1675 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1676
1677 test "$silent" = yes && exec 6>/dev/null
1678
1679
1680 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1681 ac_ls_di=`ls -di .` &&
1682 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1683   as_fn_error $? "working directory cannot be determined"
1684 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1685   as_fn_error $? "pwd does not report name of working directory"
1686
1687
1688 # Find the source files, if location was not specified.
1689 if test -z "$srcdir"; then
1690   ac_srcdir_defaulted=yes
1691   # Try the directory containing this script, then the parent directory.
1692   ac_confdir=`$as_dirname -- "$as_myself" ||
1693 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1694          X"$as_myself" : 'X\(//\)[^/]' \| \
1695          X"$as_myself" : 'X\(//\)$' \| \
1696          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1697 $as_echo X"$as_myself" |
1698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1699             s//\1/
1700             q
1701           }
1702           /^X\(\/\/\)[^/].*/{
1703             s//\1/
1704             q
1705           }
1706           /^X\(\/\/\)$/{
1707             s//\1/
1708             q
1709           }
1710           /^X\(\/\).*/{
1711             s//\1/
1712             q
1713           }
1714           s/.*/./; q'`
1715   srcdir=$ac_confdir
1716   if test ! -r "$srcdir/$ac_unique_file"; then
1717     srcdir=..
1718   fi
1719 else
1720   ac_srcdir_defaulted=no
1721 fi
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1724   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1725 fi
1726 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1727 ac_abs_confdir=`(
1728         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1729         pwd)`
1730 # When building in place, set srcdir=.
1731 if test "$ac_abs_confdir" = "$ac_pwd"; then
1732   srcdir=.
1733 fi
1734 # Remove unnecessary trailing slashes from srcdir.
1735 # Double slashes in file names in object file debugging info
1736 # mess up M-x gdb in Emacs.
1737 case $srcdir in
1738 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1739 esac
1740 for ac_var in $ac_precious_vars; do
1741   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1742   eval ac_env_${ac_var}_value=\$${ac_var}
1743   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1744   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1745 done
1746
1747 #
1748 # Report the --help message.
1749 #
1750 if test "$ac_init_help" = "long"; then
1751   # Omit some internal or obsolete options to make the list less imposing.
1752   # This message is too long to be a string in the A/UX 3.1 sh.
1753   cat <<_ACEOF
1754 \`configure' configures cairo 1.12.3 to adapt to many kinds of systems.
1755
1756 Usage: $0 [OPTION]... [VAR=VALUE]...
1757
1758 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1759 VAR=VALUE.  See below for descriptions of some of the useful variables.
1760
1761 Defaults for the options are specified in brackets.
1762
1763 Configuration:
1764   -h, --help              display this help and exit
1765       --help=short        display options specific to this package
1766       --help=recursive    display the short help of all the included packages
1767   -V, --version           display version information and exit
1768   -q, --quiet, --silent   do not print \`checking ...' messages
1769       --cache-file=FILE   cache test results in FILE [disabled]
1770   -C, --config-cache      alias for \`--cache-file=config.cache'
1771   -n, --no-create         do not create output files
1772       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1773
1774 Installation directories:
1775   --prefix=PREFIX         install architecture-independent files in PREFIX
1776                           [$ac_default_prefix]
1777   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1778                           [PREFIX]
1779
1780 By default, \`make install' will install all the files in
1781 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1782 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1783 for instance \`--prefix=\$HOME'.
1784
1785 For better control, use the options below.
1786
1787 Fine tuning of the installation directories:
1788   --bindir=DIR            user executables [EPREFIX/bin]
1789   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1790   --libexecdir=DIR        program executables [EPREFIX/libexec]
1791   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1792   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1793   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1794   --libdir=DIR            object code libraries [EPREFIX/lib]
1795   --includedir=DIR        C header files [PREFIX/include]
1796   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1797   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1798   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1799   --infodir=DIR           info documentation [DATAROOTDIR/info]
1800   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1801   --mandir=DIR            man documentation [DATAROOTDIR/man]
1802   --docdir=DIR            documentation root [DATAROOTDIR/doc/cairo]
1803   --htmldir=DIR           html documentation [DOCDIR]
1804   --dvidir=DIR            dvi documentation [DOCDIR]
1805   --pdfdir=DIR            pdf documentation [DOCDIR]
1806   --psdir=DIR             ps documentation [DOCDIR]
1807 _ACEOF
1808
1809   cat <<\_ACEOF
1810
1811 Program names:
1812   --program-prefix=PREFIX            prepend PREFIX to installed program names
1813   --program-suffix=SUFFIX            append SUFFIX to installed program names
1814   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1815
1816 X features:
1817   --x-includes=DIR    X include files are in DIR
1818   --x-libraries=DIR   X library files are in DIR
1819
1820 System types:
1821   --build=BUILD     configure for building on BUILD [guessed]
1822   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1823 _ACEOF
1824 fi
1825
1826 if test -n "$ac_init_help"; then
1827   case $ac_init_help in
1828      short | recursive ) echo "Configuration of cairo 1.12.3:";;
1829    esac
1830   cat <<\_ACEOF
1831
1832 Optional Features:
1833   --disable-option-checking  ignore unrecognized --enable/--with options
1834   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1835   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1836   --disable-dependency-tracking  speeds up one-time build
1837   --enable-dependency-tracking   do not reject slow dependency extractors
1838   --enable-silent-rules          less verbose build output (undo: `make V=1')
1839   --disable-silent-rules         verbose build output (undo: `make V=0')
1840   --enable-shared[=PKGS]  build shared libraries [default=yes]
1841   --enable-static[=PKGS]  build static libraries [default=yes]
1842   --enable-fast-install[=PKGS]
1843                           optimize for fast installation [default=yes]
1844   --disable-libtool-lock  avoid locking (might break parallel builds)
1845   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1846   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1847   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1848   --disable-largefile     omit support for large files
1849   --disable-atomic        disable use of native atomic operations
1850   --enable-gcov           Enable gcov
1851   --disable-valgrind      Disable valgrind support
1852   --enable-xlib=[no/auto/yes]
1853                           Enable cairo's Xlib surface backend feature
1854                           [default=auto]
1855   --enable-xlib-xrender=[no/auto/yes]
1856                           Enable cairo's Xlib Xrender surface backend feature
1857                           [default=auto]
1858   --enable-xcb=[no/auto/yes]
1859                           Enable cairo's XCB surface backend feature
1860                           [default=auto]
1861   --enable-xlib-xcb=[no/auto/yes]
1862                           Enable cairo's Xlib/XCB functions feature
1863                           [default=no]
1864   --enable-xcb-shm=[no/auto/yes]
1865                           Enable cairo's XCB/SHM functions feature
1866                           [default=auto]
1867   --enable-qt=[no/auto/yes]
1868                           Enable cairo's Qt surface backend feature
1869                           [default=no]
1870   --enable-quartz=[no/auto/yes]
1871                           Enable cairo's Quartz surface backend feature
1872                           [default=auto]
1873   --enable-quartz-font=[no/auto/yes]
1874                           Enable cairo's Quartz font backend feature
1875                           [default=auto]
1876   --enable-quartz-image=[no/auto/yes]
1877                           Enable cairo's Quartz Image surface backend feature
1878                           [default=no]
1879   --enable-win32=[no/auto/yes]
1880                           Enable cairo's Microsoft Windows surface backend
1881                           feature [default=auto]
1882   --enable-win32-font=[no/auto/yes]
1883                           Enable cairo's Microsoft Windows font backend
1884                           feature [default=auto]
1885   --enable-skia=[no/auto/yes]
1886                           Enable cairo's Skia surface backend feature
1887                           [default=no]
1888   --enable-os2=[no/auto/yes]
1889                           Enable cairo's OS/2 surface backend feature
1890                           [default=no]
1891   --enable-beos=[no/auto/yes]
1892                           Enable cairo's BeOS/Zeta surface backend feature
1893                           [default=no]
1894   --enable-drm=[no/auto/yes]
1895                           Enable cairo's DRM surface backend feature
1896                           [default=no]
1897   --enable-gallium=[no/auto/yes]
1898                           Enable cairo's Gallium3D surface backend feature
1899                           [default=no]
1900   --enable-png=[no/auto/yes]
1901                           Enable cairo's PNG functions feature [default=yes]
1902   --enable-gl=[no/auto/yes]
1903                           Enable cairo's OpenGL surface backend feature
1904                           [default=no]
1905   --enable-glesv2=[no/auto/yes]
1906                           Enable cairo's OpenGLESv2 surface backend feature
1907                           [default=no]
1908   --enable-cogl=[no/auto/yes]
1909                           Enable cairo's Cogl surface backend feature
1910                           [default=no]
1911   --enable-directfb=[no/auto/yes]
1912                           Enable cairo's directfb surface backend feature
1913                           [default=no]
1914   --enable-vg=[no/auto/yes]
1915                           Enable cairo's OpenVG surface backend feature
1916                           [default=no]
1917   --enable-egl=[no/auto/yes]
1918                           Enable cairo's EGL functions feature [default=auto]
1919   --enable-glx=[no/auto/yes]
1920                           Enable cairo's GLX functions feature [default=auto]
1921   --enable-wgl=[no/auto/yes]
1922                           Enable cairo's WGL functions feature [default=auto]
1923   --enable-script=[no/auto/yes]
1924                           Enable cairo's script surface backend feature
1925                           [default=yes]
1926   --enable-ft=[no/auto/yes]
1927                           Enable cairo's FreeType font backend feature
1928                           [default=auto]
1929   --enable-fc=[no/auto/yes]
1930                           Enable cairo's Fontconfig font backend feature
1931                           [default=auto]
1932   --enable-ps=[no/auto/yes]
1933                           Enable cairo's PostScript surface backend feature
1934                           [default=yes]
1935   --enable-pdf=[no/auto/yes]
1936                           Enable cairo's PDF surface backend feature
1937                           [default=yes]
1938   --enable-svg=[no/auto/yes]
1939                           Enable cairo's SVG surface backend feature
1940                           [default=yes]
1941   --enable-test-surfaces=[no/auto/yes]
1942                           Enable cairo's test surfaces feature [default=no]
1943   --enable-tee=[no/auto/yes]
1944                           Enable cairo's tee surface backend feature
1945                           [default=no]
1946   --enable-xml=[no/auto/yes]
1947                           Enable cairo's xml surface backend feature
1948                           [default=no]
1949   --enable-pthread=[no/auto/yes]
1950                           Enable cairo's pthread feature [default=auto]
1951   --enable-gobject=[no/auto/yes]
1952                           Enable cairo's gobject functions feature
1953                           [default=auto]
1954   --enable-full-testing   Sets the test suite to perform full testing by
1955                           default, which will dramatically slow down make
1956                           check, but is a *requirement* before release.
1957   --enable-trace=[no/auto/yes]
1958                           Enable cairo's cairo-trace feature [default=auto]
1959   --enable-interpreter=[no/auto/yes]
1960                           Enable cairo's cairo-script-interpreter feature
1961                           [default=yes]
1962   --enable-symbol-lookup=[no/auto/yes]
1963                           Enable cairo's symbol-lookup feature [default=auto]
1964   --disable-some-floating-point
1965                           Disable certain code paths that rely heavily on
1966                           double precision floating-point calculation. This
1967                           option can improve performance on systems without a
1968                           double precision floating-point unit, but might
1969                           degrade performance on those that do.
1970
1971 Optional Packages:
1972   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1973   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1974   --with-pic              try to use only PIC/non-PIC objects [default=use
1975                           both]
1976   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1977   --with-html-dir=PATH    path to installed docs
1978   --with-x                use the X Window System
1979   --with-skia=/path/to/skia
1980                           directory to find compiled skia sources
1981   --with-skia-build=(Release|Debug)
1982                               build of skia to link with, default is Release
1983
1984   --with-gallium=/path/to/mesa
1985                           directory to find gallium enabled mesa
1986
1987 Some influential environment variables:
1988   CC          C compiler command
1989   CFLAGS      C compiler flags
1990   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1991               nonstandard directory <lib dir>
1992   LIBS        libraries to pass to the linker, e.g. -l<library>
1993   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1994               you have headers in a nonstandard directory <include dir>
1995   CPP         C preprocessor
1996   PKG_CONFIG  path to pkg-config utility
1997   CXX         C++ compiler command
1998   CXXFLAGS    C++ compiler flags
1999   CXXCPP      C++ preprocessor
2000   VALGRIND_CFLAGS
2001               C compiler flags for VALGRIND, overriding pkg-config
2002   VALGRIND_LIBS
2003               linker flags for VALGRIND, overriding pkg-config
2004   xlib_CFLAGS C compiler flags for xlib, overriding pkg-config
2005   xlib_LIBS   linker flags for xlib, overriding pkg-config
2006   XMKMF       Path to xmkmf, Makefile generator for X Window System
2007   xlib_xrender_CFLAGS
2008               C compiler flags for xlib_xrender, overriding pkg-config
2009   xlib_xrender_LIBS
2010               linker flags for xlib_xrender, overriding pkg-config
2011   xcb_CFLAGS  C compiler flags for xcb, overriding pkg-config
2012   xcb_LIBS    linker flags for xcb, overriding pkg-config
2013   xlib_xcb_CFLAGS
2014               C compiler flags for xlib_xcb, overriding pkg-config
2015   xlib_xcb_LIBS
2016               linker flags for xlib_xcb, overriding pkg-config
2017   xcb_shm_CFLAGS
2018               C compiler flags for xcb_shm, overriding pkg-config
2019   xcb_shm_LIBS
2020               linker flags for xcb_shm, overriding pkg-config
2021   qt_CFLAGS   C compiler flags for qt, overriding pkg-config
2022   qt_LIBS     linker flags for qt, overriding pkg-config
2023   drm_CFLAGS  C compiler flags for drm, overriding pkg-config
2024   drm_LIBS    linker flags for drm, overriding pkg-config
2025   png_REQUIRES
2026               module name for libpng to search for using pkg-config
2027   png_CFLAGS  C compiler flags for png, overriding pkg-config
2028   png_LIBS    linker flags for png, overriding pkg-config
2029   gl_CFLAGS   C compiler flags for gl, overriding pkg-config
2030   gl_LIBS     linker flags for gl, overriding pkg-config
2031   glesv2_CFLAGS
2032               C compiler flags for glesv2, overriding pkg-config
2033   glesv2_LIBS linker flags for glesv2, overriding pkg-config
2034   cogl_CFLAGS C compiler flags for cogl, overriding pkg-config
2035   cogl_LIBS   linker flags for cogl, overriding pkg-config
2036   directfb_CFLAGS
2037               C compiler flags for directfb, overriding pkg-config
2038   directfb_LIBS
2039               linker flags for directfb, overriding pkg-config
2040   egl_CFLAGS  C compiler flags for egl, overriding pkg-config
2041   egl_LIBS    linker flags for egl, overriding pkg-config
2042   FREETYPE_CFLAGS
2043               C compiler flags for FREETYPE, overriding pkg-config
2044   FREETYPE_LIBS
2045               linker flags for FREETYPE, overriding pkg-config
2046   FONTCONFIG_CFLAGS
2047               C compiler flags for FONTCONFIG, overriding pkg-config
2048   FONTCONFIG_LIBS
2049               linker flags for FONTCONFIG, overriding pkg-config
2050   LIBSPECTRE_CFLAGS
2051               C compiler flags for LIBSPECTRE, overriding pkg-config
2052   LIBSPECTRE_LIBS
2053               linker flags for LIBSPECTRE, overriding pkg-config
2054   POPPLER_CFLAGS
2055               C compiler flags for POPPLER, overriding pkg-config
2056   POPPLER_LIBS
2057               linker flags for POPPLER, overriding pkg-config
2058   LIBRSVG_CFLAGS
2059               C compiler flags for LIBRSVG, overriding pkg-config
2060   LIBRSVG_LIBS
2061               linker flags for LIBRSVG, overriding pkg-config
2062   pixman_CFLAGS
2063               C compiler flags for pixman, overriding pkg-config
2064   pixman_LIBS linker flags for pixman, overriding pkg-config
2065   GOBJECT_CFLAGS
2066               C compiler flags for GOBJECT, overriding pkg-config
2067   GOBJECT_LIBS
2068               linker flags for GOBJECT, overriding pkg-config
2069   glib_CFLAGS C compiler flags for glib, overriding pkg-config
2070   glib_LIBS   linker flags for glib, overriding pkg-config
2071   gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config
2072   gtk_LIBS    linker flags for gtk, overriding pkg-config
2073
2074 Use these variables to override the choices made by `configure' or to help
2075 it to find libraries and programs with nonstandard names/locations.
2076
2077 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
2078 cairo home page: <http://cairographics.org/>.
2079 _ACEOF
2080 ac_status=$?
2081 fi
2082
2083 if test "$ac_init_help" = "recursive"; then
2084   # If there are subdirs, report their specific --help.
2085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2086     test -d "$ac_dir" ||
2087       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2088       continue
2089     ac_builddir=.
2090
2091 case "$ac_dir" in
2092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2093 *)
2094   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2095   # A ".." for each directory in $ac_dir_suffix.
2096   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2097   case $ac_top_builddir_sub in
2098   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2099   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2100   esac ;;
2101 esac
2102 ac_abs_top_builddir=$ac_pwd
2103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2104 # for backward compatibility:
2105 ac_top_builddir=$ac_top_build_prefix
2106
2107 case $srcdir in
2108   .)  # We are building in place.
2109     ac_srcdir=.
2110     ac_top_srcdir=$ac_top_builddir_sub
2111     ac_abs_top_srcdir=$ac_pwd ;;
2112   [\\/]* | ?:[\\/]* )  # Absolute name.
2113     ac_srcdir=$srcdir$ac_dir_suffix;
2114     ac_top_srcdir=$srcdir
2115     ac_abs_top_srcdir=$srcdir ;;
2116   *) # Relative name.
2117     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2118     ac_top_srcdir=$ac_top_build_prefix$srcdir
2119     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2120 esac
2121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2122
2123     cd "$ac_dir" || { ac_status=$?; continue; }
2124     # Check for guested configure.
2125     if test -f "$ac_srcdir/configure.gnu"; then
2126       echo &&
2127       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2128     elif test -f "$ac_srcdir/configure"; then
2129       echo &&
2130       $SHELL "$ac_srcdir/configure" --help=recursive
2131     else
2132       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2133     fi || ac_status=$?
2134     cd "$ac_pwd" || { ac_status=$?; break; }
2135   done
2136 fi
2137
2138 test -n "$ac_init_help" && exit $ac_status
2139 if $ac_init_version; then
2140   cat <<\_ACEOF
2141 cairo configure 1.12.3
2142 generated by GNU Autoconf 2.67
2143
2144 Copyright (C) 2010 Free Software Foundation, Inc.
2145 This configure script is free software; the Free Software Foundation
2146 gives unlimited permission to copy, distribute and modify it.
2147 _ACEOF
2148   exit
2149 fi
2150
2151 ## ------------------------ ##
2152 ## Autoconf initialization. ##
2153 ## ------------------------ ##
2154
2155 # ac_fn_c_try_compile LINENO
2156 # --------------------------
2157 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2158 ac_fn_c_try_compile ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   rm -f conftest.$ac_objext
2162   if { { ac_try="$ac_compile"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 $as_echo "$ac_try_echo"; } >&5
2169   (eval "$ac_compile") 2>conftest.err
2170   ac_status=$?
2171   if test -s conftest.err; then
2172     grep -v '^ *+' conftest.err >conftest.er1
2173     cat conftest.er1 >&5
2174     mv -f conftest.er1 conftest.err
2175   fi
2176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177   test $ac_status = 0; } && {
2178          test -z "$ac_c_werror_flag" ||
2179          test ! -s conftest.err
2180        } && test -s conftest.$ac_objext; then :
2181   ac_retval=0
2182 else
2183   $as_echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186         ac_retval=1
2187 fi
2188   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2189   as_fn_set_status $ac_retval
2190
2191 } # ac_fn_c_try_compile
2192
2193 # ac_fn_c_try_cpp LINENO
2194 # ----------------------
2195 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_cpp ()
2197 {
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   if { { ac_try="$ac_cpp conftest.$ac_ext"
2200 case "(($ac_try" in
2201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202   *) ac_try_echo=$ac_try;;
2203 esac
2204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 $as_echo "$ac_try_echo"; } >&5
2206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2207   ac_status=$?
2208   if test -s conftest.err; then
2209     grep -v '^ *+' conftest.err >conftest.er1
2210     cat conftest.er1 >&5
2211     mv -f conftest.er1 conftest.err
2212   fi
2213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214   test $ac_status = 0; } > conftest.i && {
2215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2216          test ! -s conftest.err
2217        }; then :
2218   ac_retval=0
2219 else
2220   $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223     ac_retval=1
2224 fi
2225   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226   as_fn_set_status $ac_retval
2227
2228 } # ac_fn_c_try_cpp
2229
2230 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2231 # -------------------------------------------------------
2232 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2233 # the include files in INCLUDES and setting the cache variable VAR
2234 # accordingly.
2235 ac_fn_c_check_header_mongrel ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   if eval "test \"\${$3+set}\"" = set; then :
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval "test \"\${$3+set}\"" = set; then :
2242   $as_echo_n "(cached) " >&6
2243 fi
2244 eval ac_res=\$$3
2245                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 else
2248   # Is the header compilable?
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2250 $as_echo_n "checking $2 usability... " >&6; }
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 #include <$2>
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   ac_header_compiler=yes
2258 else
2259   ac_header_compiler=no
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2263 $as_echo "$ac_header_compiler" >&6; }
2264
2265 # Is the header present?
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2267 $as_echo_n "checking $2 presence... " >&6; }
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 #include <$2>
2271 _ACEOF
2272 if ac_fn_c_try_cpp "$LINENO"; then :
2273   ac_header_preproc=yes
2274 else
2275   ac_header_preproc=no
2276 fi
2277 rm -f conftest.err conftest.i conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2279 $as_echo "$ac_header_preproc" >&6; }
2280
2281 # So?  What about this header?
2282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2283   yes:no: )
2284     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2285 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2287 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2288     ;;
2289   no:yes:* )
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2291 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2293 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2294     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2295 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2296     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2297 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2299 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300 ( $as_echo "## ---------------------------------------------------------------------- ##
2301 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=cairo ##
2302 ## ---------------------------------------------------------------------- ##"
2303      ) | sed "s/^/$as_me: WARNING:     /" >&2
2304     ;;
2305 esac
2306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval "test \"\${$3+set}\"" = set; then :
2309   $as_echo_n "(cached) " >&6
2310 else
2311   eval "$3=\$ac_header_compiler"
2312 fi
2313 eval ac_res=\$$3
2314                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 fi
2317   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318
2319 } # ac_fn_c_check_header_mongrel
2320
2321 # ac_fn_c_try_run LINENO
2322 # ----------------------
2323 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2324 # that executables *can* be run.
2325 ac_fn_c_try_run ()
2326 {
2327   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328   if { { ac_try="$ac_link"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335   (eval "$ac_link") 2>&5
2336   ac_status=$?
2337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2339   { { case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345   (eval "$ac_try") 2>&5
2346   ac_status=$?
2347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348   test $ac_status = 0; }; }; then :
2349   ac_retval=0
2350 else
2351   $as_echo "$as_me: program exited with status $ac_status" >&5
2352        $as_echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355        ac_retval=$ac_status
2356 fi
2357   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2358   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359   as_fn_set_status $ac_retval
2360
2361 } # ac_fn_c_try_run
2362
2363 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2364 # -------------------------------------------------------
2365 # Tests whether HEADER exists and can be compiled using the include files in
2366 # INCLUDES, setting the cache variable VAR accordingly.
2367 ac_fn_c_check_header_compile ()
2368 {
2369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if eval "test \"\${$3+set}\"" = set; then :
2373   $as_echo_n "(cached) " >&6
2374 else
2375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $4
2378 #include <$2>
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   eval "$3=yes"
2382 else
2383   eval "$3=no"
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$3
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391
2392 } # ac_fn_c_check_header_compile
2393
2394 # ac_fn_c_try_link LINENO
2395 # -----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded.
2397 ac_fn_c_try_link ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   rm -f conftest.$ac_objext conftest$ac_exeext
2401   if { { ac_try="$ac_link"
2402 case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408   (eval "$ac_link") 2>conftest.err
2409   ac_status=$?
2410   if test -s conftest.err; then
2411     grep -v '^ *+' conftest.err >conftest.er1
2412     cat conftest.er1 >&5
2413     mv -f conftest.er1 conftest.err
2414   fi
2415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416   test $ac_status = 0; } && {
2417          test -z "$ac_c_werror_flag" ||
2418          test ! -s conftest.err
2419        } && test -s conftest$ac_exeext && {
2420          test "$cross_compiling" = yes ||
2421          $as_test_x conftest$ac_exeext
2422        }; then :
2423   ac_retval=0
2424 else
2425   $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428         ac_retval=1
2429 fi
2430   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2431   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2432   # interfere with the next link command; also delete a directory that is
2433   # left behind by Apple's compiler.  We do this before executing the actions.
2434   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2435   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2436   as_fn_set_status $ac_retval
2437
2438 } # ac_fn_c_try_link
2439
2440 # ac_fn_c_check_func LINENO FUNC VAR
2441 # ----------------------------------
2442 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2443 ac_fn_c_check_func ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if eval "test \"\${$3+set}\"" = set; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2455 #define $2 innocuous_$2
2456
2457 /* System header to define __stub macros and hopefully few prototypes,
2458     which can conflict with char $2 (); below.
2459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2460     <limits.h> exists even on freestanding compilers.  */
2461
2462 #ifdef __STDC__
2463 # include <limits.h>
2464 #else
2465 # include <assert.h>
2466 #endif
2467
2468 #undef $2
2469
2470 /* Override any GCC internal prototype to avoid an error.
2471    Use char because int might match the return type of a GCC
2472    builtin and then its argument prototype would still apply.  */
2473 #ifdef __cplusplus
2474 extern "C"
2475 #endif
2476 char $2 ();
2477 /* The GNU C library defines this for functions which it implements
2478     to always fail with ENOSYS.  Some functions are actually named
2479     something starting with __ and the normal name is an alias.  */
2480 #if defined __stub_$2 || defined __stub___$2
2481 choke me
2482 #endif
2483
2484 int
2485 main ()
2486 {
2487 return $2 ();
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_c_try_link "$LINENO"; then :
2493   eval "$3=yes"
2494 else
2495   eval "$3=no"
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext \
2498     conftest$ac_exeext conftest.$ac_ext
2499 fi
2500 eval ac_res=\$$3
2501                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504
2505 } # ac_fn_c_check_func
2506
2507 # ac_fn_cxx_try_compile LINENO
2508 # ----------------------------
2509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2510 ac_fn_cxx_try_compile ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   rm -f conftest.$ac_objext
2514   if { { ac_try="$ac_compile"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521   (eval "$ac_compile") 2>conftest.err
2522   ac_status=$?
2523   if test -s conftest.err; then
2524     grep -v '^ *+' conftest.err >conftest.er1
2525     cat conftest.er1 >&5
2526     mv -f conftest.er1 conftest.err
2527   fi
2528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529   test $ac_status = 0; } && {
2530          test -z "$ac_cxx_werror_flag" ||
2531          test ! -s conftest.err
2532        } && test -s conftest.$ac_objext; then :
2533   ac_retval=0
2534 else
2535   $as_echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538         ac_retval=1
2539 fi
2540   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541   as_fn_set_status $ac_retval
2542
2543 } # ac_fn_cxx_try_compile
2544
2545 # ac_fn_cxx_try_cpp LINENO
2546 # ------------------------
2547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_cxx_try_cpp ()
2549 {
2550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551   if { { ac_try="$ac_cpp conftest.$ac_ext"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2559   ac_status=$?
2560   if test -s conftest.err; then
2561     grep -v '^ *+' conftest.err >conftest.er1
2562     cat conftest.er1 >&5
2563     mv -f conftest.er1 conftest.err
2564   fi
2565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566   test $ac_status = 0; } > conftest.i && {
2567          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2568          test ! -s conftest.err
2569        }; then :
2570   ac_retval=0
2571 else
2572   $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575     ac_retval=1
2576 fi
2577   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578   as_fn_set_status $ac_retval
2579
2580 } # ac_fn_cxx_try_cpp
2581
2582 # ac_fn_cxx_try_link LINENO
2583 # -------------------------
2584 # Try to link conftest.$ac_ext, and return whether this succeeded.
2585 ac_fn_cxx_try_link ()
2586 {
2587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588   rm -f conftest.$ac_objext conftest$ac_exeext
2589   if { { ac_try="$ac_link"
2590 case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2595 $as_echo "$ac_try_echo"; } >&5
2596   (eval "$ac_link") 2>conftest.err
2597   ac_status=$?
2598   if test -s conftest.err; then
2599     grep -v '^ *+' conftest.err >conftest.er1
2600     cat conftest.er1 >&5
2601     mv -f conftest.er1 conftest.err
2602   fi
2603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604   test $ac_status = 0; } && {
2605          test -z "$ac_cxx_werror_flag" ||
2606          test ! -s conftest.err
2607        } && test -s conftest$ac_exeext && {
2608          test "$cross_compiling" = yes ||
2609          $as_test_x conftest$ac_exeext
2610        }; then :
2611   ac_retval=0
2612 else
2613   $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616         ac_retval=1
2617 fi
2618   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2619   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2620   # interfere with the next link command; also delete a directory that is
2621   # left behind by Apple's compiler.  We do this before executing the actions.
2622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2623   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624   as_fn_set_status $ac_retval
2625
2626 } # ac_fn_cxx_try_link
2627
2628 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2629 # --------------------------------------------
2630 # Tries to find the compile-time value of EXPR in a program that includes
2631 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2632 # computed
2633 ac_fn_c_compute_int ()
2634 {
2635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636   if test "$cross_compiling" = yes; then
2637     # Depending upon the size, compute the lo and hi bounds.
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h.  */
2640 $4
2641 int
2642 main ()
2643 {
2644 static int test_array [1 - 2 * !(($2) >= 0)];
2645 test_array [0] = 0
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652   ac_lo=0 ac_mid=0
2653   while :; do
2654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h.  */
2656 $4
2657 int
2658 main ()
2659 {
2660 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2661 test_array [0] = 0
2662
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668   ac_hi=$ac_mid; break
2669 else
2670   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2671                         if test $ac_lo -le $ac_mid; then
2672                           ac_lo= ac_hi=
2673                           break
2674                         fi
2675                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678   done
2679 else
2680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h.  */
2682 $4
2683 int
2684 main ()
2685 {
2686 static int test_array [1 - 2 * !(($2) < 0)];
2687 test_array [0] = 0
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694   ac_hi=-1 ac_mid=-1
2695   while :; do
2696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h.  */
2698 $4
2699 int
2700 main ()
2701 {
2702 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2703 test_array [0] = 0
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710   ac_lo=$ac_mid; break
2711 else
2712   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2713                         if test $ac_mid -le $ac_hi; then
2714                           ac_lo= ac_hi=
2715                           break
2716                         fi
2717                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720   done
2721 else
2722   ac_lo= ac_hi=
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h.  */
2732 $4
2733 int
2734 main ()
2735 {
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2737 test_array [0] = 0
2738
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 if ac_fn_c_try_compile "$LINENO"; then :
2744   ac_hi=$ac_mid
2745 else
2746   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2747 fi
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 done
2750 case $ac_lo in #((
2751 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2752 '') ac_retval=1 ;;
2753 esac
2754   else
2755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h.  */
2757 $4
2758 static long int longval () { return $2; }
2759 static unsigned long int ulongval () { return $2; }
2760 #include <stdio.h>
2761 #include <stdlib.h>
2762 int
2763 main ()
2764 {
2765
2766   FILE *f = fopen ("conftest.val", "w");
2767   if (! f)
2768     return 1;
2769   if (($2) < 0)
2770     {
2771       long int i = longval ();
2772       if (i != ($2))
2773         return 1;
2774       fprintf (f, "%ld", i);
2775     }
2776   else
2777     {
2778       unsigned long int i = ulongval ();
2779       if (i != ($2))
2780         return 1;
2781       fprintf (f, "%lu", i);
2782     }
2783   /* Do not output a trailing newline, as this causes \r\n confusion
2784      on some platforms.  */
2785   return ferror (f) || fclose (f) != 0;
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_c_try_run "$LINENO"; then :
2792   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2793 else
2794   ac_retval=1
2795 fi
2796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2797   conftest.$ac_objext conftest.beam conftest.$ac_ext
2798 rm -f conftest.val
2799
2800   fi
2801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802   as_fn_set_status $ac_retval
2803
2804 } # ac_fn_c_compute_int
2805
2806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2807 # -------------------------------------------
2808 # Tests whether TYPE exists after having included INCLUDES, setting cache
2809 # variable VAR accordingly.
2810 ac_fn_c_check_type ()
2811 {
2812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2814 $as_echo_n "checking for $2... " >&6; }
2815 if eval "test \"\${$3+set}\"" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   eval "$3=no"
2819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h.  */
2821 $4
2822 int
2823 main ()
2824 {
2825 if (sizeof ($2))
2826          return 0;
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h.  */
2834 $4
2835 int
2836 main ()
2837 {
2838 if (sizeof (($2)))
2839             return 0;
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2845
2846 else
2847   eval "$3=yes"
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 eval ac_res=\$$3
2854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2857
2858 } # ac_fn_c_check_type
2859
2860 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2861 # ----------------------------------------------------
2862 # Tries to find if the field MEMBER exists in type AGGR, after including
2863 # INCLUDES, setting cache variable VAR accordingly.
2864 ac_fn_c_check_member ()
2865 {
2866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2868 $as_echo_n "checking for $2.$3... " >&6; }
2869 if eval "test \"\${$4+set}\"" = set; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h.  */
2874 $5
2875 int
2876 main ()
2877 {
2878 static $2 ac_aggr;
2879 if (ac_aggr.$3)
2880 return 0;
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886   eval "$4=yes"
2887 else
2888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h.  */
2890 $5
2891 int
2892 main ()
2893 {
2894 static $2 ac_aggr;
2895 if (sizeof ac_aggr.$3)
2896 return 0;
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2902   eval "$4=yes"
2903 else
2904   eval "$4=no"
2905 fi
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 fi
2910 eval ac_res=\$$4
2911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2914
2915 } # ac_fn_c_check_member
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2919
2920 It was created by cairo $as_me 1.12.3, which was
2921 generated by GNU Autoconf 2.67.  Invocation command line was
2922
2923   $ $0 $@
2924
2925 _ACEOF
2926 exec 5>>config.log
2927 {
2928 cat <<_ASUNAME
2929 ## --------- ##
2930 ## Platform. ##
2931 ## --------- ##
2932
2933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2938
2939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2940 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2941
2942 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2943 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2945 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2946 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2947 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2948 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2949
2950 _ASUNAME
2951
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     $as_echo "PATH: $as_dir"
2958   done
2959 IFS=$as_save_IFS
2960
2961 } >&5
2962
2963 cat >&5 <<_ACEOF
2964
2965
2966 ## ----------- ##
2967 ## Core tests. ##
2968 ## ----------- ##
2969
2970 _ACEOF
2971
2972
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2978 ac_configure_args=
2979 ac_configure_args0=
2980 ac_configure_args1=
2981 ac_must_keep_next=false
2982 for ac_pass in 1 2
2983 do
2984   for ac_arg
2985   do
2986     case $ac_arg in
2987     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989     | -silent | --silent | --silen | --sile | --sil)
2990       continue ;;
2991     *\'*)
2992       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2993     esac
2994     case $ac_pass in
2995     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2996     2)
2997       as_fn_append ac_configure_args1 " '$ac_arg'"
2998       if test $ac_must_keep_next = true; then
2999         ac_must_keep_next=false # Got value, back to normal.
3000       else
3001         case $ac_arg in
3002           *=* | --config-cache | -C | -disable-* | --disable-* \
3003           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005           | -with-* | --with-* | -without-* | --without-* | --x)
3006             case "$ac_configure_args0 " in
3007               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3008             esac
3009             ;;
3010           -* ) ac_must_keep_next=true ;;
3011         esac
3012       fi
3013       as_fn_append ac_configure_args " '$ac_arg'"
3014       ;;
3015     esac
3016   done
3017 done
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3020
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log.  We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027   # Save into config.log some information that might help in debugging.
3028   {
3029     echo
3030
3031     $as_echo "## ---------------- ##
3032 ## Cache variables. ##
3033 ## ---------------- ##"
3034     echo
3035     # The following way of writing the cache mishandles newlines in values,
3036 (
3037   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3038     eval ac_val=\$$ac_var
3039     case $ac_val in #(
3040     *${as_nl}*)
3041       case $ac_var in #(
3042       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3044       esac
3045       case $ac_var in #(
3046       _ | IFS | as_nl) ;; #(
3047       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3048       *) { eval $ac_var=; unset $ac_var;} ;;
3049       esac ;;
3050     esac
3051   done
3052   (set) 2>&1 |
3053     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3054     *${as_nl}ac_space=\ *)
3055       sed -n \
3056         "s/'\''/'\''\\\\'\'''\''/g;
3057           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3058       ;; #(
3059     *)
3060       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3061       ;;
3062     esac |
3063     sort
3064 )
3065     echo
3066
3067     $as_echo "## ----------------- ##
3068 ## Output variables. ##
3069 ## ----------------- ##"
3070     echo
3071     for ac_var in $ac_subst_vars
3072     do
3073       eval ac_val=\$$ac_var
3074       case $ac_val in
3075       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3076       esac
3077       $as_echo "$ac_var='\''$ac_val'\''"
3078     done | sort
3079     echo
3080
3081     if test -n "$ac_subst_files"; then
3082       $as_echo "## ------------------- ##
3083 ## File substitutions. ##
3084 ## ------------------- ##"
3085       echo
3086       for ac_var in $ac_subst_files
3087       do
3088         eval ac_val=\$$ac_var
3089         case $ac_val in
3090         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3091         esac
3092         $as_echo "$ac_var='\''$ac_val'\''"
3093       done | sort
3094       echo
3095     fi
3096
3097     if test -s confdefs.h; then
3098       $as_echo "## ----------- ##
3099 ## confdefs.h. ##
3100 ## ----------- ##"
3101       echo
3102       cat confdefs.h
3103       echo
3104     fi
3105     test "$ac_signal" != 0 &&
3106       $as_echo "$as_me: caught signal $ac_signal"
3107     $as_echo "$as_me: exit $exit_status"
3108   } >&5
3109   rm -f core *.core core.conftest.* &&
3110     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3111     exit $exit_status
3112 ' 0
3113 for ac_signal in 1 2 13 15; do
3114   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3115 done
3116 ac_signal=0
3117
3118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3119 rm -f -r conftest* confdefs.h
3120
3121 $as_echo "/* confdefs.h */" > confdefs.h
3122
3123 # Predefined preprocessor variables.
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_NAME "$PACKAGE_NAME"
3127 _ACEOF
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3131 _ACEOF
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3135 _ACEOF
3136
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_STRING "$PACKAGE_STRING"
3139 _ACEOF
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3143 _ACEOF
3144
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_URL "$PACKAGE_URL"
3147 _ACEOF
3148
3149
3150 # Let the site file select an alternate cache file if it wants to.
3151 # Prefer an explicitly selected file to automatically selected ones.
3152 ac_site_file1=NONE
3153 ac_site_file2=NONE
3154 if test -n "$CONFIG_SITE"; then
3155   # We do not want a PATH search for config.site.
3156   case $CONFIG_SITE in #((
3157     -*)  ac_site_file1=./$CONFIG_SITE;;
3158     */*) ac_site_file1=$CONFIG_SITE;;
3159     *)   ac_site_file1=./$CONFIG_SITE;;
3160   esac
3161 elif test "x$prefix" != xNONE; then
3162   ac_site_file1=$prefix/share/config.site
3163   ac_site_file2=$prefix/etc/config.site
3164 else
3165   ac_site_file1=$ac_default_prefix/share/config.site
3166   ac_site_file2=$ac_default_prefix/etc/config.site
3167 fi
3168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3169 do
3170   test "x$ac_site_file" = xNONE && continue
3171   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3172     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3174     sed 's/^/| /' "$ac_site_file" >&5
3175     . "$ac_site_file" \
3176       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "failed to load site script $ac_site_file
3179 See \`config.log' for more details" "$LINENO" 5 ; }
3180   fi
3181 done
3182
3183 if test -r "$cache_file"; then
3184   # Some versions of bash will fail to source /dev/null (special files
3185   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3186   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3187     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3188 $as_echo "$as_me: loading cache $cache_file" >&6;}
3189     case $cache_file in
3190       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3191       *)                      . "./$cache_file";;
3192     esac
3193   fi
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3196 $as_echo "$as_me: creating cache $cache_file" >&6;}
3197   >$cache_file
3198 fi
3199
3200 # Check that the precious variables saved in the cache have kept the same
3201 # value.
3202 ac_cache_corrupted=false
3203 for ac_var in $ac_precious_vars; do
3204   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3205   eval ac_new_set=\$ac_env_${ac_var}_set
3206   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3207   eval ac_new_val=\$ac_env_${ac_var}_value
3208   case $ac_old_set,$ac_new_set in
3209     set,)
3210       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3212       ac_cache_corrupted=: ;;
3213     ,set)
3214       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3216       ac_cache_corrupted=: ;;
3217     ,);;
3218     *)
3219       if test "x$ac_old_val" != "x$ac_new_val"; then
3220         # differences in whitespace do not lead to failure.
3221         ac_old_val_w=`echo x $ac_old_val`
3222         ac_new_val_w=`echo x $ac_new_val`
3223         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3224           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3226           ac_cache_corrupted=:
3227         else
3228           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3230           eval $ac_var=\$ac_old_val
3231         fi
3232         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3233 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3234         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3235 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3236       fi;;
3237   esac
3238   # Pass precious variables to config.status.
3239   if test "$ac_new_set" = set; then
3240     case $ac_new_val in
3241     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3242     *) ac_arg=$ac_var=$ac_new_val ;;
3243     esac
3244     case " $ac_configure_args " in
3245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3246       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3247     esac
3248   fi
3249 done
3250 if $ac_cache_corrupted; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3255   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3256 fi
3257 ## -------------------- ##
3258 ## Main body of script. ##
3259 ## -------------------- ##
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267
3268 ac_aux_dir=
3269 for ac_dir in build "$srcdir"/build; do
3270   if test -f "$ac_dir/install-sh"; then
3271     ac_aux_dir=$ac_dir
3272     ac_install_sh="$ac_aux_dir/install-sh -c"
3273     break
3274   elif test -f "$ac_dir/install.sh"; then
3275     ac_aux_dir=$ac_dir
3276     ac_install_sh="$ac_aux_dir/install.sh -c"
3277     break
3278   elif test -f "$ac_dir/shtool"; then
3279     ac_aux_dir=$ac_dir
3280     ac_install_sh="$ac_aux_dir/shtool install -c"
3281     break
3282   fi
3283 done
3284 if test -z "$ac_aux_dir"; then
3285   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
3286 fi
3287
3288 # These three variables are undocumented and unsupported,
3289 # and are intended to be withdrawn in a future Autoconf release.
3290 # They can cause serious problems if a builder's source tree is in a directory
3291 # whose full name contains unusual characters.
3292 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3293 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3294 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3295
3296
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$CC"; then
3312   ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 fi
3342 if test -z "$ac_cv_prog_CC"; then
3343   ac_ct_CC=$CC
3344   # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if test -n "$ac_ct_CC"; then
3352   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359     for ac_exec_ext in '' $ac_executable_extensions; do
3360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361     ac_cv_prog_ac_ct_CC="gcc"
3362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366   done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380   if test "x$ac_ct_CC" = x; then
3381     CC=""
3382   else
3383     case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389     CC=$ac_ct_CC
3390   fi
3391 else
3392   CC="$ac_cv_prog_CC"
3393 fi
3394
3395 if test -z "$CC"; then
3396           if test -n "$ac_tool_prefix"; then
3397     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$CC"; then
3405   ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412     for ac_exec_ext in '' $ac_executable_extensions; do
3413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414     ac_cv_prog_CC="${ac_tool_prefix}cc"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434   fi
3435 fi
3436 if test -z "$CC"; then
3437   # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   if test -n "$CC"; then
3445   ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447   ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456        ac_prog_rejected=yes
3457        continue
3458      fi
3459     ac_cv_prog_CC="cc"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 if test $ac_prog_rejected = yes; then
3468   # We found a bogon in the path, so make sure we never use it.
3469   set dummy $ac_cv_prog_CC
3470   shift
3471   if test $# != 0; then
3472     # We chose a different compiler from the bogus one.
3473     # However, it has the same basename, so the bogon will be chosen
3474     # first if we set CC to just the basename; use the full file name.
3475     shift
3476     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477   fi
3478 fi
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$CC"; then
3493   if test -n "$ac_tool_prefix"; then
3494   for ac_prog in cl.exe
3495   do
3496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test -n "$CC"; then
3504   ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_exec_ext in '' $ac_executable_extensions; do
3512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518   done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 fi
3531
3532
3533     test -n "$CC" && break
3534   done
3535 fi
3536 if test -z "$CC"; then
3537   ac_ct_CC=$CC
3538   for ac_prog in cl.exe
3539 do
3540   # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$ac_ct_CC"; then
3548   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557     ac_cv_prog_ac_ct_CC="$ac_prog"
3558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562   done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577   test -n "$ac_ct_CC" && break
3578 done
3579
3580   if test "x$ac_ct_CC" = x; then
3581     CC=""
3582   else
3583     case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589     CC=$ac_ct_CC
3590   fi
3591 fi
3592
3593 fi
3594
3595
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3600
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion; do
3606   { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614   ac_status=$?
3615   if test -s conftest.err; then
3616     sed '10a\
3617 ... rest of stderr output deleted ...
3618          10q' conftest.err >conftest.er1
3619     cat conftest.er1 >&5
3620   fi
3621   rm -f conftest.er1 conftest.err
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }
3624 done
3625
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3641 # of exeext.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 $as_echo_n "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3645
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3648
3649 ac_rmfiles=
3650 for ac_file in $ac_files
3651 do
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655   esac
3656 done
3657 rm -f $ac_rmfiles
3658
3659 if { { ac_try="$ac_link_default"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666   (eval "$ac_link_default") 2>&5
3667   ac_status=$?
3668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669   test $ac_status = 0; }; then :
3670   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3674 # Autoconf.
3675 for ac_file in $ac_files ''
3676 do
3677   test -f "$ac_file" || continue
3678   case $ac_file in
3679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3680         ;;
3681     [ab].out )
3682         # We found the default executable, but exeext='' is most
3683         # certainly right.
3684         break;;
3685     *.* )
3686         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687         then :; else
3688            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689         fi
3690         # We set ac_cv_exeext here because the later test for it is not
3691         # safe: cross compilers may not add the suffix if given an `-o'
3692         # argument, so we may need to know it at that point already.
3693         # Even if this section looks crufty: it has the advantage of
3694         # actually working.
3695         break;;
3696     * )
3697         break;;
3698   esac
3699 done
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3701
3702 else
3703   ac_file=''
3704 fi
3705 if test -z "$ac_file"; then :
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error 77 "C compiler cannot create executables
3714 See \`config.log' for more details" "$LINENO" 5 ; }
3715 else
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3717 $as_echo "yes" >&6; }
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 ac_exeext=$ac_cv_exeext
3724
3725 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3726 ac_clean_files=$ac_clean_files_save
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3728 $as_echo_n "checking for suffix of executables... " >&6; }
3729 if { { ac_try="$ac_link"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736   (eval "$ac_link") 2>&5
3737   ac_status=$?
3738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739   test $ac_status = 0; }; then :
3740   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3741 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3742 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 # `rm'.
3744 for ac_file in conftest.exe conftest conftest.*; do
3745   test -f "$ac_file" || continue
3746   case $ac_file in
3747     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749           break;;
3750     * ) break;;
3751   esac
3752 done
3753 else
3754   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3756 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details" "$LINENO" 5 ; }
3758 fi
3759 rm -f conftest conftest$ac_cv_exeext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3761 $as_echo "$ac_cv_exeext" >&6; }
3762
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3765 ac_exeext=$EXEEXT
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <stdio.h>
3769 int
3770 main ()
3771 {
3772 FILE *f = fopen ("conftest.out", "w");
3773  return ferror (f) || fclose (f) != 0;
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 ac_clean_files="$ac_clean_files conftest.out"
3780 # Check that the compiler produces executables we can run.  If not, either
3781 # the compiler is broken, or we cross compile.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3783 $as_echo_n "checking whether we are cross compiling... " >&6; }
3784 if test "$cross_compiling" != yes; then
3785   { { ac_try="$ac_link"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792   (eval "$ac_link") 2>&5
3793   ac_status=$?
3794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795   test $ac_status = 0; }
3796   if { ac_try='./conftest$ac_cv_exeext'
3797   { { case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_try") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }; }; then
3807     cross_compiling=no
3808   else
3809     if test "$cross_compiling" = maybe; then
3810         cross_compiling=yes
3811     else
3812         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot run C compiled programs.
3815 If you meant to cross compile, use \`--host'.
3816 See \`config.log' for more details" "$LINENO" 5 ; }
3817     fi
3818   fi
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3821 $as_echo "$cross_compiling" >&6; }
3822
3823 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3824 ac_clean_files=$ac_clean_files_save
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3826 $as_echo_n "checking for suffix of object files... " >&6; }
3827 if test "${ac_cv_objext+set}" = set; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.o conftest.obj
3842 if { { ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849   (eval "$ac_compile") 2>&5
3850   ac_status=$?
3851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852   test $ac_status = 0; }; then :
3853   for ac_file in conftest.o conftest.obj conftest.*; do
3854   test -f "$ac_file" || continue;
3855   case $ac_file in
3856     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3857     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3858        break;;
3859   esac
3860 done
3861 else
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of object files: cannot compile
3868 See \`config.log' for more details" "$LINENO" 5 ; }
3869 fi
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3873 $as_echo "$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3875 ac_objext=$OBJEXT
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3877 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3878 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3879   $as_echo_n "(cached) " >&6
3880 else
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883
3884 int
3885 main ()
3886 {
3887 #ifndef __GNUC__
3888        choke me
3889 #endif
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_compiler_gnu=yes
3897 else
3898   ac_compiler_gnu=no
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3906 if test $ac_compiler_gnu = yes; then
3907   GCC=yes
3908 else
3909   GCC=
3910 fi
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3914 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   ac_save_c_werror_flag=$ac_c_werror_flag
3919    ac_c_werror_flag=yes
3920    ac_cv_prog_cc_g=no
3921    CFLAGS="-g"
3922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928
3929   ;
3930   return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934   ac_cv_prog_cc_g=yes
3935 else
3936   CFLAGS=""
3937       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939
3940 int
3941 main ()
3942 {
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949
3950 else
3951   ac_c_werror_flag=$ac_save_c_werror_flag
3952          CFLAGS="-g"
3953          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965   ac_cv_prog_cc_g=yes
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972    ac_c_werror_flag=$ac_save_c_werror_flag
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3975 $as_echo "$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977   CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979   if test "$GCC" = yes; then
3980     CFLAGS="-g -O2"
3981   else
3982     CFLAGS="-g"
3983   fi
3984 else
3985   if test "$GCC" = yes; then
3986     CFLAGS="-O2"
3987   else
3988     CFLAGS=
3989   fi
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3993 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   ac_cv_prog_cc_c89=no
3997 ac_save_CC=$CC
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #include <stdarg.h>
4001 #include <stdio.h>
4002 #include <sys/types.h>
4003 #include <sys/stat.h>
4004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4005 struct buf { int x; };
4006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4007 static char *e (p, i)
4008      char **p;
4009      int i;
4010 {
4011   return p[i];
4012 }
4013 static char *f (char * (*g) (char **, int), char **p, ...)
4014 {
4015   char *s;
4016   va_list v;
4017   va_start (v,p);
4018   s = g (p, va_arg (v,int));
4019   va_end (v);
4020   return s;
4021 }
4022
4023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4024    function prototypes and stuff, but not '\xHH' hex character constants.
4025    These don't provoke an error unfortunately, instead are silently treated
4026    as 'x'.  The following induces an error, until -std is added to get
4027    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4028    array size at least.  It's necessary to write '\x00'==0 to get something
4029    that's true only with -std.  */
4030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031
4032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4033    inside strings and character constants.  */
4034 #define FOO(x) 'x'
4035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036
4037 int test (int i, double x);
4038 struct s1 {int (*f) (int a);};
4039 struct s2 {int (*f) (double a);};
4040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 int argc;
4042 char **argv;
4043 int
4044 main ()
4045 {
4046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4052         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 do
4054   CC="$ac_save_CC $ac_arg"
4055   if ac_fn_c_try_compile "$LINENO"; then :
4056   ac_cv_prog_cc_c89=$ac_arg
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext
4059   test "x$ac_cv_prog_cc_c89" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4063
4064 fi
4065 # AC_CACHE_VAL
4066 case "x$ac_cv_prog_cc_c89" in
4067   x)
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4070   xno)
4071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4073   *)
4074     CC="$CC $ac_cv_prog_cc_c89"
4075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4077 esac
4078 if test "x$ac_cv_prog_cc_c89" != xno; then :
4079
4080 fi
4081
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4098   CPP=
4099 fi
4100 if test -z "$CPP"; then
4101   if test "${ac_cv_prog_CPP+set}" = set; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104       # Double quotes because CPP needs to be expanded
4105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106     do
4107       ac_preproc_ok=false
4108 for ac_c_preproc_warn_flag in '' yes
4109 do
4110   # Use a header file that comes with gcc, so configuring glibc
4111   # with a fresh cross-compiler works.
4112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113   # <limits.h> exists even on freestanding compilers.
4114   # On the NeXT, cc -E runs the code through the compiler's parser,
4115   # not just through cpp. "Syntax error" is here to catch this case.
4116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118 #ifdef __STDC__
4119 # include <limits.h>
4120 #else
4121 # include <assert.h>
4122 #endif
4123                      Syntax error
4124 _ACEOF
4125 if ac_fn_c_try_cpp "$LINENO"; then :
4126
4127 else
4128   # Broken: fails on valid input.
4129 continue
4130 fi
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133   # OK, works on sane cases.  Now check whether nonexistent headers
4134   # can be detected and how.
4135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h.  */
4137 #include <ac_nonexistent.h>
4138 _ACEOF
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4140   # Broken: success on invalid input.
4141 continue
4142 else
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.i conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then :
4153   break
4154 fi
4155
4156     done
4157     ac_cv_prog_CPP=$CPP
4158
4159 fi
4160   CPP=$ac_cv_prog_CPP
4161 else
4162   ac_cv_prog_CPP=$CPP
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165 $as_echo "$CPP" >&6; }
4166 ac_preproc_ok=false
4167 for ac_c_preproc_warn_flag in '' yes
4168 do
4169   # Use a header file that comes with gcc, so configuring glibc
4170   # with a fresh cross-compiler works.
4171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172   # <limits.h> exists even on freestanding compilers.
4173   # On the NeXT, cc -E runs the code through the compiler's parser,
4174   # not just through cpp. "Syntax error" is here to catch this case.
4175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h.  */
4177 #ifdef __STDC__
4178 # include <limits.h>
4179 #else
4180 # include <assert.h>
4181 #endif
4182                      Syntax error
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185
4186 else
4187   # Broken: fails on valid input.
4188 continue
4189 fi
4190 rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192   # OK, works on sane cases.  Now check whether nonexistent headers
4193   # can be detected and how.
4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196 #include <ac_nonexistent.h>
4197 _ACEOF
4198 if ac_fn_c_try_cpp "$LINENO"; then :
4199   # Broken: success on invalid input.
4200 continue
4201 else
4202   # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4205 fi
4206 rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208 done
4209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4210 rm -f conftest.i conftest.err conftest.$ac_ext
4211 if $ac_preproc_ok; then :
4212
4213 else
4214   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217 See \`config.log' for more details" "$LINENO" 5 ; }
4218 fi
4219
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229 if test "${ac_cv_path_GREP+set}" = set; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   if test -z "$GREP"; then
4233   ac_path_GREP_found=false
4234   # Loop through the user's path and test for each of PROGNAME-LIST
4235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240     for ac_prog in grep ggrep; do
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4244 # Check for GNU ac_path_GREP and select it if it is found.
4245   # Check for GNU $ac_path_GREP
4246 case `"$ac_path_GREP" --version 2>&1` in
4247 *GNU*)
4248   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249 *)
4250   ac_count=0
4251   $as_echo_n 0123456789 >"conftest.in"
4252   while :
4253   do
4254     cat "conftest.in" "conftest.in" >"conftest.tmp"
4255     mv "conftest.tmp" "conftest.in"
4256     cp "conftest.in" "conftest.nl"
4257     $as_echo 'GREP' >> "conftest.nl"
4258     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260     as_fn_arith $ac_count + 1 && ac_count=$as_val
4261     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262       # Best one so far, save it but keep looking for a better one
4263       ac_cv_path_GREP="$ac_path_GREP"
4264       ac_path_GREP_max=$ac_count
4265     fi
4266     # 10*(2^10) chars as input seems more than enough
4267     test $ac_count -gt 10 && break
4268   done
4269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272       $ac_path_GREP_found && break 3
4273     done
4274   done
4275   done
4276 IFS=$as_save_IFS
4277   if test -z "$ac_cv_path_GREP"; then
4278     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279   fi
4280 else
4281   ac_cv_path_GREP=$GREP
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286 $as_echo "$ac_cv_path_GREP" >&6; }
4287  GREP="$ac_cv_path_GREP"
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291 $as_echo_n "checking for egrep... " >&6; }
4292 if test "${ac_cv_path_EGREP+set}" = set; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296    then ac_cv_path_EGREP="$GREP -E"
4297    else
4298      if test -z "$EGREP"; then
4299   ac_path_EGREP_found=false
4300   # Loop through the user's path and test for each of PROGNAME-LIST
4301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306     for ac_prog in egrep; do
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4310 # Check for GNU ac_path_EGREP and select it if it is found.
4311   # Check for GNU $ac_path_EGREP
4312 case `"$ac_path_EGREP" --version 2>&1` in
4313 *GNU*)
4314   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315 *)
4316   ac_count=0
4317   $as_echo_n 0123456789 >"conftest.in"
4318   while :
4319   do
4320     cat "conftest.in" "conftest.in" >"conftest.tmp"
4321     mv "conftest.tmp" "conftest.in"
4322     cp "conftest.in" "conftest.nl"
4323     $as_echo 'EGREP' >> "conftest.nl"
4324     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326     as_fn_arith $ac_count + 1 && ac_count=$as_val
4327     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328       # Best one so far, save it but keep looking for a better one
4329       ac_cv_path_EGREP="$ac_path_EGREP"
4330       ac_path_EGREP_max=$ac_count
4331     fi
4332     # 10*(2^10) chars as input seems more than enough
4333     test $ac_count -gt 10 && break
4334   done
4335   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336 esac
4337
4338       $ac_path_EGREP_found && break 3
4339     done
4340   done
4341   done
4342 IFS=$as_save_IFS
4343   if test -z "$ac_cv_path_EGREP"; then
4344     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345   fi
4346 else
4347   ac_cv_path_EGREP=$EGREP
4348 fi
4349
4350    fi
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353 $as_echo "$ac_cv_path_EGREP" >&6; }
4354  EGREP="$ac_cv_path_EGREP"
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358 $as_echo_n "checking for ANSI C header files... " >&6; }
4359 if test "${ac_cv_header_stdc+set}" = set; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h.  */
4364 #include <stdlib.h>
4365 #include <stdarg.h>
4366 #include <string.h>
4367 #include <float.h>
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"; then :
4378   ac_cv_header_stdc=yes
4379 else
4380   ac_cv_header_stdc=no
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383
4384 if test $ac_cv_header_stdc = yes; then
4385   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388 #include <string.h>
4389
4390 _ACEOF
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392   $EGREP "memchr" >/dev/null 2>&1; then :
4393
4394 else
4395   ac_cv_header_stdc=no
4396 fi
4397 rm -f conftest*
4398
4399 fi
4400
4401 if test $ac_cv_header_stdc = yes; then
4402   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405 #include <stdlib.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409   $EGREP "free" >/dev/null 2>&1; then :
4410
4411 else
4412   ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420   if test "$cross_compiling" = yes; then :
4421   :
4422 else
4423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h.  */
4425 #include <ctype.h>
4426 #include <stdlib.h>
4427 #if ((' ' & 0x0FF) == 0x020)
4428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430 #else
4431 # define ISLOWER(c) \
4432                    (('a' <= (c) && (c) <= 'i') \
4433                      || ('j' <= (c) && (c) <= 'r') \
4434                      || ('s' <= (c) && (c) <= 'z'))
4435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436 #endif
4437
4438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439 int
4440 main ()
4441 {
4442   int i;
4443   for (i = 0; i < 256; i++)
4444     if (XOR (islower (i), ISLOWER (i))
4445         || toupper (i) != TOUPPER (i))
4446       return 2;
4447   return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_run "$LINENO"; then :
4451
4452 else
4453   ac_cv_header_stdc=no
4454 fi
4455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456   conftest.$ac_objext conftest.beam conftest.$ac_ext
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462 $as_echo "$ac_cv_header_stdc" >&6; }
4463 if test $ac_cv_header_stdc = yes; then
4464
4465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4466
4467 fi
4468
4469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471                   inttypes.h stdint.h unistd.h
4472 do :
4473   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475 "
4476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4477   cat >>confdefs.h <<_ACEOF
4478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479 _ACEOF
4480
4481 fi
4482
4483 done
4484
4485
4486
4487   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4488 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4489   MINIX=yes
4490 else
4491   MINIX=
4492 fi
4493
4494
4495   if test "$MINIX" = yes; then
4496
4497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4498
4499
4500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4501
4502
4503 $as_echo "#define _MINIX 1" >>confdefs.h
4504
4505   fi
4506
4507
4508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4510 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h.  */
4515
4516 #         define __EXTENSIONS__ 1
4517           $ac_includes_default
4518 int
4519 main ()
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"; then :
4527   ac_cv_safe_to_define___extensions__=yes
4528 else
4529   ac_cv_safe_to_define___extensions__=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4535   test $ac_cv_safe_to_define___extensions__ = yes &&
4536     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4537
4538   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4539
4540   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4541
4542   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4543
4544   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4545
4546
4547
4548 ac_config_headers="$ac_config_headers config.h"
4549
4550
4551 am__api_version='1.11'
4552
4553 # Find a good install program.  We prefer a C program (faster),
4554 # so one script is as good as another.  But avoid the broken or
4555 # incompatible versions:
4556 # SysV /etc/install, /usr/sbin/install
4557 # SunOS /usr/etc/install
4558 # IRIX /sbin/install
4559 # AIX /bin/install
4560 # AmigaOS /C/install, which installs bootblocks on floppy discs
4561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4564 # OS/2's system install, which has a completely different semantic
4565 # ./install, which can be erroneously created by make from ./install.sh.
4566 # Reject install programs that cannot install multiple files.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4569 if test -z "$INSTALL"; then
4570 if test "${ac_cv_path_install+set}" = set; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     # Account for people who put trailing slashes in PATH elements.
4579 case $as_dir/ in #((
4580   ./ | .// | /[cC]/* | \
4581   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4582   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4583   /usr/ucb/* ) ;;
4584   *)
4585     # OSF1 and SCO ODT 3.0 have their own names for install.
4586     # Don't use installbsd from OSF since it installs stuff as root
4587     # by default.
4588     for ac_prog in ginstall scoinst install; do
4589       for ac_exec_ext in '' $ac_executable_extensions; do
4590         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4591           if test $ac_prog = install &&
4592             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4593             # AIX install.  It has an incompatible calling convention.
4594             :
4595           elif test $ac_prog = install &&
4596             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597             # program-specific install script used by HP pwplus--don't use.
4598             :
4599           else
4600             rm -rf conftest.one conftest.two conftest.dir
4601             echo one > conftest.one
4602             echo two > conftest.two
4603             mkdir conftest.dir
4604             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4605               test -s conftest.one && test -s conftest.two &&
4606               test -s conftest.dir/conftest.one &&
4607               test -s conftest.dir/conftest.two
4608             then
4609               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4610               break 3
4611             fi
4612           fi
4613         fi
4614       done
4615     done
4616     ;;
4617 esac
4618
4619   done
4620 IFS=$as_save_IFS
4621
4622 rm -rf conftest.one conftest.two conftest.dir
4623
4624 fi
4625   if test "${ac_cv_path_install+set}" = set; then
4626     INSTALL=$ac_cv_path_install
4627   else
4628     # As a last resort, use the slow shell script.  Don't cache a
4629     # value for INSTALL within a source directory, because that will
4630     # break other packages using the cache if that directory is
4631     # removed, or if the value is a relative name.
4632     INSTALL=$ac_install_sh
4633   fi
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4636 $as_echo "$INSTALL" >&6; }
4637
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4647 $as_echo_n "checking whether build environment is sane... " >&6; }
4648 # Just in case
4649 sleep 1
4650 echo timestamp > conftest.file
4651 # Reject unsafe characters in $srcdir or the absolute working directory
4652 # name.  Accept space and tab only in the latter.
4653 am_lf='
4654 '
4655 case `pwd` in
4656   *[\\\"\#\$\&\'\`$am_lf]*)
4657     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
4658 esac
4659 case $srcdir in
4660   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4661     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
4662 esac
4663
4664 # Do `set' in a subshell so we don't clobber the current shell's
4665 # arguments.  Must try -L first in case configure is actually a
4666 # symlink; some systems play weird games with the mod time of symlinks
4667 # (eg FreeBSD returns the mod time of the symlink's containing
4668 # directory).
4669 if (
4670    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4671    if test "$*" = "X"; then
4672       # -L didn't work.
4673       set X `ls -t "$srcdir/configure" conftest.file`
4674    fi
4675    rm -f conftest.file
4676    if test "$*" != "X $srcdir/configure conftest.file" \
4677       && test "$*" != "X conftest.file $srcdir/configure"; then
4678
4679       # If neither matched, then we have a broken ls.  This can happen
4680       # if, for instance, CONFIG_SHELL is bash and it inherits a
4681       # broken ls alias from the environment.  This has actually
4682       # happened.  Such a system could not be considered "sane".
4683       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4684 alias in your environment" "$LINENO" 5
4685    fi
4686
4687    test "$2" = conftest.file
4688    )
4689 then
4690    # Ok.
4691    :
4692 else
4693    as_fn_error $? "newly created file is older than distributed files!
4694 Check your system clock" "$LINENO" 5
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697 $as_echo "yes" >&6; }
4698 test "$program_prefix" != NONE &&
4699   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4700 # Use a double $ so make ignores it.
4701 test "$program_suffix" != NONE &&
4702   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4703 # Double any \ or $.
4704 # By default was `s,x,x', remove it if useless.
4705 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4706 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4707
4708 # expand $ac_aux_dir to an absolute path
4709 am_aux_dir=`cd $ac_aux_dir && pwd`
4710
4711 if test x"${MISSING+set}" != xset; then
4712   case $am_aux_dir in
4713   *\ * | *\     *)
4714     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4715   *)
4716     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4717   esac
4718 fi
4719 # Use eval to expand $SHELL
4720 if eval "$MISSING --run true"; then
4721   am_missing_run="$MISSING --run "
4722 else
4723   am_missing_run=
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4725 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4726 fi
4727
4728 if test x"${install_sh}" != xset; then
4729   case $am_aux_dir in
4730   *\ * | *\     *)
4731     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4732   *)
4733     install_sh="\${SHELL} $am_aux_dir/install-sh"
4734   esac
4735 fi
4736
4737 # Installed binaries are usually stripped using `strip' when the user
4738 # run `make install-strip'.  However `strip' might not be the right
4739 # tool to use in cross-compilation environments, therefore Automake
4740 # will honor the `STRIP' environment variable to overrule this program.
4741 if test "$cross_compiling" != no; then
4742   if test -n "$ac_tool_prefix"; then
4743   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}strip; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_STRIP+set}" = set; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if test -n "$STRIP"; then
4751   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758     for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765   done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 STRIP=$ac_cv_prog_STRIP
4771 if test -n "$STRIP"; then
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4773 $as_echo "$STRIP" >&6; }
4774 else
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_prog_STRIP"; then
4782   ac_ct_STRIP=$STRIP
4783   # Extract the first word of "strip", so it can be a program name with args.
4784 set dummy strip; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if test -n "$ac_ct_STRIP"; then
4791   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798     for ac_exec_ext in '' $ac_executable_extensions; do
4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800     ac_cv_prog_ac_ct_STRIP="strip"
4801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805   done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4811 if test -n "$ac_ct_STRIP"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4813 $as_echo "$ac_ct_STRIP" >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819   if test "x$ac_ct_STRIP" = x; then
4820     STRIP=":"
4821   else
4822     case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828     STRIP=$ac_ct_STRIP
4829   fi
4830 else
4831   STRIP="$ac_cv_prog_STRIP"
4832 fi
4833
4834 fi
4835 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4838 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4839 if test -z "$MKDIR_P"; then
4840   if test "${ac_cv_path_mkdir+set}" = set; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848     for ac_prog in mkdir gmkdir; do
4849          for ac_exec_ext in '' $ac_executable_extensions; do
4850            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4851            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4852              'mkdir (GNU coreutils) '* | \
4853              'mkdir (coreutils) '* | \
4854              'mkdir (fileutils) '4.1*)
4855                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4856                break 3;;
4857            esac
4858          done
4859        done
4860   done
4861 IFS=$as_save_IFS
4862
4863 fi
4864
4865   test -d ./--version && rmdir ./--version
4866   if test "${ac_cv_path_mkdir+set}" = set; then
4867     MKDIR_P="$ac_cv_path_mkdir -p"
4868   else
4869     # As a last resort, use the slow shell script.  Don't cache a
4870     # value for MKDIR_P within a source directory, because that will
4871     # break other packages using the cache if that directory is
4872     # removed, or if the value is a relative name.
4873     MKDIR_P="$ac_install_sh -d"
4874   fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4877 $as_echo "$MKDIR_P" >&6; }
4878
4879 mkdir_p="$MKDIR_P"
4880 case $mkdir_p in
4881   [\\/$]* | ?:[\\/]*) ;;
4882   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4883 esac
4884
4885 for ac_prog in gawk mawk nawk awk
4886 do
4887   # Extract the first word of "$ac_prog", so it can be a program name with args.
4888 set dummy $ac_prog; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if test "${ac_cv_prog_AWK+set}" = set; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -n "$AWK"; then
4895   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_prog_AWK="$ac_prog"
4905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909   done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 AWK=$ac_cv_prog_AWK
4915 if test -n "$AWK"; then
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4917 $as_echo "$AWK" >&6; }
4918 else
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922
4923
4924   test -n "$AWK" && break
4925 done
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4928 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4929 set x ${MAKE-make}
4930 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4931 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   cat >conftest.make <<\_ACEOF
4935 SHELL = /bin/sh
4936 all:
4937         @echo '@@@%%%=$(MAKE)=@@@%%%'
4938 _ACEOF
4939 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4940 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4941   *@@@%%%=?*=@@@%%%*)
4942     eval ac_cv_prog_make_${ac_make}_set=yes;;
4943   *)
4944     eval ac_cv_prog_make_${ac_make}_set=no;;
4945 esac
4946 rm -f conftest.make
4947 fi
4948 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950 $as_echo "yes" >&6; }
4951   SET_MAKE=
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955   SET_MAKE="MAKE=${MAKE-make}"
4956 fi
4957
4958 rm -rf .tst 2>/dev/null
4959 mkdir .tst 2>/dev/null
4960 if test -d .tst; then
4961   am__leading_dot=.
4962 else
4963   am__leading_dot=_
4964 fi
4965 rmdir .tst 2>/dev/null
4966
4967 DEPDIR="${am__leading_dot}deps"
4968
4969 ac_config_commands="$ac_config_commands depfiles"
4970
4971
4972 am_make=${MAKE-make}
4973 cat > confinc << 'END'
4974 am__doit:
4975         @echo this is the am__doit target
4976 .PHONY: am__doit
4977 END
4978 # If we don't find an include directive, just comment out the code.
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4980 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4981 am__include="#"
4982 am__quote=
4983 _am_result=none
4984 # First try GNU make style include.
4985 echo "include confinc" > confmf
4986 # Ignore all kinds of additional output from `make'.
4987 case `$am_make -s -f confmf 2> /dev/null` in #(
4988 *the\ am__doit\ target*)
4989   am__include=include
4990   am__quote=
4991   _am_result=GNU
4992   ;;
4993 esac
4994 # Now try BSD make style include.
4995 if test "$am__include" = "#"; then
4996    echo '.include "confinc"' > confmf
4997    case `$am_make -s -f confmf 2> /dev/null` in #(
4998    *the\ am__doit\ target*)
4999      am__include=.include
5000      am__quote="\""
5001      _am_result=BSD
5002      ;;
5003    esac
5004 fi
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5008 $as_echo "$_am_result" >&6; }
5009 rm -f confinc confmf
5010
5011 # Check whether --enable-dependency-tracking was given.
5012 if test "${enable_dependency_tracking+set}" = set; then :
5013   enableval=$enable_dependency_tracking;
5014 fi
5015
5016 if test "x$enable_dependency_tracking" != xno; then
5017   am_depcomp="$ac_aux_dir/depcomp"
5018   AMDEPBACKSLASH='\'
5019 fi
5020  if test "x$enable_dependency_tracking" != xno; then
5021   AMDEP_TRUE=
5022   AMDEP_FALSE='#'
5023 else
5024   AMDEP_TRUE='#'
5025   AMDEP_FALSE=
5026 fi
5027
5028
5029 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5030   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5031   # is not polluted with repeated "-I."
5032   am__isrc=' -I$(srcdir)'
5033   # test to see if srcdir already configured
5034   if test -f $srcdir/config.status; then
5035     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5036   fi
5037 fi
5038
5039 # test whether we have cygpath
5040 if test -z "$CYGPATH_W"; then
5041   if (cygpath --version) >/dev/null 2>/dev/null; then
5042     CYGPATH_W='cygpath -w'
5043   else
5044     CYGPATH_W=echo
5045   fi
5046 fi
5047
5048
5049 # Define the identity of the package.
5050  PACKAGE='cairo'
5051  VERSION='1.12.3'
5052
5053
5054 # Some tools Automake needs.
5055
5056 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5057
5058
5059 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5060
5061
5062 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5063
5064
5065 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5066
5067
5068 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5069
5070 # We need awk for the "check" target.  The system "awk" is bad on
5071 # some platforms.
5072 # Always define AMTAR for backward compatibility.
5073
5074 AMTAR=${AMTAR-"${am_missing_run}tar"}
5075
5076 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5077
5078
5079
5080
5081 depcc="$CC"   am_compiler_list=
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5084 $as_echo_n "checking dependency style of $depcc... " >&6; }
5085 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5089   # We make a subdir and do the tests there.  Otherwise we can end up
5090   # making bogus files that we don't know about and never remove.  For
5091   # instance it was reported that on HP-UX the gcc test will end up
5092   # making a dummy file named `D' -- because `-MD' means `put the output
5093   # in D'.
5094   mkdir conftest.dir
5095   # Copy depcomp to subdir because otherwise we won't find it if we're
5096   # using a relative directory.
5097   cp "$am_depcomp" conftest.dir
5098   cd conftest.dir
5099   # We will build objects and dependencies in a subdirectory because
5100   # it helps to detect inapplicable dependency modes.  For instance
5101   # both Tru64's cc and ICC support -MD to output dependencies as a
5102   # side effect of compilation, but ICC will put the dependencies in
5103   # the current directory while Tru64 will put them in the object
5104   # directory.
5105   mkdir sub
5106
5107   am_cv_CC_dependencies_compiler_type=none
5108   if test "$am_compiler_list" = ""; then
5109      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5110   fi
5111   am__universal=false
5112   case " $depcc " in #(
5113      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5114      esac
5115
5116   for depmode in $am_compiler_list; do
5117     # Setup a source with many dependencies, because some compilers
5118     # like to wrap large dependency lists on column 80 (with \), and
5119     # we should not choose a depcomp mode which is confused by this.
5120     #
5121     # We need to recreate these files for each test, as the compiler may
5122     # overwrite some of them when testing with obscure command lines.
5123     # This happens at least with the AIX C compiler.
5124     : > sub/conftest.c
5125     for i in 1 2 3 4 5 6; do
5126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5127       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5128       # Solaris 8's {/usr,}/bin/sh.
5129       touch sub/conftst$i.h
5130     done
5131     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5132
5133     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5134     # mode.  It turns out that the SunPro C++ compiler does not properly
5135     # handle `-M -o', and we need to detect this.  Also, some Intel
5136     # versions had trouble with output in subdirs
5137     am__obj=sub/conftest.${OBJEXT-o}
5138     am__minus_obj="-o $am__obj"
5139     case $depmode in
5140     gcc)
5141       # This depmode causes a compiler race in universal mode.
5142       test "$am__universal" = false || continue
5143       ;;
5144     nosideeffect)
5145       # after this tag, mechanisms are not by side-effect, so they'll
5146       # only be used when explicitly requested
5147       if test "x$enable_dependency_tracking" = xyes; then
5148         continue
5149       else
5150         break
5151       fi
5152       ;;
5153     msvisualcpp | msvcmsys)
5154       # This compiler won't grok `-c -o', but also, the minuso test has
5155       # not run yet.  These depmodes are late enough in the game, and
5156       # so weak that their functioning should not be impacted.
5157       am__obj=conftest.${OBJEXT-o}
5158       am__minus_obj=
5159       ;;
5160     none) break ;;
5161     esac
5162     if depmode=$depmode \
5163        source=sub/conftest.c object=$am__obj \
5164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5166          >/dev/null 2>conftest.err &&
5167        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5169        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5171       # icc doesn't choke on unknown options, it will just issue warnings
5172       # or remarks (even with -Werror).  So we grep stderr for any message
5173       # that says an option was ignored or not supported.
5174       # When given -MP, icc 7.0 and 7.1 complain thusly:
5175       #   icc: Command line warning: ignoring option '-M'; no argument required
5176       # The diagnosis changed in icc 8.0:
5177       #   icc: Command line remark: option '-MP' not supported
5178       if (grep 'ignoring option' conftest.err ||
5179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5180         am_cv_CC_dependencies_compiler_type=$depmode
5181         break
5182       fi
5183     fi
5184   done
5185
5186   cd ..
5187   rm -rf conftest.dir
5188 else
5189   am_cv_CC_dependencies_compiler_type=none
5190 fi
5191
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5194 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5196
5197  if
5198   test "x$enable_dependency_tracking" != xno \
5199   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5200   am__fastdepCC_TRUE=
5201   am__fastdepCC_FALSE='#'
5202 else
5203   am__fastdepCC_TRUE='#'
5204   am__fastdepCC_FALSE=
5205 fi
5206
5207
5208
5209 # Check whether --enable-silent-rules was given.
5210 if test "${enable_silent_rules+set}" = set; then :
5211   enableval=$enable_silent_rules;
5212 fi
5213
5214 case $enable_silent_rules in
5215 yes) AM_DEFAULT_VERBOSITY=0;;
5216 no)  AM_DEFAULT_VERBOSITY=1;;
5217 *)   AM_DEFAULT_VERBOSITY=0;;
5218 esac
5219 AM_BACKSLASH='\'
5220
5221
5222 # Initialize libtool
5223
5224 case `pwd` in
5225   *\ * | *\     *)
5226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5227 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5228 esac
5229
5230
5231
5232 macro_version='2.2.6b'
5233 macro_revision='1.3017'
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 ltmain="$ac_aux_dir/ltmain.sh"
5248
5249 # Make sure we can run config.sub.
5250 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5251   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5254 $as_echo_n "checking build system type... " >&6; }
5255 if test "${ac_cv_build+set}" = set; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   ac_build_alias=$build_alias
5259 test "x$ac_build_alias" = x &&
5260   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5261 test "x$ac_build_alias" = x &&
5262   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5263 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5264   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5265
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5268 $as_echo "$ac_cv_build" >&6; }
5269 case $ac_cv_build in
5270 *-*-*) ;;
5271 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5272 esac
5273 build=$ac_cv_build
5274 ac_save_IFS=$IFS; IFS='-'
5275 set x $ac_cv_build
5276 shift
5277 build_cpu=$1
5278 build_vendor=$2
5279 shift; shift
5280 # Remember, the first character of IFS is used to create $*,
5281 # except with old shells:
5282 build_os=$*
5283 IFS=$ac_save_IFS
5284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5288 $as_echo_n "checking host system type... " >&6; }
5289 if test "${ac_cv_host+set}" = set; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   if test "x$host_alias" = x; then
5293   ac_cv_host=$ac_cv_build
5294 else
5295   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5296     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5297 fi
5298
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5301 $as_echo "$ac_cv_host" >&6; }
5302 case $ac_cv_host in
5303 *-*-*) ;;
5304 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5305 esac
5306 host=$ac_cv_host
5307 ac_save_IFS=$IFS; IFS='-'
5308 set x $ac_cv_host
5309 shift
5310 host_cpu=$1
5311 host_vendor=$2
5312 shift; shift
5313 # Remember, the first character of IFS is used to create $*,
5314 # except with old shells:
5315 host_os=$*
5316 IFS=$ac_save_IFS
5317 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5321 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5322 if test "${ac_cv_path_SED+set}" = set; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5326      for ac_i in 1 2 3 4 5 6 7; do
5327        ac_script="$ac_script$as_nl$ac_script"
5328      done
5329      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5330      { ac_script=; unset ac_script;}
5331      if test -z "$SED"; then
5332   ac_path_SED_found=false
5333   # Loop through the user's path and test for each of PROGNAME-LIST
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_prog in sed gsed; do
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5342       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5343 # Check for GNU ac_path_SED and select it if it is found.
5344   # Check for GNU $ac_path_SED
5345 case `"$ac_path_SED" --version 2>&1` in
5346 *GNU*)
5347   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5348 *)
5349   ac_count=0
5350   $as_echo_n 0123456789 >"conftest.in"
5351   while :
5352   do
5353     cat "conftest.in" "conftest.in" >"conftest.tmp"
5354     mv "conftest.tmp" "conftest.in"
5355     cp "conftest.in" "conftest.nl"
5356     $as_echo '' >> "conftest.nl"
5357     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359     as_fn_arith $ac_count + 1 && ac_count=$as_val
5360     if test $ac_count -gt ${ac_path_SED_max-0}; then
5361       # Best one so far, save it but keep looking for a better one
5362       ac_cv_path_SED="$ac_path_SED"
5363       ac_path_SED_max=$ac_count
5364     fi
5365     # 10*(2^10) chars as input seems more than enough
5366     test $ac_count -gt 10 && break
5367   done
5368   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369 esac
5370
5371       $ac_path_SED_found && break 3
5372     done
5373   done
5374   done
5375 IFS=$as_save_IFS
5376   if test -z "$ac_cv_path_SED"; then
5377     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5378   fi
5379 else
5380   ac_cv_path_SED=$SED
5381 fi
5382
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5385 $as_echo "$ac_cv_path_SED" >&6; }
5386  SED="$ac_cv_path_SED"
5387   rm -f conftest.sed
5388
5389 test -z "$SED" && SED=sed
5390 Xsed="$SED -e 1s/^X//"
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5403 $as_echo_n "checking for fgrep... " >&6; }
5404 if test "${ac_cv_path_FGREP+set}" = set; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5408    then ac_cv_path_FGREP="$GREP -F"
5409    else
5410      if test -z "$FGREP"; then
5411   ac_path_FGREP_found=false
5412   # Loop through the user's path and test for each of PROGNAME-LIST
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_prog in fgrep; do
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5421       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5422 # Check for GNU ac_path_FGREP and select it if it is found.
5423   # Check for GNU $ac_path_FGREP
5424 case `"$ac_path_FGREP" --version 2>&1` in
5425 *GNU*)
5426   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5427 *)
5428   ac_count=0
5429   $as_echo_n 0123456789 >"conftest.in"
5430   while :
5431   do
5432     cat "conftest.in" "conftest.in" >"conftest.tmp"
5433     mv "conftest.tmp" "conftest.in"
5434     cp "conftest.in" "conftest.nl"
5435     $as_echo 'FGREP' >> "conftest.nl"
5436     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438     as_fn_arith $ac_count + 1 && ac_count=$as_val
5439     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5440       # Best one so far, save it but keep looking for a better one
5441       ac_cv_path_FGREP="$ac_path_FGREP"
5442       ac_path_FGREP_max=$ac_count
5443     fi
5444     # 10*(2^10) chars as input seems more than enough
5445     test $ac_count -gt 10 && break
5446   done
5447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448 esac
5449
5450       $ac_path_FGREP_found && break 3
5451     done
5452   done
5453   done
5454 IFS=$as_save_IFS
5455   if test -z "$ac_cv_path_FGREP"; then
5456     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5457   fi
5458 else
5459   ac_cv_path_FGREP=$FGREP
5460 fi
5461
5462    fi
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5465 $as_echo "$ac_cv_path_FGREP" >&6; }
5466  FGREP="$ac_cv_path_FGREP"
5467
5468
5469 test -z "$GREP" && GREP=grep
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 # Check whether --with-gnu-ld was given.
5490 if test "${with_gnu_ld+set}" = set; then :
5491   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5492 else
5493   with_gnu_ld=no
5494 fi
5495
5496 ac_prog=ld
5497 if test "$GCC" = yes; then
5498   # Check if gcc -print-prog-name=ld gives a path.
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5500 $as_echo_n "checking for ld used by $CC... " >&6; }
5501   case $host in
5502   *-*-mingw*)
5503     # gcc leaves a trailing carriage return which upsets mingw
5504     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5505   *)
5506     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5507   esac
5508   case $ac_prog in
5509     # Accept absolute paths.
5510     [\\/]* | ?:[\\/]*)
5511       re_direlt='/[^/][^/]*/\.\./'
5512       # Canonicalize the pathname of ld
5513       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5514       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5515         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5516       done
5517       test -z "$LD" && LD="$ac_prog"
5518       ;;
5519   "")
5520     # If it fails, then pretend we aren't using GCC.
5521     ac_prog=ld
5522     ;;
5523   *)
5524     # If it is relative, then search for the first ld in PATH.
5525     with_gnu_ld=unknown
5526     ;;
5527   esac
5528 elif test "$with_gnu_ld" = yes; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5530 $as_echo_n "checking for GNU ld... " >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5533 $as_echo_n "checking for non-GNU ld... " >&6; }
5534 fi
5535 if test "${lt_cv_path_LD+set}" = set; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -z "$LD"; then
5539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540   for ac_dir in $PATH; do
5541     IFS="$lt_save_ifs"
5542     test -z "$ac_dir" && ac_dir=.
5543     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5544       lt_cv_path_LD="$ac_dir/$ac_prog"
5545       # Check to see if the program is GNU ld.  I'd rather use --version,
5546       # but apparently some variants of GNU ld only accept -v.
5547       # Break only if it was the GNU/non-GNU ld that we prefer.
5548       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5549       *GNU* | *'with BFD'*)
5550         test "$with_gnu_ld" != no && break
5551         ;;
5552       *)
5553         test "$with_gnu_ld" != yes && break
5554         ;;
5555       esac
5556     fi
5557   done
5558   IFS="$lt_save_ifs"
5559 else
5560   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5561 fi
5562 fi
5563
5564 LD="$lt_cv_path_LD"
5565 if test -n "$LD"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5567 $as_echo "$LD" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5574 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5575 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579 case `$LD -v 2>&1 </dev/null` in
5580 *GNU* | *'with BFD'*)
5581   lt_cv_prog_gnu_ld=yes
5582   ;;
5583 *)
5584   lt_cv_prog_gnu_ld=no
5585   ;;
5586 esac
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5589 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5590 with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5601 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5602 if test "${lt_cv_path_NM+set}" = set; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$NM"; then
5606   # Let the user override the test.
5607   lt_cv_path_NM="$NM"
5608 else
5609   lt_nm_to_check="${ac_tool_prefix}nm"
5610   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5611     lt_nm_to_check="$lt_nm_to_check nm"
5612   fi
5613   for lt_tmp_nm in $lt_nm_to_check; do
5614     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5615     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5616       IFS="$lt_save_ifs"
5617       test -z "$ac_dir" && ac_dir=.
5618       tmp_nm="$ac_dir/$lt_tmp_nm"
5619       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5620         # Check to see if the nm accepts a BSD-compat flag.
5621         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5622         #   nm: unknown option "B" ignored
5623         # Tru64's nm complains that /dev/null is an invalid object file
5624         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5625         */dev/null* | *'Invalid file or object type'*)
5626           lt_cv_path_NM="$tmp_nm -B"
5627           break
5628           ;;
5629         *)
5630           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5631           */dev/null*)
5632             lt_cv_path_NM="$tmp_nm -p"
5633             break
5634             ;;
5635           *)
5636             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5637             continue # so that we can try to find one that supports BSD flags
5638             ;;
5639           esac
5640           ;;
5641         esac
5642       fi
5643     done
5644     IFS="$lt_save_ifs"
5645   done
5646   : ${lt_cv_path_NM=no}
5647 fi
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5650 $as_echo "$lt_cv_path_NM" >&6; }
5651 if test "$lt_cv_path_NM" != "no"; then
5652   NM="$lt_cv_path_NM"
5653 else
5654   # Didn't find any BSD compatible name lister, look for dumpbin.
5655   if test -n "$ac_tool_prefix"; then
5656   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5657   do
5658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test -n "$DUMPBIN"; then
5666   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680   done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 DUMPBIN=$ac_cv_prog_DUMPBIN
5686 if test -n "$DUMPBIN"; then
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5688 $as_echo "$DUMPBIN" >&6; }
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694
5695     test -n "$DUMPBIN" && break
5696   done
5697 fi
5698 if test -z "$DUMPBIN"; then
5699   ac_ct_DUMPBIN=$DUMPBIN
5700   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5701 do
5702   # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   if test -n "$ac_ct_DUMPBIN"; then
5710   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717     for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724   done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5730 if test -n "$ac_ct_DUMPBIN"; then
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5732 $as_echo "$ac_ct_DUMPBIN" >&6; }
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739   test -n "$ac_ct_DUMPBIN" && break
5740 done
5741
5742   if test "x$ac_ct_DUMPBIN" = x; then
5743     DUMPBIN=":"
5744   else
5745     case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5749 ac_tool_warned=yes ;;
5750 esac
5751     DUMPBIN=$ac_ct_DUMPBIN
5752   fi
5753 fi
5754
5755
5756   if test "$DUMPBIN" != ":"; then
5757     NM="$DUMPBIN"
5758   fi
5759 fi
5760 test -z "$NM" && NM=nm
5761
5762
5763
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5768 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5769 if test "${lt_cv_nm_interface+set}" = set; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   lt_cv_nm_interface="BSD nm"
5773   echo "int some_variable = 0;" > conftest.$ac_ext
5774   (eval echo "\"\$as_me:5774: $ac_compile\"" >&5)
5775   (eval "$ac_compile" 2>conftest.err)
5776   cat conftest.err >&5
5777   (eval echo "\"\$as_me:5777: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5778   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5779   cat conftest.err >&5
5780   (eval echo "\"\$as_me:5780: output\"" >&5)
5781   cat conftest.out >&5
5782   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5783     lt_cv_nm_interface="MS dumpbin"
5784   fi
5785   rm -f conftest*
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5788 $as_echo "$lt_cv_nm_interface" >&6; }
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5791 $as_echo_n "checking whether ln -s works... " >&6; }
5792 LN_S=$as_ln_s
5793 if test "$LN_S" = "ln -s"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795 $as_echo "yes" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5798 $as_echo "no, using $LN_S" >&6; }
5799 fi
5800
5801 # find the maximum length of command line arguments
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5803 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5804 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807     i=0
5808   teststring="ABCD"
5809
5810   case $build_os in
5811   msdosdjgpp*)
5812     # On DJGPP, this test can blow up pretty badly due to problems in libc
5813     # (any single argument exceeding 2000 bytes causes a buffer overrun
5814     # during glob expansion).  Even if it were fixed, the result of this
5815     # check would be larger than it should be.
5816     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5817     ;;
5818
5819   gnu*)
5820     # Under GNU Hurd, this test is not required because there is
5821     # no limit to the length of command line arguments.
5822     # Libtool will interpret -1 as no limit whatsoever
5823     lt_cv_sys_max_cmd_len=-1;
5824     ;;
5825
5826   cygwin* | mingw* | cegcc*)
5827     # On Win9x/ME, this test blows up -- it succeeds, but takes
5828     # about 5 minutes as the teststring grows exponentially.
5829     # Worse, since 9x/ME are not pre-emptively multitasking,
5830     # you end up with a "frozen" computer, even though with patience
5831     # the test eventually succeeds (with a max line length of 256k).
5832     # Instead, let's just punt: use the minimum linelength reported by
5833     # all of the supported platforms: 8192 (on NT/2K/XP).
5834     lt_cv_sys_max_cmd_len=8192;
5835     ;;
5836
5837   amigaos*)
5838     # On AmigaOS with pdksh, this test takes hours, literally.
5839     # So we just punt and use a minimum line length of 8192.
5840     lt_cv_sys_max_cmd_len=8192;
5841     ;;
5842
5843   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5844     # This has been around since 386BSD, at least.  Likely further.
5845     if test -x /sbin/sysctl; then
5846       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5847     elif test -x /usr/sbin/sysctl; then
5848       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5849     else
5850       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5851     fi
5852     # And add a safety zone
5853     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5854     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855     ;;
5856
5857   interix*)
5858     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5859     lt_cv_sys_max_cmd_len=196608
5860     ;;
5861
5862   osf*)
5863     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5864     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5865     # nice to cause kernel panics so lets avoid the loop below.
5866     # First set a reasonable default.
5867     lt_cv_sys_max_cmd_len=16384
5868     #
5869     if test -x /sbin/sysconfig; then
5870       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5871         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5872       esac
5873     fi
5874     ;;
5875   sco3.2v5*)
5876     lt_cv_sys_max_cmd_len=102400
5877     ;;
5878   sysv5* | sco5v6* | sysv4.2uw2*)
5879     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5880     if test -n "$kargmax"; then
5881       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5882     else
5883       lt_cv_sys_max_cmd_len=32768
5884     fi
5885     ;;
5886   *)
5887     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5888     if test -n "$lt_cv_sys_max_cmd_len"; then
5889       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5890       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5891     else
5892       # Make teststring a little bigger before we do anything with it.
5893       # a 1K string should be a reasonable start.
5894       for i in 1 2 3 4 5 6 7 8 ; do
5895         teststring=$teststring$teststring
5896       done
5897       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5898       # If test is not a shell built-in, we'll probably end up computing a
5899       # maximum length that is only half of the actual maximum length, but
5900       # we can't tell.
5901       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5902                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5903               test $i != 17 # 1/2 MB should be enough
5904       do
5905         i=`expr $i + 1`
5906         teststring=$teststring$teststring
5907       done
5908       # Only check the string length outside the loop.
5909       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5910       teststring=
5911       # Add a significant safety factor because C++ compilers can tack on
5912       # massive amounts of additional arguments before passing them to the
5913       # linker.  It appears as though 1/2 is a usable value.
5914       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5915     fi
5916     ;;
5917   esac
5918
5919 fi
5920
5921 if test -n $lt_cv_sys_max_cmd_len ; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5923 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5926 $as_echo "none" >&6; }
5927 fi
5928 max_cmd_len=$lt_cv_sys_max_cmd_len
5929
5930
5931
5932
5933
5934
5935 : ${CP="cp -f"}
5936 : ${MV="mv -f"}
5937 : ${RM="rm -f"}
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5940 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5941 # Try some XSI features
5942 xsi_shell=no
5943 ( _lt_dummy="a/b/c"
5944   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5945       = c,a/b,, \
5946     && eval 'test $(( 1 + 1 )) -eq 2 \
5947     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5948   && xsi_shell=yes
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5950 $as_echo "$xsi_shell" >&6; }
5951
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5954 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5955 lt_shell_append=no
5956 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5957     >/dev/null 2>&1 \
5958   && lt_shell_append=yes
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5960 $as_echo "$lt_shell_append" >&6; }
5961
5962
5963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5964   lt_unset=unset
5965 else
5966   lt_unset=false
5967 fi
5968
5969
5970
5971
5972
5973 # test EBCDIC or ASCII
5974 case `echo X|tr X '\101'` in
5975  A) # ASCII based system
5976     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5977   lt_SP2NL='tr \040 \012'
5978   lt_NL2SP='tr \015\012 \040\040'
5979   ;;
5980  *) # EBCDIC based system
5981   lt_SP2NL='tr \100 \n'
5982   lt_NL2SP='tr \r\n \100\100'
5983   ;;
5984 esac
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5995 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5996 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   lt_cv_ld_reload_flag='-r'
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6002 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6003 reload_flag=$lt_cv_ld_reload_flag
6004 case $reload_flag in
6005 "" | " "*) ;;
6006 *) reload_flag=" $reload_flag" ;;
6007 esac
6008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6009 case $host_os in
6010   darwin*)
6011     if test "$GCC" = yes; then
6012       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6013     else
6014       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6015     fi
6016     ;;
6017 esac
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   if test -n "$OBJDUMP"; then
6036   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043     for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050   done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 OBJDUMP=$ac_cv_prog_OBJDUMP
6056 if test -n "$OBJDUMP"; then
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6058 $as_echo "$OBJDUMP" >&6; }
6059 else
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 fi
6066 if test -z "$ac_cv_prog_OBJDUMP"; then
6067   ac_ct_OBJDUMP=$OBJDUMP
6068   # Extract the first word of "objdump", so it can be a program name with args.
6069 set dummy objdump; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$ac_ct_OBJDUMP"; then
6076   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083     for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6096 if test -n "$ac_ct_OBJDUMP"; then
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6098 $as_echo "$ac_ct_OBJDUMP" >&6; }
6099 else
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104   if test "x$ac_ct_OBJDUMP" = x; then
6105     OBJDUMP="false"
6106   else
6107     case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113     OBJDUMP=$ac_ct_OBJDUMP
6114   fi
6115 else
6116   OBJDUMP="$ac_cv_prog_OBJDUMP"
6117 fi
6118
6119 test -z "$OBJDUMP" && OBJDUMP=objdump
6120
6121
6122
6123
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6127 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6128 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   lt_cv_file_magic_cmd='$MAGIC_CMD'
6132 lt_cv_file_magic_test_file=
6133 lt_cv_deplibs_check_method='unknown'
6134 # Need to set the preceding variable on all platforms that support
6135 # interlibrary dependencies.
6136 # 'none' -- dependencies not supported.
6137 # `unknown' -- same as none, but documents that we really don't know.
6138 # 'pass_all' -- all dependencies passed with no checks.
6139 # 'test_compile' -- check by making test program.
6140 # 'file_magic [[regex]]' -- check by looking for files in library path
6141 # which responds to the $file_magic_cmd with a given extended regex.
6142 # If you have `file' or equivalent on your system and you're not sure
6143 # whether `pass_all' will *always* work, you probably want this one.
6144
6145 case $host_os in
6146 aix[4-9]*)
6147   lt_cv_deplibs_check_method=pass_all
6148   ;;
6149
6150 beos*)
6151   lt_cv_deplibs_check_method=pass_all
6152   ;;
6153
6154 bsdi[45]*)
6155   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6156   lt_cv_file_magic_cmd='/usr/bin/file -L'
6157   lt_cv_file_magic_test_file=/shlib/libc.so
6158   ;;
6159
6160 cygwin*)
6161   # func_win32_libid is a shell function defined in ltmain.sh
6162   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6163   lt_cv_file_magic_cmd='func_win32_libid'
6164   ;;
6165
6166 mingw* | pw32*)
6167   # Base MSYS/MinGW do not provide the 'file' command needed by
6168   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6169   # unless we find 'file', for example because we are cross-compiling.
6170   if ( file / ) >/dev/null 2>&1; then
6171     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172     lt_cv_file_magic_cmd='func_win32_libid'
6173   else
6174     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6175     lt_cv_file_magic_cmd='$OBJDUMP -f'
6176   fi
6177   ;;
6178
6179 cegcc)
6180   # use the weaker test based on 'objdump'. See mingw*.
6181   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6182   lt_cv_file_magic_cmd='$OBJDUMP -f'
6183   ;;
6184
6185 darwin* | rhapsody*)
6186   lt_cv_deplibs_check_method=pass_all
6187   ;;
6188
6189 freebsd* | dragonfly*)
6190   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6191     case $host_cpu in
6192     i*86 )
6193       # Not sure whether the presence of OpenBSD here was a mistake.
6194       # Let's accept both of them until this is cleared up.
6195       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6196       lt_cv_file_magic_cmd=/usr/bin/file
6197       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6198       ;;
6199     esac
6200   else
6201     lt_cv_deplibs_check_method=pass_all
6202   fi
6203   ;;
6204
6205 gnu*)
6206   lt_cv_deplibs_check_method=pass_all
6207   ;;
6208
6209 hpux10.20* | hpux11*)
6210   lt_cv_file_magic_cmd=/usr/bin/file
6211   case $host_cpu in
6212   ia64*)
6213     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6214     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6215     ;;
6216   hppa*64*)
6217     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6218     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6219     ;;
6220   *)
6221     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6222     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6223     ;;
6224   esac
6225   ;;
6226
6227 interix[3-9]*)
6228   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6229   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6230   ;;
6231
6232 irix5* | irix6* | nonstopux*)
6233   case $LD in
6234   *-32|*"-32 ") libmagic=32-bit;;
6235   *-n32|*"-n32 ") libmagic=N32;;
6236   *-64|*"-64 ") libmagic=64-bit;;
6237   *) libmagic=never-match;;
6238   esac
6239   lt_cv_deplibs_check_method=pass_all
6240   ;;
6241
6242 # This must be Linux ELF.
6243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 netbsd* | netbsdelf*-gnu)
6248   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6250   else
6251     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6252   fi
6253   ;;
6254
6255 newos6*)
6256   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6257   lt_cv_file_magic_cmd=/usr/bin/file
6258   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6259   ;;
6260
6261 *nto* | *qnx*)
6262   lt_cv_deplibs_check_method=pass_all
6263   ;;
6264
6265 openbsd*)
6266   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6268   else
6269     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6270   fi
6271   ;;
6272
6273 osf3* | osf4* | osf5*)
6274   lt_cv_deplibs_check_method=pass_all
6275   ;;
6276
6277 rdos*)
6278   lt_cv_deplibs_check_method=pass_all
6279   ;;
6280
6281 solaris*)
6282   lt_cv_deplibs_check_method=pass_all
6283   ;;
6284
6285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6286   lt_cv_deplibs_check_method=pass_all
6287   ;;
6288
6289 sysv4 | sysv4.3*)
6290   case $host_vendor in
6291   motorola)
6292     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]'
6293     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6294     ;;
6295   ncr)
6296     lt_cv_deplibs_check_method=pass_all
6297     ;;
6298   sequent)
6299     lt_cv_file_magic_cmd='/bin/file'
6300     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6301     ;;
6302   sni)
6303     lt_cv_file_magic_cmd='/bin/file'
6304     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6305     lt_cv_file_magic_test_file=/lib/libc.so
6306     ;;
6307   siemens)
6308     lt_cv_deplibs_check_method=pass_all
6309     ;;
6310   pc)
6311     lt_cv_deplibs_check_method=pass_all
6312     ;;
6313   esac
6314   ;;
6315
6316 tpf*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319 esac
6320
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6323 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6324 file_magic_cmd=$lt_cv_file_magic_cmd
6325 deplibs_check_method=$lt_cv_deplibs_check_method
6326 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 if test -n "$ac_tool_prefix"; then
6340   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ar; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_AR+set}" = set; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$AR"; then
6348   ac_cv_prog_AR="$AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357     ac_cv_prog_AR="${ac_tool_prefix}ar"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 AR=$ac_cv_prog_AR
6368 if test -n "$AR"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6370 $as_echo "$AR" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376
6377 fi
6378 if test -z "$ac_cv_prog_AR"; then
6379   ac_ct_AR=$AR
6380   # Extract the first word of "ar", so it can be a program name with args.
6381 set dummy ar; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$ac_ct_AR"; then
6388   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395     for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_prog_ac_ct_AR="ar"
6398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402   done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6408 if test -n "$ac_ct_AR"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6410 $as_echo "$ac_ct_AR" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416   if test "x$ac_ct_AR" = x; then
6417     AR="false"
6418   else
6419     case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425     AR=$ac_ct_AR
6426   fi
6427 else
6428   AR="$ac_cv_prog_AR"
6429 fi
6430
6431 test -z "$AR" && AR=ar
6432 test -z "$AR_FLAGS" && AR_FLAGS=cru
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 if test -n "$ac_tool_prefix"; then
6445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}strip; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_STRIP+set}" = set; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   if test -n "$STRIP"; then
6453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 STRIP=$ac_cv_prog_STRIP
6473 if test -n "$STRIP"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6475 $as_echo "$STRIP" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_STRIP"; then
6484   ac_ct_STRIP=$STRIP
6485   # Extract the first word of "strip", so it can be a program name with args.
6486 set dummy strip; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   if test -n "$ac_ct_STRIP"; then
6493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_ac_ct_STRIP="strip"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6513 if test -n "$ac_ct_STRIP"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6515 $as_echo "$ac_ct_STRIP" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521   if test "x$ac_ct_STRIP" = x; then
6522     STRIP=":"
6523   else
6524     case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530     STRIP=$ac_ct_STRIP
6531   fi
6532 else
6533   STRIP="$ac_cv_prog_STRIP"
6534 fi
6535
6536 test -z "$STRIP" && STRIP=:
6537
6538
6539
6540
6541
6542
6543 if test -n "$ac_tool_prefix"; then
6544   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   if test -n "$RANLIB"; then
6552   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559     for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566   done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 RANLIB=$ac_cv_prog_RANLIB
6572 if test -n "$RANLIB"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574 $as_echo "$RANLIB" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583   ac_ct_RANLIB=$RANLIB
6584   # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   if test -n "$ac_ct_RANLIB"; then
6592   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599     for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_ac_ct_RANLIB="ranlib"
6602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606   done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6612 if test -n "$ac_ct_RANLIB"; then
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6614 $as_echo "$ac_ct_RANLIB" >&6; }
6615 else
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620   if test "x$ac_ct_RANLIB" = x; then
6621     RANLIB=":"
6622   else
6623     case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629     RANLIB=$ac_ct_RANLIB
6630   fi
6631 else
6632   RANLIB="$ac_cv_prog_RANLIB"
6633 fi
6634
6635 test -z "$RANLIB" && RANLIB=:
6636
6637
6638
6639
6640
6641
6642 # Determine commands to create old-style static archives.
6643 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6644 old_postinstall_cmds='chmod 644 $oldlib'
6645 old_postuninstall_cmds=
6646
6647 if test -n "$RANLIB"; then
6648   case $host_os in
6649   openbsd*)
6650     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6651     ;;
6652   *)
6653     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6654     ;;
6655   esac
6656   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6657 fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692 # If no C compiler was specified, use CC.
6693 LTCC=${LTCC-"$CC"}
6694
6695 # If no C compiler flags were specified, use CFLAGS.
6696 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6697
6698 # Allow CC to be a program name with arguments.
6699 compiler=$CC
6700
6701
6702 # Check for command to grab the raw symbol name followed by C symbol from nm.
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6704 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6705 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708
6709 # These are sane defaults that work on at least a few old systems.
6710 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6711
6712 # Character class describing NM global symbol codes.
6713 symcode='[BCDEGRST]'
6714
6715 # Regexp to match symbols that can be accessed directly from C.
6716 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6717
6718 # Define system-specific variables.
6719 case $host_os in
6720 aix*)
6721   symcode='[BCDT]'
6722   ;;
6723 cygwin* | mingw* | pw32* | cegcc*)
6724   symcode='[ABCDGISTW]'
6725   ;;
6726 hpux*)
6727   if test "$host_cpu" = ia64; then
6728     symcode='[ABCDEGRST]'
6729   fi
6730   ;;
6731 irix* | nonstopux*)
6732   symcode='[BCDEGRST]'
6733   ;;
6734 osf*)
6735   symcode='[BCDEGQRST]'
6736   ;;
6737 solaris*)
6738   symcode='[BDRT]'
6739   ;;
6740 sco3.2v5*)
6741   symcode='[DT]'
6742   ;;
6743 sysv4.2uw2*)
6744   symcode='[DT]'
6745   ;;
6746 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6747   symcode='[ABDT]'
6748   ;;
6749 sysv4)
6750   symcode='[DFNSTU]'
6751   ;;
6752 esac
6753
6754 # If we're using GNU nm, then use its standard symbol codes.
6755 case `$NM -V 2>&1` in
6756 *GNU* | *'with BFD'*)
6757   symcode='[ABCDGIRSTW]' ;;
6758 esac
6759
6760 # Transform an extracted symbol line into a proper C declaration.
6761 # Some systems (esp. on ia64) link data and code symbols differently,
6762 # so use this general approach.
6763 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6764
6765 # Transform an extracted symbol line into symbol name and symbol address
6766 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6767 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'"
6768
6769 # Handle CRLF in mingw tool chain
6770 opt_cr=
6771 case $build_os in
6772 mingw*)
6773   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6774   ;;
6775 esac
6776
6777 # Try without a prefix underscore, then with it.
6778 for ac_symprfx in "" "_"; do
6779
6780   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6781   symxfrm="\\1 $ac_symprfx\\2 \\2"
6782
6783   # Write the raw and C identifiers.
6784   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6785     # Fake it for dumpbin and say T for any non-static function
6786     # and D for any global variable.
6787     # Also find C++ and __fastcall symbols from MSVC++,
6788     # which start with @ or ?.
6789     lt_cv_sys_global_symbol_pipe="$AWK '"\
6790 "     {last_section=section; section=\$ 3};"\
6791 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6792 "     \$ 0!~/External *\|/{next};"\
6793 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6794 "     {if(hide[section]) next};"\
6795 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6796 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6797 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6798 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6799 "     ' prfx=^$ac_symprfx"
6800   else
6801     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6802   fi
6803
6804   # Check to see that the pipe works correctly.
6805   pipe_works=no
6806
6807   rm -f conftest*
6808   cat > conftest.$ac_ext <<_LT_EOF
6809 #ifdef __cplusplus
6810 extern "C" {
6811 #endif
6812 char nm_test_var;
6813 void nm_test_func(void);
6814 void nm_test_func(void){}
6815 #ifdef __cplusplus
6816 }
6817 #endif
6818 int main(){nm_test_var='a';nm_test_func();return(0);}
6819 _LT_EOF
6820
6821   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822   (eval $ac_compile) 2>&5
6823   ac_status=$?
6824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825   test $ac_status = 0; }; then
6826     # Now try to grab the symbols.
6827     nlist=conftest.nm
6828     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6829   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6830   ac_status=$?
6831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832   test $ac_status = 0; } && test -s "$nlist"; then
6833       # Try sorting and uniquifying the output.
6834       if sort "$nlist" | uniq > "$nlist"T; then
6835         mv -f "$nlist"T "$nlist"
6836       else
6837         rm -f "$nlist"T
6838       fi
6839
6840       # Make sure that we snagged all the symbols we need.
6841       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6842         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6843           cat <<_LT_EOF > conftest.$ac_ext
6844 #ifdef __cplusplus
6845 extern "C" {
6846 #endif
6847
6848 _LT_EOF
6849           # Now generate the symbol file.
6850           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6851
6852           cat <<_LT_EOF >> conftest.$ac_ext
6853
6854 /* The mapping between symbol names and symbols.  */
6855 const struct {
6856   const char *name;
6857   void       *address;
6858 }
6859 lt__PROGRAM__LTX_preloaded_symbols[] =
6860 {
6861   { "@PROGRAM@", (void *) 0 },
6862 _LT_EOF
6863           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6864           cat <<\_LT_EOF >> conftest.$ac_ext
6865   {0, (void *) 0}
6866 };
6867
6868 /* This works around a problem in FreeBSD linker */
6869 #ifdef FREEBSD_WORKAROUND
6870 static const void *lt_preloaded_setup() {
6871   return lt__PROGRAM__LTX_preloaded_symbols;
6872 }
6873 #endif
6874
6875 #ifdef __cplusplus
6876 }
6877 #endif
6878 _LT_EOF
6879           # Now try linking the two files.
6880           mv conftest.$ac_objext conftstm.$ac_objext
6881           lt_save_LIBS="$LIBS"
6882           lt_save_CFLAGS="$CFLAGS"
6883           LIBS="conftstm.$ac_objext"
6884           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6885           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6886   (eval $ac_link) 2>&5
6887   ac_status=$?
6888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6890             pipe_works=yes
6891           fi
6892           LIBS="$lt_save_LIBS"
6893           CFLAGS="$lt_save_CFLAGS"
6894         else
6895           echo "cannot find nm_test_func in $nlist" >&5
6896         fi
6897       else
6898         echo "cannot find nm_test_var in $nlist" >&5
6899       fi
6900     else
6901       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6902     fi
6903   else
6904     echo "$progname: failed program was:" >&5
6905     cat conftest.$ac_ext >&5
6906   fi
6907   rm -rf conftest* conftst*
6908
6909   # Do not use the global_symbol_pipe unless it works.
6910   if test "$pipe_works" = yes; then
6911     break
6912   else
6913     lt_cv_sys_global_symbol_pipe=
6914   fi
6915 done
6916
6917 fi
6918
6919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6920   lt_cv_sys_global_symbol_to_cdecl=
6921 fi
6922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6924 $as_echo "failed" >&6; }
6925 else
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6927 $as_echo "ok" >&6; }
6928 fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 # Check whether --enable-libtool-lock was given.
6952 if test "${enable_libtool_lock+set}" = set; then :
6953   enableval=$enable_libtool_lock;
6954 fi
6955
6956 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6957
6958 # Some flags need to be propagated to the compiler or linker for good
6959 # libtool support.
6960 case $host in
6961 ia64-*-hpux*)
6962   # Find out which ABI we are using.
6963   echo 'int i;' > conftest.$ac_ext
6964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965   (eval $ac_compile) 2>&5
6966   ac_status=$?
6967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968   test $ac_status = 0; }; then
6969     case `/usr/bin/file conftest.$ac_objext` in
6970       *ELF-32*)
6971         HPUX_IA64_MODE="32"
6972         ;;
6973       *ELF-64*)
6974         HPUX_IA64_MODE="64"
6975         ;;
6976     esac
6977   fi
6978   rm -rf conftest*
6979   ;;
6980 *-*-irix6*)
6981   # Find out which ABI we are using.
6982   echo '#line 6982 "configure"' > conftest.$ac_ext
6983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984   (eval $ac_compile) 2>&5
6985   ac_status=$?
6986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987   test $ac_status = 0; }; then
6988     if test "$lt_cv_prog_gnu_ld" = yes; then
6989       case `/usr/bin/file conftest.$ac_objext` in
6990         *32-bit*)
6991           LD="${LD-ld} -melf32bsmip"
6992           ;;
6993         *N32*)
6994           LD="${LD-ld} -melf32bmipn32"
6995           ;;
6996         *64-bit*)
6997           LD="${LD-ld} -melf64bmip"
6998         ;;
6999       esac
7000     else
7001       case `/usr/bin/file conftest.$ac_objext` in
7002         *32-bit*)
7003           LD="${LD-ld} -32"
7004           ;;
7005         *N32*)
7006           LD="${LD-ld} -n32"
7007           ;;
7008         *64-bit*)
7009           LD="${LD-ld} -64"
7010           ;;
7011       esac
7012     fi
7013   fi
7014   rm -rf conftest*
7015   ;;
7016
7017 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7018 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7019   # Find out which ABI we are using.
7020   echo 'int i;' > conftest.$ac_ext
7021   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022   (eval $ac_compile) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; }; then
7026     case `/usr/bin/file conftest.o` in
7027       *32-bit*)
7028         case $host in
7029           x86_64-*kfreebsd*-gnu)
7030             LD="${LD-ld} -m elf_i386_fbsd"
7031             ;;
7032           x86_64-*linux*)
7033             LD="${LD-ld} -m elf_i386"
7034             ;;
7035           ppc64-*linux*|powerpc64-*linux*)
7036             LD="${LD-ld} -m elf32ppclinux"
7037             ;;
7038           s390x-*linux*)
7039             LD="${LD-ld} -m elf_s390"
7040             ;;
7041           sparc64-*linux*)
7042             LD="${LD-ld} -m elf32_sparc"
7043             ;;
7044         esac
7045         ;;
7046       *64-bit*)
7047         case $host in
7048           x86_64-*kfreebsd*-gnu)
7049             LD="${LD-ld} -m elf_x86_64_fbsd"
7050             ;;
7051           x86_64-*linux*)
7052             LD="${LD-ld} -m elf_x86_64"
7053             ;;
7054           ppc*-*linux*|powerpc*-*linux*)
7055             LD="${LD-ld} -m elf64ppc"
7056             ;;
7057           s390*-*linux*|s390*-*tpf*)
7058             LD="${LD-ld} -m elf64_s390"
7059             ;;
7060           sparc*-*linux*)
7061             LD="${LD-ld} -m elf64_sparc"
7062             ;;
7063         esac
7064         ;;
7065     esac
7066   fi
7067   rm -rf conftest*
7068   ;;
7069
7070 *-*-sco3.2v5*)
7071   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7072   SAVE_CFLAGS="$CFLAGS"
7073   CFLAGS="$CFLAGS -belf"
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7075 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7076 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   ac_ext=c
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h.  */
7087
7088 int
7089 main ()
7090 {
7091
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 if ac_fn_c_try_link "$LINENO"; then :
7097   lt_cv_cc_needs_belf=yes
7098 else
7099   lt_cv_cc_needs_belf=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext \
7102     conftest$ac_exeext conftest.$ac_ext
7103      ac_ext=c
7104 ac_cpp='$CPP $CPPFLAGS'
7105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7111 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7112   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7113     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7114     CFLAGS="$SAVE_CFLAGS"
7115   fi
7116   ;;
7117 sparc*-*solaris*)
7118   # Find out which ABI we are using.
7119   echo 'int i;' > conftest.$ac_ext
7120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7121   (eval $ac_compile) 2>&5
7122   ac_status=$?
7123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124   test $ac_status = 0; }; then
7125     case `/usr/bin/file conftest.o` in
7126     *64-bit*)
7127       case $lt_cv_prog_gnu_ld in
7128       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7129       *)
7130         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7131           LD="${LD-ld} -64"
7132         fi
7133         ;;
7134       esac
7135       ;;
7136     esac
7137   fi
7138   rm -rf conftest*
7139   ;;
7140 esac
7141
7142 need_locks="$enable_libtool_lock"
7143
7144
7145   case $host_os in
7146     rhapsody* | darwin*)
7147     if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$DSYMUTIL"; then
7156   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7176 if test -n "$DSYMUTIL"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7178 $as_echo "$DSYMUTIL" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_DSYMUTIL"; then
7187   ac_ct_DSYMUTIL=$DSYMUTIL
7188   # Extract the first word of "dsymutil", so it can be a program name with args.
7189 set dummy dsymutil; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$ac_ct_DSYMUTIL"; then
7196   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7216 if test -n "$ac_ct_DSYMUTIL"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7218 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_DSYMUTIL" = x; then
7225     DSYMUTIL=":"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     DSYMUTIL=$ac_ct_DSYMUTIL
7234   fi
7235 else
7236   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7237 fi
7238
7239     if test -n "$ac_tool_prefix"; then
7240   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$NMEDIT"; then
7248   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 NMEDIT=$ac_cv_prog_NMEDIT
7268 if test -n "$NMEDIT"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7270 $as_echo "$NMEDIT" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_NMEDIT"; then
7279   ac_ct_NMEDIT=$NMEDIT
7280   # Extract the first word of "nmedit", so it can be a program name with args.
7281 set dummy nmedit; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$ac_ct_NMEDIT"; then
7288   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7308 if test -n "$ac_ct_NMEDIT"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7310 $as_echo "$ac_ct_NMEDIT" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316   if test "x$ac_ct_NMEDIT" = x; then
7317     NMEDIT=":"
7318   else
7319     case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325     NMEDIT=$ac_ct_NMEDIT
7326   fi
7327 else
7328   NMEDIT="$ac_cv_prog_NMEDIT"
7329 fi
7330
7331     if test -n "$ac_tool_prefix"; then
7332   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_LIPO+set}" = set; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   if test -n "$LIPO"; then
7340   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 LIPO=$ac_cv_prog_LIPO
7360 if test -n "$LIPO"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7362 $as_echo "$LIPO" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_LIPO"; then
7371   ac_ct_LIPO=$LIPO
7372   # Extract the first word of "lipo", so it can be a program name with args.
7373 set dummy lipo; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$ac_ct_LIPO"; then
7380   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_ac_ct_LIPO="lipo"
7390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7400 if test -n "$ac_ct_LIPO"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7402 $as_echo "$ac_ct_LIPO" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408   if test "x$ac_ct_LIPO" = x; then
7409     LIPO=":"
7410   else
7411     case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417     LIPO=$ac_ct_LIPO
7418   fi
7419 else
7420   LIPO="$ac_cv_prog_LIPO"
7421 fi
7422
7423     if test -n "$ac_tool_prefix"; then
7424   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7425 set dummy ${ac_tool_prefix}otool; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   if test -n "$OTOOL"; then
7432   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439     for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446   done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 OTOOL=$ac_cv_prog_OTOOL
7452 if test -n "$OTOOL"; then
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7454 $as_echo "$OTOOL" >&6; }
7455 else
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460
7461 fi
7462 if test -z "$ac_cv_prog_OTOOL"; then
7463   ac_ct_OTOOL=$OTOOL
7464   # Extract the first word of "otool", so it can be a program name with args.
7465 set dummy otool; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   if test -n "$ac_ct_OTOOL"; then
7472   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_prog_ac_ct_OTOOL="otool"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7492 if test -n "$ac_ct_OTOOL"; then
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7494 $as_echo "$ac_ct_OTOOL" >&6; }
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500   if test "x$ac_ct_OTOOL" = x; then
7501     OTOOL=":"
7502   else
7503     case $cross_compiling:$ac_tool_warned in
7504 yes:)
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned=yes ;;
7508 esac
7509     OTOOL=$ac_ct_OTOOL
7510   fi
7511 else
7512   OTOOL="$ac_cv_prog_OTOOL"
7513 fi
7514
7515     if test -n "$ac_tool_prefix"; then
7516   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$OTOOL64"; then
7524   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 OTOOL64=$ac_cv_prog_OTOOL64
7544 if test -n "$OTOOL64"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7546 $as_echo "$OTOOL64" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 fi
7554 if test -z "$ac_cv_prog_OTOOL64"; then
7555   ac_ct_OTOOL64=$OTOOL64
7556   # Extract the first word of "otool64", so it can be a program name with args.
7557 set dummy otool64; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -n "$ac_ct_OTOOL64"; then
7564   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571     for ac_exec_ext in '' $ac_executable_extensions; do
7572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573     ac_cv_prog_ac_ct_OTOOL64="otool64"
7574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578   done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7584 if test -n "$ac_ct_OTOOL64"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7586 $as_echo "$ac_ct_OTOOL64" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592   if test "x$ac_ct_OTOOL64" = x; then
7593     OTOOL64=":"
7594   else
7595     case $cross_compiling:$ac_tool_warned in
7596 yes:)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601     OTOOL64=$ac_ct_OTOOL64
7602   fi
7603 else
7604   OTOOL64="$ac_cv_prog_OTOOL64"
7605 fi
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7634 $as_echo_n "checking for -single_module linker flag... " >&6; }
7635 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   lt_cv_apple_cc_single_mod=no
7639       if test -z "${LT_MULTI_MODULE}"; then
7640         # By default we will add the -single_module flag. You can override
7641         # by either setting the environment variable LT_MULTI_MODULE
7642         # non-empty at configure time, or by adding -multi_module to the
7643         # link flags.
7644         rm -rf libconftest.dylib*
7645         echo "int foo(void){return 1;}" > conftest.c
7646         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647 -dynamiclib -Wl,-single_module conftest.c" >&5
7648         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7649           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7650         _lt_result=$?
7651         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7652           lt_cv_apple_cc_single_mod=yes
7653         else
7654           cat conftest.err >&5
7655         fi
7656         rm -rf libconftest.dylib*
7657         rm -f conftest.*
7658       fi
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7661 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7663 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7664 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   lt_cv_ld_exported_symbols_list=no
7668       save_LDFLAGS=$LDFLAGS
7669       echo "_main" > conftest.sym
7670       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h.  */
7673
7674 int
7675 main ()
7676 {
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_link "$LINENO"; then :
7683   lt_cv_ld_exported_symbols_list=yes
7684 else
7685   lt_cv_ld_exported_symbols_list=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688     conftest$ac_exeext conftest.$ac_ext
7689         LDFLAGS="$save_LDFLAGS"
7690
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7693 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7694     case $host_os in
7695     rhapsody* | darwin1.[012])
7696       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7697     darwin1.*)
7698       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7699     darwin*) # darwin 5.x on
7700       # if running on 10.5 or later, the deployment target defaults
7701       # to the OS version, if on x86, and 10.4, the deployment
7702       # target defaults to 10.4. Don't you love it?
7703       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7704         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7705           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7706         10.[012]*)
7707           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7708         10.*)
7709           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7710       esac
7711     ;;
7712   esac
7713     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7714       _lt_dar_single_mod='$single_module'
7715     fi
7716     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7717       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7718     else
7719       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7720     fi
7721     if test "$DSYMUTIL" != ":"; then
7722       _lt_dsymutil='~$DSYMUTIL $lib || :'
7723     else
7724       _lt_dsymutil=
7725     fi
7726     ;;
7727   esac
7728
7729 for ac_header in dlfcn.h
7730 do :
7731   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7732 "
7733 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7734   cat >>confdefs.h <<_ACEOF
7735 #define HAVE_DLFCN_H 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743
7744 # Set options
7745 enable_win32_dll=yes
7746
7747 case $host in
7748 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7749   if test -n "$ac_tool_prefix"; then
7750   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}as; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_AS+set}" = set; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   if test -n "$AS"; then
7758   ac_cv_prog_AS="$AS" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765     for ac_exec_ext in '' $ac_executable_extensions; do
7766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767     ac_cv_prog_AS="${ac_tool_prefix}as"
7768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769     break 2
7770   fi
7771 done
7772   done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 AS=$ac_cv_prog_AS
7778 if test -n "$AS"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7780 $as_echo "$AS" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_AS"; then
7789   ac_ct_AS=$AS
7790   # Extract the first word of "as", so it can be a program name with args.
7791 set dummy as; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   if test -n "$ac_ct_AS"; then
7798   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807     ac_cv_prog_ac_ct_AS="as"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7818 if test -n "$ac_ct_AS"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7820 $as_echo "$ac_ct_AS" >&6; }
7821 else
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826   if test "x$ac_ct_AS" = x; then
7827     AS="false"
7828   else
7829     case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835     AS=$ac_ct_AS
7836   fi
7837 else
7838   AS="$ac_cv_prog_AS"
7839 fi
7840
7841   if test -n "$ac_tool_prefix"; then
7842   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   if test -n "$DLLTOOL"; then
7850   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 DLLTOOL=$ac_cv_prog_DLLTOOL
7870 if test -n "$DLLTOOL"; then
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7872 $as_echo "$DLLTOOL" >&6; }
7873 else
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 fi
7880 if test -z "$ac_cv_prog_DLLTOOL"; then
7881   ac_ct_DLLTOOL=$DLLTOOL
7882   # Extract the first word of "dlltool", so it can be a program name with args.
7883 set dummy dlltool; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$ac_ct_DLLTOOL"; then
7890   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7910 if test -n "$ac_ct_DLLTOOL"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7912 $as_echo "$ac_ct_DLLTOOL" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918   if test "x$ac_ct_DLLTOOL" = x; then
7919     DLLTOOL="false"
7920   else
7921     case $cross_compiling:$ac_tool_warned in
7922 yes:)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned=yes ;;
7926 esac
7927     DLLTOOL=$ac_ct_DLLTOOL
7928   fi
7929 else
7930   DLLTOOL="$ac_cv_prog_DLLTOOL"
7931 fi
7932
7933   if test -n "$ac_tool_prefix"; then
7934   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   if test -n "$OBJDUMP"; then
7942   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949     for ac_exec_ext in '' $ac_executable_extensions; do
7950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956   done
7957 IFS=$as_save_IFS
7958
7959 fi
7960 fi
7961 OBJDUMP=$ac_cv_prog_OBJDUMP
7962 if test -n "$OBJDUMP"; then
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7964 $as_echo "$OBJDUMP" >&6; }
7965 else
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 fi
7972 if test -z "$ac_cv_prog_OBJDUMP"; then
7973   ac_ct_OBJDUMP=$OBJDUMP
7974   # Extract the first word of "objdump", so it can be a program name with args.
7975 set dummy objdump; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   if test -n "$ac_ct_OBJDUMP"; then
7982   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8002 if test -n "$ac_ct_OBJDUMP"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8004 $as_echo "$ac_ct_OBJDUMP" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010   if test "x$ac_ct_OBJDUMP" = x; then
8011     OBJDUMP="false"
8012   else
8013     case $cross_compiling:$ac_tool_warned in
8014 yes:)
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8018 esac
8019     OBJDUMP=$ac_ct_OBJDUMP
8020   fi
8021 else
8022   OBJDUMP="$ac_cv_prog_OBJDUMP"
8023 fi
8024
8025   ;;
8026 esac
8027
8028 test -z "$AS" && AS=as
8029
8030
8031
8032
8033
8034 test -z "$DLLTOOL" && DLLTOOL=dlltool
8035
8036
8037
8038
8039
8040 test -z "$OBJDUMP" && OBJDUMP=objdump
8041
8042
8043
8044
8045
8046
8047
8048         enable_dlopen=no
8049
8050
8051
8052             # Check whether --enable-shared was given.
8053 if test "${enable_shared+set}" = set; then :
8054   enableval=$enable_shared; p=${PACKAGE-default}
8055     case $enableval in
8056     yes) enable_shared=yes ;;
8057     no) enable_shared=no ;;
8058     *)
8059       enable_shared=no
8060       # Look at the argument we got.  We use all the common list separators.
8061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8062       for pkg in $enableval; do
8063         IFS="$lt_save_ifs"
8064         if test "X$pkg" = "X$p"; then
8065           enable_shared=yes
8066         fi
8067       done
8068       IFS="$lt_save_ifs"
8069       ;;
8070     esac
8071 else
8072   enable_shared=yes
8073 fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083   # Check whether --enable-static was given.
8084 if test "${enable_static+set}" = set; then :
8085   enableval=$enable_static; p=${PACKAGE-default}
8086     case $enableval in
8087     yes) enable_static=yes ;;
8088     no) enable_static=no ;;
8089     *)
8090      enable_static=no
8091       # Look at the argument we got.  We use all the common list separators.
8092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8093       for pkg in $enableval; do
8094         IFS="$lt_save_ifs"
8095         if test "X$pkg" = "X$p"; then
8096           enable_static=yes
8097         fi
8098       done
8099       IFS="$lt_save_ifs"
8100       ;;
8101     esac
8102 else
8103   enable_static=yes
8104 fi
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 # Check whether --with-pic was given.
8116 if test "${with_pic+set}" = set; then :
8117   withval=$with_pic; pic_mode="$withval"
8118 else
8119   pic_mode=default
8120 fi
8121
8122
8123 test -z "$pic_mode" && pic_mode=default
8124
8125
8126
8127
8128
8129
8130
8131   # Check whether --enable-fast-install was given.
8132 if test "${enable_fast_install+set}" = set; then :
8133   enableval=$enable_fast_install; p=${PACKAGE-default}
8134     case $enableval in
8135     yes) enable_fast_install=yes ;;
8136     no) enable_fast_install=no ;;
8137     *)
8138       enable_fast_install=no
8139       # Look at the argument we got.  We use all the common list separators.
8140       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8141       for pkg in $enableval; do
8142         IFS="$lt_save_ifs"
8143         if test "X$pkg" = "X$p"; then
8144           enable_fast_install=yes
8145         fi
8146       done
8147       IFS="$lt_save_ifs"
8148       ;;
8149     esac
8150 else
8151   enable_fast_install=yes
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 # This can be used to rebuild libtool when needed
8165 LIBTOOL_DEPS="$ltmain"
8166
8167 # Always use our own libtool.
8168 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194 test -z "$LN_S" && LN_S="ln -s"
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 if test -n "${ZSH_VERSION+set}" ; then
8210    setopt NO_GLOB_SUBST
8211 fi
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8214 $as_echo_n "checking for objdir... " >&6; }
8215 if test "${lt_cv_objdir+set}" = set; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   rm -f .libs 2>/dev/null
8219 mkdir .libs 2>/dev/null
8220 if test -d .libs; then
8221   lt_cv_objdir=.libs
8222 else
8223   # MS-DOS does not allow filenames that begin with a dot.
8224   lt_cv_objdir=_libs
8225 fi
8226 rmdir .libs 2>/dev/null
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8229 $as_echo "$lt_cv_objdir" >&6; }
8230 objdir=$lt_cv_objdir
8231
8232
8233
8234
8235
8236 cat >>confdefs.h <<_ACEOF
8237 #define LT_OBJDIR "$lt_cv_objdir/"
8238 _ACEOF
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 case $host_os in
8257 aix3*)
8258   # AIX sometimes has problems with the GCC collect2 program.  For some
8259   # reason, if we set the COLLECT_NAMES environment variable, the problems
8260   # vanish in a puff of smoke.
8261   if test "X${COLLECT_NAMES+set}" != Xset; then
8262     COLLECT_NAMES=
8263     export COLLECT_NAMES
8264   fi
8265   ;;
8266 esac
8267
8268 # Sed substitution that helps us do robust quoting.  It backslashifies
8269 # metacharacters that are still active within double-quoted strings.
8270 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8271
8272 # Same as above, but do not quote variable references.
8273 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8274
8275 # Sed substitution to delay expansion of an escaped shell variable in a
8276 # double_quote_subst'ed string.
8277 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8278
8279 # Sed substitution to delay expansion of an escaped single quote.
8280 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8281
8282 # Sed substitution to avoid accidental globbing in evaled expressions
8283 no_glob_subst='s/\*/\\\*/g'
8284
8285 # Global variables:
8286 ofile=libtool
8287 can_build_shared=yes
8288
8289 # All known linkers require a `.a' archive for static linking (except MSVC,
8290 # which needs '.lib').
8291 libext=a
8292
8293 with_gnu_ld="$lt_cv_prog_gnu_ld"
8294
8295 old_CC="$CC"
8296 old_CFLAGS="$CFLAGS"
8297
8298 # Set sane defaults for various variables
8299 test -z "$CC" && CC=cc
8300 test -z "$LTCC" && LTCC=$CC
8301 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8302 test -z "$LD" && LD=ld
8303 test -z "$ac_objext" && ac_objext=o
8304
8305 for cc_temp in $compiler""; do
8306   case $cc_temp in
8307     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8309     \-*) ;;
8310     *) break;;
8311   esac
8312 done
8313 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8314
8315
8316 # Only perform the check for file, if the check method requires it
8317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8318 case $deplibs_check_method in
8319 file_magic*)
8320   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8322 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8324   $as_echo_n "(cached) " >&6
8325 else
8326   case $MAGIC_CMD in
8327 [\\/*] |  ?:[\\/]*)
8328   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8329   ;;
8330 *)
8331   lt_save_MAGIC_CMD="$MAGIC_CMD"
8332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8333   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8334   for ac_dir in $ac_dummy; do
8335     IFS="$lt_save_ifs"
8336     test -z "$ac_dir" && ac_dir=.
8337     if test -f $ac_dir/${ac_tool_prefix}file; then
8338       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8339       if test -n "$file_magic_test_file"; then
8340         case $deplibs_check_method in
8341         "file_magic "*)
8342           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8343           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8345             $EGREP "$file_magic_regex" > /dev/null; then
8346             :
8347           else
8348             cat <<_LT_EOF 1>&2
8349
8350 *** Warning: the command libtool uses to detect shared libraries,
8351 *** $file_magic_cmd, produces output that libtool cannot recognize.
8352 *** The result is that libtool may fail to recognize shared libraries
8353 *** as such.  This will affect the creation of libtool libraries that
8354 *** depend on shared libraries, but programs linked with such libtool
8355 *** libraries will work regardless of this problem.  Nevertheless, you
8356 *** may want to report the problem to your system manager and/or to
8357 *** bug-libtool@gnu.org
8358
8359 _LT_EOF
8360           fi ;;
8361         esac
8362       fi
8363       break
8364     fi
8365   done
8366   IFS="$lt_save_ifs"
8367   MAGIC_CMD="$lt_save_MAGIC_CMD"
8368   ;;
8369 esac
8370 fi
8371
8372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8373 if test -n "$MAGIC_CMD"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8375 $as_echo "$MAGIC_CMD" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381
8382
8383
8384
8385 if test -z "$lt_cv_path_MAGIC_CMD"; then
8386   if test -n "$ac_tool_prefix"; then
8387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8388 $as_echo_n "checking for file... " >&6; }
8389 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   case $MAGIC_CMD in
8393 [\\/*] |  ?:[\\/]*)
8394   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8395   ;;
8396 *)
8397   lt_save_MAGIC_CMD="$MAGIC_CMD"
8398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8399   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8400   for ac_dir in $ac_dummy; do
8401     IFS="$lt_save_ifs"
8402     test -z "$ac_dir" && ac_dir=.
8403     if test -f $ac_dir/file; then
8404       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8405       if test -n "$file_magic_test_file"; then
8406         case $deplibs_check_method in
8407         "file_magic "*)
8408           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8409           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8411             $EGREP "$file_magic_regex" > /dev/null; then
8412             :
8413           else
8414             cat <<_LT_EOF 1>&2
8415
8416 *** Warning: the command libtool uses to detect shared libraries,
8417 *** $file_magic_cmd, produces output that libtool cannot recognize.
8418 *** The result is that libtool may fail to recognize shared libraries
8419 *** as such.  This will affect the creation of libtool libraries that
8420 *** depend on shared libraries, but programs linked with such libtool
8421 *** libraries will work regardless of this problem.  Nevertheless, you
8422 *** may want to report the problem to your system manager and/or to
8423 *** bug-libtool@gnu.org
8424
8425 _LT_EOF
8426           fi ;;
8427         esac
8428       fi
8429       break
8430     fi
8431   done
8432   IFS="$lt_save_ifs"
8433   MAGIC_CMD="$lt_save_MAGIC_CMD"
8434   ;;
8435 esac
8436 fi
8437
8438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8439 if test -n "$MAGIC_CMD"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8441 $as_echo "$MAGIC_CMD" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448   else
8449     MAGIC_CMD=:
8450   fi
8451 fi
8452
8453   fi
8454   ;;
8455 esac
8456
8457 # Use C for the default configuration in the libtool script
8458
8459 lt_save_CC="$CC"
8460 ac_ext=c
8461 ac_cpp='$CPP $CPPFLAGS'
8462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466
8467 # Source file extension for C test sources.
8468 ac_ext=c
8469
8470 # Object file extension for compiled C test sources.
8471 objext=o
8472 objext=$objext
8473
8474 # Code to be used in simple compile tests
8475 lt_simple_compile_test_code="int some_variable = 0;"
8476
8477 # Code to be used in simple link tests
8478 lt_simple_link_test_code='int main(){return(0);}'
8479
8480
8481
8482
8483
8484
8485
8486 # If no C compiler was specified, use CC.
8487 LTCC=${LTCC-"$CC"}
8488
8489 # If no C compiler flags were specified, use CFLAGS.
8490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8491
8492 # Allow CC to be a program name with arguments.
8493 compiler=$CC
8494
8495 # Save the default compiler, since it gets overwritten when the other
8496 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8497 compiler_DEFAULT=$CC
8498
8499 # save warnings/boilerplate of simple test code
8500 ac_outfile=conftest.$ac_objext
8501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503 _lt_compiler_boilerplate=`cat conftest.err`
8504 $RM conftest*
8505
8506 ac_outfile=conftest.$ac_objext
8507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8509 _lt_linker_boilerplate=`cat conftest.err`
8510 $RM -r conftest*
8511
8512
8513 ## CAVEAT EMPTOR:
8514 ## There is no encapsulation within the following macros, do not change
8515 ## the running order or otherwise move them around unless you know exactly
8516 ## what you are doing...
8517 if test -n "$compiler"; then
8518
8519 lt_prog_compiler_no_builtin_flag=
8520
8521 if test "$GCC" = yes; then
8522   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8523
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   lt_cv_prog_compiler_rtti_exceptions=no
8530    ac_outfile=conftest.$ac_objext
8531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532    lt_compiler_flag="-fno-rtti -fno-exceptions"
8533    # Insert the option either (1) after the last *FLAGS variable, or
8534    # (2) before a word containing "conftest.", or (3) at the end.
8535    # Note that $ac_compile itself does not contain backslashes and begins
8536    # with a dollar sign (not a hyphen), so the echo should work correctly.
8537    # The option is referenced via a variable to avoid confusing sed.
8538    lt_compile=`echo "$ac_compile" | $SED \
8539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541    -e 's:$: $lt_compiler_flag:'`
8542    (eval echo "\"\$as_me:8542: $lt_compile\"" >&5)
8543    (eval "$lt_compile" 2>conftest.err)
8544    ac_status=$?
8545    cat conftest.err >&5
8546    echo "$as_me:8546: \$? = $ac_status" >&5
8547    if (exit $ac_status) && test -s "$ac_outfile"; then
8548      # The compiler can only warn and ignore the option if not recognized
8549      # So say no if there are warnings other than the usual output.
8550      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8551      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553        lt_cv_prog_compiler_rtti_exceptions=yes
8554      fi
8555    fi
8556    $RM conftest*
8557
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8561
8562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8563     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564 else
8565     :
8566 fi
8567
8568 fi
8569
8570
8571
8572
8573
8574
8575   lt_prog_compiler_wl=
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_static=
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8580 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8581
8582   if test "$GCC" = yes; then
8583     lt_prog_compiler_wl='-Wl,'
8584     lt_prog_compiler_static='-static'
8585
8586     case $host_os in
8587       aix*)
8588       # All AIX code is PIC.
8589       if test "$host_cpu" = ia64; then
8590         # AIX 5 now supports IA64 processor
8591         lt_prog_compiler_static='-Bstatic'
8592       fi
8593       ;;
8594
8595     amigaos*)
8596       case $host_cpu in
8597       powerpc)
8598             # see comment about AmigaOS4 .so support
8599             lt_prog_compiler_pic='-fPIC'
8600         ;;
8601       m68k)
8602             # FIXME: we need at least 68020 code to build shared libraries, but
8603             # adding the `-m68020' flag to GCC prevents building anything better,
8604             # like `-m68040'.
8605             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8606         ;;
8607       esac
8608       ;;
8609
8610     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8611       # PIC is the default for these OSes.
8612       ;;
8613
8614     mingw* | cygwin* | pw32* | os2* | cegcc*)
8615       # This hack is so that the source file can tell whether it is being
8616       # built for inclusion in a dll (and should export symbols for example).
8617       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8618       # (--disable-auto-import) libraries
8619       lt_prog_compiler_pic='-DDLL_EXPORT'
8620       ;;
8621
8622     darwin* | rhapsody*)
8623       # PIC is the default on this platform
8624       # Common symbols not allowed in MH_DYLIB files
8625       lt_prog_compiler_pic='-fno-common'
8626       ;;
8627
8628     hpux*)
8629       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8630       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8631       # sets the default TLS model and affects inlining.
8632       case $host_cpu in
8633       hppa*64*)
8634         # +Z the default
8635         ;;
8636       *)
8637         lt_prog_compiler_pic='-fPIC'
8638         ;;
8639       esac
8640       ;;
8641
8642     interix[3-9]*)
8643       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8644       # Instead, we relocate shared libraries at runtime.
8645       ;;
8646
8647     msdosdjgpp*)
8648       # Just because we use GCC doesn't mean we suddenly get shared libraries
8649       # on systems that don't support them.
8650       lt_prog_compiler_can_build_shared=no
8651       enable_shared=no
8652       ;;
8653
8654     *nto* | *qnx*)
8655       # QNX uses GNU C++, but need to define -shared option too, otherwise
8656       # it will coredump.
8657       lt_prog_compiler_pic='-fPIC -shared'
8658       ;;
8659
8660     sysv4*MP*)
8661       if test -d /usr/nec; then
8662         lt_prog_compiler_pic=-Kconform_pic
8663       fi
8664       ;;
8665
8666     *)
8667       lt_prog_compiler_pic='-fPIC'
8668       ;;
8669     esac
8670   else
8671     # PORTME Check for flag to pass linker flags through the system compiler.
8672     case $host_os in
8673     aix*)
8674       lt_prog_compiler_wl='-Wl,'
8675       if test "$host_cpu" = ia64; then
8676         # AIX 5 now supports IA64 processor
8677         lt_prog_compiler_static='-Bstatic'
8678       else
8679         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8680       fi
8681       ;;
8682
8683     mingw* | cygwin* | pw32* | os2* | cegcc*)
8684       # This hack is so that the source file can tell whether it is being
8685       # built for inclusion in a dll (and should export symbols for example).
8686       lt_prog_compiler_pic='-DDLL_EXPORT'
8687       ;;
8688
8689     hpux9* | hpux10* | hpux11*)
8690       lt_prog_compiler_wl='-Wl,'
8691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8692       # not for PA HP-UX.
8693       case $host_cpu in
8694       hppa*64*|ia64*)
8695         # +Z the default
8696         ;;
8697       *)
8698         lt_prog_compiler_pic='+Z'
8699         ;;
8700       esac
8701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8702       lt_prog_compiler_static='${wl}-a ${wl}archive'
8703       ;;
8704
8705     irix5* | irix6* | nonstopux*)
8706       lt_prog_compiler_wl='-Wl,'
8707       # PIC (with -KPIC) is the default.
8708       lt_prog_compiler_static='-non_shared'
8709       ;;
8710
8711     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8712       case $cc_basename in
8713       # old Intel for x86_64 which still supported -KPIC.
8714       ecc*)
8715         lt_prog_compiler_wl='-Wl,'
8716         lt_prog_compiler_pic='-KPIC'
8717         lt_prog_compiler_static='-static'
8718         ;;
8719       # icc used to be incompatible with GCC.
8720       # ICC 10 doesn't accept -KPIC any more.
8721       icc* | ifort*)
8722         lt_prog_compiler_wl='-Wl,'
8723         lt_prog_compiler_pic='-fPIC'
8724         lt_prog_compiler_static='-static'
8725         ;;
8726       # Lahey Fortran 8.1.
8727       lf95*)
8728         lt_prog_compiler_wl='-Wl,'
8729         lt_prog_compiler_pic='--shared'
8730         lt_prog_compiler_static='--static'
8731         ;;
8732       pgcc* | pgf77* | pgf90* | pgf95*)
8733         # Portland Group compilers (*not* the Pentium gcc compiler,
8734         # which looks to be a dead project)
8735         lt_prog_compiler_wl='-Wl,'
8736         lt_prog_compiler_pic='-fpic'
8737         lt_prog_compiler_static='-Bstatic'
8738         ;;
8739       ccc*)
8740         lt_prog_compiler_wl='-Wl,'
8741         # All Alpha code is PIC.
8742         lt_prog_compiler_static='-non_shared'
8743         ;;
8744       xl*)
8745         # IBM XL C 8.0/Fortran 10.1 on PPC
8746         lt_prog_compiler_wl='-Wl,'
8747         lt_prog_compiler_pic='-qpic'
8748         lt_prog_compiler_static='-qstaticlink'
8749         ;;
8750       *)
8751         case `$CC -V 2>&1 | sed 5q` in
8752         *Sun\ C*)
8753           # Sun C 5.9
8754           lt_prog_compiler_pic='-KPIC'
8755           lt_prog_compiler_static='-Bstatic'
8756           lt_prog_compiler_wl='-Wl,'
8757           ;;
8758         *Sun\ F*)
8759           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8760           lt_prog_compiler_pic='-KPIC'
8761           lt_prog_compiler_static='-Bstatic'
8762           lt_prog_compiler_wl=''
8763           ;;
8764         esac
8765         ;;
8766       esac
8767       ;;
8768
8769     newsos6)
8770       lt_prog_compiler_pic='-KPIC'
8771       lt_prog_compiler_static='-Bstatic'
8772       ;;
8773
8774     *nto* | *qnx*)
8775       # QNX uses GNU C++, but need to define -shared option too, otherwise
8776       # it will coredump.
8777       lt_prog_compiler_pic='-fPIC -shared'
8778       ;;
8779
8780     osf3* | osf4* | osf5*)
8781       lt_prog_compiler_wl='-Wl,'
8782       # All OSF/1 code is PIC.
8783       lt_prog_compiler_static='-non_shared'
8784       ;;
8785
8786     rdos*)
8787       lt_prog_compiler_static='-non_shared'
8788       ;;
8789
8790     solaris*)
8791       lt_prog_compiler_pic='-KPIC'
8792       lt_prog_compiler_static='-Bstatic'
8793       case $cc_basename in
8794       f77* | f90* | f95*)
8795         lt_prog_compiler_wl='-Qoption ld ';;
8796       *)
8797         lt_prog_compiler_wl='-Wl,';;
8798       esac
8799       ;;
8800
8801     sunos4*)
8802       lt_prog_compiler_wl='-Qoption ld '
8803       lt_prog_compiler_pic='-PIC'
8804       lt_prog_compiler_static='-Bstatic'
8805       ;;
8806
8807     sysv4 | sysv4.2uw2* | sysv4.3*)
8808       lt_prog_compiler_wl='-Wl,'
8809       lt_prog_compiler_pic='-KPIC'
8810       lt_prog_compiler_static='-Bstatic'
8811       ;;
8812
8813     sysv4*MP*)
8814       if test -d /usr/nec ;then
8815         lt_prog_compiler_pic='-Kconform_pic'
8816         lt_prog_compiler_static='-Bstatic'
8817       fi
8818       ;;
8819
8820     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8821       lt_prog_compiler_wl='-Wl,'
8822       lt_prog_compiler_pic='-KPIC'
8823       lt_prog_compiler_static='-Bstatic'
8824       ;;
8825
8826     unicos*)
8827       lt_prog_compiler_wl='-Wl,'
8828       lt_prog_compiler_can_build_shared=no
8829       ;;
8830
8831     uts4*)
8832       lt_prog_compiler_pic='-pic'
8833       lt_prog_compiler_static='-Bstatic'
8834       ;;
8835
8836     *)
8837       lt_prog_compiler_can_build_shared=no
8838       ;;
8839     esac
8840   fi
8841
8842 case $host_os in
8843   # For platforms which do not support PIC, -DPIC is meaningless:
8844   *djgpp*)
8845     lt_prog_compiler_pic=
8846     ;;
8847   *)
8848     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8849     ;;
8850 esac
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8852 $as_echo "$lt_prog_compiler_pic" >&6; }
8853
8854
8855
8856
8857
8858
8859 #
8860 # Check to make sure the PIC flag actually works.
8861 #
8862 if test -n "$lt_prog_compiler_pic"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8864 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8865 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_pic_works=no
8869    ac_outfile=conftest.$ac_objext
8870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8872    # Insert the option either (1) after the last *FLAGS variable, or
8873    # (2) before a word containing "conftest.", or (3) at the end.
8874    # Note that $ac_compile itself does not contain backslashes and begins
8875    # with a dollar sign (not a hyphen), so the echo should work correctly.
8876    # The option is referenced via a variable to avoid confusing sed.
8877    lt_compile=`echo "$ac_compile" | $SED \
8878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880    -e 's:$: $lt_compiler_flag:'`
8881    (eval echo "\"\$as_me:8881: $lt_compile\"" >&5)
8882    (eval "$lt_compile" 2>conftest.err)
8883    ac_status=$?
8884    cat conftest.err >&5
8885    echo "$as_me:8885: \$? = $ac_status" >&5
8886    if (exit $ac_status) && test -s "$ac_outfile"; then
8887      # The compiler can only warn and ignore the option if not recognized
8888      # So say no if there are warnings other than the usual output.
8889      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8890      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892        lt_cv_prog_compiler_pic_works=yes
8893      fi
8894    fi
8895    $RM conftest*
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8899 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8900
8901 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8902     case $lt_prog_compiler_pic in
8903      "" | " "*) ;;
8904      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8905      esac
8906 else
8907     lt_prog_compiler_pic=
8908      lt_prog_compiler_can_build_shared=no
8909 fi
8910
8911 fi
8912
8913
8914
8915
8916
8917
8918 #
8919 # Check to make sure the static flag actually works.
8920 #
8921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8923 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8924 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   lt_cv_prog_compiler_static_works=no
8928    save_LDFLAGS="$LDFLAGS"
8929    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8930    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8931    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8932      # The linker can only warn and ignore the option if not recognized
8933      # So say no if there are warnings
8934      if test -s conftest.err; then
8935        # Append any errors to the config.log.
8936        cat conftest.err 1>&5
8937        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8938        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939        if diff conftest.exp conftest.er2 >/dev/null; then
8940          lt_cv_prog_compiler_static_works=yes
8941        fi
8942      else
8943        lt_cv_prog_compiler_static_works=yes
8944      fi
8945    fi
8946    $RM -r conftest*
8947    LDFLAGS="$save_LDFLAGS"
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8951 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8952
8953 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8954     :
8955 else
8956     lt_prog_compiler_static=
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   lt_cv_prog_compiler_c_o=no
8971    $RM -r conftest 2>/dev/null
8972    mkdir conftest
8973    cd conftest
8974    mkdir out
8975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977    lt_compiler_flag="-o out/conftest2.$ac_objext"
8978    # Insert the option either (1) after the last *FLAGS variable, or
8979    # (2) before a word containing "conftest.", or (3) at the end.
8980    # Note that $ac_compile itself does not contain backslashes and begins
8981    # with a dollar sign (not a hyphen), so the echo should work correctly.
8982    lt_compile=`echo "$ac_compile" | $SED \
8983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8985    -e 's:$: $lt_compiler_flag:'`
8986    (eval echo "\"\$as_me:8986: $lt_compile\"" >&5)
8987    (eval "$lt_compile" 2>out/conftest.err)
8988    ac_status=$?
8989    cat out/conftest.err >&5
8990    echo "$as_me:8990: \$? = $ac_status" >&5
8991    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8992    then
8993      # The compiler can only warn and ignore the option if not recognized
8994      # So say no if there are warnings
8995      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8996      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8997      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8998        lt_cv_prog_compiler_c_o=yes
8999      fi
9000    fi
9001    chmod u+w . 2>&5
9002    $RM conftest*
9003    # SGI C++ compiler will create directory out/ii_files/ for
9004    # template instantiation
9005    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9006    $RM out/* && rmdir out
9007    cd ..
9008    $RM -r conftest
9009    $RM conftest*
9010
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9013 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9014
9015
9016
9017
9018
9019
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   lt_cv_prog_compiler_c_o=no
9026    $RM -r conftest 2>/dev/null
9027    mkdir conftest
9028    cd conftest
9029    mkdir out
9030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9031
9032    lt_compiler_flag="-o out/conftest2.$ac_objext"
9033    # Insert the option either (1) after the last *FLAGS variable, or
9034    # (2) before a word containing "conftest.", or (3) at the end.
9035    # Note that $ac_compile itself does not contain backslashes and begins
9036    # with a dollar sign (not a hyphen), so the echo should work correctly.
9037    lt_compile=`echo "$ac_compile" | $SED \
9038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040    -e 's:$: $lt_compiler_flag:'`
9041    (eval echo "\"\$as_me:9041: $lt_compile\"" >&5)
9042    (eval "$lt_compile" 2>out/conftest.err)
9043    ac_status=$?
9044    cat out/conftest.err >&5
9045    echo "$as_me:9045: \$? = $ac_status" >&5
9046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9047    then
9048      # The compiler can only warn and ignore the option if not recognized
9049      # So say no if there are warnings
9050      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053        lt_cv_prog_compiler_c_o=yes
9054      fi
9055    fi
9056    chmod u+w . 2>&5
9057    $RM conftest*
9058    # SGI C++ compiler will create directory out/ii_files/ for
9059    # template instantiation
9060    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061    $RM out/* && rmdir out
9062    cd ..
9063    $RM -r conftest
9064    $RM conftest*
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9069
9070
9071
9072
9073 hard_links="nottested"
9074 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9075   # do not overwrite the value of need_locks provided by the user
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9077 $as_echo_n "checking if we can lock with hard links... " >&6; }
9078   hard_links=yes
9079   $RM conftest*
9080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9081   touch conftest.a
9082   ln conftest.a conftest.b 2>&5 || hard_links=no
9083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9085 $as_echo "$hard_links" >&6; }
9086   if test "$hard_links" = no; then
9087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9089     need_locks=warn
9090   fi
9091 else
9092   need_locks=no
9093 fi
9094
9095
9096
9097
9098
9099
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9102
9103   runpath_var=
9104   allow_undefined_flag=
9105   always_export_symbols=no
9106   archive_cmds=
9107   archive_expsym_cmds=
9108   compiler_needs_object=no
9109   enable_shared_with_static_runtimes=no
9110   export_dynamic_flag_spec=
9111   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9112   hardcode_automatic=no
9113   hardcode_direct=no
9114   hardcode_direct_absolute=no
9115   hardcode_libdir_flag_spec=
9116   hardcode_libdir_flag_spec_ld=
9117   hardcode_libdir_separator=
9118   hardcode_minus_L=no
9119   hardcode_shlibpath_var=unsupported
9120   inherit_rpath=no
9121   link_all_deplibs=unknown
9122   module_cmds=
9123   module_expsym_cmds=
9124   old_archive_from_new_cmds=
9125   old_archive_from_expsyms_cmds=
9126   thread_safe_flag_spec=
9127   whole_archive_flag_spec=
9128   # include_expsyms should be a list of space-separated symbols to be *always*
9129   # included in the symbol list
9130   include_expsyms=
9131   # exclude_expsyms can be an extended regexp of symbols to exclude
9132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9134   # as well as any symbol that contains `d'.
9135   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9137   # platforms (ab)use it in PIC code, but their linkers get confused if
9138   # the symbol is explicitly referenced.  Since portable code cannot
9139   # rely on this symbol name, it's probably fine to never include it in
9140   # preloaded symbol tables.
9141   # Exclude shared library initialization/finalization symbols.
9142   extract_expsyms_cmds=
9143
9144   case $host_os in
9145   cygwin* | mingw* | pw32* | cegcc*)
9146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9147     # When not using gcc, we currently assume that we are using
9148     # Microsoft Visual C++.
9149     if test "$GCC" != yes; then
9150       with_gnu_ld=no
9151     fi
9152     ;;
9153   interix*)
9154     # we just hope/assume this is gcc and not c89 (= MSVC++)
9155     with_gnu_ld=yes
9156     ;;
9157   openbsd*)
9158     with_gnu_ld=no
9159     ;;
9160   linux* | k*bsd*-gnu)
9161     link_all_deplibs=no
9162     ;;
9163   esac
9164
9165   ld_shlibs=yes
9166   if test "$with_gnu_ld" = yes; then
9167     # If archive_cmds runs LD, not CC, wlarc should be empty
9168     wlarc='${wl}'
9169
9170     # Set some defaults for GNU ld with shared library support. These
9171     # are reset later if shared libraries are not supported. Putting them
9172     # here allows them to be overridden if necessary.
9173     runpath_var=LD_RUN_PATH
9174     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175     export_dynamic_flag_spec='${wl}--export-dynamic'
9176     # ancient GNU ld didn't support --whole-archive et. al.
9177     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9178       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9179     else
9180       whole_archive_flag_spec=
9181     fi
9182     supports_anon_versioning=no
9183     case `$LD -v 2>&1` in
9184       *GNU\ gold*) supports_anon_versioning=yes ;;
9185       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9186       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9187       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9188       *\ 2.11.*) ;; # other 2.11 versions
9189       *) supports_anon_versioning=yes ;;
9190     esac
9191
9192     # See if GNU ld supports shared libraries.
9193     case $host_os in
9194     aix[3-9]*)
9195       # On AIX/PPC, the GNU linker is very broken
9196       if test "$host_cpu" != ia64; then
9197         ld_shlibs=no
9198         cat <<_LT_EOF 1>&2
9199
9200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9201 *** to be unable to reliably create shared libraries on AIX.
9202 *** Therefore, libtool is disabling shared libraries support.  If you
9203 *** really care for shared libraries, you may want to modify your PATH
9204 *** so that a non-GNU linker is found, and then restart.
9205
9206 _LT_EOF
9207       fi
9208       ;;
9209
9210     amigaos*)
9211       case $host_cpu in
9212       powerpc)
9213             # see comment about AmigaOS4 .so support
9214             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215             archive_expsym_cmds=''
9216         ;;
9217       m68k)
9218             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)'
9219             hardcode_libdir_flag_spec='-L$libdir'
9220             hardcode_minus_L=yes
9221         ;;
9222       esac
9223       ;;
9224
9225     beos*)
9226       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227         allow_undefined_flag=unsupported
9228         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9229         # support --undefined.  This deserves some investigation.  FIXME
9230         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231       else
9232         ld_shlibs=no
9233       fi
9234       ;;
9235
9236     cygwin* | mingw* | pw32* | cegcc*)
9237       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9238       # as there is no search path for DLLs.
9239       hardcode_libdir_flag_spec='-L$libdir'
9240       allow_undefined_flag=unsupported
9241       always_export_symbols=no
9242       enable_shared_with_static_runtimes=yes
9243       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9244
9245       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9247         # If the export-symbols file already is a .def file (1st line
9248         # is EXPORTS), use it as is; otherwise, prepend...
9249         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9250           cp $export_symbols $output_objdir/$soname.def;
9251         else
9252           echo EXPORTS > $output_objdir/$soname.def;
9253           cat $export_symbols >> $output_objdir/$soname.def;
9254         fi~
9255         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9256       else
9257         ld_shlibs=no
9258       fi
9259       ;;
9260
9261     interix[3-9]*)
9262       hardcode_direct=no
9263       hardcode_shlibpath_var=no
9264       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265       export_dynamic_flag_spec='${wl}-E'
9266       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9267       # Instead, shared libraries are loaded at an image base (0x10000000 by
9268       # default) and relocated if they conflict, which is a slow very memory
9269       # consuming and fragmenting process.  To avoid this, we pick a random,
9270       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9271       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9272       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9273       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'
9274       ;;
9275
9276     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9277       tmp_diet=no
9278       if test "$host_os" = linux-dietlibc; then
9279         case $cc_basename in
9280           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9281         esac
9282       fi
9283       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9284          && test "$tmp_diet" = no
9285       then
9286         tmp_addflag=
9287         tmp_sharedflag='-shared'
9288         case $cc_basename,$host_cpu in
9289         pgcc*)                          # Portland Group C compiler
9290           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9291           tmp_addflag=' $pic_flag'
9292           ;;
9293         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9294           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9295           tmp_addflag=' $pic_flag -Mnomain' ;;
9296         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9297           tmp_addflag=' -i_dynamic' ;;
9298         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9299           tmp_addflag=' -i_dynamic -nofor_main' ;;
9300         ifc* | ifort*)                  # Intel Fortran compiler
9301           tmp_addflag=' -nofor_main' ;;
9302         lf95*)                          # Lahey Fortran 8.1
9303           whole_archive_flag_spec=
9304           tmp_sharedflag='--shared' ;;
9305         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9306           tmp_sharedflag='-qmkshrobj'
9307           tmp_addflag= ;;
9308         esac
9309         case `$CC -V 2>&1 | sed 5q` in
9310         *Sun\ C*)                       # Sun C 5.9
9311           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9312           compiler_needs_object=yes
9313           tmp_sharedflag='-G' ;;
9314         *Sun\ F*)                       # Sun Fortran 8.3
9315           tmp_sharedflag='-G' ;;
9316         esac
9317         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318
9319         if test "x$supports_anon_versioning" = xyes; then
9320           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9321             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9322             echo "local: *; };" >> $output_objdir/$libname.ver~
9323             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324         fi
9325
9326         case $cc_basename in
9327         xlf*)
9328           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9329           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9330           hardcode_libdir_flag_spec=
9331           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9332           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9333           if test "x$supports_anon_versioning" = xyes; then
9334             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9335               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9336               echo "local: *; };" >> $output_objdir/$libname.ver~
9337               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9338           fi
9339           ;;
9340         esac
9341       else
9342         ld_shlibs=no
9343       fi
9344       ;;
9345
9346     netbsd* | netbsdelf*-gnu)
9347       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9348         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9349         wlarc=
9350       else
9351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353       fi
9354       ;;
9355
9356     solaris*)
9357       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9358         ld_shlibs=no
9359         cat <<_LT_EOF 1>&2
9360
9361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9362 *** create shared libraries on Solaris systems.  Therefore, libtool
9363 *** is disabling shared libraries support.  We urge you to upgrade GNU
9364 *** binutils to release 2.9.1 or newer.  Another option is to modify
9365 *** your PATH or compiler configuration so that the native linker is
9366 *** used, and then restart.
9367
9368 _LT_EOF
9369       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9372       else
9373         ld_shlibs=no
9374       fi
9375       ;;
9376
9377     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9378       case `$LD -v 2>&1` in
9379         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9380         ld_shlibs=no
9381         cat <<_LT_EOF 1>&2
9382
9383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9384 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9385 *** is disabling shared libraries support.  We urge you to upgrade GNU
9386 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9387 *** your PATH or compiler configuration so that the native linker is
9388 *** used, and then restart.
9389
9390 _LT_EOF
9391         ;;
9392         *)
9393           # For security reasons, it is highly recommended that you always
9394           # use absolute paths for naming shared libraries, and exclude the
9395           # DT_RUNPATH tag from executables and libraries.  But doing so
9396           # requires that you compile everything twice, which is a pain.
9397           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9401           else
9402             ld_shlibs=no
9403           fi
9404         ;;
9405       esac
9406       ;;
9407
9408     sunos4*)
9409       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410       wlarc=
9411       hardcode_direct=yes
9412       hardcode_shlibpath_var=no
9413       ;;
9414
9415     *)
9416       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419       else
9420         ld_shlibs=no
9421       fi
9422       ;;
9423     esac
9424
9425     if test "$ld_shlibs" = no; then
9426       runpath_var=
9427       hardcode_libdir_flag_spec=
9428       export_dynamic_flag_spec=
9429       whole_archive_flag_spec=
9430     fi
9431   else
9432     # PORTME fill in a description of your system's linker (not GNU ld)
9433     case $host_os in
9434     aix3*)
9435       allow_undefined_flag=unsupported
9436       always_export_symbols=yes
9437       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'
9438       # Note: this linker hardcodes the directories in LIBPATH if there
9439       # are no directories specified by -L.
9440       hardcode_minus_L=yes
9441       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9442         # Neither direct hardcoding nor static linking is supported with a
9443         # broken collect2.
9444         hardcode_direct=unsupported
9445       fi
9446       ;;
9447
9448     aix[4-9]*)
9449       if test "$host_cpu" = ia64; then
9450         # On IA64, the linker does run time linking by default, so we don't
9451         # have to do anything special.
9452         aix_use_runtimelinking=no
9453         exp_sym_flag='-Bexport'
9454         no_entry_flag=""
9455       else
9456         # If we're using GNU nm, then we don't want the "-C" option.
9457         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9458         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9460         else
9461           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'
9462         fi
9463         aix_use_runtimelinking=no
9464
9465         # Test if we are trying to use run time linking or normal
9466         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467         # need to do runtime linking.
9468         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469           for ld_flag in $LDFLAGS; do
9470           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471             aix_use_runtimelinking=yes
9472             break
9473           fi
9474           done
9475           ;;
9476         esac
9477
9478         exp_sym_flag='-bexport'
9479         no_entry_flag='-bnoentry'
9480       fi
9481
9482       # When large executables or shared objects are built, AIX ld can
9483       # have problems creating the table of contents.  If linking a library
9484       # or program results in "error TOC overflow" add -mminimal-toc to
9485       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9486       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487
9488       archive_cmds=''
9489       hardcode_direct=yes
9490       hardcode_direct_absolute=yes
9491       hardcode_libdir_separator=':'
9492       link_all_deplibs=yes
9493       file_list_spec='${wl}-f,'
9494
9495       if test "$GCC" = yes; then
9496         case $host_os in aix4.[012]|aix4.[012].*)
9497         # We only want to do this on AIX 4.2 and lower, the check
9498         # below for broken collect2 doesn't work under 4.3+
9499           collect2name=`${CC} -print-prog-name=collect2`
9500           if test -f "$collect2name" &&
9501            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502           then
9503           # We have reworked collect2
9504           :
9505           else
9506           # We have old collect2
9507           hardcode_direct=unsupported
9508           # It fails to find uninstalled libraries when the uninstalled
9509           # path is not listed in the libpath.  Setting hardcode_minus_L
9510           # to unsupported forces relinking
9511           hardcode_minus_L=yes
9512           hardcode_libdir_flag_spec='-L$libdir'
9513           hardcode_libdir_separator=
9514           fi
9515           ;;
9516         esac
9517         shared_flag='-shared'
9518         if test "$aix_use_runtimelinking" = yes; then
9519           shared_flag="$shared_flag "'${wl}-G'
9520         fi
9521         link_all_deplibs=no
9522       else
9523         # not using gcc
9524         if test "$host_cpu" = ia64; then
9525         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9526         # chokes on -Wl,-G. The following line is correct:
9527           shared_flag='-G'
9528         else
9529           if test "$aix_use_runtimelinking" = yes; then
9530             shared_flag='${wl}-G'
9531           else
9532             shared_flag='${wl}-bM:SRE'
9533           fi
9534         fi
9535       fi
9536
9537       export_dynamic_flag_spec='${wl}-bexpall'
9538       # It seems that -bexpall does not export symbols beginning with
9539       # underscore (_), so it is better to generate a list of symbols to export.
9540       always_export_symbols=yes
9541       if test "$aix_use_runtimelinking" = yes; then
9542         # Warning - without using the other runtime loading flags (-brtl),
9543         # -berok will link without error, but may produce a broken library.
9544         allow_undefined_flag='-berok'
9545         # Determine the default libpath from the value encoded in an
9546         # empty executable.
9547         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h.  */
9549
9550 int
9551 main ()
9552 {
9553
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559
9560 lt_aix_libpath_sed='
9561     /Import File Strings/,/^$/ {
9562         /^0/ {
9563             s/^0  *\(.*\)$/\1/
9564             p
9565         }
9566     }'
9567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9568 # Check for a 64-bit object if we didn't find anything.
9569 if test -z "$aix_libpath"; then
9570   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 fi
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext \
9574     conftest$ac_exeext conftest.$ac_ext
9575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9576
9577         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9578         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9579       else
9580         if test "$host_cpu" = ia64; then
9581           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9582           allow_undefined_flag="-z nodefs"
9583           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"
9584         else
9585          # Determine the default libpath from the value encoded in an
9586          # empty executable.
9587          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h.  */
9589
9590 int
9591 main ()
9592 {
9593
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9599
9600 lt_aix_libpath_sed='
9601     /Import File Strings/,/^$/ {
9602         /^0/ {
9603             s/^0  *\(.*\)$/\1/
9604             p
9605         }
9606     }'
9607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 # Check for a 64-bit object if we didn't find anything.
9609 if test -z "$aix_libpath"; then
9610   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 fi
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext \
9614     conftest$ac_exeext conftest.$ac_ext
9615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9616
9617          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618           # Warning - without using the other run time loading flags,
9619           # -berok will link without error, but may produce a broken library.
9620           no_undefined_flag=' ${wl}-bernotok'
9621           allow_undefined_flag=' ${wl}-berok'
9622           # Exported symbols can be pulled into shared objects from archives
9623           whole_archive_flag_spec='$convenience'
9624           archive_cmds_need_lc=yes
9625           # This is similar to how AIX traditionally builds its shared libraries.
9626           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'
9627         fi
9628       fi
9629       ;;
9630
9631     amigaos*)
9632       case $host_cpu in
9633       powerpc)
9634             # see comment about AmigaOS4 .so support
9635             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636             archive_expsym_cmds=''
9637         ;;
9638       m68k)
9639             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)'
9640             hardcode_libdir_flag_spec='-L$libdir'
9641             hardcode_minus_L=yes
9642         ;;
9643       esac
9644       ;;
9645
9646     bsdi[45]*)
9647       export_dynamic_flag_spec=-rdynamic
9648       ;;
9649
9650     cygwin* | mingw* | pw32* | cegcc*)
9651       # When not using gcc, we currently assume that we are using
9652       # Microsoft Visual C++.
9653       # hardcode_libdir_flag_spec is actually meaningless, as there is
9654       # no search path for DLLs.
9655       hardcode_libdir_flag_spec=' '
9656       allow_undefined_flag=unsupported
9657       # Tell ltmain to make .lib files, not .a files.
9658       libext=lib
9659       # Tell ltmain to make .dll files, not .so files.
9660       shrext_cmds=".dll"
9661       # FIXME: Setting linknames here is a bad hack.
9662       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9663       # The linker will automatically build a .lib file if we build a DLL.
9664       old_archive_from_new_cmds='true'
9665       # FIXME: Should let the user specify the lib program.
9666       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9667       fix_srcfile_path='`cygpath -w "$srcfile"`'
9668       enable_shared_with_static_runtimes=yes
9669       ;;
9670
9671     darwin* | rhapsody*)
9672
9673
9674   archive_cmds_need_lc=no
9675   hardcode_direct=no
9676   hardcode_automatic=yes
9677   hardcode_shlibpath_var=unsupported
9678   whole_archive_flag_spec=''
9679   link_all_deplibs=yes
9680   allow_undefined_flag="$_lt_dar_allow_undefined"
9681   case $cc_basename in
9682      ifort*) _lt_dar_can_shared=yes ;;
9683      *) _lt_dar_can_shared=$GCC ;;
9684   esac
9685   if test "$_lt_dar_can_shared" = "yes"; then
9686     output_verbose_link_cmd=echo
9687     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9688     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9689     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}"
9690     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}"
9691
9692   else
9693   ld_shlibs=no
9694   fi
9695
9696       ;;
9697
9698     dgux*)
9699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700       hardcode_libdir_flag_spec='-L$libdir'
9701       hardcode_shlibpath_var=no
9702       ;;
9703
9704     freebsd1*)
9705       ld_shlibs=no
9706       ;;
9707
9708     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9709     # support.  Future versions do this automatically, but an explicit c++rt0.o
9710     # does not break anything, and helps significantly (at the cost of a little
9711     # extra space).
9712     freebsd2.2*)
9713       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9714       hardcode_libdir_flag_spec='-R$libdir'
9715       hardcode_direct=yes
9716       hardcode_shlibpath_var=no
9717       ;;
9718
9719     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9720     freebsd2*)
9721       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9722       hardcode_direct=yes
9723       hardcode_minus_L=yes
9724       hardcode_shlibpath_var=no
9725       ;;
9726
9727     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9728     freebsd* | dragonfly*)
9729       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9730       hardcode_libdir_flag_spec='-R$libdir'
9731       hardcode_direct=yes
9732       hardcode_shlibpath_var=no
9733       ;;
9734
9735     hpux9*)
9736       if test "$GCC" = yes; then
9737         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9738       else
9739         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'
9740       fi
9741       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9742       hardcode_libdir_separator=:
9743       hardcode_direct=yes
9744
9745       # hardcode_minus_L: Not really in the search PATH,
9746       # but as the default location of the library.
9747       hardcode_minus_L=yes
9748       export_dynamic_flag_spec='${wl}-E'
9749       ;;
9750
9751     hpux10*)
9752       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9753         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9754       else
9755         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9756       fi
9757       if test "$with_gnu_ld" = no; then
9758         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9759         hardcode_libdir_flag_spec_ld='+b $libdir'
9760         hardcode_libdir_separator=:
9761         hardcode_direct=yes
9762         hardcode_direct_absolute=yes
9763         export_dynamic_flag_spec='${wl}-E'
9764         # hardcode_minus_L: Not really in the search PATH,
9765         # but as the default location of the library.
9766         hardcode_minus_L=yes
9767       fi
9768       ;;
9769
9770     hpux11*)
9771       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9772         case $host_cpu in
9773         hppa*64*)
9774           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775           ;;
9776         ia64*)
9777           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9778           ;;
9779         *)
9780           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9781           ;;
9782         esac
9783       else
9784         case $host_cpu in
9785         hppa*64*)
9786           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787           ;;
9788         ia64*)
9789           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790           ;;
9791         *)
9792           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793           ;;
9794         esac
9795       fi
9796       if test "$with_gnu_ld" = no; then
9797         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9798         hardcode_libdir_separator=:
9799
9800         case $host_cpu in
9801         hppa*64*|ia64*)
9802           hardcode_direct=no
9803           hardcode_shlibpath_var=no
9804           ;;
9805         *)
9806           hardcode_direct=yes
9807           hardcode_direct_absolute=yes
9808           export_dynamic_flag_spec='${wl}-E'
9809
9810           # hardcode_minus_L: Not really in the search PATH,
9811           # but as the default location of the library.
9812           hardcode_minus_L=yes
9813           ;;
9814         esac
9815       fi
9816       ;;
9817
9818     irix5* | irix6* | nonstopux*)
9819       if test "$GCC" = yes; then
9820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9821         # Try to use the -exported_symbol ld option, if it does not
9822         # work, assume that -exports_file does not work either and
9823         # implicitly export all symbols.
9824         save_LDFLAGS="$LDFLAGS"
9825         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9826         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h.  */
9828 int foo(void) {}
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9832
9833 fi
9834 rm -f core conftest.err conftest.$ac_objext \
9835     conftest$ac_exeext conftest.$ac_ext
9836         LDFLAGS="$save_LDFLAGS"
9837       else
9838         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9839         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9840       fi
9841       archive_cmds_need_lc='no'
9842       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9843       hardcode_libdir_separator=:
9844       inherit_rpath=yes
9845       link_all_deplibs=yes
9846       ;;
9847
9848     netbsd* | netbsdelf*-gnu)
9849       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9850         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9851       else
9852         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9853       fi
9854       hardcode_libdir_flag_spec='-R$libdir'
9855       hardcode_direct=yes
9856       hardcode_shlibpath_var=no
9857       ;;
9858
9859     newsos6)
9860       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861       hardcode_direct=yes
9862       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863       hardcode_libdir_separator=:
9864       hardcode_shlibpath_var=no
9865       ;;
9866
9867     *nto* | *qnx*)
9868       ;;
9869
9870     openbsd*)
9871       if test -f /usr/libexec/ld.so; then
9872         hardcode_direct=yes
9873         hardcode_shlibpath_var=no
9874         hardcode_direct_absolute=yes
9875         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9876           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9877           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9878           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9879           export_dynamic_flag_spec='${wl}-E'
9880         else
9881           case $host_os in
9882            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9883              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9884              hardcode_libdir_flag_spec='-R$libdir'
9885              ;;
9886            *)
9887              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9888              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9889              ;;
9890           esac
9891         fi
9892       else
9893         ld_shlibs=no
9894       fi
9895       ;;
9896
9897     os2*)
9898       hardcode_libdir_flag_spec='-L$libdir'
9899       hardcode_minus_L=yes
9900       allow_undefined_flag=unsupported
9901       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'
9902       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9903       ;;
9904
9905     osf3*)
9906       if test "$GCC" = yes; then
9907         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9908         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9909       else
9910         allow_undefined_flag=' -expect_unresolved \*'
9911         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9912       fi
9913       archive_cmds_need_lc='no'
9914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915       hardcode_libdir_separator=:
9916       ;;
9917
9918     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9919       if test "$GCC" = yes; then
9920         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9921         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9922         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9923       else
9924         allow_undefined_flag=' -expect_unresolved \*'
9925         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9926         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~
9927         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9928
9929         # Both c and cxx compiler support -rpath directly
9930         hardcode_libdir_flag_spec='-rpath $libdir'
9931       fi
9932       archive_cmds_need_lc='no'
9933       hardcode_libdir_separator=:
9934       ;;
9935
9936     solaris*)
9937       no_undefined_flag=' -z defs'
9938       if test "$GCC" = yes; then
9939         wlarc='${wl}'
9940         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9943       else
9944         case `$CC -V 2>&1` in
9945         *"Compilers 5.0"*)
9946           wlarc=''
9947           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9949           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9950           ;;
9951         *)
9952           wlarc='${wl}'
9953           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9954           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9955           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9956           ;;
9957         esac
9958       fi
9959       hardcode_libdir_flag_spec='-R$libdir'
9960       hardcode_shlibpath_var=no
9961       case $host_os in
9962       solaris2.[0-5] | solaris2.[0-5].*) ;;
9963       *)
9964         # The compiler driver will combine and reorder linker options,
9965         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9966         # but is careful enough not to reorder.
9967         # Supported since Solaris 2.6 (maybe 2.5.1?)
9968         if test "$GCC" = yes; then
9969           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9970         else
9971           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9972         fi
9973         ;;
9974       esac
9975       link_all_deplibs=yes
9976       ;;
9977
9978     sunos4*)
9979       if test "x$host_vendor" = xsequent; then
9980         # Use $CC to link under sequent, because it throws in some extra .o
9981         # files that make .init and .fini sections work.
9982         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9983       else
9984         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9985       fi
9986       hardcode_libdir_flag_spec='-L$libdir'
9987       hardcode_direct=yes
9988       hardcode_minus_L=yes
9989       hardcode_shlibpath_var=no
9990       ;;
9991
9992     sysv4)
9993       case $host_vendor in
9994         sni)
9995           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996           hardcode_direct=yes # is this really true???
9997         ;;
9998         siemens)
9999           ## LD is ld it makes a PLAMLIB
10000           ## CC just makes a GrossModule.
10001           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10002           reload_cmds='$CC -r -o $output$reload_objs'
10003           hardcode_direct=no
10004         ;;
10005         motorola)
10006           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10008         ;;
10009       esac
10010       runpath_var='LD_RUN_PATH'
10011       hardcode_shlibpath_var=no
10012       ;;
10013
10014     sysv4.3*)
10015       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016       hardcode_shlibpath_var=no
10017       export_dynamic_flag_spec='-Bexport'
10018       ;;
10019
10020     sysv4*MP*)
10021       if test -d /usr/nec; then
10022         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023         hardcode_shlibpath_var=no
10024         runpath_var=LD_RUN_PATH
10025         hardcode_runpath_var=yes
10026         ld_shlibs=yes
10027       fi
10028       ;;
10029
10030     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10031       no_undefined_flag='${wl}-z,text'
10032       archive_cmds_need_lc=no
10033       hardcode_shlibpath_var=no
10034       runpath_var='LD_RUN_PATH'
10035
10036       if test "$GCC" = yes; then
10037         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039       else
10040         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042       fi
10043       ;;
10044
10045     sysv5* | sco3.2v5* | sco5v6*)
10046       # Note: We can NOT use -z defs as we might desire, because we do not
10047       # link with -lc, and that would cause any symbols used from libc to
10048       # always be unresolved, which means just about no library would
10049       # ever link correctly.  If we're not using GNU ld we use -z text
10050       # though, which does catch some bad symbols but isn't as heavy-handed
10051       # as -z defs.
10052       no_undefined_flag='${wl}-z,text'
10053       allow_undefined_flag='${wl}-z,nodefs'
10054       archive_cmds_need_lc=no
10055       hardcode_shlibpath_var=no
10056       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10057       hardcode_libdir_separator=':'
10058       link_all_deplibs=yes
10059       export_dynamic_flag_spec='${wl}-Bexport'
10060       runpath_var='LD_RUN_PATH'
10061
10062       if test "$GCC" = yes; then
10063         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065       else
10066         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068       fi
10069       ;;
10070
10071     uts4*)
10072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       hardcode_shlibpath_var=no
10075       ;;
10076
10077     *)
10078       ld_shlibs=no
10079       ;;
10080     esac
10081
10082     if test x$host_vendor = xsni; then
10083       case $host in
10084       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10085         export_dynamic_flag_spec='${wl}-Blargedynsym'
10086         ;;
10087       esac
10088     fi
10089   fi
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10092 $as_echo "$ld_shlibs" >&6; }
10093 test "$ld_shlibs" = no && can_build_shared=no
10094
10095 with_gnu_ld=$with_gnu_ld
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 #
10112 # Do we need to explicitly link libc?
10113 #
10114 case "x$archive_cmds_need_lc" in
10115 x|xyes)
10116   # Assume -lc should be added
10117   archive_cmds_need_lc=yes
10118
10119   if test "$enable_shared" = yes && test "$GCC" = yes; then
10120     case $archive_cmds in
10121     *'~'*)
10122       # FIXME: we may have to deal with multi-command sequences.
10123       ;;
10124     '$CC '*)
10125       # Test whether the compiler implicitly links with -lc since on some
10126       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10127       # to ld, don't add -lc before -lgcc.
10128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10129 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10130       $RM conftest*
10131       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132
10133       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10134   (eval $ac_compile) 2>&5
10135   ac_status=$?
10136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137   test $ac_status = 0; } 2>conftest.err; then
10138         soname=conftest
10139         lib=conftest
10140         libobjs=conftest.$ac_objext
10141         deplibs=
10142         wl=$lt_prog_compiler_wl
10143         pic_flag=$lt_prog_compiler_pic
10144         compiler_flags=-v
10145         linker_flags=-v
10146         verstring=
10147         output_objdir=.
10148         libname=conftest
10149         lt_save_allow_undefined_flag=$allow_undefined_flag
10150         allow_undefined_flag=
10151         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10152   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10153   ac_status=$?
10154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155   test $ac_status = 0; }
10156         then
10157           archive_cmds_need_lc=no
10158         else
10159           archive_cmds_need_lc=yes
10160         fi
10161         allow_undefined_flag=$lt_save_allow_undefined_flag
10162       else
10163         cat conftest.err 1>&5
10164       fi
10165       $RM conftest*
10166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10167 $as_echo "$archive_cmds_need_lc" >&6; }
10168       ;;
10169     esac
10170   fi
10171   ;;
10172 esac
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10331 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10332
10333 if test "$GCC" = yes; then
10334   case $host_os in
10335     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10336     *) lt_awk_arg="/^libraries:/" ;;
10337   esac
10338   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10339   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10340     # if the path contains ";" then we assume it to be the separator
10341     # otherwise default to the standard path separator (i.e. ":") - it is
10342     # assumed that no part of a normal pathname contains ";" but that should
10343     # okay in the real world where ";" in dirpaths is itself problematic.
10344     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10345   else
10346     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10347   fi
10348   # Ok, now we have the path, separated by spaces, we can step through it
10349   # and add multilib dir if necessary.
10350   lt_tmp_lt_search_path_spec=
10351   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352   for lt_sys_path in $lt_search_path_spec; do
10353     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10354       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10355     else
10356       test -d "$lt_sys_path" && \
10357         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10358     fi
10359   done
10360   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10361 BEGIN {RS=" "; FS="/|\n";} {
10362   lt_foo="";
10363   lt_count=0;
10364   for (lt_i = NF; lt_i > 0; lt_i--) {
10365     if ($lt_i != "" && $lt_i != ".") {
10366       if ($lt_i == "..") {
10367         lt_count++;
10368       } else {
10369         if (lt_count == 0) {
10370           lt_foo="/" $lt_i lt_foo;
10371         } else {
10372           lt_count--;
10373         }
10374       }
10375     }
10376   }
10377   if (lt_foo != "") { lt_freq[lt_foo]++; }
10378   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10379 }'`
10380   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10381 else
10382   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10383 fi
10384 library_names_spec=
10385 libname_spec='lib$name'
10386 soname_spec=
10387 shrext_cmds=".so"
10388 postinstall_cmds=
10389 postuninstall_cmds=
10390 finish_cmds=
10391 finish_eval=
10392 shlibpath_var=
10393 shlibpath_overrides_runpath=unknown
10394 version_type=none
10395 dynamic_linker="$host_os ld.so"
10396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10397 need_lib_prefix=unknown
10398 hardcode_into_libs=no
10399
10400 # when you set need_version to no, make sure it does not cause -set_version
10401 # flags to be left without arguments
10402 need_version=unknown
10403
10404 case $host_os in
10405 aix3*)
10406   version_type=linux
10407   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10408   shlibpath_var=LIBPATH
10409
10410   # AIX 3 has no versioning support, so we append a major version to the name.
10411   soname_spec='${libname}${release}${shared_ext}$major'
10412   ;;
10413
10414 aix[4-9]*)
10415   version_type=linux
10416   need_lib_prefix=no
10417   need_version=no
10418   hardcode_into_libs=yes
10419   if test "$host_cpu" = ia64; then
10420     # AIX 5 supports IA64
10421     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10422     shlibpath_var=LD_LIBRARY_PATH
10423   else
10424     # With GCC up to 2.95.x, collect2 would create an import file
10425     # for dependence libraries.  The import file would start with
10426     # the line `#! .'.  This would cause the generated library to
10427     # depend on `.', always an invalid library.  This was fixed in
10428     # development snapshots of GCC prior to 3.0.
10429     case $host_os in
10430       aix4 | aix4.[01] | aix4.[01].*)
10431       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10432            echo ' yes '
10433            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10434         :
10435       else
10436         can_build_shared=no
10437       fi
10438       ;;
10439     esac
10440     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10441     # soname into executable. Probably we can add versioning support to
10442     # collect2, so additional links can be useful in future.
10443     if test "$aix_use_runtimelinking" = yes; then
10444       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10445       # instead of lib<name>.a to let people know that these are not
10446       # typical AIX shared libraries.
10447       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448     else
10449       # We preserve .a as extension for shared libraries through AIX4.2
10450       # and later when we are not doing run time linking.
10451       library_names_spec='${libname}${release}.a $libname.a'
10452       soname_spec='${libname}${release}${shared_ext}$major'
10453     fi
10454     shlibpath_var=LIBPATH
10455   fi
10456   ;;
10457
10458 amigaos*)
10459   case $host_cpu in
10460   powerpc)
10461     # Since July 2007 AmigaOS4 officially supports .so libraries.
10462     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464     ;;
10465   m68k)
10466     library_names_spec='$libname.ixlibrary $libname.a'
10467     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10468     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10469     ;;
10470   esac
10471   ;;
10472
10473 beos*)
10474   library_names_spec='${libname}${shared_ext}'
10475   dynamic_linker="$host_os ld.so"
10476   shlibpath_var=LIBRARY_PATH
10477   ;;
10478
10479 bsdi[45]*)
10480   version_type=linux
10481   need_version=no
10482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483   soname_spec='${libname}${release}${shared_ext}$major'
10484   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10485   shlibpath_var=LD_LIBRARY_PATH
10486   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10487   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10488   # the default ld.so.conf also contains /usr/contrib/lib and
10489   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10490   # libtool to hard-code these into programs
10491   ;;
10492
10493 cygwin* | mingw* | pw32* | cegcc*)
10494   version_type=windows
10495   shrext_cmds=".dll"
10496   need_version=no
10497   need_lib_prefix=no
10498
10499   case $GCC,$host_os in
10500   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10501     library_names_spec='$libname.dll.a'
10502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503     postinstall_cmds='base_file=`basename \${file}`~
10504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505       dldir=$destdir/`dirname \$dlpath`~
10506       test -d \$dldir || mkdir -p \$dldir~
10507       $install_prog $dir/$dlname \$dldir/$dlname~
10508       chmod a+x \$dldir/$dlname~
10509       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10510         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10511       fi'
10512     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10513       dlpath=$dir/\$dldll~
10514        $RM \$dlpath'
10515     shlibpath_overrides_runpath=yes
10516
10517     case $host_os in
10518     cygwin*)
10519       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10520       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10521       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10522       ;;
10523     mingw* | cegcc*)
10524       # MinGW DLLs use traditional 'lib' prefix
10525       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10527       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10528         # It is most probably a Windows format PATH printed by
10529         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10530         # path with ; separators, and with drive letters. We can handle the
10531         # drive letters (cygwin fileutils understands them), so leave them,
10532         # especially as we might pass files found there to a mingw objdump,
10533         # which wouldn't understand a cygwinified path. Ahh.
10534         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10535       else
10536         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10537       fi
10538       ;;
10539     pw32*)
10540       # pw32 DLLs use 'pw' prefix rather than 'lib'
10541       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542       ;;
10543     esac
10544     ;;
10545
10546   *)
10547     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10548     ;;
10549   esac
10550   dynamic_linker='Win32 ld.exe'
10551   # FIXME: first we should search . and the directory the executable is in
10552   shlibpath_var=PATH
10553   ;;
10554
10555 darwin* | rhapsody*)
10556   dynamic_linker="$host_os dyld"
10557   version_type=darwin
10558   need_lib_prefix=no
10559   need_version=no
10560   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10561   soname_spec='${libname}${release}${major}$shared_ext'
10562   shlibpath_overrides_runpath=yes
10563   shlibpath_var=DYLD_LIBRARY_PATH
10564   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10565
10566   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10567   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10568   ;;
10569
10570 dgux*)
10571   version_type=linux
10572   need_lib_prefix=no
10573   need_version=no
10574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10575   soname_spec='${libname}${release}${shared_ext}$major'
10576   shlibpath_var=LD_LIBRARY_PATH
10577   ;;
10578
10579 freebsd1*)
10580   dynamic_linker=no
10581   ;;
10582
10583 freebsd* | dragonfly*)
10584   # DragonFly does not have aout.  When/if they implement a new
10585   # versioning mechanism, adjust this.
10586   if test -x /usr/bin/objformat; then
10587     objformat=`/usr/bin/objformat`
10588   else
10589     case $host_os in
10590     freebsd[123]*) objformat=aout ;;
10591     *) objformat=elf ;;
10592     esac
10593   fi
10594   version_type=freebsd-$objformat
10595   case $version_type in
10596     freebsd-elf*)
10597       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598       need_version=no
10599       need_lib_prefix=no
10600       ;;
10601     freebsd-*)
10602       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10603       need_version=yes
10604       ;;
10605   esac
10606   shlibpath_var=LD_LIBRARY_PATH
10607   case $host_os in
10608   freebsd2*)
10609     shlibpath_overrides_runpath=yes
10610     ;;
10611   freebsd3.[01]* | freebsdelf3.[01]*)
10612     shlibpath_overrides_runpath=yes
10613     hardcode_into_libs=yes
10614     ;;
10615   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10616   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10617     shlibpath_overrides_runpath=no
10618     hardcode_into_libs=yes
10619     ;;
10620   *) # from 4.6 on, and DragonFly
10621     shlibpath_overrides_runpath=yes
10622     hardcode_into_libs=yes
10623     ;;
10624   esac
10625   ;;
10626
10627 gnu*)
10628   version_type=linux
10629   need_lib_prefix=no
10630   need_version=no
10631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10632   soname_spec='${libname}${release}${shared_ext}$major'
10633   shlibpath_var=LD_LIBRARY_PATH
10634   hardcode_into_libs=yes
10635   ;;
10636
10637 hpux9* | hpux10* | hpux11*)
10638   # Give a soname corresponding to the major version so that dld.sl refuses to
10639   # link against other versions.
10640   version_type=sunos
10641   need_lib_prefix=no
10642   need_version=no
10643   case $host_cpu in
10644   ia64*)
10645     shrext_cmds='.so'
10646     hardcode_into_libs=yes
10647     dynamic_linker="$host_os dld.so"
10648     shlibpath_var=LD_LIBRARY_PATH
10649     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651     soname_spec='${libname}${release}${shared_ext}$major'
10652     if test "X$HPUX_IA64_MODE" = X32; then
10653       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10654     else
10655       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10656     fi
10657     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10658     ;;
10659   hppa*64*)
10660     shrext_cmds='.sl'
10661     hardcode_into_libs=yes
10662     dynamic_linker="$host_os dld.sl"
10663     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10664     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666     soname_spec='${libname}${release}${shared_ext}$major'
10667     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10669     ;;
10670   *)
10671     shrext_cmds='.sl'
10672     dynamic_linker="$host_os dld.sl"
10673     shlibpath_var=SHLIB_PATH
10674     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676     soname_spec='${libname}${release}${shared_ext}$major'
10677     ;;
10678   esac
10679   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10680   postinstall_cmds='chmod 555 $lib'
10681   ;;
10682
10683 interix[3-9]*)
10684   version_type=linux
10685   need_lib_prefix=no
10686   need_version=no
10687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10688   soname_spec='${libname}${release}${shared_ext}$major'
10689   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10690   shlibpath_var=LD_LIBRARY_PATH
10691   shlibpath_overrides_runpath=no
10692   hardcode_into_libs=yes
10693   ;;
10694
10695 irix5* | irix6* | nonstopux*)
10696   case $host_os in
10697     nonstopux*) version_type=nonstopux ;;
10698     *)
10699         if test "$lt_cv_prog_gnu_ld" = yes; then
10700                 version_type=linux
10701         else
10702                 version_type=irix
10703         fi ;;
10704   esac
10705   need_lib_prefix=no
10706   need_version=no
10707   soname_spec='${libname}${release}${shared_ext}$major'
10708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10709   case $host_os in
10710   irix5* | nonstopux*)
10711     libsuff= shlibsuff=
10712     ;;
10713   *)
10714     case $LD in # libtool.m4 will add one of these switches to LD
10715     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10716       libsuff= shlibsuff= libmagic=32-bit;;
10717     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10718       libsuff=32 shlibsuff=N32 libmagic=N32;;
10719     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10720       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10721     *) libsuff= shlibsuff= libmagic=never-match;;
10722     esac
10723     ;;
10724   esac
10725   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10726   shlibpath_overrides_runpath=no
10727   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10728   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10729   hardcode_into_libs=yes
10730   ;;
10731
10732 # No shared lib support for Linux oldld, aout, or coff.
10733 linux*oldld* | linux*aout* | linux*coff*)
10734   dynamic_linker=no
10735   ;;
10736
10737 # This must be Linux ELF.
10738 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10739   version_type=linux
10740   need_lib_prefix=no
10741   need_version=no
10742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743   soname_spec='${libname}${release}${shared_ext}$major'
10744   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10745   shlibpath_var=LD_LIBRARY_PATH
10746   shlibpath_overrides_runpath=no
10747   # Some binutils ld are patched to set DT_RUNPATH
10748   save_LDFLAGS=$LDFLAGS
10749   save_libdir=$libdir
10750   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10751        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h.  */
10754
10755 int
10756 main ()
10757 {
10758
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 if ac_fn_c_try_link "$LINENO"; then :
10764   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10765   shlibpath_overrides_runpath=yes
10766 fi
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext \
10769     conftest$ac_exeext conftest.$ac_ext
10770   LDFLAGS=$save_LDFLAGS
10771   libdir=$save_libdir
10772
10773   # This implies no fast_install, which is unacceptable.
10774   # Some rework will be needed to allow for fast_install
10775   # before this can be enabled.
10776   hardcode_into_libs=yes
10777
10778   # Append ld.so.conf contents to the search path
10779   if test -f /etc/ld.so.conf; then
10780     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;/^$/d' | tr '\n' ' '`
10781     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10782   fi
10783
10784   # We used to test for /lib/ld.so.1 and disable shared libraries on
10785   # powerpc, because MkLinux only supported shared libraries with the
10786   # GNU dynamic linker.  Since this was broken with cross compilers,
10787   # most powerpc-linux boxes support dynamic linking these days and
10788   # people can always --disable-shared, the test was removed, and we
10789   # assume the GNU/Linux dynamic linker is in use.
10790   dynamic_linker='GNU/Linux ld.so'
10791   ;;
10792
10793 netbsdelf*-gnu)
10794   version_type=linux
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   shlibpath_overrides_runpath=no
10801   hardcode_into_libs=yes
10802   dynamic_linker='NetBSD ld.elf_so'
10803   ;;
10804
10805 netbsd*)
10806   version_type=sunos
10807   need_lib_prefix=no
10808   need_version=no
10809   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10811     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10812     dynamic_linker='NetBSD (a.out) ld.so'
10813   else
10814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10815     soname_spec='${libname}${release}${shared_ext}$major'
10816     dynamic_linker='NetBSD ld.elf_so'
10817   fi
10818   shlibpath_var=LD_LIBRARY_PATH
10819   shlibpath_overrides_runpath=yes
10820   hardcode_into_libs=yes
10821   ;;
10822
10823 newsos6)
10824   version_type=linux
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   shlibpath_overrides_runpath=yes
10828   ;;
10829
10830 *nto* | *qnx*)
10831   version_type=qnx
10832   need_lib_prefix=no
10833   need_version=no
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835   soname_spec='${libname}${release}${shared_ext}$major'
10836   shlibpath_var=LD_LIBRARY_PATH
10837   shlibpath_overrides_runpath=no
10838   hardcode_into_libs=yes
10839   dynamic_linker='ldqnx.so'
10840   ;;
10841
10842 openbsd*)
10843   version_type=sunos
10844   sys_lib_dlsearch_path_spec="/usr/lib"
10845   need_lib_prefix=no
10846   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10847   case $host_os in
10848     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10849     *)                          need_version=no  ;;
10850   esac
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10855     case $host_os in
10856       openbsd2.[89] | openbsd2.[89].*)
10857         shlibpath_overrides_runpath=no
10858         ;;
10859       *)
10860         shlibpath_overrides_runpath=yes
10861         ;;
10862       esac
10863   else
10864     shlibpath_overrides_runpath=yes
10865   fi
10866   ;;
10867
10868 os2*)
10869   libname_spec='$name'
10870   shrext_cmds=".dll"
10871   need_lib_prefix=no
10872   library_names_spec='$libname${shared_ext} $libname.a'
10873   dynamic_linker='OS/2 ld.exe'
10874   shlibpath_var=LIBPATH
10875   ;;
10876
10877 osf3* | osf4* | osf5*)
10878   version_type=osf
10879   need_lib_prefix=no
10880   need_version=no
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10885   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10886   ;;
10887
10888 rdos*)
10889   dynamic_linker=no
10890   ;;
10891
10892 solaris*)
10893   version_type=linux
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   shlibpath_overrides_runpath=yes
10900   hardcode_into_libs=yes
10901   # ldd complains unless libraries are executable
10902   postinstall_cmds='chmod +x $lib'
10903   ;;
10904
10905 sunos4*)
10906   version_type=sunos
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10908   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10909   shlibpath_var=LD_LIBRARY_PATH
10910   shlibpath_overrides_runpath=yes
10911   if test "$with_gnu_ld" = yes; then
10912     need_lib_prefix=no
10913   fi
10914   need_version=yes
10915   ;;
10916
10917 sysv4 | sysv4.3*)
10918   version_type=linux
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   case $host_vendor in
10923     sni)
10924       shlibpath_overrides_runpath=no
10925       need_lib_prefix=no
10926       runpath_var=LD_RUN_PATH
10927       ;;
10928     siemens)
10929       need_lib_prefix=no
10930       ;;
10931     motorola)
10932       need_lib_prefix=no
10933       need_version=no
10934       shlibpath_overrides_runpath=no
10935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10936       ;;
10937   esac
10938   ;;
10939
10940 sysv4*MP*)
10941   if test -d /usr/nec ;then
10942     version_type=linux
10943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10944     soname_spec='$libname${shared_ext}.$major'
10945     shlibpath_var=LD_LIBRARY_PATH
10946   fi
10947   ;;
10948
10949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10950   version_type=freebsd-elf
10951   need_lib_prefix=no
10952   need_version=no
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   shlibpath_overrides_runpath=yes
10957   hardcode_into_libs=yes
10958   if test "$with_gnu_ld" = yes; then
10959     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10960   else
10961     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10962     case $host_os in
10963       sco3.2v5*)
10964         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10965         ;;
10966     esac
10967   fi
10968   sys_lib_dlsearch_path_spec='/usr/lib'
10969   ;;
10970
10971 tpf*)
10972   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10973   version_type=linux
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977   shlibpath_var=LD_LIBRARY_PATH
10978   shlibpath_overrides_runpath=no
10979   hardcode_into_libs=yes
10980   ;;
10981
10982 uts4*)
10983   version_type=linux
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   ;;
10988
10989 *)
10990   dynamic_linker=no
10991   ;;
10992 esac
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10994 $as_echo "$dynamic_linker" >&6; }
10995 test "$dynamic_linker" = no && can_build_shared=no
10996
10997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10998 if test "$GCC" = yes; then
10999   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11000 fi
11001
11002 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11003   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11004 fi
11005 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11006   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11007 fi
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
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11097 hardcode_action=
11098 if test -n "$hardcode_libdir_flag_spec" ||
11099    test -n "$runpath_var" ||
11100    test "X$hardcode_automatic" = "Xyes" ; then
11101
11102   # We can hardcode non-existent directories.
11103   if test "$hardcode_direct" != no &&
11104      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11105      # have to relink, otherwise we might link with an installed library
11106      # when we should be linking with a yet-to-be-installed one
11107      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11108      test "$hardcode_minus_L" != no; then
11109     # Linking always hardcodes the temporary library directory.
11110     hardcode_action=relink
11111   else
11112     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11113     hardcode_action=immediate
11114   fi
11115 else
11116   # We cannot hardcode anything, or else we can only hardcode existing
11117   # directories.
11118   hardcode_action=unsupported
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11121 $as_echo "$hardcode_action" >&6; }
11122
11123 if test "$hardcode_action" = relink ||
11124    test "$inherit_rpath" = yes; then
11125   # Fast installation is not supported
11126   enable_fast_install=no
11127 elif test "$shlibpath_overrides_runpath" = yes ||
11128      test "$enable_shared" = no; then
11129   # Fast installation is not necessary
11130   enable_fast_install=needless
11131 fi
11132
11133
11134
11135
11136
11137
11138   if test "x$enable_dlopen" != xyes; then
11139   enable_dlopen=unknown
11140   enable_dlopen_self=unknown
11141   enable_dlopen_self_static=unknown
11142 else
11143   lt_cv_dlopen=no
11144   lt_cv_dlopen_libs=
11145
11146   case $host_os in
11147   beos*)
11148     lt_cv_dlopen="load_add_on"
11149     lt_cv_dlopen_libs=
11150     lt_cv_dlopen_self=yes
11151     ;;
11152
11153   mingw* | pw32* | cegcc*)
11154     lt_cv_dlopen="LoadLibrary"
11155     lt_cv_dlopen_libs=
11156     ;;
11157
11158   cygwin*)
11159     lt_cv_dlopen="dlopen"
11160     lt_cv_dlopen_libs=
11161     ;;
11162
11163   darwin*)
11164   # if libdl is installed we need to link against it
11165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   ac_check_lib_save_LIBS=$LIBS
11171 LIBS="-ldl  $LIBS"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h.  */
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176    Use char because int might match the return type of a GCC
11177    builtin and then its argument prototype would still apply.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char dlopen ();
11182 int
11183 main ()
11184 {
11185 return dlopen ();
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 if ac_fn_c_try_link "$LINENO"; then :
11191   ac_cv_lib_dl_dlopen=yes
11192 else
11193   ac_cv_lib_dl_dlopen=no
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196     conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11201 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11203 else
11204
11205     lt_cv_dlopen="dyld"
11206     lt_cv_dlopen_libs=
11207     lt_cv_dlopen_self=yes
11208
11209 fi
11210
11211     ;;
11212
11213   *)
11214     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11215 if test "x$ac_cv_func_shl_load" = x""yes; then :
11216   lt_cv_dlopen="shl_load"
11217 else
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldld  $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char shl_load ();
11235 int
11236 main ()
11237 {
11238 return shl_load ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_dld_shl_load=yes
11245 else
11246   ac_cv_lib_dld_shl_load=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11254 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11255   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11256 else
11257   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11258 if test "x$ac_cv_func_dlopen" = x""yes; then :
11259   lt_cv_dlopen="dlopen"
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-ldl  $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char dlopen ();
11278 int
11279 main ()
11280 {
11281 return dlopen ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   ac_cv_lib_dl_dlopen=yes
11288 else
11289   ac_cv_lib_dl_dlopen=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11297 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11302 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-lsvld  $LIBS"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h.  */
11309
11310 /* Override any GCC internal prototype to avoid an error.
11311    Use char because int might match the return type of a GCC
11312    builtin and then its argument prototype would still apply.  */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char dlopen ();
11317 int
11318 main ()
11319 {
11320 return dlopen ();
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326   ac_cv_lib_svld_dlopen=yes
11327 else
11328   ac_cv_lib_svld_dlopen=no
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext \
11331     conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11336 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11338 else
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldld  $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h.  */
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char dld_link ();
11356 int
11357 main ()
11358 {
11359 return dld_link ();
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365   ac_cv_lib_dld_dld_link=yes
11366 else
11367   ac_cv_lib_dld_dld_link=no
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext \
11370     conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11375 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11376   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11377 fi
11378
11379
11380 fi
11381
11382
11383 fi
11384
11385
11386 fi
11387
11388
11389 fi
11390
11391
11392 fi
11393
11394     ;;
11395   esac
11396
11397   if test "x$lt_cv_dlopen" != xno; then
11398     enable_dlopen=yes
11399   else
11400     enable_dlopen=no
11401   fi
11402
11403   case $lt_cv_dlopen in
11404   dlopen)
11405     save_CPPFLAGS="$CPPFLAGS"
11406     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11407
11408     save_LDFLAGS="$LDFLAGS"
11409     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11410
11411     save_LIBS="$LIBS"
11412     LIBS="$lt_cv_dlopen_libs $LIBS"
11413
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11416 if test "${lt_cv_dlopen_self+set}" = set; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419           if test "$cross_compiling" = yes; then :
11420   lt_cv_dlopen_self=cross
11421 else
11422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11423   lt_status=$lt_dlunknown
11424   cat > conftest.$ac_ext <<_LT_EOF
11425 #line 11425 "configure"
11426 #include "confdefs.h"
11427
11428 #if HAVE_DLFCN_H
11429 #include <dlfcn.h>
11430 #endif
11431
11432 #include <stdio.h>
11433
11434 #ifdef RTLD_GLOBAL
11435 #  define LT_DLGLOBAL           RTLD_GLOBAL
11436 #else
11437 #  ifdef DL_GLOBAL
11438 #    define LT_DLGLOBAL         DL_GLOBAL
11439 #  else
11440 #    define LT_DLGLOBAL         0
11441 #  endif
11442 #endif
11443
11444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11445    find out it does not work in some platform. */
11446 #ifndef LT_DLLAZY_OR_NOW
11447 #  ifdef RTLD_LAZY
11448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11449 #  else
11450 #    ifdef DL_LAZY
11451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11452 #    else
11453 #      ifdef RTLD_NOW
11454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11455 #      else
11456 #        ifdef DL_NOW
11457 #          define LT_DLLAZY_OR_NOW      DL_NOW
11458 #        else
11459 #          define LT_DLLAZY_OR_NOW      0
11460 #        endif
11461 #      endif
11462 #    endif
11463 #  endif
11464 #endif
11465
11466 void fnord() { int i=42;}
11467 int main ()
11468 {
11469   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11470   int status = $lt_dlunknown;
11471
11472   if (self)
11473     {
11474       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11475       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11476       /* dlclose (self); */
11477     }
11478   else
11479     puts (dlerror ());
11480
11481   return status;
11482 }
11483 _LT_EOF
11484   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11485   (eval $ac_link) 2>&5
11486   ac_status=$?
11487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11489     (./conftest; exit; ) >&5 2>/dev/null
11490     lt_status=$?
11491     case x$lt_status in
11492       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11493       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11494       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11495     esac
11496   else :
11497     # compilation failed
11498     lt_cv_dlopen_self=no
11499   fi
11500 fi
11501 rm -fr conftest*
11502
11503
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11506 $as_echo "$lt_cv_dlopen_self" >&6; }
11507
11508     if test "x$lt_cv_dlopen_self" = xyes; then
11509       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11510       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11511 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11512 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515           if test "$cross_compiling" = yes; then :
11516   lt_cv_dlopen_self_static=cross
11517 else
11518   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11519   lt_status=$lt_dlunknown
11520   cat > conftest.$ac_ext <<_LT_EOF
11521 #line 11521 "configure"
11522 #include "confdefs.h"
11523
11524 #if HAVE_DLFCN_H
11525 #include <dlfcn.h>
11526 #endif
11527
11528 #include <stdio.h>
11529
11530 #ifdef RTLD_GLOBAL
11531 #  define LT_DLGLOBAL           RTLD_GLOBAL
11532 #else
11533 #  ifdef DL_GLOBAL
11534 #    define LT_DLGLOBAL         DL_GLOBAL
11535 #  else
11536 #    define LT_DLGLOBAL         0
11537 #  endif
11538 #endif
11539
11540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11541    find out it does not work in some platform. */
11542 #ifndef LT_DLLAZY_OR_NOW
11543 #  ifdef RTLD_LAZY
11544 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11545 #  else
11546 #    ifdef DL_LAZY
11547 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11548 #    else
11549 #      ifdef RTLD_NOW
11550 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11551 #      else
11552 #        ifdef DL_NOW
11553 #          define LT_DLLAZY_OR_NOW      DL_NOW
11554 #        else
11555 #          define LT_DLLAZY_OR_NOW      0
11556 #        endif
11557 #      endif
11558 #    endif
11559 #  endif
11560 #endif
11561
11562 void fnord() { int i=42;}
11563 int main ()
11564 {
11565   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11566   int status = $lt_dlunknown;
11567
11568   if (self)
11569     {
11570       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11571       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11572       /* dlclose (self); */
11573     }
11574   else
11575     puts (dlerror ());
11576
11577   return status;
11578 }
11579 _LT_EOF
11580   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11581   (eval $ac_link) 2>&5
11582   ac_status=$?
11583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11585     (./conftest; exit; ) >&5 2>/dev/null
11586     lt_status=$?
11587     case x$lt_status in
11588       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11589       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11590       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11591     esac
11592   else :
11593     # compilation failed
11594     lt_cv_dlopen_self_static=no
11595   fi
11596 fi
11597 rm -fr conftest*
11598
11599
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11602 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11603     fi
11604
11605     CPPFLAGS="$save_CPPFLAGS"
11606     LDFLAGS="$save_LDFLAGS"
11607     LIBS="$save_LIBS"
11608     ;;
11609   esac
11610
11611   case $lt_cv_dlopen_self in
11612   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11613   *) enable_dlopen_self=unknown ;;
11614   esac
11615
11616   case $lt_cv_dlopen_self_static in
11617   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11618   *) enable_dlopen_self_static=unknown ;;
11619   esac
11620 fi
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 striplib=
11639 old_striplib=
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11642 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11643   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11644   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; }
11647 else
11648 # FIXME - insert some real tests, host_os isn't really good enough
11649   case $host_os in
11650   darwin*)
11651     if test -n "$STRIP" ; then
11652       striplib="$STRIP -x"
11653       old_striplib="$STRIP -S"
11654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11655 $as_echo "yes" >&6; }
11656     else
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659     fi
11660     ;;
11661   *)
11662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664     ;;
11665   esac
11666 fi
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679   # Report which library types will actually be built
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11683 $as_echo "$can_build_shared" >&6; }
11684
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11686 $as_echo_n "checking whether to build shared libraries... " >&6; }
11687   test "$can_build_shared" = "no" && enable_shared=no
11688
11689   # On AIX, shared libraries and static libraries use the same namespace, and
11690   # are all built from PIC.
11691   case $host_os in
11692   aix3*)
11693     test "$enable_shared" = yes && enable_static=no
11694     if test -n "$RANLIB"; then
11695       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11696       postinstall_cmds='$RANLIB $lib'
11697     fi
11698     ;;
11699
11700   aix[4-9]*)
11701     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11702       test "$enable_shared" = yes && enable_static=no
11703     fi
11704     ;;
11705   esac
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11707 $as_echo "$enable_shared" >&6; }
11708
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11710 $as_echo_n "checking whether to build static libraries... " >&6; }
11711   # Make sure either enable_shared or enable_static is yes.
11712   test "$enable_shared" = yes || enable_static=yes
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11714 $as_echo "$enable_static" >&6; }
11715
11716
11717
11718
11719 fi
11720 ac_ext=c
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11725
11726 CC="$lt_save_CC"
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740         ac_config_commands="$ac_config_commands libtool"
11741
11742
11743
11744
11745 # Only expand once:
11746
11747
11748
11749 # Api documentation
11750
11751
11752 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11753         if test -n "$ac_tool_prefix"; then
11754   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11755 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   case $PKG_CONFIG in
11762   [\\/]* | ?:[\\/]*)
11763   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11764   ;;
11765   *)
11766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11768 do
11769   IFS=$as_save_IFS
11770   test -z "$as_dir" && as_dir=.
11771     for ac_exec_ext in '' $ac_executable_extensions; do
11772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775     break 2
11776   fi
11777 done
11778   done
11779 IFS=$as_save_IFS
11780
11781   ;;
11782 esac
11783 fi
11784 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11785 if test -n "$PKG_CONFIG"; then
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11787 $as_echo "$PKG_CONFIG" >&6; }
11788 else
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11791 fi
11792
11793
11794 fi
11795 if test -z "$ac_cv_path_PKG_CONFIG"; then
11796   ac_pt_PKG_CONFIG=$PKG_CONFIG
11797   # Extract the first word of "pkg-config", so it can be a program name with args.
11798 set dummy pkg-config; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11802   $as_echo_n "(cached) " >&6
11803 else
11804   case $ac_pt_PKG_CONFIG in
11805   [\\/]* | ?:[\\/]*)
11806   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11807   ;;
11808   *)
11809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11811 do
11812   IFS=$as_save_IFS
11813   test -z "$as_dir" && as_dir=.
11814     for ac_exec_ext in '' $ac_executable_extensions; do
11815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818     break 2
11819   fi
11820 done
11821   done
11822 IFS=$as_save_IFS
11823
11824   ;;
11825 esac
11826 fi
11827 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11828 if test -n "$ac_pt_PKG_CONFIG"; then
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11830 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11831 else
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835
11836   if test "x$ac_pt_PKG_CONFIG" = x; then
11837     PKG_CONFIG=""
11838   else
11839     case $cross_compiling:$ac_tool_warned in
11840 yes:)
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11843 ac_tool_warned=yes ;;
11844 esac
11845     PKG_CONFIG=$ac_pt_PKG_CONFIG
11846   fi
11847 else
11848   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11849 fi
11850
11851 fi
11852 if test -n "$PKG_CONFIG"; then
11853         _pkg_min_version=0.9.0
11854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11855 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11856         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11857                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859         else
11860                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862                 PKG_CONFIG=""
11863         fi
11864
11865 fi
11866
11867
11868     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11869 set dummy gtkdoc-check; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   case $GTKDOC_CHECK in
11876   [\\/]* | ?:[\\/]*)
11877   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
11878   ;;
11879   *)
11880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883   IFS=$as_save_IFS
11884   test -z "$as_dir" && as_dir=.
11885     for ac_exec_ext in '' $ac_executable_extensions; do
11886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892   done
11893 IFS=$as_save_IFS
11894
11895   ;;
11896 esac
11897 fi
11898 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
11899 if test -n "$GTKDOC_CHECK"; then
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11901 $as_echo "$GTKDOC_CHECK" >&6; }
11902 else
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11905 fi
11906
11907
11908   for ac_prog in gtkdoc-rebase
11909 do
11910   # Extract the first word of "$ac_prog", so it can be a program name with args.
11911 set dummy $ac_prog; ac_word=$2
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 $as_echo_n "checking for $ac_word... " >&6; }
11914 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
11915   $as_echo_n "(cached) " >&6
11916 else
11917   case $GTKDOC_REBASE in
11918   [\\/]* | ?:[\\/]*)
11919   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11920   ;;
11921   *)
11922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11924 do
11925   IFS=$as_save_IFS
11926   test -z "$as_dir" && as_dir=.
11927     for ac_exec_ext in '' $ac_executable_extensions; do
11928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11929     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931     break 2
11932   fi
11933 done
11934   done
11935 IFS=$as_save_IFS
11936
11937   ;;
11938 esac
11939 fi
11940 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11941 if test -n "$GTKDOC_REBASE"; then
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11943 $as_echo "$GTKDOC_REBASE" >&6; }
11944 else
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948
11949
11950   test -n "$GTKDOC_REBASE" && break
11951 done
11952 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11953
11954   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11955 set dummy gtkdoc-mkpdf; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   case $GTKDOC_MKPDF in
11962   [\\/]* | ?:[\\/]*)
11963   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11964   ;;
11965   *)
11966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969   IFS=$as_save_IFS
11970   test -z "$as_dir" && as_dir=.
11971     for ac_exec_ext in '' $ac_executable_extensions; do
11972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975     break 2
11976   fi
11977 done
11978   done
11979 IFS=$as_save_IFS
11980
11981   ;;
11982 esac
11983 fi
11984 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11985 if test -n "$GTKDOC_MKPDF"; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11987 $as_echo "$GTKDOC_MKPDF" >&6; }
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992
11993
11994
11995
11996 # Check whether --with-html-dir was given.
11997 if test "${with_html_dir+set}" = set; then :
11998   withval=$with_html_dir;
11999 else
12000   with_html_dir='${datadir}/gtk-doc/html'
12001 fi
12002
12003   HTML_DIR="$with_html_dir"
12004
12005
12006     # Check whether --enable-gtk-doc was given.
12007 if test "${enable_gtk_doc+set}" = set; then :
12008   enableval=$enable_gtk_doc;
12009 else
12010   enable_gtk_doc=no
12011 fi
12012
12013
12014   if test x$enable_gtk_doc = xyes; then
12015     if test -n "$PKG_CONFIG" && \
12016     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
12017   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
12018   ac_status=$?
12019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020   test $ac_status = 0; }; then
12021   :
12022 else
12023   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
12024 fi
12025   fi
12026
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12028 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12030 $as_echo "$enable_gtk_doc" >&6; }
12031
12032     # Check whether --enable-gtk-doc-html was given.
12033 if test "${enable_gtk_doc_html+set}" = set; then :
12034   enableval=$enable_gtk_doc_html;
12035 else
12036   enable_gtk_doc_html=yes
12037 fi
12038
12039     # Check whether --enable-gtk-doc-pdf was given.
12040 if test "${enable_gtk_doc_pdf+set}" = set; then :
12041   enableval=$enable_gtk_doc_pdf;
12042 else
12043   enable_gtk_doc_pdf=no
12044 fi
12045
12046
12047   if test -z "$GTKDOC_MKPDF"; then
12048     enable_gtk_doc_pdf=no
12049   fi
12050
12051
12052    if test x$enable_gtk_doc = xyes; then
12053   ENABLE_GTK_DOC_TRUE=
12054   ENABLE_GTK_DOC_FALSE='#'
12055 else
12056   ENABLE_GTK_DOC_TRUE='#'
12057   ENABLE_GTK_DOC_FALSE=
12058 fi
12059
12060    if test x$enable_gtk_doc_html = xyes; then
12061   GTK_DOC_BUILD_HTML_TRUE=
12062   GTK_DOC_BUILD_HTML_FALSE='#'
12063 else
12064   GTK_DOC_BUILD_HTML_TRUE='#'
12065   GTK_DOC_BUILD_HTML_FALSE=
12066 fi
12067
12068    if test x$enable_gtk_doc_pdf = xyes; then
12069   GTK_DOC_BUILD_PDF_TRUE=
12070   GTK_DOC_BUILD_PDF_FALSE='#'
12071 else
12072   GTK_DOC_BUILD_PDF_TRUE='#'
12073   GTK_DOC_BUILD_PDF_FALSE=
12074 fi
12075
12076    if test -n "$LIBTOOL"; then
12077   GTK_DOC_USE_LIBTOOL_TRUE=
12078   GTK_DOC_USE_LIBTOOL_FALSE='#'
12079 else
12080   GTK_DOC_USE_LIBTOOL_TRUE='#'
12081   GTK_DOC_USE_LIBTOOL_FALSE=
12082 fi
12083
12084    if test -n "$GTKDOC_REBASE"; then
12085   GTK_DOC_USE_REBASE_TRUE=
12086   GTK_DOC_USE_REBASE_FALSE='#'
12087 else
12088   GTK_DOC_USE_REBASE_TRUE='#'
12089   GTK_DOC_USE_REBASE_FALSE=
12090 fi
12091
12092
12093
12094 # Check whether --enable-largefile was given.
12095 if test "${enable_largefile+set}" = set; then :
12096   enableval=$enable_largefile;
12097 fi
12098
12099 if test "$enable_largefile" != no; then
12100
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12102 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12103 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   ac_cv_sys_largefile_CC=no
12107      if test "$GCC" != yes; then
12108        ac_save_CC=$CC
12109        while :; do
12110          # IRIX 6.2 and later do not support large files by default,
12111          # so use the C compiler's -n32 option if that helps.
12112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h.  */
12114 #include <sys/types.h>
12115  /* Check that off_t can represent 2**63 - 1 correctly.
12116     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12117     since some C++ compilers masquerading as C compilers
12118     incorrectly reject 9223372036854775807.  */
12119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12120   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12121                        && LARGE_OFF_T % 2147483647 == 1)
12122                       ? 1 : -1];
12123 int
12124 main ()
12125 {
12126
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131          if ac_fn_c_try_compile "$LINENO"; then :
12132   break
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext
12135          CC="$CC -n32"
12136          if ac_fn_c_try_compile "$LINENO"; then :
12137   ac_cv_sys_largefile_CC=' -n32'; break
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext
12140          break
12141        done
12142        CC=$ac_save_CC
12143        rm -f conftest.$ac_ext
12144     fi
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12147 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12148   if test "$ac_cv_sys_largefile_CC" != no; then
12149     CC=$CC$ac_cv_sys_largefile_CC
12150   fi
12151
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12153 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12154 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12155   $as_echo_n "(cached) " >&6
12156 else
12157   while :; do
12158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h.  */
12160 #include <sys/types.h>
12161  /* Check that off_t can represent 2**63 - 1 correctly.
12162     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12163     since some C++ compilers masquerading as C compilers
12164     incorrectly reject 9223372036854775807.  */
12165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12166   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12167                        && LARGE_OFF_T % 2147483647 == 1)
12168                       ? 1 : -1];
12169 int
12170 main ()
12171 {
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_compile "$LINENO"; then :
12178   ac_cv_sys_file_offset_bits=no; break
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183 #define _FILE_OFFSET_BITS 64
12184 #include <sys/types.h>
12185  /* Check that off_t can represent 2**63 - 1 correctly.
12186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12187     since some C++ compilers masquerading as C compilers
12188     incorrectly reject 9223372036854775807.  */
12189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12191                        && LARGE_OFF_T % 2147483647 == 1)
12192                       ? 1 : -1];
12193 int
12194 main ()
12195 {
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_compile "$LINENO"; then :
12202   ac_cv_sys_file_offset_bits=64; break
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205   ac_cv_sys_file_offset_bits=unknown
12206   break
12207 done
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12210 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12211 case $ac_cv_sys_file_offset_bits in #(
12212   no | unknown) ;;
12213   *)
12214 cat >>confdefs.h <<_ACEOF
12215 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12216 _ACEOF
12217 ;;
12218 esac
12219 rm -rf conftest*
12220   if test $ac_cv_sys_file_offset_bits = unknown; then
12221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12222 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12223 if test "${ac_cv_sys_large_files+set}" = set; then :
12224   $as_echo_n "(cached) " >&6
12225 else
12226   while :; do
12227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h.  */
12229 #include <sys/types.h>
12230  /* Check that off_t can represent 2**63 - 1 correctly.
12231     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12232     since some C++ compilers masquerading as C compilers
12233     incorrectly reject 9223372036854775807.  */
12234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12235   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12236                        && LARGE_OFF_T % 2147483647 == 1)
12237                       ? 1 : -1];
12238 int
12239 main ()
12240 {
12241
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_compile "$LINENO"; then :
12247   ac_cv_sys_large_files=no; break
12248 fi
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h.  */
12252 #define _LARGE_FILES 1
12253 #include <sys/types.h>
12254  /* Check that off_t can represent 2**63 - 1 correctly.
12255     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12256     since some C++ compilers masquerading as C compilers
12257     incorrectly reject 9223372036854775807.  */
12258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12259   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12260                        && LARGE_OFF_T % 2147483647 == 1)
12261                       ? 1 : -1];
12262 int
12263 main ()
12264 {
12265
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_c_try_compile "$LINENO"; then :
12271   ac_cv_sys_large_files=1; break
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274   ac_cv_sys_large_files=unknown
12275   break
12276 done
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12279 $as_echo "$ac_cv_sys_large_files" >&6; }
12280 case $ac_cv_sys_large_files in #(
12281   no | unknown) ;;
12282   *)
12283 cat >>confdefs.h <<_ACEOF
12284 #define _LARGE_FILES $ac_cv_sys_large_files
12285 _ACEOF
12286 ;;
12287 esac
12288 rm -rf conftest*
12289   fi
12290 fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305 CAIRO_VERSION_MAJOR=1
12306 CAIRO_VERSION_MINOR=12
12307 CAIRO_VERSION_MICRO=3
12308 CAIRO_VERSION_SONUM=2
12309 CAIRO_RELEASE_STATUS=git
12310 CAIRO_LIBTOOL_VERSION_INFO=11202:3:11200
12311
12312
12313
12314
12315
12316
12317
12318 # Extract the first word of "find", so it can be a program name with args.
12319 set dummy find; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_path_FIND+set}" = set; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   case $FIND in
12326   [\\/]* | ?:[\\/]*)
12327   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
12328   ;;
12329   *)
12330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12332 do
12333   IFS=$as_save_IFS
12334   test -z "$as_dir" && as_dir=.
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12337     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
12338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339     break 2
12340   fi
12341 done
12342   done
12343 IFS=$as_save_IFS
12344
12345   ;;
12346 esac
12347 fi
12348 FIND=$ac_cv_path_FIND
12349 if test -n "$FIND"; then
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
12351 $as_echo "$FIND" >&6; }
12352 else
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356
12357
12358 # Extract the first word of "xargs", so it can be a program name with args.
12359 set dummy xargs; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if test "${ac_cv_path_XARGS+set}" = set; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   case $XARGS in
12366   [\\/]* | ?:[\\/]*)
12367   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12368   ;;
12369   *)
12370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373   IFS=$as_save_IFS
12374   test -z "$as_dir" && as_dir=.
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379     break 2
12380   fi
12381 done
12382   done
12383 IFS=$as_save_IFS
12384
12385   ;;
12386 esac
12387 fi
12388 XARGS=$ac_cv_path_XARGS
12389 if test -n "$XARGS"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12391 $as_echo "$XARGS" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398
12399 ac_ext=c
12400 ac_cpp='$CPP $CPPFLAGS'
12401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404 if test -n "$ac_tool_prefix"; then
12405   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_prog_CC+set}" = set; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   if test -n "$CC"; then
12413   ac_cv_prog_CC="$CC" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12417 do
12418   IFS=$as_save_IFS
12419   test -z "$as_dir" && as_dir=.
12420     for ac_exec_ext in '' $ac_executable_extensions; do
12421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424     break 2
12425   fi
12426 done
12427   done
12428 IFS=$as_save_IFS
12429
12430 fi
12431 fi
12432 CC=$ac_cv_prog_CC
12433 if test -n "$CC"; then
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12435 $as_echo "$CC" >&6; }
12436 else
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441
12442 fi
12443 if test -z "$ac_cv_prog_CC"; then
12444   ac_ct_CC=$CC
12445   # Extract the first word of "gcc", so it can be a program name with args.
12446 set dummy gcc; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   if test -n "$ac_ct_CC"; then
12453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458   IFS=$as_save_IFS
12459   test -z "$as_dir" && as_dir=.
12460     for ac_exec_ext in '' $ac_executable_extensions; do
12461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462     ac_cv_prog_ac_ct_CC="gcc"
12463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464     break 2
12465   fi
12466 done
12467   done
12468 IFS=$as_save_IFS
12469
12470 fi
12471 fi
12472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12473 if test -n "$ac_ct_CC"; then
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12475 $as_echo "$ac_ct_CC" >&6; }
12476 else
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481   if test "x$ac_ct_CC" = x; then
12482     CC=""
12483   else
12484     case $cross_compiling:$ac_tool_warned in
12485 yes:)
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12488 ac_tool_warned=yes ;;
12489 esac
12490     CC=$ac_ct_CC
12491   fi
12492 else
12493   CC="$ac_cv_prog_CC"
12494 fi
12495
12496 if test -z "$CC"; then
12497           if test -n "$ac_tool_prefix"; then
12498     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12499 set dummy ${ac_tool_prefix}cc; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if test "${ac_cv_prog_CC+set}" = set; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505   if test -n "$CC"; then
12506   ac_cv_prog_CC="$CC" # Let the user override the test.
12507 else
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12510 do
12511   IFS=$as_save_IFS
12512   test -z "$as_dir" && as_dir=.
12513     for ac_exec_ext in '' $ac_executable_extensions; do
12514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515     ac_cv_prog_CC="${ac_tool_prefix}cc"
12516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517     break 2
12518   fi
12519 done
12520   done
12521 IFS=$as_save_IFS
12522
12523 fi
12524 fi
12525 CC=$ac_cv_prog_CC
12526 if test -n "$CC"; then
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12528 $as_echo "$CC" >&6; }
12529 else
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532 fi
12533
12534
12535   fi
12536 fi
12537 if test -z "$CC"; then
12538   # Extract the first word of "cc", so it can be a program name with args.
12539 set dummy cc; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if test "${ac_cv_prog_CC+set}" = set; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   if test -n "$CC"; then
12546   ac_cv_prog_CC="$CC" # Let the user override the test.
12547 else
12548   ac_prog_rejected=no
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12551 do
12552   IFS=$as_save_IFS
12553   test -z "$as_dir" && as_dir=.
12554     for ac_exec_ext in '' $ac_executable_extensions; do
12555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12556     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12557        ac_prog_rejected=yes
12558        continue
12559      fi
12560     ac_cv_prog_CC="cc"
12561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562     break 2
12563   fi
12564 done
12565   done
12566 IFS=$as_save_IFS
12567
12568 if test $ac_prog_rejected = yes; then
12569   # We found a bogon in the path, so make sure we never use it.
12570   set dummy $ac_cv_prog_CC
12571   shift
12572   if test $# != 0; then
12573     # We chose a different compiler from the bogus one.
12574     # However, it has the same basename, so the bogon will be chosen
12575     # first if we set CC to just the basename; use the full file name.
12576     shift
12577     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12578   fi
12579 fi
12580 fi
12581 fi
12582 CC=$ac_cv_prog_CC
12583 if test -n "$CC"; then
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12585 $as_echo "$CC" >&6; }
12586 else
12587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12589 fi
12590
12591
12592 fi
12593 if test -z "$CC"; then
12594   if test -n "$ac_tool_prefix"; then
12595   for ac_prog in cl.exe
12596   do
12597     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if test "${ac_cv_prog_CC+set}" = set; then :
12602   $as_echo_n "(cached) " >&6
12603 else
12604   if test -n "$CC"; then
12605   ac_cv_prog_CC="$CC" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610   IFS=$as_save_IFS
12611   test -z "$as_dir" && as_dir=.
12612     for ac_exec_ext in '' $ac_executable_extensions; do
12613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616     break 2
12617   fi
12618 done
12619   done
12620 IFS=$as_save_IFS
12621
12622 fi
12623 fi
12624 CC=$ac_cv_prog_CC
12625 if test -n "$CC"; then
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12627 $as_echo "$CC" >&6; }
12628 else
12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 fi
12632
12633
12634     test -n "$CC" && break
12635   done
12636 fi
12637 if test -z "$CC"; then
12638   ac_ct_CC=$CC
12639   for ac_prog in cl.exe
12640 do
12641   # Extract the first word of "$ac_prog", so it can be a program name with args.
12642 set dummy $ac_prog; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   if test -n "$ac_ct_CC"; then
12649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12653 do
12654   IFS=$as_save_IFS
12655   test -z "$as_dir" && as_dir=.
12656     for ac_exec_ext in '' $ac_executable_extensions; do
12657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658     ac_cv_prog_ac_ct_CC="$ac_prog"
12659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660     break 2
12661   fi
12662 done
12663   done
12664 IFS=$as_save_IFS
12665
12666 fi
12667 fi
12668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12669 if test -n "$ac_ct_CC"; then
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12671 $as_echo "$ac_ct_CC" >&6; }
12672 else
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677
12678   test -n "$ac_ct_CC" && break
12679 done
12680
12681   if test "x$ac_ct_CC" = x; then
12682     CC=""
12683   else
12684     case $cross_compiling:$ac_tool_warned in
12685 yes:)
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12688 ac_tool_warned=yes ;;
12689 esac
12690     CC=$ac_ct_CC
12691   fi
12692 fi
12693
12694 fi
12695
12696
12697 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12699 as_fn_error $? "no acceptable C compiler found in \$PATH
12700 See \`config.log' for more details" "$LINENO" 5 ; }
12701
12702 # Provide some information about the compiler.
12703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12704 set X $ac_compile
12705 ac_compiler=$2
12706 for ac_option in --version -v -V -qversion; do
12707   { { ac_try="$ac_compiler $ac_option >&5"
12708 case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12713 $as_echo "$ac_try_echo"; } >&5
12714   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12715   ac_status=$?
12716   if test -s conftest.err; then
12717     sed '10a\
12718 ... rest of stderr output deleted ...
12719          10q' conftest.err >conftest.er1
12720     cat conftest.er1 >&5
12721   fi
12722   rm -f conftest.er1 conftest.err
12723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724   test $ac_status = 0; }
12725 done
12726
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12729 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h.  */
12734
12735 int
12736 main ()
12737 {
12738 #ifndef __GNUC__
12739        choke me
12740 #endif
12741
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747   ac_compiler_gnu=yes
12748 else
12749   ac_compiler_gnu=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12753
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12757 if test $ac_compiler_gnu = yes; then
12758   GCC=yes
12759 else
12760   GCC=
12761 fi
12762 ac_test_CFLAGS=${CFLAGS+set}
12763 ac_save_CFLAGS=$CFLAGS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12766 if test "${ac_cv_prog_cc_g+set}" = set; then :
12767   $as_echo_n "(cached) " >&6
12768 else
12769   ac_save_c_werror_flag=$ac_c_werror_flag
12770    ac_c_werror_flag=yes
12771    ac_cv_prog_cc_g=no
12772    CFLAGS="-g"
12773    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h.  */
12775
12776 int
12777 main ()
12778 {
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_compile "$LINENO"; then :
12785   ac_cv_prog_cc_g=yes
12786 else
12787   CFLAGS=""
12788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h.  */
12790
12791 int
12792 main ()
12793 {
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_compile "$LINENO"; then :
12800
12801 else
12802   ac_c_werror_flag=$ac_save_c_werror_flag
12803          CFLAGS="-g"
12804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12806
12807 int
12808 main ()
12809 {
12810
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816   ac_cv_prog_cc_g=yes
12817 fi
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823    ac_c_werror_flag=$ac_save_c_werror_flag
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12826 $as_echo "$ac_cv_prog_cc_g" >&6; }
12827 if test "$ac_test_CFLAGS" = set; then
12828   CFLAGS=$ac_save_CFLAGS
12829 elif test $ac_cv_prog_cc_g = yes; then
12830   if test "$GCC" = yes; then
12831     CFLAGS="-g -O2"
12832   else
12833     CFLAGS="-g"
12834   fi
12835 else
12836   if test "$GCC" = yes; then
12837     CFLAGS="-O2"
12838   else
12839     CFLAGS=
12840   fi
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12844 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12845   $as_echo_n "(cached) " >&6
12846 else
12847   ac_cv_prog_cc_c89=no
12848 ac_save_CC=$CC
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12851 #include <stdarg.h>
12852 #include <stdio.h>
12853 #include <sys/types.h>
12854 #include <sys/stat.h>
12855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12856 struct buf { int x; };
12857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12858 static char *e (p, i)
12859      char **p;
12860      int i;
12861 {
12862   return p[i];
12863 }
12864 static char *f (char * (*g) (char **, int), char **p, ...)
12865 {
12866   char *s;
12867   va_list v;
12868   va_start (v,p);
12869   s = g (p, va_arg (v,int));
12870   va_end (v);
12871   return s;
12872 }
12873
12874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12875    function prototypes and stuff, but not '\xHH' hex character constants.
12876    These don't provoke an error unfortunately, instead are silently treated
12877    as 'x'.  The following induces an error, until -std is added to get
12878    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12879    array size at least.  It's necessary to write '\x00'==0 to get something
12880    that's true only with -std.  */
12881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12882
12883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12884    inside strings and character constants.  */
12885 #define FOO(x) 'x'
12886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12887
12888 int test (int i, double x);
12889 struct s1 {int (*f) (int a);};
12890 struct s2 {int (*f) (double a);};
12891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12892 int argc;
12893 char **argv;
12894 int
12895 main ()
12896 {
12897 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12903         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12904 do
12905   CC="$ac_save_CC $ac_arg"
12906   if ac_fn_c_try_compile "$LINENO"; then :
12907   ac_cv_prog_cc_c89=$ac_arg
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext
12910   test "x$ac_cv_prog_cc_c89" != "xno" && break
12911 done
12912 rm -f conftest.$ac_ext
12913 CC=$ac_save_CC
12914
12915 fi
12916 # AC_CACHE_VAL
12917 case "x$ac_cv_prog_cc_c89" in
12918   x)
12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12920 $as_echo "none needed" >&6; } ;;
12921   xno)
12922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12923 $as_echo "unsupported" >&6; } ;;
12924   *)
12925     CC="$CC $ac_cv_prog_cc_c89"
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12928 esac
12929 if test "x$ac_cv_prog_cc_c89" != xno; then :
12930
12931 fi
12932
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12945 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12946 # On Suns, sometimes $CPP names a directory.
12947 if test -n "$CPP" && test -d "$CPP"; then
12948   CPP=
12949 fi
12950 if test -z "$CPP"; then
12951   if test "${ac_cv_prog_CPP+set}" = set; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954       # Double quotes because CPP needs to be expanded
12955     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12956     do
12957       ac_preproc_ok=false
12958 for ac_c_preproc_warn_flag in '' yes
12959 do
12960   # Use a header file that comes with gcc, so configuring glibc
12961   # with a fresh cross-compiler works.
12962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12963   # <limits.h> exists even on freestanding compilers.
12964   # On the NeXT, cc -E runs the code through the compiler's parser,
12965   # not just through cpp. "Syntax error" is here to catch this case.
12966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h.  */
12968 #ifdef __STDC__
12969 # include <limits.h>
12970 #else
12971 # include <assert.h>
12972 #endif
12973                      Syntax error
12974 _ACEOF
12975 if ac_fn_c_try_cpp "$LINENO"; then :
12976
12977 else
12978   # Broken: fails on valid input.
12979 continue
12980 fi
12981 rm -f conftest.err conftest.i conftest.$ac_ext
12982
12983   # OK, works on sane cases.  Now check whether nonexistent headers
12984   # can be detected and how.
12985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h.  */
12987 #include <ac_nonexistent.h>
12988 _ACEOF
12989 if ac_fn_c_try_cpp "$LINENO"; then :
12990   # Broken: success on invalid input.
12991 continue
12992 else
12993   # Passes both tests.
12994 ac_preproc_ok=:
12995 break
12996 fi
12997 rm -f conftest.err conftest.i conftest.$ac_ext
12998
12999 done
13000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13001 rm -f conftest.i conftest.err conftest.$ac_ext
13002 if $ac_preproc_ok; then :
13003   break
13004 fi
13005
13006     done
13007     ac_cv_prog_CPP=$CPP
13008
13009 fi
13010   CPP=$ac_cv_prog_CPP
13011 else
13012   ac_cv_prog_CPP=$CPP
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13015 $as_echo "$CPP" >&6; }
13016 ac_preproc_ok=false
13017 for ac_c_preproc_warn_flag in '' yes
13018 do
13019   # Use a header file that comes with gcc, so configuring glibc
13020   # with a fresh cross-compiler works.
13021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022   # <limits.h> exists even on freestanding compilers.
13023   # On the NeXT, cc -E runs the code through the compiler's parser,
13024   # not just through cpp. "Syntax error" is here to catch this case.
13025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h.  */
13027 #ifdef __STDC__
13028 # include <limits.h>
13029 #else
13030 # include <assert.h>
13031 #endif
13032                      Syntax error
13033 _ACEOF
13034 if ac_fn_c_try_cpp "$LINENO"; then :
13035
13036 else
13037   # Broken: fails on valid input.
13038 continue
13039 fi
13040 rm -f conftest.err conftest.i conftest.$ac_ext
13041
13042   # OK, works on sane cases.  Now check whether nonexistent headers
13043   # can be detected and how.
13044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h.  */
13046 #include <ac_nonexistent.h>
13047 _ACEOF
13048 if ac_fn_c_try_cpp "$LINENO"; then :
13049   # Broken: success on invalid input.
13050 continue
13051 else
13052   # Passes both tests.
13053 ac_preproc_ok=:
13054 break
13055 fi
13056 rm -f conftest.err conftest.i conftest.$ac_ext
13057
13058 done
13059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13060 rm -f conftest.i conftest.err conftest.$ac_ext
13061 if $ac_preproc_ok; then :
13062
13063 else
13064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13066 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13067 See \`config.log' for more details" "$LINENO" 5 ; }
13068 fi
13069
13070 ac_ext=c
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075
13076 ac_ext=cpp
13077 ac_cpp='$CXXCPP $CPPFLAGS'
13078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13081 if test -z "$CXX"; then
13082   if test -n "$CCC"; then
13083     CXX=$CCC
13084   else
13085     if test -n "$ac_tool_prefix"; then
13086   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13087   do
13088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091 $as_echo_n "checking for $ac_word... " >&6; }
13092 if test "${ac_cv_prog_CXX+set}" = set; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095   if test -n "$CXX"; then
13096   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13097 else
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101   IFS=$as_save_IFS
13102   test -z "$as_dir" && as_dir=.
13103     for ac_exec_ext in '' $ac_executable_extensions; do
13104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13105     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107     break 2
13108   fi
13109 done
13110   done
13111 IFS=$as_save_IFS
13112
13113 fi
13114 fi
13115 CXX=$ac_cv_prog_CXX
13116 if test -n "$CXX"; then
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13118 $as_echo "$CXX" >&6; }
13119 else
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122 fi
13123
13124
13125     test -n "$CXX" && break
13126   done
13127 fi
13128 if test -z "$CXX"; then
13129   ac_ct_CXX=$CXX
13130   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13131 do
13132   # Extract the first word of "$ac_prog", so it can be a program name with args.
13133 set dummy $ac_prog; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   if test -n "$ac_ct_CXX"; then
13140   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13141 else
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145   IFS=$as_save_IFS
13146   test -z "$as_dir" && as_dir=.
13147     for ac_exec_ext in '' $ac_executable_extensions; do
13148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13149     ac_cv_prog_ac_ct_CXX="$ac_prog"
13150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151     break 2
13152   fi
13153 done
13154   done
13155 IFS=$as_save_IFS
13156
13157 fi
13158 fi
13159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13160 if test -n "$ac_ct_CXX"; then
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13162 $as_echo "$ac_ct_CXX" >&6; }
13163 else
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 fi
13167
13168
13169   test -n "$ac_ct_CXX" && break
13170 done
13171
13172   if test "x$ac_ct_CXX" = x; then
13173     CXX="g++"
13174   else
13175     case $cross_compiling:$ac_tool_warned in
13176 yes:)
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13179 ac_tool_warned=yes ;;
13180 esac
13181     CXX=$ac_ct_CXX
13182   fi
13183 fi
13184
13185   fi
13186 fi
13187 # Provide some information about the compiler.
13188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13189 set X $ac_compile
13190 ac_compiler=$2
13191 for ac_option in --version -v -V -qversion; do
13192   { { ac_try="$ac_compiler $ac_option >&5"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13198 $as_echo "$ac_try_echo"; } >&5
13199   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13200   ac_status=$?
13201   if test -s conftest.err; then
13202     sed '10a\
13203 ... rest of stderr output deleted ...
13204          10q' conftest.err >conftest.er1
13205     cat conftest.er1 >&5
13206   fi
13207   rm -f conftest.er1 conftest.err
13208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209   test $ac_status = 0; }
13210 done
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13213 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219
13220 int
13221 main ()
13222 {
13223 #ifndef __GNUC__
13224        choke me
13225 #endif
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_cxx_try_compile "$LINENO"; then :
13232   ac_compiler_gnu=yes
13233 else
13234   ac_compiler_gnu=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13238
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13241 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13242 if test $ac_compiler_gnu = yes; then
13243   GXX=yes
13244 else
13245   GXX=
13246 fi
13247 ac_test_CXXFLAGS=${CXXFLAGS+set}
13248 ac_save_CXXFLAGS=$CXXFLAGS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13250 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13251 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13255    ac_cxx_werror_flag=yes
13256    ac_cv_prog_cxx_g=no
13257    CXXFLAGS="-g"
13258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h.  */
13260
13261 int
13262 main ()
13263 {
13264
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_cxx_try_compile "$LINENO"; then :
13270   ac_cv_prog_cxx_g=yes
13271 else
13272   CXXFLAGS=""
13273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 int
13277 main ()
13278 {
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_cxx_try_compile "$LINENO"; then :
13285
13286 else
13287   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13288          CXXFLAGS="-g"
13289          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291
13292 int
13293 main ()
13294 {
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_cxx_try_compile "$LINENO"; then :
13301   ac_cv_prog_cxx_g=yes
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13309 fi
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13311 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13312 if test "$ac_test_CXXFLAGS" = set; then
13313   CXXFLAGS=$ac_save_CXXFLAGS
13314 elif test $ac_cv_prog_cxx_g = yes; then
13315   if test "$GXX" = yes; then
13316     CXXFLAGS="-g -O2"
13317   else
13318     CXXFLAGS="-g"
13319   fi
13320 else
13321   if test "$GXX" = yes; then
13322     CXXFLAGS="-O2"
13323   else
13324     CXXFLAGS=
13325   fi
13326 fi
13327 ac_ext=c
13328 ac_cpp='$CPP $CPPFLAGS'
13329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13332
13333 depcc="$CXX"  am_compiler_list=
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13336 $as_echo_n "checking dependency style of $depcc... " >&6; }
13337 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13341   # We make a subdir and do the tests there.  Otherwise we can end up
13342   # making bogus files that we don't know about and never remove.  For
13343   # instance it was reported that on HP-UX the gcc test will end up
13344   # making a dummy file named `D' -- because `-MD' means `put the output
13345   # in D'.
13346   mkdir conftest.dir
13347   # Copy depcomp to subdir because otherwise we won't find it if we're
13348   # using a relative directory.
13349   cp "$am_depcomp" conftest.dir
13350   cd conftest.dir
13351   # We will build objects and dependencies in a subdirectory because
13352   # it helps to detect inapplicable dependency modes.  For instance
13353   # both Tru64's cc and ICC support -MD to output dependencies as a
13354   # side effect of compilation, but ICC will put the dependencies in
13355   # the current directory while Tru64 will put them in the object
13356   # directory.
13357   mkdir sub
13358
13359   am_cv_CXX_dependencies_compiler_type=none
13360   if test "$am_compiler_list" = ""; then
13361      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13362   fi
13363   am__universal=false
13364   case " $depcc " in #(
13365      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13366      esac
13367
13368   for depmode in $am_compiler_list; do
13369     # Setup a source with many dependencies, because some compilers
13370     # like to wrap large dependency lists on column 80 (with \), and
13371     # we should not choose a depcomp mode which is confused by this.
13372     #
13373     # We need to recreate these files for each test, as the compiler may
13374     # overwrite some of them when testing with obscure command lines.
13375     # This happens at least with the AIX C compiler.
13376     : > sub/conftest.c
13377     for i in 1 2 3 4 5 6; do
13378       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13379       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13380       # Solaris 8's {/usr,}/bin/sh.
13381       touch sub/conftst$i.h
13382     done
13383     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13384
13385     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13386     # mode.  It turns out that the SunPro C++ compiler does not properly
13387     # handle `-M -o', and we need to detect this.  Also, some Intel
13388     # versions had trouble with output in subdirs
13389     am__obj=sub/conftest.${OBJEXT-o}
13390     am__minus_obj="-o $am__obj"
13391     case $depmode in
13392     gcc)
13393       # This depmode causes a compiler race in universal mode.
13394       test "$am__universal" = false || continue
13395       ;;
13396     nosideeffect)
13397       # after this tag, mechanisms are not by side-effect, so they'll
13398       # only be used when explicitly requested
13399       if test "x$enable_dependency_tracking" = xyes; then
13400         continue
13401       else
13402         break
13403       fi
13404       ;;
13405     msvisualcpp | msvcmsys)
13406       # This compiler won't grok `-c -o', but also, the minuso test has
13407       # not run yet.  These depmodes are late enough in the game, and
13408       # so weak that their functioning should not be impacted.
13409       am__obj=conftest.${OBJEXT-o}
13410       am__minus_obj=
13411       ;;
13412     none) break ;;
13413     esac
13414     if depmode=$depmode \
13415        source=sub/conftest.c object=$am__obj \
13416        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13417        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13418          >/dev/null 2>conftest.err &&
13419        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13420        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13421        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13422        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13423       # icc doesn't choke on unknown options, it will just issue warnings
13424       # or remarks (even with -Werror).  So we grep stderr for any message
13425       # that says an option was ignored or not supported.
13426       # When given -MP, icc 7.0 and 7.1 complain thusly:
13427       #   icc: Command line warning: ignoring option '-M'; no argument required
13428       # The diagnosis changed in icc 8.0:
13429       #   icc: Command line remark: option '-MP' not supported
13430       if (grep 'ignoring option' conftest.err ||
13431           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13432         am_cv_CXX_dependencies_compiler_type=$depmode
13433         break
13434       fi
13435     fi
13436   done
13437
13438   cd ..
13439   rm -rf conftest.dir
13440 else
13441   am_cv_CXX_dependencies_compiler_type=none
13442 fi
13443
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13446 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13447 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13448
13449  if
13450   test "x$enable_dependency_tracking" != xno \
13451   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13452   am__fastdepCXX_TRUE=
13453   am__fastdepCXX_FALSE='#'
13454 else
13455   am__fastdepCXX_TRUE='#'
13456   am__fastdepCXX_FALSE=
13457 fi
13458
13459
13460
13461 ac_ext=cpp
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466 if test -z "$CXX"; then
13467   if test -n "$CCC"; then
13468     CXX=$CCC
13469   else
13470     if test -n "$ac_tool_prefix"; then
13471   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13472   do
13473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_prog_CXX+set}" = set; then :
13478   $as_echo_n "(cached) " >&6
13479 else
13480   if test -n "$CXX"; then
13481   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13485 do
13486   IFS=$as_save_IFS
13487   test -z "$as_dir" && as_dir=.
13488     for ac_exec_ext in '' $ac_executable_extensions; do
13489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13490     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492     break 2
13493   fi
13494 done
13495   done
13496 IFS=$as_save_IFS
13497
13498 fi
13499 fi
13500 CXX=$ac_cv_prog_CXX
13501 if test -n "$CXX"; then
13502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13503 $as_echo "$CXX" >&6; }
13504 else
13505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508
13509
13510     test -n "$CXX" && break
13511   done
13512 fi
13513 if test -z "$CXX"; then
13514   ac_ct_CXX=$CXX
13515   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13516 do
13517   # Extract the first word of "$ac_prog", so it can be a program name with args.
13518 set dummy $ac_prog; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   if test -n "$ac_ct_CXX"; then
13525   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530   IFS=$as_save_IFS
13531   test -z "$as_dir" && as_dir=.
13532     for ac_exec_ext in '' $ac_executable_extensions; do
13533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534     ac_cv_prog_ac_ct_CXX="$ac_prog"
13535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536     break 2
13537   fi
13538 done
13539   done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13545 if test -n "$ac_ct_CXX"; then
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13547 $as_echo "$ac_ct_CXX" >&6; }
13548 else
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552
13553
13554   test -n "$ac_ct_CXX" && break
13555 done
13556
13557   if test "x$ac_ct_CXX" = x; then
13558     CXX="g++"
13559   else
13560     case $cross_compiling:$ac_tool_warned in
13561 yes:)
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13564 ac_tool_warned=yes ;;
13565 esac
13566     CXX=$ac_ct_CXX
13567   fi
13568 fi
13569
13570   fi
13571 fi
13572 # Provide some information about the compiler.
13573 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13574 set X $ac_compile
13575 ac_compiler=$2
13576 for ac_option in --version -v -V -qversion; do
13577   { { ac_try="$ac_compiler $ac_option >&5"
13578 case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13583 $as_echo "$ac_try_echo"; } >&5
13584   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13585   ac_status=$?
13586   if test -s conftest.err; then
13587     sed '10a\
13588 ... rest of stderr output deleted ...
13589          10q' conftest.err >conftest.er1
13590     cat conftest.er1 >&5
13591   fi
13592   rm -f conftest.er1 conftest.err
13593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13594   test $ac_status = 0; }
13595 done
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13598 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h.  */
13604
13605 int
13606 main ()
13607 {
13608 #ifndef __GNUC__
13609        choke me
13610 #endif
13611
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_cxx_try_compile "$LINENO"; then :
13617   ac_compiler_gnu=yes
13618 else
13619   ac_compiler_gnu=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13623
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13626 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13627 if test $ac_compiler_gnu = yes; then
13628   GXX=yes
13629 else
13630   GXX=
13631 fi
13632 ac_test_CXXFLAGS=${CXXFLAGS+set}
13633 ac_save_CXXFLAGS=$CXXFLAGS
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13635 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13636 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13640    ac_cxx_werror_flag=yes
13641    ac_cv_prog_cxx_g=no
13642    CXXFLAGS="-g"
13643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645
13646 int
13647 main ()
13648 {
13649
13650   ;
13651   return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_cxx_try_compile "$LINENO"; then :
13655   ac_cv_prog_cxx_g=yes
13656 else
13657   CXXFLAGS=""
13658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660
13661 int
13662 main ()
13663 {
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 if ac_fn_cxx_try_compile "$LINENO"; then :
13670
13671 else
13672   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13673          CXXFLAGS="-g"
13674          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h.  */
13676
13677 int
13678 main ()
13679 {
13680
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_cxx_try_compile "$LINENO"; then :
13686   ac_cv_prog_cxx_g=yes
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13696 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13697 if test "$ac_test_CXXFLAGS" = set; then
13698   CXXFLAGS=$ac_save_CXXFLAGS
13699 elif test $ac_cv_prog_cxx_g = yes; then
13700   if test "$GXX" = yes; then
13701     CXXFLAGS="-g -O2"
13702   else
13703     CXXFLAGS="-g"
13704   fi
13705 else
13706   if test "$GXX" = yes; then
13707     CXXFLAGS="-O2"
13708   else
13709     CXXFLAGS=
13710   fi
13711 fi
13712 ac_ext=c
13713 ac_cpp='$CPP $CPPFLAGS'
13714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718 depcc="$CXX"  am_compiler_list=
13719
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13721 $as_echo_n "checking dependency style of $depcc... " >&6; }
13722 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13723   $as_echo_n "(cached) " >&6
13724 else
13725   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13726   # We make a subdir and do the tests there.  Otherwise we can end up
13727   # making bogus files that we don't know about and never remove.  For
13728   # instance it was reported that on HP-UX the gcc test will end up
13729   # making a dummy file named `D' -- because `-MD' means `put the output
13730   # in D'.
13731   mkdir conftest.dir
13732   # Copy depcomp to subdir because otherwise we won't find it if we're
13733   # using a relative directory.
13734   cp "$am_depcomp" conftest.dir
13735   cd conftest.dir
13736   # We will build objects and dependencies in a subdirectory because
13737   # it helps to detect inapplicable dependency modes.  For instance
13738   # both Tru64's cc and ICC support -MD to output dependencies as a
13739   # side effect of compilation, but ICC will put the dependencies in
13740   # the current directory while Tru64 will put them in the object
13741   # directory.
13742   mkdir sub
13743
13744   am_cv_CXX_dependencies_compiler_type=none
13745   if test "$am_compiler_list" = ""; then
13746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13747   fi
13748   am__universal=false
13749   case " $depcc " in #(
13750      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13751      esac
13752
13753   for depmode in $am_compiler_list; do
13754     # Setup a source with many dependencies, because some compilers
13755     # like to wrap large dependency lists on column 80 (with \), and
13756     # we should not choose a depcomp mode which is confused by this.
13757     #
13758     # We need to recreate these files for each test, as the compiler may
13759     # overwrite some of them when testing with obscure command lines.
13760     # This happens at least with the AIX C compiler.
13761     : > sub/conftest.c
13762     for i in 1 2 3 4 5 6; do
13763       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13764       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13765       # Solaris 8's {/usr,}/bin/sh.
13766       touch sub/conftst$i.h
13767     done
13768     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13769
13770     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13771     # mode.  It turns out that the SunPro C++ compiler does not properly
13772     # handle `-M -o', and we need to detect this.  Also, some Intel
13773     # versions had trouble with output in subdirs
13774     am__obj=sub/conftest.${OBJEXT-o}
13775     am__minus_obj="-o $am__obj"
13776     case $depmode in
13777     gcc)
13778       # This depmode causes a compiler race in universal mode.
13779       test "$am__universal" = false || continue
13780       ;;
13781     nosideeffect)
13782       # after this tag, mechanisms are not by side-effect, so they'll
13783       # only be used when explicitly requested
13784       if test "x$enable_dependency_tracking" = xyes; then
13785         continue
13786       else
13787         break
13788       fi
13789       ;;
13790     msvisualcpp | msvcmsys)
13791       # This compiler won't grok `-c -o', but also, the minuso test has
13792       # not run yet.  These depmodes are late enough in the game, and
13793       # so weak that their functioning should not be impacted.
13794       am__obj=conftest.${OBJEXT-o}
13795       am__minus_obj=
13796       ;;
13797     none) break ;;
13798     esac
13799     if depmode=$depmode \
13800        source=sub/conftest.c object=$am__obj \
13801        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13802        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13803          >/dev/null 2>conftest.err &&
13804        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13805        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13806        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13807        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13808       # icc doesn't choke on unknown options, it will just issue warnings
13809       # or remarks (even with -Werror).  So we grep stderr for any message
13810       # that says an option was ignored or not supported.
13811       # When given -MP, icc 7.0 and 7.1 complain thusly:
13812       #   icc: Command line warning: ignoring option '-M'; no argument required
13813       # The diagnosis changed in icc 8.0:
13814       #   icc: Command line remark: option '-MP' not supported
13815       if (grep 'ignoring option' conftest.err ||
13816           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13817         am_cv_CXX_dependencies_compiler_type=$depmode
13818         break
13819       fi
13820     fi
13821   done
13822
13823   cd ..
13824   rm -rf conftest.dir
13825 else
13826   am_cv_CXX_dependencies_compiler_type=none
13827 fi
13828
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13831 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13832 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13833
13834  if
13835   test "x$enable_dependency_tracking" != xno \
13836   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13837   am__fastdepCXX_TRUE=
13838   am__fastdepCXX_FALSE='#'
13839 else
13840   am__fastdepCXX_TRUE='#'
13841   am__fastdepCXX_FALSE=
13842 fi
13843
13844
13845 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13846     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13847     (test "X$CXX" != "Xg++"))) ; then
13848   ac_ext=cpp
13849 ac_cpp='$CXXCPP $CPPFLAGS'
13850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13854 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13855 if test -z "$CXXCPP"; then
13856   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859       # Double quotes because CXXCPP needs to be expanded
13860     for CXXCPP in "$CXX -E" "/lib/cpp"
13861     do
13862       ac_preproc_ok=false
13863 for ac_cxx_preproc_warn_flag in '' yes
13864 do
13865   # Use a header file that comes with gcc, so configuring glibc
13866   # with a fresh cross-compiler works.
13867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13868   # <limits.h> exists even on freestanding compilers.
13869   # On the NeXT, cc -E runs the code through the compiler's parser,
13870   # not just through cpp. "Syntax error" is here to catch this case.
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #ifdef __STDC__
13874 # include <limits.h>
13875 #else
13876 # include <assert.h>
13877 #endif
13878                      Syntax error
13879 _ACEOF
13880 if ac_fn_cxx_try_cpp "$LINENO"; then :
13881
13882 else
13883   # Broken: fails on valid input.
13884 continue
13885 fi
13886 rm -f conftest.err conftest.i conftest.$ac_ext
13887
13888   # OK, works on sane cases.  Now check whether nonexistent headers
13889   # can be detected and how.
13890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h.  */
13892 #include <ac_nonexistent.h>
13893 _ACEOF
13894 if ac_fn_cxx_try_cpp "$LINENO"; then :
13895   # Broken: success on invalid input.
13896 continue
13897 else
13898   # Passes both tests.
13899 ac_preproc_ok=:
13900 break
13901 fi
13902 rm -f conftest.err conftest.i conftest.$ac_ext
13903
13904 done
13905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13906 rm -f conftest.i conftest.err conftest.$ac_ext
13907 if $ac_preproc_ok; then :
13908   break
13909 fi
13910
13911     done
13912     ac_cv_prog_CXXCPP=$CXXCPP
13913
13914 fi
13915   CXXCPP=$ac_cv_prog_CXXCPP
13916 else
13917   ac_cv_prog_CXXCPP=$CXXCPP
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13920 $as_echo "$CXXCPP" >&6; }
13921 ac_preproc_ok=false
13922 for ac_cxx_preproc_warn_flag in '' yes
13923 do
13924   # Use a header file that comes with gcc, so configuring glibc
13925   # with a fresh cross-compiler works.
13926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927   # <limits.h> exists even on freestanding compilers.
13928   # On the NeXT, cc -E runs the code through the compiler's parser,
13929   # not just through cpp. "Syntax error" is here to catch this case.
13930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h.  */
13932 #ifdef __STDC__
13933 # include <limits.h>
13934 #else
13935 # include <assert.h>
13936 #endif
13937                      Syntax error
13938 _ACEOF
13939 if ac_fn_cxx_try_cpp "$LINENO"; then :
13940
13941 else
13942   # Broken: fails on valid input.
13943 continue
13944 fi
13945 rm -f conftest.err conftest.i conftest.$ac_ext
13946
13947   # OK, works on sane cases.  Now check whether nonexistent headers
13948   # can be detected and how.
13949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951 #include <ac_nonexistent.h>
13952 _ACEOF
13953 if ac_fn_cxx_try_cpp "$LINENO"; then :
13954   # Broken: success on invalid input.
13955 continue
13956 else
13957   # Passes both tests.
13958 ac_preproc_ok=:
13959 break
13960 fi
13961 rm -f conftest.err conftest.i conftest.$ac_ext
13962
13963 done
13964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13965 rm -f conftest.i conftest.err conftest.$ac_ext
13966 if $ac_preproc_ok; then :
13967
13968 else
13969   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13971 _lt_caught_CXX_error=yes; }
13972 fi
13973
13974 ac_ext=c
13975 ac_cpp='$CPP $CPPFLAGS'
13976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13979
13980 else
13981   _lt_caught_CXX_error=yes
13982 fi
13983
13984
13985
13986
13987 ac_ext=cpp
13988 ac_cpp='$CXXCPP $CPPFLAGS'
13989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13992
13993 archive_cmds_need_lc_CXX=no
13994 allow_undefined_flag_CXX=
13995 always_export_symbols_CXX=no
13996 archive_expsym_cmds_CXX=
13997 compiler_needs_object_CXX=no
13998 export_dynamic_flag_spec_CXX=
13999 hardcode_direct_CXX=no
14000 hardcode_direct_absolute_CXX=no
14001 hardcode_libdir_flag_spec_CXX=
14002 hardcode_libdir_flag_spec_ld_CXX=
14003 hardcode_libdir_separator_CXX=
14004 hardcode_minus_L_CXX=no
14005 hardcode_shlibpath_var_CXX=unsupported
14006 hardcode_automatic_CXX=no
14007 inherit_rpath_CXX=no
14008 module_cmds_CXX=
14009 module_expsym_cmds_CXX=
14010 link_all_deplibs_CXX=unknown
14011 old_archive_cmds_CXX=$old_archive_cmds
14012 no_undefined_flag_CXX=
14013 whole_archive_flag_spec_CXX=
14014 enable_shared_with_static_runtimes_CXX=no
14015
14016 # Source file extension for C++ test sources.
14017 ac_ext=cpp
14018
14019 # Object file extension for compiled C++ test sources.
14020 objext=o
14021 objext_CXX=$objext
14022
14023 # No sense in running all these tests if we already determined that
14024 # the CXX compiler isn't working.  Some variables (like enable_shared)
14025 # are currently assumed to apply to all compilers on this platform,
14026 # and will be corrupted by setting them based on a non-working compiler.
14027 if test "$_lt_caught_CXX_error" != yes; then
14028   # Code to be used in simple compile tests
14029   lt_simple_compile_test_code="int some_variable = 0;"
14030
14031   # Code to be used in simple link tests
14032   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14033
14034   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14035
14036
14037
14038
14039
14040
14041 # If no C compiler was specified, use CC.
14042 LTCC=${LTCC-"$CC"}
14043
14044 # If no C compiler flags were specified, use CFLAGS.
14045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14046
14047 # Allow CC to be a program name with arguments.
14048 compiler=$CC
14049
14050
14051   # save warnings/boilerplate of simple test code
14052   ac_outfile=conftest.$ac_objext
14053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14055 _lt_compiler_boilerplate=`cat conftest.err`
14056 $RM conftest*
14057
14058   ac_outfile=conftest.$ac_objext
14059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14061 _lt_linker_boilerplate=`cat conftest.err`
14062 $RM -r conftest*
14063
14064
14065   # Allow CC to be a program name with arguments.
14066   lt_save_CC=$CC
14067   lt_save_LD=$LD
14068   lt_save_GCC=$GCC
14069   GCC=$GXX
14070   lt_save_with_gnu_ld=$with_gnu_ld
14071   lt_save_path_LD=$lt_cv_path_LD
14072   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14073     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14074   else
14075     $as_unset lt_cv_prog_gnu_ld
14076   fi
14077   if test -n "${lt_cv_path_LDCXX+set}"; then
14078     lt_cv_path_LD=$lt_cv_path_LDCXX
14079   else
14080     $as_unset lt_cv_path_LD
14081   fi
14082   test -z "${LDCXX+set}" || LD=$LDCXX
14083   CC=${CXX-"c++"}
14084   compiler=$CC
14085   compiler_CXX=$CC
14086   for cc_temp in $compiler""; do
14087   case $cc_temp in
14088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14090     \-*) ;;
14091     *) break;;
14092   esac
14093 done
14094 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095
14096
14097   if test -n "$compiler"; then
14098     # We don't want -fno-exception when compiling C++ code, so set the
14099     # no_builtin_flag separately
14100     if test "$GXX" = yes; then
14101       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14102     else
14103       lt_prog_compiler_no_builtin_flag_CXX=
14104     fi
14105
14106     if test "$GXX" = yes; then
14107       # Set up default GNU C++ configuration
14108
14109
14110
14111 # Check whether --with-gnu-ld was given.
14112 if test "${with_gnu_ld+set}" = set; then :
14113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14114 else
14115   with_gnu_ld=no
14116 fi
14117
14118 ac_prog=ld
14119 if test "$GCC" = yes; then
14120   # Check if gcc -print-prog-name=ld gives a path.
14121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14122 $as_echo_n "checking for ld used by $CC... " >&6; }
14123   case $host in
14124   *-*-mingw*)
14125     # gcc leaves a trailing carriage return which upsets mingw
14126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14127   *)
14128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14129   esac
14130   case $ac_prog in
14131     # Accept absolute paths.
14132     [\\/]* | ?:[\\/]*)
14133       re_direlt='/[^/][^/]*/\.\./'
14134       # Canonicalize the pathname of ld
14135       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14136       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14137         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14138       done
14139       test -z "$LD" && LD="$ac_prog"
14140       ;;
14141   "")
14142     # If it fails, then pretend we aren't using GCC.
14143     ac_prog=ld
14144     ;;
14145   *)
14146     # If it is relative, then search for the first ld in PATH.
14147     with_gnu_ld=unknown
14148     ;;
14149   esac
14150 elif test "$with_gnu_ld" = yes; then
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14152 $as_echo_n "checking for GNU ld... " >&6; }
14153 else
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14155 $as_echo_n "checking for non-GNU ld... " >&6; }
14156 fi
14157 if test "${lt_cv_path_LD+set}" = set; then :
14158   $as_echo_n "(cached) " >&6
14159 else
14160   if test -z "$LD"; then
14161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14162   for ac_dir in $PATH; do
14163     IFS="$lt_save_ifs"
14164     test -z "$ac_dir" && ac_dir=.
14165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14166       lt_cv_path_LD="$ac_dir/$ac_prog"
14167       # Check to see if the program is GNU ld.  I'd rather use --version,
14168       # but apparently some variants of GNU ld only accept -v.
14169       # Break only if it was the GNU/non-GNU ld that we prefer.
14170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14171       *GNU* | *'with BFD'*)
14172         test "$with_gnu_ld" != no && break
14173         ;;
14174       *)
14175         test "$with_gnu_ld" != yes && break
14176         ;;
14177       esac
14178     fi
14179   done
14180   IFS="$lt_save_ifs"
14181 else
14182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14183 fi
14184 fi
14185
14186 LD="$lt_cv_path_LD"
14187 if test -n "$LD"; then
14188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14189 $as_echo "$LD" >&6; }
14190 else
14191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14193 fi
14194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14197 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14198   $as_echo_n "(cached) " >&6
14199 else
14200   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14201 case `$LD -v 2>&1 </dev/null` in
14202 *GNU* | *'with BFD'*)
14203   lt_cv_prog_gnu_ld=yes
14204   ;;
14205 *)
14206   lt_cv_prog_gnu_ld=no
14207   ;;
14208 esac
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14212 with_gnu_ld=$lt_cv_prog_gnu_ld
14213
14214
14215
14216
14217
14218
14219
14220       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14221       # archiving commands below assume that GNU ld is being used.
14222       if test "$with_gnu_ld" = yes; then
14223         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14225
14226         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14227         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228
14229         # If archive_cmds runs LD, not CC, wlarc should be empty
14230         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14231         #     investigate it a little bit more. (MM)
14232         wlarc='${wl}'
14233
14234         # ancient GNU ld didn't support --whole-archive et. al.
14235         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14236           $GREP 'no-whole-archive' > /dev/null; then
14237           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14238         else
14239           whole_archive_flag_spec_CXX=
14240         fi
14241       else
14242         with_gnu_ld=no
14243         wlarc=
14244
14245         # A generic and very simple default shared library creation
14246         # command for GNU C++ for the case where it uses the native
14247         # linker, instead of GNU ld.  If possible, this setting should
14248         # overridden to take advantage of the native linker features on
14249         # the platform it is being used on.
14250         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14251       fi
14252
14253       # Commands to make compiler produce verbose output that lists
14254       # what "hidden" libraries, object files and flags are used when
14255       # linking a shared library.
14256       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14257
14258     else
14259       GXX=no
14260       with_gnu_ld=no
14261       wlarc=
14262     fi
14263
14264     # PORTME: fill in a description of your system's C++ link characteristics
14265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14267     ld_shlibs_CXX=yes
14268     case $host_os in
14269       aix3*)
14270         # FIXME: insert proper C++ library support
14271         ld_shlibs_CXX=no
14272         ;;
14273       aix[4-9]*)
14274         if test "$host_cpu" = ia64; then
14275           # On IA64, the linker does run time linking by default, so we don't
14276           # have to do anything special.
14277           aix_use_runtimelinking=no
14278           exp_sym_flag='-Bexport'
14279           no_entry_flag=""
14280         else
14281           aix_use_runtimelinking=no
14282
14283           # Test if we are trying to use run time linking or normal
14284           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14285           # need to do runtime linking.
14286           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14287             for ld_flag in $LDFLAGS; do
14288               case $ld_flag in
14289               *-brtl*)
14290                 aix_use_runtimelinking=yes
14291                 break
14292                 ;;
14293               esac
14294             done
14295             ;;
14296           esac
14297
14298           exp_sym_flag='-bexport'
14299           no_entry_flag='-bnoentry'
14300         fi
14301
14302         # When large executables or shared objects are built, AIX ld can
14303         # have problems creating the table of contents.  If linking a library
14304         # or program results in "error TOC overflow" add -mminimal-toc to
14305         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14306         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14307
14308         archive_cmds_CXX=''
14309         hardcode_direct_CXX=yes
14310         hardcode_direct_absolute_CXX=yes
14311         hardcode_libdir_separator_CXX=':'
14312         link_all_deplibs_CXX=yes
14313         file_list_spec_CXX='${wl}-f,'
14314
14315         if test "$GXX" = yes; then
14316           case $host_os in aix4.[012]|aix4.[012].*)
14317           # We only want to do this on AIX 4.2 and lower, the check
14318           # below for broken collect2 doesn't work under 4.3+
14319           collect2name=`${CC} -print-prog-name=collect2`
14320           if test -f "$collect2name" &&
14321              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14322           then
14323             # We have reworked collect2
14324             :
14325           else
14326             # We have old collect2
14327             hardcode_direct_CXX=unsupported
14328             # It fails to find uninstalled libraries when the uninstalled
14329             # path is not listed in the libpath.  Setting hardcode_minus_L
14330             # to unsupported forces relinking
14331             hardcode_minus_L_CXX=yes
14332             hardcode_libdir_flag_spec_CXX='-L$libdir'
14333             hardcode_libdir_separator_CXX=
14334           fi
14335           esac
14336           shared_flag='-shared'
14337           if test "$aix_use_runtimelinking" = yes; then
14338             shared_flag="$shared_flag "'${wl}-G'
14339           fi
14340         else
14341           # not using gcc
14342           if test "$host_cpu" = ia64; then
14343           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14344           # chokes on -Wl,-G. The following line is correct:
14345           shared_flag='-G'
14346           else
14347             if test "$aix_use_runtimelinking" = yes; then
14348               shared_flag='${wl}-G'
14349             else
14350               shared_flag='${wl}-bM:SRE'
14351             fi
14352           fi
14353         fi
14354
14355         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14356         # It seems that -bexpall does not export symbols beginning with
14357         # underscore (_), so it is better to generate a list of symbols to
14358         # export.
14359         always_export_symbols_CXX=yes
14360         if test "$aix_use_runtimelinking" = yes; then
14361           # Warning - without using the other runtime loading flags (-brtl),
14362           # -berok will link without error, but may produce a broken library.
14363           allow_undefined_flag_CXX='-berok'
14364           # Determine the default libpath from the value encoded in an empty
14365           # executable.
14366           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h.  */
14368
14369 int
14370 main ()
14371 {
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_cxx_try_link "$LINENO"; then :
14378
14379 lt_aix_libpath_sed='
14380     /Import File Strings/,/^$/ {
14381         /^0/ {
14382             s/^0  *\(.*\)$/\1/
14383             p
14384         }
14385     }'
14386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14387 # Check for a 64-bit object if we didn't find anything.
14388 if test -z "$aix_libpath"; then
14389   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14390 fi
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext \
14393     conftest$ac_exeext conftest.$ac_ext
14394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14395
14396           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14397
14398           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14399         else
14400           if test "$host_cpu" = ia64; then
14401             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14402             allow_undefined_flag_CXX="-z nodefs"
14403             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"
14404           else
14405             # Determine the default libpath from the value encoded in an
14406             # empty executable.
14407             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409
14410 int
14411 main ()
14412 {
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_cxx_try_link "$LINENO"; then :
14419
14420 lt_aix_libpath_sed='
14421     /Import File Strings/,/^$/ {
14422         /^0/ {
14423             s/^0  *\(.*\)$/\1/
14424             p
14425         }
14426     }'
14427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14428 # Check for a 64-bit object if we didn't find anything.
14429 if test -z "$aix_libpath"; then
14430   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14431 fi
14432 fi
14433 rm -f core conftest.err conftest.$ac_objext \
14434     conftest$ac_exeext conftest.$ac_ext
14435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14436
14437             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14438             # Warning - without using the other run time loading flags,
14439             # -berok will link without error, but may produce a broken library.
14440             no_undefined_flag_CXX=' ${wl}-bernotok'
14441             allow_undefined_flag_CXX=' ${wl}-berok'
14442             # Exported symbols can be pulled into shared objects from archives
14443             whole_archive_flag_spec_CXX='$convenience'
14444             archive_cmds_need_lc_CXX=yes
14445             # This is similar to how AIX traditionally builds its shared
14446             # libraries.
14447             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'
14448           fi
14449         fi
14450         ;;
14451
14452       beos*)
14453         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14454           allow_undefined_flag_CXX=unsupported
14455           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14456           # support --undefined.  This deserves some investigation.  FIXME
14457           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14458         else
14459           ld_shlibs_CXX=no
14460         fi
14461         ;;
14462
14463       chorus*)
14464         case $cc_basename in
14465           *)
14466           # FIXME: insert proper C++ library support
14467           ld_shlibs_CXX=no
14468           ;;
14469         esac
14470         ;;
14471
14472       cygwin* | mingw* | pw32* | cegcc*)
14473         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14474         # as there is no search path for DLLs.
14475         hardcode_libdir_flag_spec_CXX='-L$libdir'
14476         allow_undefined_flag_CXX=unsupported
14477         always_export_symbols_CXX=no
14478         enable_shared_with_static_runtimes_CXX=yes
14479
14480         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14481           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'
14482           # If the export-symbols file already is a .def file (1st line
14483           # is EXPORTS), use it as is; otherwise, prepend...
14484           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14485             cp $export_symbols $output_objdir/$soname.def;
14486           else
14487             echo EXPORTS > $output_objdir/$soname.def;
14488             cat $export_symbols >> $output_objdir/$soname.def;
14489           fi~
14490           $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'
14491         else
14492           ld_shlibs_CXX=no
14493         fi
14494         ;;
14495       darwin* | rhapsody*)
14496
14497
14498   archive_cmds_need_lc_CXX=no
14499   hardcode_direct_CXX=no
14500   hardcode_automatic_CXX=yes
14501   hardcode_shlibpath_var_CXX=unsupported
14502   whole_archive_flag_spec_CXX=''
14503   link_all_deplibs_CXX=yes
14504   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14505   case $cc_basename in
14506      ifort*) _lt_dar_can_shared=yes ;;
14507      *) _lt_dar_can_shared=$GCC ;;
14508   esac
14509   if test "$_lt_dar_can_shared" = "yes"; then
14510     output_verbose_link_cmd=echo
14511     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}"
14512     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14513     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}"
14514     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}"
14515        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14516       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}"
14517       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}"
14518     fi
14519
14520   else
14521   ld_shlibs_CXX=no
14522   fi
14523
14524         ;;
14525
14526       dgux*)
14527         case $cc_basename in
14528           ec++*)
14529             # FIXME: insert proper C++ library support
14530             ld_shlibs_CXX=no
14531             ;;
14532           ghcx*)
14533             # Green Hills C++ Compiler
14534             # FIXME: insert proper C++ library support
14535             ld_shlibs_CXX=no
14536             ;;
14537           *)
14538             # FIXME: insert proper C++ library support
14539             ld_shlibs_CXX=no
14540             ;;
14541         esac
14542         ;;
14543
14544       freebsd[12]*)
14545         # C++ shared libraries reported to be fairly broken before
14546         # switch to ELF
14547         ld_shlibs_CXX=no
14548         ;;
14549
14550       freebsd-elf*)
14551         archive_cmds_need_lc_CXX=no
14552         ;;
14553
14554       freebsd* | dragonfly*)
14555         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14556         # conventions
14557         ld_shlibs_CXX=yes
14558         ;;
14559
14560       gnu*)
14561         ;;
14562
14563       hpux9*)
14564         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14565         hardcode_libdir_separator_CXX=:
14566         export_dynamic_flag_spec_CXX='${wl}-E'
14567         hardcode_direct_CXX=yes
14568         hardcode_minus_L_CXX=yes # Not in the search PATH,
14569                                              # but as the default
14570                                              # location of the library.
14571
14572         case $cc_basename in
14573           CC*)
14574             # FIXME: insert proper C++ library support
14575             ld_shlibs_CXX=no
14576             ;;
14577           aCC*)
14578             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'
14579             # Commands to make compiler produce verbose output that lists
14580             # what "hidden" libraries, object files and flags are used when
14581             # linking a shared library.
14582             #
14583             # There doesn't appear to be a way to prevent this compiler from
14584             # explicitly linking system object files so we need to strip them
14585             # from the output so that they don't get included in the library
14586             # dependencies.
14587             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; $ECHO "X$list" | $Xsed'
14588             ;;
14589           *)
14590             if test "$GXX" = yes; then
14591               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
14592             else
14593               # FIXME: insert proper C++ library support
14594               ld_shlibs_CXX=no
14595             fi
14596             ;;
14597         esac
14598         ;;
14599
14600       hpux10*|hpux11*)
14601         if test $with_gnu_ld = no; then
14602           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14603           hardcode_libdir_separator_CXX=:
14604
14605           case $host_cpu in
14606             hppa*64*|ia64*)
14607               ;;
14608             *)
14609               export_dynamic_flag_spec_CXX='${wl}-E'
14610               ;;
14611           esac
14612         fi
14613         case $host_cpu in
14614           hppa*64*|ia64*)
14615             hardcode_direct_CXX=no
14616             hardcode_shlibpath_var_CXX=no
14617             ;;
14618           *)
14619             hardcode_direct_CXX=yes
14620             hardcode_direct_absolute_CXX=yes
14621             hardcode_minus_L_CXX=yes # Not in the search PATH,
14622                                                  # but as the default
14623                                                  # location of the library.
14624             ;;
14625         esac
14626
14627         case $cc_basename in
14628           CC*)
14629             # FIXME: insert proper C++ library support
14630             ld_shlibs_CXX=no
14631             ;;
14632           aCC*)
14633             case $host_cpu in
14634               hppa*64*)
14635                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14636                 ;;
14637               ia64*)
14638                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14639                 ;;
14640               *)
14641                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14642                 ;;
14643             esac
14644             # Commands to make compiler produce verbose output that lists
14645             # what "hidden" libraries, object files and flags are used when
14646             # linking a shared library.
14647             #
14648             # There doesn't appear to be a way to prevent this compiler from
14649             # explicitly linking system object files so we need to strip them
14650             # from the output so that they don't get included in the library
14651             # dependencies.
14652             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; $ECHO "X$list" | $Xsed'
14653             ;;
14654           *)
14655             if test "$GXX" = yes; then
14656               if test $with_gnu_ld = no; then
14657                 case $host_cpu in
14658                   hppa*64*)
14659                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14660                     ;;
14661                   ia64*)
14662                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14663                     ;;
14664                   *)
14665                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14666                     ;;
14667                 esac
14668               fi
14669             else
14670               # FIXME: insert proper C++ library support
14671               ld_shlibs_CXX=no
14672             fi
14673             ;;
14674         esac
14675         ;;
14676
14677       interix[3-9]*)
14678         hardcode_direct_CXX=no
14679         hardcode_shlibpath_var_CXX=no
14680         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14681         export_dynamic_flag_spec_CXX='${wl}-E'
14682         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14683         # Instead, shared libraries are loaded at an image base (0x10000000 by
14684         # default) and relocated if they conflict, which is a slow very memory
14685         # consuming and fragmenting process.  To avoid this, we pick a random,
14686         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14687         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14688         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'
14689         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'
14690         ;;
14691       irix5* | irix6*)
14692         case $cc_basename in
14693           CC*)
14694             # SGI C++
14695             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14696
14697             # Archives containing C++ object files must be created using
14698             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14699             # necessary to make sure instantiated templates are included
14700             # in the archive.
14701             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14702             ;;
14703           *)
14704             if test "$GXX" = yes; then
14705               if test "$with_gnu_ld" = no; then
14706                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14707               else
14708                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14709               fi
14710             fi
14711             link_all_deplibs_CXX=yes
14712             ;;
14713         esac
14714         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14715         hardcode_libdir_separator_CXX=:
14716         inherit_rpath_CXX=yes
14717         ;;
14718
14719       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14720         case $cc_basename in
14721           KCC*)
14722             # Kuck and Associates, Inc. (KAI) C++ Compiler
14723
14724             # KCC will only create a shared library if the output file
14725             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14726             # to its proper name (with version) after linking.
14727             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'
14728             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'
14729             # Commands to make compiler produce verbose output that lists
14730             # what "hidden" libraries, object files and flags are used when
14731             # linking a shared library.
14732             #
14733             # There doesn't appear to be a way to prevent this compiler from
14734             # explicitly linking system object files so we need to strip them
14735             # from the output so that they don't get included in the library
14736             # dependencies.
14737             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; $ECHO "X$list" | $Xsed'
14738
14739             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14740             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14741
14742             # Archives containing C++ object files must be created using
14743             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14744             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14745             ;;
14746           icpc* | ecpc* )
14747             # Intel C++
14748             with_gnu_ld=yes
14749             # version 8.0 and above of icpc choke on multiply defined symbols
14750             # if we add $predep_objects and $postdep_objects, however 7.1 and
14751             # earlier do not add the objects themselves.
14752             case `$CC -V 2>&1` in
14753               *"Version 7."*)
14754                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14755                 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'
14756                 ;;
14757               *)  # Version 8.0 or newer
14758                 tmp_idyn=
14759                 case $host_cpu in
14760                   ia64*) tmp_idyn=' -i_dynamic';;
14761                 esac
14762                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763                 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'
14764                 ;;
14765             esac
14766             archive_cmds_need_lc_CXX=no
14767             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14768             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14769             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14770             ;;
14771           pgCC* | pgcpp*)
14772             # Portland Group C++ compiler
14773             case `$CC -V` in
14774             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14775               prelink_cmds_CXX='tpldir=Template.dir~
14776                 rm -rf $tpldir~
14777                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14778                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14779               old_archive_cmds_CXX='tpldir=Template.dir~
14780                 rm -rf $tpldir~
14781                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14782                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14783                 $RANLIB $oldlib'
14784               archive_cmds_CXX='tpldir=Template.dir~
14785                 rm -rf $tpldir~
14786                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14787                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14788               archive_expsym_cmds_CXX='tpldir=Template.dir~
14789                 rm -rf $tpldir~
14790                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14791                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14792               ;;
14793             *) # Version 6 will use weak symbols
14794               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14795               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'
14796               ;;
14797             esac
14798
14799             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14800             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14801             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14802             ;;
14803           cxx*)
14804             # Compaq C++
14805             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806             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'
14807
14808             runpath_var=LD_RUN_PATH
14809             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14810             hardcode_libdir_separator_CXX=:
14811
14812             # Commands to make compiler produce verbose output that lists
14813             # what "hidden" libraries, object files and flags are used when
14814             # linking a shared library.
14815             #
14816             # There doesn't appear to be a way to prevent this compiler from
14817             # explicitly linking system object files so we need to strip them
14818             # from the output so that they don't get included in the library
14819             # dependencies.
14820             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14821             ;;
14822           xl*)
14823             # IBM XL 8.0 on PPC, with GNU ld
14824             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14825             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14826             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827             if test "x$supports_anon_versioning" = xyes; then
14828               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14829                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14830                 echo "local: *; };" >> $output_objdir/$libname.ver~
14831                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14832             fi
14833             ;;
14834           *)
14835             case `$CC -V 2>&1 | sed 5q` in
14836             *Sun\ C*)
14837               # Sun C++ 5.9
14838               no_undefined_flag_CXX=' -zdefs'
14839               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14840               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'
14841               hardcode_libdir_flag_spec_CXX='-R$libdir'
14842               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14843               compiler_needs_object_CXX=yes
14844
14845               # Not sure whether something based on
14846               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14847               # would be better.
14848               output_verbose_link_cmd='echo'
14849
14850               # Archives containing C++ object files must be created using
14851               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14852               # necessary to make sure instantiated templates are included
14853               # in the archive.
14854               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14855               ;;
14856             esac
14857             ;;
14858         esac
14859         ;;
14860
14861       lynxos*)
14862         # FIXME: insert proper C++ library support
14863         ld_shlibs_CXX=no
14864         ;;
14865
14866       m88k*)
14867         # FIXME: insert proper C++ library support
14868         ld_shlibs_CXX=no
14869         ;;
14870
14871       mvs*)
14872         case $cc_basename in
14873           cxx*)
14874             # FIXME: insert proper C++ library support
14875             ld_shlibs_CXX=no
14876             ;;
14877           *)
14878             # FIXME: insert proper C++ library support
14879             ld_shlibs_CXX=no
14880             ;;
14881         esac
14882         ;;
14883
14884       netbsd*)
14885         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14886           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14887           wlarc=
14888           hardcode_libdir_flag_spec_CXX='-R$libdir'
14889           hardcode_direct_CXX=yes
14890           hardcode_shlibpath_var_CXX=no
14891         fi
14892         # Workaround some broken pre-1.5 toolchains
14893         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14894         ;;
14895
14896       *nto* | *qnx*)
14897         ld_shlibs_CXX=yes
14898         ;;
14899
14900       openbsd2*)
14901         # C++ shared libraries are fairly broken
14902         ld_shlibs_CXX=no
14903         ;;
14904
14905       openbsd*)
14906         if test -f /usr/libexec/ld.so; then
14907           hardcode_direct_CXX=yes
14908           hardcode_shlibpath_var_CXX=no
14909           hardcode_direct_absolute_CXX=yes
14910           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14911           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14912           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14913             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14914             export_dynamic_flag_spec_CXX='${wl}-E'
14915             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916           fi
14917           output_verbose_link_cmd=echo
14918         else
14919           ld_shlibs_CXX=no
14920         fi
14921         ;;
14922
14923       osf3* | osf4* | osf5*)
14924         case $cc_basename in
14925           KCC*)
14926             # Kuck and Associates, Inc. (KAI) C++ Compiler
14927
14928             # KCC will only create a shared library if the output file
14929             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14930             # to its proper name (with version) after linking.
14931             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'
14932
14933             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14934             hardcode_libdir_separator_CXX=:
14935
14936             # Archives containing C++ object files must be created using
14937             # the KAI C++ compiler.
14938             case $host in
14939               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14940               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14941             esac
14942             ;;
14943           RCC*)
14944             # Rational C++ 2.4.1
14945             # FIXME: insert proper C++ library support
14946             ld_shlibs_CXX=no
14947             ;;
14948           cxx*)
14949             case $host in
14950               osf3*)
14951                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14952                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14953                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14954                 ;;
14955               *)
14956                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14957                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14958                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14959                   echo "-hidden">> $lib.exp~
14960                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14961                   $RM $lib.exp'
14962                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14963                 ;;
14964             esac
14965
14966             hardcode_libdir_separator_CXX=:
14967
14968             # Commands to make compiler produce verbose output that lists
14969             # what "hidden" libraries, object files and flags are used when
14970             # linking a shared library.
14971             #
14972             # There doesn't appear to be a way to prevent this compiler from
14973             # explicitly linking system object files so we need to strip them
14974             # from the output so that they don't get included in the library
14975             # dependencies.
14976             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14977             ;;
14978           *)
14979             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14980               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14981               case $host in
14982                 osf3*)
14983                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14984                   ;;
14985                 *)
14986                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14987                   ;;
14988               esac
14989
14990               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14991               hardcode_libdir_separator_CXX=:
14992
14993               # Commands to make compiler produce verbose output that lists
14994               # what "hidden" libraries, object files and flags are used when
14995               # linking a shared library.
14996               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14997
14998             else
14999               # FIXME: insert proper C++ library support
15000               ld_shlibs_CXX=no
15001             fi
15002             ;;
15003         esac
15004         ;;
15005
15006       psos*)
15007         # FIXME: insert proper C++ library support
15008         ld_shlibs_CXX=no
15009         ;;
15010
15011       sunos4*)
15012         case $cc_basename in
15013           CC*)
15014             # Sun C++ 4.x
15015             # FIXME: insert proper C++ library support
15016             ld_shlibs_CXX=no
15017             ;;
15018           lcc*)
15019             # Lucid
15020             # FIXME: insert proper C++ library support
15021             ld_shlibs_CXX=no
15022             ;;
15023           *)
15024             # FIXME: insert proper C++ library support
15025             ld_shlibs_CXX=no
15026             ;;
15027         esac
15028         ;;
15029
15030       solaris*)
15031         case $cc_basename in
15032           CC*)
15033             # Sun C++ 4.2, 5.x and Centerline C++
15034             archive_cmds_need_lc_CXX=yes
15035             no_undefined_flag_CXX=' -zdefs'
15036             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15037             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15038               $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'
15039
15040             hardcode_libdir_flag_spec_CXX='-R$libdir'
15041             hardcode_shlibpath_var_CXX=no
15042             case $host_os in
15043               solaris2.[0-5] | solaris2.[0-5].*) ;;
15044               *)
15045                 # The compiler driver will combine and reorder linker options,
15046                 # but understands `-z linker_flag'.
15047                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15048                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15049                 ;;
15050             esac
15051             link_all_deplibs_CXX=yes
15052
15053             output_verbose_link_cmd='echo'
15054
15055             # Archives containing C++ object files must be created using
15056             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15057             # necessary to make sure instantiated templates are included
15058             # in the archive.
15059             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15060             ;;
15061           gcx*)
15062             # Green Hills C++ Compiler
15063             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15064
15065             # The C++ compiler must be used to create the archive.
15066             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15067             ;;
15068           *)
15069             # GNU C++ compiler with Solaris linker
15070             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15071               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15072               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15073                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15074                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15075                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15076
15077                 # Commands to make compiler produce verbose output that lists
15078                 # what "hidden" libraries, object files and flags are used when
15079                 # linking a shared library.
15080                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15081               else
15082                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15083                 # platform.
15084                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15085                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15086                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15087
15088                 # Commands to make compiler produce verbose output that lists
15089                 # what "hidden" libraries, object files and flags are used when
15090                 # linking a shared library.
15091                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15092               fi
15093
15094               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15095               case $host_os in
15096                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15097                 *)
15098                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15099                   ;;
15100               esac
15101             fi
15102             ;;
15103         esac
15104         ;;
15105
15106     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15107       no_undefined_flag_CXX='${wl}-z,text'
15108       archive_cmds_need_lc_CXX=no
15109       hardcode_shlibpath_var_CXX=no
15110       runpath_var='LD_RUN_PATH'
15111
15112       case $cc_basename in
15113         CC*)
15114           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15115           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15116           ;;
15117         *)
15118           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15120           ;;
15121       esac
15122       ;;
15123
15124       sysv5* | sco3.2v5* | sco5v6*)
15125         # Note: We can NOT use -z defs as we might desire, because we do not
15126         # link with -lc, and that would cause any symbols used from libc to
15127         # always be unresolved, which means just about no library would
15128         # ever link correctly.  If we're not using GNU ld we use -z text
15129         # though, which does catch some bad symbols but isn't as heavy-handed
15130         # as -z defs.
15131         no_undefined_flag_CXX='${wl}-z,text'
15132         allow_undefined_flag_CXX='${wl}-z,nodefs'
15133         archive_cmds_need_lc_CXX=no
15134         hardcode_shlibpath_var_CXX=no
15135         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15136         hardcode_libdir_separator_CXX=':'
15137         link_all_deplibs_CXX=yes
15138         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15139         runpath_var='LD_RUN_PATH'
15140
15141         case $cc_basename in
15142           CC*)
15143             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15144             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15145             ;;
15146           *)
15147             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15148             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15149             ;;
15150         esac
15151       ;;
15152
15153       tandem*)
15154         case $cc_basename in
15155           NCC*)
15156             # NonStop-UX NCC 3.20
15157             # FIXME: insert proper C++ library support
15158             ld_shlibs_CXX=no
15159             ;;
15160           *)
15161             # FIXME: insert proper C++ library support
15162             ld_shlibs_CXX=no
15163             ;;
15164         esac
15165         ;;
15166
15167       vxworks*)
15168         # FIXME: insert proper C++ library support
15169         ld_shlibs_CXX=no
15170         ;;
15171
15172       *)
15173         # FIXME: insert proper C++ library support
15174         ld_shlibs_CXX=no
15175         ;;
15176     esac
15177
15178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15179 $as_echo "$ld_shlibs_CXX" >&6; }
15180     test "$ld_shlibs_CXX" = no && can_build_shared=no
15181
15182     GCC_CXX="$GXX"
15183     LD_CXX="$LD"
15184
15185     ## CAVEAT EMPTOR:
15186     ## There is no encapsulation within the following macros, do not change
15187     ## the running order or otherwise move them around unless you know exactly
15188     ## what you are doing...
15189     # Dependencies to place before and after the object being linked:
15190 predep_objects_CXX=
15191 postdep_objects_CXX=
15192 predeps_CXX=
15193 postdeps_CXX=
15194 compiler_lib_search_path_CXX=
15195
15196 cat > conftest.$ac_ext <<_LT_EOF
15197 class Foo
15198 {
15199 public:
15200   Foo (void) { a = 0; }
15201 private:
15202   int a;
15203 };
15204 _LT_EOF
15205
15206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15207   (eval $ac_compile) 2>&5
15208   ac_status=$?
15209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15210   test $ac_status = 0; }; then
15211   # Parse the compiler output and extract the necessary
15212   # objects, libraries and library flags.
15213
15214   # Sentinel used to keep track of whether or not we are before
15215   # the conftest object file.
15216   pre_test_object_deps_done=no
15217
15218   for p in `eval "$output_verbose_link_cmd"`; do
15219     case $p in
15220
15221     -L* | -R* | -l*)
15222        # Some compilers place space between "-{L,R}" and the path.
15223        # Remove the space.
15224        if test $p = "-L" ||
15225           test $p = "-R"; then
15226          prev=$p
15227          continue
15228        else
15229          prev=
15230        fi
15231
15232        if test "$pre_test_object_deps_done" = no; then
15233          case $p in
15234          -L* | -R*)
15235            # Internal compiler library paths should come after those
15236            # provided the user.  The postdeps already come after the
15237            # user supplied libs so there is no need to process them.
15238            if test -z "$compiler_lib_search_path_CXX"; then
15239              compiler_lib_search_path_CXX="${prev}${p}"
15240            else
15241              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15242            fi
15243            ;;
15244          # The "-l" case would never come before the object being
15245          # linked, so don't bother handling this case.
15246          esac
15247        else
15248          if test -z "$postdeps_CXX"; then
15249            postdeps_CXX="${prev}${p}"
15250          else
15251            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15252          fi
15253        fi
15254        ;;
15255
15256     *.$objext)
15257        # This assumes that the test object file only shows up
15258        # once in the compiler output.
15259        if test "$p" = "conftest.$objext"; then
15260          pre_test_object_deps_done=yes
15261          continue
15262        fi
15263
15264        if test "$pre_test_object_deps_done" = no; then
15265          if test -z "$predep_objects_CXX"; then
15266            predep_objects_CXX="$p"
15267          else
15268            predep_objects_CXX="$predep_objects_CXX $p"
15269          fi
15270        else
15271          if test -z "$postdep_objects_CXX"; then
15272            postdep_objects_CXX="$p"
15273          else
15274            postdep_objects_CXX="$postdep_objects_CXX $p"
15275          fi
15276        fi
15277        ;;
15278
15279     *) ;; # Ignore the rest.
15280
15281     esac
15282   done
15283
15284   # Clean up.
15285   rm -f a.out a.exe
15286 else
15287   echo "libtool.m4: error: problem compiling CXX test program"
15288 fi
15289
15290 $RM -f confest.$objext
15291
15292 # PORTME: override above test on systems where it is broken
15293 case $host_os in
15294 interix[3-9]*)
15295   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15296   # hack all around it, let's just trust "g++" to DTRT.
15297   predep_objects_CXX=
15298   postdep_objects_CXX=
15299   postdeps_CXX=
15300   ;;
15301
15302 linux*)
15303   case `$CC -V 2>&1 | sed 5q` in
15304   *Sun\ C*)
15305     # Sun C++ 5.9
15306
15307     # The more standards-conforming stlport4 library is
15308     # incompatible with the Cstd library. Avoid specifying
15309     # it if it's in CXXFLAGS. Ignore libCrun as
15310     # -library=stlport4 depends on it.
15311     case " $CXX $CXXFLAGS " in
15312     *" -library=stlport4 "*)
15313       solaris_use_stlport4=yes
15314       ;;
15315     esac
15316
15317     if test "$solaris_use_stlport4" != yes; then
15318       postdeps_CXX='-library=Cstd -library=Crun'
15319     fi
15320     ;;
15321   esac
15322   ;;
15323
15324 solaris*)
15325   case $cc_basename in
15326   CC*)
15327     # The more standards-conforming stlport4 library is
15328     # incompatible with the Cstd library. Avoid specifying
15329     # it if it's in CXXFLAGS. Ignore libCrun as
15330     # -library=stlport4 depends on it.
15331     case " $CXX $CXXFLAGS " in
15332     *" -library=stlport4 "*)
15333       solaris_use_stlport4=yes
15334       ;;
15335     esac
15336
15337     # Adding this requires a known-good setup of shared libraries for
15338     # Sun compiler versions before 5.6, else PIC objects from an old
15339     # archive will be linked into the output, leading to subtle bugs.
15340     if test "$solaris_use_stlport4" != yes; then
15341       postdeps_CXX='-library=Cstd -library=Crun'
15342     fi
15343     ;;
15344   esac
15345   ;;
15346 esac
15347
15348
15349 case " $postdeps_CXX " in
15350 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15351 esac
15352  compiler_lib_search_dirs_CXX=
15353 if test -n "${compiler_lib_search_path_CXX}"; then
15354  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15355 fi
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387     lt_prog_compiler_wl_CXX=
15388 lt_prog_compiler_pic_CXX=
15389 lt_prog_compiler_static_CXX=
15390
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15392 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15393
15394   # C++ specific cases for pic, static, wl, etc.
15395   if test "$GXX" = yes; then
15396     lt_prog_compiler_wl_CXX='-Wl,'
15397     lt_prog_compiler_static_CXX='-static'
15398
15399     case $host_os in
15400     aix*)
15401       # All AIX code is PIC.
15402       if test "$host_cpu" = ia64; then
15403         # AIX 5 now supports IA64 processor
15404         lt_prog_compiler_static_CXX='-Bstatic'
15405       fi
15406       ;;
15407
15408     amigaos*)
15409       case $host_cpu in
15410       powerpc)
15411             # see comment about AmigaOS4 .so support
15412             lt_prog_compiler_pic_CXX='-fPIC'
15413         ;;
15414       m68k)
15415             # FIXME: we need at least 68020 code to build shared libraries, but
15416             # adding the `-m68020' flag to GCC prevents building anything better,
15417             # like `-m68040'.
15418             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15419         ;;
15420       esac
15421       ;;
15422
15423     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15424       # PIC is the default for these OSes.
15425       ;;
15426     mingw* | cygwin* | os2* | pw32* | cegcc*)
15427       # This hack is so that the source file can tell whether it is being
15428       # built for inclusion in a dll (and should export symbols for example).
15429       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15430       # (--disable-auto-import) libraries
15431       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15432       ;;
15433     darwin* | rhapsody*)
15434       # PIC is the default on this platform
15435       # Common symbols not allowed in MH_DYLIB files
15436       lt_prog_compiler_pic_CXX='-fno-common'
15437       ;;
15438     *djgpp*)
15439       # DJGPP does not support shared libraries at all
15440       lt_prog_compiler_pic_CXX=
15441       ;;
15442     interix[3-9]*)
15443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15444       # Instead, we relocate shared libraries at runtime.
15445       ;;
15446     sysv4*MP*)
15447       if test -d /usr/nec; then
15448         lt_prog_compiler_pic_CXX=-Kconform_pic
15449       fi
15450       ;;
15451     hpux*)
15452       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15453       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15454       # sets the default TLS model and affects inlining.
15455       case $host_cpu in
15456       hppa*64*)
15457         ;;
15458       *)
15459         lt_prog_compiler_pic_CXX='-fPIC'
15460         ;;
15461       esac
15462       ;;
15463     *qnx* | *nto*)
15464       # QNX uses GNU C++, but need to define -shared option too, otherwise
15465       # it will coredump.
15466       lt_prog_compiler_pic_CXX='-fPIC -shared'
15467       ;;
15468     *)
15469       lt_prog_compiler_pic_CXX='-fPIC'
15470       ;;
15471     esac
15472   else
15473     case $host_os in
15474       aix[4-9]*)
15475         # All AIX code is PIC.
15476         if test "$host_cpu" = ia64; then
15477           # AIX 5 now supports IA64 processor
15478           lt_prog_compiler_static_CXX='-Bstatic'
15479         else
15480           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15481         fi
15482         ;;
15483       chorus*)
15484         case $cc_basename in
15485         cxch68*)
15486           # Green Hills C++ Compiler
15487           # _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"
15488           ;;
15489         esac
15490         ;;
15491       dgux*)
15492         case $cc_basename in
15493           ec++*)
15494             lt_prog_compiler_pic_CXX='-KPIC'
15495             ;;
15496           ghcx*)
15497             # Green Hills C++ Compiler
15498             lt_prog_compiler_pic_CXX='-pic'
15499             ;;
15500           *)
15501             ;;
15502         esac
15503         ;;
15504       freebsd* | dragonfly*)
15505         # FreeBSD uses GNU C++
15506         ;;
15507       hpux9* | hpux10* | hpux11*)
15508         case $cc_basename in
15509           CC*)
15510             lt_prog_compiler_wl_CXX='-Wl,'
15511             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15512             if test "$host_cpu" != ia64; then
15513               lt_prog_compiler_pic_CXX='+Z'
15514             fi
15515             ;;
15516           aCC*)
15517             lt_prog_compiler_wl_CXX='-Wl,'
15518             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15519             case $host_cpu in
15520             hppa*64*|ia64*)
15521               # +Z the default
15522               ;;
15523             *)
15524               lt_prog_compiler_pic_CXX='+Z'
15525               ;;
15526             esac
15527             ;;
15528           *)
15529             ;;
15530         esac
15531         ;;
15532       interix*)
15533         # This is c89, which is MS Visual C++ (no shared libs)
15534         # Anyone wants to do a port?
15535         ;;
15536       irix5* | irix6* | nonstopux*)
15537         case $cc_basename in
15538           CC*)
15539             lt_prog_compiler_wl_CXX='-Wl,'
15540             lt_prog_compiler_static_CXX='-non_shared'
15541             # CC pic flag -KPIC is the default.
15542             ;;
15543           *)
15544             ;;
15545         esac
15546         ;;
15547       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15548         case $cc_basename in
15549           KCC*)
15550             # KAI C++ Compiler
15551             lt_prog_compiler_wl_CXX='--backend -Wl,'
15552             lt_prog_compiler_pic_CXX='-fPIC'
15553             ;;
15554           ecpc* )
15555             # old Intel C++ for x86_64 which still supported -KPIC.
15556             lt_prog_compiler_wl_CXX='-Wl,'
15557             lt_prog_compiler_pic_CXX='-KPIC'
15558             lt_prog_compiler_static_CXX='-static'
15559             ;;
15560           icpc* )
15561             # Intel C++, used to be incompatible with GCC.
15562             # ICC 10 doesn't accept -KPIC any more.
15563             lt_prog_compiler_wl_CXX='-Wl,'
15564             lt_prog_compiler_pic_CXX='-fPIC'
15565             lt_prog_compiler_static_CXX='-static'
15566             ;;
15567           pgCC* | pgcpp*)
15568             # Portland Group C++ compiler
15569             lt_prog_compiler_wl_CXX='-Wl,'
15570             lt_prog_compiler_pic_CXX='-fpic'
15571             lt_prog_compiler_static_CXX='-Bstatic'
15572             ;;
15573           cxx*)
15574             # Compaq C++
15575             # Make sure the PIC flag is empty.  It appears that all Alpha
15576             # Linux and Compaq Tru64 Unix objects are PIC.
15577             lt_prog_compiler_pic_CXX=
15578             lt_prog_compiler_static_CXX='-non_shared'
15579             ;;
15580           xlc* | xlC*)
15581             # IBM XL 8.0 on PPC
15582             lt_prog_compiler_wl_CXX='-Wl,'
15583             lt_prog_compiler_pic_CXX='-qpic'
15584             lt_prog_compiler_static_CXX='-qstaticlink'
15585             ;;
15586           *)
15587             case `$CC -V 2>&1 | sed 5q` in
15588             *Sun\ C*)
15589               # Sun C++ 5.9
15590               lt_prog_compiler_pic_CXX='-KPIC'
15591               lt_prog_compiler_static_CXX='-Bstatic'
15592               lt_prog_compiler_wl_CXX='-Qoption ld '
15593               ;;
15594             esac
15595             ;;
15596         esac
15597         ;;
15598       lynxos*)
15599         ;;
15600       m88k*)
15601         ;;
15602       mvs*)
15603         case $cc_basename in
15604           cxx*)
15605             lt_prog_compiler_pic_CXX='-W c,exportall'
15606             ;;
15607           *)
15608             ;;
15609         esac
15610         ;;
15611       netbsd* | netbsdelf*-gnu)
15612         ;;
15613       *qnx* | *nto*)
15614         # QNX uses GNU C++, but need to define -shared option too, otherwise
15615         # it will coredump.
15616         lt_prog_compiler_pic_CXX='-fPIC -shared'
15617         ;;
15618       osf3* | osf4* | osf5*)
15619         case $cc_basename in
15620           KCC*)
15621             lt_prog_compiler_wl_CXX='--backend -Wl,'
15622             ;;
15623           RCC*)
15624             # Rational C++ 2.4.1
15625             lt_prog_compiler_pic_CXX='-pic'
15626             ;;
15627           cxx*)
15628             # Digital/Compaq C++
15629             lt_prog_compiler_wl_CXX='-Wl,'
15630             # Make sure the PIC flag is empty.  It appears that all Alpha
15631             # Linux and Compaq Tru64 Unix objects are PIC.
15632             lt_prog_compiler_pic_CXX=
15633             lt_prog_compiler_static_CXX='-non_shared'
15634             ;;
15635           *)
15636             ;;
15637         esac
15638         ;;
15639       psos*)
15640         ;;
15641       solaris*)
15642         case $cc_basename in
15643           CC*)
15644             # Sun C++ 4.2, 5.x and Centerline C++
15645             lt_prog_compiler_pic_CXX='-KPIC'
15646             lt_prog_compiler_static_CXX='-Bstatic'
15647             lt_prog_compiler_wl_CXX='-Qoption ld '
15648             ;;
15649           gcx*)
15650             # Green Hills C++ Compiler
15651             lt_prog_compiler_pic_CXX='-PIC'
15652             ;;
15653           *)
15654             ;;
15655         esac
15656         ;;
15657       sunos4*)
15658         case $cc_basename in
15659           CC*)
15660             # Sun C++ 4.x
15661             lt_prog_compiler_pic_CXX='-pic'
15662             lt_prog_compiler_static_CXX='-Bstatic'
15663             ;;
15664           lcc*)
15665             # Lucid
15666             lt_prog_compiler_pic_CXX='-pic'
15667             ;;
15668           *)
15669             ;;
15670         esac
15671         ;;
15672       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15673         case $cc_basename in
15674           CC*)
15675             lt_prog_compiler_wl_CXX='-Wl,'
15676             lt_prog_compiler_pic_CXX='-KPIC'
15677             lt_prog_compiler_static_CXX='-Bstatic'
15678             ;;
15679         esac
15680         ;;
15681       tandem*)
15682         case $cc_basename in
15683           NCC*)
15684             # NonStop-UX NCC 3.20
15685             lt_prog_compiler_pic_CXX='-KPIC'
15686             ;;
15687           *)
15688             ;;
15689         esac
15690         ;;
15691       vxworks*)
15692         ;;
15693       *)
15694         lt_prog_compiler_can_build_shared_CXX=no
15695         ;;
15696     esac
15697   fi
15698
15699 case $host_os in
15700   # For platforms which do not support PIC, -DPIC is meaningless:
15701   *djgpp*)
15702     lt_prog_compiler_pic_CXX=
15703     ;;
15704   *)
15705     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15706     ;;
15707 esac
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15709 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15710
15711
15712
15713 #
15714 # Check to make sure the PIC flag actually works.
15715 #
15716 if test -n "$lt_prog_compiler_pic_CXX"; then
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15718 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15719 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15720   $as_echo_n "(cached) " >&6
15721 else
15722   lt_cv_prog_compiler_pic_works_CXX=no
15723    ac_outfile=conftest.$ac_objext
15724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15725    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15726    # Insert the option either (1) after the last *FLAGS variable, or
15727    # (2) before a word containing "conftest.", or (3) at the end.
15728    # Note that $ac_compile itself does not contain backslashes and begins
15729    # with a dollar sign (not a hyphen), so the echo should work correctly.
15730    # The option is referenced via a variable to avoid confusing sed.
15731    lt_compile=`echo "$ac_compile" | $SED \
15732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734    -e 's:$: $lt_compiler_flag:'`
15735    (eval echo "\"\$as_me:15735: $lt_compile\"" >&5)
15736    (eval "$lt_compile" 2>conftest.err)
15737    ac_status=$?
15738    cat conftest.err >&5
15739    echo "$as_me:15739: \$? = $ac_status" >&5
15740    if (exit $ac_status) && test -s "$ac_outfile"; then
15741      # The compiler can only warn and ignore the option if not recognized
15742      # So say no if there are warnings other than the usual output.
15743      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15744      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15745      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15746        lt_cv_prog_compiler_pic_works_CXX=yes
15747      fi
15748    fi
15749    $RM conftest*
15750
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15753 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15754
15755 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15756     case $lt_prog_compiler_pic_CXX in
15757      "" | " "*) ;;
15758      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15759      esac
15760 else
15761     lt_prog_compiler_pic_CXX=
15762      lt_prog_compiler_can_build_shared_CXX=no
15763 fi
15764
15765 fi
15766
15767
15768
15769 #
15770 # Check to make sure the static flag actually works.
15771 #
15772 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15774 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15775 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15776   $as_echo_n "(cached) " >&6
15777 else
15778   lt_cv_prog_compiler_static_works_CXX=no
15779    save_LDFLAGS="$LDFLAGS"
15780    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15781    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15782    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15783      # The linker can only warn and ignore the option if not recognized
15784      # So say no if there are warnings
15785      if test -s conftest.err; then
15786        # Append any errors to the config.log.
15787        cat conftest.err 1>&5
15788        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15789        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790        if diff conftest.exp conftest.er2 >/dev/null; then
15791          lt_cv_prog_compiler_static_works_CXX=yes
15792        fi
15793      else
15794        lt_cv_prog_compiler_static_works_CXX=yes
15795      fi
15796    fi
15797    $RM -r conftest*
15798    LDFLAGS="$save_LDFLAGS"
15799
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15802 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15803
15804 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15805     :
15806 else
15807     lt_prog_compiler_static_CXX=
15808 fi
15809
15810
15811
15812
15813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15815 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15816   $as_echo_n "(cached) " >&6
15817 else
15818   lt_cv_prog_compiler_c_o_CXX=no
15819    $RM -r conftest 2>/dev/null
15820    mkdir conftest
15821    cd conftest
15822    mkdir out
15823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15824
15825    lt_compiler_flag="-o out/conftest2.$ac_objext"
15826    # Insert the option either (1) after the last *FLAGS variable, or
15827    # (2) before a word containing "conftest.", or (3) at the end.
15828    # Note that $ac_compile itself does not contain backslashes and begins
15829    # with a dollar sign (not a hyphen), so the echo should work correctly.
15830    lt_compile=`echo "$ac_compile" | $SED \
15831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833    -e 's:$: $lt_compiler_flag:'`
15834    (eval echo "\"\$as_me:15834: $lt_compile\"" >&5)
15835    (eval "$lt_compile" 2>out/conftest.err)
15836    ac_status=$?
15837    cat out/conftest.err >&5
15838    echo "$as_me:15838: \$? = $ac_status" >&5
15839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15840    then
15841      # The compiler can only warn and ignore the option if not recognized
15842      # So say no if there are warnings
15843      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15846        lt_cv_prog_compiler_c_o_CXX=yes
15847      fi
15848    fi
15849    chmod u+w . 2>&5
15850    $RM conftest*
15851    # SGI C++ compiler will create directory out/ii_files/ for
15852    # template instantiation
15853    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15854    $RM out/* && rmdir out
15855    cd ..
15856    $RM -r conftest
15857    $RM conftest*
15858
15859 fi
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15861 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15862
15863
15864
15865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15867 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15868   $as_echo_n "(cached) " >&6
15869 else
15870   lt_cv_prog_compiler_c_o_CXX=no
15871    $RM -r conftest 2>/dev/null
15872    mkdir conftest
15873    cd conftest
15874    mkdir out
15875    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15876
15877    lt_compiler_flag="-o out/conftest2.$ac_objext"
15878    # Insert the option either (1) after the last *FLAGS variable, or
15879    # (2) before a word containing "conftest.", or (3) at the end.
15880    # Note that $ac_compile itself does not contain backslashes and begins
15881    # with a dollar sign (not a hyphen), so the echo should work correctly.
15882    lt_compile=`echo "$ac_compile" | $SED \
15883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15885    -e 's:$: $lt_compiler_flag:'`
15886    (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
15887    (eval "$lt_compile" 2>out/conftest.err)
15888    ac_status=$?
15889    cat out/conftest.err >&5
15890    echo "$as_me:15890: \$? = $ac_status" >&5
15891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15892    then
15893      # The compiler can only warn and ignore the option if not recognized
15894      # So say no if there are warnings
15895      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15898        lt_cv_prog_compiler_c_o_CXX=yes
15899      fi
15900    fi
15901    chmod u+w . 2>&5
15902    $RM conftest*
15903    # SGI C++ compiler will create directory out/ii_files/ for
15904    # template instantiation
15905    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15906    $RM out/* && rmdir out
15907    cd ..
15908    $RM -r conftest
15909    $RM conftest*
15910
15911 fi
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15913 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15914
15915
15916
15917
15918 hard_links="nottested"
15919 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15920   # do not overwrite the value of need_locks provided by the user
15921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15922 $as_echo_n "checking if we can lock with hard links... " >&6; }
15923   hard_links=yes
15924   $RM conftest*
15925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15926   touch conftest.a
15927   ln conftest.a conftest.b 2>&5 || hard_links=no
15928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15930 $as_echo "$hard_links" >&6; }
15931   if test "$hard_links" = no; then
15932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15933 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15934     need_locks=warn
15935   fi
15936 else
15937   need_locks=no
15938 fi
15939
15940
15941
15942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15944
15945   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15946   case $host_os in
15947   aix[4-9]*)
15948     # If we're using GNU nm, then we don't want the "-C" option.
15949     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15950     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15951       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15952     else
15953       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'
15954     fi
15955     ;;
15956   pw32*)
15957     export_symbols_cmds_CXX="$ltdll_cmds"
15958   ;;
15959   cygwin* | mingw* | cegcc*)
15960     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15961   ;;
15962   linux* | k*bsd*-gnu)
15963     link_all_deplibs_CXX=no
15964   ;;
15965   *)
15966     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15967   ;;
15968   esac
15969   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15972 $as_echo "$ld_shlibs_CXX" >&6; }
15973 test "$ld_shlibs_CXX" = no && can_build_shared=no
15974
15975 with_gnu_ld_CXX=$with_gnu_ld
15976
15977
15978
15979
15980
15981
15982 #
15983 # Do we need to explicitly link libc?
15984 #
15985 case "x$archive_cmds_need_lc_CXX" in
15986 x|xyes)
15987   # Assume -lc should be added
15988   archive_cmds_need_lc_CXX=yes
15989
15990   if test "$enable_shared" = yes && test "$GCC" = yes; then
15991     case $archive_cmds_CXX in
15992     *'~'*)
15993       # FIXME: we may have to deal with multi-command sequences.
15994       ;;
15995     '$CC '*)
15996       # Test whether the compiler implicitly links with -lc since on some
15997       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15998       # to ld, don't add -lc before -lgcc.
15999       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16000 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16001       $RM conftest*
16002       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16003
16004       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16005   (eval $ac_compile) 2>&5
16006   ac_status=$?
16007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008   test $ac_status = 0; } 2>conftest.err; then
16009         soname=conftest
16010         lib=conftest
16011         libobjs=conftest.$ac_objext
16012         deplibs=
16013         wl=$lt_prog_compiler_wl_CXX
16014         pic_flag=$lt_prog_compiler_pic_CXX
16015         compiler_flags=-v
16016         linker_flags=-v
16017         verstring=
16018         output_objdir=.
16019         libname=conftest
16020         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16021         allow_undefined_flag_CXX=
16022         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16023   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16024   ac_status=$?
16025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026   test $ac_status = 0; }
16027         then
16028           archive_cmds_need_lc_CXX=no
16029         else
16030           archive_cmds_need_lc_CXX=yes
16031         fi
16032         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16033       else
16034         cat conftest.err 1>&5
16035       fi
16036       $RM conftest*
16037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16038 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16039       ;;
16040     esac
16041   fi
16042   ;;
16043 esac
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16109 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16110
16111 library_names_spec=
16112 libname_spec='lib$name'
16113 soname_spec=
16114 shrext_cmds=".so"
16115 postinstall_cmds=
16116 postuninstall_cmds=
16117 finish_cmds=
16118 finish_eval=
16119 shlibpath_var=
16120 shlibpath_overrides_runpath=unknown
16121 version_type=none
16122 dynamic_linker="$host_os ld.so"
16123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16124 need_lib_prefix=unknown
16125 hardcode_into_libs=no
16126
16127 # when you set need_version to no, make sure it does not cause -set_version
16128 # flags to be left without arguments
16129 need_version=unknown
16130
16131 case $host_os in
16132 aix3*)
16133   version_type=linux
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16135   shlibpath_var=LIBPATH
16136
16137   # AIX 3 has no versioning support, so we append a major version to the name.
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   ;;
16140
16141 aix[4-9]*)
16142   version_type=linux
16143   need_lib_prefix=no
16144   need_version=no
16145   hardcode_into_libs=yes
16146   if test "$host_cpu" = ia64; then
16147     # AIX 5 supports IA64
16148     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16149     shlibpath_var=LD_LIBRARY_PATH
16150   else
16151     # With GCC up to 2.95.x, collect2 would create an import file
16152     # for dependence libraries.  The import file would start with
16153     # the line `#! .'.  This would cause the generated library to
16154     # depend on `.', always an invalid library.  This was fixed in
16155     # development snapshots of GCC prior to 3.0.
16156     case $host_os in
16157       aix4 | aix4.[01] | aix4.[01].*)
16158       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16159            echo ' yes '
16160            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16161         :
16162       else
16163         can_build_shared=no
16164       fi
16165       ;;
16166     esac
16167     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16168     # soname into executable. Probably we can add versioning support to
16169     # collect2, so additional links can be useful in future.
16170     if test "$aix_use_runtimelinking" = yes; then
16171       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16172       # instead of lib<name>.a to let people know that these are not
16173       # typical AIX shared libraries.
16174       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175     else
16176       # We preserve .a as extension for shared libraries through AIX4.2
16177       # and later when we are not doing run time linking.
16178       library_names_spec='${libname}${release}.a $libname.a'
16179       soname_spec='${libname}${release}${shared_ext}$major'
16180     fi
16181     shlibpath_var=LIBPATH
16182   fi
16183   ;;
16184
16185 amigaos*)
16186   case $host_cpu in
16187   powerpc)
16188     # Since July 2007 AmigaOS4 officially supports .so libraries.
16189     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191     ;;
16192   m68k)
16193     library_names_spec='$libname.ixlibrary $libname.a'
16194     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16195     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16196     ;;
16197   esac
16198   ;;
16199
16200 beos*)
16201   library_names_spec='${libname}${shared_ext}'
16202   dynamic_linker="$host_os ld.so"
16203   shlibpath_var=LIBRARY_PATH
16204   ;;
16205
16206 bsdi[45]*)
16207   version_type=linux
16208   need_version=no
16209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16210   soname_spec='${libname}${release}${shared_ext}$major'
16211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16215   # the default ld.so.conf also contains /usr/contrib/lib and
16216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16217   # libtool to hard-code these into programs
16218   ;;
16219
16220 cygwin* | mingw* | pw32* | cegcc*)
16221   version_type=windows
16222   shrext_cmds=".dll"
16223   need_version=no
16224   need_lib_prefix=no
16225
16226   case $GCC,$host_os in
16227   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16228     library_names_spec='$libname.dll.a'
16229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16230     postinstall_cmds='base_file=`basename \${file}`~
16231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16232       dldir=$destdir/`dirname \$dlpath`~
16233       test -d \$dldir || mkdir -p \$dldir~
16234       $install_prog $dir/$dlname \$dldir/$dlname~
16235       chmod a+x \$dldir/$dlname~
16236       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16237         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16238       fi'
16239     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16240       dlpath=$dir/\$dldll~
16241        $RM \$dlpath'
16242     shlibpath_overrides_runpath=yes
16243
16244     case $host_os in
16245     cygwin*)
16246       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16247       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16248       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16249       ;;
16250     mingw* | cegcc*)
16251       # MinGW DLLs use traditional 'lib' prefix
16252       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16253       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16254       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16255         # It is most probably a Windows format PATH printed by
16256         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16257         # path with ; separators, and with drive letters. We can handle the
16258         # drive letters (cygwin fileutils understands them), so leave them,
16259         # especially as we might pass files found there to a mingw objdump,
16260         # which wouldn't understand a cygwinified path. Ahh.
16261         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16262       else
16263         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16264       fi
16265       ;;
16266     pw32*)
16267       # pw32 DLLs use 'pw' prefix rather than 'lib'
16268       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16269       ;;
16270     esac
16271     ;;
16272
16273   *)
16274     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16275     ;;
16276   esac
16277   dynamic_linker='Win32 ld.exe'
16278   # FIXME: first we should search . and the directory the executable is in
16279   shlibpath_var=PATH
16280   ;;
16281
16282 darwin* | rhapsody*)
16283   dynamic_linker="$host_os dyld"
16284   version_type=darwin
16285   need_lib_prefix=no
16286   need_version=no
16287   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16288   soname_spec='${libname}${release}${major}$shared_ext'
16289   shlibpath_overrides_runpath=yes
16290   shlibpath_var=DYLD_LIBRARY_PATH
16291   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16292
16293   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16294   ;;
16295
16296 dgux*)
16297   version_type=linux
16298   need_lib_prefix=no
16299   need_version=no
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   shlibpath_var=LD_LIBRARY_PATH
16303   ;;
16304
16305 freebsd1*)
16306   dynamic_linker=no
16307   ;;
16308
16309 freebsd* | dragonfly*)
16310   # DragonFly does not have aout.  When/if they implement a new
16311   # versioning mechanism, adjust this.
16312   if test -x /usr/bin/objformat; then
16313     objformat=`/usr/bin/objformat`
16314   else
16315     case $host_os in
16316     freebsd[123]*) objformat=aout ;;
16317     *) objformat=elf ;;
16318     esac
16319   fi
16320   version_type=freebsd-$objformat
16321   case $version_type in
16322     freebsd-elf*)
16323       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16324       need_version=no
16325       need_lib_prefix=no
16326       ;;
16327     freebsd-*)
16328       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16329       need_version=yes
16330       ;;
16331   esac
16332   shlibpath_var=LD_LIBRARY_PATH
16333   case $host_os in
16334   freebsd2*)
16335     shlibpath_overrides_runpath=yes
16336     ;;
16337   freebsd3.[01]* | freebsdelf3.[01]*)
16338     shlibpath_overrides_runpath=yes
16339     hardcode_into_libs=yes
16340     ;;
16341   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16342   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16343     shlibpath_overrides_runpath=no
16344     hardcode_into_libs=yes
16345     ;;
16346   *) # from 4.6 on, and DragonFly
16347     shlibpath_overrides_runpath=yes
16348     hardcode_into_libs=yes
16349     ;;
16350   esac
16351   ;;
16352
16353 gnu*)
16354   version_type=linux
16355   need_lib_prefix=no
16356   need_version=no
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   hardcode_into_libs=yes
16361   ;;
16362
16363 hpux9* | hpux10* | hpux11*)
16364   # Give a soname corresponding to the major version so that dld.sl refuses to
16365   # link against other versions.
16366   version_type=sunos
16367   need_lib_prefix=no
16368   need_version=no
16369   case $host_cpu in
16370   ia64*)
16371     shrext_cmds='.so'
16372     hardcode_into_libs=yes
16373     dynamic_linker="$host_os dld.so"
16374     shlibpath_var=LD_LIBRARY_PATH
16375     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16377     soname_spec='${libname}${release}${shared_ext}$major'
16378     if test "X$HPUX_IA64_MODE" = X32; then
16379       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16380     else
16381       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16382     fi
16383     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16384     ;;
16385   hppa*64*)
16386     shrext_cmds='.sl'
16387     hardcode_into_libs=yes
16388     dynamic_linker="$host_os dld.sl"
16389     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16390     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392     soname_spec='${libname}${release}${shared_ext}$major'
16393     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16394     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16395     ;;
16396   *)
16397     shrext_cmds='.sl'
16398     dynamic_linker="$host_os dld.sl"
16399     shlibpath_var=SHLIB_PATH
16400     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402     soname_spec='${libname}${release}${shared_ext}$major'
16403     ;;
16404   esac
16405   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16406   postinstall_cmds='chmod 555 $lib'
16407   ;;
16408
16409 interix[3-9]*)
16410   version_type=linux
16411   need_lib_prefix=no
16412   need_version=no
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16414   soname_spec='${libname}${release}${shared_ext}$major'
16415   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=no
16418   hardcode_into_libs=yes
16419   ;;
16420
16421 irix5* | irix6* | nonstopux*)
16422   case $host_os in
16423     nonstopux*) version_type=nonstopux ;;
16424     *)
16425         if test "$lt_cv_prog_gnu_ld" = yes; then
16426                 version_type=linux
16427         else
16428                 version_type=irix
16429         fi ;;
16430   esac
16431   need_lib_prefix=no
16432   need_version=no
16433   soname_spec='${libname}${release}${shared_ext}$major'
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16435   case $host_os in
16436   irix5* | nonstopux*)
16437     libsuff= shlibsuff=
16438     ;;
16439   *)
16440     case $LD in # libtool.m4 will add one of these switches to LD
16441     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16442       libsuff= shlibsuff= libmagic=32-bit;;
16443     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16444       libsuff=32 shlibsuff=N32 libmagic=N32;;
16445     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16446       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16447     *) libsuff= shlibsuff= libmagic=never-match;;
16448     esac
16449     ;;
16450   esac
16451   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16452   shlibpath_overrides_runpath=no
16453   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16454   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16455   hardcode_into_libs=yes
16456   ;;
16457
16458 # No shared lib support for Linux oldld, aout, or coff.
16459 linux*oldld* | linux*aout* | linux*coff*)
16460   dynamic_linker=no
16461   ;;
16462
16463 # This must be Linux ELF.
16464 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16465   version_type=linux
16466   need_lib_prefix=no
16467   need_version=no
16468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469   soname_spec='${libname}${release}${shared_ext}$major'
16470   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   shlibpath_overrides_runpath=no
16473   # Some binutils ld are patched to set DT_RUNPATH
16474   save_LDFLAGS=$LDFLAGS
16475   save_libdir=$libdir
16476   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16477        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h.  */
16480
16481 int
16482 main ()
16483 {
16484
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 if ac_fn_cxx_try_link "$LINENO"; then :
16490   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16491   shlibpath_overrides_runpath=yes
16492 fi
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext \
16495     conftest$ac_exeext conftest.$ac_ext
16496   LDFLAGS=$save_LDFLAGS
16497   libdir=$save_libdir
16498
16499   # This implies no fast_install, which is unacceptable.
16500   # Some rework will be needed to allow for fast_install
16501   # before this can be enabled.
16502   hardcode_into_libs=yes
16503
16504   # Append ld.so.conf contents to the search path
16505   if test -f /etc/ld.so.conf; then
16506     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;/^$/d' | tr '\n' ' '`
16507     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16508   fi
16509
16510   # We used to test for /lib/ld.so.1 and disable shared libraries on
16511   # powerpc, because MkLinux only supported shared libraries with the
16512   # GNU dynamic linker.  Since this was broken with cross compilers,
16513   # most powerpc-linux boxes support dynamic linking these days and
16514   # people can always --disable-shared, the test was removed, and we
16515   # assume the GNU/Linux dynamic linker is in use.
16516   dynamic_linker='GNU/Linux ld.so'
16517   ;;
16518
16519 netbsdelf*-gnu)
16520   version_type=linux
16521   need_lib_prefix=no
16522   need_version=no
16523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16524   soname_spec='${libname}${release}${shared_ext}$major'
16525   shlibpath_var=LD_LIBRARY_PATH
16526   shlibpath_overrides_runpath=no
16527   hardcode_into_libs=yes
16528   dynamic_linker='NetBSD ld.elf_so'
16529   ;;
16530
16531 netbsd*)
16532   version_type=sunos
16533   need_lib_prefix=no
16534   need_version=no
16535   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16537     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16538     dynamic_linker='NetBSD (a.out) ld.so'
16539   else
16540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16541     soname_spec='${libname}${release}${shared_ext}$major'
16542     dynamic_linker='NetBSD ld.elf_so'
16543   fi
16544   shlibpath_var=LD_LIBRARY_PATH
16545   shlibpath_overrides_runpath=yes
16546   hardcode_into_libs=yes
16547   ;;
16548
16549 newsos6)
16550   version_type=linux
16551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   shlibpath_overrides_runpath=yes
16554   ;;
16555
16556 *nto* | *qnx*)
16557   version_type=qnx
16558   need_lib_prefix=no
16559   need_version=no
16560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561   soname_spec='${libname}${release}${shared_ext}$major'
16562   shlibpath_var=LD_LIBRARY_PATH
16563   shlibpath_overrides_runpath=no
16564   hardcode_into_libs=yes
16565   dynamic_linker='ldqnx.so'
16566   ;;
16567
16568 openbsd*)
16569   version_type=sunos
16570   sys_lib_dlsearch_path_spec="/usr/lib"
16571   need_lib_prefix=no
16572   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16573   case $host_os in
16574     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16575     *)                          need_version=no  ;;
16576   esac
16577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16578   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16579   shlibpath_var=LD_LIBRARY_PATH
16580   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16581     case $host_os in
16582       openbsd2.[89] | openbsd2.[89].*)
16583         shlibpath_overrides_runpath=no
16584         ;;
16585       *)
16586         shlibpath_overrides_runpath=yes
16587         ;;
16588       esac
16589   else
16590     shlibpath_overrides_runpath=yes
16591   fi
16592   ;;
16593
16594 os2*)
16595   libname_spec='$name'
16596   shrext_cmds=".dll"
16597   need_lib_prefix=no
16598   library_names_spec='$libname${shared_ext} $libname.a'
16599   dynamic_linker='OS/2 ld.exe'
16600   shlibpath_var=LIBPATH
16601   ;;
16602
16603 osf3* | osf4* | osf5*)
16604   version_type=osf
16605   need_lib_prefix=no
16606   need_version=no
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16611   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16612   ;;
16613
16614 rdos*)
16615   dynamic_linker=no
16616   ;;
16617
16618 solaris*)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   shlibpath_overrides_runpath=yes
16626   hardcode_into_libs=yes
16627   # ldd complains unless libraries are executable
16628   postinstall_cmds='chmod +x $lib'
16629   ;;
16630
16631 sunos4*)
16632   version_type=sunos
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16634   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16635   shlibpath_var=LD_LIBRARY_PATH
16636   shlibpath_overrides_runpath=yes
16637   if test "$with_gnu_ld" = yes; then
16638     need_lib_prefix=no
16639   fi
16640   need_version=yes
16641   ;;
16642
16643 sysv4 | sysv4.3*)
16644   version_type=linux
16645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16646   soname_spec='${libname}${release}${shared_ext}$major'
16647   shlibpath_var=LD_LIBRARY_PATH
16648   case $host_vendor in
16649     sni)
16650       shlibpath_overrides_runpath=no
16651       need_lib_prefix=no
16652       runpath_var=LD_RUN_PATH
16653       ;;
16654     siemens)
16655       need_lib_prefix=no
16656       ;;
16657     motorola)
16658       need_lib_prefix=no
16659       need_version=no
16660       shlibpath_overrides_runpath=no
16661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16662       ;;
16663   esac
16664   ;;
16665
16666 sysv4*MP*)
16667   if test -d /usr/nec ;then
16668     version_type=linux
16669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16670     soname_spec='$libname${shared_ext}.$major'
16671     shlibpath_var=LD_LIBRARY_PATH
16672   fi
16673   ;;
16674
16675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16676   version_type=freebsd-elf
16677   need_lib_prefix=no
16678   need_version=no
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16680   soname_spec='${libname}${release}${shared_ext}$major'
16681   shlibpath_var=LD_LIBRARY_PATH
16682   shlibpath_overrides_runpath=yes
16683   hardcode_into_libs=yes
16684   if test "$with_gnu_ld" = yes; then
16685     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16686   else
16687     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16688     case $host_os in
16689       sco3.2v5*)
16690         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16691         ;;
16692     esac
16693   fi
16694   sys_lib_dlsearch_path_spec='/usr/lib'
16695   ;;
16696
16697 tpf*)
16698   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16699   version_type=linux
16700   need_lib_prefix=no
16701   need_version=no
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   shlibpath_overrides_runpath=no
16705   hardcode_into_libs=yes
16706   ;;
16707
16708 uts4*)
16709   version_type=linux
16710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711   soname_spec='${libname}${release}${shared_ext}$major'
16712   shlibpath_var=LD_LIBRARY_PATH
16713   ;;
16714
16715 *)
16716   dynamic_linker=no
16717   ;;
16718 esac
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16720 $as_echo "$dynamic_linker" >&6; }
16721 test "$dynamic_linker" = no && can_build_shared=no
16722
16723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16724 if test "$GCC" = yes; then
16725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16726 fi
16727
16728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16729   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16730 fi
16731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16732   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16733 fi
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16772 hardcode_action_CXX=
16773 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16774    test -n "$runpath_var_CXX" ||
16775    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16776
16777   # We can hardcode non-existent directories.
16778   if test "$hardcode_direct_CXX" != no &&
16779      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16780      # have to relink, otherwise we might link with an installed library
16781      # when we should be linking with a yet-to-be-installed one
16782      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16783      test "$hardcode_minus_L_CXX" != no; then
16784     # Linking always hardcodes the temporary library directory.
16785     hardcode_action_CXX=relink
16786   else
16787     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16788     hardcode_action_CXX=immediate
16789   fi
16790 else
16791   # We cannot hardcode anything, or else we can only hardcode existing
16792   # directories.
16793   hardcode_action_CXX=unsupported
16794 fi
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16796 $as_echo "$hardcode_action_CXX" >&6; }
16797
16798 if test "$hardcode_action_CXX" = relink ||
16799    test "$inherit_rpath_CXX" = yes; then
16800   # Fast installation is not supported
16801   enable_fast_install=no
16802 elif test "$shlibpath_overrides_runpath" = yes ||
16803      test "$enable_shared" = no; then
16804   # Fast installation is not necessary
16805   enable_fast_install=needless
16806 fi
16807
16808
16809
16810
16811
16812
16813
16814   fi # test -n "$compiler"
16815
16816   CC=$lt_save_CC
16817   LDCXX=$LD
16818   LD=$lt_save_LD
16819   GCC=$lt_save_GCC
16820   with_gnu_ld=$lt_save_with_gnu_ld
16821   lt_cv_path_LDCXX=$lt_cv_path_LD
16822   lt_cv_path_LD=$lt_save_path_LD
16823   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16824   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16825 fi # test "$_lt_caught_CXX_error" != yes
16826
16827 ac_ext=c
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16832
16833  if test "x$CC" != xcc; then
16834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16835 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16836 else
16837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16838 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16839 fi
16840 set dummy $CC; ac_cc=`$as_echo "$2" |
16841                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16842 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
16843   $as_echo_n "(cached) " >&6
16844 else
16845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16847
16848 int
16849 main ()
16850 {
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 # Make sure it works both with $CC and with simple cc.
16857 # We do the test twice because some compilers refuse to overwrite an
16858 # existing .o file with -o, though they will create one.
16859 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16860 rm -f conftest2.*
16861 if { { case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16866 $as_echo "$ac_try_echo"; } >&5
16867   (eval "$ac_try") 2>&5
16868   ac_status=$?
16869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16870   test $ac_status = 0; } &&
16871    test -f conftest2.$ac_objext && { { case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16876 $as_echo "$ac_try_echo"; } >&5
16877   (eval "$ac_try") 2>&5
16878   ac_status=$?
16879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16880   test $ac_status = 0; };
16881 then
16882   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16883   if test "x$CC" != xcc; then
16884     # Test first that cc exists at all.
16885     if { ac_try='cc -c conftest.$ac_ext >&5'
16886   { { case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16891 $as_echo "$ac_try_echo"; } >&5
16892   (eval "$ac_try") 2>&5
16893   ac_status=$?
16894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16895   test $ac_status = 0; }; }; then
16896       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16897       rm -f conftest2.*
16898       if { { case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16903 $as_echo "$ac_try_echo"; } >&5
16904   (eval "$ac_try") 2>&5
16905   ac_status=$?
16906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16907   test $ac_status = 0; } &&
16908          test -f conftest2.$ac_objext && { { case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16913 $as_echo "$ac_try_echo"; } >&5
16914   (eval "$ac_try") 2>&5
16915   ac_status=$?
16916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16917   test $ac_status = 0; };
16918       then
16919         # cc works too.
16920         :
16921       else
16922         # cc exists but doesn't like -o.
16923         eval ac_cv_prog_cc_${ac_cc}_c_o=no
16924       fi
16925     fi
16926   fi
16927 else
16928   eval ac_cv_prog_cc_${ac_cc}_c_o=no
16929 fi
16930 rm -f core conftest*
16931
16932 fi
16933 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16935 $as_echo "yes" >&6; }
16936 else
16937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939
16940 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16941
16942 fi
16943
16944 # FIXME: we rely on the cache variable name because
16945 # there is no other way.
16946 set dummy $CC
16947 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16948 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16949 if test "$am_t" != yes; then
16950    # Losing compiler, so override with the script.
16951    # FIXME: It is wrong to rewrite CC.
16952    # But if we don't then we get into trouble of one sort or another.
16953    # A longer-term fix would be to have automake use am__CC in this case,
16954    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16955    CC="$am_aux_dir/compile $CC"
16956 fi
16957
16958
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16960 $as_echo_n "checking for inline... " >&6; }
16961 if test "${ac_cv_c_inline+set}" = set; then :
16962   $as_echo_n "(cached) " >&6
16963 else
16964   ac_cv_c_inline=no
16965 for ac_kw in inline __inline__ __inline; do
16966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h.  */
16968 #ifndef __cplusplus
16969 typedef int foo_t;
16970 static $ac_kw foo_t static_foo () {return 0; }
16971 $ac_kw foo_t foo () {return 0; }
16972 #endif
16973
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976   ac_cv_c_inline=$ac_kw
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979   test "$ac_cv_c_inline" != no && break
16980 done
16981
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16984 $as_echo "$ac_cv_c_inline" >&6; }
16985
16986 case $ac_cv_c_inline in
16987   inline | yes) ;;
16988   *)
16989     case $ac_cv_c_inline in
16990       no) ac_val=;;
16991       *) ac_val=$ac_cv_c_inline;;
16992     esac
16993     cat >>confdefs.h <<_ACEOF
16994 #ifndef __cplusplus
16995 #define inline $ac_val
16996 #endif
16997 _ACEOF
16998     ;;
16999 esac
17000
17001
17002
17003
17004
17005 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17006         if test -n "$ac_tool_prefix"; then
17007   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17008 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010 $as_echo_n "checking for $ac_word... " >&6; }
17011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17012   $as_echo_n "(cached) " >&6
17013 else
17014   case $PKG_CONFIG in
17015   [\\/]* | ?:[\\/]*)
17016   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17017   ;;
17018   *)
17019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17020 for as_dir in $PATH
17021 do
17022   IFS=$as_save_IFS
17023   test -z "$as_dir" && as_dir=.
17024     for ac_exec_ext in '' $ac_executable_extensions; do
17025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17026     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17028     break 2
17029   fi
17030 done
17031   done
17032 IFS=$as_save_IFS
17033
17034   ;;
17035 esac
17036 fi
17037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17038 if test -n "$PKG_CONFIG"; then
17039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17040 $as_echo "$PKG_CONFIG" >&6; }
17041 else
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 $as_echo "no" >&6; }
17044 fi
17045
17046
17047 fi
17048 if test -z "$ac_cv_path_PKG_CONFIG"; then
17049   ac_pt_PKG_CONFIG=$PKG_CONFIG
17050   # Extract the first word of "pkg-config", so it can be a program name with args.
17051 set dummy pkg-config; ac_word=$2
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17053 $as_echo_n "checking for $ac_word... " >&6; }
17054 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17055   $as_echo_n "(cached) " >&6
17056 else
17057   case $ac_pt_PKG_CONFIG in
17058   [\\/]* | ?:[\\/]*)
17059   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17060   ;;
17061   *)
17062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17064 do
17065   IFS=$as_save_IFS
17066   test -z "$as_dir" && as_dir=.
17067     for ac_exec_ext in '' $ac_executable_extensions; do
17068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17069     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17071     break 2
17072   fi
17073 done
17074   done
17075 IFS=$as_save_IFS
17076
17077   ;;
17078 esac
17079 fi
17080 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17081 if test -n "$ac_pt_PKG_CONFIG"; then
17082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17083 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17084 else
17085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086 $as_echo "no" >&6; }
17087 fi
17088
17089   if test "x$ac_pt_PKG_CONFIG" = x; then
17090     PKG_CONFIG=""
17091   else
17092     case $cross_compiling:$ac_tool_warned in
17093 yes:)
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17096 ac_tool_warned=yes ;;
17097 esac
17098     PKG_CONFIG=$ac_pt_PKG_CONFIG
17099   fi
17100 else
17101   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17102 fi
17103
17104 fi
17105 if test -n "$PKG_CONFIG"; then
17106         _pkg_min_version=0.9.0
17107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17108 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17109         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17110                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17111 $as_echo "yes" >&6; }
17112         else
17113                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114 $as_echo "no" >&6; }
17115                 PKG_CONFIG=""
17116         fi
17117
17118 fi
17119 if test "x$PKG_CONFIG" = x; then
17120         as_fn_error $? "pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)" "$LINENO" 5
17121 fi
17122
17123 case `$PKG_CONFIG --version` in
17124 0.?|0.?.?|0.1[0-7]|0.1[0-7].?) PKGCONFIG_REQUIRES="Requires"; ;;
17125 *) PKGCONFIG_REQUIRES="Requires.private"; ;;
17126 esac
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145                                                 CAIRO_MAKEFILE___WIN32='# Generated by configure.  Modify to customize.
17146 '
17147
17148                         ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features"
17149
17150
17151
17152
17153                                                 CAIRO_MAKEFILE_cairo_AMAKE='# Generated by configure.  Do not edit.
17154 '
17155
17156                         ac_config_commands="$ac_config_commands $srcdir/src/Makefile.am.features"
17157
17158
17159                                                 CAIRO_MAKEFILE_cairo_WIN32='# Generated by configure.  Do not edit.
17160 '
17161
17162                         ac_config_commands="$ac_config_commands $srcdir/src/Makefile.win32.features"
17163
17164
17165
17166                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='# Generated by configure.  Do not edit.
17167 '
17168
17169                         ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.am.features"
17170
17171
17172                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32='# Generated by configure.  Do not edit.
17173 '
17174
17175                         ac_config_commands="$ac_config_commands $srcdir/boilerplate/Makefile.win32.features"
17176
17177                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17178 "'include $(top_srcdir)/src/Makefile.sources
17179 '
17180
17181                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17182 "'ifeq ($(top_srcdir),)
17183 include Makefile.sources
17184 else
17185 include $(top_srcdir)/src/Makefile.sources
17186 endif
17187 '
17188
17189                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17190 "'include $(top_srcdir)/boilerplate/Makefile.sources
17191 '
17192
17193                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17194 "'ifeq ($(top_srcdir),)
17195 include Makefile.sources
17196 else
17197 include $(top_srcdir)/boilerplate/Makefile.sources
17198 endif
17199 '
17200
17201
17202
17203                                                 cr_make_tmp='supported_cairo_headers = $(cairo_headers)'
17204                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17205 ""$cr_make_tmp"
17206
17207                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17208 ""$cr_make_tmp"
17209
17210                                                         cr_make_tmp='supported_cairo_boilerplate_headers = $(cairo_boilerplate_headers)'
17211                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17212 ""$cr_make_tmp"
17213
17214                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17215 ""$cr_make_tmp"
17216
17217
17218                                                 cr_make_tmp='unsupported_cairo_headers ='
17219                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17220 ""$cr_make_tmp"
17221
17222                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17223 ""$cr_make_tmp"
17224
17225                                                         cr_make_tmp='unsupported_cairo_boilerplate_headers ='
17226                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17227 ""$cr_make_tmp"
17228
17229                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17230 ""$cr_make_tmp"
17231
17232
17233                                                 cr_make_tmp='all_cairo_headers = $(cairo_headers)
17234 all_cairo_private = $(cairo_private)
17235 all_cairo_cxx_sources = $(cairo_cxx_sources)
17236 all_cairo_sources = $(cairo_sources)
17237 '
17238                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17239 ""$cr_make_tmp"
17240
17241                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17242 ""$cr_make_tmp"
17243
17244                                                         cr_make_tmp='all_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
17245 all_cairo_boilerplate_private = $(cairo_boilerplate_private)
17246 all_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
17247 all_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
17248 '
17249                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17250 ""$cr_make_tmp"
17251
17252                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17253 ""$cr_make_tmp"
17254
17255
17256                                                 cr_make_tmp='enabled_cairo_headers = $(cairo_headers)
17257 enabled_cairo_private = $(cairo_private)
17258 enabled_cairo_cxx_sources = $(cairo_cxx_sources)
17259 enabled_cairo_sources = $(cairo_sources)
17260 '
17261                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17262 ""$cr_make_tmp"
17263
17264                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17265 ""$cr_make_tmp"
17266
17267                                                         cr_make_tmp='enabled_cairo_boilerplate_headers = $(cairo_boilerplate_headers)
17268 enabled_cairo_boilerplate_private = $(cairo_boilerplate_private)
17269 enabled_cairo_boilerplate_cxx_sources = $(cairo_boilerplate_cxx_sources)
17270 enabled_cairo_boilerplate_sources = $(cairo_boilerplate_sources)
17271 '
17272                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
17273 ""$cr_make_tmp"
17274
17275                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
17276 ""$cr_make_tmp"
17277
17278
17279
17280
17281
17282
17283
17284 ac_config_files="$ac_config_files src/cairo.pc"
17285 ac_config_files="$ac_config_files cairo-uninstalled.pc:src/cairo-uninstalled.pc.in"
17286
17287                                                                                                                                         CAIRO_REQUIRES=""
17288                                                                                                                                 CAIRO_CFLAGS=""
17289 CAIRO_NONPKGCONFIG_CFLAGS=""
17290                                                                                                                                 CAIRO_LIBS="$LIBS"
17291 CAIRO_NONPKGCONFIG_LIBS="$LIBS"
17292
17293
17294
17295
17296
17297
17298                                                         cr_make_tmp='all_cairo_pkgconf = cairo.pc'
17299                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17300 ""$cr_make_tmp"
17301
17302                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17303 ""$cr_make_tmp"
17304
17305
17306                                                         cr_make_tmp='enabled_cairo_pkgconf = cairo.pc'
17307                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
17308 ""$cr_make_tmp"
17309
17310                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
17311 ""$cr_make_tmp"
17312
17313
17314
17315
17316                                 CAIRO_FEATURES=''
17317                                                 CAIRO_SUPPORTED_FEATURES=''
17318                                                 CAIRO_NO_FEATURES=''
17319
17320         ac_config_commands="$ac_config_commands src/cairo-features.h"
17321
17322         ac_config_commands="$ac_config_commands src/cairo-supported-features.h"
17323
17324
17325
17326
17327
17328                                                 CAIRO_MAKEFILE_win32_features_h_WIN32='# Generated by configure.  Do not edit.
17329 '
17330
17331                         ac_config_commands="$ac_config_commands $srcdir/build/Makefile.win32.features-h"
17332
17333
17334                                                         cr_make_tmp='$(top_srcdir)/src/cairo-features.h: $(top_srcdir)/build/Makefile.win32.features
17335         @echo "Generating src/cairo-features.h"
17336         @echo "/* Generated by Makefile.win32.features-h.  Do not edit. */" > $(top_srcdir)/src/cairo-features.h
17337         @echo "#ifndef CAIRO_FEATURES_H" >> $(top_srcdir)/src/cairo-features.h
17338         @echo "#define CAIRO_FEATURES_H 1" >> $(top_srcdir)/src/cairo-features.h'
17339                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
17340 ""$cr_make_tmp"
17341
17342
17343
17344
17345
17346                                 CAIRO_WARNING_MESSAGE=''
17347
17348
17349
17350
17351                                 CAIRO_NATIVE_SURFACE_BACKENDS=''
17352                                         CAIRO_NATIVE_FONT_BACKENDS=''
17353
17354
17355
17356
17357
17358
17359 # -Wcast-align generates lots of false positive reports we need to
17360 # cast image data from uint8_t to uin32_t.
17361
17362 # -Wlogical-op causes too much noise from strcmp("literal", str)
17363
17364 MAYBE_WARN="-Wall -Wextra \
17365 -Wold-style-definition -Wdeclaration-after-statement \
17366 -Wmissing-declarations -Werror-implicit-function-declaration \
17367 -Wnested-externs -Wpointer-arith -Wwrite-strings \
17368 -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \
17369 -Wpacked -Wswitch-enum -Wmissing-format-attribute \
17370 -Wbad-function-cast -Wvolatile-register-var \
17371 -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
17372 -Wno-missing-field-initializers -Wno-unused-parameter \
17373 -Wno-attributes -Wno-long-long -Winline"
17374
17375 # -Wunused-but-set-variable is too noisy at present
17376 NO_WARN="-Wno-unused-but-set-variable"
17377
17378 MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
17379                         -erroff=E_ENUM_TYPE_MISMATCH_OP"
17380
17381
17382
17383 safe_MAYBE_WARN="$MAYBE_WARN"
17384 MAYBE_WARN="$MAYBE_WARN -flto"
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h.  */
17387
17388 int
17389 main ()
17390 {
17391
17392         int main(int argc, char **argv) { return 0; }
17393
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 if ac_fn_c_try_link "$LINENO"; then :
17399
17400 else
17401
17402         MAYBE_WARN="$safe_MAYBE_WARN"
17403
17404 fi
17405 rm -f core conftest.err conftest.$ac_objext \
17406     conftest$ac_exeext conftest.$ac_ext
17407
17408 MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
17409
17410 MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
17411
17412 MAYBE_WARN="$MAYBE_WARN $NO_WARN"
17413
17414 # invalidate cached value if MAYBE_WARN has changed
17415 if test "x$cairo_cv_warn_maybe" != "x$MAYBE_WARN"; then
17416         unset cairo_cv_warn_cflags
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
17419 $as_echo_n "checking for supported warning flags... " >&6; }
17420 if test "${cairo_cv_warn_cflags+set}" = set; then :
17421   $as_echo_n "(cached) " >&6
17422 else
17423
17424         echo
17425         WARN_CFLAGS=""
17426
17427         # Some warning options are not supported by all versions of
17428         # gcc, so test all desired options against the current
17429         # compiler.
17430         #
17431         # Note that there are some order dependencies
17432         # here. Specifically, an option that disables a warning will
17433         # have no net effect if a later option then enables that
17434         # warnings, (perhaps implicitly). So we put some grouped
17435         # options (-Wall and -Wextra) up front and the -Wno options
17436         # last.
17437
17438         for W in $MAYBE_WARN; do
17439                                 _test_WERROR=${WERROR+set}
17440         if test "z$_test_WERROR" != zset; then
17441                 WERROR=""
17442                 for _werror in -Werror -errwarn; do
17443                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
17444 $as_echo_n "checking whether $CC supports $_werror... " >&6; }
17445                                         # AC_LANG_PROGRAM() produces a main() w/o args,
17446         # but -Wold-style-definition doesn't like that.
17447         # We need _some_ program so that we don't get
17448         # warnings about empty compilation units, so always
17449         # append a reasonable main().
17450         _compile_program=""'
17451                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
17452
17453         _save_cflags="$CFLAGS"
17454         _save_ldflags="$LDFLAGS"
17455         _save_libs="$LIBS"
17456         CFLAGS="$CFLAGS $_werror"
17457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h.  */
17459 $_compile_program
17460 _ACEOF
17461 if ac_fn_c_try_link "$LINENO"; then :
17462   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17463                  cairo_cc_flag=yes
17464 else
17465   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17466                  cairo_cc_flag=no
17467 fi
17468 rm -f core conftest.err conftest.$ac_objext \
17469     conftest$ac_exeext conftest.$ac_ext
17470
17471         if test "x$cairo_cc_stderr" != "x"; then
17472                 cairo_cc_flag=no
17473         fi
17474
17475         if test "x$cairo_cc_flag" = "xyes"; then
17476                 WERROR="$WERROR $_werror"
17477         else
17478                 :
17479         fi
17480         CFLAGS="$_save_cflags"
17481         LDFLAGS="$_save_ldflags"
17482         LIBS="$_save_libs"
17483
17484
17485                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
17486 $as_echo "$cairo_cc_flag" >&6; }
17487                 done
17488         fi
17489
17490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
17491 $as_echo_n "checking whether $CC supports $W... " >&6; }
17492                         # AC_LANG_PROGRAM() produces a main() w/o args,
17493         # but -Wold-style-definition doesn't like that.
17494         # We need _some_ program so that we don't get
17495         # warnings about empty compilation units, so always
17496         # append a reasonable main().
17497         _compile_program=""'
17498                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
17499
17500         _save_cflags="$CFLAGS"
17501         _save_ldflags="$LDFLAGS"
17502         _save_libs="$LIBS"
17503         CFLAGS="$CFLAGS $WERROR $W"
17504         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h.  */
17506 $_compile_program
17507 _ACEOF
17508 if ac_fn_c_try_link "$LINENO"; then :
17509   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17510                  cairo_cc_flag=yes
17511 else
17512   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17513                  cairo_cc_flag=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516     conftest$ac_exeext conftest.$ac_ext
17517
17518         if test "x$cairo_cc_stderr" != "x"; then
17519                 cairo_cc_flag=no
17520         fi
17521
17522         if test "x$cairo_cc_flag" = "xyes"; then
17523                 WARN_CFLAGS="$WARN_CFLAGS $W"
17524         else
17525                 :
17526         fi
17527         CFLAGS="$_save_cflags"
17528         LDFLAGS="$_save_ldflags"
17529         LIBS="$_save_libs"
17530
17531
17532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
17533 $as_echo "$cairo_cc_flag" >&6; }
17534
17535         done
17536
17537         cairo_cv_warn_cflags=$WARN_CFLAGS
17538         cairo_cv_warn_maybe=$MAYBE_WARN
17539
17540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
17541 $as_echo_n "checking which warning flags were supported... " >&6; }
17542
17543 fi
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_cflags" >&5
17545 $as_echo "$cairo_cv_warn_cflags" >&6; }
17546 WARN_CFLAGS="$cairo_cv_warn_cflags"
17547 CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS"
17548
17549 # We only wish to enable attribute(warn_unused_result) if we can prevent
17550 # gcc from generating thousands of warnings about the misapplication of the
17551 # attribute to void functions and variables.
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to enable unused result warnings" >&5
17553 $as_echo_n "checking how to enable unused result warnings... " >&6; }
17554 if test "${cairo_cv_warn_unused_result+set}" = set; then :
17555   $as_echo_n "(cached) " >&6
17556 else
17557
17558
17559         cairo_cv_warn_unused_result=""
17560         if echo $WARN_CFLAGS | $GREP -e '-Wno-attributes' >/dev/null; then
17561                         # AC_LANG_PROGRAM() produces a main() w/o args,
17562         # but -Wold-style-definition doesn't like that.
17563         # We need _some_ program so that we don't get
17564         # warnings about empty compilation units, so always
17565         # append a reasonable main().
17566         _compile_program="__attribute__((__warn_unused_result__)) void f (void) {}
17567                          __attribute__((__warn_unused_result__)) int g;"'
17568                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
17569
17570         _save_cflags="$CFLAGS"
17571         _save_ldflags="$LDFLAGS"
17572         _save_libs="$LIBS"
17573         CFLAGS="$CFLAGS -Wno-attributes"
17574         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h.  */
17576 $_compile_program
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"; then :
17579   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17580                  cairo_cc_flag=yes
17581 else
17582   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17583                  cairo_cc_flag=no
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext \
17586     conftest$ac_exeext conftest.$ac_ext
17587
17588         if test "x$cairo_cc_stderr" != "x"; then
17589                 cairo_cc_flag=no
17590         fi
17591
17592         if test "x$cairo_cc_flag" = "xyes"; then
17593                 cairo_cv_warn_unused_result="__attribute__((__warn_unused_result__))"
17594         else
17595                 :
17596         fi
17597         CFLAGS="$_save_cflags"
17598         LDFLAGS="$_save_ldflags"
17599         LIBS="$_save_libs"
17600
17601
17602         fi
17603
17604 fi
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_warn_unused_result" >&5
17606 $as_echo "$cairo_cv_warn_unused_result" >&6; }
17607
17608 cat >>confdefs.h <<_ACEOF
17609 #define WARN_UNUSED_RESULT $cairo_cv_warn_unused_result
17610 _ACEOF
17611
17612
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allow undefined symbols in shared libraries used by test suite" >&5
17614 $as_echo_n "checking how to allow undefined symbols in shared libraries used by test suite... " >&6; }
17615 if test "${cairo_cv_test_undefined_ldflags+set}" = set; then :
17616   $as_echo_n "(cached) " >&6
17617 else
17618                 # AC_LANG_PROGRAM() produces a main() w/o args,
17619         # but -Wold-style-definition doesn't like that.
17620         # We need _some_ program so that we don't get
17621         # warnings about empty compilation units, so always
17622         # append a reasonable main().
17623         _compile_program=""'
17624                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
17625
17626         _save_cflags="$CFLAGS"
17627         _save_ldflags="$LDFLAGS"
17628         _save_libs="$LIBS"
17629         CFLAGS="$CFLAGS -Wl,--allow-shlib-undefined"
17630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h.  */
17632 $_compile_program
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17636                  cairo_cc_flag=yes
17637 else
17638   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
17639                  cairo_cc_flag=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642     conftest$ac_exeext conftest.$ac_ext
17643
17644         if test "x$cairo_cc_stderr" != "x"; then
17645                 cairo_cc_flag=no
17646         fi
17647
17648         if test "x$cairo_cc_flag" = "xyes"; then
17649                 cairo_cv_test_undefined_ldflags="-Wl,--allow-shlib-undefined"
17650         else
17651                 :
17652         fi
17653         CFLAGS="$_save_cflags"
17654         LDFLAGS="$_save_ldflags"
17655         LIBS="$_save_libs"
17656
17657
17658 fi
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_test_undefined_ldflags" >&5
17660 $as_echo "$cairo_cv_test_undefined_ldflags" >&6; }
17661 CAIRO_TEST_UNDEFINED_LDFLAGS="$cairo_cv_test_undefined_ldflags"
17662
17663
17664
17665  if test "x$cross_compiling" = "xyes"; then
17666   CROSS_COMPILING_TRUE=
17667   CROSS_COMPILING_FALSE='#'
17668 else
17669   CROSS_COMPILING_TRUE='#'
17670   CROSS_COMPILING_FALSE=
17671 fi
17672
17673         case $host_os in
17674                 darwin*)
17675
17676                 ;;
17677                 *)
17678          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17679 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17680 if test "${ac_cv_c_bigendian+set}" = set; then :
17681   $as_echo_n "(cached) " >&6
17682 else
17683   ac_cv_c_bigendian=unknown
17684     # See if we're dealing with a universal compiler.
17685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h.  */
17687 #ifndef __APPLE_CC__
17688                not a universal capable compiler
17689              #endif
17690              typedef int dummy;
17691
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694
17695         # Check for potential -arch flags.  It is not universal unless
17696         # there are at least two -arch flags with different values.
17697         ac_arch=
17698         ac_prev=
17699         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17700          if test -n "$ac_prev"; then
17701            case $ac_word in
17702              i?86 | x86_64 | ppc | ppc64)
17703                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17704                  ac_arch=$ac_word
17705                else
17706                  ac_cv_c_bigendian=universal
17707                  break
17708                fi
17709                ;;
17710            esac
17711            ac_prev=
17712          elif test "x$ac_word" = "x-arch"; then
17713            ac_prev=arch
17714          fi
17715        done
17716 fi
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718     if test $ac_cv_c_bigendian = unknown; then
17719       # See if sys/param.h defines the BYTE_ORDER macro.
17720       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h.  */
17722 #include <sys/types.h>
17723              #include <sys/param.h>
17724
17725 int
17726 main ()
17727 {
17728 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17729                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17730                      && LITTLE_ENDIAN)
17731               bogus endian macros
17732              #endif
17733
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 if ac_fn_c_try_compile "$LINENO"; then :
17739   # It does; now see whether it defined to BIG_ENDIAN or not.
17740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h.  */
17742 #include <sys/types.h>
17743                 #include <sys/param.h>
17744
17745 int
17746 main ()
17747 {
17748 #if BYTE_ORDER != BIG_ENDIAN
17749                  not big endian
17750                 #endif
17751
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 if ac_fn_c_try_compile "$LINENO"; then :
17757   ac_cv_c_bigendian=yes
17758 else
17759   ac_cv_c_bigendian=no
17760 fi
17761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17762 fi
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17764     fi
17765     if test $ac_cv_c_bigendian = unknown; then
17766       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h.  */
17769 #include <limits.h>
17770
17771 int
17772 main ()
17773 {
17774 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17775               bogus endian macros
17776              #endif
17777
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 if ac_fn_c_try_compile "$LINENO"; then :
17783   # It does; now see whether it defined to _BIG_ENDIAN or not.
17784          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h.  */
17786 #include <limits.h>
17787
17788 int
17789 main ()
17790 {
17791 #ifndef _BIG_ENDIAN
17792                  not big endian
17793                 #endif
17794
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 if ac_fn_c_try_compile "$LINENO"; then :
17800   ac_cv_c_bigendian=yes
17801 else
17802   ac_cv_c_bigendian=no
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807     fi
17808     if test $ac_cv_c_bigendian = unknown; then
17809       # Compile a test program.
17810       if test "$cross_compiling" = yes; then :
17811   # Try to guess by grepping values from an object file.
17812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h.  */
17814 short int ascii_mm[] =
17815                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17816                 short int ascii_ii[] =
17817                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17818                 int use_ascii (int i) {
17819                   return ascii_mm[i] + ascii_ii[i];
17820                 }
17821                 short int ebcdic_ii[] =
17822                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17823                 short int ebcdic_mm[] =
17824                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17825                 int use_ebcdic (int i) {
17826                   return ebcdic_mm[i] + ebcdic_ii[i];
17827                 }
17828                 extern int foo;
17829
17830 int
17831 main ()
17832 {
17833 return use_ascii (foo) == use_ebcdic (foo);
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"; then :
17839   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17840               ac_cv_c_bigendian=yes
17841             fi
17842             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17843               if test "$ac_cv_c_bigendian" = unknown; then
17844                 ac_cv_c_bigendian=no
17845               else
17846                 # finding both strings is unlikely to happen, but who knows?
17847                 ac_cv_c_bigendian=unknown
17848               fi
17849             fi
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 else
17853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h.  */
17855 $ac_includes_default
17856 int
17857 main ()
17858 {
17859
17860              /* Are we little or big endian?  From Harbison&Steele.  */
17861              union
17862              {
17863                long int l;
17864                char c[sizeof (long int)];
17865              } u;
17866              u.l = 1;
17867              return u.c[sizeof (long int) - 1] == 1;
17868
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 if ac_fn_c_try_run "$LINENO"; then :
17874   ac_cv_c_bigendian=no
17875 else
17876   ac_cv_c_bigendian=yes
17877 fi
17878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17879   conftest.$ac_objext conftest.beam conftest.$ac_ext
17880 fi
17881
17882     fi
17883 fi
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17885 $as_echo "$ac_cv_c_bigendian" >&6; }
17886  case $ac_cv_c_bigendian in #(
17887    yes)
17888      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17889 ;; #(
17890    no)
17891       ;; #(
17892    universal)
17893
17894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17895
17896      ;; #(
17897    *)
17898      as_fn_error $? "unknown endianness
17899  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
17900  esac
17901
17902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
17903 $as_echo_n "checking whether float word ordering is bigendian... " >&6; }
17904 if test "${ax_cv_c_float_words_bigendian+set}" = set; then :
17905   $as_echo_n "(cached) " >&6
17906 else
17907
17908
17909 # The endianess is detected by first compiling C code that contains a special
17910 # double float value, then grepping the resulting object file for certain
17911 # strings of ascii values. The double is specially crafted to have a
17912 # binary representation that corresponds with a simple string. In this
17913 # implementation, the string "noonsees" was selected because the individual
17914 # word values ("noon" and "sees") are palindromes, thus making this test
17915 # byte-order agnostic. If grep finds the string "noonsees" in the object
17916 # file, the target platform stores float words in big-endian order. If grep
17917 # finds "seesnoon", float words are in little-endian order. If neither value
17918 # is found, the user is instructed to specify the ordering.
17919
17920 ax_cv_c_float_words_bigendian=unknown
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h.  */
17923
17924
17925 double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
17926
17927
17928 _ACEOF
17929 if ac_fn_c_try_compile "$LINENO"; then :
17930
17931
17932 if strings - conftest.$ac_objext | grep noonsees >/dev/null ; then
17933   ax_cv_c_float_words_bigendian=yes
17934 fi
17935 if strings - conftest.$ac_objext | grep seesnoon >/dev/null ; then
17936   if test "$ax_cv_c_float_words_bigendian" = unknown; then
17937     ax_cv_c_float_words_bigendian=no
17938   else
17939     ax_cv_c_float_words_bigendian=unknown
17940   fi
17941 fi
17942
17943
17944 fi
17945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946 fi
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
17948 $as_echo "$ax_cv_c_float_words_bigendian" >&6; }
17949
17950 case $ax_cv_c_float_words_bigendian in
17951   yes)
17952
17953 $as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
17954  ;;
17955   no)
17956      ;;
17957   *)
17958     as_fn_error $? "
17959
17960 Unknown float word ordering. You need to manually preset
17961 ax_cv_c_float_words_bigendian=no (or yes) according to your system.
17962
17963     " "$LINENO" 5  ;;
17964 esac
17965
17966
17967                 ;;
17968         esac
17969
17970 # Check whether --enable-atomic was given.
17971 if test "${enable_atomic+set}" = set; then :
17972   enableval=$enable_atomic; use_atomic=$enableval
17973 else
17974   use_atomic=yes
17975 fi
17976
17977 if test "x$use_atomic" = "xyes"; then :
17978
17979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
17980 $as_echo_n "checking for native atomic primitives... " >&6; }
17981 if test "${cairo_cv_atomic_primitives+set}" = set; then :
17982   $as_echo_n "(cached) " >&6
17983 else
17984
17985                 cairo_cv_atomic_primitives="none"
17986
17987                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h.  */
17989
17990 int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
17991 int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
17992
17993 int
17994 main ()
17995 {
17996
17997   ;
17998   return 0;
17999 }
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002   cairo_cv_atomic_primitives="Intel"
18003
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext \
18006     conftest$ac_exeext conftest.$ac_ext
18007
18008                 if test "x$cairo_cv_atomic_primitives" = "xnone"; then
18009                         ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
18010 if test "x$ac_cv_header_atomic_ops_h" = x""yes; then :
18011   cairo_cv_atomic_primitives="libatomic-ops"
18012 fi
18013
18014
18015                 fi
18016
18017                 if test "x$cairo_cv_atomic_primitives" = "xnone"; then
18018                         ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
18019 if test "x$ac_cv_header_libkern_OSAtomic_h" = x""yes; then :
18020   cairo_cv_atomic_primitives="OSAtomic"
18021 fi
18022
18023
18024                 fi
18025
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_primitives" >&5
18028 $as_echo "$cairo_cv_atomic_primitives" >&6; }
18029         if test "x$cairo_cv_atomic_primitives" = xIntel; then
18030
18031 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
18032
18033         fi
18034
18035         if test "x$cairo_cv_atomic_primitives" = "xlibatomic-ops"; then
18036
18037 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
18038
18039         fi
18040
18041         if test "x$cairo_cv_atomic_primitives" = xOSAtomic; then
18042
18043 $as_echo "#define HAVE_OS_ATOMIC_OPS 1" >>confdefs.h
18044
18045         fi
18046
18047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic ops require a memory barrier" >&5
18048 $as_echo_n "checking whether atomic ops require a memory barrier... " >&6; }
18049 if test "${cairo_cv_atomic_op_needs_memory_barrier+set}" = set; then :
18050   $as_echo_n "(cached) " >&6
18051 else
18052
18053                 case $host_cpu in
18054                     i?86)       cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18055                     x86_64)     cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18056                     arm*)       cairo_cv_atomic_op_needs_memory_barrier="no"  ;;
18057                     *)          cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
18058                 esac
18059
18060 fi
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_atomic_op_needs_memory_barrier" >&5
18062 $as_echo "$cairo_cv_atomic_op_needs_memory_barrier" >&6; }
18063         if test "x$cairo_cv_atomic_op_needs_memory_barrier" = "xyes"; then
18064
18065 cat >>confdefs.h <<_ACEOF
18066 #define ATOMIC_OP_NEEDS_MEMORY_BARRIER 1
18067 _ACEOF
18068
18069         fi
18070
18071
18072 fi
18073 # The cast to long int works around a bug in the HP C Compiler
18074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18076 # This bug is HP SR number 8606223364.
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18078 $as_echo_n "checking size of void *... " >&6; }
18079 if test "${ac_cv_sizeof_void_p+set}" = set; then :
18080   $as_echo_n "(cached) " >&6
18081 else
18082   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18083
18084 else
18085   if test "$ac_cv_type_void_p" = yes; then
18086      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18088 as_fn_error 77 "cannot compute sizeof (void *)
18089 See \`config.log' for more details" "$LINENO" 5 ; }
18090    else
18091      ac_cv_sizeof_void_p=0
18092    fi
18093 fi
18094
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18097 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18098
18099
18100
18101 cat >>confdefs.h <<_ACEOF
18102 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18103 _ACEOF
18104
18105
18106 # The cast to long int works around a bug in the HP C Compiler
18107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18109 # This bug is HP SR number 8606223364.
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18111 $as_echo_n "checking size of int... " >&6; }
18112 if test "${ac_cv_sizeof_int+set}" = set; then :
18113   $as_echo_n "(cached) " >&6
18114 else
18115   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18116
18117 else
18118   if test "$ac_cv_type_int" = yes; then
18119      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18121 as_fn_error 77 "cannot compute sizeof (int)
18122 See \`config.log' for more details" "$LINENO" 5 ; }
18123    else
18124      ac_cv_sizeof_int=0
18125    fi
18126 fi
18127
18128 fi
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18130 $as_echo "$ac_cv_sizeof_int" >&6; }
18131
18132
18133
18134 cat >>confdefs.h <<_ACEOF
18135 #define SIZEOF_INT $ac_cv_sizeof_int
18136 _ACEOF
18137
18138
18139 # The cast to long int works around a bug in the HP C Compiler
18140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18142 # This bug is HP SR number 8606223364.
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18144 $as_echo_n "checking size of long... " >&6; }
18145 if test "${ac_cv_sizeof_long+set}" = set; then :
18146   $as_echo_n "(cached) " >&6
18147 else
18148   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18149
18150 else
18151   if test "$ac_cv_type_long" = yes; then
18152      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18154 as_fn_error 77 "cannot compute sizeof (long)
18155 See \`config.log' for more details" "$LINENO" 5 ; }
18156    else
18157      ac_cv_sizeof_long=0
18158    fi
18159 fi
18160
18161 fi
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18163 $as_echo "$ac_cv_sizeof_long" >&6; }
18164
18165
18166
18167 cat >>confdefs.h <<_ACEOF
18168 #define SIZEOF_LONG $ac_cv_sizeof_long
18169 _ACEOF
18170
18171
18172 # The cast to long int works around a bug in the HP C Compiler
18173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18175 # This bug is HP SR number 8606223364.
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18177 $as_echo_n "checking size of long long... " >&6; }
18178 if test "${ac_cv_sizeof_long_long+set}" = set; then :
18179   $as_echo_n "(cached) " >&6
18180 else
18181   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
18182
18183 else
18184   if test "$ac_cv_type_long_long" = yes; then
18185      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18187 as_fn_error 77 "cannot compute sizeof (long long)
18188 See \`config.log' for more details" "$LINENO" 5 ; }
18189    else
18190      ac_cv_sizeof_long_long=0
18191    fi
18192 fi
18193
18194 fi
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18196 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18197
18198
18199
18200 cat >>confdefs.h <<_ACEOF
18201 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18202 _ACEOF
18203
18204
18205 # The cast to long int works around a bug in the HP C Compiler
18206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18208 # This bug is HP SR number 8606223364.
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
18210 $as_echo_n "checking size of size_t... " >&6; }
18211 if test "${ac_cv_sizeof_size_t+set}" = set; then :
18212   $as_echo_n "(cached) " >&6
18213 else
18214   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
18215
18216 else
18217   if test "$ac_cv_type_size_t" = yes; then
18218      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18220 as_fn_error 77 "cannot compute sizeof (size_t)
18221 See \`config.log' for more details" "$LINENO" 5 ; }
18222    else
18223      ac_cv_sizeof_size_t=0
18224    fi
18225 fi
18226
18227 fi
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
18229 $as_echo "$ac_cv_sizeof_size_t" >&6; }
18230
18231
18232
18233 cat >>confdefs.h <<_ACEOF
18234 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18235 _ACEOF
18236
18237
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18240 $as_echo_n "checking for native Win32... " >&6; }
18241 case "$host" in
18242   *-*-mingw*)
18243     cairo_os_win32=yes
18244     ;;
18245   *)
18246     cairo_os_win32=no
18247     ;;
18248 esac
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_os_win32" >&5
18250 $as_echo "$cairo_os_win32" >&6; }
18251  if test "$cairo_os_win32" = "yes"; then
18252   OS_WIN32_TRUE=
18253   OS_WIN32_FALSE='#'
18254 else
18255   OS_WIN32_TRUE='#'
18256   OS_WIN32_FALSE=
18257 fi
18258
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun Solaris (non-POSIX ctime_r)" >&5
18261 $as_echo_n "checking for Sun Solaris (non-POSIX ctime_r)... " >&6; }
18262 case "$host" in
18263     *-*-solaris*)
18264         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
18265         solaris_posix_pthread=yes
18266         ;;
18267     *)
18268         solaris_posix_pthread=no
18269         ;;
18270 esac
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $solaris_posix_pthread" >&5
18272 $as_echo "$solaris_posix_pthread" >&6; }
18273
18274
18275 LIBM=
18276 case $host in
18277 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
18278   # These system don't have libm, or don't need it
18279   ;;
18280 *-ncr-sysv4.3*)
18281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
18282 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
18283 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
18284   $as_echo_n "(cached) " >&6
18285 else
18286   ac_check_lib_save_LIBS=$LIBS
18287 LIBS="-lmw  $LIBS"
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h.  */
18290
18291 /* Override any GCC internal prototype to avoid an error.
18292    Use char because int might match the return type of a GCC
18293    builtin and then its argument prototype would still apply.  */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char _mwvalidcheckl ();
18298 int
18299 main ()
18300 {
18301 return _mwvalidcheckl ();
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"; then :
18307   ac_cv_lib_mw__mwvalidcheckl=yes
18308 else
18309   ac_cv_lib_mw__mwvalidcheckl=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext \
18312     conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
18316 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
18317 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
18318   LIBM="-lmw"
18319 fi
18320
18321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18322 $as_echo_n "checking for cos in -lm... " >&6; }
18323 if test "${ac_cv_lib_m_cos+set}" = set; then :
18324   $as_echo_n "(cached) " >&6
18325 else
18326   ac_check_lib_save_LIBS=$LIBS
18327 LIBS="-lm  $LIBS"
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h.  */
18330
18331 /* Override any GCC internal prototype to avoid an error.
18332    Use char because int might match the return type of a GCC
18333    builtin and then its argument prototype would still apply.  */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 char cos ();
18338 int
18339 main ()
18340 {
18341 return cos ();
18342   ;
18343   return 0;
18344 }
18345 _ACEOF
18346 if ac_fn_c_try_link "$LINENO"; then :
18347   ac_cv_lib_m_cos=yes
18348 else
18349   ac_cv_lib_m_cos=no
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext \
18352     conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18356 $as_echo "$ac_cv_lib_m_cos" >&6; }
18357 if test "x$ac_cv_lib_m_cos" = x""yes; then :
18358   LIBM="$LIBM -lm"
18359 fi
18360
18361   ;;
18362 *)
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18364 $as_echo_n "checking for cos in -lm... " >&6; }
18365 if test "${ac_cv_lib_m_cos+set}" = set; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-lm  $LIBS"
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372
18373 /* Override any GCC internal prototype to avoid an error.
18374    Use char because int might match the return type of a GCC
18375    builtin and then its argument prototype would still apply.  */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char cos ();
18380 int
18381 main ()
18382 {
18383 return cos ();
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 if ac_fn_c_try_link "$LINENO"; then :
18389   ac_cv_lib_m_cos=yes
18390 else
18391   ac_cv_lib_m_cos=no
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext \
18394     conftest$ac_exeext conftest.$ac_ext
18395 LIBS=$ac_check_lib_save_LIBS
18396 fi
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18398 $as_echo "$ac_cv_lib_m_cos" >&6; }
18399 if test "x$ac_cv_lib_m_cos" = x""yes; then :
18400   LIBM="-lm"
18401 fi
18402
18403   ;;
18404 esac
18405
18406
18407 LIBS="$LIBS $LIBM"
18408
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
18410 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
18411 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
18412   $as_echo_n "(cached) " >&6
18413 else
18414   ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-lrt  $LIBS"
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h.  */
18418
18419 /* Override any GCC internal prototype to avoid an error.
18420    Use char because int might match the return type of a GCC
18421    builtin and then its argument prototype would still apply.  */
18422 #ifdef __cplusplus
18423 extern "C"
18424 #endif
18425 char sched_yield ();
18426 int
18427 main ()
18428 {
18429 return sched_yield ();
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 if ac_fn_c_try_link "$LINENO"; then :
18435   ac_cv_lib_rt_sched_yield=yes
18436 else
18437   ac_cv_lib_rt_sched_yield=no
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext \
18440     conftest$ac_exeext conftest.$ac_ext
18441 LIBS=$ac_check_lib_save_LIBS
18442 fi
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
18444 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
18445 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
18446   cat >>confdefs.h <<_ACEOF
18447 #define HAVE_LIBRT 1
18448 _ACEOF
18449
18450   LIBS="-lrt $LIBS"
18451
18452 fi
18453
18454
18455 has_shm_open=
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
18457 $as_echo_n "checking for shm_open in -lrt... " >&6; }
18458 if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
18459   $as_echo_n "(cached) " >&6
18460 else
18461   ac_check_lib_save_LIBS=$LIBS
18462 LIBS="-lrt  $LIBS"
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h.  */
18465
18466 /* Override any GCC internal prototype to avoid an error.
18467    Use char because int might match the return type of a GCC
18468    builtin and then its argument prototype would still apply.  */
18469 #ifdef __cplusplus
18470 extern "C"
18471 #endif
18472 char shm_open ();
18473 int
18474 main ()
18475 {
18476 return shm_open ();
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 if ac_fn_c_try_link "$LINENO"; then :
18482   ac_cv_lib_rt_shm_open=yes
18483 else
18484   ac_cv_lib_rt_shm_open=no
18485 fi
18486 rm -f core conftest.err conftest.$ac_objext \
18487     conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18489 fi
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
18491 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
18492 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
18493
18494              SHM_LIBS=-lrt
18495              has_shm_open=yes
18496
18497 else
18498   SHM_LIBS=
18499 fi
18500
18501  if test "x$has_shm_open" = "xyes"; then
18502   HAVE_SHM_TRUE=
18503   HAVE_SHM_FALSE='#'
18504 else
18505   HAVE_SHM_TRUE='#'
18506   HAVE_SHM_FALSE=
18507 fi
18508
18509
18510
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18512 $as_echo_n "checking for connect in -lsocket... " >&6; }
18513 if test "${ac_cv_lib_socket_connect+set}" = set; then :
18514   $as_echo_n "(cached) " >&6
18515 else
18516   ac_check_lib_save_LIBS=$LIBS
18517 LIBS="-lsocket  $LIBS"
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h.  */
18520
18521 /* Override any GCC internal prototype to avoid an error.
18522    Use char because int might match the return type of a GCC
18523    builtin and then its argument prototype would still apply.  */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 char connect ();
18528 int
18529 main ()
18530 {
18531 return connect ();
18532   ;
18533   return 0;
18534 }
18535 _ACEOF
18536 if ac_fn_c_try_link "$LINENO"; then :
18537   ac_cv_lib_socket_connect=yes
18538 else
18539   ac_cv_lib_socket_connect=no
18540 fi
18541 rm -f core conftest.err conftest.$ac_objext \
18542     conftest$ac_exeext conftest.$ac_ext
18543 LIBS=$ac_check_lib_save_LIBS
18544 fi
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18546 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18547 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
18548   SOCKET_LIBS=-lsocket
18549 else
18550   SOCKET_LIBS=
18551 fi
18552
18553 CAIROBOILERPLATE_LIBS=$SOCKET_LIBS
18554
18555
18556
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_return_address(0)" >&5
18558 $as_echo_n "checking for __builtin_return_address(0)... " >&6; }
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h.  */
18561
18562 int
18563 main ()
18564 {
18565 __builtin_return_address(0);
18566   ;
18567   return 0;
18568 }
18569 _ACEOF
18570 if ac_fn_c_try_compile "$LINENO"; then :
18571   have_builtin_return_address=yes
18572 else
18573   have_builtin_return_address=no
18574 fi
18575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_return_address" >&5
18577 $as_echo "$have_builtin_return_address" >&6; }
18578 if test "x$have_builtin_return_address" = "xyes"; then
18579
18580 $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h
18581
18582 fi
18583
18584 for ac_header in stdint.h inttypes.h sys/int_types.h
18585 do :
18586   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18587 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18589   cat >>confdefs.h <<_ACEOF
18590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18591 _ACEOF
18592
18593 fi
18594
18595 done
18596
18597 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
18598 if test "x$ac_cv_type_uint64_t" = x""yes; then :
18599
18600 cat >>confdefs.h <<_ACEOF
18601 #define HAVE_UINT64_T 1
18602 _ACEOF
18603
18604
18605 fi
18606 ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default"
18607 if test "x$ac_cv_type_uint128_t" = x""yes; then :
18608
18609 cat >>confdefs.h <<_ACEOF
18610 #define HAVE_UINT128_T 1
18611 _ACEOF
18612
18613
18614 fi
18615 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
18616 if test "x$ac_cv_type___uint128_t" = x""yes; then :
18617
18618 cat >>confdefs.h <<_ACEOF
18619 #define HAVE___UINT128_T 1
18620 _ACEOF
18621
18622
18623 fi
18624
18625
18626 for ac_header in fcntl.h unistd.h signal.h sys/stat.h sys/socket.h sys/poll.h sys/un.h
18627 do :
18628   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18631   cat >>confdefs.h <<_ACEOF
18632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18633 _ACEOF
18634
18635 fi
18636
18637 done
18638
18639
18640 for ac_func in alarm
18641 do :
18642   ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
18643 if test "x$ac_cv_func_alarm" = x""yes; then :
18644   cat >>confdefs.h <<_ACEOF
18645 #define HAVE_ALARM 1
18646 _ACEOF
18647
18648 fi
18649 done
18650
18651
18652 for ac_header in sched.h
18653 do :
18654   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
18655 if test "x$ac_cv_header_sched_h" = x""yes; then :
18656   cat >>confdefs.h <<_ACEOF
18657 #define HAVE_SCHED_H 1
18658 _ACEOF
18659  for ac_func in sched_getaffinity
18660 do :
18661   ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity"
18662 if test "x$ac_cv_func_sched_getaffinity" = x""yes; then :
18663   cat >>confdefs.h <<_ACEOF
18664 #define HAVE_SCHED_GETAFFINITY 1
18665 _ACEOF
18666
18667 fi
18668 done
18669
18670 fi
18671
18672 done
18673
18674
18675 for ac_header in sys/mman.h
18676 do :
18677   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
18678 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
18679   cat >>confdefs.h <<_ACEOF
18680 #define HAVE_SYS_MMAN_H 1
18681 _ACEOF
18682  for ac_func in mmap
18683 do :
18684   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18685 if test "x$ac_cv_func_mmap" = x""yes; then :
18686   cat >>confdefs.h <<_ACEOF
18687 #define HAVE_MMAP 1
18688 _ACEOF
18689
18690 fi
18691 done
18692
18693 fi
18694
18695 done
18696
18697
18698 for ac_header in time.h
18699 do :
18700   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
18701 if test "x$ac_cv_header_time_h" = x""yes; then :
18702   cat >>confdefs.h <<_ACEOF
18703 #define HAVE_TIME_H 1
18704 _ACEOF
18705  for ac_func in clock_gettime
18706 do :
18707   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18708 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
18709   cat >>confdefs.h <<_ACEOF
18710 #define HAVE_CLOCK_GETTIME 1
18711 _ACEOF
18712
18713 fi
18714 done
18715
18716 fi
18717
18718 done
18719
18720
18721 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
18722 if test "x$ac_cv_header_fenv_h" = x""yes; then :
18723   for ac_func in feenableexcept fedisableexcept feclearexcept
18724 do :
18725   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18728   cat >>confdefs.h <<_ACEOF
18729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18730 _ACEOF
18731
18732 fi
18733 done
18734
18735 fi
18736
18737
18738
18739 for ac_header in libgen.h byteswap.h signal.h setjmp.h fenv.h sys/wait.h
18740 do :
18741   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18742 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18743 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18744   cat >>confdefs.h <<_ACEOF
18745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18746 _ACEOF
18747
18748 fi
18749
18750 done
18751
18752 for ac_func in ctime_r drand48 flockfile funlockfile getline link strndup
18753 do :
18754   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18756 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18757   cat >>confdefs.h <<_ACEOF
18758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18759 _ACEOF
18760
18761 fi
18762 done
18763
18764
18765 for ac_header in windows.h
18766 do :
18767   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18768 if test "x$ac_cv_header_windows_h" = x""yes; then :
18769   cat >>confdefs.h <<_ACEOF
18770 #define HAVE_WINDOWS_H 1
18771 _ACEOF
18772  have_windows=yes
18773 else
18774   have_windows=no
18775 fi
18776
18777 done
18778
18779
18780
18781 for ac_header in sys/stat.h io.h
18782 do :
18783   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18786   cat >>confdefs.h <<_ACEOF
18787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18788 _ACEOF
18789
18790 fi
18791
18792 done
18793
18794 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
18795 if test "x$ac_cv_func_mkdir" = x""yes; then :
18796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking mkdir variant" >&5
18797 $as_echo_n "checking mkdir variant... " >&6; }
18798               mkdir_variant="unknown"
18799               save_CFLAGS="$CFLAGS"
18800               CFLAGS=$WARN_CFLAGS
18801               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h.  */
18803
18804 #ifdef HAVE_SYS_STAT_H
18805 #include <sys/stat.h>
18806 #endif
18807 #ifdef HAVE_IO_H
18808 #include <io.h>
18809 #endif
18810
18811 int
18812 main ()
18813 {
18814 mkdir ("hello.world", 0777)
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 if ac_fn_c_try_compile "$LINENO"; then :
18820   mkdir_variant="mkdir(path, mode)"
18821 else
18822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h.  */
18824
18825 #ifdef HAVE_SYS_STAT_H
18826 #include <sys/stat.h>
18827 #endif
18828 #ifdef HAVE_IO_H
18829 #include <io.h>
18830 #endif
18831
18832 int
18833 main ()
18834 {
18835 mkdir ("hello.world")
18836   ;
18837   return 0;
18838 }
18839 _ACEOF
18840 if ac_fn_c_try_compile "$LINENO"; then :
18841   mkdir_variant="mkdir(path)"
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844 fi
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkdir_variant" >&5
18847 $as_echo "$mkdir_variant" >&6; }
18848               CFLAGS="$save_CFLAGS"
18849               if test "x$mkdir_variant" = "xmkdir(path, mode)"; then
18850
18851 $as_echo "#define HAVE_MKDIR 2" >>confdefs.h
18852
18853               else
18854
18855 $as_echo "#define HAVE_MKDIR 1" >>confdefs.h
18856
18857               fi
18858 fi
18859
18860
18861
18862 for ac_func in fork waitpid raise
18863 do :
18864   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18867   cat >>confdefs.h <<_ACEOF
18868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18869 _ACEOF
18870
18871 fi
18872 done
18873
18874
18875         cairo_has_lcov=no
18876 # Check whether --enable-gcov was given.
18877 if test "${enable_gcov+set}" = set; then :
18878   enableval=$enable_gcov; use_gcov=$enableval
18879 else
18880   use_gcov=no
18881 fi
18882
18883
18884 if test "x$use_gcov" = "xyes"; then
18885     if test "$GCC" != "yes"; then
18886     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
18887   fi
18888
18889     # Extract the first word of "shtool", so it can be a program name with args.
18890 set dummy shtool; ac_word=$2
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18892 $as_echo_n "checking for $ac_word... " >&6; }
18893 if test "${ac_cv_prog_SHTOOL+set}" = set; then :
18894   $as_echo_n "(cached) " >&6
18895 else
18896   if test -n "$SHTOOL"; then
18897   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
18898 else
18899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18900 for as_dir in $PATH
18901 do
18902   IFS=$as_save_IFS
18903   test -z "$as_dir" && as_dir=.
18904     for ac_exec_ext in '' $ac_executable_extensions; do
18905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18906     ac_cv_prog_SHTOOL="shtool"
18907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18908     break 2
18909   fi
18910 done
18911   done
18912 IFS=$as_save_IFS
18913
18914 fi
18915 fi
18916 SHTOOL=$ac_cv_prog_SHTOOL
18917 if test -n "$SHTOOL"; then
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
18919 $as_echo "$SHTOOL" >&6; }
18920 else
18921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18922 $as_echo "no" >&6; }
18923 fi
18924
18925
18926   case `$SHTOOL path $CC` in
18927     *ccache*) gcc_ccache=yes;;
18928     *) gcc_ccache=no;;
18929   esac
18930
18931   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
18932     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
18933   fi
18934
18935   ltp_version_list="1.7 1.6 1.5 1.4"
18936   # Extract the first word of "lcov", so it can be a program name with args.
18937 set dummy lcov; ac_word=$2
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18939 $as_echo_n "checking for $ac_word... " >&6; }
18940 if test "${ac_cv_prog_LTP+set}" = set; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943   if test -n "$LTP"; then
18944   ac_cv_prog_LTP="$LTP" # Let the user override the test.
18945 else
18946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947 for as_dir in $PATH
18948 do
18949   IFS=$as_save_IFS
18950   test -z "$as_dir" && as_dir=.
18951     for ac_exec_ext in '' $ac_executable_extensions; do
18952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18953     ac_cv_prog_LTP="lcov"
18954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18955     break 2
18956   fi
18957 done
18958   done
18959 IFS=$as_save_IFS
18960
18961 fi
18962 fi
18963 LTP=$ac_cv_prog_LTP
18964 if test -n "$LTP"; then
18965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
18966 $as_echo "$LTP" >&6; }
18967 else
18968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 $as_echo "no" >&6; }
18970 fi
18971
18972
18973   # Extract the first word of "genhtml", so it can be a program name with args.
18974 set dummy genhtml; ac_word=$2
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18976 $as_echo_n "checking for $ac_word... " >&6; }
18977 if test "${ac_cv_prog_LTP_GENHTML+set}" = set; then :
18978   $as_echo_n "(cached) " >&6
18979 else
18980   if test -n "$LTP_GENHTML"; then
18981   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
18982 else
18983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984 for as_dir in $PATH
18985 do
18986   IFS=$as_save_IFS
18987   test -z "$as_dir" && as_dir=.
18988     for ac_exec_ext in '' $ac_executable_extensions; do
18989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18990     ac_cv_prog_LTP_GENHTML="genhtml"
18991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18992     break 2
18993   fi
18994 done
18995   done
18996 IFS=$as_save_IFS
18997
18998 fi
18999 fi
19000 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
19001 if test -n "$LTP_GENHTML"; then
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
19003 $as_echo "$LTP_GENHTML" >&6; }
19004 else
19005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19007 fi
19008
19009
19010
19011   if test "$LTP"; then
19012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
19013 $as_echo_n "checking for ltp version... " >&6; }
19014 if test "${cairo_cv_ltp_version+set}" = set; then :
19015   $as_echo_n "(cached) " >&6
19016 else
19017
19018       cairo_cv_ltp_version=invalid
19019       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
19020       for ltp_check_version in $ltp_version_list; do
19021         if test "$ltp_version" = "$ltp_check_version"; then
19022           cairo_cv_ltp_version="$ltp_check_version (ok)"
19023         fi
19024       done
19025
19026 fi
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cv_ltp_version" >&5
19028 $as_echo "$cairo_cv_ltp_version" >&6; }
19029   fi
19030
19031   case $cairo_cv_ltp_version in
19032     ""|invalid)
19033       ;;
19034     *)
19035       cairo_has_lcov=yes
19036       ;;
19037   esac
19038
19039   if test "x$cairo_has_lcov" != "xyes"; then
19040     as_fn_error $? "To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list.
19041 Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
19042    fi
19043
19044   if test -z "$LTP_GENHTML"; then
19045     as_fn_error $? "Could not find genhtml from the LTP package.
19046 Please install the Linux Test Project [http://ltp.sourceforge.net/], and try again." "$LINENO" 5
19047   fi
19048
19049
19050 $as_echo "#define HAVE_GCOV 1" >>confdefs.h
19051
19052
19053
19054   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
19055   CAIRO_CFLAGS=`echo "$CAIRO_CFLAGS" | $SED -e 's/-O[0-9]*//g'`
19056
19057
19058                         _test_WERROR=${WERROR+set}
19059         if test "z$_test_WERROR" != zset; then
19060                 WERROR=""
19061                 for _werror in -Werror -errwarn; do
19062                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $_werror" >&5
19063 $as_echo_n "checking whether $CC supports $_werror... " >&6; }
19064                                         # AC_LANG_PROGRAM() produces a main() w/o args,
19065         # but -Wold-style-definition doesn't like that.
19066         # We need _some_ program so that we don't get
19067         # warnings about empty compilation units, so always
19068         # append a reasonable main().
19069         _compile_program=""'
19070                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
19071
19072         _save_cflags="$CFLAGS"
19073         _save_ldflags="$LDFLAGS"
19074         _save_libs="$LIBS"
19075         CFLAGS="$CFLAGS $_werror"
19076         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078 $_compile_program
19079 _ACEOF
19080 if ac_fn_c_try_link "$LINENO"; then :
19081   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19082                  cairo_cc_flag=yes
19083 else
19084   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19085                  cairo_cc_flag=no
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext \
19088     conftest$ac_exeext conftest.$ac_ext
19089
19090         if test "x$cairo_cc_stderr" != "x"; then
19091                 cairo_cc_flag=no
19092         fi
19093
19094         if test "x$cairo_cc_flag" = "xyes"; then
19095                 WERROR="$WERROR $_werror"
19096         else
19097                 :
19098         fi
19099         CFLAGS="$_save_cflags"
19100         LDFLAGS="$_save_ldflags"
19101         LIBS="$_save_libs"
19102
19103
19104                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
19105 $as_echo "$cairo_cc_flag" >&6; }
19106                 done
19107         fi
19108
19109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports --coverage" >&5
19110 $as_echo_n "checking whether $CC supports --coverage... " >&6; }
19111                         # AC_LANG_PROGRAM() produces a main() w/o args,
19112         # but -Wold-style-definition doesn't like that.
19113         # We need _some_ program so that we don't get
19114         # warnings about empty compilation units, so always
19115         # append a reasonable main().
19116         _compile_program=""'
19117                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
19118
19119         _save_cflags="$CFLAGS"
19120         _save_ldflags="$LDFLAGS"
19121         _save_libs="$LIBS"
19122         CFLAGS="$CFLAGS $WERROR --coverage"
19123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h.  */
19125 $_compile_program
19126 _ACEOF
19127 if ac_fn_c_try_link "$LINENO"; then :
19128   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19129                  cairo_cc_flag=yes
19130 else
19131   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
19132                  cairo_cc_flag=no
19133 fi
19134 rm -f core conftest.err conftest.$ac_objext \
19135     conftest$ac_exeext conftest.$ac_ext
19136
19137         if test "x$cairo_cc_stderr" != "x"; then
19138                 cairo_cc_flag=no
19139         fi
19140
19141         if test "x$cairo_cc_flag" = "xyes"; then
19142
19143                     CAIRO_CFLAGS="$CAIRO_CFLAGS -O0 --coverage"
19144                     CAIRO_LDFLAGS="$CAIRO_LDFLAGS -O0 --coverage"
19145
19146         else
19147                 :
19148         fi
19149         CFLAGS="$_save_cflags"
19150         LDFLAGS="$_save_ldflags"
19151         LIBS="$_save_libs"
19152
19153
19154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cairo_cc_flag" >&5
19155 $as_echo "$cairo_cc_flag" >&6; }
19156
19157 fi
19158  if test "x$cairo_has_lcov" = "xyes"; then
19159   CAIRO_HAS_LCOV_TRUE=
19160   CAIRO_HAS_LCOV_FALSE='#'
19161 else
19162   CAIRO_HAS_LCOV_TRUE='#'
19163   CAIRO_HAS_LCOV_FALSE=
19164 fi
19165
19166
19167 # Check whether --enable-valgrind was given.
19168 if test "${enable_valgrind+set}" = set; then :
19169   enableval=$enable_valgrind; use_valgrind=$enableval
19170 else
19171   use_valgrind=yes
19172 fi
19173
19174
19175 if test "x$use_valgrind" = "xyes"; then
19176
19177 pkg_failed=no
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19179 $as_echo_n "checking for VALGRIND... " >&6; }
19180
19181 if test -n "$VALGRIND_CFLAGS"; then
19182     pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19183  elif test -n "$PKG_CONFIG"; then
19184     if test -n "$PKG_CONFIG" && \
19185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19186   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19187   ac_status=$?
19188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19189   test $ac_status = 0; }; then
19190   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19191 else
19192   pkg_failed=yes
19193 fi
19194  else
19195     pkg_failed=untried
19196 fi
19197 if test -n "$VALGRIND_LIBS"; then
19198     pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19199  elif test -n "$PKG_CONFIG"; then
19200     if test -n "$PKG_CONFIG" && \
19201     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19202   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19203   ac_status=$?
19204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205   test $ac_status = 0; }; then
19206   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19207 else
19208   pkg_failed=yes
19209 fi
19210  else
19211     pkg_failed=untried
19212 fi
19213
19214
19215
19216 if test $pkg_failed = yes; then
19217
19218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19219         _pkg_short_errors_supported=yes
19220 else
19221         _pkg_short_errors_supported=no
19222 fi
19223         if test $_pkg_short_errors_supported = yes; then
19224                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind" 2>&1`
19225         else
19226                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind" 2>&1`
19227         fi
19228         # Put the nasty error message in config.log where it belongs
19229         echo "$VALGRIND_PKG_ERRORS" >&5
19230
19231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 $as_echo "no" >&6; }
19235 elif test $pkg_failed = untried; then
19236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19237 $as_echo "no" >&6; }
19238 else
19239         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
19240         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
19241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19243
19244             _save_CFLAGS="$CFLAGS"
19245             _save_CPPFLAGS="$CPPFLAGS"
19246             CFLAGS="$CFLAGS $VALGRIND_CFLAGS"
19247             CPPFLAGS="$CPPFLAGS $VALGRIND_CFLAGS"
19248             ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
19249 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
19250
19251 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
19252
19253 fi
19254
19255
19256             ac_fn_c_check_header_mongrel "$LINENO" "lockdep.h" "ac_cv_header_lockdep_h" "$ac_includes_default"
19257 if test "x$ac_cv_header_lockdep_h" = x""yes; then :
19258
19259 $as_echo "#define HAVE_LOCKDEP 1" >>confdefs.h
19260
19261 fi
19262
19263
19264             ac_fn_c_check_header_mongrel "$LINENO" "memfault.h" "ac_cv_header_memfault_h" "$ac_includes_default"
19265 if test "x$ac_cv_header_memfault_h" = x""yes; then :
19266
19267 $as_echo "#define HAVE_MEMFAULT 1" >>confdefs.h
19268
19269 fi
19270
19271
19272             CAIRO_CFLAGS="$VALGRIND_CFLAGS $CAIRO_CFLAGS"
19273             CFLAGS="$_save_CFLAGS"
19274             CPPFLAGS="$_save_CPPFLAGS"
19275
19276 fi
19277 fi
19278
19279 echo '#undef PACKAGE_VERSION' >>confdefs.h
19280 echo '#undef PACKAGE_STRING' >>confdefs.h
19281 echo '#undef PACKAGE_NAME' >>confdefs.h
19282 echo '#undef PACKAGE_TARNAME' >>confdefs.h
19283 $as_echo "#define PACKAGE_VERSION USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
19284
19285 $as_echo "#define PACKAGE_STRING USE_cairo_version_OR_cairo_version_string_INSTEAD" >>confdefs.h
19286
19287 $as_echo "#define PACKAGE_NAME USE_cairo_INSTEAD" >>confdefs.h
19288
19289 $as_echo "#define PACKAGE_TARNAME USE_cairo_INSTEAD" >>confdefs.h
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300   cat >confcache <<\_ACEOF
19301 # This file is a shell script that caches the results of configure
19302 # tests run on this system so they can be shared between configure
19303 # scripts and configure runs, see configure's option --config-cache.
19304 # It is not useful on other systems.  If it contains results you don't
19305 # want to keep, you may remove or edit it.
19306 #
19307 # config.status only pays attention to the cache file if you give it
19308 # the --recheck option to rerun configure.
19309 #
19310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19312 # following values.
19313
19314 _ACEOF
19315
19316 # The following way of writing the cache mishandles newlines in values,
19317 # but we know of no workaround that is simple, portable, and efficient.
19318 # So, we kill variables containing newlines.
19319 # Ultrix sh set writes to stderr and can't be redirected directly,
19320 # and sets the high bit in the cache file unless we assign to the vars.
19321 (
19322   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19323     eval ac_val=\$$ac_var
19324     case $ac_val in #(
19325     *${as_nl}*)
19326       case $ac_var in #(
19327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19329       esac
19330       case $ac_var in #(
19331       _ | IFS | as_nl) ;; #(
19332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19333       *) { eval $ac_var=; unset $ac_var;} ;;
19334       esac ;;
19335     esac
19336   done
19337
19338   (set) 2>&1 |
19339     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19340     *${as_nl}ac_space=\ *)
19341       # `set' does not quote correctly, so add quotes: double-quote
19342       # substitution turns \\\\ into \\, and sed turns \\ into \.
19343       sed -n \
19344         "s/'/'\\\\''/g;
19345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19346       ;; #(
19347     *)
19348       # `set' quotes correctly as required by POSIX, so do not add quotes.
19349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19350       ;;
19351     esac |
19352     sort
19353 ) |
19354   sed '
19355      /^ac_cv_env_/b end
19356      t clear
19357      :clear
19358      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19359      t end
19360      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19361      :end' >>confcache
19362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19363   if test -w "$cache_file"; then
19364     test "x$cache_file" != "x/dev/null" &&
19365       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19366 $as_echo "$as_me: updating cache $cache_file" >&6;}
19367     cat confcache >$cache_file
19368   else
19369     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19370 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19371   fi
19372 fi
19373 rm -f confcache
19374
19375
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19377 $as_echo_n "checking for compress in -lz... " >&6; }
19378 if test "${ac_cv_lib_z_compress+set}" = set; then :
19379   $as_echo_n "(cached) " >&6
19380 else
19381   ac_check_lib_save_LIBS=$LIBS
19382 LIBS="-lz  $LIBS"
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h.  */
19385
19386 /* Override any GCC internal prototype to avoid an error.
19387    Use char because int might match the return type of a GCC
19388    builtin and then its argument prototype would still apply.  */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 char compress ();
19393 int
19394 main ()
19395 {
19396 return compress ();
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 if ac_fn_c_try_link "$LINENO"; then :
19402   ac_cv_lib_z_compress=yes
19403 else
19404   ac_cv_lib_z_compress=no
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext \
19407     conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19409 fi
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19411 $as_echo "$ac_cv_lib_z_compress" >&6; }
19412 if test "x$ac_cv_lib_z_compress" = x""yes; then :
19413   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19414 if test "x$ac_cv_header_zlib_h" = x""yes; then :
19415
19416           have_libz=yes
19417
19418 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
19419
19420
19421 else
19422   have_libz="no (requires zlib http://www.gzip.org/zlib/)"
19423 fi
19424
19425
19426 else
19427   have_libz="no (requires zlib http://www.gzip.org/zlib/)"
19428 fi
19429
19430
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19432 $as_echo_n "checking for dlsym in -ldl... " >&6; }
19433 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-ldl  $LIBS"
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h.  */
19440
19441 /* Override any GCC internal prototype to avoid an error.
19442    Use char because int might match the return type of a GCC
19443    builtin and then its argument prototype would still apply.  */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char dlsym ();
19448 int
19449 main ()
19450 {
19451 return dlsym ();
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"; then :
19457   ac_cv_lib_dl_dlsym=yes
19458 else
19459   ac_cv_lib_dl_dlsym=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext \
19462     conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19466 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19467 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
19468   have_dlsym=yes; have_dl=yes
19469 else
19470   have_dlsym=no; have_dl=no
19471 fi
19472
19473 if test "x$have_dlsym" = "xno"; then
19474    ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
19475 if test "x$ac_cv_func_dlsym" = x""yes; then :
19476   have_dlsym=yes
19477 else
19478   have_dlsym=no
19479 fi
19480
19481 fi
19482 for ac_header in dlfcn.h
19483 do :
19484   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
19485 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
19486   cat >>confdefs.h <<_ACEOF
19487 #define HAVE_DLFCN_H 1
19488 _ACEOF
19489  have_dlsym=yes
19490 else
19491   have_dlsym=no
19492 fi
19493
19494 done
19495
19496  if test "x$have_dl" = "xyes"; then
19497   CAIRO_HAS_DL_TRUE=
19498   CAIRO_HAS_DL_FALSE='#'
19499 else
19500   CAIRO_HAS_DL_TRUE='#'
19501   CAIRO_HAS_DL_FALSE=
19502 fi
19503
19504 if test "x$have_dlsym" = "xyes"; then
19505
19506 $as_echo "#define CAIRO_HAS_DLSYM 1" >>confdefs.h
19507
19508 fi
19509  if test "x$have_dlsym" = "xyes"; then
19510   CAIRO_HAS_DLSYM_TRUE=
19511   CAIRO_HAS_DLSYM_FALSE='#'
19512 else
19513   CAIRO_HAS_DLSYM_TRUE='#'
19514   CAIRO_HAS_DLSYM_FALSE=
19515 fi
19516
19517
19518
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19520 $as_echo_n "checking for X... " >&6; }
19521
19522
19523 # Check whether --with-x was given.
19524 if test "${with_x+set}" = set; then :
19525   withval=$with_x;
19526 fi
19527
19528 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19529 if test "x$with_x" = xno; then
19530   # The user explicitly disabled X.
19531   have_x=disabled
19532 else
19533   case $x_includes,$x_libraries in #(
19534     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
19535     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19536   $as_echo_n "(cached) " >&6
19537 else
19538   # One or both of the vars are not set, and there is no cached value.
19539 ac_x_includes=no ac_x_libraries=no
19540 rm -f -r conftest.dir
19541 if mkdir conftest.dir; then
19542   cd conftest.dir
19543   cat >Imakefile <<'_ACEOF'
19544 incroot:
19545         @echo incroot='${INCROOT}'
19546 usrlibdir:
19547         @echo usrlibdir='${USRLIBDIR}'
19548 libdir:
19549         @echo libdir='${LIBDIR}'
19550 _ACEOF
19551   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19552     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19553     for ac_var in incroot usrlibdir libdir; do
19554       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19555     done
19556     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19557     for ac_extension in a so sl dylib la dll; do
19558       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19559          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19560         ac_im_usrlibdir=$ac_im_libdir; break
19561       fi
19562     done
19563     # Screen out bogus values from the imake configuration.  They are
19564     # bogus both because they are the default anyway, and because
19565     # using them would break gcc on systems where it needs fixed includes.
19566     case $ac_im_incroot in
19567         /usr/include) ac_x_includes= ;;
19568         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19569     esac
19570     case $ac_im_usrlibdir in
19571         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19572         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19573     esac
19574   fi
19575   cd ..
19576   rm -f -r conftest.dir
19577 fi
19578
19579 # Standard set of common directories for X headers.
19580 # Check X11 before X11Rn because it is often a symlink to the current release.
19581 ac_x_header_dirs='
19582 /usr/X11/include
19583 /usr/X11R7/include
19584 /usr/X11R6/include
19585 /usr/X11R5/include
19586 /usr/X11R4/include
19587
19588 /usr/include/X11
19589 /usr/include/X11R7
19590 /usr/include/X11R6
19591 /usr/include/X11R5
19592 /usr/include/X11R4
19593
19594 /usr/local/X11/include
19595 /usr/local/X11R7/include
19596 /usr/local/X11R6/include
19597 /usr/local/X11R5/include
19598 /usr/local/X11R4/include
19599
19600 /usr/local/include/X11
19601 /usr/local/include/X11R7
19602 /usr/local/include/X11R6
19603 /usr/local/include/X11R5
19604 /usr/local/include/X11R4
19605
19606 /usr/X386/include
19607 /usr/x386/include
19608 /usr/XFree86/include/X11
19609
19610 /usr/include
19611 /usr/local/include
19612 /usr/unsupported/include
19613 /usr/athena/include
19614 /usr/local/x11r5/include
19615 /usr/lpp/Xamples/include
19616
19617 /usr/openwin/include
19618 /usr/openwin/share/include'
19619
19620 if test "$ac_x_includes" = no; then
19621   # Guess where to find include files, by looking for Xlib.h.
19622   # First, try using that file with no special directory specified.
19623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h.  */
19625 #include <X11/Xlib.h>
19626 _ACEOF
19627 if ac_fn_c_try_cpp "$LINENO"; then :
19628   # We can compile using X headers with no special include directory.
19629 ac_x_includes=
19630 else
19631   for ac_dir in $ac_x_header_dirs; do
19632   if test -r "$ac_dir/X11/Xlib.h"; then
19633     ac_x_includes=$ac_dir
19634     break
19635   fi
19636 done
19637 fi
19638 rm -f conftest.err conftest.i conftest.$ac_ext
19639 fi # $ac_x_includes = no
19640
19641 if test "$ac_x_libraries" = no; then
19642   # Check for the libraries.
19643   # See if we find them without any special options.
19644   # Don't add to $LIBS permanently.
19645   ac_save_LIBS=$LIBS
19646   LIBS="-lX11 $LIBS"
19647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h.  */
19649 #include <X11/Xlib.h>
19650 int
19651 main ()
19652 {
19653 XrmInitialize ()
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 if ac_fn_c_try_link "$LINENO"; then :
19659   LIBS=$ac_save_LIBS
19660 # We can link X programs with no special library path.
19661 ac_x_libraries=
19662 else
19663   LIBS=$ac_save_LIBS
19664 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19665 do
19666   # Don't even attempt the hair of trying to link an X program!
19667   for ac_extension in a so sl dylib la dll; do
19668     if test -r "$ac_dir/libX11.$ac_extension"; then
19669       ac_x_libraries=$ac_dir
19670       break 2
19671     fi
19672   done
19673 done
19674 fi
19675 rm -f core conftest.err conftest.$ac_objext \
19676     conftest$ac_exeext conftest.$ac_ext
19677 fi # $ac_x_libraries = no
19678
19679 case $ac_x_includes,$ac_x_libraries in #(
19680   no,* | *,no | *\'*)
19681     # Didn't find X, or a directory has "'" in its name.
19682     ac_cv_have_x="have_x=no";; #(
19683   *)
19684     # Record where we found X for the cache.
19685     ac_cv_have_x="have_x=yes\
19686         ac_x_includes='$ac_x_includes'\
19687         ac_x_libraries='$ac_x_libraries'"
19688 esac
19689 fi
19690 ;; #(
19691     *) have_x=yes;;
19692   esac
19693   eval "$ac_cv_have_x"
19694 fi # $with_x != no
19695
19696 if test "$have_x" != yes; then
19697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19698 $as_echo "$have_x" >&6; }
19699   no_x=yes
19700 else
19701   # If each of the values was on the command line, it overrides each guess.
19702   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19703   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19704   # Update the cache value to reflect the command line values.
19705   ac_cv_have_x="have_x=yes\
19706         ac_x_includes='$x_includes'\
19707         ac_x_libraries='$x_libraries'"
19708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19709 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19710 fi
19711
19712                                                                                                                                 # Check whether --enable-xlib was given.
19713 if test "${enable_xlib+set}" = set; then :
19714   enableval=$enable_xlib; enable_xlib=$enableval
19715 else
19716   enable_xlib=auto
19717 fi
19718
19719                         case $enable_xlib in #(
19720   no) :
19721                 use_xlib="no (disabled, use --enable-xlib to enable)"
19722          ;; #(
19723         yes|auto) :
19724                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib surface backend feature" >&5
19725 $as_echo_n "checking for cairo's Xlib surface backend feature... " >&6; }
19726                 echo
19727
19728                 use_xlib=yes
19729                         xlib_BASE="cairo"
19730 xlib_REQUIRES="$ac_env_xlib_REQUIRES_value"
19731 xlib_CFLAGS="$ac_env_xlib_CFLAGS_value"
19732 xlib_NONPKGCONFIG_CFLAGS="$ac_env_xlib_NONPKGCONFIG_CFLAGS_value"
19733 xlib_LIBS="$ac_env_xlib_LIBS_value"
19734 xlib_NONPKGCONFIG_LIBS="$ac_env_xlib_NONPKGCONFIG_LIBS_value"
19735 xlib_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_NONPKGCONFIG_EXTRA_LIBS_value"
19736
19737
19738
19739   xlib_REQUIRES="x11"
19740
19741 pkg_failed=no
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib" >&5
19743 $as_echo_n "checking for xlib... " >&6; }
19744
19745 if test -n "$xlib_CFLAGS"; then
19746     pkg_cv_xlib_CFLAGS="$xlib_CFLAGS"
19747  elif test -n "$PKG_CONFIG"; then
19748     if test -n "$PKG_CONFIG" && \
19749     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
19750   ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
19751   ac_status=$?
19752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19753   test $ac_status = 0; }; then
19754   pkg_cv_xlib_CFLAGS=`$PKG_CONFIG --cflags "$xlib_REQUIRES" 2>/dev/null`
19755 else
19756   pkg_failed=yes
19757 fi
19758  else
19759     pkg_failed=untried
19760 fi
19761 if test -n "$xlib_LIBS"; then
19762     pkg_cv_xlib_LIBS="$xlib_LIBS"
19763  elif test -n "$PKG_CONFIG"; then
19764     if test -n "$PKG_CONFIG" && \
19765     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_REQUIRES\""; } >&5
19766   ($PKG_CONFIG --exists --print-errors "$xlib_REQUIRES") 2>&5
19767   ac_status=$?
19768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769   test $ac_status = 0; }; then
19770   pkg_cv_xlib_LIBS=`$PKG_CONFIG --libs "$xlib_REQUIRES" 2>/dev/null`
19771 else
19772   pkg_failed=yes
19773 fi
19774  else
19775     pkg_failed=untried
19776 fi
19777
19778
19779
19780 if test $pkg_failed = yes; then
19781
19782 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19783         _pkg_short_errors_supported=yes
19784 else
19785         _pkg_short_errors_supported=no
19786 fi
19787         if test $_pkg_short_errors_supported = yes; then
19788                 xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_REQUIRES" 2>&1`
19789         else
19790                 xlib_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_REQUIRES" 2>&1`
19791         fi
19792         # Put the nasty error message in config.log where it belongs
19793         echo "$xlib_PKG_ERRORS" >&5
19794
19795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796 $as_echo "no" >&6; }
19797                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19798 $as_echo "no" >&6; }
19799                      xlib_REQUIRES=""
19800                      if test "$no_x" = yes; then
19801   # Not all programs may use this symbol, but it does not hurt to define it.
19802
19803 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19804
19805   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19806 else
19807   if test -n "$x_includes"; then
19808     X_CFLAGS="$X_CFLAGS -I$x_includes"
19809   fi
19810
19811   # It would also be nice to do this for all -L options, not just this one.
19812   if test -n "$x_libraries"; then
19813     X_LIBS="$X_LIBS -L$x_libraries"
19814     # For Solaris; some versions of Sun CC require a space after -R and
19815     # others require no space.  Words are not sufficient . . . .
19816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19817 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19818     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19819     ac_xsave_c_werror_flag=$ac_c_werror_flag
19820     ac_c_werror_flag=yes
19821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h.  */
19823
19824 int
19825 main ()
19826 {
19827
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 if ac_fn_c_try_link "$LINENO"; then :
19833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19834 $as_echo "no" >&6; }
19835        X_LIBS="$X_LIBS -R$x_libraries"
19836 else
19837   LIBS="$ac_xsave_LIBS -R $x_libraries"
19838        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h.  */
19840
19841 int
19842 main ()
19843 {
19844
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 if ac_fn_c_try_link "$LINENO"; then :
19850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19851 $as_echo "yes" >&6; }
19852           X_LIBS="$X_LIBS -R $x_libraries"
19853 else
19854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19855 $as_echo "neither works" >&6; }
19856 fi
19857 rm -f core conftest.err conftest.$ac_objext \
19858     conftest$ac_exeext conftest.$ac_ext
19859 fi
19860 rm -f core conftest.err conftest.$ac_objext \
19861     conftest$ac_exeext conftest.$ac_ext
19862     ac_c_werror_flag=$ac_xsave_c_werror_flag
19863     LIBS=$ac_xsave_LIBS
19864   fi
19865
19866   # Check for system-dependent libraries X programs must link with.
19867   # Do this before checking for the system-independent R6 libraries
19868   # (-lICE), since we may need -lsocket or whatever for X linking.
19869
19870   if test "$ISC" = yes; then
19871     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19872   else
19873     # Martyn Johnson says this is needed for Ultrix, if the X
19874     # libraries were built with DECnet support.  And Karl Berry says
19875     # the Alpha needs dnet_stub (dnet does not exist).
19876     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h.  */
19879
19880 /* Override any GCC internal prototype to avoid an error.
19881    Use char because int might match the return type of a GCC
19882    builtin and then its argument prototype would still apply.  */
19883 #ifdef __cplusplus
19884 extern "C"
19885 #endif
19886 char XOpenDisplay ();
19887 int
19888 main ()
19889 {
19890 return XOpenDisplay ();
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 if ac_fn_c_try_link "$LINENO"; then :
19896
19897 else
19898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19899 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19900 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19901   $as_echo_n "(cached) " >&6
19902 else
19903   ac_check_lib_save_LIBS=$LIBS
19904 LIBS="-ldnet  $LIBS"
19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h.  */
19907
19908 /* Override any GCC internal prototype to avoid an error.
19909    Use char because int might match the return type of a GCC
19910    builtin and then its argument prototype would still apply.  */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char dnet_ntoa ();
19915 int
19916 main ()
19917 {
19918 return dnet_ntoa ();
19919   ;
19920   return 0;
19921 }
19922 _ACEOF
19923 if ac_fn_c_try_link "$LINENO"; then :
19924   ac_cv_lib_dnet_dnet_ntoa=yes
19925 else
19926   ac_cv_lib_dnet_dnet_ntoa=no
19927 fi
19928 rm -f core conftest.err conftest.$ac_objext \
19929     conftest$ac_exeext conftest.$ac_ext
19930 LIBS=$ac_check_lib_save_LIBS
19931 fi
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19933 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19934 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19935   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19936 fi
19937
19938     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19939       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19940 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19941 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19942   $as_echo_n "(cached) " >&6
19943 else
19944   ac_check_lib_save_LIBS=$LIBS
19945 LIBS="-ldnet_stub  $LIBS"
19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947 /* end confdefs.h.  */
19948
19949 /* Override any GCC internal prototype to avoid an error.
19950    Use char because int might match the return type of a GCC
19951    builtin and then its argument prototype would still apply.  */
19952 #ifdef __cplusplus
19953 extern "C"
19954 #endif
19955 char dnet_ntoa ();
19956 int
19957 main ()
19958 {
19959 return dnet_ntoa ();
19960   ;
19961   return 0;
19962 }
19963 _ACEOF
19964 if ac_fn_c_try_link "$LINENO"; then :
19965   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19966 else
19967   ac_cv_lib_dnet_stub_dnet_ntoa=no
19968 fi
19969 rm -f core conftest.err conftest.$ac_objext \
19970     conftest$ac_exeext conftest.$ac_ext
19971 LIBS=$ac_check_lib_save_LIBS
19972 fi
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19974 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19975 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19976   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19977 fi
19978
19979     fi
19980 fi
19981 rm -f core conftest.err conftest.$ac_objext \
19982     conftest$ac_exeext conftest.$ac_ext
19983     LIBS="$ac_xsave_LIBS"
19984
19985     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19986     # to get the SysV transport functions.
19987     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19988     # needs -lnsl.
19989     # The nsl library prevents programs from opening the X display
19990     # on Irix 5.2, according to T.E. Dickey.
19991     # The functions gethostbyname, getservbyname, and inet_addr are
19992     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19993     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19994 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19995
19996 fi
19997
19998     if test $ac_cv_func_gethostbyname = no; then
19999       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20000 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20001 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20002   $as_echo_n "(cached) " >&6
20003 else
20004   ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-lnsl  $LIBS"
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h.  */
20008
20009 /* Override any GCC internal prototype to avoid an error.
20010    Use char because int might match the return type of a GCC
20011    builtin and then its argument prototype would still apply.  */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char gethostbyname ();
20016 int
20017 main ()
20018 {
20019 return gethostbyname ();
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 if ac_fn_c_try_link "$LINENO"; then :
20025   ac_cv_lib_nsl_gethostbyname=yes
20026 else
20027   ac_cv_lib_nsl_gethostbyname=no
20028 fi
20029 rm -f core conftest.err conftest.$ac_objext \
20030     conftest$ac_exeext conftest.$ac_ext
20031 LIBS=$ac_check_lib_save_LIBS
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20034 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20035 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20036   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20037 fi
20038
20039       if test $ac_cv_lib_nsl_gethostbyname = no; then
20040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20041 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20042 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20043   $as_echo_n "(cached) " >&6
20044 else
20045   ac_check_lib_save_LIBS=$LIBS
20046 LIBS="-lbsd  $LIBS"
20047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h.  */
20049
20050 /* Override any GCC internal prototype to avoid an error.
20051    Use char because int might match the return type of a GCC
20052    builtin and then its argument prototype would still apply.  */
20053 #ifdef __cplusplus
20054 extern "C"
20055 #endif
20056 char gethostbyname ();
20057 int
20058 main ()
20059 {
20060 return gethostbyname ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 if ac_fn_c_try_link "$LINENO"; then :
20066   ac_cv_lib_bsd_gethostbyname=yes
20067 else
20068   ac_cv_lib_bsd_gethostbyname=no
20069 fi
20070 rm -f core conftest.err conftest.$ac_objext \
20071     conftest$ac_exeext conftest.$ac_ext
20072 LIBS=$ac_check_lib_save_LIBS
20073 fi
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20075 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20076 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20077   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20078 fi
20079
20080       fi
20081     fi
20082
20083     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20084     # socket/setsockopt and other routines are undefined under SCO ODT
20085     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20086     # on later versions), says Simon Leinen: it contains gethostby*
20087     # variants that don't use the name server (or something).  -lsocket
20088     # must be given before -lnsl if both are needed.  We assume that
20089     # if connect needs -lnsl, so does gethostbyname.
20090     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20091 if test "x$ac_cv_func_connect" = x""yes; then :
20092
20093 fi
20094
20095     if test $ac_cv_func_connect = no; then
20096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20097 $as_echo_n "checking for connect in -lsocket... " >&6; }
20098 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20099   $as_echo_n "(cached) " >&6
20100 else
20101   ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h.  */
20105
20106 /* Override any GCC internal prototype to avoid an error.
20107    Use char because int might match the return type of a GCC
20108    builtin and then its argument prototype would still apply.  */
20109 #ifdef __cplusplus
20110 extern "C"
20111 #endif
20112 char connect ();
20113 int
20114 main ()
20115 {
20116 return connect ();
20117   ;
20118   return 0;
20119 }
20120 _ACEOF
20121 if ac_fn_c_try_link "$LINENO"; then :
20122   ac_cv_lib_socket_connect=yes
20123 else
20124   ac_cv_lib_socket_connect=no
20125 fi
20126 rm -f core conftest.err conftest.$ac_objext \
20127     conftest$ac_exeext conftest.$ac_ext
20128 LIBS=$ac_check_lib_save_LIBS
20129 fi
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20131 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20132 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20133   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20134 fi
20135
20136     fi
20137
20138     # Guillermo Gomez says -lposix is necessary on A/UX.
20139     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20140 if test "x$ac_cv_func_remove" = x""yes; then :
20141
20142 fi
20143
20144     if test $ac_cv_func_remove = no; then
20145       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20146 $as_echo_n "checking for remove in -lposix... " >&6; }
20147 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20148   $as_echo_n "(cached) " >&6
20149 else
20150   ac_check_lib_save_LIBS=$LIBS
20151 LIBS="-lposix  $LIBS"
20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20153 /* end confdefs.h.  */
20154
20155 /* Override any GCC internal prototype to avoid an error.
20156    Use char because int might match the return type of a GCC
20157    builtin and then its argument prototype would still apply.  */
20158 #ifdef __cplusplus
20159 extern "C"
20160 #endif
20161 char remove ();
20162 int
20163 main ()
20164 {
20165 return remove ();
20166   ;
20167   return 0;
20168 }
20169 _ACEOF
20170 if ac_fn_c_try_link "$LINENO"; then :
20171   ac_cv_lib_posix_remove=yes
20172 else
20173   ac_cv_lib_posix_remove=no
20174 fi
20175 rm -f core conftest.err conftest.$ac_objext \
20176     conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20178 fi
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20180 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20181 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20182   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20183 fi
20184
20185     fi
20186
20187     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20188     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20189 if test "x$ac_cv_func_shmat" = x""yes; then :
20190
20191 fi
20192
20193     if test $ac_cv_func_shmat = no; then
20194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20195 $as_echo_n "checking for shmat in -lipc... " >&6; }
20196 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20197   $as_echo_n "(cached) " >&6
20198 else
20199   ac_check_lib_save_LIBS=$LIBS
20200 LIBS="-lipc  $LIBS"
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h.  */
20203
20204 /* Override any GCC internal prototype to avoid an error.
20205    Use char because int might match the return type of a GCC
20206    builtin and then its argument prototype would still apply.  */
20207 #ifdef __cplusplus
20208 extern "C"
20209 #endif
20210 char shmat ();
20211 int
20212 main ()
20213 {
20214 return shmat ();
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 if ac_fn_c_try_link "$LINENO"; then :
20220   ac_cv_lib_ipc_shmat=yes
20221 else
20222   ac_cv_lib_ipc_shmat=no
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext \
20225     conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20227 fi
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20229 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20230 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20232 fi
20233
20234     fi
20235   fi
20236
20237   # Check for libraries that X11R6 Xt/Xaw programs need.
20238   ac_save_LDFLAGS=$LDFLAGS
20239   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20240   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20241   # check for ICE first), but we must link in the order -lSM -lICE or
20242   # we get undefined symbols.  So assume we have SM if we have ICE.
20243   # These have to be linked with before -lX11, unlike the other
20244   # libraries we check for below, so use a different variable.
20245   # John Interrante, Karl Berry
20246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20247 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20248 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20249   $as_echo_n "(cached) " >&6
20250 else
20251   ac_check_lib_save_LIBS=$LIBS
20252 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254 /* end confdefs.h.  */
20255
20256 /* Override any GCC internal prototype to avoid an error.
20257    Use char because int might match the return type of a GCC
20258    builtin and then its argument prototype would still apply.  */
20259 #ifdef __cplusplus
20260 extern "C"
20261 #endif
20262 char IceConnectionNumber ();
20263 int
20264 main ()
20265 {
20266 return IceConnectionNumber ();
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 if ac_fn_c_try_link "$LINENO"; then :
20272   ac_cv_lib_ICE_IceConnectionNumber=yes
20273 else
20274   ac_cv_lib_ICE_IceConnectionNumber=no
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext \
20277     conftest$ac_exeext conftest.$ac_ext
20278 LIBS=$ac_check_lib_save_LIBS
20279 fi
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20281 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20282 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20283   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20284 fi
20285
20286   LDFLAGS=$ac_save_LDFLAGS
20287
20288 fi
20289
20290                      if test "x$no_x" = xyes; then
20291                        use_xlib="no (requires X development libraries)"
20292                      else
20293                        xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
20294                        xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
20295                      fi
20296 elif test $pkg_failed = untried; then
20297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20298 $as_echo "no" >&6; }
20299                      xlib_REQUIRES=""
20300                      if test "$no_x" = yes; then
20301   # Not all programs may use this symbol, but it does not hurt to define it.
20302
20303 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20304
20305   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20306 else
20307   if test -n "$x_includes"; then
20308     X_CFLAGS="$X_CFLAGS -I$x_includes"
20309   fi
20310
20311   # It would also be nice to do this for all -L options, not just this one.
20312   if test -n "$x_libraries"; then
20313     X_LIBS="$X_LIBS -L$x_libraries"
20314     # For Solaris; some versions of Sun CC require a space after -R and
20315     # others require no space.  Words are not sufficient . . . .
20316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20317 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20318     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20319     ac_xsave_c_werror_flag=$ac_c_werror_flag
20320     ac_c_werror_flag=yes
20321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h.  */
20323
20324 int
20325 main ()
20326 {
20327
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 if ac_fn_c_try_link "$LINENO"; then :
20333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20334 $as_echo "no" >&6; }
20335        X_LIBS="$X_LIBS -R$x_libraries"
20336 else
20337   LIBS="$ac_xsave_LIBS -R $x_libraries"
20338        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h.  */
20340
20341 int
20342 main ()
20343 {
20344
20345   ;
20346   return 0;
20347 }
20348 _ACEOF
20349 if ac_fn_c_try_link "$LINENO"; then :
20350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20351 $as_echo "yes" >&6; }
20352           X_LIBS="$X_LIBS -R $x_libraries"
20353 else
20354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20355 $as_echo "neither works" >&6; }
20356 fi
20357 rm -f core conftest.err conftest.$ac_objext \
20358     conftest$ac_exeext conftest.$ac_ext
20359 fi
20360 rm -f core conftest.err conftest.$ac_objext \
20361     conftest$ac_exeext conftest.$ac_ext
20362     ac_c_werror_flag=$ac_xsave_c_werror_flag
20363     LIBS=$ac_xsave_LIBS
20364   fi
20365
20366   # Check for system-dependent libraries X programs must link with.
20367   # Do this before checking for the system-independent R6 libraries
20368   # (-lICE), since we may need -lsocket or whatever for X linking.
20369
20370   if test "$ISC" = yes; then
20371     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20372   else
20373     # Martyn Johnson says this is needed for Ultrix, if the X
20374     # libraries were built with DECnet support.  And Karl Berry says
20375     # the Alpha needs dnet_stub (dnet does not exist).
20376     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379
20380 /* Override any GCC internal prototype to avoid an error.
20381    Use char because int might match the return type of a GCC
20382    builtin and then its argument prototype would still apply.  */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char XOpenDisplay ();
20387 int
20388 main ()
20389 {
20390 return XOpenDisplay ();
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 if ac_fn_c_try_link "$LINENO"; then :
20396
20397 else
20398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20399 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20400 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20401   $as_echo_n "(cached) " >&6
20402 else
20403   ac_check_lib_save_LIBS=$LIBS
20404 LIBS="-ldnet  $LIBS"
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h.  */
20407
20408 /* Override any GCC internal prototype to avoid an error.
20409    Use char because int might match the return type of a GCC
20410    builtin and then its argument prototype would still apply.  */
20411 #ifdef __cplusplus
20412 extern "C"
20413 #endif
20414 char dnet_ntoa ();
20415 int
20416 main ()
20417 {
20418 return dnet_ntoa ();
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 if ac_fn_c_try_link "$LINENO"; then :
20424   ac_cv_lib_dnet_dnet_ntoa=yes
20425 else
20426   ac_cv_lib_dnet_dnet_ntoa=no
20427 fi
20428 rm -f core conftest.err conftest.$ac_objext \
20429     conftest$ac_exeext conftest.$ac_ext
20430 LIBS=$ac_check_lib_save_LIBS
20431 fi
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20433 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20434 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20435   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20436 fi
20437
20438     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20439       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20440 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20441 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20442   $as_echo_n "(cached) " >&6
20443 else
20444   ac_check_lib_save_LIBS=$LIBS
20445 LIBS="-ldnet_stub  $LIBS"
20446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h.  */
20448
20449 /* Override any GCC internal prototype to avoid an error.
20450    Use char because int might match the return type of a GCC
20451    builtin and then its argument prototype would still apply.  */
20452 #ifdef __cplusplus
20453 extern "C"
20454 #endif
20455 char dnet_ntoa ();
20456 int
20457 main ()
20458 {
20459 return dnet_ntoa ();
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 if ac_fn_c_try_link "$LINENO"; then :
20465   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20466 else
20467   ac_cv_lib_dnet_stub_dnet_ntoa=no
20468 fi
20469 rm -f core conftest.err conftest.$ac_objext \
20470     conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20472 fi
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20474 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20475 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20476   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20477 fi
20478
20479     fi
20480 fi
20481 rm -f core conftest.err conftest.$ac_objext \
20482     conftest$ac_exeext conftest.$ac_ext
20483     LIBS="$ac_xsave_LIBS"
20484
20485     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20486     # to get the SysV transport functions.
20487     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20488     # needs -lnsl.
20489     # The nsl library prevents programs from opening the X display
20490     # on Irix 5.2, according to T.E. Dickey.
20491     # The functions gethostbyname, getservbyname, and inet_addr are
20492     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20493     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20494 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20495
20496 fi
20497
20498     if test $ac_cv_func_gethostbyname = no; then
20499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20500 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20501 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20502   $as_echo_n "(cached) " >&6
20503 else
20504   ac_check_lib_save_LIBS=$LIBS
20505 LIBS="-lnsl  $LIBS"
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h.  */
20508
20509 /* Override any GCC internal prototype to avoid an error.
20510    Use char because int might match the return type of a GCC
20511    builtin and then its argument prototype would still apply.  */
20512 #ifdef __cplusplus
20513 extern "C"
20514 #endif
20515 char gethostbyname ();
20516 int
20517 main ()
20518 {
20519 return gethostbyname ();
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 if ac_fn_c_try_link "$LINENO"; then :
20525   ac_cv_lib_nsl_gethostbyname=yes
20526 else
20527   ac_cv_lib_nsl_gethostbyname=no
20528 fi
20529 rm -f core conftest.err conftest.$ac_objext \
20530     conftest$ac_exeext conftest.$ac_ext
20531 LIBS=$ac_check_lib_save_LIBS
20532 fi
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20534 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20535 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20536   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20537 fi
20538
20539       if test $ac_cv_lib_nsl_gethostbyname = no; then
20540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20541 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20542 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20543   $as_echo_n "(cached) " >&6
20544 else
20545   ac_check_lib_save_LIBS=$LIBS
20546 LIBS="-lbsd  $LIBS"
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h.  */
20549
20550 /* Override any GCC internal prototype to avoid an error.
20551    Use char because int might match the return type of a GCC
20552    builtin and then its argument prototype would still apply.  */
20553 #ifdef __cplusplus
20554 extern "C"
20555 #endif
20556 char gethostbyname ();
20557 int
20558 main ()
20559 {
20560 return gethostbyname ();
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 if ac_fn_c_try_link "$LINENO"; then :
20566   ac_cv_lib_bsd_gethostbyname=yes
20567 else
20568   ac_cv_lib_bsd_gethostbyname=no
20569 fi
20570 rm -f core conftest.err conftest.$ac_objext \
20571     conftest$ac_exeext conftest.$ac_ext
20572 LIBS=$ac_check_lib_save_LIBS
20573 fi
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20575 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20576 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20577   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20578 fi
20579
20580       fi
20581     fi
20582
20583     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20584     # socket/setsockopt and other routines are undefined under SCO ODT
20585     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20586     # on later versions), says Simon Leinen: it contains gethostby*
20587     # variants that don't use the name server (or something).  -lsocket
20588     # must be given before -lnsl if both are needed.  We assume that
20589     # if connect needs -lnsl, so does gethostbyname.
20590     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20591 if test "x$ac_cv_func_connect" = x""yes; then :
20592
20593 fi
20594
20595     if test $ac_cv_func_connect = no; then
20596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20597 $as_echo_n "checking for connect in -lsocket... " >&6; }
20598 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601   ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h.  */
20605
20606 /* Override any GCC internal prototype to avoid an error.
20607    Use char because int might match the return type of a GCC
20608    builtin and then its argument prototype would still apply.  */
20609 #ifdef __cplusplus
20610 extern "C"
20611 #endif
20612 char connect ();
20613 int
20614 main ()
20615 {
20616 return connect ();
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 if ac_fn_c_try_link "$LINENO"; then :
20622   ac_cv_lib_socket_connect=yes
20623 else
20624   ac_cv_lib_socket_connect=no
20625 fi
20626 rm -f core conftest.err conftest.$ac_objext \
20627     conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20631 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20632 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20633   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20634 fi
20635
20636     fi
20637
20638     # Guillermo Gomez says -lposix is necessary on A/UX.
20639     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20640 if test "x$ac_cv_func_remove" = x""yes; then :
20641
20642 fi
20643
20644     if test $ac_cv_func_remove = no; then
20645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20646 $as_echo_n "checking for remove in -lposix... " >&6; }
20647 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20648   $as_echo_n "(cached) " >&6
20649 else
20650   ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lposix  $LIBS"
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h.  */
20654
20655 /* Override any GCC internal prototype to avoid an error.
20656    Use char because int might match the return type of a GCC
20657    builtin and then its argument prototype would still apply.  */
20658 #ifdef __cplusplus
20659 extern "C"
20660 #endif
20661 char remove ();
20662 int
20663 main ()
20664 {
20665 return remove ();
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 if ac_fn_c_try_link "$LINENO"; then :
20671   ac_cv_lib_posix_remove=yes
20672 else
20673   ac_cv_lib_posix_remove=no
20674 fi
20675 rm -f core conftest.err conftest.$ac_objext \
20676     conftest$ac_exeext conftest.$ac_ext
20677 LIBS=$ac_check_lib_save_LIBS
20678 fi
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20680 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20681 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20682   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20683 fi
20684
20685     fi
20686
20687     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20688     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20689 if test "x$ac_cv_func_shmat" = x""yes; then :
20690
20691 fi
20692
20693     if test $ac_cv_func_shmat = no; then
20694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20695 $as_echo_n "checking for shmat in -lipc... " >&6; }
20696 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20697   $as_echo_n "(cached) " >&6
20698 else
20699   ac_check_lib_save_LIBS=$LIBS
20700 LIBS="-lipc  $LIBS"
20701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702 /* end confdefs.h.  */
20703
20704 /* Override any GCC internal prototype to avoid an error.
20705    Use char because int might match the return type of a GCC
20706    builtin and then its argument prototype would still apply.  */
20707 #ifdef __cplusplus
20708 extern "C"
20709 #endif
20710 char shmat ();
20711 int
20712 main ()
20713 {
20714 return shmat ();
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 if ac_fn_c_try_link "$LINENO"; then :
20720   ac_cv_lib_ipc_shmat=yes
20721 else
20722   ac_cv_lib_ipc_shmat=no
20723 fi
20724 rm -f core conftest.err conftest.$ac_objext \
20725     conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20727 fi
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20729 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20730 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20731   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20732 fi
20733
20734     fi
20735   fi
20736
20737   # Check for libraries that X11R6 Xt/Xaw programs need.
20738   ac_save_LDFLAGS=$LDFLAGS
20739   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20740   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20741   # check for ICE first), but we must link in the order -lSM -lICE or
20742   # we get undefined symbols.  So assume we have SM if we have ICE.
20743   # These have to be linked with before -lX11, unlike the other
20744   # libraries we check for below, so use a different variable.
20745   # John Interrante, Karl Berry
20746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20747 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20748 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20749   $as_echo_n "(cached) " >&6
20750 else
20751   ac_check_lib_save_LIBS=$LIBS
20752 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h.  */
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757    Use char because int might match the return type of a GCC
20758    builtin and then its argument prototype would still apply.  */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char IceConnectionNumber ();
20763 int
20764 main ()
20765 {
20766 return IceConnectionNumber ();
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 if ac_fn_c_try_link "$LINENO"; then :
20772   ac_cv_lib_ICE_IceConnectionNumber=yes
20773 else
20774   ac_cv_lib_ICE_IceConnectionNumber=no
20775 fi
20776 rm -f core conftest.err conftest.$ac_objext \
20777     conftest$ac_exeext conftest.$ac_ext
20778 LIBS=$ac_check_lib_save_LIBS
20779 fi
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20781 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20782 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20783   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20784 fi
20785
20786   LDFLAGS=$ac_save_LDFLAGS
20787
20788 fi
20789
20790                      if test "x$no_x" = xyes; then
20791                        use_xlib="no (requires X development libraries)"
20792                      else
20793                        xlib_NONPKGCONFIG_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
20794                        xlib_NONPKGCONFIG_CFLAGS=$X_CFLAGS
20795                      fi
20796 else
20797         xlib_CFLAGS=$pkg_cv_xlib_CFLAGS
20798         xlib_LIBS=$pkg_cv_xlib_LIBS
20799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20800 $as_echo "yes" >&6; }
20801         :
20802 fi
20803
20804
20805                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib surface backend feature could be enabled" >&5
20806 $as_echo_n "checking whether cairo's Xlib surface backend feature could be enabled... " >&6; }
20807                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib" >&5
20808 $as_echo "$use_xlib" >&6; }
20809
20810                 if test "x$enable_xlib" = "xyes" -a "x$use_xlib" != xyes; then :
20811                         as_fn_error $? " Xlib surface backend feature could not be enabled" "$LINENO" 5
20812
20813 fi       ;; #(
20814   *) :
20815                         as_fn_error $? "invalid argument passed to --enable-xlib: \`$use_xlib', should be one of [no/auto/yes]" "$LINENO" 5
20816          ;;
20817 esac
20818         if test "x$use_xlib" = "xyes"; then :
20819                                                                                 CAIRO_REQUIRES="$xlib_REQUIRES"" ${CAIRO_REQUIRES}"
20820
20821                                                                         CAIRO_CFLAGS="$xlib_CFLAGS"" ${CAIRO_CFLAGS}"
20822
20823                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
20824
20825                                                                         CAIRO_LIBS="$xlib_LIBS"" ${CAIRO_LIBS}"
20826
20827                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
20828
20829
20830 else
20831                                         unset xlib_BASE
20832 unset xlib_REQUIRES
20833 unset xlib_CFLAGS
20834 unset xlib_NONPKGCONFIG_CFLAGS
20835 unset xlib_LIBS
20836 unset xlib_NONPKGCONFIG_LIBS
20837 unset xlib_NONPKGCONFIG_EXTRA_LIBS
20838
20839
20840 fi
20841
20842                                                          if test "x$use_xlib" = xyes; then
20843   CAIRO_HAS_XLIB_SURFACE_TRUE=
20844   CAIRO_HAS_XLIB_SURFACE_FALSE='#'
20845 else
20846   CAIRO_HAS_XLIB_SURFACE_TRUE='#'
20847   CAIRO_HAS_XLIB_SURFACE_FALSE=
20848 fi
20849
20850
20851                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_SURFACE=0'
20852                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
20853 ""$cr_make_tmp"
20854
20855
20856                                                                                 cr_make_tmp=''
20857                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20858 ""$cr_make_tmp"
20859
20860                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20861 ""$cr_make_tmp"
20862                                                                                 cr_make_tmp=''
20863                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20864 ""$cr_make_tmp"
20865
20866                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20867 ""$cr_make_tmp"
20868
20869
20870                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xlib_headers)'
20871                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20872 ""$cr_make_tmp"
20873
20874                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20875 ""$cr_make_tmp"
20876                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)'
20877                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20878 ""$cr_make_tmp"
20879
20880                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20881 ""$cr_make_tmp"
20882
20883
20884
20885                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_headers)
20886 all_cairo_private += $(cairo_xlib_private)
20887 all_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
20888 all_cairo_sources += $(cairo_xlib_sources)'
20889                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20890 ""$cr_make_tmp"
20891
20892                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20893 ""$cr_make_tmp"
20894                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
20895 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
20896 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
20897 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
20898                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20899 ""$cr_make_tmp"
20900
20901                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20902 ""$cr_make_tmp"
20903
20904
20905                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_headers)
20906 enabled_cairo_private += $(cairo_xlib_private)
20907 enabled_cairo_cxx_sources += $(cairo_xlib_cxx_sources)
20908 enabled_cairo_sources += $(cairo_xlib_sources)'
20909                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20910 "'if CAIRO_HAS_XLIB_SURFACE'
20911                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20912 ""$cr_make_tmp"
20913                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20914 "'endif'
20915
20916                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20917 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
20918                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20919 ""$cr_make_tmp"
20920                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20921 "'endif'
20922                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_headers)
20923 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_private)
20924 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_cxx_sources)
20925 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_sources)'
20926                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20927 "'if CAIRO_HAS_XLIB_SURFACE'
20928                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20929 ""$cr_make_tmp"
20930                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
20931 "'endif'
20932
20933                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20934 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
20935                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20936 ""$cr_make_tmp"
20937                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
20938 "'endif'
20939
20940
20941
20942
20943                                         if test "x$use_xlib" = xyes; then :
20944   :
20945                 ac_config_files="$ac_config_files src/cairo-xlib.pc:src/cairo-features.pc.in"
20946
20947
20948 fi
20949                                         if test "x$use_xlib" = xyes; then :
20950   :
20951                 ac_config_files="$ac_config_files cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
20952
20953
20954 fi
20955                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib.pc'
20956                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20957 ""$cr_make_tmp"
20958
20959                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20960 ""$cr_make_tmp"
20961
20962
20963                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib.pc'
20964                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20965 "'if CAIRO_HAS_XLIB_SURFACE'
20966                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20967 ""$cr_make_tmp"
20968                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
20969 "'endif'
20970
20971                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20972 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
20973                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20974 ""$cr_make_tmp"
20975                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
20976 "'endif'
20977
20978
20979                                         if test "x$use_xlib" = xyes; then :
20980   :
20981                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
20982
20983
20984 fi
20985                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
20986
20987
20988
20989                                         if test "x$use_xlib" != xyes; then :
20990   :
20991                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_SURFACE'
20992
20993
20994
20995 fi
20996
20997                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
20998                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
20999 "'ifeq ($(CAIRO_HAS_XLIB_SURFACE),1)'
21000                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21001 ""$cr_make_tmp"
21002                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21003 "'endif'
21004
21005
21006
21007
21008                                         if test "x$use_xlib" = xyes; then :
21009   :
21010                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib'
21011
21012
21013
21014 fi
21015
21016
21017
21018                                                                                                                                 # Check whether --enable-xlib-xrender was given.
21019 if test "${enable_xlib_xrender+set}" = set; then :
21020   enableval=$enable_xlib_xrender; enable_xlib_xrender=$enableval
21021 else
21022   enable_xlib_xrender=auto
21023 fi
21024
21025                         case $enable_xlib_xrender in #(
21026   no) :
21027                 use_xlib_xrender="no (disabled, use --enable-xlib-xrender to enable)"
21028          ;; #(
21029         yes|auto) :
21030                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib Xrender surface backend feature" >&5
21031 $as_echo_n "checking for cairo's Xlib Xrender surface backend feature... " >&6; }
21032                 echo
21033
21034                 use_xlib_xrender=yes
21035                         xlib_xrender_BASE="cairo"
21036 xlib_xrender_REQUIRES="$ac_env_xlib_xrender_REQUIRES_value"
21037 xlib_xrender_CFLAGS="$ac_env_xlib_xrender_CFLAGS_value"
21038 xlib_xrender_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xrender_NONPKGCONFIG_CFLAGS_value"
21039 xlib_xrender_LIBS="$ac_env_xlib_xrender_LIBS_value"
21040 xlib_xrender_NONPKGCONFIG_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_LIBS_value"
21041 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xrender_NONPKGCONFIG_EXTRA_LIBS_value"
21042
21043
21044
21045   if test "x$use_xlib" != "xyes"; then
21046     use_xlib_xrender="no (requires --enable-xlib)"
21047   else
21048         xlib_xrender_BASE=cairo-xlib
21049     xlib_xrender_REQUIRES="xrender >= 0.6"
21050
21051 pkg_failed=no
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xrender" >&5
21053 $as_echo_n "checking for xlib_xrender... " >&6; }
21054
21055 if test -n "$xlib_xrender_CFLAGS"; then
21056     pkg_cv_xlib_xrender_CFLAGS="$xlib_xrender_CFLAGS"
21057  elif test -n "$PKG_CONFIG"; then
21058     if test -n "$PKG_CONFIG" && \
21059     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
21060   ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
21061   ac_status=$?
21062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063   test $ac_status = 0; }; then
21064   pkg_cv_xlib_xrender_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xrender_REQUIRES" 2>/dev/null`
21065 else
21066   pkg_failed=yes
21067 fi
21068  else
21069     pkg_failed=untried
21070 fi
21071 if test -n "$xlib_xrender_LIBS"; then
21072     pkg_cv_xlib_xrender_LIBS="$xlib_xrender_LIBS"
21073  elif test -n "$PKG_CONFIG"; then
21074     if test -n "$PKG_CONFIG" && \
21075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xrender_REQUIRES\""; } >&5
21076   ($PKG_CONFIG --exists --print-errors "$xlib_xrender_REQUIRES") 2>&5
21077   ac_status=$?
21078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21079   test $ac_status = 0; }; then
21080   pkg_cv_xlib_xrender_LIBS=`$PKG_CONFIG --libs "$xlib_xrender_REQUIRES" 2>/dev/null`
21081 else
21082   pkg_failed=yes
21083 fi
21084  else
21085     pkg_failed=untried
21086 fi
21087
21088
21089
21090 if test $pkg_failed = yes; then
21091
21092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21093         _pkg_short_errors_supported=yes
21094 else
21095         _pkg_short_errors_supported=no
21096 fi
21097         if test $_pkg_short_errors_supported = yes; then
21098                 xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xrender_REQUIRES" 2>&1`
21099         else
21100                 xlib_xrender_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xrender_REQUIRES" 2>&1`
21101         fi
21102         # Put the nasty error message in config.log where it belongs
21103         echo "$xlib_xrender_PKG_ERRORS" >&5
21104
21105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21106 $as_echo "no" >&6; }
21107                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21108 $as_echo "no" >&6; }
21109                        xlib_xrender_REQUIRES=""
21110                        old_CPPFLAGS=$CPPFLAGS
21111                        CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
21112                        ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
21113 if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
21114   xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
21115 else
21116   use_xlib_xrender="no (requires $xlib_xrender_REQUIRES http://freedesktop.org/Software/xlibs)"
21117 fi
21118
21119
21120                        CPPFLAGS=$old_CPPFLAGS
21121
21122 elif test $pkg_failed = untried; then
21123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21125                        xlib_xrender_REQUIRES=""
21126                        old_CPPFLAGS=$CPPFLAGS
21127                        CPPFLAGS="$CPPFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS"
21128                        ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
21129 if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
21130   xlib_xrender_NONPKGCONFIG_LIBS="-lXrender"
21131 else
21132   use_xlib_xrender="no (requires $xlib_xrender_REQUIRES http://freedesktop.org/Software/xlibs)"
21133 fi
21134
21135
21136                        CPPFLAGS=$old_CPPFLAGS
21137
21138 else
21139         xlib_xrender_CFLAGS=$pkg_cv_xlib_xrender_CFLAGS
21140         xlib_xrender_LIBS=$pkg_cv_xlib_xrender_LIBS
21141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21142 $as_echo "yes" >&6; }
21143         :
21144 fi
21145
21146     old_CFLAGS=$CFLAGS
21147     old_LIBS=$LIBS
21148     CFLAGS="$CFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS $xlib_xrender_CFLAGS $xlib_xrender_NONPKGCONFIG_CFLAGS"
21149     LIBS="$LIBS $xlib_LIBS $xlib_NONPKGCONFIG_LIBS $xlib_xrender_LIBS $xlib_xrender_NONPKGCONFIG_LIBS"
21150     for ac_func in XRenderCreateLinearGradient XRenderCreateRadialGradient XRenderCreateConicalGradient
21151 do :
21152   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21153 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21154 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21155   cat >>confdefs.h <<_ACEOF
21156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21157 _ACEOF
21158
21159 fi
21160 done
21161
21162     CFLAGS=$old_CFLAGS
21163     LIBS=$old_LIBS
21164
21165   fi
21166
21167
21168                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib Xrender surface backend feature could be enabled" >&5
21169 $as_echo_n "checking whether cairo's Xlib Xrender surface backend feature could be enabled... " >&6; }
21170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xrender" >&5
21171 $as_echo "$use_xlib_xrender" >&6; }
21172
21173                 if test "x$enable_xlib_xrender" = "xyes" -a "x$use_xlib_xrender" != xyes; then :
21174                         as_fn_error $? " Xlib Xrender surface backend feature could not be enabled" "$LINENO" 5
21175
21176 fi       ;; #(
21177   *) :
21178                         as_fn_error $? "invalid argument passed to --enable-xlib-xrender: \`$use_xlib_xrender', should be one of [no/auto/yes]" "$LINENO" 5
21179          ;;
21180 esac
21181         if test "x$use_xlib_xrender" = "xyes"; then :
21182                                                                                 CAIRO_REQUIRES="$xlib_xrender_REQUIRES"" ${CAIRO_REQUIRES}"
21183
21184                                                                         CAIRO_CFLAGS="$xlib_xrender_CFLAGS"" ${CAIRO_CFLAGS}"
21185
21186                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xrender_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
21187
21188                                                                         CAIRO_LIBS="$xlib_xrender_LIBS"" ${CAIRO_LIBS}"
21189
21190                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_xrender_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
21191
21192
21193 else
21194                                         unset xlib_xrender_BASE
21195 unset xlib_xrender_REQUIRES
21196 unset xlib_xrender_CFLAGS
21197 unset xlib_xrender_NONPKGCONFIG_CFLAGS
21198 unset xlib_xrender_LIBS
21199 unset xlib_xrender_NONPKGCONFIG_LIBS
21200 unset xlib_xrender_NONPKGCONFIG_EXTRA_LIBS
21201
21202
21203 fi
21204
21205                                                          if test "x$use_xlib_xrender" = xyes; then
21206   CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE=
21207   CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE='#'
21208 else
21209   CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE='#'
21210   CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE=
21211 fi
21212
21213
21214                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_XRENDER_SURFACE=0'
21215                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
21216 ""$cr_make_tmp"
21217
21218
21219                                                                                 cr_make_tmp=''
21220                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21221 ""$cr_make_tmp"
21222
21223                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21224 ""$cr_make_tmp"
21225                                                                                 cr_make_tmp=''
21226                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21227 ""$cr_make_tmp"
21228
21229                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21230 ""$cr_make_tmp"
21231
21232
21233                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xlib_xrender_headers)'
21234                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21235 ""$cr_make_tmp"
21236
21237                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21238 ""$cr_make_tmp"
21239                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)'
21240                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21241 ""$cr_make_tmp"
21242
21243                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21244 ""$cr_make_tmp"
21245
21246
21247
21248                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_xrender_headers)
21249 all_cairo_private += $(cairo_xlib_xrender_private)
21250 all_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
21251 all_cairo_sources += $(cairo_xlib_xrender_sources)'
21252                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21253 ""$cr_make_tmp"
21254
21255                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21256 ""$cr_make_tmp"
21257                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
21258 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
21259 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
21260 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
21261                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21262 ""$cr_make_tmp"
21263
21264                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21265 ""$cr_make_tmp"
21266
21267
21268                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xrender_headers)
21269 enabled_cairo_private += $(cairo_xlib_xrender_private)
21270 enabled_cairo_cxx_sources += $(cairo_xlib_xrender_cxx_sources)
21271 enabled_cairo_sources += $(cairo_xlib_xrender_sources)'
21272                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21273 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
21274                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21275 ""$cr_make_tmp"
21276                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21277 "'endif'
21278
21279                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21280 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
21281                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21282 ""$cr_make_tmp"
21283                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21284 "'endif'
21285                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xrender_headers)
21286 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xrender_private)
21287 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xrender_cxx_sources)
21288 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xrender_sources)'
21289                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21290 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
21291                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21292 ""$cr_make_tmp"
21293                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21294 "'endif'
21295
21296                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21297 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
21298                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21299 ""$cr_make_tmp"
21300                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21301 "'endif'
21302
21303
21304
21305
21306                                         if test "x$use_xlib_xrender" = xyes; then :
21307   :
21308                 ac_config_files="$ac_config_files src/cairo-xlib-xrender.pc:src/cairo-features.pc.in"
21309
21310
21311 fi
21312                                         if test "x$use_xlib_xrender" = xyes; then :
21313   :
21314                 ac_config_files="$ac_config_files cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
21315
21316
21317 fi
21318                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xrender.pc'
21319                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21320 ""$cr_make_tmp"
21321
21322                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21323 ""$cr_make_tmp"
21324
21325
21326                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xrender.pc'
21327                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21328 "'if CAIRO_HAS_XLIB_XRENDER_SURFACE'
21329                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21330 ""$cr_make_tmp"
21331                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21332 "'endif'
21333
21334                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21335 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
21336                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21337 ""$cr_make_tmp"
21338                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21339 "'endif'
21340
21341
21342                                         if test "x$use_xlib_xrender" = xyes; then :
21343   :
21344                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
21345
21346
21347 fi
21348                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
21349
21350
21351
21352                                         if test "x$use_xlib_xrender" != xyes; then :
21353   :
21354                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XLIB_XRENDER_SURFACE'
21355
21356
21357
21358 fi
21359
21360                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
21361                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21362 "'ifeq ($(CAIRO_HAS_XLIB_XRENDER_SURFACE),1)'
21363                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21364 ""$cr_make_tmp"
21365                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21366 "'endif'
21367
21368
21369
21370
21371                                         if test "x$use_xlib_xrender" = xyes; then :
21372   :
21373                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xlib_xrender'
21374
21375
21376
21377 fi
21378
21379
21380
21381
21382                                                                                                                                 # Check whether --enable-xcb was given.
21383 if test "${enable_xcb+set}" = set; then :
21384   enableval=$enable_xcb; enable_xcb=$enableval
21385 else
21386   enable_xcb=auto
21387 fi
21388
21389                         case $enable_xcb in #(
21390   no) :
21391                 use_xcb="no (disabled, use --enable-xcb to enable)"
21392          ;; #(
21393         yes|auto) :
21394                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB surface backend feature" >&5
21395 $as_echo_n "checking for cairo's XCB surface backend feature... " >&6; }
21396                 echo
21397
21398                 use_xcb=yes
21399                         xcb_BASE="cairo"
21400 xcb_REQUIRES="$ac_env_xcb_REQUIRES_value"
21401 xcb_CFLAGS="$ac_env_xcb_CFLAGS_value"
21402 xcb_NONPKGCONFIG_CFLAGS="$ac_env_xcb_NONPKGCONFIG_CFLAGS_value"
21403 xcb_LIBS="$ac_env_xcb_LIBS_value"
21404 xcb_NONPKGCONFIG_LIBS="$ac_env_xcb_NONPKGCONFIG_LIBS_value"
21405 xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
21406
21407
21408
21409   xcb_REQUIRES="xcb >= 1.6 xcb-render >= 1.6"
21410
21411 pkg_failed=no
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb" >&5
21413 $as_echo_n "checking for xcb... " >&6; }
21414
21415 if test -n "$xcb_CFLAGS"; then
21416     pkg_cv_xcb_CFLAGS="$xcb_CFLAGS"
21417  elif test -n "$PKG_CONFIG"; then
21418     if test -n "$PKG_CONFIG" && \
21419     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
21420   ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
21421   ac_status=$?
21422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21423   test $ac_status = 0; }; then
21424   pkg_cv_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xcb_REQUIRES" 2>/dev/null`
21425 else
21426   pkg_failed=yes
21427 fi
21428  else
21429     pkg_failed=untried
21430 fi
21431 if test -n "$xcb_LIBS"; then
21432     pkg_cv_xcb_LIBS="$xcb_LIBS"
21433  elif test -n "$PKG_CONFIG"; then
21434     if test -n "$PKG_CONFIG" && \
21435     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_REQUIRES\""; } >&5
21436   ($PKG_CONFIG --exists --print-errors "$xcb_REQUIRES") 2>&5
21437   ac_status=$?
21438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21439   test $ac_status = 0; }; then
21440   pkg_cv_xcb_LIBS=`$PKG_CONFIG --libs "$xcb_REQUIRES" 2>/dev/null`
21441 else
21442   pkg_failed=yes
21443 fi
21444  else
21445     pkg_failed=untried
21446 fi
21447
21448
21449
21450 if test $pkg_failed = yes; then
21451
21452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21453         _pkg_short_errors_supported=yes
21454 else
21455         _pkg_short_errors_supported=no
21456 fi
21457         if test $_pkg_short_errors_supported = yes; then
21458                 xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_REQUIRES" 2>&1`
21459         else
21460                 xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_REQUIRES" 2>&1`
21461         fi
21462         # Put the nasty error message in config.log where it belongs
21463         echo "$xcb_PKG_ERRORS" >&5
21464
21465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21466 $as_echo "no" >&6; }
21467                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21468 $as_echo "no" >&6; }
21469                     use_xcb="no (requires $xcb_REQUIRES http://xcb.freedesktop.org)"
21470 elif test $pkg_failed = untried; then
21471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21472 $as_echo "no" >&6; }
21473                     use_xcb="no (requires $xcb_REQUIRES http://xcb.freedesktop.org)"
21474 else
21475         xcb_CFLAGS=$pkg_cv_xcb_CFLAGS
21476         xcb_LIBS=$pkg_cv_xcb_LIBS
21477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21478 $as_echo "yes" >&6; }
21479         :
21480 fi
21481
21482
21483                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB surface backend feature could be enabled" >&5
21484 $as_echo_n "checking whether cairo's XCB surface backend feature could be enabled... " >&6; }
21485                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb" >&5
21486 $as_echo "$use_xcb" >&6; }
21487
21488                 if test "x$enable_xcb" = "xyes" -a "x$use_xcb" != xyes; then :
21489                         as_fn_error $? " XCB surface backend feature could not be enabled" "$LINENO" 5
21490
21491 fi       ;; #(
21492   *) :
21493                         as_fn_error $? "invalid argument passed to --enable-xcb: \`$use_xcb', should be one of [no/auto/yes]" "$LINENO" 5
21494          ;;
21495 esac
21496         if test "x$use_xcb" = "xyes"; then :
21497                                                                                 CAIRO_REQUIRES="$xcb_REQUIRES"" ${CAIRO_REQUIRES}"
21498
21499                                                                         CAIRO_CFLAGS="$xcb_CFLAGS"" ${CAIRO_CFLAGS}"
21500
21501                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
21502
21503                                                                         CAIRO_LIBS="$xcb_LIBS"" ${CAIRO_LIBS}"
21504
21505                                                                         CAIRO_NONPKGCONFIG_LIBS="$xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
21506
21507
21508 else
21509                                         unset xcb_BASE
21510 unset xcb_REQUIRES
21511 unset xcb_CFLAGS
21512 unset xcb_NONPKGCONFIG_CFLAGS
21513 unset xcb_LIBS
21514 unset xcb_NONPKGCONFIG_LIBS
21515 unset xcb_NONPKGCONFIG_EXTRA_LIBS
21516
21517
21518 fi
21519
21520                                                          if test "x$use_xcb" = xyes; then
21521   CAIRO_HAS_XCB_SURFACE_TRUE=
21522   CAIRO_HAS_XCB_SURFACE_FALSE='#'
21523 else
21524   CAIRO_HAS_XCB_SURFACE_TRUE='#'
21525   CAIRO_HAS_XCB_SURFACE_FALSE=
21526 fi
21527
21528
21529                                                                                 cr_make_tmp='CAIRO_HAS_XCB_SURFACE=0'
21530                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
21531 ""$cr_make_tmp"
21532
21533
21534                                                                                 cr_make_tmp=''
21535                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21536 ""$cr_make_tmp"
21537
21538                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21539 ""$cr_make_tmp"
21540                                                                                 cr_make_tmp=''
21541                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21542 ""$cr_make_tmp"
21543
21544                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21545 ""$cr_make_tmp"
21546
21547
21548                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xcb_headers)'
21549                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21550 ""$cr_make_tmp"
21551
21552                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21553 ""$cr_make_tmp"
21554                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)'
21555                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21556 ""$cr_make_tmp"
21557
21558                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21559 ""$cr_make_tmp"
21560
21561
21562
21563                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xcb_headers)
21564 all_cairo_private += $(cairo_xcb_private)
21565 all_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
21566 all_cairo_sources += $(cairo_xcb_sources)'
21567                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21568 ""$cr_make_tmp"
21569
21570                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21571 ""$cr_make_tmp"
21572                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
21573 all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
21574 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
21575 all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
21576                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21577 ""$cr_make_tmp"
21578
21579                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21580 ""$cr_make_tmp"
21581
21582
21583                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_headers)
21584 enabled_cairo_private += $(cairo_xcb_private)
21585 enabled_cairo_cxx_sources += $(cairo_xcb_cxx_sources)
21586 enabled_cairo_sources += $(cairo_xcb_sources)'
21587                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21588 "'if CAIRO_HAS_XCB_SURFACE'
21589                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21590 ""$cr_make_tmp"
21591                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21592 "'endif'
21593
21594                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21595 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
21596                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21597 ""$cr_make_tmp"
21598                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21599 "'endif'
21600                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_headers)
21601 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_private)
21602 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_cxx_sources)
21603 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_sources)'
21604                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21605 "'if CAIRO_HAS_XCB_SURFACE'
21606                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21607 ""$cr_make_tmp"
21608                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21609 "'endif'
21610
21611                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21612 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
21613                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21614 ""$cr_make_tmp"
21615                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21616 "'endif'
21617
21618
21619
21620
21621                                         if test "x$use_xcb" = xyes; then :
21622   :
21623                 ac_config_files="$ac_config_files src/cairo-xcb.pc:src/cairo-features.pc.in"
21624
21625
21626 fi
21627                                         if test "x$use_xcb" = xyes; then :
21628   :
21629                 ac_config_files="$ac_config_files cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
21630
21631
21632 fi
21633                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xcb.pc'
21634                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21635 ""$cr_make_tmp"
21636
21637                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21638 ""$cr_make_tmp"
21639
21640
21641                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb.pc'
21642                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21643 "'if CAIRO_HAS_XCB_SURFACE'
21644                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21645 ""$cr_make_tmp"
21646                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21647 "'endif'
21648
21649                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21650 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
21651                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21652 ""$cr_make_tmp"
21653                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21654 "'endif'
21655
21656
21657                                         if test "x$use_xcb" = xyes; then :
21658   :
21659                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
21660
21661
21662 fi
21663                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
21664
21665
21666
21667                                         if test "x$use_xcb" != xyes; then :
21668   :
21669                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SURFACE'
21670
21671
21672
21673 fi
21674
21675                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XCB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
21676                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21677 "'ifeq ($(CAIRO_HAS_XCB_SURFACE),1)'
21678                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21679 ""$cr_make_tmp"
21680                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21681 "'endif'
21682
21683
21684
21685
21686                                         if test "x$use_xcb" = xyes; then :
21687   :
21688                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'xcb'
21689
21690
21691
21692 fi
21693
21694
21695
21696                                                                                                                                 # Check whether --enable-xlib-xcb was given.
21697 if test "${enable_xlib_xcb+set}" = set; then :
21698   enableval=$enable_xlib_xcb; enable_xlib_xcb=$enableval
21699 else
21700   enable_xlib_xcb=no
21701 fi
21702
21703                         case $enable_xlib_xcb in #(
21704   no) :
21705                 use_xlib_xcb="no (disabled, use --enable-xlib-xcb to enable)"
21706          ;; #(
21707         yes|auto) :
21708                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Xlib/XCB functions feature" >&5
21709 $as_echo_n "checking for cairo's Xlib/XCB functions feature... " >&6; }
21710                 echo
21711
21712                 use_xlib_xcb=yes
21713                         xlib_xcb_BASE="cairo"
21714 xlib_xcb_REQUIRES="$ac_env_xlib_xcb_REQUIRES_value"
21715 xlib_xcb_CFLAGS="$ac_env_xlib_xcb_CFLAGS_value"
21716 xlib_xcb_NONPKGCONFIG_CFLAGS="$ac_env_xlib_xcb_NONPKGCONFIG_CFLAGS_value"
21717 xlib_xcb_LIBS="$ac_env_xlib_xcb_LIBS_value"
21718 xlib_xcb_NONPKGCONFIG_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_LIBS_value"
21719 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xlib_xcb_NONPKGCONFIG_EXTRA_LIBS_value"
21720
21721
21722
21723   if test "x$use_xcb" = "xyes" -a "x$use_xlib" = "xyes"; then
21724     xlib_xcb_REQUIRES="x11-xcb"
21725
21726 pkg_failed=no
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlib_xcb" >&5
21728 $as_echo_n "checking for xlib_xcb... " >&6; }
21729
21730 if test -n "$xlib_xcb_CFLAGS"; then
21731     pkg_cv_xlib_xcb_CFLAGS="$xlib_xcb_CFLAGS"
21732  elif test -n "$PKG_CONFIG"; then
21733     if test -n "$PKG_CONFIG" && \
21734     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
21735   ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
21736   ac_status=$?
21737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738   test $ac_status = 0; }; then
21739   pkg_cv_xlib_xcb_CFLAGS=`$PKG_CONFIG --cflags "$xlib_xcb_REQUIRES" 2>/dev/null`
21740 else
21741   pkg_failed=yes
21742 fi
21743  else
21744     pkg_failed=untried
21745 fi
21746 if test -n "$xlib_xcb_LIBS"; then
21747     pkg_cv_xlib_xcb_LIBS="$xlib_xcb_LIBS"
21748  elif test -n "$PKG_CONFIG"; then
21749     if test -n "$PKG_CONFIG" && \
21750     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xlib_xcb_REQUIRES\""; } >&5
21751   ($PKG_CONFIG --exists --print-errors "$xlib_xcb_REQUIRES") 2>&5
21752   ac_status=$?
21753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21754   test $ac_status = 0; }; then
21755   pkg_cv_xlib_xcb_LIBS=`$PKG_CONFIG --libs "$xlib_xcb_REQUIRES" 2>/dev/null`
21756 else
21757   pkg_failed=yes
21758 fi
21759  else
21760     pkg_failed=untried
21761 fi
21762
21763
21764
21765 if test $pkg_failed = yes; then
21766
21767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21768         _pkg_short_errors_supported=yes
21769 else
21770         _pkg_short_errors_supported=no
21771 fi
21772         if test $_pkg_short_errors_supported = yes; then
21773                 xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xlib_xcb_REQUIRES" 2>&1`
21774         else
21775                 xlib_xcb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xlib_xcb_REQUIRES" 2>&1`
21776         fi
21777         # Put the nasty error message in config.log where it belongs
21778         echo "$xlib_xcb_PKG_ERRORS" >&5
21779
21780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21781 $as_echo "no" >&6; }
21782                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21783 $as_echo "no" >&6; }
21784                       use_xlib_xcb="no (requires $xlib_xcb_REQUIRES http://xcb.freedesktop.org)"
21785 elif test $pkg_failed = untried; then
21786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21787 $as_echo "no" >&6; }
21788                       use_xlib_xcb="no (requires $xlib_xcb_REQUIRES http://xcb.freedesktop.org)"
21789 else
21790         xlib_xcb_CFLAGS=$pkg_cv_xlib_xcb_CFLAGS
21791         xlib_xcb_LIBS=$pkg_cv_xlib_xcb_LIBS
21792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21793 $as_echo "yes" >&6; }
21794         :
21795 fi
21796   else
21797     use_xlib_xcb="no (requires both --enable-xlib and --enable-xcb)"
21798   fi
21799
21800
21801                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Xlib/XCB functions feature could be enabled" >&5
21802 $as_echo_n "checking whether cairo's Xlib/XCB functions feature could be enabled... " >&6; }
21803                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xlib_xcb" >&5
21804 $as_echo "$use_xlib_xcb" >&6; }
21805
21806                 if test "x$enable_xlib_xcb" = "xyes" -a "x$use_xlib_xcb" != xyes; then :
21807                         as_fn_error $? " Xlib/XCB functions feature could not be enabled" "$LINENO" 5
21808
21809 fi       ;; #(
21810   *) :
21811                         as_fn_error $? "invalid argument passed to --enable-xlib-xcb: \`$use_xlib_xcb', should be one of [no/auto/yes]" "$LINENO" 5
21812          ;;
21813 esac
21814         if test "x$use_xlib_xcb" = "xyes"; then :
21815                                                                                 CAIRO_REQUIRES="$xlib_xcb_REQUIRES"" ${CAIRO_REQUIRES}"
21816
21817                                                                         CAIRO_CFLAGS="$xlib_xcb_CFLAGS"" ${CAIRO_CFLAGS}"
21818
21819                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xlib_xcb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
21820
21821                                                                         CAIRO_LIBS="$xlib_xcb_LIBS"" ${CAIRO_LIBS}"
21822
21823                                                                         CAIRO_NONPKGCONFIG_LIBS="$xlib_xcb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
21824
21825
21826 else
21827                                         unset xlib_xcb_BASE
21828 unset xlib_xcb_REQUIRES
21829 unset xlib_xcb_CFLAGS
21830 unset xlib_xcb_NONPKGCONFIG_CFLAGS
21831 unset xlib_xcb_LIBS
21832 unset xlib_xcb_NONPKGCONFIG_LIBS
21833 unset xlib_xcb_NONPKGCONFIG_EXTRA_LIBS
21834
21835
21836 fi
21837
21838                                                          if test "x$use_xlib_xcb" = xyes; then
21839   CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE=
21840   CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE='#'
21841 else
21842   CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE='#'
21843   CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE=
21844 fi
21845
21846
21847                                                                                 cr_make_tmp='CAIRO_HAS_XLIB_XCB_FUNCTIONS=0'
21848                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
21849 ""$cr_make_tmp"
21850
21851
21852                                                                                 cr_make_tmp=''
21853                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21854 ""$cr_make_tmp"
21855
21856                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21857 ""$cr_make_tmp"
21858                                                                                 cr_make_tmp=''
21859                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21860 ""$cr_make_tmp"
21861
21862                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21863 ""$cr_make_tmp"
21864
21865
21866
21867                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_xlib_xcb_headers)'
21868                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21869 ""$cr_make_tmp"
21870
21871                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21872 ""$cr_make_tmp"
21873                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)'
21874                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21875 ""$cr_make_tmp"
21876
21877                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21878 ""$cr_make_tmp"
21879
21880
21881                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xlib_xcb_headers)
21882 all_cairo_private += $(cairo_xlib_xcb_private)
21883 all_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
21884 all_cairo_sources += $(cairo_xlib_xcb_sources)'
21885                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21886 ""$cr_make_tmp"
21887
21888                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21889 ""$cr_make_tmp"
21890                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
21891 all_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
21892 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
21893 all_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
21894                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21895 ""$cr_make_tmp"
21896
21897                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21898 ""$cr_make_tmp"
21899
21900
21901                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xlib_xcb_headers)
21902 enabled_cairo_private += $(cairo_xlib_xcb_private)
21903 enabled_cairo_cxx_sources += $(cairo_xlib_xcb_cxx_sources)
21904 enabled_cairo_sources += $(cairo_xlib_xcb_sources)'
21905                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21906 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
21907                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21908 ""$cr_make_tmp"
21909                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21910 "'endif'
21911
21912                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21913 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
21914                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21915 ""$cr_make_tmp"
21916                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21917 "'endif'
21918                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xlib_xcb_headers)
21919 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xlib_xcb_private)
21920 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xlib_xcb_cxx_sources)
21921 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xlib_xcb_sources)'
21922                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21923 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
21924                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21925 ""$cr_make_tmp"
21926                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
21927 "'endif'
21928
21929                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21930 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
21931                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21932 ""$cr_make_tmp"
21933                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
21934 "'endif'
21935
21936
21937
21938
21939                                         if test "x$use_xlib_xcb" = xyes; then :
21940   :
21941                 ac_config_files="$ac_config_files src/cairo-xlib-xcb.pc:src/cairo-features.pc.in"
21942
21943
21944 fi
21945                                         if test "x$use_xlib_xcb" = xyes; then :
21946   :
21947                 ac_config_files="$ac_config_files cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
21948
21949
21950 fi
21951                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xlib-xcb.pc'
21952                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21953 ""$cr_make_tmp"
21954
21955                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21956 ""$cr_make_tmp"
21957
21958
21959                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xlib-xcb.pc'
21960                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21961 "'if CAIRO_HAS_XLIB_XCB_FUNCTIONS'
21962                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21963 ""$cr_make_tmp"
21964                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
21965 "'endif'
21966
21967                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21968 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
21969                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21970 ""$cr_make_tmp"
21971                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
21972 "'endif'
21973
21974
21975                                         if test "x$use_xlib_xcb" = xyes; then :
21976   :
21977                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XLIB_XCB_FUNCTIONS'
21978
21979
21980 fi
21981
21982
21983
21984                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XLIB_XCB_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
21985                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21986 "'ifeq ($(CAIRO_HAS_XLIB_XCB_FUNCTIONS),1)'
21987                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21988 ""$cr_make_tmp"
21989                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
21990 "'endif'
21991
21992
21993                                         if test "x$use_xlib_xcb" = xyes; then :
21994   :
21995                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
21996
21997 "'--- The Xlib/XCB functions feature is still under active development and is
21998 --- included in this release only as a preview. It does NOT fully work yet
21999 --- and incompatible changes may yet be made to Xlib/XCB functions specific
22000 --- API.'
22001
22002
22003
22004 fi
22005
22006
22007
22008
22009
22010                                                                                                                                 # Check whether --enable-xcb-shm was given.
22011 if test "${enable_xcb_shm+set}" = set; then :
22012   enableval=$enable_xcb_shm; enable_xcb_shm=$enableval
22013 else
22014   enable_xcb_shm=auto
22015 fi
22016
22017                         case $enable_xcb_shm in #(
22018   no) :
22019                 use_xcb_shm="no (disabled, use --enable-xcb-shm to enable)"
22020          ;; #(
22021         yes|auto) :
22022                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's XCB/SHM functions feature" >&5
22023 $as_echo_n "checking for cairo's XCB/SHM functions feature... " >&6; }
22024                 echo
22025
22026                 use_xcb_shm=yes
22027                         xcb_shm_BASE="cairo"
22028 xcb_shm_REQUIRES="$ac_env_xcb_shm_REQUIRES_value"
22029 xcb_shm_CFLAGS="$ac_env_xcb_shm_CFLAGS_value"
22030 xcb_shm_NONPKGCONFIG_CFLAGS="$ac_env_xcb_shm_NONPKGCONFIG_CFLAGS_value"
22031 xcb_shm_LIBS="$ac_env_xcb_shm_LIBS_value"
22032 xcb_shm_NONPKGCONFIG_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_LIBS_value"
22033 xcb_shm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xcb_shm_NONPKGCONFIG_EXTRA_LIBS_value"
22034
22035
22036
22037   if test "x$use_xcb" = "xyes"; then
22038       xcb_shm_REQUIRES="xcb-shm"
22039
22040 pkg_failed=no
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_shm" >&5
22042 $as_echo_n "checking for xcb_shm... " >&6; }
22043
22044 if test -n "$xcb_shm_CFLAGS"; then
22045     pkg_cv_xcb_shm_CFLAGS="$xcb_shm_CFLAGS"
22046  elif test -n "$PKG_CONFIG"; then
22047     if test -n "$PKG_CONFIG" && \
22048     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
22049   ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
22050   ac_status=$?
22051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052   test $ac_status = 0; }; then
22053   pkg_cv_xcb_shm_CFLAGS=`$PKG_CONFIG --cflags "$xcb_shm_REQUIRES" 2>/dev/null`
22054 else
22055   pkg_failed=yes
22056 fi
22057  else
22058     pkg_failed=untried
22059 fi
22060 if test -n "$xcb_shm_LIBS"; then
22061     pkg_cv_xcb_shm_LIBS="$xcb_shm_LIBS"
22062  elif test -n "$PKG_CONFIG"; then
22063     if test -n "$PKG_CONFIG" && \
22064     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$xcb_shm_REQUIRES\""; } >&5
22065   ($PKG_CONFIG --exists --print-errors "$xcb_shm_REQUIRES") 2>&5
22066   ac_status=$?
22067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068   test $ac_status = 0; }; then
22069   pkg_cv_xcb_shm_LIBS=`$PKG_CONFIG --libs "$xcb_shm_REQUIRES" 2>/dev/null`
22070 else
22071   pkg_failed=yes
22072 fi
22073  else
22074     pkg_failed=untried
22075 fi
22076
22077
22078
22079 if test $pkg_failed = yes; then
22080
22081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22082         _pkg_short_errors_supported=yes
22083 else
22084         _pkg_short_errors_supported=no
22085 fi
22086         if test $_pkg_short_errors_supported = yes; then
22087                 xcb_shm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$xcb_shm_REQUIRES" 2>&1`
22088         else
22089                 xcb_shm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$xcb_shm_REQUIRES" 2>&1`
22090         fi
22091         # Put the nasty error message in config.log where it belongs
22092         echo "$xcb_shm_PKG_ERRORS" >&5
22093
22094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097 $as_echo "no" >&6; }
22098                         use_xcb_shm="no (requires $xcb_shm http://xcb.freedesktop.org)"
22099 elif test $pkg_failed = untried; then
22100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22101 $as_echo "no" >&6; }
22102                         use_xcb_shm="no (requires $xcb_shm http://xcb.freedesktop.org)"
22103 else
22104         xcb_shm_CFLAGS=$pkg_cv_xcb_shm_CFLAGS
22105         xcb_shm_LIBS=$pkg_cv_xcb_shm_LIBS
22106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22107 $as_echo "yes" >&6; }
22108         :
22109 fi
22110   else
22111     use_xcb_shm="no (requires --enable-xcb)"
22112   fi
22113
22114
22115                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's XCB/SHM functions feature could be enabled" >&5
22116 $as_echo_n "checking whether cairo's XCB/SHM functions feature could be enabled... " >&6; }
22117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xcb_shm" >&5
22118 $as_echo "$use_xcb_shm" >&6; }
22119
22120                 if test "x$enable_xcb_shm" = "xyes" -a "x$use_xcb_shm" != xyes; then :
22121                         as_fn_error $? " XCB/SHM functions feature could not be enabled" "$LINENO" 5
22122
22123 fi       ;; #(
22124   *) :
22125                         as_fn_error $? "invalid argument passed to --enable-xcb-shm: \`$use_xcb_shm', should be one of [no/auto/yes]" "$LINENO" 5
22126          ;;
22127 esac
22128         if test "x$use_xcb_shm" = "xyes"; then :
22129                                                                                 CAIRO_REQUIRES="$xcb_shm_REQUIRES"" ${CAIRO_REQUIRES}"
22130
22131                                                                         CAIRO_CFLAGS="$xcb_shm_CFLAGS"" ${CAIRO_CFLAGS}"
22132
22133                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xcb_shm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22134
22135                                                                         CAIRO_LIBS="$xcb_shm_LIBS"" ${CAIRO_LIBS}"
22136
22137                                                                         CAIRO_NONPKGCONFIG_LIBS="$xcb_shm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22138
22139
22140 else
22141                                         unset xcb_shm_BASE
22142 unset xcb_shm_REQUIRES
22143 unset xcb_shm_CFLAGS
22144 unset xcb_shm_NONPKGCONFIG_CFLAGS
22145 unset xcb_shm_LIBS
22146 unset xcb_shm_NONPKGCONFIG_LIBS
22147 unset xcb_shm_NONPKGCONFIG_EXTRA_LIBS
22148
22149
22150 fi
22151
22152                                                          if test "x$use_xcb_shm" = xyes; then
22153   CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE=
22154   CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE='#'
22155 else
22156   CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE='#'
22157   CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE=
22158 fi
22159
22160
22161                                                                                 cr_make_tmp='CAIRO_HAS_XCB_SHM_FUNCTIONS=0'
22162                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22163 ""$cr_make_tmp"
22164
22165
22166                                                                                 cr_make_tmp=''
22167                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22168 ""$cr_make_tmp"
22169
22170                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22171 ""$cr_make_tmp"
22172                                                                                 cr_make_tmp=''
22173                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22174 ""$cr_make_tmp"
22175
22176                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22177 ""$cr_make_tmp"
22178
22179
22180                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_xcb_shm_headers)'
22181                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22182 ""$cr_make_tmp"
22183
22184                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22185 ""$cr_make_tmp"
22186                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)'
22187                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22188 ""$cr_make_tmp"
22189
22190                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22191 ""$cr_make_tmp"
22192
22193
22194
22195                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xcb_shm_headers)
22196 all_cairo_private += $(cairo_xcb_shm_private)
22197 all_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
22198 all_cairo_sources += $(cairo_xcb_shm_sources)'
22199                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22200 ""$cr_make_tmp"
22201
22202                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22203 ""$cr_make_tmp"
22204                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
22205 all_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
22206 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
22207 all_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
22208                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22209 ""$cr_make_tmp"
22210
22211                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22212 ""$cr_make_tmp"
22213
22214
22215                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_xcb_shm_headers)
22216 enabled_cairo_private += $(cairo_xcb_shm_private)
22217 enabled_cairo_cxx_sources += $(cairo_xcb_shm_cxx_sources)
22218 enabled_cairo_sources += $(cairo_xcb_shm_sources)'
22219                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22220 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
22221                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22222 ""$cr_make_tmp"
22223                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22224 "'endif'
22225
22226                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22227 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
22228                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22229 ""$cr_make_tmp"
22230                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22231 "'endif'
22232                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xcb_shm_headers)
22233 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xcb_shm_private)
22234 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xcb_shm_cxx_sources)
22235 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xcb_shm_sources)'
22236                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22237 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
22238                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22239 ""$cr_make_tmp"
22240                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22241 "'endif'
22242
22243                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22244 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
22245                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22246 ""$cr_make_tmp"
22247                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22248 "'endif'
22249
22250
22251
22252
22253                                         if test "x$use_xcb_shm" = xyes; then :
22254   :
22255                 ac_config_files="$ac_config_files src/cairo-xcb-shm.pc:src/cairo-features.pc.in"
22256
22257
22258 fi
22259                                         if test "x$use_xcb_shm" = xyes; then :
22260   :
22261                 ac_config_files="$ac_config_files cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22262
22263
22264 fi
22265                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xcb-shm.pc'
22266                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22267 ""$cr_make_tmp"
22268
22269                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22270 ""$cr_make_tmp"
22271
22272
22273                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xcb-shm.pc'
22274                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22275 "'if CAIRO_HAS_XCB_SHM_FUNCTIONS'
22276                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22277 ""$cr_make_tmp"
22278                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22279 "'endif'
22280
22281                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22282 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
22283                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22284 ""$cr_make_tmp"
22285                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22286 "'endif'
22287
22288
22289                                         if test "x$use_xcb_shm" = xyes; then :
22290   :
22291                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
22292
22293
22294 fi
22295                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
22296
22297
22298
22299                                         if test "x$use_xcb_shm" != xyes; then :
22300   :
22301                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_XCB_SHM_FUNCTIONS'
22302
22303
22304
22305 fi
22306
22307                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XCB_SHM_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
22308                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22309 "'ifeq ($(CAIRO_HAS_XCB_SHM_FUNCTIONS),1)'
22310                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22311 ""$cr_make_tmp"
22312                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22313 "'endif'
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323                                                                                                                                 # Check whether --enable-qt was given.
22324 if test "${enable_qt+set}" = set; then :
22325   enableval=$enable_qt; enable_qt=$enableval
22326 else
22327   enable_qt=no
22328 fi
22329
22330                         case $enable_qt in #(
22331   no) :
22332                 use_qt="no (disabled, use --enable-qt to enable)"
22333          ;; #(
22334         yes|auto) :
22335                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Qt surface backend feature" >&5
22336 $as_echo_n "checking for cairo's Qt surface backend feature... " >&6; }
22337                 echo
22338
22339                 use_qt=yes
22340                         qt_BASE="cairo"
22341 qt_REQUIRES="$ac_env_qt_REQUIRES_value"
22342 qt_CFLAGS="$ac_env_qt_CFLAGS_value"
22343 qt_NONPKGCONFIG_CFLAGS="$ac_env_qt_NONPKGCONFIG_CFLAGS_value"
22344 qt_LIBS="$ac_env_qt_LIBS_value"
22345 qt_NONPKGCONFIG_LIBS="$ac_env_qt_NONPKGCONFIG_LIBS_value"
22346 qt_NONPKGCONFIG_EXTRA_LIBS="$ac_env_qt_NONPKGCONFIG_EXTRA_LIBS_value"
22347
22348
22349
22350   qt_REQUIRES="QtGui >= 4.4.0"
22351
22352 pkg_failed=no
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
22354 $as_echo_n "checking for qt... " >&6; }
22355
22356 if test -n "$qt_CFLAGS"; then
22357     pkg_cv_qt_CFLAGS="$qt_CFLAGS"
22358  elif test -n "$PKG_CONFIG"; then
22359     if test -n "$PKG_CONFIG" && \
22360     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
22361   ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
22362   ac_status=$?
22363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22364   test $ac_status = 0; }; then
22365   pkg_cv_qt_CFLAGS=`$PKG_CONFIG --cflags "$qt_REQUIRES" 2>/dev/null`
22366 else
22367   pkg_failed=yes
22368 fi
22369  else
22370     pkg_failed=untried
22371 fi
22372 if test -n "$qt_LIBS"; then
22373     pkg_cv_qt_LIBS="$qt_LIBS"
22374  elif test -n "$PKG_CONFIG"; then
22375     if test -n "$PKG_CONFIG" && \
22376     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$qt_REQUIRES\""; } >&5
22377   ($PKG_CONFIG --exists --print-errors "$qt_REQUIRES") 2>&5
22378   ac_status=$?
22379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22380   test $ac_status = 0; }; then
22381   pkg_cv_qt_LIBS=`$PKG_CONFIG --libs "$qt_REQUIRES" 2>/dev/null`
22382 else
22383   pkg_failed=yes
22384 fi
22385  else
22386     pkg_failed=untried
22387 fi
22388
22389
22390
22391 if test $pkg_failed = yes; then
22392
22393 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22394         _pkg_short_errors_supported=yes
22395 else
22396         _pkg_short_errors_supported=no
22397 fi
22398         if test $_pkg_short_errors_supported = yes; then
22399                 qt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$qt_REQUIRES" 2>&1`
22400         else
22401                 qt_PKG_ERRORS=`$PKG_CONFIG --print-errors "$qt_REQUIRES" 2>&1`
22402         fi
22403         # Put the nasty error message in config.log where it belongs
22404         echo "$qt_PKG_ERRORS" >&5
22405
22406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407 $as_echo "no" >&6; }
22408                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22409 $as_echo "no" >&6; }
22410                      qt_REQUIRES=""
22411                      use_qt="no (requires Qt4 development libraries)"
22412
22413 elif test $pkg_failed = untried; then
22414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22415 $as_echo "no" >&6; }
22416                      qt_REQUIRES=""
22417                      use_qt="no (requires Qt4 development libraries)"
22418
22419 else
22420         qt_CFLAGS=$pkg_cv_qt_CFLAGS
22421         qt_LIBS=$pkg_cv_qt_LIBS
22422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22423 $as_echo "yes" >&6; }
22424         :
22425 fi
22426
22427
22428                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Qt surface backend feature could be enabled" >&5
22429 $as_echo_n "checking whether cairo's Qt surface backend feature could be enabled... " >&6; }
22430                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_qt" >&5
22431 $as_echo "$use_qt" >&6; }
22432
22433                 if test "x$enable_qt" = "xyes" -a "x$use_qt" != xyes; then :
22434                         as_fn_error $? " Qt surface backend feature could not be enabled" "$LINENO" 5
22435
22436 fi       ;; #(
22437   *) :
22438                         as_fn_error $? "invalid argument passed to --enable-qt: \`$use_qt', should be one of [no/auto/yes]" "$LINENO" 5
22439          ;;
22440 esac
22441         if test "x$use_qt" = "xyes"; then :
22442                                                                                 CAIRO_REQUIRES="$qt_REQUIRES"" ${CAIRO_REQUIRES}"
22443
22444                                                                         CAIRO_CFLAGS="$qt_CFLAGS"" ${CAIRO_CFLAGS}"
22445
22446                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$qt_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22447
22448                                                                         CAIRO_LIBS="$qt_LIBS"" ${CAIRO_LIBS}"
22449
22450                                                                         CAIRO_NONPKGCONFIG_LIBS="$qt_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22451
22452
22453 else
22454                                         unset qt_BASE
22455 unset qt_REQUIRES
22456 unset qt_CFLAGS
22457 unset qt_NONPKGCONFIG_CFLAGS
22458 unset qt_LIBS
22459 unset qt_NONPKGCONFIG_LIBS
22460 unset qt_NONPKGCONFIG_EXTRA_LIBS
22461
22462
22463 fi
22464
22465                                                          if test "x$use_qt" = xyes; then
22466   CAIRO_HAS_QT_SURFACE_TRUE=
22467   CAIRO_HAS_QT_SURFACE_FALSE='#'
22468 else
22469   CAIRO_HAS_QT_SURFACE_TRUE='#'
22470   CAIRO_HAS_QT_SURFACE_FALSE=
22471 fi
22472
22473
22474                                                                                 cr_make_tmp='CAIRO_HAS_QT_SURFACE=0'
22475                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22476 ""$cr_make_tmp"
22477
22478
22479                                                                                 cr_make_tmp=''
22480                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22481 ""$cr_make_tmp"
22482
22483                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22484 ""$cr_make_tmp"
22485                                                                                 cr_make_tmp=''
22486                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22487 ""$cr_make_tmp"
22488
22489                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22490 ""$cr_make_tmp"
22491
22492
22493
22494                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_qt_headers)'
22495                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22496 ""$cr_make_tmp"
22497
22498                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22499 ""$cr_make_tmp"
22500                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)'
22501                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22502 ""$cr_make_tmp"
22503
22504                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22505 ""$cr_make_tmp"
22506
22507
22508                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_qt_headers)
22509 all_cairo_private += $(cairo_qt_private)
22510 all_cairo_cxx_sources += $(cairo_qt_cxx_sources)
22511 all_cairo_sources += $(cairo_qt_sources)'
22512                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22513 ""$cr_make_tmp"
22514
22515                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22516 ""$cr_make_tmp"
22517                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
22518 all_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
22519 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
22520 all_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
22521                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22522 ""$cr_make_tmp"
22523
22524                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22525 ""$cr_make_tmp"
22526
22527
22528                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_qt_headers)
22529 enabled_cairo_private += $(cairo_qt_private)
22530 enabled_cairo_cxx_sources += $(cairo_qt_cxx_sources)
22531 enabled_cairo_sources += $(cairo_qt_sources)'
22532                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22533 "'if CAIRO_HAS_QT_SURFACE'
22534                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22535 ""$cr_make_tmp"
22536                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22537 "'endif'
22538
22539                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22540 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
22541                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22542 ""$cr_make_tmp"
22543                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22544 "'endif'
22545                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_qt_headers)
22546 enabled_cairo_boilerplate_private += $(cairo_boilerplate_qt_private)
22547 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_qt_cxx_sources)
22548 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_qt_sources)'
22549                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22550 "'if CAIRO_HAS_QT_SURFACE'
22551                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22552 ""$cr_make_tmp"
22553                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22554 "'endif'
22555
22556                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22557 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
22558                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22559 ""$cr_make_tmp"
22560                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22561 "'endif'
22562
22563
22564
22565
22566                                         if test "x$use_qt" = xyes; then :
22567   :
22568                 ac_config_files="$ac_config_files src/cairo-qt.pc:src/cairo-features.pc.in"
22569
22570
22571 fi
22572                                         if test "x$use_qt" = xyes; then :
22573   :
22574                 ac_config_files="$ac_config_files cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22575
22576
22577 fi
22578                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-qt.pc'
22579                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22580 ""$cr_make_tmp"
22581
22582                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22583 ""$cr_make_tmp"
22584
22585
22586                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-qt.pc'
22587                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22588 "'if CAIRO_HAS_QT_SURFACE'
22589                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22590 ""$cr_make_tmp"
22591                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22592 "'endif'
22593
22594                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22595 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
22596                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22597 ""$cr_make_tmp"
22598                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22599 "'endif'
22600
22601
22602                                         if test "x$use_qt" = xyes; then :
22603   :
22604                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QT_SURFACE'
22605
22606
22607 fi
22608
22609
22610
22611                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
22612                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22613 "'ifeq ($(CAIRO_HAS_QT_SURFACE),1)'
22614                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22615 ""$cr_make_tmp"
22616                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22617 "'endif'
22618
22619
22620                                         if test "x$use_qt" = xyes; then :
22621   :
22622                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
22623
22624 "'--- The Qt surface backend feature is still under active development and is
22625 --- included in this release only as a preview. It does NOT fully work yet
22626 --- and incompatible changes may yet be made to Qt surface backend specific
22627 --- API.'
22628
22629
22630
22631 fi
22632
22633
22634
22635
22636
22637
22638                                                                                                                                 # Check whether --enable-quartz was given.
22639 if test "${enable_quartz+set}" = set; then :
22640   enableval=$enable_quartz; enable_quartz=$enableval
22641 else
22642   enable_quartz=auto
22643 fi
22644
22645                         case $enable_quartz in #(
22646   no) :
22647                 use_quartz="no (disabled, use --enable-quartz to enable)"
22648          ;; #(
22649         yes|auto) :
22650                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz surface backend feature" >&5
22651 $as_echo_n "checking for cairo's Quartz surface backend feature... " >&6; }
22652                 echo
22653
22654                 use_quartz=yes
22655                         quartz_BASE="cairo"
22656 quartz_REQUIRES="$ac_env_quartz_REQUIRES_value"
22657 quartz_CFLAGS="$ac_env_quartz_CFLAGS_value"
22658 quartz_NONPKGCONFIG_CFLAGS="$ac_env_quartz_NONPKGCONFIG_CFLAGS_value"
22659 quartz_LIBS="$ac_env_quartz_LIBS_value"
22660 quartz_NONPKGCONFIG_LIBS="$ac_env_quartz_NONPKGCONFIG_LIBS_value"
22661 quartz_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_NONPKGCONFIG_EXTRA_LIBS_value"
22662
22663
22664
22665     ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
22666 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
22667
22668 else
22669   use_quartz="no (requires ApplicationServices framework)"
22670 fi
22671
22672
22673   if test "x$use_quartz" != "xyes" ; then
22674         ac_fn_c_check_header_mongrel "$LINENO" "CoreGraphics/CoreGraphics.h" "ac_cv_header_CoreGraphics_CoreGraphics_h" "$ac_includes_default"
22675 if test "x$ac_cv_header_CoreGraphics_CoreGraphics_h" = x""yes; then :
22676
22677 else
22678   use_quartz="no (requires CoreGraphics framework)"
22679 fi
22680
22681
22682     quartz_LIBS="-Xlinker -framework -Xlinker CoreGraphics"
22683   else
22684     quartz_LIBS="-Xlinker -framework -Xlinker ApplicationServices"
22685   fi
22686
22687
22688                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz surface backend feature could be enabled" >&5
22689 $as_echo_n "checking whether cairo's Quartz surface backend feature could be enabled... " >&6; }
22690                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz" >&5
22691 $as_echo "$use_quartz" >&6; }
22692
22693                 if test "x$enable_quartz" = "xyes" -a "x$use_quartz" != xyes; then :
22694                         as_fn_error $? " Quartz surface backend feature could not be enabled" "$LINENO" 5
22695
22696 fi       ;; #(
22697   *) :
22698                         as_fn_error $? "invalid argument passed to --enable-quartz: \`$use_quartz', should be one of [no/auto/yes]" "$LINENO" 5
22699          ;;
22700 esac
22701         if test "x$use_quartz" = "xyes"; then :
22702                                                                                 CAIRO_REQUIRES="$quartz_REQUIRES"" ${CAIRO_REQUIRES}"
22703
22704                                                                         CAIRO_CFLAGS="$quartz_CFLAGS"" ${CAIRO_CFLAGS}"
22705
22706                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22707
22708                                                                         CAIRO_LIBS="$quartz_LIBS"" ${CAIRO_LIBS}"
22709
22710                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22711
22712
22713 else
22714                                         unset quartz_BASE
22715 unset quartz_REQUIRES
22716 unset quartz_CFLAGS
22717 unset quartz_NONPKGCONFIG_CFLAGS
22718 unset quartz_LIBS
22719 unset quartz_NONPKGCONFIG_LIBS
22720 unset quartz_NONPKGCONFIG_EXTRA_LIBS
22721
22722
22723 fi
22724
22725                                                          if test "x$use_quartz" = xyes; then
22726   CAIRO_HAS_QUARTZ_SURFACE_TRUE=
22727   CAIRO_HAS_QUARTZ_SURFACE_FALSE='#'
22728 else
22729   CAIRO_HAS_QUARTZ_SURFACE_TRUE='#'
22730   CAIRO_HAS_QUARTZ_SURFACE_FALSE=
22731 fi
22732
22733
22734                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_SURFACE=0'
22735                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22736 ""$cr_make_tmp"
22737
22738
22739                                                                                 cr_make_tmp=''
22740                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22741 ""$cr_make_tmp"
22742
22743                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22744 ""$cr_make_tmp"
22745                                                                                 cr_make_tmp=''
22746                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22747 ""$cr_make_tmp"
22748
22749                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22750 ""$cr_make_tmp"
22751
22752
22753                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_quartz_headers)'
22754                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22755 ""$cr_make_tmp"
22756
22757                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22758 ""$cr_make_tmp"
22759                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)'
22760                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22761 ""$cr_make_tmp"
22762
22763                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22764 ""$cr_make_tmp"
22765
22766
22767
22768                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_headers)
22769 all_cairo_private += $(cairo_quartz_private)
22770 all_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
22771 all_cairo_sources += $(cairo_quartz_sources)'
22772                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22773 ""$cr_make_tmp"
22774
22775                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22776 ""$cr_make_tmp"
22777                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
22778 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
22779 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
22780 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
22781                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22782 ""$cr_make_tmp"
22783
22784                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22785 ""$cr_make_tmp"
22786
22787
22788                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_headers)
22789 enabled_cairo_private += $(cairo_quartz_private)
22790 enabled_cairo_cxx_sources += $(cairo_quartz_cxx_sources)
22791 enabled_cairo_sources += $(cairo_quartz_sources)'
22792                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22793 "'if CAIRO_HAS_QUARTZ_SURFACE'
22794                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22795 ""$cr_make_tmp"
22796                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22797 "'endif'
22798
22799                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22800 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
22801                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22802 ""$cr_make_tmp"
22803                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22804 "'endif'
22805                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_headers)
22806 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_private)
22807 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_cxx_sources)
22808 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_sources)'
22809                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22810 "'if CAIRO_HAS_QUARTZ_SURFACE'
22811                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22812 ""$cr_make_tmp"
22813                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22814 "'endif'
22815
22816                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22817 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
22818                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22819 ""$cr_make_tmp"
22820                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22821 "'endif'
22822
22823
22824
22825
22826                                         if test "x$use_quartz" = xyes; then :
22827   :
22828                 ac_config_files="$ac_config_files src/cairo-quartz.pc:src/cairo-features.pc.in"
22829
22830
22831 fi
22832                                         if test "x$use_quartz" = xyes; then :
22833   :
22834                 ac_config_files="$ac_config_files cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
22835
22836
22837 fi
22838                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz.pc'
22839                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22840 ""$cr_make_tmp"
22841
22842                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22843 ""$cr_make_tmp"
22844
22845
22846                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz.pc'
22847                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22848 "'if CAIRO_HAS_QUARTZ_SURFACE'
22849                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22850 ""$cr_make_tmp"
22851                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22852 "'endif'
22853
22854                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22855 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
22856                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22857 ""$cr_make_tmp"
22858                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22859 "'endif'
22860
22861
22862                                         if test "x$use_quartz" = xyes; then :
22863   :
22864                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
22865
22866
22867 fi
22868                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
22869
22870
22871
22872                                         if test "x$use_quartz" != xyes; then :
22873   :
22874                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_SURFACE'
22875
22876
22877
22878 fi
22879
22880                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
22881                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22882 "'ifeq ($(CAIRO_HAS_QUARTZ_SURFACE),1)'
22883                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22884 ""$cr_make_tmp"
22885                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
22886 "'endif'
22887
22888
22889
22890
22891                                         if test "x$use_quartz" = xyes; then :
22892   :
22893                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'quartz'
22894
22895
22896
22897 fi
22898
22899
22900
22901                                                                                                                                 # Check whether --enable-quartz-font was given.
22902 if test "${enable_quartz_font+set}" = set; then :
22903   enableval=$enable_quartz_font; enable_quartz_font=$enableval
22904 else
22905   enable_quartz_font=auto
22906 fi
22907
22908                         case $enable_quartz_font in #(
22909   no) :
22910                 use_quartz_font="no (disabled, use --enable-quartz-font to enable)"
22911          ;; #(
22912         yes|auto) :
22913                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz font backend feature" >&5
22914 $as_echo_n "checking for cairo's Quartz font backend feature... " >&6; }
22915                 echo
22916
22917                 use_quartz_font=yes
22918                         quartz_font_BASE="cairo"
22919 quartz_font_REQUIRES="$ac_env_quartz_font_REQUIRES_value"
22920 quartz_font_CFLAGS="$ac_env_quartz_font_CFLAGS_value"
22921 quartz_font_NONPKGCONFIG_CFLAGS="$ac_env_quartz_font_NONPKGCONFIG_CFLAGS_value"
22922 quartz_font_LIBS="$ac_env_quartz_font_LIBS_value"
22923 quartz_font_NONPKGCONFIG_LIBS="$ac_env_quartz_font_NONPKGCONFIG_LIBS_value"
22924 quartz_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_font_NONPKGCONFIG_EXTRA_LIBS_value"
22925
22926
22927
22928   use_quartz_font=$use_quartz
22929
22930
22931                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz font backend feature could be enabled" >&5
22932 $as_echo_n "checking whether cairo's Quartz font backend feature could be enabled... " >&6; }
22933                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_font" >&5
22934 $as_echo "$use_quartz_font" >&6; }
22935
22936                 if test "x$enable_quartz_font" = "xyes" -a "x$use_quartz_font" != xyes; then :
22937                         as_fn_error $? " Quartz font backend feature could not be enabled" "$LINENO" 5
22938
22939 fi       ;; #(
22940   *) :
22941                         as_fn_error $? "invalid argument passed to --enable-quartz-font: \`$use_quartz_font', should be one of [no/auto/yes]" "$LINENO" 5
22942          ;;
22943 esac
22944         if test "x$use_quartz_font" = "xyes"; then :
22945                                                                                 CAIRO_REQUIRES="$quartz_font_REQUIRES"" ${CAIRO_REQUIRES}"
22946
22947                                                                         CAIRO_CFLAGS="$quartz_font_CFLAGS"" ${CAIRO_CFLAGS}"
22948
22949                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
22950
22951                                                                         CAIRO_LIBS="$quartz_font_LIBS"" ${CAIRO_LIBS}"
22952
22953                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
22954
22955
22956 else
22957                                         unset quartz_font_BASE
22958 unset quartz_font_REQUIRES
22959 unset quartz_font_CFLAGS
22960 unset quartz_font_NONPKGCONFIG_CFLAGS
22961 unset quartz_font_LIBS
22962 unset quartz_font_NONPKGCONFIG_LIBS
22963 unset quartz_font_NONPKGCONFIG_EXTRA_LIBS
22964
22965
22966 fi
22967
22968                                                          if test "x$use_quartz_font" = xyes; then
22969   CAIRO_HAS_QUARTZ_FONT_TRUE=
22970   CAIRO_HAS_QUARTZ_FONT_FALSE='#'
22971 else
22972   CAIRO_HAS_QUARTZ_FONT_TRUE='#'
22973   CAIRO_HAS_QUARTZ_FONT_FALSE=
22974 fi
22975
22976
22977                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_FONT=0'
22978                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
22979 ""$cr_make_tmp"
22980
22981
22982                                                                                 cr_make_tmp=''
22983                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22984 ""$cr_make_tmp"
22985
22986                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
22987 ""$cr_make_tmp"
22988                                                                                 cr_make_tmp=''
22989                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
22990 ""$cr_make_tmp"
22991
22992                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
22993 ""$cr_make_tmp"
22994
22995
22996                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_quartz_font_headers)'
22997                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
22998 ""$cr_make_tmp"
22999
23000                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23001 ""$cr_make_tmp"
23002                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)'
23003                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23004 ""$cr_make_tmp"
23005
23006                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23007 ""$cr_make_tmp"
23008
23009
23010
23011                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_font_headers)
23012 all_cairo_private += $(cairo_quartz_font_private)
23013 all_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
23014 all_cairo_sources += $(cairo_quartz_font_sources)'
23015                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23016 ""$cr_make_tmp"
23017
23018                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23019 ""$cr_make_tmp"
23020                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
23021 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
23022 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
23023 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
23024                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23025 ""$cr_make_tmp"
23026
23027                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23028 ""$cr_make_tmp"
23029
23030
23031                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_font_headers)
23032 enabled_cairo_private += $(cairo_quartz_font_private)
23033 enabled_cairo_cxx_sources += $(cairo_quartz_font_cxx_sources)
23034 enabled_cairo_sources += $(cairo_quartz_font_sources)'
23035                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23036 "'if CAIRO_HAS_QUARTZ_FONT'
23037                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23038 ""$cr_make_tmp"
23039                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23040 "'endif'
23041
23042                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23043 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
23044                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23045 ""$cr_make_tmp"
23046                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23047 "'endif'
23048                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_font_headers)
23049 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_font_private)
23050 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_font_cxx_sources)
23051 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_font_sources)'
23052                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23053 "'if CAIRO_HAS_QUARTZ_FONT'
23054                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23055 ""$cr_make_tmp"
23056                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23057 "'endif'
23058
23059                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23060 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
23061                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23062 ""$cr_make_tmp"
23063                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23064 "'endif'
23065
23066
23067
23068
23069                                         if test "x$use_quartz_font" = xyes; then :
23070   :
23071                 ac_config_files="$ac_config_files src/cairo-quartz-font.pc:src/cairo-features.pc.in"
23072
23073
23074 fi
23075                                         if test "x$use_quartz_font" = xyes; then :
23076   :
23077                 ac_config_files="$ac_config_files cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23078
23079
23080 fi
23081                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz-font.pc'
23082                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23083 ""$cr_make_tmp"
23084
23085                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23086 ""$cr_make_tmp"
23087
23088
23089                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-font.pc'
23090                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23091 "'if CAIRO_HAS_QUARTZ_FONT'
23092                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23093 ""$cr_make_tmp"
23094                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23095 "'endif'
23096
23097                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23098 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
23099                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23100 ""$cr_make_tmp"
23101                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23102 "'endif'
23103
23104
23105                                         if test "x$use_quartz_font" = xyes; then :
23106   :
23107                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
23108
23109
23110 fi
23111                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
23112
23113
23114
23115                                         if test "x$use_quartz_font" != xyes; then :
23116   :
23117                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_QUARTZ_FONT'
23118
23119
23120
23121 fi
23122
23123                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
23124                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23125 "'ifeq ($(CAIRO_HAS_QUARTZ_FONT),1)'
23126                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23127 ""$cr_make_tmp"
23128                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23129 "'endif'
23130
23131
23132
23133
23134
23135                                         if test "x$use_quartz_font" = xyes; then :
23136   :
23137                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'quartz_font'
23138
23139
23140
23141 fi
23142
23143
23144                                                                                                                                 # Check whether --enable-quartz-image was given.
23145 if test "${enable_quartz_image+set}" = set; then :
23146   enableval=$enable_quartz_image; enable_quartz_image=$enableval
23147 else
23148   enable_quartz_image=no
23149 fi
23150
23151                         case $enable_quartz_image in #(
23152   no) :
23153                 use_quartz_image="no (disabled, use --enable-quartz-image to enable)"
23154          ;; #(
23155         yes|auto) :
23156                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Quartz Image surface backend feature" >&5
23157 $as_echo_n "checking for cairo's Quartz Image surface backend feature... " >&6; }
23158                 echo
23159
23160                 use_quartz_image=yes
23161                         quartz_image_BASE="cairo"
23162 quartz_image_REQUIRES="$ac_env_quartz_image_REQUIRES_value"
23163 quartz_image_CFLAGS="$ac_env_quartz_image_CFLAGS_value"
23164 quartz_image_NONPKGCONFIG_CFLAGS="$ac_env_quartz_image_NONPKGCONFIG_CFLAGS_value"
23165 quartz_image_LIBS="$ac_env_quartz_image_LIBS_value"
23166 quartz_image_NONPKGCONFIG_LIBS="$ac_env_quartz_image_NONPKGCONFIG_LIBS_value"
23167 quartz_image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_quartz_image_NONPKGCONFIG_EXTRA_LIBS_value"
23168
23169
23170
23171   use_quartz_image=$use_quartz
23172
23173
23174                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Quartz Image surface backend feature could be enabled" >&5
23175 $as_echo_n "checking whether cairo's Quartz Image surface backend feature could be enabled... " >&6; }
23176                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_quartz_image" >&5
23177 $as_echo "$use_quartz_image" >&6; }
23178
23179                 if test "x$enable_quartz_image" = "xyes" -a "x$use_quartz_image" != xyes; then :
23180                         as_fn_error $? " Quartz Image surface backend feature could not be enabled" "$LINENO" 5
23181
23182 fi       ;; #(
23183   *) :
23184                         as_fn_error $? "invalid argument passed to --enable-quartz-image: \`$use_quartz_image', should be one of [no/auto/yes]" "$LINENO" 5
23185          ;;
23186 esac
23187         if test "x$use_quartz_image" = "xyes"; then :
23188                                                                                 CAIRO_REQUIRES="$quartz_image_REQUIRES"" ${CAIRO_REQUIRES}"
23189
23190                                                                         CAIRO_CFLAGS="$quartz_image_CFLAGS"" ${CAIRO_CFLAGS}"
23191
23192                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$quartz_image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23193
23194                                                                         CAIRO_LIBS="$quartz_image_LIBS"" ${CAIRO_LIBS}"
23195
23196                                                                         CAIRO_NONPKGCONFIG_LIBS="$quartz_image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23197
23198
23199 else
23200                                         unset quartz_image_BASE
23201 unset quartz_image_REQUIRES
23202 unset quartz_image_CFLAGS
23203 unset quartz_image_NONPKGCONFIG_CFLAGS
23204 unset quartz_image_LIBS
23205 unset quartz_image_NONPKGCONFIG_LIBS
23206 unset quartz_image_NONPKGCONFIG_EXTRA_LIBS
23207
23208
23209 fi
23210
23211                                                          if test "x$use_quartz_image" = xyes; then
23212   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE=
23213   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE='#'
23214 else
23215   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE='#'
23216   CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE=
23217 fi
23218
23219
23220                                                                                 cr_make_tmp='CAIRO_HAS_QUARTZ_IMAGE_SURFACE=0'
23221                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23222 ""$cr_make_tmp"
23223
23224
23225                                                                                 cr_make_tmp=''
23226                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23227 ""$cr_make_tmp"
23228
23229                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23230 ""$cr_make_tmp"
23231                                                                                 cr_make_tmp=''
23232                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23233 ""$cr_make_tmp"
23234
23235                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23236 ""$cr_make_tmp"
23237
23238
23239
23240                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_quartz_image_headers)'
23241                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23242 ""$cr_make_tmp"
23243
23244                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23245 ""$cr_make_tmp"
23246                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)'
23247                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23248 ""$cr_make_tmp"
23249
23250                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23251 ""$cr_make_tmp"
23252
23253
23254                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_quartz_image_headers)
23255 all_cairo_private += $(cairo_quartz_image_private)
23256 all_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
23257 all_cairo_sources += $(cairo_quartz_image_sources)'
23258                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23259 ""$cr_make_tmp"
23260
23261                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23262 ""$cr_make_tmp"
23263                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
23264 all_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
23265 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
23266 all_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
23267                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23268 ""$cr_make_tmp"
23269
23270                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23271 ""$cr_make_tmp"
23272
23273
23274                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_quartz_image_headers)
23275 enabled_cairo_private += $(cairo_quartz_image_private)
23276 enabled_cairo_cxx_sources += $(cairo_quartz_image_cxx_sources)
23277 enabled_cairo_sources += $(cairo_quartz_image_sources)'
23278                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23279 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
23280                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23281 ""$cr_make_tmp"
23282                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23283 "'endif'
23284
23285                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23286 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
23287                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23288 ""$cr_make_tmp"
23289                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23290 "'endif'
23291                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_quartz_image_headers)
23292 enabled_cairo_boilerplate_private += $(cairo_boilerplate_quartz_image_private)
23293 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_quartz_image_cxx_sources)
23294 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_quartz_image_sources)'
23295                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23296 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
23297                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23298 ""$cr_make_tmp"
23299                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23300 "'endif'
23301
23302                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23303 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
23304                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23305 ""$cr_make_tmp"
23306                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23307 "'endif'
23308
23309
23310
23311
23312                                         if test "x$use_quartz_image" = xyes; then :
23313   :
23314                 ac_config_files="$ac_config_files src/cairo-quartz-image.pc:src/cairo-features.pc.in"
23315
23316
23317 fi
23318                                         if test "x$use_quartz_image" = xyes; then :
23319   :
23320                 ac_config_files="$ac_config_files cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23321
23322
23323 fi
23324                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-quartz-image.pc'
23325                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23326 ""$cr_make_tmp"
23327
23328                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23329 ""$cr_make_tmp"
23330
23331
23332                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-quartz-image.pc'
23333                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23334 "'if CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
23335                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23336 ""$cr_make_tmp"
23337                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23338 "'endif'
23339
23340                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23341 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
23342                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23343 ""$cr_make_tmp"
23344                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23345 "'endif'
23346
23347
23348                                         if test "x$use_quartz_image" = xyes; then :
23349   :
23350                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_QUARTZ_IMAGE_SURFACE'
23351
23352
23353 fi
23354
23355
23356
23357                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_QUARTZ_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
23358                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23359 "'ifeq ($(CAIRO_HAS_QUARTZ_IMAGE_SURFACE),1)'
23360                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23361 ""$cr_make_tmp"
23362                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23363 "'endif'
23364
23365
23366                                         if test "x$use_quartz_image" = xyes; then :
23367   :
23368                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
23369
23370 "'--- The Quartz Image surface backend feature is still under active
23371 --- development and is included in this release only as a preview. It does
23372 --- NOT fully work yet and incompatible changes may yet be made to Quartz
23373 --- Image surface backend specific API.'
23374
23375
23376
23377 fi
23378
23379
23380
23381
23382
23383
23384                                                                                                                                 # Check whether --enable-win32 was given.
23385 if test "${enable_win32+set}" = set; then :
23386   enableval=$enable_win32; enable_win32=$enableval
23387 else
23388   enable_win32=auto
23389 fi
23390
23391                         case $enable_win32 in #(
23392   no) :
23393                 use_win32="no (disabled, use --enable-win32 to enable)"
23394          ;; #(
23395         yes|auto) :
23396                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows surface backend feature" >&5
23397 $as_echo_n "checking for cairo's Microsoft Windows surface backend feature... " >&6; }
23398                 echo
23399
23400                 use_win32=yes
23401                         win32_BASE="cairo"
23402 win32_REQUIRES="$ac_env_win32_REQUIRES_value"
23403 win32_CFLAGS="$ac_env_win32_CFLAGS_value"
23404 win32_NONPKGCONFIG_CFLAGS="$ac_env_win32_NONPKGCONFIG_CFLAGS_value"
23405 win32_LIBS="$ac_env_win32_LIBS_value"
23406 win32_NONPKGCONFIG_LIBS="$ac_env_win32_NONPKGCONFIG_LIBS_value"
23407 win32_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_NONPKGCONFIG_EXTRA_LIBS_value"
23408
23409
23410
23411   if test "x$have_windows" != xyes; then
23412     use_win32="no (requires a Win32 platform)"
23413   fi
23414   win32_LIBS="-lgdi32 -lmsimg32"
23415
23416
23417                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows surface backend feature could be enabled" >&5
23418 $as_echo_n "checking whether cairo's Microsoft Windows surface backend feature could be enabled... " >&6; }
23419                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32" >&5
23420 $as_echo "$use_win32" >&6; }
23421
23422                 if test "x$enable_win32" = "xyes" -a "x$use_win32" != xyes; then :
23423                         as_fn_error $? " Microsoft Windows surface backend feature could not be enabled" "$LINENO" 5
23424
23425 fi       ;; #(
23426   *) :
23427                         as_fn_error $? "invalid argument passed to --enable-win32: \`$use_win32', should be one of [no/auto/yes]" "$LINENO" 5
23428          ;;
23429 esac
23430         if test "x$use_win32" = "xyes"; then :
23431                                                                                 CAIRO_REQUIRES="$win32_REQUIRES"" ${CAIRO_REQUIRES}"
23432
23433                                                                         CAIRO_CFLAGS="$win32_CFLAGS"" ${CAIRO_CFLAGS}"
23434
23435                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$win32_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23436
23437                                                                         CAIRO_LIBS="$win32_LIBS"" ${CAIRO_LIBS}"
23438
23439                                                                         CAIRO_NONPKGCONFIG_LIBS="$win32_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23440
23441
23442 else
23443                                         unset win32_BASE
23444 unset win32_REQUIRES
23445 unset win32_CFLAGS
23446 unset win32_NONPKGCONFIG_CFLAGS
23447 unset win32_LIBS
23448 unset win32_NONPKGCONFIG_LIBS
23449 unset win32_NONPKGCONFIG_EXTRA_LIBS
23450
23451
23452 fi
23453
23454                                                          if test "x$use_win32" = xyes; then
23455   CAIRO_HAS_WIN32_SURFACE_TRUE=
23456   CAIRO_HAS_WIN32_SURFACE_FALSE='#'
23457 else
23458   CAIRO_HAS_WIN32_SURFACE_TRUE='#'
23459   CAIRO_HAS_WIN32_SURFACE_FALSE=
23460 fi
23461
23462
23463                                                                                 cr_make_tmp='CAIRO_HAS_WIN32_SURFACE=1'
23464                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23465 ""$cr_make_tmp"
23466
23467
23468                                                                                 cr_make_tmp=''
23469                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23470 ""$cr_make_tmp"
23471
23472                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23473 ""$cr_make_tmp"
23474                                                                                 cr_make_tmp=''
23475                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23476 ""$cr_make_tmp"
23477
23478                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23479 ""$cr_make_tmp"
23480
23481
23482                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_win32_headers)'
23483                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23484 ""$cr_make_tmp"
23485
23486                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23487 ""$cr_make_tmp"
23488                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)'
23489                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23490 ""$cr_make_tmp"
23491
23492                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23493 ""$cr_make_tmp"
23494
23495
23496
23497                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_win32_headers)
23498 all_cairo_private += $(cairo_win32_private)
23499 all_cairo_cxx_sources += $(cairo_win32_cxx_sources)
23500 all_cairo_sources += $(cairo_win32_sources)'
23501                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23502 ""$cr_make_tmp"
23503
23504                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23505 ""$cr_make_tmp"
23506                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
23507 all_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
23508 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
23509 all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
23510                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23511 ""$cr_make_tmp"
23512
23513                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23514 ""$cr_make_tmp"
23515
23516
23517                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_win32_headers)
23518 enabled_cairo_private += $(cairo_win32_private)
23519 enabled_cairo_cxx_sources += $(cairo_win32_cxx_sources)
23520 enabled_cairo_sources += $(cairo_win32_sources)'
23521                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23522 "'if CAIRO_HAS_WIN32_SURFACE'
23523                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23524 ""$cr_make_tmp"
23525                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23526 "'endif'
23527
23528                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23529 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
23530                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23531 ""$cr_make_tmp"
23532                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23533 "'endif'
23534                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_headers)
23535 enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_private)
23536 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_cxx_sources)
23537 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_sources)'
23538                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23539 "'if CAIRO_HAS_WIN32_SURFACE'
23540                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23541 ""$cr_make_tmp"
23542                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23543 "'endif'
23544
23545                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23546 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
23547                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23548 ""$cr_make_tmp"
23549                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23550 "'endif'
23551
23552
23553
23554
23555                                         if test "x$use_win32" = xyes; then :
23556   :
23557                 ac_config_files="$ac_config_files src/cairo-win32.pc:src/cairo-features.pc.in"
23558
23559
23560 fi
23561                                         if test "x$use_win32" = xyes; then :
23562   :
23563                 ac_config_files="$ac_config_files cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23564
23565
23566 fi
23567                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-win32.pc'
23568                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23569 ""$cr_make_tmp"
23570
23571                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23572 ""$cr_make_tmp"
23573
23574
23575                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-win32.pc'
23576                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23577 "'if CAIRO_HAS_WIN32_SURFACE'
23578                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23579 ""$cr_make_tmp"
23580                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23581 "'endif'
23582
23583                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23584 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
23585                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23586 ""$cr_make_tmp"
23587                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23588 "'endif'
23589
23590
23591                                         if test "x$use_win32" = xyes; then :
23592   :
23593                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
23594
23595
23596 fi
23597                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
23598
23599
23600
23601                                         if test "x$use_win32" != xyes; then :
23602   :
23603                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_SURFACE'
23604
23605
23606
23607 fi
23608
23609                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WIN32_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
23610                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23611 "'ifeq ($(CAIRO_HAS_WIN32_SURFACE),1)'
23612                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23613 ""$cr_make_tmp"
23614                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23615 "'endif'
23616
23617
23618
23619
23620                                         if test "x$use_win32" = xyes; then :
23621   :
23622                                         CAIRO_NATIVE_SURFACE_BACKENDS="${CAIRO_NATIVE_SURFACE_BACKENDS}"'win32'
23623
23624
23625
23626 fi
23627
23628
23629
23630                                                                                                                                 # Check whether --enable-win32-font was given.
23631 if test "${enable_win32_font+set}" = set; then :
23632   enableval=$enable_win32_font; enable_win32_font=$enableval
23633 else
23634   enable_win32_font=auto
23635 fi
23636
23637                         case $enable_win32_font in #(
23638   no) :
23639                 use_win32_font="no (disabled, use --enable-win32-font to enable)"
23640          ;; #(
23641         yes|auto) :
23642                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Microsoft Windows font backend feature" >&5
23643 $as_echo_n "checking for cairo's Microsoft Windows font backend feature... " >&6; }
23644                 echo
23645
23646                 use_win32_font=yes
23647                         win32_font_BASE="cairo"
23648 win32_font_REQUIRES="$ac_env_win32_font_REQUIRES_value"
23649 win32_font_CFLAGS="$ac_env_win32_font_CFLAGS_value"
23650 win32_font_NONPKGCONFIG_CFLAGS="$ac_env_win32_font_NONPKGCONFIG_CFLAGS_value"
23651 win32_font_LIBS="$ac_env_win32_font_LIBS_value"
23652 win32_font_NONPKGCONFIG_LIBS="$ac_env_win32_font_NONPKGCONFIG_LIBS_value"
23653 win32_font_NONPKGCONFIG_EXTRA_LIBS="$ac_env_win32_font_NONPKGCONFIG_EXTRA_LIBS_value"
23654
23655
23656
23657   use_win32_font=$use_win32
23658
23659
23660                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Microsoft Windows font backend feature could be enabled" >&5
23661 $as_echo_n "checking whether cairo's Microsoft Windows font backend feature could be enabled... " >&6; }
23662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_win32_font" >&5
23663 $as_echo "$use_win32_font" >&6; }
23664
23665                 if test "x$enable_win32_font" = "xyes" -a "x$use_win32_font" != xyes; then :
23666                         as_fn_error $? " Microsoft Windows font backend feature could not be enabled" "$LINENO" 5
23667
23668 fi       ;; #(
23669   *) :
23670                         as_fn_error $? "invalid argument passed to --enable-win32-font: \`$use_win32_font', should be one of [no/auto/yes]" "$LINENO" 5
23671          ;;
23672 esac
23673         if test "x$use_win32_font" = "xyes"; then :
23674                                                                                 CAIRO_REQUIRES="$win32_font_REQUIRES"" ${CAIRO_REQUIRES}"
23675
23676                                                                         CAIRO_CFLAGS="$win32_font_CFLAGS"" ${CAIRO_CFLAGS}"
23677
23678                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$win32_font_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
23679
23680                                                                         CAIRO_LIBS="$win32_font_LIBS"" ${CAIRO_LIBS}"
23681
23682                                                                         CAIRO_NONPKGCONFIG_LIBS="$win32_font_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
23683
23684
23685 else
23686                                         unset win32_font_BASE
23687 unset win32_font_REQUIRES
23688 unset win32_font_CFLAGS
23689 unset win32_font_NONPKGCONFIG_CFLAGS
23690 unset win32_font_LIBS
23691 unset win32_font_NONPKGCONFIG_LIBS
23692 unset win32_font_NONPKGCONFIG_EXTRA_LIBS
23693
23694
23695 fi
23696
23697                                                          if test "x$use_win32_font" = xyes; then
23698   CAIRO_HAS_WIN32_FONT_TRUE=
23699   CAIRO_HAS_WIN32_FONT_FALSE='#'
23700 else
23701   CAIRO_HAS_WIN32_FONT_TRUE='#'
23702   CAIRO_HAS_WIN32_FONT_FALSE=
23703 fi
23704
23705
23706                                                                                 cr_make_tmp='CAIRO_HAS_WIN32_FONT=1'
23707                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
23708 ""$cr_make_tmp"
23709
23710
23711                                                                                 cr_make_tmp=''
23712                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23713 ""$cr_make_tmp"
23714
23715                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23716 ""$cr_make_tmp"
23717                                                                                 cr_make_tmp=''
23718                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23719 ""$cr_make_tmp"
23720
23721                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23722 ""$cr_make_tmp"
23723
23724
23725                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_win32_font_headers)'
23726                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23727 ""$cr_make_tmp"
23728
23729                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23730 ""$cr_make_tmp"
23731                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)'
23732                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23733 ""$cr_make_tmp"
23734
23735                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23736 ""$cr_make_tmp"
23737
23738
23739
23740                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_win32_font_headers)
23741 all_cairo_private += $(cairo_win32_font_private)
23742 all_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
23743 all_cairo_sources += $(cairo_win32_font_sources)'
23744                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23745 ""$cr_make_tmp"
23746
23747                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23748 ""$cr_make_tmp"
23749                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
23750 all_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
23751 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
23752 all_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
23753                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23754 ""$cr_make_tmp"
23755
23756                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23757 ""$cr_make_tmp"
23758
23759
23760                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_win32_font_headers)
23761 enabled_cairo_private += $(cairo_win32_font_private)
23762 enabled_cairo_cxx_sources += $(cairo_win32_font_cxx_sources)
23763 enabled_cairo_sources += $(cairo_win32_font_sources)'
23764                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23765 "'if CAIRO_HAS_WIN32_FONT'
23766                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23767 ""$cr_make_tmp"
23768                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23769 "'endif'
23770
23771                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23772 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
23773                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23774 ""$cr_make_tmp"
23775                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23776 "'endif'
23777                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_win32_font_headers)
23778 enabled_cairo_boilerplate_private += $(cairo_boilerplate_win32_font_private)
23779 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_win32_font_cxx_sources)
23780 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_win32_font_sources)'
23781                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23782 "'if CAIRO_HAS_WIN32_FONT'
23783                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23784 ""$cr_make_tmp"
23785                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
23786 "'endif'
23787
23788                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23789 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
23790                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23791 ""$cr_make_tmp"
23792                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
23793 "'endif'
23794
23795
23796
23797
23798                                         if test "x$use_win32_font" = xyes; then :
23799   :
23800                 ac_config_files="$ac_config_files src/cairo-win32-font.pc:src/cairo-features.pc.in"
23801
23802
23803 fi
23804                                         if test "x$use_win32_font" = xyes; then :
23805   :
23806                 ac_config_files="$ac_config_files cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
23807
23808
23809 fi
23810                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-win32-font.pc'
23811                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23812 ""$cr_make_tmp"
23813
23814                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23815 ""$cr_make_tmp"
23816
23817
23818                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-win32-font.pc'
23819                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23820 "'if CAIRO_HAS_WIN32_FONT'
23821                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23822 ""$cr_make_tmp"
23823                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
23824 "'endif'
23825
23826                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23827 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
23828                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23829 ""$cr_make_tmp"
23830                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
23831 "'endif'
23832
23833
23834                                         if test "x$use_win32_font" = xyes; then :
23835   :
23836                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
23837
23838
23839 fi
23840                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WIN32_FONT'
23841
23842
23843
23844                                         if test "x$use_win32_font" != xyes; then :
23845   :
23846                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WIN32_FONT'
23847
23848
23849
23850 fi
23851
23852                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WIN32_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
23853                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23854 "'ifeq ($(CAIRO_HAS_WIN32_FONT),1)'
23855                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23856 ""$cr_make_tmp"
23857                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
23858 "'endif'
23859
23860
23861
23862
23863
23864                                         if test "x$use_win32_font" = xyes; then :
23865   :
23866                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'win32_font'
23867
23868
23869
23870 fi
23871
23872
23873 test_win32_printing=no
23874 if test "x$use_win32" = "xyes"; then
23875   # Extract the first word of "gs", so it can be a program name with args.
23876 set dummy gs; ac_word=$2
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23878 $as_echo_n "checking for $ac_word... " >&6; }
23879 if test "${ac_cv_prog_GS+set}" = set; then :
23880   $as_echo_n "(cached) " >&6
23881 else
23882   if test -n "$GS"; then
23883   ac_cv_prog_GS="$GS" # Let the user override the test.
23884 else
23885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23886 for as_dir in $PATH
23887 do
23888   IFS=$as_save_IFS
23889   test -z "$as_dir" && as_dir=.
23890     for ac_exec_ext in '' $ac_executable_extensions; do
23891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23892     ac_cv_prog_GS="gs"
23893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23894     break 2
23895   fi
23896 done
23897   done
23898 IFS=$as_save_IFS
23899
23900 fi
23901 fi
23902 GS=$ac_cv_prog_GS
23903 if test -n "$GS"; then
23904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
23905 $as_echo "$GS" >&6; }
23906 else
23907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23908 $as_echo "no" >&6; }
23909 fi
23910
23911
23912   if test "$GS"; then
23913
23914 $as_echo "#define CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE 1" >>confdefs.h
23915
23916     test_win32_printing="yes"
23917   else
23918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&5
23919 $as_echo "$as_me: WARNING: Win32 Printing backend will not be tested since ghostscript is not available" >&2;}
23920     test_win32_printing="no (requires ghostscript)"
23921   fi
23922 fi
23923
23924  if test "x$test_win32_printing" = "xyes"; then
23925   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE=
23926   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE='#'
23927 else
23928   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE='#'
23929   CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE=
23930 fi
23931
23932
23933
23934                                                                                                                                 # Check whether --enable-skia was given.
23935 if test "${enable_skia+set}" = set; then :
23936   enableval=$enable_skia; enable_skia=$enableval
23937 else
23938   enable_skia=no
23939 fi
23940
23941                         case $enable_skia in #(
23942   no) :
23943                 use_skia="no (disabled, use --enable-skia to enable)"
23944          ;; #(
23945         yes|auto) :
23946                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Skia surface backend feature" >&5
23947 $as_echo_n "checking for cairo's Skia surface backend feature... " >&6; }
23948                 echo
23949
23950                 use_skia=yes
23951                         skia_BASE="cairo"
23952 skia_REQUIRES="$ac_env_skia_REQUIRES_value"
23953 skia_CFLAGS="$ac_env_skia_CFLAGS_value"
23954 skia_NONPKGCONFIG_CFLAGS="$ac_env_skia_NONPKGCONFIG_CFLAGS_value"
23955 skia_LIBS="$ac_env_skia_LIBS_value"
23956 skia_NONPKGCONFIG_LIBS="$ac_env_skia_NONPKGCONFIG_LIBS_value"
23957 skia_NONPKGCONFIG_EXTRA_LIBS="$ac_env_skia_NONPKGCONFIG_EXTRA_LIBS_value"
23958
23959
23960
23961
23962 # Check whether --with-skia was given.
23963 if test "${with_skia+set}" = set; then :
23964   withval=$with_skia; skia_DIR="$withval"
23965 else
23966   skia_DIR="`pwd`/../skia"
23967 fi
23968
23969
23970 # Check whether --with-skia-bulid was given.
23971 if test "${with_skia_bulid+set}" = set; then :
23972   withval=$with_skia_bulid; skia_BUILD="$withval"
23973 else
23974   skia_BUILD="Release"
23975 fi
23976
23977   skia_NONPKGCONFIG_CFLAGS="-I$skia_DIR/include/config -I$skia_DIR/include/core -I$skia_DIR/include/effects"
23978   if test "x$skia_BUILD" = x"Release"; then
23979         skia_NONPKGCONFIG_CFLAGS="-DSK_RELEASE -DSK_CAN_USE_FLOAT $skia_NONPKGCONFIG_CFLAGS"
23980   fi
23981   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"
23982
23983
23984
23985                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Skia surface backend feature could be enabled" >&5
23986 $as_echo_n "checking whether cairo's Skia surface backend feature could be enabled... " >&6; }
23987                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_skia" >&5
23988 $as_echo "$use_skia" >&6; }
23989
23990                 if test "x$enable_skia" = "xyes" -a "x$use_skia" != xyes; then :
23991                         as_fn_error $? " Skia surface backend feature could not be enabled" "$LINENO" 5
23992
23993 fi       ;; #(
23994   *) :
23995                         as_fn_error $? "invalid argument passed to --enable-skia: \`$use_skia', should be one of [no/auto/yes]" "$LINENO" 5
23996          ;;
23997 esac
23998         if test "x$use_skia" = "xyes"; then :
23999                                                                                 CAIRO_REQUIRES="$skia_REQUIRES"" ${CAIRO_REQUIRES}"
24000
24001                                                                         CAIRO_CFLAGS="$skia_CFLAGS"" ${CAIRO_CFLAGS}"
24002
24003                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$skia_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24004
24005                                                                         CAIRO_LIBS="$skia_LIBS"" ${CAIRO_LIBS}"
24006
24007                                                                         CAIRO_NONPKGCONFIG_LIBS="$skia_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24008
24009
24010 else
24011                                         unset skia_BASE
24012 unset skia_REQUIRES
24013 unset skia_CFLAGS
24014 unset skia_NONPKGCONFIG_CFLAGS
24015 unset skia_LIBS
24016 unset skia_NONPKGCONFIG_LIBS
24017 unset skia_NONPKGCONFIG_EXTRA_LIBS
24018
24019
24020 fi
24021
24022                                                          if test "x$use_skia" = xyes; then
24023   CAIRO_HAS_SKIA_SURFACE_TRUE=
24024   CAIRO_HAS_SKIA_SURFACE_FALSE='#'
24025 else
24026   CAIRO_HAS_SKIA_SURFACE_TRUE='#'
24027   CAIRO_HAS_SKIA_SURFACE_FALSE=
24028 fi
24029
24030
24031                                                                                 cr_make_tmp='CAIRO_HAS_SKIA_SURFACE=0'
24032                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24033 ""$cr_make_tmp"
24034
24035
24036                                                                                 cr_make_tmp=''
24037                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24038 ""$cr_make_tmp"
24039
24040                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24041 ""$cr_make_tmp"
24042                                                                                 cr_make_tmp=''
24043                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24044 ""$cr_make_tmp"
24045
24046                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24047 ""$cr_make_tmp"
24048
24049
24050
24051                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_skia_headers)'
24052                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24053 ""$cr_make_tmp"
24054
24055                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24056 ""$cr_make_tmp"
24057                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)'
24058                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24059 ""$cr_make_tmp"
24060
24061                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24062 ""$cr_make_tmp"
24063
24064
24065                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_skia_headers)
24066 all_cairo_private += $(cairo_skia_private)
24067 all_cairo_cxx_sources += $(cairo_skia_cxx_sources)
24068 all_cairo_sources += $(cairo_skia_sources)'
24069                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24070 ""$cr_make_tmp"
24071
24072                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24073 ""$cr_make_tmp"
24074                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)
24075 all_cairo_boilerplate_private += $(cairo_boilerplate_skia_private)
24076 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_skia_cxx_sources)
24077 all_cairo_boilerplate_sources += $(cairo_boilerplate_skia_sources)'
24078                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24079 ""$cr_make_tmp"
24080
24081                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24082 ""$cr_make_tmp"
24083
24084
24085                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_skia_headers)
24086 enabled_cairo_private += $(cairo_skia_private)
24087 enabled_cairo_cxx_sources += $(cairo_skia_cxx_sources)
24088 enabled_cairo_sources += $(cairo_skia_sources)'
24089                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24090 "'if CAIRO_HAS_SKIA_SURFACE'
24091                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24092 ""$cr_make_tmp"
24093                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24094 "'endif'
24095
24096                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24097 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
24098                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24099 ""$cr_make_tmp"
24100                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24101 "'endif'
24102                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_skia_headers)
24103 enabled_cairo_boilerplate_private += $(cairo_boilerplate_skia_private)
24104 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_skia_cxx_sources)
24105 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_skia_sources)'
24106                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24107 "'if CAIRO_HAS_SKIA_SURFACE'
24108                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24109 ""$cr_make_tmp"
24110                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24111 "'endif'
24112
24113                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24114 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
24115                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24116 ""$cr_make_tmp"
24117                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24118 "'endif'
24119
24120
24121
24122
24123                                         if test "x$use_skia" = xyes; then :
24124   :
24125                 ac_config_files="$ac_config_files src/cairo-skia.pc:src/cairo-features.pc.in"
24126
24127
24128 fi
24129                                         if test "x$use_skia" = xyes; then :
24130   :
24131                 ac_config_files="$ac_config_files cairo-skia-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24132
24133
24134 fi
24135                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-skia.pc'
24136                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24137 ""$cr_make_tmp"
24138
24139                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24140 ""$cr_make_tmp"
24141
24142
24143                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-skia.pc'
24144                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24145 "'if CAIRO_HAS_SKIA_SURFACE'
24146                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24147 ""$cr_make_tmp"
24148                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24149 "'endif'
24150
24151                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24152 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
24153                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24154 ""$cr_make_tmp"
24155                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24156 "'endif'
24157
24158
24159                                         if test "x$use_skia" = xyes; then :
24160   :
24161                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SKIA_SURFACE'
24162
24163
24164 fi
24165
24166
24167
24168                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SKIA_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
24169                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24170 "'ifeq ($(CAIRO_HAS_SKIA_SURFACE),1)'
24171                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24172 ""$cr_make_tmp"
24173                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24174 "'endif'
24175
24176
24177                                         if test "x$use_skia" = xyes; then :
24178   :
24179                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
24180
24181 "'--- The Skia surface backend feature is still under active development and is
24182 --- included in this release only as a preview. It does NOT fully work yet
24183 --- and incompatible changes may yet be made to Skia surface backend specific
24184 --- API.'
24185
24186
24187
24188 fi
24189
24190
24191
24192
24193
24194
24195                                                                                                                                 # Check whether --enable-os2 was given.
24196 if test "${enable_os2+set}" = set; then :
24197   enableval=$enable_os2; enable_os2=$enableval
24198 else
24199   enable_os2=no
24200 fi
24201
24202                         case $enable_os2 in #(
24203   no) :
24204                 use_os2="no (disabled, use --enable-os2 to enable)"
24205          ;; #(
24206         yes|auto) :
24207                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OS/2 surface backend feature" >&5
24208 $as_echo_n "checking for cairo's OS/2 surface backend feature... " >&6; }
24209                 echo
24210
24211                 use_os2=yes
24212                         os2_BASE="cairo"
24213 os2_REQUIRES="$ac_env_os2_REQUIRES_value"
24214 os2_CFLAGS="$ac_env_os2_CFLAGS_value"
24215 os2_NONPKGCONFIG_CFLAGS="$ac_env_os2_NONPKGCONFIG_CFLAGS_value"
24216 os2_LIBS="$ac_env_os2_LIBS_value"
24217 os2_NONPKGCONFIG_LIBS="$ac_env_os2_NONPKGCONFIG_LIBS_value"
24218 os2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_os2_NONPKGCONFIG_EXTRA_LIBS_value"
24219
24220
24221
24222   case "$host" in
24223     *-*-os2*)
24224       :
24225       ;;
24226     *)
24227       use_os2="no (requires an OS/2 platform)"
24228       ;;
24229   esac
24230
24231
24232                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OS/2 surface backend feature could be enabled" >&5
24233 $as_echo_n "checking whether cairo's OS/2 surface backend feature could be enabled... " >&6; }
24234                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_os2" >&5
24235 $as_echo "$use_os2" >&6; }
24236
24237                 if test "x$enable_os2" = "xyes" -a "x$use_os2" != xyes; then :
24238                         as_fn_error $? " OS/2 surface backend feature could not be enabled" "$LINENO" 5
24239
24240 fi       ;; #(
24241   *) :
24242                         as_fn_error $? "invalid argument passed to --enable-os2: \`$use_os2', should be one of [no/auto/yes]" "$LINENO" 5
24243          ;;
24244 esac
24245         if test "x$use_os2" = "xyes"; then :
24246                                                                                 CAIRO_REQUIRES="$os2_REQUIRES"" ${CAIRO_REQUIRES}"
24247
24248                                                                         CAIRO_CFLAGS="$os2_CFLAGS"" ${CAIRO_CFLAGS}"
24249
24250                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$os2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24251
24252                                                                         CAIRO_LIBS="$os2_LIBS"" ${CAIRO_LIBS}"
24253
24254                                                                         CAIRO_NONPKGCONFIG_LIBS="$os2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24255
24256
24257 else
24258                                         unset os2_BASE
24259 unset os2_REQUIRES
24260 unset os2_CFLAGS
24261 unset os2_NONPKGCONFIG_CFLAGS
24262 unset os2_LIBS
24263 unset os2_NONPKGCONFIG_LIBS
24264 unset os2_NONPKGCONFIG_EXTRA_LIBS
24265
24266
24267 fi
24268
24269                                                          if test "x$use_os2" = xyes; then
24270   CAIRO_HAS_OS2_SURFACE_TRUE=
24271   CAIRO_HAS_OS2_SURFACE_FALSE='#'
24272 else
24273   CAIRO_HAS_OS2_SURFACE_TRUE='#'
24274   CAIRO_HAS_OS2_SURFACE_FALSE=
24275 fi
24276
24277
24278                                                                                 cr_make_tmp='CAIRO_HAS_OS2_SURFACE=0'
24279                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24280 ""$cr_make_tmp"
24281
24282
24283                                                                                 cr_make_tmp=''
24284                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24285 ""$cr_make_tmp"
24286
24287                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24288 ""$cr_make_tmp"
24289                                                                                 cr_make_tmp=''
24290                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24291 ""$cr_make_tmp"
24292
24293                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24294 ""$cr_make_tmp"
24295
24296
24297
24298                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_os2_headers)'
24299                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24300 ""$cr_make_tmp"
24301
24302                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24303 ""$cr_make_tmp"
24304                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)'
24305                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24306 ""$cr_make_tmp"
24307
24308                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24309 ""$cr_make_tmp"
24310
24311
24312                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_os2_headers)
24313 all_cairo_private += $(cairo_os2_private)
24314 all_cairo_cxx_sources += $(cairo_os2_cxx_sources)
24315 all_cairo_sources += $(cairo_os2_sources)'
24316                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24317 ""$cr_make_tmp"
24318
24319                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24320 ""$cr_make_tmp"
24321                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
24322 all_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
24323 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
24324 all_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
24325                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24326 ""$cr_make_tmp"
24327
24328                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24329 ""$cr_make_tmp"
24330
24331
24332                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_os2_headers)
24333 enabled_cairo_private += $(cairo_os2_private)
24334 enabled_cairo_cxx_sources += $(cairo_os2_cxx_sources)
24335 enabled_cairo_sources += $(cairo_os2_sources)'
24336                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24337 "'if CAIRO_HAS_OS2_SURFACE'
24338                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24339 ""$cr_make_tmp"
24340                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24341 "'endif'
24342
24343                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24344 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
24345                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24346 ""$cr_make_tmp"
24347                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24348 "'endif'
24349                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_os2_headers)
24350 enabled_cairo_boilerplate_private += $(cairo_boilerplate_os2_private)
24351 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_os2_cxx_sources)
24352 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_os2_sources)'
24353                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24354 "'if CAIRO_HAS_OS2_SURFACE'
24355                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24356 ""$cr_make_tmp"
24357                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24358 "'endif'
24359
24360                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24361 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
24362                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24363 ""$cr_make_tmp"
24364                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24365 "'endif'
24366
24367
24368
24369
24370                                         if test "x$use_os2" = xyes; then :
24371   :
24372                 ac_config_files="$ac_config_files src/cairo-os2.pc:src/cairo-features.pc.in"
24373
24374
24375 fi
24376                                         if test "x$use_os2" = xyes; then :
24377   :
24378                 ac_config_files="$ac_config_files cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24379
24380
24381 fi
24382                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-os2.pc'
24383                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24384 ""$cr_make_tmp"
24385
24386                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24387 ""$cr_make_tmp"
24388
24389
24390                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-os2.pc'
24391                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24392 "'if CAIRO_HAS_OS2_SURFACE'
24393                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24394 ""$cr_make_tmp"
24395                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24396 "'endif'
24397
24398                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24399 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
24400                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24401 ""$cr_make_tmp"
24402                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24403 "'endif'
24404
24405
24406                                         if test "x$use_os2" = xyes; then :
24407   :
24408                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OS2_SURFACE'
24409
24410
24411 fi
24412
24413
24414
24415                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_OS2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
24416                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24417 "'ifeq ($(CAIRO_HAS_OS2_SURFACE),1)'
24418                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24419 ""$cr_make_tmp"
24420                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24421 "'endif'
24422
24423
24424                                         if test "x$use_os2" = xyes; then :
24425   :
24426                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
24427
24428 "'--- The OS/2 surface backend feature is still under active development and is
24429 --- included in this release only as a preview. It does NOT fully work yet
24430 --- and incompatible changes may yet be made to OS/2 surface backend specific
24431 --- API.'
24432
24433
24434
24435 fi
24436
24437
24438
24439
24440
24441
24442                                                                                                                                 # Check whether --enable-beos was given.
24443 if test "${enable_beos+set}" = set; then :
24444   enableval=$enable_beos; enable_beos=$enableval
24445 else
24446   enable_beos=no
24447 fi
24448
24449                         case $enable_beos in #(
24450   no) :
24451                 use_beos="no (disabled, use --enable-beos to enable)"
24452          ;; #(
24453         yes|auto) :
24454                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's BeOS/Zeta surface backend feature" >&5
24455 $as_echo_n "checking for cairo's BeOS/Zeta surface backend feature... " >&6; }
24456                 echo
24457
24458                 use_beos=yes
24459                         beos_BASE="cairo"
24460 beos_REQUIRES="$ac_env_beos_REQUIRES_value"
24461 beos_CFLAGS="$ac_env_beos_CFLAGS_value"
24462 beos_NONPKGCONFIG_CFLAGS="$ac_env_beos_NONPKGCONFIG_CFLAGS_value"
24463 beos_LIBS="$ac_env_beos_LIBS_value"
24464 beos_NONPKGCONFIG_LIBS="$ac_env_beos_NONPKGCONFIG_LIBS_value"
24465 beos_NONPKGCONFIG_EXTRA_LIBS="$ac_env_beos_NONPKGCONFIG_EXTRA_LIBS_value"
24466
24467
24468
24469   case "$host" in
24470     *-*-beos)
24471       beos_LIBS=""
24472             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbe" >&5
24473 $as_echo_n "checking for main in -lbe... " >&6; }
24474 if test "${ac_cv_lib_be_main+set}" = set; then :
24475   $as_echo_n "(cached) " >&6
24476 else
24477   ac_check_lib_save_LIBS=$LIBS
24478 LIBS="-lbe  $LIBS"
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h.  */
24481
24482
24483 int
24484 main ()
24485 {
24486 return main ();
24487   ;
24488   return 0;
24489 }
24490 _ACEOF
24491 if ac_fn_c_try_link "$LINENO"; then :
24492   ac_cv_lib_be_main=yes
24493 else
24494   ac_cv_lib_be_main=no
24495 fi
24496 rm -f core conftest.err conftest.$ac_objext \
24497     conftest$ac_exeext conftest.$ac_ext
24498 LIBS=$ac_check_lib_save_LIBS
24499 fi
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_main" >&5
24501 $as_echo "$ac_cv_lib_be_main" >&6; }
24502 if test "x$ac_cv_lib_be_main" = x""yes; then :
24503   beos_LIBS="$beos_LIBS -lbe"
24504 fi
24505
24506       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzeta" >&5
24507 $as_echo_n "checking for main in -lzeta... " >&6; }
24508 if test "${ac_cv_lib_zeta_main+set}" = set; then :
24509   $as_echo_n "(cached) " >&6
24510 else
24511   ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-lzeta  $LIBS"
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h.  */
24515
24516
24517 int
24518 main ()
24519 {
24520 return main ();
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 if ac_fn_c_try_link "$LINENO"; then :
24526   ac_cv_lib_zeta_main=yes
24527 else
24528   ac_cv_lib_zeta_main=no
24529 fi
24530 rm -f core conftest.err conftest.$ac_objext \
24531     conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24533 fi
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zeta_main" >&5
24535 $as_echo "$ac_cv_lib_zeta_main" >&6; }
24536 if test "x$ac_cv_lib_zeta_main" = x""yes; then :
24537   beos_LIBS="$beos_LIBS -lzeta"
24538 fi
24539
24540       ;;
24541     *)
24542       use_beos="no (requires a BeOS platform)"
24543       ;;
24544   esac
24545
24546
24547                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's BeOS/Zeta surface backend feature could be enabled" >&5
24548 $as_echo_n "checking whether cairo's BeOS/Zeta surface backend feature could be enabled... " >&6; }
24549                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_beos" >&5
24550 $as_echo "$use_beos" >&6; }
24551
24552                 if test "x$enable_beos" = "xyes" -a "x$use_beos" != xyes; then :
24553                         as_fn_error $? " BeOS/Zeta surface backend feature could not be enabled" "$LINENO" 5
24554
24555 fi       ;; #(
24556   *) :
24557                         as_fn_error $? "invalid argument passed to --enable-beos: \`$use_beos', should be one of [no/auto/yes]" "$LINENO" 5
24558          ;;
24559 esac
24560         if test "x$use_beos" = "xyes"; then :
24561                                                                                 CAIRO_REQUIRES="$beos_REQUIRES"" ${CAIRO_REQUIRES}"
24562
24563                                                                         CAIRO_CFLAGS="$beos_CFLAGS"" ${CAIRO_CFLAGS}"
24564
24565                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$beos_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24566
24567                                                                         CAIRO_LIBS="$beos_LIBS"" ${CAIRO_LIBS}"
24568
24569                                                                         CAIRO_NONPKGCONFIG_LIBS="$beos_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24570
24571
24572 else
24573                                         unset beos_BASE
24574 unset beos_REQUIRES
24575 unset beos_CFLAGS
24576 unset beos_NONPKGCONFIG_CFLAGS
24577 unset beos_LIBS
24578 unset beos_NONPKGCONFIG_LIBS
24579 unset beos_NONPKGCONFIG_EXTRA_LIBS
24580
24581
24582 fi
24583
24584                                                          if test "x$use_beos" = xyes; then
24585   CAIRO_HAS_BEOS_SURFACE_TRUE=
24586   CAIRO_HAS_BEOS_SURFACE_FALSE='#'
24587 else
24588   CAIRO_HAS_BEOS_SURFACE_TRUE='#'
24589   CAIRO_HAS_BEOS_SURFACE_FALSE=
24590 fi
24591
24592
24593                                                                                 cr_make_tmp='CAIRO_HAS_BEOS_SURFACE=0'
24594                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24595 ""$cr_make_tmp"
24596
24597
24598                                                                                 cr_make_tmp=''
24599                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24600 ""$cr_make_tmp"
24601
24602                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24603 ""$cr_make_tmp"
24604                                                                                 cr_make_tmp=''
24605                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24606 ""$cr_make_tmp"
24607
24608                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24609 ""$cr_make_tmp"
24610
24611
24612
24613                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_beos_headers)'
24614                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24615 ""$cr_make_tmp"
24616
24617                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24618 ""$cr_make_tmp"
24619                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)'
24620                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24621 ""$cr_make_tmp"
24622
24623                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24624 ""$cr_make_tmp"
24625
24626
24627                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_beos_headers)
24628 all_cairo_private += $(cairo_beos_private)
24629 all_cairo_cxx_sources += $(cairo_beos_cxx_sources)
24630 all_cairo_sources += $(cairo_beos_sources)'
24631                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24632 ""$cr_make_tmp"
24633
24634                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24635 ""$cr_make_tmp"
24636                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
24637 all_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
24638 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
24639 all_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
24640                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24641 ""$cr_make_tmp"
24642
24643                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24644 ""$cr_make_tmp"
24645
24646
24647                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_beos_headers)
24648 enabled_cairo_private += $(cairo_beos_private)
24649 enabled_cairo_cxx_sources += $(cairo_beos_cxx_sources)
24650 enabled_cairo_sources += $(cairo_beos_sources)'
24651                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24652 "'if CAIRO_HAS_BEOS_SURFACE'
24653                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24654 ""$cr_make_tmp"
24655                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24656 "'endif'
24657
24658                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24659 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
24660                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24661 ""$cr_make_tmp"
24662                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24663 "'endif'
24664                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_beos_headers)
24665 enabled_cairo_boilerplate_private += $(cairo_boilerplate_beos_private)
24666 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_beos_cxx_sources)
24667 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_beos_sources)'
24668                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24669 "'if CAIRO_HAS_BEOS_SURFACE'
24670                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24671 ""$cr_make_tmp"
24672                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24673 "'endif'
24674
24675                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24676 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
24677                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24678 ""$cr_make_tmp"
24679                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24680 "'endif'
24681
24682
24683
24684
24685                                         if test "x$use_beos" = xyes; then :
24686   :
24687                 ac_config_files="$ac_config_files src/cairo-beos.pc:src/cairo-features.pc.in"
24688
24689
24690 fi
24691                                         if test "x$use_beos" = xyes; then :
24692   :
24693                 ac_config_files="$ac_config_files cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
24694
24695
24696 fi
24697                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-beos.pc'
24698                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24699 ""$cr_make_tmp"
24700
24701                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24702 ""$cr_make_tmp"
24703
24704
24705                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-beos.pc'
24706                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24707 "'if CAIRO_HAS_BEOS_SURFACE'
24708                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24709 ""$cr_make_tmp"
24710                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24711 "'endif'
24712
24713                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24714 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
24715                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24716 ""$cr_make_tmp"
24717                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24718 "'endif'
24719
24720
24721                                         if test "x$use_beos" = xyes; then :
24722   :
24723                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_BEOS_SURFACE'
24724
24725
24726 fi
24727
24728
24729
24730                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_BEOS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
24731                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24732 "'ifeq ($(CAIRO_HAS_BEOS_SURFACE),1)'
24733                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24734 ""$cr_make_tmp"
24735                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
24736 "'endif'
24737
24738
24739                                         if test "x$use_beos" = xyes; then :
24740   :
24741                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
24742
24743 "'--- The BeOS/Zeta surface backend feature is still under active development
24744 --- and is included in this release only as a preview. It does NOT fully work
24745 --- yet and incompatible changes may yet be made to BeOS/Zeta surface backend
24746 --- specific API.'
24747
24748
24749
24750 fi
24751
24752
24753
24754
24755
24756
24757                                                                                                                                 # Check whether --enable-drm was given.
24758 if test "${enable_drm+set}" = set; then :
24759   enableval=$enable_drm; enable_drm=$enableval
24760 else
24761   enable_drm=no
24762 fi
24763
24764                         case $enable_drm in #(
24765   no) :
24766                 use_drm="no (disabled, use --enable-drm to enable)"
24767          ;; #(
24768         yes|auto) :
24769                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's DRM surface backend feature" >&5
24770 $as_echo_n "checking for cairo's DRM surface backend feature... " >&6; }
24771                 echo
24772
24773                 use_drm=yes
24774                         drm_BASE="cairo"
24775 drm_REQUIRES="$ac_env_drm_REQUIRES_value"
24776 drm_CFLAGS="$ac_env_drm_CFLAGS_value"
24777 drm_NONPKGCONFIG_CFLAGS="$ac_env_drm_NONPKGCONFIG_CFLAGS_value"
24778 drm_LIBS="$ac_env_drm_LIBS_value"
24779 drm_NONPKGCONFIG_LIBS="$ac_env_drm_NONPKGCONFIG_LIBS_value"
24780 drm_NONPKGCONFIG_EXTRA_LIBS="$ac_env_drm_NONPKGCONFIG_EXTRA_LIBS_value"
24781
24782
24783
24784   drm_REQUIRES="libudev >= 136"
24785
24786 pkg_failed=no
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for drm" >&5
24788 $as_echo_n "checking for drm... " >&6; }
24789
24790 if test -n "$drm_CFLAGS"; then
24791     pkg_cv_drm_CFLAGS="$drm_CFLAGS"
24792  elif test -n "$PKG_CONFIG"; then
24793     if test -n "$PKG_CONFIG" && \
24794     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
24795   ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
24796   ac_status=$?
24797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798   test $ac_status = 0; }; then
24799   pkg_cv_drm_CFLAGS=`$PKG_CONFIG --cflags "$drm_REQUIRES" 2>/dev/null`
24800 else
24801   pkg_failed=yes
24802 fi
24803  else
24804     pkg_failed=untried
24805 fi
24806 if test -n "$drm_LIBS"; then
24807     pkg_cv_drm_LIBS="$drm_LIBS"
24808  elif test -n "$PKG_CONFIG"; then
24809     if test -n "$PKG_CONFIG" && \
24810     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$drm_REQUIRES\""; } >&5
24811   ($PKG_CONFIG --exists --print-errors "$drm_REQUIRES") 2>&5
24812   ac_status=$?
24813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814   test $ac_status = 0; }; then
24815   pkg_cv_drm_LIBS=`$PKG_CONFIG --libs "$drm_REQUIRES" 2>/dev/null`
24816 else
24817   pkg_failed=yes
24818 fi
24819  else
24820     pkg_failed=untried
24821 fi
24822
24823
24824
24825 if test $pkg_failed = yes; then
24826
24827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24828         _pkg_short_errors_supported=yes
24829 else
24830         _pkg_short_errors_supported=no
24831 fi
24832         if test $_pkg_short_errors_supported = yes; then
24833                 drm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$drm_REQUIRES" 2>&1`
24834         else
24835                 drm_PKG_ERRORS=`$PKG_CONFIG --print-errors "$drm_REQUIRES" 2>&1`
24836         fi
24837         # Put the nasty error message in config.log where it belongs
24838         echo "$drm_PKG_ERRORS" >&5
24839
24840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24841 $as_echo "no" >&6; }
24842                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24843 $as_echo "no" >&6; }
24844   use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
24845 elif test $pkg_failed = untried; then
24846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24847 $as_echo "no" >&6; }
24848   use_drm="no (requires $drm_REQUIRES, udev is available from git://git.kernel.org/pub/scm/linux/hotplug/udev.git)"
24849 else
24850         drm_CFLAGS=$pkg_cv_drm_CFLAGS
24851         drm_LIBS=$pkg_cv_drm_LIBS
24852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24853 $as_echo "yes" >&6; }
24854         :
24855 fi
24856
24857
24858                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's DRM surface backend feature could be enabled" >&5
24859 $as_echo_n "checking whether cairo's DRM surface backend feature could be enabled... " >&6; }
24860                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_drm" >&5
24861 $as_echo "$use_drm" >&6; }
24862
24863                 if test "x$enable_drm" = "xyes" -a "x$use_drm" != xyes; then :
24864                         as_fn_error $? " DRM surface backend feature could not be enabled" "$LINENO" 5
24865
24866 fi       ;; #(
24867   *) :
24868                         as_fn_error $? "invalid argument passed to --enable-drm: \`$use_drm', should be one of [no/auto/yes]" "$LINENO" 5
24869          ;;
24870 esac
24871         if test "x$use_drm" = "xyes"; then :
24872                                                                                 CAIRO_REQUIRES="$drm_REQUIRES"" ${CAIRO_REQUIRES}"
24873
24874                                                                         CAIRO_CFLAGS="$drm_CFLAGS"" ${CAIRO_CFLAGS}"
24875
24876                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$drm_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
24877
24878                                                                         CAIRO_LIBS="$drm_LIBS"" ${CAIRO_LIBS}"
24879
24880                                                                         CAIRO_NONPKGCONFIG_LIBS="$drm_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
24881
24882
24883 else
24884                                         unset drm_BASE
24885 unset drm_REQUIRES
24886 unset drm_CFLAGS
24887 unset drm_NONPKGCONFIG_CFLAGS
24888 unset drm_LIBS
24889 unset drm_NONPKGCONFIG_LIBS
24890 unset drm_NONPKGCONFIG_EXTRA_LIBS
24891
24892
24893 fi
24894
24895                                                          if test "x$use_drm" = xyes; then
24896   CAIRO_HAS_DRM_SURFACE_TRUE=
24897   CAIRO_HAS_DRM_SURFACE_FALSE='#'
24898 else
24899   CAIRO_HAS_DRM_SURFACE_TRUE='#'
24900   CAIRO_HAS_DRM_SURFACE_FALSE=
24901 fi
24902
24903
24904                                                                                 cr_make_tmp='CAIRO_HAS_DRM_SURFACE=0'
24905                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
24906 ""$cr_make_tmp"
24907
24908
24909                                                                                 cr_make_tmp=''
24910                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24911 ""$cr_make_tmp"
24912
24913                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24914 ""$cr_make_tmp"
24915                                                                                 cr_make_tmp=''
24916                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24917 ""$cr_make_tmp"
24918
24919                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24920 ""$cr_make_tmp"
24921
24922
24923
24924                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_drm_headers)'
24925                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24926 ""$cr_make_tmp"
24927
24928                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24929 ""$cr_make_tmp"
24930                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)'
24931                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24932 ""$cr_make_tmp"
24933
24934                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24935 ""$cr_make_tmp"
24936
24937
24938                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_drm_headers)
24939 all_cairo_private += $(cairo_drm_private)
24940 all_cairo_cxx_sources += $(cairo_drm_cxx_sources)
24941 all_cairo_sources += $(cairo_drm_sources)'
24942                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24943 ""$cr_make_tmp"
24944
24945                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24946 ""$cr_make_tmp"
24947                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
24948 all_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
24949 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
24950 all_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
24951                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24952 ""$cr_make_tmp"
24953
24954                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24955 ""$cr_make_tmp"
24956
24957
24958                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_drm_headers)
24959 enabled_cairo_private += $(cairo_drm_private)
24960 enabled_cairo_cxx_sources += $(cairo_drm_cxx_sources)
24961 enabled_cairo_sources += $(cairo_drm_sources)'
24962                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24963 "'if CAIRO_HAS_DRM_SURFACE'
24964                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24965 ""$cr_make_tmp"
24966                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
24967 "'endif'
24968
24969                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24970 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
24971                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24972 ""$cr_make_tmp"
24973                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
24974 "'endif'
24975                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_drm_headers)
24976 enabled_cairo_boilerplate_private += $(cairo_boilerplate_drm_private)
24977 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_drm_cxx_sources)
24978 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_drm_sources)'
24979                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24980 "'if CAIRO_HAS_DRM_SURFACE'
24981                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24982 ""$cr_make_tmp"
24983                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
24984 "'endif'
24985
24986                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24987 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
24988                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24989 ""$cr_make_tmp"
24990                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
24991 "'endif'
24992
24993
24994
24995
24996                                         if test "x$use_drm" = xyes; then :
24997   :
24998                 ac_config_files="$ac_config_files src/cairo-drm.pc:src/cairo-features.pc.in"
24999
25000
25001 fi
25002                                         if test "x$use_drm" = xyes; then :
25003   :
25004                 ac_config_files="$ac_config_files cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25005
25006
25007 fi
25008                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-drm.pc'
25009                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25010 ""$cr_make_tmp"
25011
25012                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25013 ""$cr_make_tmp"
25014
25015
25016                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-drm.pc'
25017                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25018 "'if CAIRO_HAS_DRM_SURFACE'
25019                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25020 ""$cr_make_tmp"
25021                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25022 "'endif'
25023
25024                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25025 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
25026                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25027 ""$cr_make_tmp"
25028                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25029 "'endif'
25030
25031
25032                                         if test "x$use_drm" = xyes; then :
25033   :
25034                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DRM_SURFACE'
25035
25036
25037 fi
25038
25039
25040
25041                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_DRM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25042                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25043 "'ifeq ($(CAIRO_HAS_DRM_SURFACE),1)'
25044                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25045 ""$cr_make_tmp"
25046                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25047 "'endif'
25048
25049
25050                                         if test "x$use_drm" = xyes; then :
25051   :
25052                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25053
25054 "'--- The DRM surface backend feature is still under active development and is
25055 --- included in this release only as a preview. It does NOT fully work yet
25056 --- and incompatible changes may yet be made to DRM surface backend specific
25057 --- API.'
25058
25059
25060
25061 fi
25062
25063
25064
25065
25066
25067                                                                                                                                 # Check whether --enable-gallium was given.
25068 if test "${enable_gallium+set}" = set; then :
25069   enableval=$enable_gallium; enable_gallium=$enableval
25070 else
25071   enable_gallium=no
25072 fi
25073
25074                         case $enable_gallium in #(
25075   no) :
25076                 use_gallium="no (disabled, use --enable-gallium to enable)"
25077          ;; #(
25078         yes|auto) :
25079                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Gallium3D surface backend feature" >&5
25080 $as_echo_n "checking for cairo's Gallium3D surface backend feature... " >&6; }
25081                 echo
25082
25083                 use_gallium=yes
25084                         gallium_BASE="cairo"
25085 gallium_REQUIRES="$ac_env_gallium_REQUIRES_value"
25086 gallium_CFLAGS="$ac_env_gallium_CFLAGS_value"
25087 gallium_NONPKGCONFIG_CFLAGS="$ac_env_gallium_NONPKGCONFIG_CFLAGS_value"
25088 gallium_LIBS="$ac_env_gallium_LIBS_value"
25089 gallium_NONPKGCONFIG_LIBS="$ac_env_gallium_NONPKGCONFIG_LIBS_value"
25090 gallium_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gallium_NONPKGCONFIG_EXTRA_LIBS_value"
25091
25092
25093
25094   if test "x$use_drm" = "xyes"; then
25095
25096 # Check whether --with-gallium was given.
25097 if test "${with_gallium+set}" = set; then :
25098   withval=$with_gallium; mesa_DIR="$withval"
25099 else
25100   mesa_DIR="`pwd`/../mesa"
25101 fi
25102
25103       gallium_DIR="$mesa_DIR/src/gallium"
25104       gallium_NONPKGCONFIG_CFLAGS="-I$mesa_DIR/include -I$mesa_DIR/src/mesa -I$gallium_DIR/include -I$gallium_DIR/auxiliary"
25105       gallium_NONPKGCONFIG_LIBS="-lGL"
25106
25107
25108   else
25109     use_gallium="no (requires --enable-drm)"
25110   fi
25111
25112
25113                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Gallium3D surface backend feature could be enabled" >&5
25114 $as_echo_n "checking whether cairo's Gallium3D surface backend feature could be enabled... " >&6; }
25115                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gallium" >&5
25116 $as_echo "$use_gallium" >&6; }
25117
25118                 if test "x$enable_gallium" = "xyes" -a "x$use_gallium" != xyes; then :
25119                         as_fn_error $? " Gallium3D surface backend feature could not be enabled" "$LINENO" 5
25120
25121 fi       ;; #(
25122   *) :
25123                         as_fn_error $? "invalid argument passed to --enable-gallium: \`$use_gallium', should be one of [no/auto/yes]" "$LINENO" 5
25124          ;;
25125 esac
25126         if test "x$use_gallium" = "xyes"; then :
25127                                                                                 CAIRO_REQUIRES="$gallium_REQUIRES"" ${CAIRO_REQUIRES}"
25128
25129                                                                         CAIRO_CFLAGS="$gallium_CFLAGS"" ${CAIRO_CFLAGS}"
25130
25131                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gallium_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25132
25133                                                                         CAIRO_LIBS="$gallium_LIBS"" ${CAIRO_LIBS}"
25134
25135                                                                         CAIRO_NONPKGCONFIG_LIBS="$gallium_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25136
25137
25138 else
25139                                         unset gallium_BASE
25140 unset gallium_REQUIRES
25141 unset gallium_CFLAGS
25142 unset gallium_NONPKGCONFIG_CFLAGS
25143 unset gallium_LIBS
25144 unset gallium_NONPKGCONFIG_LIBS
25145 unset gallium_NONPKGCONFIG_EXTRA_LIBS
25146
25147
25148 fi
25149
25150                                                          if test "x$use_gallium" = xyes; then
25151   CAIRO_HAS_GALLIUM_SURFACE_TRUE=
25152   CAIRO_HAS_GALLIUM_SURFACE_FALSE='#'
25153 else
25154   CAIRO_HAS_GALLIUM_SURFACE_TRUE='#'
25155   CAIRO_HAS_GALLIUM_SURFACE_FALSE=
25156 fi
25157
25158
25159                                                                                 cr_make_tmp='CAIRO_HAS_GALLIUM_SURFACE=0'
25160                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25161 ""$cr_make_tmp"
25162
25163
25164                                                                                 cr_make_tmp=''
25165                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25166 ""$cr_make_tmp"
25167
25168                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25169 ""$cr_make_tmp"
25170                                                                                 cr_make_tmp=''
25171                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25172 ""$cr_make_tmp"
25173
25174                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25175 ""$cr_make_tmp"
25176
25177
25178
25179                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_gallium_headers)'
25180                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25181 ""$cr_make_tmp"
25182
25183                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25184 ""$cr_make_tmp"
25185                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)'
25186                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25187 ""$cr_make_tmp"
25188
25189                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25190 ""$cr_make_tmp"
25191
25192
25193                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gallium_headers)
25194 all_cairo_private += $(cairo_gallium_private)
25195 all_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
25196 all_cairo_sources += $(cairo_gallium_sources)'
25197                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25198 ""$cr_make_tmp"
25199
25200                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25201 ""$cr_make_tmp"
25202                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
25203 all_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
25204 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
25205 all_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
25206                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25207 ""$cr_make_tmp"
25208
25209                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25210 ""$cr_make_tmp"
25211
25212
25213                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gallium_headers)
25214 enabled_cairo_private += $(cairo_gallium_private)
25215 enabled_cairo_cxx_sources += $(cairo_gallium_cxx_sources)
25216 enabled_cairo_sources += $(cairo_gallium_sources)'
25217                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25218 "'if CAIRO_HAS_GALLIUM_SURFACE'
25219                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25220 ""$cr_make_tmp"
25221                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25222 "'endif'
25223
25224                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25225 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
25226                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25227 ""$cr_make_tmp"
25228                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25229 "'endif'
25230                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gallium_headers)
25231 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gallium_private)
25232 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gallium_cxx_sources)
25233 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gallium_sources)'
25234                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25235 "'if CAIRO_HAS_GALLIUM_SURFACE'
25236                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25237 ""$cr_make_tmp"
25238                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25239 "'endif'
25240
25241                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25242 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
25243                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25244 ""$cr_make_tmp"
25245                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25246 "'endif'
25247
25248
25249
25250
25251                                         if test "x$use_gallium" = xyes; then :
25252   :
25253                 ac_config_files="$ac_config_files src/cairo-gallium.pc:src/cairo-features.pc.in"
25254
25255
25256 fi
25257                                         if test "x$use_gallium" = xyes; then :
25258   :
25259                 ac_config_files="$ac_config_files cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25260
25261
25262 fi
25263                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gallium.pc'
25264                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25265 ""$cr_make_tmp"
25266
25267                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25268 ""$cr_make_tmp"
25269
25270
25271                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gallium.pc'
25272                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25273 "'if CAIRO_HAS_GALLIUM_SURFACE'
25274                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25275 ""$cr_make_tmp"
25276                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25277 "'endif'
25278
25279                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25280 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
25281                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25282 ""$cr_make_tmp"
25283                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25284 "'endif'
25285
25286
25287                                         if test "x$use_gallium" = xyes; then :
25288   :
25289                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GALLIUM_SURFACE'
25290
25291
25292 fi
25293
25294
25295
25296                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GALLIUM_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25297                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25298 "'ifeq ($(CAIRO_HAS_GALLIUM_SURFACE),1)'
25299                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25300 ""$cr_make_tmp"
25301                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25302 "'endif'
25303
25304
25305                                         if test "x$use_gallium" = xyes; then :
25306   :
25307                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25308
25309 "'--- The Gallium3D surface backend feature is still under active development
25310 --- and is included in this release only as a preview. It does NOT fully work
25311 --- yet and incompatible changes may yet be made to Gallium3D surface backend
25312 --- specific API.'
25313
25314
25315
25316 fi
25317
25318
25319
25320
25321
25322
25323                                                                                                                                 # Check whether --enable-png was given.
25324 if test "${enable_png+set}" = set; then :
25325   enableval=$enable_png; enable_png=$enableval
25326 else
25327   enable_png=yes
25328 fi
25329
25330                         case $enable_png in #(
25331   no) :
25332                 use_png="no (disabled, use --enable-png to enable)"
25333          ;; #(
25334         yes|auto) :
25335                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PNG functions feature" >&5
25336 $as_echo_n "checking for cairo's PNG functions feature... " >&6; }
25337                 echo
25338
25339                 use_png=yes
25340                         png_BASE="cairo"
25341 png_REQUIRES="$ac_env_png_REQUIRES_value"
25342 png_CFLAGS="$ac_env_png_CFLAGS_value"
25343 png_NONPKGCONFIG_CFLAGS="$ac_env_png_NONPKGCONFIG_CFLAGS_value"
25344 png_LIBS="$ac_env_png_LIBS_value"
25345 png_NONPKGCONFIG_LIBS="$ac_env_png_NONPKGCONFIG_LIBS_value"
25346 png_NONPKGCONFIG_EXTRA_LIBS="$ac_env_png_NONPKGCONFIG_EXTRA_LIBS_value"
25347
25348
25349
25350   use_png=no
25351
25352   if test "x$png_REQUIRES" = x; then
25353     # libpng13 is GnuWin32's libpng-1.2.8 :-(
25354     for l in libpng libpng14 libpng12 libpng13 libpng10; do
25355       if $PKG_CONFIG --exists $l ; then
25356         png_REQUIRES=$l
25357         use_png=yes
25358         break
25359       fi
25360     done
25361   else
25362     use_png=yes
25363   fi
25364
25365   if test "x$use_png" = "xyes" ; then
25366
25367 pkg_failed=no
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5
25369 $as_echo_n "checking for png... " >&6; }
25370
25371 if test -n "$png_CFLAGS"; then
25372     pkg_cv_png_CFLAGS="$png_CFLAGS"
25373  elif test -n "$PKG_CONFIG"; then
25374     if test -n "$PKG_CONFIG" && \
25375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
25376   ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
25377   ac_status=$?
25378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25379   test $ac_status = 0; }; then
25380   pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags "$png_REQUIRES" 2>/dev/null`
25381 else
25382   pkg_failed=yes
25383 fi
25384  else
25385     pkg_failed=untried
25386 fi
25387 if test -n "$png_LIBS"; then
25388     pkg_cv_png_LIBS="$png_LIBS"
25389  elif test -n "$PKG_CONFIG"; then
25390     if test -n "$PKG_CONFIG" && \
25391     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$png_REQUIRES\""; } >&5
25392   ($PKG_CONFIG --exists --print-errors "$png_REQUIRES") 2>&5
25393   ac_status=$?
25394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395   test $ac_status = 0; }; then
25396   pkg_cv_png_LIBS=`$PKG_CONFIG --libs "$png_REQUIRES" 2>/dev/null`
25397 else
25398   pkg_failed=yes
25399 fi
25400  else
25401     pkg_failed=untried
25402 fi
25403
25404
25405
25406 if test $pkg_failed = yes; then
25407
25408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25409         _pkg_short_errors_supported=yes
25410 else
25411         _pkg_short_errors_supported=no
25412 fi
25413         if test $_pkg_short_errors_supported = yes; then
25414                 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$png_REQUIRES" 2>&1`
25415         else
25416                 png_PKG_ERRORS=`$PKG_CONFIG --print-errors "$png_REQUIRES" 2>&1`
25417         fi
25418         # Put the nasty error message in config.log where it belongs
25419         echo "$png_PKG_ERRORS" >&5
25420
25421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25422 $as_echo "no" >&6; }
25423                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25424 $as_echo "no" >&6; }
25425 elif test $pkg_failed = untried; then
25426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25427 $as_echo "no" >&6; }
25428 else
25429         png_CFLAGS=$pkg_cv_png_CFLAGS
25430         png_LIBS=$pkg_cv_png_LIBS
25431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25432 $as_echo "yes" >&6; }
25433         :
25434 fi
25435   else
25436     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libpng in the pkg-config search path" >&5
25437 $as_echo "$as_me: WARNING: Could not find libpng in the pkg-config search path" >&2;}
25438   fi
25439
25440
25441                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PNG functions feature could be enabled" >&5
25442 $as_echo_n "checking whether cairo's PNG functions feature could be enabled... " >&6; }
25443                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_png" >&5
25444 $as_echo "$use_png" >&6; }
25445
25446                 if test "x$enable_png" = "xyes" -a "x$use_png" != xyes; then :
25447                         as_fn_error $? "recommended PNG functions feature could not be enabled" "$LINENO" 5
25448
25449 fi       ;; #(
25450   *) :
25451                         as_fn_error $? "invalid argument passed to --enable-png: \`$use_png', should be one of [no/auto/yes]" "$LINENO" 5
25452          ;;
25453 esac
25454         if test "x$use_png" = "xyes"; then :
25455                                                                                 CAIRO_REQUIRES="$png_REQUIRES"" ${CAIRO_REQUIRES}"
25456
25457                                                                         CAIRO_CFLAGS="$png_CFLAGS"" ${CAIRO_CFLAGS}"
25458
25459                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$png_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25460
25461                                                                         CAIRO_LIBS="$png_LIBS"" ${CAIRO_LIBS}"
25462
25463                                                                         CAIRO_NONPKGCONFIG_LIBS="$png_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25464
25465
25466 else
25467                                         unset png_BASE
25468 unset png_REQUIRES
25469 unset png_CFLAGS
25470 unset png_NONPKGCONFIG_CFLAGS
25471 unset png_LIBS
25472 unset png_NONPKGCONFIG_LIBS
25473 unset png_NONPKGCONFIG_EXTRA_LIBS
25474
25475
25476 fi
25477
25478                                                          if test "x$use_png" = xyes; then
25479   CAIRO_HAS_PNG_FUNCTIONS_TRUE=
25480   CAIRO_HAS_PNG_FUNCTIONS_FALSE='#'
25481 else
25482   CAIRO_HAS_PNG_FUNCTIONS_TRUE='#'
25483   CAIRO_HAS_PNG_FUNCTIONS_FALSE=
25484 fi
25485
25486
25487                                                                                 cr_make_tmp='CAIRO_HAS_PNG_FUNCTIONS=1'
25488                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25489 ""$cr_make_tmp"
25490
25491
25492                                                                                 cr_make_tmp=''
25493                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25494 ""$cr_make_tmp"
25495
25496                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25497 ""$cr_make_tmp"
25498                                                                                 cr_make_tmp=''
25499                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25500 ""$cr_make_tmp"
25501
25502                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25503 ""$cr_make_tmp"
25504
25505
25506                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_png_headers)'
25507                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25508 ""$cr_make_tmp"
25509
25510                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25511 ""$cr_make_tmp"
25512                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)'
25513                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25514 ""$cr_make_tmp"
25515
25516                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25517 ""$cr_make_tmp"
25518
25519
25520
25521                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_png_headers)
25522 all_cairo_private += $(cairo_png_private)
25523 all_cairo_cxx_sources += $(cairo_png_cxx_sources)
25524 all_cairo_sources += $(cairo_png_sources)'
25525                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25526 ""$cr_make_tmp"
25527
25528                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25529 ""$cr_make_tmp"
25530                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
25531 all_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
25532 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
25533 all_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
25534                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25535 ""$cr_make_tmp"
25536
25537                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25538 ""$cr_make_tmp"
25539
25540
25541                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_png_headers)
25542 enabled_cairo_private += $(cairo_png_private)
25543 enabled_cairo_cxx_sources += $(cairo_png_cxx_sources)
25544 enabled_cairo_sources += $(cairo_png_sources)'
25545                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25546 "'if CAIRO_HAS_PNG_FUNCTIONS'
25547                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25548 ""$cr_make_tmp"
25549                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25550 "'endif'
25551
25552                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25553 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
25554                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25555 ""$cr_make_tmp"
25556                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25557 "'endif'
25558                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_png_headers)
25559 enabled_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
25560 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_png_cxx_sources)
25561 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)'
25562                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25563 "'if CAIRO_HAS_PNG_FUNCTIONS'
25564                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25565 ""$cr_make_tmp"
25566                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25567 "'endif'
25568
25569                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25570 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
25571                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25572 ""$cr_make_tmp"
25573                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25574 "'endif'
25575
25576
25577
25578
25579                                         if test "x$use_png" = xyes; then :
25580   :
25581                 ac_config_files="$ac_config_files src/cairo-png.pc:src/cairo-features.pc.in"
25582
25583
25584 fi
25585                                         if test "x$use_png" = xyes; then :
25586   :
25587                 ac_config_files="$ac_config_files cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25588
25589
25590 fi
25591                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-png.pc'
25592                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25593 ""$cr_make_tmp"
25594
25595                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25596 ""$cr_make_tmp"
25597
25598
25599                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-png.pc'
25600                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25601 "'if CAIRO_HAS_PNG_FUNCTIONS'
25602                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25603 ""$cr_make_tmp"
25604                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25605 "'endif'
25606
25607                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25608 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
25609                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25610 ""$cr_make_tmp"
25611                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25612 "'endif'
25613
25614
25615                                         if test "x$use_png" = xyes; then :
25616   :
25617                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
25618
25619
25620 fi
25621                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
25622
25623
25624
25625                                         if test "x$use_png" != xyes; then :
25626   :
25627                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PNG_FUNCTIONS'
25628
25629
25630
25631 fi
25632
25633                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PNG_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
25634                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25635 "'ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)'
25636                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25637 ""$cr_make_tmp"
25638                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25639 "'endif'
25640
25641
25642
25643                                         if test "x$use_png" != xyes; then :
25644   :
25645                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25646
25647 "'+++ It is strongly recommended that you do NOT disable the PNG functions
25648 +++ feature.'
25649
25650
25651
25652 fi
25653
25654
25655
25656
25657                                                                                                                                 # Check whether --enable-gl was given.
25658 if test "${enable_gl+set}" = set; then :
25659   enableval=$enable_gl; enable_gl=$enableval
25660 else
25661   enable_gl=no
25662 fi
25663
25664                         case $enable_gl in #(
25665   no) :
25666                 use_gl="no (disabled, use --enable-gl to enable)"
25667          ;; #(
25668         yes|auto) :
25669                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGL surface backend feature" >&5
25670 $as_echo_n "checking for cairo's OpenGL surface backend feature... " >&6; }
25671                 echo
25672
25673                 use_gl=yes
25674                         gl_BASE="cairo"
25675 gl_REQUIRES="$ac_env_gl_REQUIRES_value"
25676 gl_CFLAGS="$ac_env_gl_CFLAGS_value"
25677 gl_NONPKGCONFIG_CFLAGS="$ac_env_gl_NONPKGCONFIG_CFLAGS_value"
25678 gl_LIBS="$ac_env_gl_LIBS_value"
25679 gl_NONPKGCONFIG_LIBS="$ac_env_gl_NONPKGCONFIG_LIBS_value"
25680 gl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gl_NONPKGCONFIG_EXTRA_LIBS_value"
25681
25682
25683
25684   gl_REQUIRES="gl"
25685
25686 pkg_failed=no
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl" >&5
25688 $as_echo_n "checking for gl... " >&6; }
25689
25690 if test -n "$gl_CFLAGS"; then
25691     pkg_cv_gl_CFLAGS="$gl_CFLAGS"
25692  elif test -n "$PKG_CONFIG"; then
25693     if test -n "$PKG_CONFIG" && \
25694     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
25695   ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
25696   ac_status=$?
25697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698   test $ac_status = 0; }; then
25699   pkg_cv_gl_CFLAGS=`$PKG_CONFIG --cflags "$gl_REQUIRES" 2>/dev/null`
25700 else
25701   pkg_failed=yes
25702 fi
25703  else
25704     pkg_failed=untried
25705 fi
25706 if test -n "$gl_LIBS"; then
25707     pkg_cv_gl_LIBS="$gl_LIBS"
25708  elif test -n "$PKG_CONFIG"; then
25709     if test -n "$PKG_CONFIG" && \
25710     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gl_REQUIRES\""; } >&5
25711   ($PKG_CONFIG --exists --print-errors "$gl_REQUIRES") 2>&5
25712   ac_status=$?
25713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714   test $ac_status = 0; }; then
25715   pkg_cv_gl_LIBS=`$PKG_CONFIG --libs "$gl_REQUIRES" 2>/dev/null`
25716 else
25717   pkg_failed=yes
25718 fi
25719  else
25720     pkg_failed=untried
25721 fi
25722
25723
25724
25725 if test $pkg_failed = yes; then
25726
25727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25728         _pkg_short_errors_supported=yes
25729 else
25730         _pkg_short_errors_supported=no
25731 fi
25732         if test $_pkg_short_errors_supported = yes; then
25733                 gl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gl_REQUIRES" 2>&1`
25734         else
25735                 gl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gl_REQUIRES" 2>&1`
25736         fi
25737         # Put the nasty error message in config.log where it belongs
25738         echo "$gl_PKG_ERRORS" >&5
25739
25740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25741 $as_echo "no" >&6; }
25742
25743                   ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
25744 if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
25745
25746 else
25747   use_gl="no (gl.pc nor OpenGL headers not found)"
25748 fi
25749
25750
25751           if test "x$use_gl" = "xyes"; then
25752               gl_NONPKGCONFIG_CFLAGS=
25753               gl_NONPKGCONFIG_LIBS="-lGL"
25754           fi
25755 elif test $pkg_failed = untried; then
25756
25757                   ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
25758 if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
25759
25760 else
25761   use_gl="no (gl.pc nor OpenGL headers not found)"
25762 fi
25763
25764
25765           if test "x$use_gl" = "xyes"; then
25766               gl_NONPKGCONFIG_CFLAGS=
25767               gl_NONPKGCONFIG_LIBS="-lGL"
25768           fi
25769 else
25770         gl_CFLAGS=$pkg_cv_gl_CFLAGS
25771         gl_LIBS=$pkg_cv_gl_LIBS
25772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25773 $as_echo "yes" >&6; }
25774         :
25775 fi
25776
25777   if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
25778     gl_LIBS="$gl_LIBS -ldl"
25779   fi
25780
25781   need_glx_functions=yes
25782   need_wgl_functions=yes
25783   need_egl_functions=yes
25784
25785
25786                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGL surface backend feature could be enabled" >&5
25787 $as_echo_n "checking whether cairo's OpenGL surface backend feature could be enabled... " >&6; }
25788                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gl" >&5
25789 $as_echo "$use_gl" >&6; }
25790
25791                 if test "x$enable_gl" = "xyes" -a "x$use_gl" != xyes; then :
25792                         as_fn_error $? " OpenGL surface backend feature could not be enabled" "$LINENO" 5
25793
25794 fi       ;; #(
25795   *) :
25796                         as_fn_error $? "invalid argument passed to --enable-gl: \`$use_gl', should be one of [no/auto/yes]" "$LINENO" 5
25797          ;;
25798 esac
25799         if test "x$use_gl" = "xyes"; then :
25800                                                                                 CAIRO_REQUIRES="$gl_REQUIRES"" ${CAIRO_REQUIRES}"
25801
25802                                                                         CAIRO_CFLAGS="$gl_CFLAGS"" ${CAIRO_CFLAGS}"
25803
25804                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
25805
25806                                                                         CAIRO_LIBS="$gl_LIBS"" ${CAIRO_LIBS}"
25807
25808                                                                         CAIRO_NONPKGCONFIG_LIBS="$gl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
25809
25810
25811 else
25812                                         unset gl_BASE
25813 unset gl_REQUIRES
25814 unset gl_CFLAGS
25815 unset gl_NONPKGCONFIG_CFLAGS
25816 unset gl_LIBS
25817 unset gl_NONPKGCONFIG_LIBS
25818 unset gl_NONPKGCONFIG_EXTRA_LIBS
25819
25820
25821 fi
25822
25823                                                          if test "x$use_gl" = xyes; then
25824   CAIRO_HAS_GL_SURFACE_TRUE=
25825   CAIRO_HAS_GL_SURFACE_FALSE='#'
25826 else
25827   CAIRO_HAS_GL_SURFACE_TRUE='#'
25828   CAIRO_HAS_GL_SURFACE_FALSE=
25829 fi
25830
25831
25832                                                                                 cr_make_tmp='CAIRO_HAS_GL_SURFACE=0'
25833                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
25834 ""$cr_make_tmp"
25835
25836
25837                                                                                 cr_make_tmp=''
25838                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25839 ""$cr_make_tmp"
25840
25841                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25842 ""$cr_make_tmp"
25843                                                                                 cr_make_tmp=''
25844                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25845 ""$cr_make_tmp"
25846
25847                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25848 ""$cr_make_tmp"
25849
25850
25851
25852                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_gl_headers)'
25853                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25854 ""$cr_make_tmp"
25855
25856                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25857 ""$cr_make_tmp"
25858                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)'
25859                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25860 ""$cr_make_tmp"
25861
25862                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25863 ""$cr_make_tmp"
25864
25865
25866                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gl_headers)
25867 all_cairo_private += $(cairo_gl_private)
25868 all_cairo_cxx_sources += $(cairo_gl_cxx_sources)
25869 all_cairo_sources += $(cairo_gl_sources)'
25870                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25871 ""$cr_make_tmp"
25872
25873                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25874 ""$cr_make_tmp"
25875                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
25876 all_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
25877 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
25878 all_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
25879                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25880 ""$cr_make_tmp"
25881
25882                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25883 ""$cr_make_tmp"
25884
25885
25886                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gl_headers)
25887 enabled_cairo_private += $(cairo_gl_private)
25888 enabled_cairo_cxx_sources += $(cairo_gl_cxx_sources)
25889 enabled_cairo_sources += $(cairo_gl_sources)'
25890                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25891 "'if CAIRO_HAS_GL_SURFACE'
25892                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25893 ""$cr_make_tmp"
25894                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25895 "'endif'
25896
25897                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25898 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
25899                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25900 ""$cr_make_tmp"
25901                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25902 "'endif'
25903                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
25904 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
25905 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gl_cxx_sources)
25906 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gl_sources)'
25907                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25908 "'if CAIRO_HAS_GL_SURFACE'
25909                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25910 ""$cr_make_tmp"
25911                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
25912 "'endif'
25913
25914                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25915 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
25916                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25917 ""$cr_make_tmp"
25918                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
25919 "'endif'
25920
25921
25922
25923
25924                                         if test "x$use_gl" = xyes; then :
25925   :
25926                 ac_config_files="$ac_config_files src/cairo-gl.pc:src/cairo-features.pc.in"
25927
25928
25929 fi
25930                                         if test "x$use_gl" = xyes; then :
25931   :
25932                 ac_config_files="$ac_config_files cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
25933
25934
25935 fi
25936                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gl.pc'
25937                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25938 ""$cr_make_tmp"
25939
25940                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25941 ""$cr_make_tmp"
25942
25943
25944                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gl.pc'
25945                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25946 "'if CAIRO_HAS_GL_SURFACE'
25947                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25948 ""$cr_make_tmp"
25949                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
25950 "'endif'
25951
25952                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25953 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
25954                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25955 ""$cr_make_tmp"
25956                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
25957 "'endif'
25958
25959
25960                                         if test "x$use_gl" = xyes; then :
25961   :
25962                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GL_SURFACE'
25963
25964
25965 fi
25966
25967
25968
25969                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
25970                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25971 "'ifeq ($(CAIRO_HAS_GL_SURFACE),1)'
25972                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25973 ""$cr_make_tmp"
25974                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
25975 "'endif'
25976
25977
25978                                         if test "x$use_gl" = xyes; then :
25979   :
25980                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
25981
25982 "'--- The OpenGL surface backend feature is still under active development and
25983 --- is included in this release only as a preview. It does NOT fully work yet
25984 --- and incompatible changes may yet be made to OpenGL surface backend
25985 --- specific API.'
25986
25987
25988
25989 fi
25990
25991
25992
25993
25994
25995                                                                                                                                 # Check whether --enable-glesv2 was given.
25996 if test "${enable_glesv2+set}" = set; then :
25997   enableval=$enable_glesv2; enable_glesv2=$enableval
25998 else
25999   enable_glesv2=no
26000 fi
26001
26002                         case $enable_glesv2 in #(
26003   no) :
26004                 use_glesv2="no (disabled, use --enable-glesv2 to enable)"
26005          ;; #(
26006         yes|auto) :
26007                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenGLESv2 surface backend feature" >&5
26008 $as_echo_n "checking for cairo's OpenGLESv2 surface backend feature... " >&6; }
26009                 echo
26010
26011                 use_glesv2=yes
26012                         glesv2_BASE="cairo"
26013 glesv2_REQUIRES="$ac_env_glesv2_REQUIRES_value"
26014 glesv2_CFLAGS="$ac_env_glesv2_CFLAGS_value"
26015 glesv2_NONPKGCONFIG_CFLAGS="$ac_env_glesv2_NONPKGCONFIG_CFLAGS_value"
26016 glesv2_LIBS="$ac_env_glesv2_LIBS_value"
26017 glesv2_NONPKGCONFIG_LIBS="$ac_env_glesv2_NONPKGCONFIG_LIBS_value"
26018 glesv2_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glesv2_NONPKGCONFIG_EXTRA_LIBS_value"
26019
26020
26021
26022   glesv2_REQUIRES="gles20"
26023
26024 pkg_failed=no
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glesv2" >&5
26026 $as_echo_n "checking for glesv2... " >&6; }
26027
26028 if test -n "$glesv2_CFLAGS"; then
26029     pkg_cv_glesv2_CFLAGS="$glesv2_CFLAGS"
26030  elif test -n "$PKG_CONFIG"; then
26031     if test -n "$PKG_CONFIG" && \
26032     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
26033   ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
26034   ac_status=$?
26035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26036   test $ac_status = 0; }; then
26037   pkg_cv_glesv2_CFLAGS=`$PKG_CONFIG --cflags "$glesv2_REQUIRES" 2>/dev/null`
26038 else
26039   pkg_failed=yes
26040 fi
26041  else
26042     pkg_failed=untried
26043 fi
26044 if test -n "$glesv2_LIBS"; then
26045     pkg_cv_glesv2_LIBS="$glesv2_LIBS"
26046  elif test -n "$PKG_CONFIG"; then
26047     if test -n "$PKG_CONFIG" && \
26048     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$glesv2_REQUIRES\""; } >&5
26049   ($PKG_CONFIG --exists --print-errors "$glesv2_REQUIRES") 2>&5
26050   ac_status=$?
26051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052   test $ac_status = 0; }; then
26053   pkg_cv_glesv2_LIBS=`$PKG_CONFIG --libs "$glesv2_REQUIRES" 2>/dev/null`
26054 else
26055   pkg_failed=yes
26056 fi
26057  else
26058     pkg_failed=untried
26059 fi
26060
26061
26062
26063 if test $pkg_failed = yes; then
26064
26065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26066         _pkg_short_errors_supported=yes
26067 else
26068         _pkg_short_errors_supported=no
26069 fi
26070         if test $_pkg_short_errors_supported = yes; then
26071                 glesv2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$glesv2_REQUIRES" 2>&1`
26072         else
26073                 glesv2_PKG_ERRORS=`$PKG_CONFIG --print-errors "$glesv2_REQUIRES" 2>&1`
26074         fi
26075         # Put the nasty error message in config.log where it belongs
26076         echo "$glesv2_PKG_ERRORS" >&5
26077
26078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26079 $as_echo "no" >&6; }
26080
26081                   ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
26082 if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then :
26083
26084 else
26085   use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
26086 fi
26087
26088
26089           if test "x$use_glesv2" = "xyes"; then
26090               glesv2_NONPKGCONFIG_CFLAGS=
26091               glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
26092           fi
26093 elif test $pkg_failed = untried; then
26094
26095                   ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
26096 if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then :
26097
26098 else
26099   use_glesv2="no (glesv2.pc nor OpenGL ES 2.0 headers not found)"
26100 fi
26101
26102
26103           if test "x$use_glesv2" = "xyes"; then
26104               glesv2_NONPKGCONFIG_CFLAGS=
26105               glesv2_NONPKGCONFIG_LIBS="-lGLESv2"
26106           fi
26107 else
26108         glesv2_CFLAGS=$pkg_cv_glesv2_CFLAGS
26109         glesv2_LIBS=$pkg_cv_glesv2_LIBS
26110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26111 $as_echo "yes" >&6; }
26112         :
26113 fi
26114
26115   if test "x$have_dl" = "xyes" -a "x$have_dlsym" = "xyes"; then
26116     glesv2_LIBS="$glesv2_LIBS -ldl"
26117   fi
26118
26119   need_egl_functions=yes
26120
26121
26122                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenGLESv2 surface backend feature could be enabled" >&5
26123 $as_echo_n "checking whether cairo's OpenGLESv2 surface backend feature could be enabled... " >&6; }
26124                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glesv2" >&5
26125 $as_echo "$use_glesv2" >&6; }
26126
26127                 if test "x$enable_glesv2" = "xyes" -a "x$use_glesv2" != xyes; then :
26128                         as_fn_error $? " OpenGLESv2 surface backend feature could not be enabled" "$LINENO" 5
26129
26130 fi       ;; #(
26131   *) :
26132                         as_fn_error $? "invalid argument passed to --enable-glesv2: \`$use_glesv2', should be one of [no/auto/yes]" "$LINENO" 5
26133          ;;
26134 esac
26135         if test "x$use_glesv2" = "xyes"; then :
26136                                                                                 CAIRO_REQUIRES="$glesv2_REQUIRES"" ${CAIRO_REQUIRES}"
26137
26138                                                                         CAIRO_CFLAGS="$glesv2_CFLAGS"" ${CAIRO_CFLAGS}"
26139
26140                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$glesv2_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26141
26142                                                                         CAIRO_LIBS="$glesv2_LIBS"" ${CAIRO_LIBS}"
26143
26144                                                                         CAIRO_NONPKGCONFIG_LIBS="$glesv2_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26145
26146
26147 else
26148                                         unset glesv2_BASE
26149 unset glesv2_REQUIRES
26150 unset glesv2_CFLAGS
26151 unset glesv2_NONPKGCONFIG_CFLAGS
26152 unset glesv2_LIBS
26153 unset glesv2_NONPKGCONFIG_LIBS
26154 unset glesv2_NONPKGCONFIG_EXTRA_LIBS
26155
26156
26157 fi
26158
26159                                                          if test "x$use_glesv2" = xyes; then
26160   CAIRO_HAS_GLESV2_SURFACE_TRUE=
26161   CAIRO_HAS_GLESV2_SURFACE_FALSE='#'
26162 else
26163   CAIRO_HAS_GLESV2_SURFACE_TRUE='#'
26164   CAIRO_HAS_GLESV2_SURFACE_FALSE=
26165 fi
26166
26167
26168                                                                                 cr_make_tmp='CAIRO_HAS_GLESV2_SURFACE=0'
26169                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26170 ""$cr_make_tmp"
26171
26172
26173                                                                                 cr_make_tmp=''
26174                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26175 ""$cr_make_tmp"
26176
26177                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26178 ""$cr_make_tmp"
26179                                                                                 cr_make_tmp=''
26180                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26181 ""$cr_make_tmp"
26182
26183                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26184 ""$cr_make_tmp"
26185
26186
26187
26188                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_glesv2_headers)'
26189                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26190 ""$cr_make_tmp"
26191
26192                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26193 ""$cr_make_tmp"
26194                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)'
26195                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26196 ""$cr_make_tmp"
26197
26198                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26199 ""$cr_make_tmp"
26200
26201
26202                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_glesv2_headers)
26203 all_cairo_private += $(cairo_glesv2_private)
26204 all_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
26205 all_cairo_sources += $(cairo_glesv2_sources)'
26206                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26207 ""$cr_make_tmp"
26208
26209                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26210 ""$cr_make_tmp"
26211                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
26212 all_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
26213 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
26214 all_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
26215                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26216 ""$cr_make_tmp"
26217
26218                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26219 ""$cr_make_tmp"
26220
26221
26222                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_glesv2_headers)
26223 enabled_cairo_private += $(cairo_glesv2_private)
26224 enabled_cairo_cxx_sources += $(cairo_glesv2_cxx_sources)
26225 enabled_cairo_sources += $(cairo_glesv2_sources)'
26226                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26227 "'if CAIRO_HAS_GLESV2_SURFACE'
26228                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26229 ""$cr_make_tmp"
26230                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26231 "'endif'
26232
26233                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26234 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
26235                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26236 ""$cr_make_tmp"
26237                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26238 "'endif'
26239                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glesv2_headers)
26240 enabled_cairo_boilerplate_private += $(cairo_boilerplate_glesv2_private)
26241 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glesv2_cxx_sources)
26242 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glesv2_sources)'
26243                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26244 "'if CAIRO_HAS_GLESV2_SURFACE'
26245                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26246 ""$cr_make_tmp"
26247                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26248 "'endif'
26249
26250                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26251 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
26252                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26253 ""$cr_make_tmp"
26254                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26255 "'endif'
26256
26257
26258
26259
26260                                         if test "x$use_glesv2" = xyes; then :
26261   :
26262                 ac_config_files="$ac_config_files src/cairo-glesv2.pc:src/cairo-features.pc.in"
26263
26264
26265 fi
26266                                         if test "x$use_glesv2" = xyes; then :
26267   :
26268                 ac_config_files="$ac_config_files cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26269
26270
26271 fi
26272                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-glesv2.pc'
26273                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26274 ""$cr_make_tmp"
26275
26276                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26277 ""$cr_make_tmp"
26278
26279
26280                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-glesv2.pc'
26281                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26282 "'if CAIRO_HAS_GLESV2_SURFACE'
26283                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26284 ""$cr_make_tmp"
26285                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26286 "'endif'
26287
26288                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26289 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
26290                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26291 ""$cr_make_tmp"
26292                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26293 "'endif'
26294
26295
26296                                         if test "x$use_glesv2" = xyes; then :
26297   :
26298                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLESV2_SURFACE'
26299
26300
26301 fi
26302
26303
26304
26305                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GLESV2_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26306                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26307 "'ifeq ($(CAIRO_HAS_GLESV2_SURFACE),1)'
26308                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26309 ""$cr_make_tmp"
26310                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26311 "'endif'
26312
26313
26314                                         if test "x$use_glesv2" = xyes; then :
26315   :
26316                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26317
26318 "'--- The OpenGLESv2 surface backend feature is still under active development
26319 --- and is included in this release only as a preview. It does NOT fully work
26320 --- yet and incompatible changes may yet be made to OpenGLESv2 surface
26321 --- backend specific API.'
26322
26323
26324
26325 fi
26326
26327
26328
26329
26330
26331                                                                                                                                 # Check whether --enable-cogl was given.
26332 if test "${enable_cogl+set}" = set; then :
26333   enableval=$enable_cogl; enable_cogl=$enableval
26334 else
26335   enable_cogl=no
26336 fi
26337
26338                         case $enable_cogl in #(
26339   no) :
26340                 use_cogl="no (disabled, use --enable-cogl to enable)"
26341          ;; #(
26342         yes|auto) :
26343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Cogl surface backend feature" >&5
26344 $as_echo_n "checking for cairo's Cogl surface backend feature... " >&6; }
26345                 echo
26346
26347                 use_cogl=yes
26348                         cogl_BASE="cairo"
26349 cogl_REQUIRES="$ac_env_cogl_REQUIRES_value"
26350 cogl_CFLAGS="$ac_env_cogl_CFLAGS_value"
26351 cogl_NONPKGCONFIG_CFLAGS="$ac_env_cogl_NONPKGCONFIG_CFLAGS_value"
26352 cogl_LIBS="$ac_env_cogl_LIBS_value"
26353 cogl_NONPKGCONFIG_LIBS="$ac_env_cogl_NONPKGCONFIG_LIBS_value"
26354 cogl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_cogl_NONPKGCONFIG_EXTRA_LIBS_value"
26355
26356
26357
26358   cogl_REQUIRES="cogl-2.0-experimental"
26359
26360 pkg_failed=no
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cogl" >&5
26362 $as_echo_n "checking for cogl... " >&6; }
26363
26364 if test -n "$cogl_CFLAGS"; then
26365     pkg_cv_cogl_CFLAGS="$cogl_CFLAGS"
26366  elif test -n "$PKG_CONFIG"; then
26367     if test -n "$PKG_CONFIG" && \
26368     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
26369   ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
26370   ac_status=$?
26371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26372   test $ac_status = 0; }; then
26373   pkg_cv_cogl_CFLAGS=`$PKG_CONFIG --cflags "$cogl_REQUIRES" 2>/dev/null`
26374 else
26375   pkg_failed=yes
26376 fi
26377  else
26378     pkg_failed=untried
26379 fi
26380 if test -n "$cogl_LIBS"; then
26381     pkg_cv_cogl_LIBS="$cogl_LIBS"
26382  elif test -n "$PKG_CONFIG"; then
26383     if test -n "$PKG_CONFIG" && \
26384     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cogl_REQUIRES\""; } >&5
26385   ($PKG_CONFIG --exists --print-errors "$cogl_REQUIRES") 2>&5
26386   ac_status=$?
26387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388   test $ac_status = 0; }; then
26389   pkg_cv_cogl_LIBS=`$PKG_CONFIG --libs "$cogl_REQUIRES" 2>/dev/null`
26390 else
26391   pkg_failed=yes
26392 fi
26393  else
26394     pkg_failed=untried
26395 fi
26396
26397
26398
26399 if test $pkg_failed = yes; then
26400
26401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26402         _pkg_short_errors_supported=yes
26403 else
26404         _pkg_short_errors_supported=no
26405 fi
26406         if test $_pkg_short_errors_supported = yes; then
26407                 cogl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cogl_REQUIRES" 2>&1`
26408         else
26409                 cogl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cogl_REQUIRES" 2>&1`
26410         fi
26411         # Put the nasty error message in config.log where it belongs
26412         echo "$cogl_PKG_ERRORS" >&5
26413
26414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26415 $as_echo "no" >&6; }
26416                 use_cogl="no"
26417 elif test $pkg_failed = untried; then
26418         use_cogl="no"
26419 else
26420         cogl_CFLAGS=$pkg_cv_cogl_CFLAGS
26421         cogl_LIBS=$pkg_cv_cogl_LIBS
26422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26423 $as_echo "yes" >&6; }
26424         :
26425 fi
26426
26427
26428                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Cogl surface backend feature could be enabled" >&5
26429 $as_echo_n "checking whether cairo's Cogl surface backend feature could be enabled... " >&6; }
26430                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_cogl" >&5
26431 $as_echo "$use_cogl" >&6; }
26432
26433                 if test "x$enable_cogl" = "xyes" -a "x$use_cogl" != xyes; then :
26434                         as_fn_error $? " Cogl surface backend feature could not be enabled" "$LINENO" 5
26435
26436 fi       ;; #(
26437   *) :
26438                         as_fn_error $? "invalid argument passed to --enable-cogl: \`$use_cogl', should be one of [no/auto/yes]" "$LINENO" 5
26439          ;;
26440 esac
26441         if test "x$use_cogl" = "xyes"; then :
26442                                                                                 CAIRO_REQUIRES="$cogl_REQUIRES"" ${CAIRO_REQUIRES}"
26443
26444                                                                         CAIRO_CFLAGS="$cogl_CFLAGS"" ${CAIRO_CFLAGS}"
26445
26446                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$cogl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26447
26448                                                                         CAIRO_LIBS="$cogl_LIBS"" ${CAIRO_LIBS}"
26449
26450                                                                         CAIRO_NONPKGCONFIG_LIBS="$cogl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26451
26452
26453 else
26454                                         unset cogl_BASE
26455 unset cogl_REQUIRES
26456 unset cogl_CFLAGS
26457 unset cogl_NONPKGCONFIG_CFLAGS
26458 unset cogl_LIBS
26459 unset cogl_NONPKGCONFIG_LIBS
26460 unset cogl_NONPKGCONFIG_EXTRA_LIBS
26461
26462
26463 fi
26464
26465                                                          if test "x$use_cogl" = xyes; then
26466   CAIRO_HAS_COGL_SURFACE_TRUE=
26467   CAIRO_HAS_COGL_SURFACE_FALSE='#'
26468 else
26469   CAIRO_HAS_COGL_SURFACE_TRUE='#'
26470   CAIRO_HAS_COGL_SURFACE_FALSE=
26471 fi
26472
26473
26474                                                                                 cr_make_tmp='CAIRO_HAS_COGL_SURFACE=0'
26475                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26476 ""$cr_make_tmp"
26477
26478
26479                                                                                 cr_make_tmp=''
26480                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26481 ""$cr_make_tmp"
26482
26483                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26484 ""$cr_make_tmp"
26485                                                                                 cr_make_tmp=''
26486                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26487 ""$cr_make_tmp"
26488
26489                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26490 ""$cr_make_tmp"
26491
26492
26493
26494                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_cogl_headers)'
26495                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26496 ""$cr_make_tmp"
26497
26498                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26499 ""$cr_make_tmp"
26500                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)'
26501                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26502 ""$cr_make_tmp"
26503
26504                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26505 ""$cr_make_tmp"
26506
26507
26508                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_cogl_headers)
26509 all_cairo_private += $(cairo_cogl_private)
26510 all_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
26511 all_cairo_sources += $(cairo_cogl_sources)'
26512                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26513 ""$cr_make_tmp"
26514
26515                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26516 ""$cr_make_tmp"
26517                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
26518 all_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
26519 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
26520 all_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
26521                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26522 ""$cr_make_tmp"
26523
26524                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26525 ""$cr_make_tmp"
26526
26527
26528                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_cogl_headers)
26529 enabled_cairo_private += $(cairo_cogl_private)
26530 enabled_cairo_cxx_sources += $(cairo_cogl_cxx_sources)
26531 enabled_cairo_sources += $(cairo_cogl_sources)'
26532                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26533 "'if CAIRO_HAS_COGL_SURFACE'
26534                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26535 ""$cr_make_tmp"
26536                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26537 "'endif'
26538
26539                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26540 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
26541                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26542 ""$cr_make_tmp"
26543                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26544 "'endif'
26545                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_cogl_headers)
26546 enabled_cairo_boilerplate_private += $(cairo_boilerplate_cogl_private)
26547 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_cogl_cxx_sources)
26548 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_cogl_sources)'
26549                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26550 "'if CAIRO_HAS_COGL_SURFACE'
26551                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26552 ""$cr_make_tmp"
26553                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26554 "'endif'
26555
26556                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26557 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
26558                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26559 ""$cr_make_tmp"
26560                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26561 "'endif'
26562
26563
26564
26565
26566                                         if test "x$use_cogl" = xyes; then :
26567   :
26568                 ac_config_files="$ac_config_files src/cairo-cogl.pc:src/cairo-features.pc.in"
26569
26570
26571 fi
26572                                         if test "x$use_cogl" = xyes; then :
26573   :
26574                 ac_config_files="$ac_config_files cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26575
26576
26577 fi
26578                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-cogl.pc'
26579                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26580 ""$cr_make_tmp"
26581
26582                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26583 ""$cr_make_tmp"
26584
26585
26586                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-cogl.pc'
26587                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26588 "'if CAIRO_HAS_COGL_SURFACE'
26589                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26590 ""$cr_make_tmp"
26591                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26592 "'endif'
26593
26594                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26595 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),1)'
26596                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26597 ""$cr_make_tmp"
26598                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26599 "'endif'
26600
26601
26602                                         if test "x$use_cogl" = xyes; then :
26603   :
26604                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_COGL_SURFACE'
26605
26606
26607 fi
26608
26609
26610
26611                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_COGL_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26612                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26613 "'ifeq ($(CAIRO_HAS_COGL_SURFACE),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                                         if test "x$use_cogl" = xyes; then :
26621   :
26622                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26623
26624 "'--- The Cogl surface backend feature is still under active development and is
26625 --- included in this release only as a preview. It does NOT fully work yet
26626 --- and incompatible changes may yet be made to Cogl surface backend specific
26627 --- API.'
26628
26629
26630
26631 fi
26632
26633
26634
26635
26636
26637
26638                                                                                                                                 # Check whether --enable-directfb was given.
26639 if test "${enable_directfb+set}" = set; then :
26640   enableval=$enable_directfb; enable_directfb=$enableval
26641 else
26642   enable_directfb=no
26643 fi
26644
26645                         case $enable_directfb in #(
26646   no) :
26647                 use_directfb="no (disabled, use --enable-directfb to enable)"
26648          ;; #(
26649         yes|auto) :
26650                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's directfb surface backend feature" >&5
26651 $as_echo_n "checking for cairo's directfb surface backend feature... " >&6; }
26652                 echo
26653
26654                 use_directfb=yes
26655                         directfb_BASE="cairo"
26656 directfb_REQUIRES="$ac_env_directfb_REQUIRES_value"
26657 directfb_CFLAGS="$ac_env_directfb_CFLAGS_value"
26658 directfb_NONPKGCONFIG_CFLAGS="$ac_env_directfb_NONPKGCONFIG_CFLAGS_value"
26659 directfb_LIBS="$ac_env_directfb_LIBS_value"
26660 directfb_NONPKGCONFIG_LIBS="$ac_env_directfb_NONPKGCONFIG_LIBS_value"
26661 directfb_NONPKGCONFIG_EXTRA_LIBS="$ac_env_directfb_NONPKGCONFIG_EXTRA_LIBS_value"
26662
26663
26664
26665   directfb_REQUIRES=directfb
26666
26667 pkg_failed=no
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb" >&5
26669 $as_echo_n "checking for directfb... " >&6; }
26670
26671 if test -n "$directfb_CFLAGS"; then
26672     pkg_cv_directfb_CFLAGS="$directfb_CFLAGS"
26673  elif test -n "$PKG_CONFIG"; then
26674     if test -n "$PKG_CONFIG" && \
26675     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
26676   ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
26677   ac_status=$?
26678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679   test $ac_status = 0; }; then
26680   pkg_cv_directfb_CFLAGS=`$PKG_CONFIG --cflags "$directfb_REQUIRES" 2>/dev/null`
26681 else
26682   pkg_failed=yes
26683 fi
26684  else
26685     pkg_failed=untried
26686 fi
26687 if test -n "$directfb_LIBS"; then
26688     pkg_cv_directfb_LIBS="$directfb_LIBS"
26689  elif test -n "$PKG_CONFIG"; then
26690     if test -n "$PKG_CONFIG" && \
26691     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$directfb_REQUIRES\""; } >&5
26692   ($PKG_CONFIG --exists --print-errors "$directfb_REQUIRES") 2>&5
26693   ac_status=$?
26694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695   test $ac_status = 0; }; then
26696   pkg_cv_directfb_LIBS=`$PKG_CONFIG --libs "$directfb_REQUIRES" 2>/dev/null`
26697 else
26698   pkg_failed=yes
26699 fi
26700  else
26701     pkg_failed=untried
26702 fi
26703
26704
26705
26706 if test $pkg_failed = yes; then
26707
26708 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26709         _pkg_short_errors_supported=yes
26710 else
26711         _pkg_short_errors_supported=no
26712 fi
26713         if test $_pkg_short_errors_supported = yes; then
26714                 directfb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$directfb_REQUIRES" 2>&1`
26715         else
26716                 directfb_PKG_ERRORS=`$PKG_CONFIG --print-errors "$directfb_REQUIRES" 2>&1`
26717         fi
26718         # Put the nasty error message in config.log where it belongs
26719         echo "$directfb_PKG_ERRORS" >&5
26720
26721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26722 $as_echo "no" >&6; }
26723                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26724 $as_echo "no" >&6; }
26725                     use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
26726 elif test $pkg_failed = untried; then
26727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26728 $as_echo "no" >&6; }
26729                     use_directfb="no (requires $directfb_REQUIRES http://www.directfb.org)"
26730 else
26731         directfb_CFLAGS=$pkg_cv_directfb_CFLAGS
26732         directfb_LIBS=$pkg_cv_directfb_LIBS
26733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26734 $as_echo "yes" >&6; }
26735         :
26736 fi
26737
26738
26739                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's directfb surface backend feature could be enabled" >&5
26740 $as_echo_n "checking whether cairo's directfb surface backend feature could be enabled... " >&6; }
26741                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_directfb" >&5
26742 $as_echo "$use_directfb" >&6; }
26743
26744                 if test "x$enable_directfb" = "xyes" -a "x$use_directfb" != xyes; then :
26745                         as_fn_error $? " directfb surface backend feature could not be enabled" "$LINENO" 5
26746
26747 fi       ;; #(
26748   *) :
26749                         as_fn_error $? "invalid argument passed to --enable-directfb: \`$use_directfb', should be one of [no/auto/yes]" "$LINENO" 5
26750          ;;
26751 esac
26752         if test "x$use_directfb" = "xyes"; then :
26753                                                                                 CAIRO_REQUIRES="$directfb_REQUIRES"" ${CAIRO_REQUIRES}"
26754
26755                                                                         CAIRO_CFLAGS="$directfb_CFLAGS"" ${CAIRO_CFLAGS}"
26756
26757                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$directfb_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
26758
26759                                                                         CAIRO_LIBS="$directfb_LIBS"" ${CAIRO_LIBS}"
26760
26761                                                                         CAIRO_NONPKGCONFIG_LIBS="$directfb_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
26762
26763
26764 else
26765                                         unset directfb_BASE
26766 unset directfb_REQUIRES
26767 unset directfb_CFLAGS
26768 unset directfb_NONPKGCONFIG_CFLAGS
26769 unset directfb_LIBS
26770 unset directfb_NONPKGCONFIG_LIBS
26771 unset directfb_NONPKGCONFIG_EXTRA_LIBS
26772
26773
26774 fi
26775
26776                                                          if test "x$use_directfb" = xyes; then
26777   CAIRO_HAS_DIRECTFB_SURFACE_TRUE=
26778   CAIRO_HAS_DIRECTFB_SURFACE_FALSE='#'
26779 else
26780   CAIRO_HAS_DIRECTFB_SURFACE_TRUE='#'
26781   CAIRO_HAS_DIRECTFB_SURFACE_FALSE=
26782 fi
26783
26784
26785                                                                                 cr_make_tmp='CAIRO_HAS_DIRECTFB_SURFACE=0'
26786                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
26787 ""$cr_make_tmp"
26788
26789
26790                                                                                 cr_make_tmp=''
26791                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26792 ""$cr_make_tmp"
26793
26794                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26795 ""$cr_make_tmp"
26796                                                                                 cr_make_tmp=''
26797                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26798 ""$cr_make_tmp"
26799
26800                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26801 ""$cr_make_tmp"
26802
26803
26804
26805                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_directfb_headers)'
26806                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26807 ""$cr_make_tmp"
26808
26809                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26810 ""$cr_make_tmp"
26811                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)'
26812                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26813 ""$cr_make_tmp"
26814
26815                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26816 ""$cr_make_tmp"
26817
26818
26819                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_directfb_headers)
26820 all_cairo_private += $(cairo_directfb_private)
26821 all_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
26822 all_cairo_sources += $(cairo_directfb_sources)'
26823                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26824 ""$cr_make_tmp"
26825
26826                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26827 ""$cr_make_tmp"
26828                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
26829 all_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
26830 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
26831 all_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
26832                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26833 ""$cr_make_tmp"
26834
26835                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26836 ""$cr_make_tmp"
26837
26838
26839                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_directfb_headers)
26840 enabled_cairo_private += $(cairo_directfb_private)
26841 enabled_cairo_cxx_sources += $(cairo_directfb_cxx_sources)
26842 enabled_cairo_sources += $(cairo_directfb_sources)'
26843                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26844 "'if CAIRO_HAS_DIRECTFB_SURFACE'
26845                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26846 ""$cr_make_tmp"
26847                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26848 "'endif'
26849
26850                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26851 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
26852                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26853 ""$cr_make_tmp"
26854                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26855 "'endif'
26856                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_directfb_headers)
26857 enabled_cairo_boilerplate_private += $(cairo_boilerplate_directfb_private)
26858 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_directfb_cxx_sources)
26859 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_directfb_sources)'
26860                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26861 "'if CAIRO_HAS_DIRECTFB_SURFACE'
26862                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26863 ""$cr_make_tmp"
26864                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
26865 "'endif'
26866
26867                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26868 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
26869                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26870 ""$cr_make_tmp"
26871                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
26872 "'endif'
26873
26874
26875
26876
26877                                         if test "x$use_directfb" = xyes; then :
26878   :
26879                 ac_config_files="$ac_config_files src/cairo-directfb.pc:src/cairo-features.pc.in"
26880
26881
26882 fi
26883                                         if test "x$use_directfb" = xyes; then :
26884   :
26885                 ac_config_files="$ac_config_files cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
26886
26887
26888 fi
26889                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-directfb.pc'
26890                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26891 ""$cr_make_tmp"
26892
26893                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26894 ""$cr_make_tmp"
26895
26896
26897                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-directfb.pc'
26898                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26899 "'if CAIRO_HAS_DIRECTFB_SURFACE'
26900                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26901 ""$cr_make_tmp"
26902                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
26903 "'endif'
26904
26905                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26906 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
26907                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26908 ""$cr_make_tmp"
26909                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
26910 "'endif'
26911
26912
26913                                         if test "x$use_directfb" = xyes; then :
26914   :
26915                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_DIRECTFB_SURFACE'
26916
26917
26918 fi
26919
26920
26921
26922                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_DIRECTFB_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
26923                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26924 "'ifeq ($(CAIRO_HAS_DIRECTFB_SURFACE),1)'
26925                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26926 ""$cr_make_tmp"
26927                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
26928 "'endif'
26929
26930
26931                                         if test "x$use_directfb" = xyes; then :
26932   :
26933                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
26934
26935 "'--- The directfb surface backend feature is still under active development
26936 --- and is included in this release only as a preview. It does NOT fully work
26937 --- yet and incompatible changes may yet be made to directfb surface backend
26938 --- specific API.'
26939
26940
26941
26942 fi
26943
26944
26945
26946
26947
26948
26949                                                                                                                                 # Check whether --enable-vg was given.
26950 if test "${enable_vg+set}" = set; then :
26951   enableval=$enable_vg; enable_vg=$enableval
26952 else
26953   enable_vg=no
26954 fi
26955
26956                         case $enable_vg in #(
26957   no) :
26958                 use_vg="no (disabled, use --enable-vg to enable)"
26959          ;; #(
26960         yes|auto) :
26961                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's OpenVG surface backend feature" >&5
26962 $as_echo_n "checking for cairo's OpenVG surface backend feature... " >&6; }
26963                 echo
26964
26965                 use_vg=yes
26966                         vg_BASE="cairo"
26967 vg_REQUIRES="$ac_env_vg_REQUIRES_value"
26968 vg_CFLAGS="$ac_env_vg_CFLAGS_value"
26969 vg_NONPKGCONFIG_CFLAGS="$ac_env_vg_NONPKGCONFIG_CFLAGS_value"
26970 vg_LIBS="$ac_env_vg_LIBS_value"
26971 vg_NONPKGCONFIG_LIBS="$ac_env_vg_NONPKGCONFIG_LIBS_value"
26972 vg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_vg_NONPKGCONFIG_EXTRA_LIBS_value"
26973
26974
26975
26976     ac_fn_c_check_header_mongrel "$LINENO" "VG/openvg.h" "ac_cv_header_VG_openvg_h" "$ac_includes_default"
26977 if test "x$ac_cv_header_VG_openvg_h" = x""yes; then :
26978
26979 else
26980   use_vg="no (OpenVG headers not found)"
26981 fi
26982
26983
26984   if test "x$use_vg" = "xyes"; then
26985       vg_NONPKGCONFIG_CFLAGS=
26986       vg_NONPKGCONFIG_LIBS="-lOpenVG"
26987       need_egl_functions=yes
26988       need_glx_functions=yes
26989   fi
26990
26991
26992                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's OpenVG surface backend feature could be enabled" >&5
26993 $as_echo_n "checking whether cairo's OpenVG surface backend feature could be enabled... " >&6; }
26994                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_vg" >&5
26995 $as_echo "$use_vg" >&6; }
26996
26997                 if test "x$enable_vg" = "xyes" -a "x$use_vg" != xyes; then :
26998                         as_fn_error $? " OpenVG surface backend feature could not be enabled" "$LINENO" 5
26999
27000 fi       ;; #(
27001   *) :
27002                         as_fn_error $? "invalid argument passed to --enable-vg: \`$use_vg', should be one of [no/auto/yes]" "$LINENO" 5
27003          ;;
27004 esac
27005         if test "x$use_vg" = "xyes"; then :
27006                                                                                 CAIRO_REQUIRES="$vg_REQUIRES"" ${CAIRO_REQUIRES}"
27007
27008                                                                         CAIRO_CFLAGS="$vg_CFLAGS"" ${CAIRO_CFLAGS}"
27009
27010                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$vg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27011
27012                                                                         CAIRO_LIBS="$vg_LIBS"" ${CAIRO_LIBS}"
27013
27014                                                                         CAIRO_NONPKGCONFIG_LIBS="$vg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27015
27016
27017 else
27018                                         unset vg_BASE
27019 unset vg_REQUIRES
27020 unset vg_CFLAGS
27021 unset vg_NONPKGCONFIG_CFLAGS
27022 unset vg_LIBS
27023 unset vg_NONPKGCONFIG_LIBS
27024 unset vg_NONPKGCONFIG_EXTRA_LIBS
27025
27026
27027 fi
27028
27029                                                          if test "x$use_vg" = xyes; then
27030   CAIRO_HAS_VG_SURFACE_TRUE=
27031   CAIRO_HAS_VG_SURFACE_FALSE='#'
27032 else
27033   CAIRO_HAS_VG_SURFACE_TRUE='#'
27034   CAIRO_HAS_VG_SURFACE_FALSE=
27035 fi
27036
27037
27038                                                                                 cr_make_tmp='CAIRO_HAS_VG_SURFACE=0'
27039                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27040 ""$cr_make_tmp"
27041
27042
27043                                                                                 cr_make_tmp=''
27044                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27045 ""$cr_make_tmp"
27046
27047                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27048 ""$cr_make_tmp"
27049                                                                                 cr_make_tmp=''
27050                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27051 ""$cr_make_tmp"
27052
27053                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27054 ""$cr_make_tmp"
27055
27056
27057
27058                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_vg_headers)'
27059                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27060 ""$cr_make_tmp"
27061
27062                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27063 ""$cr_make_tmp"
27064                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)'
27065                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27066 ""$cr_make_tmp"
27067
27068                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27069 ""$cr_make_tmp"
27070
27071
27072                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_vg_headers)
27073 all_cairo_private += $(cairo_vg_private)
27074 all_cairo_cxx_sources += $(cairo_vg_cxx_sources)
27075 all_cairo_sources += $(cairo_vg_sources)'
27076                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27077 ""$cr_make_tmp"
27078
27079                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27080 ""$cr_make_tmp"
27081                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
27082 all_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
27083 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
27084 all_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
27085                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27086 ""$cr_make_tmp"
27087
27088                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27089 ""$cr_make_tmp"
27090
27091
27092                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_vg_headers)
27093 enabled_cairo_private += $(cairo_vg_private)
27094 enabled_cairo_cxx_sources += $(cairo_vg_cxx_sources)
27095 enabled_cairo_sources += $(cairo_vg_sources)'
27096                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27097 "'if CAIRO_HAS_VG_SURFACE'
27098                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27099 ""$cr_make_tmp"
27100                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27101 "'endif'
27102
27103                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27104 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
27105                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27106 ""$cr_make_tmp"
27107                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27108 "'endif'
27109                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_vg_headers)
27110 enabled_cairo_boilerplate_private += $(cairo_boilerplate_vg_private)
27111 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_vg_cxx_sources)
27112 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_vg_sources)'
27113                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27114 "'if CAIRO_HAS_VG_SURFACE'
27115                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27116 ""$cr_make_tmp"
27117                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27118 "'endif'
27119
27120                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27121 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
27122                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27123 ""$cr_make_tmp"
27124                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27125 "'endif'
27126
27127
27128
27129
27130                                         if test "x$use_vg" = xyes; then :
27131   :
27132                 ac_config_files="$ac_config_files src/cairo-vg.pc:src/cairo-features.pc.in"
27133
27134
27135 fi
27136                                         if test "x$use_vg" = xyes; then :
27137   :
27138                 ac_config_files="$ac_config_files cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27139
27140
27141 fi
27142                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-vg.pc'
27143                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27144 ""$cr_make_tmp"
27145
27146                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27147 ""$cr_make_tmp"
27148
27149
27150                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-vg.pc'
27151                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27152 "'if CAIRO_HAS_VG_SURFACE'
27153                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27154 ""$cr_make_tmp"
27155                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27156 "'endif'
27157
27158                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27159 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
27160                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27161 ""$cr_make_tmp"
27162                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27163 "'endif'
27164
27165
27166                                         if test "x$use_vg" = xyes; then :
27167   :
27168                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_VG_SURFACE'
27169
27170
27171 fi
27172
27173
27174
27175                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_VG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
27176                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27177 "'ifeq ($(CAIRO_HAS_VG_SURFACE),1)'
27178                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27179 ""$cr_make_tmp"
27180                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27181 "'endif'
27182
27183
27184                                         if test "x$use_vg" = xyes; then :
27185   :
27186                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
27187
27188 "'--- The OpenVG surface backend feature is still under active development and
27189 --- is included in this release only as a preview. It does NOT fully work yet
27190 --- and incompatible changes may yet be made to OpenVG surface backend
27191 --- specific API.'
27192
27193
27194
27195 fi
27196
27197
27198
27199
27200
27201                                                                                                                                 # Check whether --enable-egl was given.
27202 if test "${enable_egl+set}" = set; then :
27203   enableval=$enable_egl; enable_egl=$enableval
27204 else
27205   enable_egl=auto
27206 fi
27207
27208                         case $enable_egl in #(
27209   no) :
27210                 use_egl="no (disabled, use --enable-egl to enable)"
27211          ;; #(
27212         yes|auto) :
27213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's EGL functions feature" >&5
27214 $as_echo_n "checking for cairo's EGL functions feature... " >&6; }
27215                 echo
27216
27217                 use_egl=yes
27218                         egl_BASE="cairo"
27219 egl_REQUIRES="$ac_env_egl_REQUIRES_value"
27220 egl_CFLAGS="$ac_env_egl_CFLAGS_value"
27221 egl_NONPKGCONFIG_CFLAGS="$ac_env_egl_NONPKGCONFIG_CFLAGS_value"
27222 egl_LIBS="$ac_env_egl_LIBS_value"
27223 egl_NONPKGCONFIG_LIBS="$ac_env_egl_NONPKGCONFIG_LIBS_value"
27224 egl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_egl_NONPKGCONFIG_EXTRA_LIBS_value"
27225
27226
27227
27228   if test "x$need_egl_functions" = "xyes"; then
27229       egl_REQUIRES="egl"
27230
27231 pkg_failed=no
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egl" >&5
27233 $as_echo_n "checking for egl... " >&6; }
27234
27235 if test -n "$egl_CFLAGS"; then
27236     pkg_cv_egl_CFLAGS="$egl_CFLAGS"
27237  elif test -n "$PKG_CONFIG"; then
27238     if test -n "$PKG_CONFIG" && \
27239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
27240   ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
27241   ac_status=$?
27242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27243   test $ac_status = 0; }; then
27244   pkg_cv_egl_CFLAGS=`$PKG_CONFIG --cflags "$egl_REQUIRES" 2>/dev/null`
27245 else
27246   pkg_failed=yes
27247 fi
27248  else
27249     pkg_failed=untried
27250 fi
27251 if test -n "$egl_LIBS"; then
27252     pkg_cv_egl_LIBS="$egl_LIBS"
27253  elif test -n "$PKG_CONFIG"; then
27254     if test -n "$PKG_CONFIG" && \
27255     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$egl_REQUIRES\""; } >&5
27256   ($PKG_CONFIG --exists --print-errors "$egl_REQUIRES") 2>&5
27257   ac_status=$?
27258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259   test $ac_status = 0; }; then
27260   pkg_cv_egl_LIBS=`$PKG_CONFIG --libs "$egl_REQUIRES" 2>/dev/null`
27261 else
27262   pkg_failed=yes
27263 fi
27264  else
27265     pkg_failed=untried
27266 fi
27267
27268
27269
27270 if test $pkg_failed = yes; then
27271
27272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27273         _pkg_short_errors_supported=yes
27274 else
27275         _pkg_short_errors_supported=no
27276 fi
27277         if test $_pkg_short_errors_supported = yes; then
27278                 egl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$egl_REQUIRES" 2>&1`
27279         else
27280                 egl_PKG_ERRORS=`$PKG_CONFIG --print-errors "$egl_REQUIRES" 2>&1`
27281         fi
27282         # Put the nasty error message in config.log where it belongs
27283         echo "$egl_PKG_ERRORS" >&5
27284
27285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27286 $as_echo "no" >&6; }
27287                 egl_REQUIRES=""
27288                      ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
27289 if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
27290
27291 else
27292   use_egl="no (EGL headers not found)"
27293 fi
27294
27295
27296                      if test "x$use_egl" = "xyes"; then
27297                          egl_NONPKGCONFIG_CFLAGS=
27298                          egl_NONPKGCONFIG_LIBS=
27299                          save_LIBS="$LIBS"
27300                          other_egl_LIBS=""
27301                          # Temporary workaround for missing link from egl13
27302                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
27303 $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
27304 if test "${ac_cv_lib_csi_csi_stream_attachresource+set}" = set; then :
27305   $as_echo_n "(cached) " >&6
27306 else
27307   ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-lcsi  $LIBS"
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h.  */
27311
27312 /* Override any GCC internal prototype to avoid an error.
27313    Use char because int might match the return type of a GCC
27314    builtin and then its argument prototype would still apply.  */
27315 #ifdef __cplusplus
27316 extern "C"
27317 #endif
27318 char csi_stream_attachresource ();
27319 int
27320 main ()
27321 {
27322 return csi_stream_attachresource ();
27323   ;
27324   return 0;
27325 }
27326 _ACEOF
27327 if ac_fn_c_try_link "$LINENO"; then :
27328   ac_cv_lib_csi_csi_stream_attachresource=yes
27329 else
27330   ac_cv_lib_csi_csi_stream_attachresource=no
27331 fi
27332 rm -f core conftest.err conftest.$ac_objext \
27333     conftest$ac_exeext conftest.$ac_ext
27334 LIBS=$ac_check_lib_save_LIBS
27335 fi
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
27337 $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
27338 if test "x$ac_cv_lib_csi_csi_stream_attachresource" = x""yes; then :
27339   other_egl_LIBS="-lcsi"
27340 fi
27341
27342                          LIBS="$other_egl_LIBS $LIBS"
27343                          for egl_lib in EGL egl13 egl12 egl11; do
27344                              if test -z "$egl_NONPKGCONFIG_LIBS"; then
27345                                  as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
27347 $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
27348 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
27349   $as_echo_n "(cached) " >&6
27350 else
27351   ac_check_lib_save_LIBS=$LIBS
27352 LIBS="-l$egl_lib  $LIBS"
27353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27354 /* end confdefs.h.  */
27355
27356 /* Override any GCC internal prototype to avoid an error.
27357    Use char because int might match the return type of a GCC
27358    builtin and then its argument prototype would still apply.  */
27359 #ifdef __cplusplus
27360 extern "C"
27361 #endif
27362 char eglGetError ();
27363 int
27364 main ()
27365 {
27366 return eglGetError ();
27367   ;
27368   return 0;
27369 }
27370 _ACEOF
27371 if ac_fn_c_try_link "$LINENO"; then :
27372   eval "$as_ac_Lib=yes"
27373 else
27374   eval "$as_ac_Lib=no"
27375 fi
27376 rm -f core conftest.err conftest.$ac_objext \
27377     conftest$ac_exeext conftest.$ac_ext
27378 LIBS=$ac_check_lib_save_LIBS
27379 fi
27380 eval ac_res=\$$as_ac_Lib
27381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27382 $as_echo "$ac_res" >&6; }
27383 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
27384   egl_NONPKGCONFIG_LIBS="-l$egl_lib"
27385 fi
27386
27387                              fi
27388                          done
27389                          if test -z "$egl_NONPKGCONFIG_LIBS"; then
27390                              use_egl="no (EGL library not found)"
27391                          else
27392                              egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
27393                          fi
27394                          LIBS="$save_LIBS"
27395                      fi
27396
27397 elif test $pkg_failed = untried; then
27398         egl_REQUIRES=""
27399                      ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
27400 if test "x$ac_cv_header_EGL_egl_h" = x""yes; then :
27401
27402 else
27403   use_egl="no (EGL headers not found)"
27404 fi
27405
27406
27407                      if test "x$use_egl" = "xyes"; then
27408                          egl_NONPKGCONFIG_CFLAGS=
27409                          egl_NONPKGCONFIG_LIBS=
27410                          save_LIBS="$LIBS"
27411                          other_egl_LIBS=""
27412                          # Temporary workaround for missing link from egl13
27413                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csi_stream_attachresource in -lcsi" >&5
27414 $as_echo_n "checking for csi_stream_attachresource in -lcsi... " >&6; }
27415 if test "${ac_cv_lib_csi_csi_stream_attachresource+set}" = set; then :
27416   $as_echo_n "(cached) " >&6
27417 else
27418   ac_check_lib_save_LIBS=$LIBS
27419 LIBS="-lcsi  $LIBS"
27420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27421 /* end confdefs.h.  */
27422
27423 /* Override any GCC internal prototype to avoid an error.
27424    Use char because int might match the return type of a GCC
27425    builtin and then its argument prototype would still apply.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 #endif
27429 char csi_stream_attachresource ();
27430 int
27431 main ()
27432 {
27433 return csi_stream_attachresource ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 if ac_fn_c_try_link "$LINENO"; then :
27439   ac_cv_lib_csi_csi_stream_attachresource=yes
27440 else
27441   ac_cv_lib_csi_csi_stream_attachresource=no
27442 fi
27443 rm -f core conftest.err conftest.$ac_objext \
27444     conftest$ac_exeext conftest.$ac_ext
27445 LIBS=$ac_check_lib_save_LIBS
27446 fi
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csi_csi_stream_attachresource" >&5
27448 $as_echo "$ac_cv_lib_csi_csi_stream_attachresource" >&6; }
27449 if test "x$ac_cv_lib_csi_csi_stream_attachresource" = x""yes; then :
27450   other_egl_LIBS="-lcsi"
27451 fi
27452
27453                          LIBS="$other_egl_LIBS $LIBS"
27454                          for egl_lib in EGL egl13 egl12 egl11; do
27455                              if test -z "$egl_NONPKGCONFIG_LIBS"; then
27456                                  as_ac_Lib=`$as_echo "ac_cv_lib_$egl_lib''_eglGetError" | $as_tr_sh`
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -l$egl_lib" >&5
27458 $as_echo_n "checking for eglGetError in -l$egl_lib... " >&6; }
27459 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
27460   $as_echo_n "(cached) " >&6
27461 else
27462   ac_check_lib_save_LIBS=$LIBS
27463 LIBS="-l$egl_lib  $LIBS"
27464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h.  */
27466
27467 /* Override any GCC internal prototype to avoid an error.
27468    Use char because int might match the return type of a GCC
27469    builtin and then its argument prototype would still apply.  */
27470 #ifdef __cplusplus
27471 extern "C"
27472 #endif
27473 char eglGetError ();
27474 int
27475 main ()
27476 {
27477 return eglGetError ();
27478   ;
27479   return 0;
27480 }
27481 _ACEOF
27482 if ac_fn_c_try_link "$LINENO"; then :
27483   eval "$as_ac_Lib=yes"
27484 else
27485   eval "$as_ac_Lib=no"
27486 fi
27487 rm -f core conftest.err conftest.$ac_objext \
27488     conftest$ac_exeext conftest.$ac_ext
27489 LIBS=$ac_check_lib_save_LIBS
27490 fi
27491 eval ac_res=\$$as_ac_Lib
27492                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27493 $as_echo "$ac_res" >&6; }
27494 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
27495   egl_NONPKGCONFIG_LIBS="-l$egl_lib"
27496 fi
27497
27498                              fi
27499                          done
27500                          if test -z "$egl_NONPKGCONFIG_LIBS"; then
27501                              use_egl="no (EGL library not found)"
27502                          else
27503                              egl_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS $other_egl_LIBS"
27504                          fi
27505                          LIBS="$save_LIBS"
27506                      fi
27507
27508 else
27509         egl_CFLAGS=$pkg_cv_egl_CFLAGS
27510         egl_LIBS=$pkg_cv_egl_LIBS
27511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27512 $as_echo "yes" >&6; }
27513         :
27514 fi
27515   else
27516       use_egl="no (not required by any backend)"
27517   fi
27518
27519
27520                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's EGL functions feature could be enabled" >&5
27521 $as_echo_n "checking whether cairo's EGL functions feature could be enabled... " >&6; }
27522                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_egl" >&5
27523 $as_echo "$use_egl" >&6; }
27524
27525                 if test "x$enable_egl" = "xyes" -a "x$use_egl" != xyes; then :
27526                         as_fn_error $? " EGL functions feature could not be enabled" "$LINENO" 5
27527
27528 fi       ;; #(
27529   *) :
27530                         as_fn_error $? "invalid argument passed to --enable-egl: \`$use_egl', should be one of [no/auto/yes]" "$LINENO" 5
27531          ;;
27532 esac
27533         if test "x$use_egl" = "xyes"; then :
27534                                                                                 CAIRO_REQUIRES="$egl_REQUIRES"" ${CAIRO_REQUIRES}"
27535
27536                                                                         CAIRO_CFLAGS="$egl_CFLAGS"" ${CAIRO_CFLAGS}"
27537
27538                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$egl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27539
27540                                                                         CAIRO_LIBS="$egl_LIBS"" ${CAIRO_LIBS}"
27541
27542                                                                         CAIRO_NONPKGCONFIG_LIBS="$egl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27543
27544
27545 else
27546                                         unset egl_BASE
27547 unset egl_REQUIRES
27548 unset egl_CFLAGS
27549 unset egl_NONPKGCONFIG_CFLAGS
27550 unset egl_LIBS
27551 unset egl_NONPKGCONFIG_LIBS
27552 unset egl_NONPKGCONFIG_EXTRA_LIBS
27553
27554
27555 fi
27556
27557                                                          if test "x$use_egl" = xyes; then
27558   CAIRO_HAS_EGL_FUNCTIONS_TRUE=
27559   CAIRO_HAS_EGL_FUNCTIONS_FALSE='#'
27560 else
27561   CAIRO_HAS_EGL_FUNCTIONS_TRUE='#'
27562   CAIRO_HAS_EGL_FUNCTIONS_FALSE=
27563 fi
27564
27565
27566                                                                                 cr_make_tmp='CAIRO_HAS_EGL_FUNCTIONS=0'
27567                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27568 ""$cr_make_tmp"
27569
27570
27571                                                                                 cr_make_tmp=''
27572                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27573 ""$cr_make_tmp"
27574
27575                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27576 ""$cr_make_tmp"
27577                                                                                 cr_make_tmp=''
27578                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27579 ""$cr_make_tmp"
27580
27581                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27582 ""$cr_make_tmp"
27583
27584
27585                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_egl_headers)'
27586                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27587 ""$cr_make_tmp"
27588
27589                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27590 ""$cr_make_tmp"
27591                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)'
27592                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27593 ""$cr_make_tmp"
27594
27595                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27596 ""$cr_make_tmp"
27597
27598
27599
27600                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_egl_headers)
27601 all_cairo_private += $(cairo_egl_private)
27602 all_cairo_cxx_sources += $(cairo_egl_cxx_sources)
27603 all_cairo_sources += $(cairo_egl_sources)'
27604                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27605 ""$cr_make_tmp"
27606
27607                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27608 ""$cr_make_tmp"
27609                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
27610 all_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
27611 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
27612 all_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
27613                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27614 ""$cr_make_tmp"
27615
27616                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27617 ""$cr_make_tmp"
27618
27619
27620                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_egl_headers)
27621 enabled_cairo_private += $(cairo_egl_private)
27622 enabled_cairo_cxx_sources += $(cairo_egl_cxx_sources)
27623 enabled_cairo_sources += $(cairo_egl_sources)'
27624                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27625 "'if CAIRO_HAS_EGL_FUNCTIONS'
27626                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27627 ""$cr_make_tmp"
27628                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27629 "'endif'
27630
27631                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27632 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
27633                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27634 ""$cr_make_tmp"
27635                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27636 "'endif'
27637                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_egl_headers)
27638 enabled_cairo_boilerplate_private += $(cairo_boilerplate_egl_private)
27639 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_egl_cxx_sources)
27640 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_egl_sources)'
27641                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27642 "'if CAIRO_HAS_EGL_FUNCTIONS'
27643                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27644 ""$cr_make_tmp"
27645                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27646 "'endif'
27647
27648                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27649 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
27650                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27651 ""$cr_make_tmp"
27652                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27653 "'endif'
27654
27655
27656
27657
27658                                         if test "x$use_egl" = xyes; then :
27659   :
27660                 ac_config_files="$ac_config_files src/cairo-egl.pc:src/cairo-features.pc.in"
27661
27662
27663 fi
27664                                         if test "x$use_egl" = xyes; then :
27665   :
27666                 ac_config_files="$ac_config_files cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27667
27668
27669 fi
27670                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-egl.pc'
27671                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27672 ""$cr_make_tmp"
27673
27674                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27675 ""$cr_make_tmp"
27676
27677
27678                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-egl.pc'
27679                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27680 "'if CAIRO_HAS_EGL_FUNCTIONS'
27681                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27682 ""$cr_make_tmp"
27683                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27684 "'endif'
27685
27686                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27687 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
27688                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27689 ""$cr_make_tmp"
27690                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27691 "'endif'
27692
27693
27694                                         if test "x$use_egl" = xyes; then :
27695   :
27696                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
27697
27698
27699 fi
27700                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
27701
27702
27703
27704                                         if test "x$use_egl" != xyes; then :
27705   :
27706                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_EGL_FUNCTIONS'
27707
27708
27709
27710 fi
27711
27712                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_EGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
27713                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27714 "'ifeq ($(CAIRO_HAS_EGL_FUNCTIONS),1)'
27715                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27716 ""$cr_make_tmp"
27717                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27718 "'endif'
27719
27720
27721
27722
27723
27724
27725
27726
27727                                                                                                                                 # Check whether --enable-glx was given.
27728 if test "${enable_glx+set}" = set; then :
27729   enableval=$enable_glx; enable_glx=$enableval
27730 else
27731   enable_glx=auto
27732 fi
27733
27734                         case $enable_glx in #(
27735   no) :
27736                 use_glx="no (disabled, use --enable-glx to enable)"
27737          ;; #(
27738         yes|auto) :
27739                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's GLX functions feature" >&5
27740 $as_echo_n "checking for cairo's GLX functions feature... " >&6; }
27741                 echo
27742
27743                 use_glx=yes
27744                         glx_BASE="cairo"
27745 glx_REQUIRES="$ac_env_glx_REQUIRES_value"
27746 glx_CFLAGS="$ac_env_glx_CFLAGS_value"
27747 glx_NONPKGCONFIG_CFLAGS="$ac_env_glx_NONPKGCONFIG_CFLAGS_value"
27748 glx_LIBS="$ac_env_glx_LIBS_value"
27749 glx_NONPKGCONFIG_LIBS="$ac_env_glx_NONPKGCONFIG_LIBS_value"
27750 glx_NONPKGCONFIG_EXTRA_LIBS="$ac_env_glx_NONPKGCONFIG_EXTRA_LIBS_value"
27751
27752
27753
27754   if test "x$need_glx_functions" = "xyes"; then
27755     save_CFLAGS="$CFLAGS"
27756     CFLAGS="$CFLAGS $gl_CFLAGS $gl_NONPKGCONFIG_CFLAGS"
27757     ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
27758 if test "x$ac_cv_header_GL_glx_h" = x""yes; then :
27759
27760 else
27761   use_glx="no (GLX headers not found)"
27762 fi
27763
27764
27765     glx_NONPKGCONFIG_CFLAGS=
27766     glx_NONPKGCONFIG_LIBS="-lGL"
27767     CFLAGS="$save_CFLAGS"
27768   else
27769       use_glx="no (not required by any backend)"
27770   fi
27771
27772
27773                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's GLX functions feature could be enabled" >&5
27774 $as_echo_n "checking whether cairo's GLX functions feature could be enabled... " >&6; }
27775                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_glx" >&5
27776 $as_echo "$use_glx" >&6; }
27777
27778                 if test "x$enable_glx" = "xyes" -a "x$use_glx" != xyes; then :
27779                         as_fn_error $? " GLX functions feature could not be enabled" "$LINENO" 5
27780
27781 fi       ;; #(
27782   *) :
27783                         as_fn_error $? "invalid argument passed to --enable-glx: \`$use_glx', should be one of [no/auto/yes]" "$LINENO" 5
27784          ;;
27785 esac
27786         if test "x$use_glx" = "xyes"; then :
27787                                                                                 CAIRO_REQUIRES="$glx_REQUIRES"" ${CAIRO_REQUIRES}"
27788
27789                                                                         CAIRO_CFLAGS="$glx_CFLAGS"" ${CAIRO_CFLAGS}"
27790
27791                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$glx_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
27792
27793                                                                         CAIRO_LIBS="$glx_LIBS"" ${CAIRO_LIBS}"
27794
27795                                                                         CAIRO_NONPKGCONFIG_LIBS="$glx_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
27796
27797
27798 else
27799                                         unset glx_BASE
27800 unset glx_REQUIRES
27801 unset glx_CFLAGS
27802 unset glx_NONPKGCONFIG_CFLAGS
27803 unset glx_LIBS
27804 unset glx_NONPKGCONFIG_LIBS
27805 unset glx_NONPKGCONFIG_EXTRA_LIBS
27806
27807
27808 fi
27809
27810                                                          if test "x$use_glx" = xyes; then
27811   CAIRO_HAS_GLX_FUNCTIONS_TRUE=
27812   CAIRO_HAS_GLX_FUNCTIONS_FALSE='#'
27813 else
27814   CAIRO_HAS_GLX_FUNCTIONS_TRUE='#'
27815   CAIRO_HAS_GLX_FUNCTIONS_FALSE=
27816 fi
27817
27818
27819                                                                                 cr_make_tmp='CAIRO_HAS_GLX_FUNCTIONS=0'
27820                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
27821 ""$cr_make_tmp"
27822
27823
27824                                                                                 cr_make_tmp=''
27825                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27826 ""$cr_make_tmp"
27827
27828                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27829 ""$cr_make_tmp"
27830                                                                                 cr_make_tmp=''
27831                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27832 ""$cr_make_tmp"
27833
27834                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27835 ""$cr_make_tmp"
27836
27837
27838                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_glx_headers)'
27839                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27840 ""$cr_make_tmp"
27841
27842                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27843 ""$cr_make_tmp"
27844                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)'
27845                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27846 ""$cr_make_tmp"
27847
27848                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27849 ""$cr_make_tmp"
27850
27851
27852
27853                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_glx_headers)
27854 all_cairo_private += $(cairo_glx_private)
27855 all_cairo_cxx_sources += $(cairo_glx_cxx_sources)
27856 all_cairo_sources += $(cairo_glx_sources)'
27857                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27858 ""$cr_make_tmp"
27859
27860                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27861 ""$cr_make_tmp"
27862                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
27863 all_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
27864 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
27865 all_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
27866                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27867 ""$cr_make_tmp"
27868
27869                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27870 ""$cr_make_tmp"
27871
27872
27873                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_glx_headers)
27874 enabled_cairo_private += $(cairo_glx_private)
27875 enabled_cairo_cxx_sources += $(cairo_glx_cxx_sources)
27876 enabled_cairo_sources += $(cairo_glx_sources)'
27877                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27878 "'if CAIRO_HAS_GLX_FUNCTIONS'
27879                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27880 ""$cr_make_tmp"
27881                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27882 "'endif'
27883
27884                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27885 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
27886                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27887 ""$cr_make_tmp"
27888                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27889 "'endif'
27890                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glx_headers)
27891 enabled_cairo_boilerplate_private += $(cairo_boilerplate_glx_private)
27892 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_glx_cxx_sources)
27893 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glx_sources)'
27894                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27895 "'if CAIRO_HAS_GLX_FUNCTIONS'
27896                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27897 ""$cr_make_tmp"
27898                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
27899 "'endif'
27900
27901                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27902 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
27903                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27904 ""$cr_make_tmp"
27905                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
27906 "'endif'
27907
27908
27909
27910
27911                                         if test "x$use_glx" = xyes; then :
27912   :
27913                 ac_config_files="$ac_config_files src/cairo-glx.pc:src/cairo-features.pc.in"
27914
27915
27916 fi
27917                                         if test "x$use_glx" = xyes; then :
27918   :
27919                 ac_config_files="$ac_config_files cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
27920
27921
27922 fi
27923                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-glx.pc'
27924                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27925 ""$cr_make_tmp"
27926
27927                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27928 ""$cr_make_tmp"
27929
27930
27931                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-glx.pc'
27932                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27933 "'if CAIRO_HAS_GLX_FUNCTIONS'
27934                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27935 ""$cr_make_tmp"
27936                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
27937 "'endif'
27938
27939                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27940 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
27941                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27942 ""$cr_make_tmp"
27943                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
27944 "'endif'
27945
27946
27947                                         if test "x$use_glx" = xyes; then :
27948   :
27949                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
27950
27951
27952 fi
27953                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
27954
27955
27956
27957                                         if test "x$use_glx" != xyes; then :
27958   :
27959                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GLX_FUNCTIONS'
27960
27961
27962
27963 fi
27964
27965                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GLX_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
27966                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27967 "'ifeq ($(CAIRO_HAS_GLX_FUNCTIONS),1)'
27968                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27969 ""$cr_make_tmp"
27970                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
27971 "'endif'
27972
27973
27974
27975
27976
27977
27978
27979
27980                                                                                                                                 # Check whether --enable-wgl was given.
27981 if test "${enable_wgl+set}" = set; then :
27982   enableval=$enable_wgl; enable_wgl=$enableval
27983 else
27984   enable_wgl=auto
27985 fi
27986
27987                         case $enable_wgl in #(
27988   no) :
27989                 use_wgl="no (disabled, use --enable-wgl to enable)"
27990          ;; #(
27991         yes|auto) :
27992                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's WGL functions feature" >&5
27993 $as_echo_n "checking for cairo's WGL functions feature... " >&6; }
27994                 echo
27995
27996                 use_wgl=yes
27997                         wgl_BASE="cairo"
27998 wgl_REQUIRES="$ac_env_wgl_REQUIRES_value"
27999 wgl_CFLAGS="$ac_env_wgl_CFLAGS_value"
28000 wgl_NONPKGCONFIG_CFLAGS="$ac_env_wgl_NONPKGCONFIG_CFLAGS_value"
28001 wgl_LIBS="$ac_env_wgl_LIBS_value"
28002 wgl_NONPKGCONFIG_LIBS="$ac_env_wgl_NONPKGCONFIG_LIBS_value"
28003 wgl_NONPKGCONFIG_EXTRA_LIBS="$ac_env_wgl_NONPKGCONFIG_EXTRA_LIBS_value"
28004
28005
28006
28007   if test "x$need_wgl_functions" = "xyes"; then
28008     ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
28009 if test "x$ac_cv_header_windows_h" = x""yes; then :
28010
28011 else
28012   use_wgl="no (WGL headers not found)"
28013 fi
28014
28015
28016   else
28017       use_wgl="no (not required by any backend)"
28018   fi
28019
28020
28021                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's WGL functions feature could be enabled" >&5
28022 $as_echo_n "checking whether cairo's WGL functions feature could be enabled... " >&6; }
28023                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_wgl" >&5
28024 $as_echo "$use_wgl" >&6; }
28025
28026                 if test "x$enable_wgl" = "xyes" -a "x$use_wgl" != xyes; then :
28027                         as_fn_error $? " WGL functions feature could not be enabled" "$LINENO" 5
28028
28029 fi       ;; #(
28030   *) :
28031                         as_fn_error $? "invalid argument passed to --enable-wgl: \`$use_wgl', should be one of [no/auto/yes]" "$LINENO" 5
28032          ;;
28033 esac
28034         if test "x$use_wgl" = "xyes"; then :
28035                                                                                 CAIRO_REQUIRES="$wgl_REQUIRES"" ${CAIRO_REQUIRES}"
28036
28037                                                                         CAIRO_CFLAGS="$wgl_CFLAGS"" ${CAIRO_CFLAGS}"
28038
28039                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$wgl_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
28040
28041                                                                         CAIRO_LIBS="$wgl_LIBS"" ${CAIRO_LIBS}"
28042
28043                                                                         CAIRO_NONPKGCONFIG_LIBS="$wgl_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
28044
28045
28046 else
28047                                         unset wgl_BASE
28048 unset wgl_REQUIRES
28049 unset wgl_CFLAGS
28050 unset wgl_NONPKGCONFIG_CFLAGS
28051 unset wgl_LIBS
28052 unset wgl_NONPKGCONFIG_LIBS
28053 unset wgl_NONPKGCONFIG_EXTRA_LIBS
28054
28055
28056 fi
28057
28058                                                          if test "x$use_wgl" = xyes; then
28059   CAIRO_HAS_WGL_FUNCTIONS_TRUE=
28060   CAIRO_HAS_WGL_FUNCTIONS_FALSE='#'
28061 else
28062   CAIRO_HAS_WGL_FUNCTIONS_TRUE='#'
28063   CAIRO_HAS_WGL_FUNCTIONS_FALSE=
28064 fi
28065
28066
28067                                                                                 cr_make_tmp='CAIRO_HAS_WGL_FUNCTIONS=0'
28068                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28069 ""$cr_make_tmp"
28070
28071
28072                                                                                 cr_make_tmp=''
28073                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28074 ""$cr_make_tmp"
28075
28076                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28077 ""$cr_make_tmp"
28078                                                                                 cr_make_tmp=''
28079                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28080 ""$cr_make_tmp"
28081
28082                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28083 ""$cr_make_tmp"
28084
28085
28086                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_wgl_headers)'
28087                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28088 ""$cr_make_tmp"
28089
28090                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28091 ""$cr_make_tmp"
28092                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)'
28093                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28094 ""$cr_make_tmp"
28095
28096                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28097 ""$cr_make_tmp"
28098
28099
28100
28101                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_wgl_headers)
28102 all_cairo_private += $(cairo_wgl_private)
28103 all_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
28104 all_cairo_sources += $(cairo_wgl_sources)'
28105                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28106 ""$cr_make_tmp"
28107
28108                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28109 ""$cr_make_tmp"
28110                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
28111 all_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
28112 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
28113 all_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
28114                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28115 ""$cr_make_tmp"
28116
28117                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28118 ""$cr_make_tmp"
28119
28120
28121                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_wgl_headers)
28122 enabled_cairo_private += $(cairo_wgl_private)
28123 enabled_cairo_cxx_sources += $(cairo_wgl_cxx_sources)
28124 enabled_cairo_sources += $(cairo_wgl_sources)'
28125                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28126 "'if CAIRO_HAS_WGL_FUNCTIONS'
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_WGL_FUNCTIONS),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                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_wgl_headers)
28139 enabled_cairo_boilerplate_private += $(cairo_boilerplate_wgl_private)
28140 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_wgl_cxx_sources)
28141 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_wgl_sources)'
28142                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28143 "'if CAIRO_HAS_WGL_FUNCTIONS'
28144                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28145 ""$cr_make_tmp"
28146                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28147 "'endif'
28148
28149                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28150 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
28151                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28152 ""$cr_make_tmp"
28153                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28154 "'endif'
28155
28156
28157
28158
28159                                         if test "x$use_wgl" = xyes; then :
28160   :
28161                 ac_config_files="$ac_config_files src/cairo-wgl.pc:src/cairo-features.pc.in"
28162
28163
28164 fi
28165                                         if test "x$use_wgl" = xyes; then :
28166   :
28167                 ac_config_files="$ac_config_files cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28168
28169
28170 fi
28171                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-wgl.pc'
28172                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28173 ""$cr_make_tmp"
28174
28175                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28176 ""$cr_make_tmp"
28177
28178
28179                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-wgl.pc'
28180                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28181 "'if CAIRO_HAS_WGL_FUNCTIONS'
28182                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28183 ""$cr_make_tmp"
28184                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28185 "'endif'
28186
28187                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28188 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
28189                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28190 ""$cr_make_tmp"
28191                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28192 "'endif'
28193
28194
28195                                         if test "x$use_wgl" = xyes; then :
28196   :
28197                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
28198
28199
28200 fi
28201                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
28202
28203
28204
28205                                         if test "x$use_wgl" != xyes; then :
28206   :
28207                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_WGL_FUNCTIONS'
28208
28209
28210
28211 fi
28212
28213                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_WGL_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
28214                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28215 "'ifeq ($(CAIRO_HAS_WGL_FUNCTIONS),1)'
28216                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28217 ""$cr_make_tmp"
28218                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28219 "'endif'
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229 any2ppm_cs=no
28230                                                                                                                                 # Check whether --enable-script was given.
28231 if test "${enable_script+set}" = set; then :
28232   enableval=$enable_script; enable_script=$enableval
28233 else
28234   enable_script=yes
28235 fi
28236
28237                         case $enable_script in #(
28238   no) :
28239                 use_script="no (disabled, use --enable-script to enable)"
28240          ;; #(
28241         yes|auto) :
28242                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's script surface backend feature" >&5
28243 $as_echo_n "checking for cairo's script surface backend feature... " >&6; }
28244                 echo
28245
28246                 use_script=yes
28247                         script_BASE="cairo"
28248 script_REQUIRES="$ac_env_script_REQUIRES_value"
28249 script_CFLAGS="$ac_env_script_CFLAGS_value"
28250 script_NONPKGCONFIG_CFLAGS="$ac_env_script_NONPKGCONFIG_CFLAGS_value"
28251 script_LIBS="$ac_env_script_LIBS_value"
28252 script_NONPKGCONFIG_LIBS="$ac_env_script_NONPKGCONFIG_LIBS_value"
28253 script_NONPKGCONFIG_EXTRA_LIBS="$ac_env_script_NONPKGCONFIG_EXTRA_LIBS_value"
28254
28255
28256
28257   any2ppm_cs=yes
28258
28259
28260                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's script surface backend feature could be enabled" >&5
28261 $as_echo_n "checking whether cairo's script surface backend feature could be enabled... " >&6; }
28262                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_script" >&5
28263 $as_echo "$use_script" >&6; }
28264
28265                 if test "x$enable_script" = "xyes" -a "x$use_script" != xyes; then :
28266                         as_fn_error $? "recommended script surface backend feature could not be enabled" "$LINENO" 5
28267
28268 fi       ;; #(
28269   *) :
28270                         as_fn_error $? "invalid argument passed to --enable-script: \`$use_script', should be one of [no/auto/yes]" "$LINENO" 5
28271          ;;
28272 esac
28273         if test "x$use_script" = "xyes"; then :
28274                                                                                 CAIRO_REQUIRES="$script_REQUIRES"" ${CAIRO_REQUIRES}"
28275
28276                                                                         CAIRO_CFLAGS="$script_CFLAGS"" ${CAIRO_CFLAGS}"
28277
28278                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$script_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
28279
28280                                                                         CAIRO_LIBS="$script_LIBS"" ${CAIRO_LIBS}"
28281
28282                                                                         CAIRO_NONPKGCONFIG_LIBS="$script_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
28283
28284
28285 else
28286                                         unset script_BASE
28287 unset script_REQUIRES
28288 unset script_CFLAGS
28289 unset script_NONPKGCONFIG_CFLAGS
28290 unset script_LIBS
28291 unset script_NONPKGCONFIG_LIBS
28292 unset script_NONPKGCONFIG_EXTRA_LIBS
28293
28294
28295 fi
28296
28297                                                          if test "x$use_script" = xyes; then
28298   CAIRO_HAS_SCRIPT_SURFACE_TRUE=
28299   CAIRO_HAS_SCRIPT_SURFACE_FALSE='#'
28300 else
28301   CAIRO_HAS_SCRIPT_SURFACE_TRUE='#'
28302   CAIRO_HAS_SCRIPT_SURFACE_FALSE=
28303 fi
28304
28305
28306                                                                                 cr_make_tmp='CAIRO_HAS_SCRIPT_SURFACE=1'
28307                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28308 ""$cr_make_tmp"
28309
28310
28311                                                                                 cr_make_tmp=''
28312                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28313 ""$cr_make_tmp"
28314
28315                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28316 ""$cr_make_tmp"
28317                                                                                 cr_make_tmp=''
28318                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28319 ""$cr_make_tmp"
28320
28321                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28322 ""$cr_make_tmp"
28323
28324
28325                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_script_headers)'
28326                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28327 ""$cr_make_tmp"
28328
28329                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28330 ""$cr_make_tmp"
28331                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)'
28332                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28333 ""$cr_make_tmp"
28334
28335                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28336 ""$cr_make_tmp"
28337
28338
28339
28340                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_script_headers)
28341 all_cairo_private += $(cairo_script_private)
28342 all_cairo_cxx_sources += $(cairo_script_cxx_sources)
28343 all_cairo_sources += $(cairo_script_sources)'
28344                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28345 ""$cr_make_tmp"
28346
28347                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28348 ""$cr_make_tmp"
28349                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
28350 all_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
28351 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
28352 all_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
28353                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28354 ""$cr_make_tmp"
28355
28356                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28357 ""$cr_make_tmp"
28358
28359
28360                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_script_headers)
28361 enabled_cairo_private += $(cairo_script_private)
28362 enabled_cairo_cxx_sources += $(cairo_script_cxx_sources)
28363 enabled_cairo_sources += $(cairo_script_sources)'
28364                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28365 "'if CAIRO_HAS_SCRIPT_SURFACE'
28366                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28367 ""$cr_make_tmp"
28368                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28369 "'endif'
28370
28371                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28372 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
28373                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28374 ""$cr_make_tmp"
28375                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28376 "'endif'
28377                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_script_headers)
28378 enabled_cairo_boilerplate_private += $(cairo_boilerplate_script_private)
28379 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_script_cxx_sources)
28380 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_script_sources)'
28381                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28382 "'if CAIRO_HAS_SCRIPT_SURFACE'
28383                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28384 ""$cr_make_tmp"
28385                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28386 "'endif'
28387
28388                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28389 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
28390                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28391 ""$cr_make_tmp"
28392                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28393 "'endif'
28394
28395
28396
28397
28398                                         if test "x$use_script" = xyes; then :
28399   :
28400                 ac_config_files="$ac_config_files src/cairo-script.pc:src/cairo-features.pc.in"
28401
28402
28403 fi
28404                                         if test "x$use_script" = xyes; then :
28405   :
28406                 ac_config_files="$ac_config_files cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28407
28408
28409 fi
28410                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-script.pc'
28411                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28412 ""$cr_make_tmp"
28413
28414                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28415 ""$cr_make_tmp"
28416
28417
28418                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-script.pc'
28419                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28420 "'if CAIRO_HAS_SCRIPT_SURFACE'
28421                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28422 ""$cr_make_tmp"
28423                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28424 "'endif'
28425
28426                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28427 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
28428                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28429 ""$cr_make_tmp"
28430                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28431 "'endif'
28432
28433
28434                                         if test "x$use_script" = xyes; then :
28435   :
28436                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
28437
28438
28439 fi
28440                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
28441
28442
28443
28444                                         if test "x$use_script" != xyes; then :
28445   :
28446                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SCRIPT_SURFACE'
28447
28448
28449
28450 fi
28451
28452                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SCRIPT_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
28453                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28454 "'ifeq ($(CAIRO_HAS_SCRIPT_SURFACE),1)'
28455                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28456 ""$cr_make_tmp"
28457                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28458 "'endif'
28459
28460
28461
28462                                         if test "x$use_script" != xyes; then :
28463   :
28464                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
28465
28466 "'+++ It is strongly recommended that you do NOT disable the script surface
28467 +++ backend feature.'
28468
28469
28470
28471 fi
28472
28473
28474
28475
28476
28477 # We use pkg-config to look for freetype2, but fall back to
28478 # freetype-config if it fails.  We prefer pkg-config, since we can
28479 # then just put freetype2 >= $FREETYPE_MIN_VERSION in
28480 # Requires.private, but at least up to 2003-06-07, there was no
28481 # freetype2.pc in the release.
28482 #
28483 # FreeType versions come in three forms:
28484 #   release (such as 2.1.9)
28485 #   libtool (such as 9.7.3) (returned by freetype-config and pkg-config)
28486 #   platform-specific/soname (such as 6.3.4)
28487 # and they recommend you never use the platform-specific version
28488 # (see docs/VERSION.DLL in freetype2 sources)
28489 #
28490 # Set these as appropriate:
28491
28492 # release number - for information only
28493 FREETYPE_MIN_RELEASE=2.1.9
28494 # libtool-specific version - this is what is checked
28495 FREETYPE_MIN_VERSION=9.7.3
28496
28497                                                                                                                                 # Check whether --enable-ft was given.
28498 if test "${enable_ft+set}" = set; then :
28499   enableval=$enable_ft; enable_ft=$enableval
28500 else
28501   enable_ft=auto
28502 fi
28503
28504                         case $enable_ft in #(
28505   no) :
28506                 use_ft="no (disabled, use --enable-ft to enable)"
28507          ;; #(
28508         yes|auto) :
28509                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's FreeType font backend feature" >&5
28510 $as_echo_n "checking for cairo's FreeType font backend feature... " >&6; }
28511                 echo
28512
28513                 use_ft=yes
28514                         ft_BASE="cairo"
28515 ft_REQUIRES="$ac_env_ft_REQUIRES_value"
28516 ft_CFLAGS="$ac_env_ft_CFLAGS_value"
28517 ft_NONPKGCONFIG_CFLAGS="$ac_env_ft_NONPKGCONFIG_CFLAGS_value"
28518 ft_LIBS="$ac_env_ft_LIBS_value"
28519 ft_NONPKGCONFIG_LIBS="$ac_env_ft_NONPKGCONFIG_LIBS_value"
28520 ft_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ft_NONPKGCONFIG_EXTRA_LIBS_value"
28521
28522
28523
28524
28525
28526 pkg_failed=no
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28528 $as_echo_n "checking for FREETYPE... " >&6; }
28529
28530 if test -n "$FREETYPE_CFLAGS"; then
28531     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28532  elif test -n "$PKG_CONFIG"; then
28533     if test -n "$PKG_CONFIG" && \
28534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
28535   ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
28536   ac_status=$?
28537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28538   test $ac_status = 0; }; then
28539   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
28540 else
28541   pkg_failed=yes
28542 fi
28543  else
28544     pkg_failed=untried
28545 fi
28546 if test -n "$FREETYPE_LIBS"; then
28547     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28548  elif test -n "$PKG_CONFIG"; then
28549     if test -n "$PKG_CONFIG" && \
28550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= \$FREETYPE_MIN_VERSION\""; } >&5
28551   ($PKG_CONFIG --exists --print-errors "freetype2 >= $FREETYPE_MIN_VERSION") 2>&5
28552   ac_status=$?
28553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554   test $ac_status = 0; }; then
28555   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= $FREETYPE_MIN_VERSION" 2>/dev/null`
28556 else
28557   pkg_failed=yes
28558 fi
28559  else
28560     pkg_failed=untried
28561 fi
28562
28563
28564
28565 if test $pkg_failed = yes; then
28566
28567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28568         _pkg_short_errors_supported=yes
28569 else
28570         _pkg_short_errors_supported=no
28571 fi
28572         if test $_pkg_short_errors_supported = yes; then
28573                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
28574         else
28575                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= $FREETYPE_MIN_VERSION" 2>&1`
28576         fi
28577         # Put the nasty error message in config.log where it belongs
28578         echo "$FREETYPE_PKG_ERRORS" >&5
28579
28580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28581 $as_echo "no" >&6; }
28582                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28583 $as_echo "no" >&6; }
28584                        freetype_pkgconfig=no
28585 elif test $pkg_failed = untried; then
28586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28587 $as_echo "no" >&6; }
28588                        freetype_pkgconfig=no
28589 else
28590         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28591         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28593 $as_echo "yes" >&6; }
28594         freetype_pkgconfig=yes
28595 fi
28596
28597     if test "x$freetype_pkgconfig" = "xyes"; then
28598       ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES"
28599     else
28600
28601       if test -z "$FREETYPE_CONFIG"; then
28602         # Extract the first word of "freetype-config", so it can be a program name with args.
28603 set dummy freetype-config; ac_word=$2
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28605 $as_echo_n "checking for $ac_word... " >&6; }
28606 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then :
28607   $as_echo_n "(cached) " >&6
28608 else
28609   case $FREETYPE_CONFIG in
28610   [\\/]* | ?:[\\/]*)
28611   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
28612   ;;
28613   *)
28614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28615 for as_dir in $PATH
28616 do
28617   IFS=$as_save_IFS
28618   test -z "$as_dir" && as_dir=.
28619     for ac_exec_ext in '' $ac_executable_extensions; do
28620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28621     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28623     break 2
28624   fi
28625 done
28626   done
28627 IFS=$as_save_IFS
28628
28629   test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
28630   ;;
28631 esac
28632 fi
28633 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
28634 if test -n "$FREETYPE_CONFIG"; then
28635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
28636 $as_echo "$FREETYPE_CONFIG" >&6; }
28637 else
28638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28639 $as_echo "no" >&6; }
28640 fi
28641
28642
28643       fi
28644       if test "x$FREETYPE_CONFIG" = "xno" ; then
28645         use_ft='no (freetype-config not found in path or $FREETYPE_CONFIG)'
28646       else
28647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking freetype2 libtool version" >&5
28648 $as_echo_n "checking freetype2 libtool version... " >&6; }
28649
28650         FREETYPE_VERSION=`$FREETYPE_CONFIG --version`
28651
28652   # Used to indicate true or false condition
28653   ax_compare_version=false
28654
28655   # Convert the two version strings to be compared into a format that
28656   # allows a simple string comparison.  The end result is that a version
28657   # string of the form 1.12.5-r617 will be converted to the form
28658   # 0001001200050617.  In other words, each number is zero padded to four
28659   # digits, and non digits are removed.
28660
28661   ax_compare_version_A=`echo "$FREETYPE_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28662                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28663                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28664                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28665                      -e 's/[^0-9]//g'`
28666
28667
28668   ax_compare_version_B=`echo "$FREETYPE_MIN_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28669                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28670                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28671                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28672                      -e 's/[^0-9]//g'`
28673
28674
28675     ax_compare_version=`echo "x$ax_compare_version_A
28676 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
28677
28678
28679
28680     if test "$ax_compare_version" = "true" ; then
28681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - OK" >&5
28682 $as_echo "$FREETYPE_VERSION - OK" >&6; }
28683                            ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags`
28684                            ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`
28685     else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_VERSION - Too old" >&5
28686 $as_echo "$FREETYPE_VERSION - Too old" >&6; }
28687                            use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"
28688   fi
28689
28690       fi
28691     fi
28692
28693   ft_CFLAGS="$FREETYPE_CFLAGS"
28694   ft_LIBS="$FREETYPE_LIBS"
28695
28696
28697                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's FreeType font backend feature could be enabled" >&5
28698 $as_echo_n "checking whether cairo's FreeType font backend feature could be enabled... " >&6; }
28699                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ft" >&5
28700 $as_echo "$use_ft" >&6; }
28701
28702                 if test "x$enable_ft" = "xyes" -a "x$use_ft" != xyes; then :
28703                         as_fn_error $? " FreeType font backend feature could not be enabled" "$LINENO" 5
28704
28705 fi       ;; #(
28706   *) :
28707                         as_fn_error $? "invalid argument passed to --enable-ft: \`$use_ft', should be one of [no/auto/yes]" "$LINENO" 5
28708          ;;
28709 esac
28710         if test "x$use_ft" = "xyes"; then :
28711                                                                                 CAIRO_REQUIRES="$ft_REQUIRES"" ${CAIRO_REQUIRES}"
28712
28713                                                                         CAIRO_CFLAGS="$ft_CFLAGS"" ${CAIRO_CFLAGS}"
28714
28715                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$ft_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
28716
28717                                                                         CAIRO_LIBS="$ft_LIBS"" ${CAIRO_LIBS}"
28718
28719                                                                         CAIRO_NONPKGCONFIG_LIBS="$ft_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
28720
28721
28722 else
28723                                         unset ft_BASE
28724 unset ft_REQUIRES
28725 unset ft_CFLAGS
28726 unset ft_NONPKGCONFIG_CFLAGS
28727 unset ft_LIBS
28728 unset ft_NONPKGCONFIG_LIBS
28729 unset ft_NONPKGCONFIG_EXTRA_LIBS
28730
28731
28732 fi
28733
28734                                                          if test "x$use_ft" = xyes; then
28735   CAIRO_HAS_FT_FONT_TRUE=
28736   CAIRO_HAS_FT_FONT_FALSE='#'
28737 else
28738   CAIRO_HAS_FT_FONT_TRUE='#'
28739   CAIRO_HAS_FT_FONT_FALSE=
28740 fi
28741
28742
28743                                                                                 cr_make_tmp='CAIRO_HAS_FT_FONT=0'
28744                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
28745 ""$cr_make_tmp"
28746
28747
28748                                                                                 cr_make_tmp=''
28749                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28750 ""$cr_make_tmp"
28751
28752                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28753 ""$cr_make_tmp"
28754                                                                                 cr_make_tmp=''
28755                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28756 ""$cr_make_tmp"
28757
28758                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28759 ""$cr_make_tmp"
28760
28761
28762                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_ft_headers)'
28763                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28764 ""$cr_make_tmp"
28765
28766                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28767 ""$cr_make_tmp"
28768                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)'
28769                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28770 ""$cr_make_tmp"
28771
28772                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28773 ""$cr_make_tmp"
28774
28775
28776
28777                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_ft_headers)
28778 all_cairo_private += $(cairo_ft_private)
28779 all_cairo_cxx_sources += $(cairo_ft_cxx_sources)
28780 all_cairo_sources += $(cairo_ft_sources)'
28781                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28782 ""$cr_make_tmp"
28783
28784                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28785 ""$cr_make_tmp"
28786                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
28787 all_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
28788 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
28789 all_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
28790                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28791 ""$cr_make_tmp"
28792
28793                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28794 ""$cr_make_tmp"
28795
28796
28797                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_ft_headers)
28798 enabled_cairo_private += $(cairo_ft_private)
28799 enabled_cairo_cxx_sources += $(cairo_ft_cxx_sources)
28800 enabled_cairo_sources += $(cairo_ft_sources)'
28801                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28802 "'if CAIRO_HAS_FT_FONT'
28803                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28804 ""$cr_make_tmp"
28805                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28806 "'endif'
28807
28808                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28809 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
28810                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28811 ""$cr_make_tmp"
28812                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28813 "'endif'
28814                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ft_headers)
28815 enabled_cairo_boilerplate_private += $(cairo_boilerplate_ft_private)
28816 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ft_cxx_sources)
28817 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ft_sources)'
28818                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28819 "'if CAIRO_HAS_FT_FONT'
28820                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28821 ""$cr_make_tmp"
28822                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
28823 "'endif'
28824
28825                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28826 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
28827                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28828 ""$cr_make_tmp"
28829                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
28830 "'endif'
28831
28832
28833
28834
28835                                         if test "x$use_ft" = xyes; then :
28836   :
28837                 ac_config_files="$ac_config_files src/cairo-ft.pc:src/cairo-features.pc.in"
28838
28839
28840 fi
28841                                         if test "x$use_ft" = xyes; then :
28842   :
28843                 ac_config_files="$ac_config_files cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
28844
28845
28846 fi
28847                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-ft.pc'
28848                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28849 ""$cr_make_tmp"
28850
28851                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28852 ""$cr_make_tmp"
28853
28854
28855                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-ft.pc'
28856                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28857 "'if CAIRO_HAS_FT_FONT'
28858                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28859 ""$cr_make_tmp"
28860                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
28861 "'endif'
28862
28863                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28864 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
28865                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28866 ""$cr_make_tmp"
28867                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
28868 "'endif'
28869
28870
28871                                         if test "x$use_ft" = xyes; then :
28872   :
28873                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FT_FONT'
28874
28875
28876 fi
28877                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FT_FONT'
28878
28879
28880
28881                                         if test "x$use_ft" != xyes; then :
28882   :
28883                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FT_FONT'
28884
28885
28886
28887 fi
28888
28889                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_FT_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
28890                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28891 "'ifeq ($(CAIRO_HAS_FT_FONT),1)'
28892                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28893 ""$cr_make_tmp"
28894                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
28895 "'endif'
28896
28897
28898
28899
28900
28901                                         if test "x$use_ft" = xyes; then :
28902   :
28903                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'ft'
28904
28905
28906
28907 fi
28908
28909
28910 FONTCONFIG_MIN_VERSION=2.2.95
28911                                                                                                                                 # Check whether --enable-fc was given.
28912 if test "${enable_fc+set}" = set; then :
28913   enableval=$enable_fc; enable_fc=$enableval
28914 else
28915   enable_fc=auto
28916 fi
28917
28918                         case $enable_fc in #(
28919   no) :
28920                 use_fc="no (disabled, use --enable-fc to enable)"
28921          ;; #(
28922         yes|auto) :
28923                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's Fontconfig font backend feature" >&5
28924 $as_echo_n "checking for cairo's Fontconfig font backend feature... " >&6; }
28925                 echo
28926
28927                 use_fc=yes
28928                         fc_BASE="cairo"
28929 fc_REQUIRES="$ac_env_fc_REQUIRES_value"
28930 fc_CFLAGS="$ac_env_fc_CFLAGS_value"
28931 fc_NONPKGCONFIG_CFLAGS="$ac_env_fc_NONPKGCONFIG_CFLAGS_value"
28932 fc_LIBS="$ac_env_fc_LIBS_value"
28933 fc_NONPKGCONFIG_LIBS="$ac_env_fc_NONPKGCONFIG_LIBS_value"
28934 fc_NONPKGCONFIG_EXTRA_LIBS="$ac_env_fc_NONPKGCONFIG_EXTRA_LIBS_value"
28935
28936
28937
28938   use_fc=$use_ft
28939   if test "x$use_fc" = "xyes"; then
28940     fc_REQUIRES="fontconfig >= $FONTCONFIG_MIN_VERSION"
28941
28942 pkg_failed=no
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28944 $as_echo_n "checking for FONTCONFIG... " >&6; }
28945
28946 if test -n "$FONTCONFIG_CFLAGS"; then
28947     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28948  elif test -n "$PKG_CONFIG"; then
28949     if test -n "$PKG_CONFIG" && \
28950     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
28951   ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
28952   ac_status=$?
28953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28954   test $ac_status = 0; }; then
28955   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "$fc_REQUIRES" 2>/dev/null`
28956 else
28957   pkg_failed=yes
28958 fi
28959  else
28960     pkg_failed=untried
28961 fi
28962 if test -n "$FONTCONFIG_LIBS"; then
28963     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28964  elif test -n "$PKG_CONFIG"; then
28965     if test -n "$PKG_CONFIG" && \
28966     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fc_REQUIRES\""; } >&5
28967   ($PKG_CONFIG --exists --print-errors "$fc_REQUIRES") 2>&5
28968   ac_status=$?
28969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28970   test $ac_status = 0; }; then
28971   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "$fc_REQUIRES" 2>/dev/null`
28972 else
28973   pkg_failed=yes
28974 fi
28975  else
28976     pkg_failed=untried
28977 fi
28978
28979
28980
28981 if test $pkg_failed = yes; then
28982
28983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28984         _pkg_short_errors_supported=yes
28985 else
28986         _pkg_short_errors_supported=no
28987 fi
28988         if test $_pkg_short_errors_supported = yes; then
28989                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$fc_REQUIRES" 2>&1`
28990         else
28991                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$fc_REQUIRES" 2>&1`
28992         fi
28993         # Put the nasty error message in config.log where it belongs
28994         echo "$FONTCONFIG_PKG_ERRORS" >&5
28995
28996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28997 $as_echo "no" >&6; }
28998                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }; use_fc="no (requires $fc_REQUIRES)"
29000 elif test $pkg_failed = untried; then
29001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29002 $as_echo "no" >&6; }; use_fc="no (requires $fc_REQUIRES)"
29003 else
29004         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29005         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29007 $as_echo "yes" >&6; }
29008         :
29009 fi
29010   fi
29011   fc_CFLAGS="$FONTCONFIG_CFLAGS"
29012   fc_LIBS="$FONTCONFIG_LIBS"
29013
29014
29015                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's Fontconfig font backend feature could be enabled" >&5
29016 $as_echo_n "checking whether cairo's Fontconfig font backend feature could be enabled... " >&6; }
29017                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_fc" >&5
29018 $as_echo "$use_fc" >&6; }
29019
29020                 if test "x$enable_fc" = "xyes" -a "x$use_fc" != xyes; then :
29021                         as_fn_error $? " Fontconfig font backend feature could not be enabled" "$LINENO" 5
29022
29023 fi       ;; #(
29024   *) :
29025                         as_fn_error $? "invalid argument passed to --enable-fc: \`$use_fc', should be one of [no/auto/yes]" "$LINENO" 5
29026          ;;
29027 esac
29028         if test "x$use_fc" = "xyes"; then :
29029                                                                                 CAIRO_REQUIRES="$fc_REQUIRES"" ${CAIRO_REQUIRES}"
29030
29031                                                                         CAIRO_CFLAGS="$fc_CFLAGS"" ${CAIRO_CFLAGS}"
29032
29033                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$fc_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29034
29035                                                                         CAIRO_LIBS="$fc_LIBS"" ${CAIRO_LIBS}"
29036
29037                                                                         CAIRO_NONPKGCONFIG_LIBS="$fc_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29038
29039
29040 else
29041                                         unset fc_BASE
29042 unset fc_REQUIRES
29043 unset fc_CFLAGS
29044 unset fc_NONPKGCONFIG_CFLAGS
29045 unset fc_LIBS
29046 unset fc_NONPKGCONFIG_LIBS
29047 unset fc_NONPKGCONFIG_EXTRA_LIBS
29048
29049
29050 fi
29051
29052                                                          if test "x$use_fc" = xyes; then
29053   CAIRO_HAS_FC_FONT_TRUE=
29054   CAIRO_HAS_FC_FONT_FALSE='#'
29055 else
29056   CAIRO_HAS_FC_FONT_TRUE='#'
29057   CAIRO_HAS_FC_FONT_FALSE=
29058 fi
29059
29060
29061                                                                                 cr_make_tmp='CAIRO_HAS_FC_FONT=0'
29062                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29063 ""$cr_make_tmp"
29064
29065
29066                                                                                 cr_make_tmp=''
29067                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29068 ""$cr_make_tmp"
29069
29070                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29071 ""$cr_make_tmp"
29072                                                                                 cr_make_tmp=''
29073                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29074 ""$cr_make_tmp"
29075
29076                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29077 ""$cr_make_tmp"
29078
29079
29080                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_fc_headers)'
29081                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29082 ""$cr_make_tmp"
29083
29084                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29085 ""$cr_make_tmp"
29086                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)'
29087                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29088 ""$cr_make_tmp"
29089
29090                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29091 ""$cr_make_tmp"
29092
29093
29094
29095                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_fc_headers)
29096 all_cairo_private += $(cairo_fc_private)
29097 all_cairo_cxx_sources += $(cairo_fc_cxx_sources)
29098 all_cairo_sources += $(cairo_fc_sources)'
29099                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29100 ""$cr_make_tmp"
29101
29102                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29103 ""$cr_make_tmp"
29104                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
29105 all_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
29106 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
29107 all_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
29108                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29109 ""$cr_make_tmp"
29110
29111                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29112 ""$cr_make_tmp"
29113
29114
29115                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_fc_headers)
29116 enabled_cairo_private += $(cairo_fc_private)
29117 enabled_cairo_cxx_sources += $(cairo_fc_cxx_sources)
29118 enabled_cairo_sources += $(cairo_fc_sources)'
29119                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29120 "'if CAIRO_HAS_FC_FONT'
29121                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29122 ""$cr_make_tmp"
29123                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29124 "'endif'
29125
29126                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29127 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
29128                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29129 ""$cr_make_tmp"
29130                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29131 "'endif'
29132                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_fc_headers)
29133 enabled_cairo_boilerplate_private += $(cairo_boilerplate_fc_private)
29134 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_fc_cxx_sources)
29135 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_fc_sources)'
29136                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29137 "'if CAIRO_HAS_FC_FONT'
29138                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29139 ""$cr_make_tmp"
29140                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29141 "'endif'
29142
29143                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29144 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
29145                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29146 ""$cr_make_tmp"
29147                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29148 "'endif'
29149
29150
29151
29152
29153                                         if test "x$use_fc" = xyes; then :
29154   :
29155                 ac_config_files="$ac_config_files src/cairo-fc.pc:src/cairo-features.pc.in"
29156
29157
29158 fi
29159                                         if test "x$use_fc" = xyes; then :
29160   :
29161                 ac_config_files="$ac_config_files cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29162
29163
29164 fi
29165                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-fc.pc'
29166                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29167 ""$cr_make_tmp"
29168
29169                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29170 ""$cr_make_tmp"
29171
29172
29173                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-fc.pc'
29174                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29175 "'if CAIRO_HAS_FC_FONT'
29176                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29177 ""$cr_make_tmp"
29178                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29179 "'endif'
29180
29181                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29182 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
29183                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29184 ""$cr_make_tmp"
29185                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29186 "'endif'
29187
29188
29189                                         if test "x$use_fc" = xyes; then :
29190   :
29191                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_FC_FONT'
29192
29193
29194 fi
29195                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_FC_FONT'
29196
29197
29198
29199                                         if test "x$use_fc" != xyes; then :
29200   :
29201                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_FC_FONT'
29202
29203
29204
29205 fi
29206
29207                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_FC_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
29208                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29209 "'ifeq ($(CAIRO_HAS_FC_FONT),1)'
29210                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29211 ""$cr_make_tmp"
29212                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29213 "'endif'
29214
29215
29216
29217
29218
29219                                         if test "x$use_fc" = xyes; then :
29220   :
29221                                         CAIRO_NATIVE_FONT_BACKENDS="${CAIRO_NATIVE_FONT_BACKENDS}"'fc'
29222
29223
29224
29225 fi
29226
29227
29228 if test "x$use_ft" = "xyes"; then
29229   _save_libs="$LIBS"
29230   _save_cflags="$CFLAGS"
29231   LIBS="$LIBS $ft_LIBS"
29232   CFLAGS="$CFLAGS $ft_CFLAGS"
29233   ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
29234                    #include FT_FREETYPE_H
29235 "
29236 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = x""yes; then :
29237   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
29238 else
29239   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
29240 fi
29241
29242
29243 cat >>confdefs.h <<_ACEOF
29244 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
29245 _ACEOF
29246
29247
29248   for ac_func in FT_GlyphSlot_Embolden FT_GlyphSlot_Oblique FT_Load_Sfnt_Table FT_Library_SetLcdFilter
29249 do :
29250   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29253   cat >>confdefs.h <<_ACEOF
29254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29255 _ACEOF
29256
29257 fi
29258 done
29259
29260
29261   LIBS="$_save_libs"
29262   CFLAGS="$_save_cflags"
29263 fi
29264
29265 if test "x$use_fc" = "xyes"; then
29266         _save_cflags="$CFLAGS"
29267         _save_libs="$LIBS"
29268         CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
29269         LIBS="$LIBS $FONTCONFIG_LIBS"
29270         for ac_func in FcInit FcFini
29271 do :
29272   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29275   cat >>confdefs.h <<_ACEOF
29276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29277 _ACEOF
29278
29279 fi
29280 done
29281
29282         CFLAGS="$_save_cflags"
29283         LIBS="$_save_libs"
29284
29285 fi
29286
29287
29288                                                                                                                                 # Check whether --enable-ps was given.
29289 if test "${enable_ps+set}" = set; then :
29290   enableval=$enable_ps; enable_ps=$enableval
29291 else
29292   enable_ps=yes
29293 fi
29294
29295                         case $enable_ps in #(
29296   no) :
29297                 use_ps="no (disabled, use --enable-ps to enable)"
29298          ;; #(
29299         yes|auto) :
29300                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PostScript surface backend feature" >&5
29301 $as_echo_n "checking for cairo's PostScript surface backend feature... " >&6; }
29302                 echo
29303
29304                 use_ps=yes
29305                         ps_BASE="cairo"
29306 ps_REQUIRES="$ac_env_ps_REQUIRES_value"
29307 ps_CFLAGS="$ac_env_ps_CFLAGS_value"
29308 ps_NONPKGCONFIG_CFLAGS="$ac_env_ps_NONPKGCONFIG_CFLAGS_value"
29309 ps_LIBS="$ac_env_ps_LIBS_value"
29310 ps_NONPKGCONFIG_LIBS="$ac_env_ps_NONPKGCONFIG_LIBS_value"
29311 ps_NONPKGCONFIG_EXTRA_LIBS="$ac_env_ps_NONPKGCONFIG_EXTRA_LIBS_value"
29312
29313
29314
29315     # The ps backend requires zlib.
29316     use_ps=$have_libz
29317     ps_NONPKGCONFIG_LIBS=-lz
29318
29319
29320                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PostScript surface backend feature could be enabled" >&5
29321 $as_echo_n "checking whether cairo's PostScript surface backend feature could be enabled... " >&6; }
29322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ps" >&5
29323 $as_echo "$use_ps" >&6; }
29324
29325                 if test "x$enable_ps" = "xyes" -a "x$use_ps" != xyes; then :
29326                         as_fn_error $? "recommended PostScript surface backend feature could not be enabled" "$LINENO" 5
29327
29328 fi       ;; #(
29329   *) :
29330                         as_fn_error $? "invalid argument passed to --enable-ps: \`$use_ps', should be one of [no/auto/yes]" "$LINENO" 5
29331          ;;
29332 esac
29333         if test "x$use_ps" = "xyes"; then :
29334                                                                                 CAIRO_REQUIRES="$ps_REQUIRES"" ${CAIRO_REQUIRES}"
29335
29336                                                                         CAIRO_CFLAGS="$ps_CFLAGS"" ${CAIRO_CFLAGS}"
29337
29338                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$ps_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29339
29340                                                                         CAIRO_LIBS="$ps_LIBS"" ${CAIRO_LIBS}"
29341
29342                                                                         CAIRO_NONPKGCONFIG_LIBS="$ps_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29343
29344
29345 else
29346                                         unset ps_BASE
29347 unset ps_REQUIRES
29348 unset ps_CFLAGS
29349 unset ps_NONPKGCONFIG_CFLAGS
29350 unset ps_LIBS
29351 unset ps_NONPKGCONFIG_LIBS
29352 unset ps_NONPKGCONFIG_EXTRA_LIBS
29353
29354
29355 fi
29356
29357                                                          if test "x$use_ps" = xyes; then
29358   CAIRO_HAS_PS_SURFACE_TRUE=
29359   CAIRO_HAS_PS_SURFACE_FALSE='#'
29360 else
29361   CAIRO_HAS_PS_SURFACE_TRUE='#'
29362   CAIRO_HAS_PS_SURFACE_FALSE=
29363 fi
29364
29365
29366                                                                                 cr_make_tmp='CAIRO_HAS_PS_SURFACE=1'
29367                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29368 ""$cr_make_tmp"
29369
29370
29371                                                                                 cr_make_tmp=''
29372                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29373 ""$cr_make_tmp"
29374
29375                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29376 ""$cr_make_tmp"
29377                                                                                 cr_make_tmp=''
29378                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29379 ""$cr_make_tmp"
29380
29381                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29382 ""$cr_make_tmp"
29383
29384
29385                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_ps_headers)'
29386                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29387 ""$cr_make_tmp"
29388
29389                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29390 ""$cr_make_tmp"
29391                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)'
29392                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29393 ""$cr_make_tmp"
29394
29395                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29396 ""$cr_make_tmp"
29397
29398
29399
29400                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_ps_headers)
29401 all_cairo_private += $(cairo_ps_private)
29402 all_cairo_cxx_sources += $(cairo_ps_cxx_sources)
29403 all_cairo_sources += $(cairo_ps_sources)'
29404                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29405 ""$cr_make_tmp"
29406
29407                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29408 ""$cr_make_tmp"
29409                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
29410 all_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
29411 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
29412 all_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
29413                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29414 ""$cr_make_tmp"
29415
29416                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29417 ""$cr_make_tmp"
29418
29419
29420                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_ps_headers)
29421 enabled_cairo_private += $(cairo_ps_private)
29422 enabled_cairo_cxx_sources += $(cairo_ps_cxx_sources)
29423 enabled_cairo_sources += $(cairo_ps_sources)'
29424                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29425 "'if CAIRO_HAS_PS_SURFACE'
29426                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29427 ""$cr_make_tmp"
29428                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29429 "'endif'
29430
29431                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29432 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
29433                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29434 ""$cr_make_tmp"
29435                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29436 "'endif'
29437                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_ps_headers)
29438 enabled_cairo_boilerplate_private += $(cairo_boilerplate_ps_private)
29439 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_ps_cxx_sources)
29440 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_ps_sources)'
29441                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29442 "'if CAIRO_HAS_PS_SURFACE'
29443                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29444 ""$cr_make_tmp"
29445                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29446 "'endif'
29447
29448                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29449 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
29450                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29451 ""$cr_make_tmp"
29452                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29453 "'endif'
29454
29455
29456
29457
29458                                         if test "x$use_ps" = xyes; then :
29459   :
29460                 ac_config_files="$ac_config_files src/cairo-ps.pc:src/cairo-features.pc.in"
29461
29462
29463 fi
29464                                         if test "x$use_ps" = xyes; then :
29465   :
29466                 ac_config_files="$ac_config_files cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29467
29468
29469 fi
29470                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-ps.pc'
29471                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29472 ""$cr_make_tmp"
29473
29474                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29475 ""$cr_make_tmp"
29476
29477
29478                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-ps.pc'
29479                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29480 "'if CAIRO_HAS_PS_SURFACE'
29481                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29482 ""$cr_make_tmp"
29483                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29484 "'endif'
29485
29486                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29487 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
29488                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29489 ""$cr_make_tmp"
29490                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29491 "'endif'
29492
29493
29494                                         if test "x$use_ps" = xyes; then :
29495   :
29496                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
29497
29498
29499 fi
29500                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PS_SURFACE'
29501
29502
29503
29504                                         if test "x$use_ps" != xyes; then :
29505   :
29506                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PS_SURFACE'
29507
29508
29509
29510 fi
29511
29512                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PS_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
29513                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29514 "'ifeq ($(CAIRO_HAS_PS_SURFACE),1)'
29515                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29516 ""$cr_make_tmp"
29517                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29518 "'endif'
29519
29520
29521
29522                                         if test "x$use_ps" != xyes; then :
29523   :
29524                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
29525
29526 "'+++ It is strongly recommended that you do NOT disable the PostScript surface
29527 +++ backend feature.'
29528
29529
29530
29531 fi
29532
29533
29534
29535
29536
29537 SPECTRE_VERSION_REQUIRED=0.2.0
29538 test_ps=no
29539 any2ppm_ps=no
29540 if test "x$use_ps" = "xyes"; then
29541   # Extract the first word of "gs", so it can be a program name with args.
29542 set dummy gs; ac_word=$2
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29544 $as_echo_n "checking for $ac_word... " >&6; }
29545 if test "${ac_cv_prog_GS+set}" = set; then :
29546   $as_echo_n "(cached) " >&6
29547 else
29548   if test -n "$GS"; then
29549   ac_cv_prog_GS="$GS" # Let the user override the test.
29550 else
29551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29552 for as_dir in $PATH
29553 do
29554   IFS=$as_save_IFS
29555   test -z "$as_dir" && as_dir=.
29556     for ac_exec_ext in '' $ac_executable_extensions; do
29557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29558     ac_cv_prog_GS="gs"
29559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29560     break 2
29561   fi
29562 done
29563   done
29564 IFS=$as_save_IFS
29565
29566 fi
29567 fi
29568 GS=$ac_cv_prog_GS
29569 if test -n "$GS"; then
29570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
29571 $as_echo "$GS" >&6; }
29572 else
29573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574 $as_echo "no" >&6; }
29575 fi
29576
29577
29578   if test "$GS"; then
29579
29580 $as_echo "#define CAIRO_CAN_TEST_PS_SURFACE 1" >>confdefs.h
29581
29582     test_ps="yes"
29583   else
29584     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PS backend will not be tested since ghostscript is not available" >&5
29585 $as_echo "$as_me: WARNING: PS backend will not be tested since ghostscript is not available" >&2;}
29586     test_ps="no (requires ghostscript)"
29587   fi
29588
29589   libspectre_DEPENDENCY="libspectre >= $SPECTRE_VERSION_REQUIRED"
29590
29591 pkg_failed=no
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPECTRE" >&5
29593 $as_echo_n "checking for LIBSPECTRE... " >&6; }
29594
29595 if test -n "$LIBSPECTRE_CFLAGS"; then
29596     pkg_cv_LIBSPECTRE_CFLAGS="$LIBSPECTRE_CFLAGS"
29597  elif test -n "$PKG_CONFIG"; then
29598     if test -n "$PKG_CONFIG" && \
29599     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
29600   ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
29601   ac_status=$?
29602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29603   test $ac_status = 0; }; then
29604   pkg_cv_LIBSPECTRE_CFLAGS=`$PKG_CONFIG --cflags "$libspectre_DEPENDENCY" 2>/dev/null`
29605 else
29606   pkg_failed=yes
29607 fi
29608  else
29609     pkg_failed=untried
29610 fi
29611 if test -n "$LIBSPECTRE_LIBS"; then
29612     pkg_cv_LIBSPECTRE_LIBS="$LIBSPECTRE_LIBS"
29613  elif test -n "$PKG_CONFIG"; then
29614     if test -n "$PKG_CONFIG" && \
29615     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libspectre_DEPENDENCY\""; } >&5
29616   ($PKG_CONFIG --exists --print-errors "$libspectre_DEPENDENCY") 2>&5
29617   ac_status=$?
29618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29619   test $ac_status = 0; }; then
29620   pkg_cv_LIBSPECTRE_LIBS=`$PKG_CONFIG --libs "$libspectre_DEPENDENCY" 2>/dev/null`
29621 else
29622   pkg_failed=yes
29623 fi
29624  else
29625     pkg_failed=untried
29626 fi
29627
29628
29629
29630 if test $pkg_failed = yes; then
29631
29632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29633         _pkg_short_errors_supported=yes
29634 else
29635         _pkg_short_errors_supported=no
29636 fi
29637         if test $_pkg_short_errors_supported = yes; then
29638                 LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$libspectre_DEPENDENCY" 2>&1`
29639         else
29640                 LIBSPECTRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$libspectre_DEPENDENCY" 2>&1`
29641         fi
29642         # Put the nasty error message in config.log where it belongs
29643         echo "$LIBSPECTRE_PKG_ERRORS" >&5
29644
29645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29646 $as_echo "no" >&6; }
29647                 test_ps="no (requires libspectre)"
29648 elif test $pkg_failed = untried; then
29649         test_ps="no (requires libspectre)"
29650 else
29651         LIBSPECTRE_CFLAGS=$pkg_cv_LIBSPECTRE_CFLAGS
29652         LIBSPECTRE_LIBS=$pkg_cv_LIBSPECTRE_LIBS
29653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29654 $as_echo "yes" >&6; }
29655         any2ppm_ps=yes
29656 fi
29657 fi
29658
29659  if test "x$test_ps" = "xyes"; then
29660   CAIRO_CAN_TEST_PS_SURFACE_TRUE=
29661   CAIRO_CAN_TEST_PS_SURFACE_FALSE='#'
29662 else
29663   CAIRO_CAN_TEST_PS_SURFACE_TRUE='#'
29664   CAIRO_CAN_TEST_PS_SURFACE_FALSE=
29665 fi
29666
29667  if test "x$any2ppm_ps" = "xyes"; then
29668   CAIRO_HAS_SPECTRE_TRUE=
29669   CAIRO_HAS_SPECTRE_FALSE='#'
29670 else
29671   CAIRO_HAS_SPECTRE_TRUE='#'
29672   CAIRO_HAS_SPECTRE_FALSE=
29673 fi
29674
29675 if test "x$any2ppm_ps" = "xyes"; then
29676
29677 $as_echo "#define CAIRO_HAS_SPECTRE 1" >>confdefs.h
29678
29679 fi
29680
29681
29682
29683
29684                                                                                                                                 # Check whether --enable-pdf was given.
29685 if test "${enable_pdf+set}" = set; then :
29686   enableval=$enable_pdf; enable_pdf=$enableval
29687 else
29688   enable_pdf=yes
29689 fi
29690
29691                         case $enable_pdf in #(
29692   no) :
29693                 use_pdf="no (disabled, use --enable-pdf to enable)"
29694          ;; #(
29695         yes|auto) :
29696                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's PDF surface backend feature" >&5
29697 $as_echo_n "checking for cairo's PDF surface backend feature... " >&6; }
29698                 echo
29699
29700                 use_pdf=yes
29701                         pdf_BASE="cairo"
29702 pdf_REQUIRES="$ac_env_pdf_REQUIRES_value"
29703 pdf_CFLAGS="$ac_env_pdf_CFLAGS_value"
29704 pdf_NONPKGCONFIG_CFLAGS="$ac_env_pdf_NONPKGCONFIG_CFLAGS_value"
29705 pdf_LIBS="$ac_env_pdf_LIBS_value"
29706 pdf_NONPKGCONFIG_LIBS="$ac_env_pdf_NONPKGCONFIG_LIBS_value"
29707 pdf_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pdf_NONPKGCONFIG_EXTRA_LIBS_value"
29708
29709
29710
29711     # The pdf backend requires zlib.
29712     use_pdf=$have_libz
29713     pdf_NONPKGCONFIG_LIBS=-lz
29714
29715
29716                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's PDF surface backend feature could be enabled" >&5
29717 $as_echo_n "checking whether cairo's PDF surface backend feature could be enabled... " >&6; }
29718                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pdf" >&5
29719 $as_echo "$use_pdf" >&6; }
29720
29721                 if test "x$enable_pdf" = "xyes" -a "x$use_pdf" != xyes; then :
29722                         as_fn_error $? "recommended PDF surface backend feature could not be enabled" "$LINENO" 5
29723
29724 fi       ;; #(
29725   *) :
29726                         as_fn_error $? "invalid argument passed to --enable-pdf: \`$use_pdf', should be one of [no/auto/yes]" "$LINENO" 5
29727          ;;
29728 esac
29729         if test "x$use_pdf" = "xyes"; then :
29730                                                                                 CAIRO_REQUIRES="$pdf_REQUIRES"" ${CAIRO_REQUIRES}"
29731
29732                                                                         CAIRO_CFLAGS="$pdf_CFLAGS"" ${CAIRO_CFLAGS}"
29733
29734                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$pdf_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
29735
29736                                                                         CAIRO_LIBS="$pdf_LIBS"" ${CAIRO_LIBS}"
29737
29738                                                                         CAIRO_NONPKGCONFIG_LIBS="$pdf_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
29739
29740
29741 else
29742                                         unset pdf_BASE
29743 unset pdf_REQUIRES
29744 unset pdf_CFLAGS
29745 unset pdf_NONPKGCONFIG_CFLAGS
29746 unset pdf_LIBS
29747 unset pdf_NONPKGCONFIG_LIBS
29748 unset pdf_NONPKGCONFIG_EXTRA_LIBS
29749
29750
29751 fi
29752
29753                                                          if test "x$use_pdf" = xyes; then
29754   CAIRO_HAS_PDF_SURFACE_TRUE=
29755   CAIRO_HAS_PDF_SURFACE_FALSE='#'
29756 else
29757   CAIRO_HAS_PDF_SURFACE_TRUE='#'
29758   CAIRO_HAS_PDF_SURFACE_FALSE=
29759 fi
29760
29761
29762                                                                                 cr_make_tmp='CAIRO_HAS_PDF_SURFACE=1'
29763                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
29764 ""$cr_make_tmp"
29765
29766
29767                                                                                 cr_make_tmp=''
29768                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29769 ""$cr_make_tmp"
29770
29771                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29772 ""$cr_make_tmp"
29773                                                                                 cr_make_tmp=''
29774                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29775 ""$cr_make_tmp"
29776
29777                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29778 ""$cr_make_tmp"
29779
29780
29781                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_pdf_headers)'
29782                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29783 ""$cr_make_tmp"
29784
29785                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29786 ""$cr_make_tmp"
29787                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)'
29788                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29789 ""$cr_make_tmp"
29790
29791                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29792 ""$cr_make_tmp"
29793
29794
29795
29796                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_pdf_headers)
29797 all_cairo_private += $(cairo_pdf_private)
29798 all_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
29799 all_cairo_sources += $(cairo_pdf_sources)'
29800                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29801 ""$cr_make_tmp"
29802
29803                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29804 ""$cr_make_tmp"
29805                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
29806 all_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
29807 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
29808 all_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
29809                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29810 ""$cr_make_tmp"
29811
29812                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29813 ""$cr_make_tmp"
29814
29815
29816                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_pdf_headers)
29817 enabled_cairo_private += $(cairo_pdf_private)
29818 enabled_cairo_cxx_sources += $(cairo_pdf_cxx_sources)
29819 enabled_cairo_sources += $(cairo_pdf_sources)'
29820                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29821 "'if CAIRO_HAS_PDF_SURFACE'
29822                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29823 ""$cr_make_tmp"
29824                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29825 "'endif'
29826
29827                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29828 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
29829                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29830 ""$cr_make_tmp"
29831                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29832 "'endif'
29833                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_pdf_headers)
29834 enabled_cairo_boilerplate_private += $(cairo_boilerplate_pdf_private)
29835 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pdf_cxx_sources)
29836 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pdf_sources)'
29837                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29838 "'if CAIRO_HAS_PDF_SURFACE'
29839                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29840 ""$cr_make_tmp"
29841                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
29842 "'endif'
29843
29844                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29845 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
29846                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29847 ""$cr_make_tmp"
29848                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
29849 "'endif'
29850
29851
29852
29853
29854                                         if test "x$use_pdf" = xyes; then :
29855   :
29856                 ac_config_files="$ac_config_files src/cairo-pdf.pc:src/cairo-features.pc.in"
29857
29858
29859 fi
29860                                         if test "x$use_pdf" = xyes; then :
29861   :
29862                 ac_config_files="$ac_config_files cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
29863
29864
29865 fi
29866                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-pdf.pc'
29867                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29868 ""$cr_make_tmp"
29869
29870                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29871 ""$cr_make_tmp"
29872
29873
29874                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-pdf.pc'
29875                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29876 "'if CAIRO_HAS_PDF_SURFACE'
29877                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29878 ""$cr_make_tmp"
29879                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
29880 "'endif'
29881
29882                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29883 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
29884                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29885 ""$cr_make_tmp"
29886                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
29887 "'endif'
29888
29889
29890                                         if test "x$use_pdf" = xyes; then :
29891   :
29892                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
29893
29894
29895 fi
29896                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
29897
29898
29899
29900                                         if test "x$use_pdf" != xyes; then :
29901   :
29902                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_PDF_SURFACE'
29903
29904
29905
29906 fi
29907
29908                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PDF_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
29909                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29910 "'ifeq ($(CAIRO_HAS_PDF_SURFACE),1)'
29911                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29912 ""$cr_make_tmp"
29913                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
29914 "'endif'
29915
29916
29917
29918                                         if test "x$use_pdf" != xyes; then :
29919   :
29920                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
29921
29922 "'+++ It is strongly recommended that you do NOT disable the PDF surface
29923 +++ backend feature.'
29924
29925
29926
29927 fi
29928
29929
29930
29931
29932
29933 # poppler-0.17.4 fixes text-pattern and text-transform
29934 POPPLER_VERSION_REQUIRED=0.17.4
29935 test_pdf=no
29936 any2ppm_pdf=no
29937 if test "x$use_pdf" = "xyes"; then
29938   poppler_DEPENDENCY="poppler-glib >= $POPPLER_VERSION_REQUIRED"
29939
29940 pkg_failed=no
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
29942 $as_echo_n "checking for POPPLER... " >&6; }
29943
29944 if test -n "$POPPLER_CFLAGS"; then
29945     pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
29946  elif test -n "$PKG_CONFIG"; then
29947     if test -n "$PKG_CONFIG" && \
29948     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
29949   ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
29950   ac_status=$?
29951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29952   test $ac_status = 0; }; then
29953   pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "$poppler_DEPENDENCY" 2>/dev/null`
29954 else
29955   pkg_failed=yes
29956 fi
29957  else
29958     pkg_failed=untried
29959 fi
29960 if test -n "$POPPLER_LIBS"; then
29961     pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
29962  elif test -n "$PKG_CONFIG"; then
29963     if test -n "$PKG_CONFIG" && \
29964     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$poppler_DEPENDENCY\""; } >&5
29965   ($PKG_CONFIG --exists --print-errors "$poppler_DEPENDENCY") 2>&5
29966   ac_status=$?
29967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29968   test $ac_status = 0; }; then
29969   pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "$poppler_DEPENDENCY" 2>/dev/null`
29970 else
29971   pkg_failed=yes
29972 fi
29973  else
29974     pkg_failed=untried
29975 fi
29976
29977
29978
29979 if test $pkg_failed = yes; then
29980
29981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29982         _pkg_short_errors_supported=yes
29983 else
29984         _pkg_short_errors_supported=no
29985 fi
29986         if test $_pkg_short_errors_supported = yes; then
29987                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$poppler_DEPENDENCY" 2>&1`
29988         else
29989                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "$poppler_DEPENDENCY" 2>&1`
29990         fi
29991         # Put the nasty error message in config.log where it belongs
29992         echo "$POPPLER_PKG_ERRORS" >&5
29993
29994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29995 $as_echo "no" >&6; }
29996                 test_pdf="no (requires $poppler_DEPENDENCY)"
29997 elif test $pkg_failed = untried; then
29998         test_pdf="no (requires $poppler_DEPENDENCY)"
29999 else
30000         POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
30001         POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
30002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30004                 _save_cflags="$CFLAGS"
30005         _save_libs="$LIBS"
30006         CFLAGS="$CFLAGS $POPPLER_CFLAGS"
30007         LIBS="$LIBS $POPPLER_LIBS"
30008         for ac_func in poppler_page_render
30009 do :
30010   ac_fn_c_check_func "$LINENO" "poppler_page_render" "ac_cv_func_poppler_page_render"
30011 if test "x$ac_cv_func_poppler_page_render" = x""yes; then :
30012   cat >>confdefs.h <<_ACEOF
30013 #define HAVE_POPPLER_PAGE_RENDER 1
30014 _ACEOF
30015  test_pdf=yes; any2ppm_pdf=yes
30016 else
30017   test_pdf="no (requires $poppler_DEPENDENCY)"
30018 fi
30019 done
30020
30021         CFLAGS="$_save_cflags"
30022         LIBS="$_save_libs"
30023
30024 fi
30025   if test "x$test_pdf" = "xyes"; then
30026
30027 $as_echo "#define CAIRO_CAN_TEST_PDF_SURFACE 1" >>confdefs.h
30028
30029   else
30030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&5
30031 $as_echo "$as_me: WARNING: PDF backend will not be tested since poppler >= $POPPLER_VERSION_REQUIRED is not available" >&2;}
30032   fi
30033 fi
30034
30035  if test "x$test_pdf" = "xyes"; then
30036   CAIRO_CAN_TEST_PDF_SURFACE_TRUE=
30037   CAIRO_CAN_TEST_PDF_SURFACE_FALSE='#'
30038 else
30039   CAIRO_CAN_TEST_PDF_SURFACE_TRUE='#'
30040   CAIRO_CAN_TEST_PDF_SURFACE_FALSE=
30041 fi
30042
30043
30044
30045
30046  if test "x$use_ps" = "xyes" -o "x$use_pdf" = "xyes"; then
30047   CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE=
30048   CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE='#'
30049 else
30050   CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE='#'
30051   CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE=
30052 fi
30053
30054
30055
30056                                                                                                                                 # Check whether --enable-svg was given.
30057 if test "${enable_svg+set}" = set; then :
30058   enableval=$enable_svg; enable_svg=$enableval
30059 else
30060   enable_svg=yes
30061 fi
30062
30063                         case $enable_svg in #(
30064   no) :
30065                 use_svg="no (disabled, use --enable-svg to enable)"
30066          ;; #(
30067         yes|auto) :
30068                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's SVG surface backend feature" >&5
30069 $as_echo_n "checking for cairo's SVG surface backend feature... " >&6; }
30070                 echo
30071
30072                 use_svg=yes
30073                         svg_BASE="cairo"
30074 svg_REQUIRES="$ac_env_svg_REQUIRES_value"
30075 svg_CFLAGS="$ac_env_svg_CFLAGS_value"
30076 svg_NONPKGCONFIG_CFLAGS="$ac_env_svg_NONPKGCONFIG_CFLAGS_value"
30077 svg_LIBS="$ac_env_svg_LIBS_value"
30078 svg_NONPKGCONFIG_LIBS="$ac_env_svg_NONPKGCONFIG_LIBS_value"
30079 svg_NONPKGCONFIG_EXTRA_LIBS="$ac_env_svg_NONPKGCONFIG_EXTRA_LIBS_value"
30080
30081
30082
30083   if test "x$use_png" != "xyes"; then
30084     use_svg="no (requires --enable-png)"
30085   fi
30086
30087
30088                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's SVG surface backend feature could be enabled" >&5
30089 $as_echo_n "checking whether cairo's SVG surface backend feature could be enabled... " >&6; }
30090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_svg" >&5
30091 $as_echo "$use_svg" >&6; }
30092
30093                 if test "x$enable_svg" = "xyes" -a "x$use_svg" != xyes; then :
30094                         as_fn_error $? "recommended SVG surface backend feature could not be enabled" "$LINENO" 5
30095
30096 fi       ;; #(
30097   *) :
30098                         as_fn_error $? "invalid argument passed to --enable-svg: \`$use_svg', should be one of [no/auto/yes]" "$LINENO" 5
30099          ;;
30100 esac
30101         if test "x$use_svg" = "xyes"; then :
30102                                                                                 CAIRO_REQUIRES="$svg_REQUIRES"" ${CAIRO_REQUIRES}"
30103
30104                                                                         CAIRO_CFLAGS="$svg_CFLAGS"" ${CAIRO_CFLAGS}"
30105
30106                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$svg_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30107
30108                                                                         CAIRO_LIBS="$svg_LIBS"" ${CAIRO_LIBS}"
30109
30110                                                                         CAIRO_NONPKGCONFIG_LIBS="$svg_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30111
30112
30113 else
30114                                         unset svg_BASE
30115 unset svg_REQUIRES
30116 unset svg_CFLAGS
30117 unset svg_NONPKGCONFIG_CFLAGS
30118 unset svg_LIBS
30119 unset svg_NONPKGCONFIG_LIBS
30120 unset svg_NONPKGCONFIG_EXTRA_LIBS
30121
30122
30123 fi
30124
30125                                                          if test "x$use_svg" = xyes; then
30126   CAIRO_HAS_SVG_SURFACE_TRUE=
30127   CAIRO_HAS_SVG_SURFACE_FALSE='#'
30128 else
30129   CAIRO_HAS_SVG_SURFACE_TRUE='#'
30130   CAIRO_HAS_SVG_SURFACE_FALSE=
30131 fi
30132
30133
30134                                                                                 cr_make_tmp='CAIRO_HAS_SVG_SURFACE=1'
30135                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
30136 ""$cr_make_tmp"
30137
30138
30139                                                                                 cr_make_tmp=''
30140                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30141 ""$cr_make_tmp"
30142
30143                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30144 ""$cr_make_tmp"
30145                                                                                 cr_make_tmp=''
30146                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30147 ""$cr_make_tmp"
30148
30149                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30150 ""$cr_make_tmp"
30151
30152
30153                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_svg_headers)'
30154                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30155 ""$cr_make_tmp"
30156
30157                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30158 ""$cr_make_tmp"
30159                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)'
30160                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30161 ""$cr_make_tmp"
30162
30163                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30164 ""$cr_make_tmp"
30165
30166
30167
30168                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_svg_headers)
30169 all_cairo_private += $(cairo_svg_private)
30170 all_cairo_cxx_sources += $(cairo_svg_cxx_sources)
30171 all_cairo_sources += $(cairo_svg_sources)'
30172                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30173 ""$cr_make_tmp"
30174
30175                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30176 ""$cr_make_tmp"
30177                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
30178 all_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
30179 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
30180 all_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
30181                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30182 ""$cr_make_tmp"
30183
30184                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30185 ""$cr_make_tmp"
30186
30187
30188                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_svg_headers)
30189 enabled_cairo_private += $(cairo_svg_private)
30190 enabled_cairo_cxx_sources += $(cairo_svg_cxx_sources)
30191 enabled_cairo_sources += $(cairo_svg_sources)'
30192                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30193 "'if CAIRO_HAS_SVG_SURFACE'
30194                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30195 ""$cr_make_tmp"
30196                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30197 "'endif'
30198
30199                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30200 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
30201                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30202 ""$cr_make_tmp"
30203                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30204 "'endif'
30205                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_svg_headers)
30206 enabled_cairo_boilerplate_private += $(cairo_boilerplate_svg_private)
30207 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_svg_cxx_sources)
30208 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_svg_sources)'
30209                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30210 "'if CAIRO_HAS_SVG_SURFACE'
30211                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30212 ""$cr_make_tmp"
30213                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30214 "'endif'
30215
30216                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30217 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
30218                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30219 ""$cr_make_tmp"
30220                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30221 "'endif'
30222
30223
30224
30225
30226                                         if test "x$use_svg" = xyes; then :
30227   :
30228                 ac_config_files="$ac_config_files src/cairo-svg.pc:src/cairo-features.pc.in"
30229
30230
30231 fi
30232                                         if test "x$use_svg" = xyes; then :
30233   :
30234                 ac_config_files="$ac_config_files cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
30235
30236
30237 fi
30238                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-svg.pc'
30239                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30240 ""$cr_make_tmp"
30241
30242                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30243 ""$cr_make_tmp"
30244
30245
30246                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-svg.pc'
30247                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30248 "'if CAIRO_HAS_SVG_SURFACE'
30249                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30250 ""$cr_make_tmp"
30251                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30252 "'endif'
30253
30254                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30255 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
30256                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30257 ""$cr_make_tmp"
30258                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30259 "'endif'
30260
30261
30262                                         if test "x$use_svg" = xyes; then :
30263   :
30264                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
30265
30266
30267 fi
30268                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
30269
30270
30271
30272                                         if test "x$use_svg" != xyes; then :
30273   :
30274                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_SVG_SURFACE'
30275
30276
30277
30278 fi
30279
30280                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SVG_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
30281                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30282 "'ifeq ($(CAIRO_HAS_SVG_SURFACE),1)'
30283                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30284 ""$cr_make_tmp"
30285                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30286 "'endif'
30287
30288
30289
30290                                         if test "x$use_svg" != xyes; then :
30291   :
30292                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
30293
30294 "'+++ It is strongly recommended that you do NOT disable the SVG surface
30295 +++ backend feature.'
30296
30297
30298
30299 fi
30300
30301
30302
30303
30304 LIBRSVG_VERSION_REQUIRED=2.15.0
30305 test_svg=no
30306 any2ppm_svg=no
30307 if test "x$use_svg" = "xyes"; then
30308   librsvg_DEPENDENCY="librsvg-2.0 >= $LIBRSVG_VERSION_REQUIRED"
30309
30310 pkg_failed=no
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
30312 $as_echo_n "checking for LIBRSVG... " >&6; }
30313
30314 if test -n "$LIBRSVG_CFLAGS"; then
30315     pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
30316  elif test -n "$PKG_CONFIG"; then
30317     if test -n "$PKG_CONFIG" && \
30318     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
30319   ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
30320   ac_status=$?
30321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30322   test $ac_status = 0; }; then
30323   pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
30324 else
30325   pkg_failed=yes
30326 fi
30327  else
30328     pkg_failed=untried
30329 fi
30330 if test -n "$LIBRSVG_LIBS"; then
30331     pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
30332  elif test -n "$PKG_CONFIG"; then
30333     if test -n "$PKG_CONFIG" && \
30334     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$librsvg_DEPENDENCY gdk-2.0\""; } >&5
30335   ($PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0") 2>&5
30336   ac_status=$?
30337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30338   test $ac_status = 0; }; then
30339   pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "$librsvg_DEPENDENCY gdk-2.0" 2>/dev/null`
30340 else
30341   pkg_failed=yes
30342 fi
30343  else
30344     pkg_failed=untried
30345 fi
30346
30347
30348
30349 if test $pkg_failed = yes; then
30350
30351 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30352         _pkg_short_errors_supported=yes
30353 else
30354         _pkg_short_errors_supported=no
30355 fi
30356         if test $_pkg_short_errors_supported = yes; then
30357                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
30358         else
30359                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "$librsvg_DEPENDENCY gdk-2.0" 2>&1`
30360         fi
30361         # Put the nasty error message in config.log where it belongs
30362         echo "$LIBRSVG_PKG_ERRORS" >&5
30363
30364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30365 $as_echo "no" >&6; }
30366                 test_svg="no (requires $librsvg_DEPENDENCY)"
30367 elif test $pkg_failed = untried; then
30368         test_svg="no (requires $librsvg_DEPENDENCY)"
30369 else
30370         LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
30371         LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
30372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30373 $as_echo "yes" >&6; }
30374                 _save_cflags="$CFLAGS"
30375         _save_libs="$LIBS"
30376         CFLAGS="$CFLAGS $LIBRSVG_CFLAGS"
30377         LIBS="$LIBS $LIBRSVG_LIBS"
30378         for ac_func in rsvg_pixbuf_from_file
30379 do :
30380   ac_fn_c_check_func "$LINENO" "rsvg_pixbuf_from_file" "ac_cv_func_rsvg_pixbuf_from_file"
30381 if test "x$ac_cv_func_rsvg_pixbuf_from_file" = x""yes; then :
30382   cat >>confdefs.h <<_ACEOF
30383 #define HAVE_RSVG_PIXBUF_FROM_FILE 1
30384 _ACEOF
30385  test_svg=yes; any2ppm_svg=yes
30386 else
30387   test_svg="no (requires $librsvg_DEPENDENCY)"
30388 fi
30389 done
30390
30391         CFLAGS="$_save_cflags"
30392         LIBS="$_save_libs"
30393
30394 fi
30395   if test "x$test_svg" = "xyes"; then
30396
30397 $as_echo "#define CAIRO_CAN_TEST_SVG_SURFACE 1" >>confdefs.h
30398
30399   else
30400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&5
30401 $as_echo "$as_me: WARNING: SVG backend will not be tested since librsvg >= $LIBRSVG_VERSION_REQUIRED is not available" >&2;}
30402   fi
30403 fi
30404
30405  if test "x$test_svg" = "xyes"; then
30406   CAIRO_CAN_TEST_SVG_SURFACE_TRUE=
30407   CAIRO_CAN_TEST_SVG_SURFACE_FALSE='#'
30408 else
30409   CAIRO_CAN_TEST_SVG_SURFACE_TRUE='#'
30410   CAIRO_CAN_TEST_SVG_SURFACE_FALSE=
30411 fi
30412
30413
30414
30415
30416
30417                                                                                                                                 # Check whether --enable-test-surfaces was given.
30418 if test "${enable_test_surfaces+set}" = set; then :
30419   enableval=$enable_test_surfaces; enable_test_surfaces=$enableval
30420 else
30421   enable_test_surfaces=no
30422 fi
30423
30424                         case $enable_test_surfaces in #(
30425   no) :
30426                 use_test_surfaces="no (disabled, use --enable-test-surfaces to enable)"
30427          ;; #(
30428         yes|auto) :
30429                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's test surfaces feature" >&5
30430 $as_echo_n "checking for cairo's test surfaces feature... " >&6; }
30431                 echo
30432
30433                 use_test_surfaces=yes
30434                         test_surfaces_BASE="cairo"
30435 test_surfaces_REQUIRES="$ac_env_test_surfaces_REQUIRES_value"
30436 test_surfaces_CFLAGS="$ac_env_test_surfaces_CFLAGS_value"
30437 test_surfaces_NONPKGCONFIG_CFLAGS="$ac_env_test_surfaces_NONPKGCONFIG_CFLAGS_value"
30438 test_surfaces_LIBS="$ac_env_test_surfaces_LIBS_value"
30439 test_surfaces_NONPKGCONFIG_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_LIBS_value"
30440 test_surfaces_NONPKGCONFIG_EXTRA_LIBS="$ac_env_test_surfaces_NONPKGCONFIG_EXTRA_LIBS_value"
30441
30442
30443
30444
30445                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's test surfaces feature could be enabled" >&5
30446 $as_echo_n "checking whether cairo's test surfaces feature could be enabled... " >&6; }
30447                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_test_surfaces" >&5
30448 $as_echo "$use_test_surfaces" >&6; }
30449
30450                 if test "x$enable_test_surfaces" = "xyes" -a "x$use_test_surfaces" != xyes; then :
30451                         as_fn_error $? " test surfaces feature could not be enabled" "$LINENO" 5
30452
30453 fi       ;; #(
30454   *) :
30455                         as_fn_error $? "invalid argument passed to --enable-test-surfaces: \`$use_test_surfaces', should be one of [no/auto/yes]" "$LINENO" 5
30456          ;;
30457 esac
30458         if test "x$use_test_surfaces" = "xyes"; then :
30459                                                                                 CAIRO_REQUIRES="$test_surfaces_REQUIRES"" ${CAIRO_REQUIRES}"
30460
30461                                                                         CAIRO_CFLAGS="$test_surfaces_CFLAGS"" ${CAIRO_CFLAGS}"
30462
30463                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$test_surfaces_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30464
30465                                                                         CAIRO_LIBS="$test_surfaces_LIBS"" ${CAIRO_LIBS}"
30466
30467                                                                         CAIRO_NONPKGCONFIG_LIBS="$test_surfaces_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30468
30469
30470 else
30471                                         unset test_surfaces_BASE
30472 unset test_surfaces_REQUIRES
30473 unset test_surfaces_CFLAGS
30474 unset test_surfaces_NONPKGCONFIG_CFLAGS
30475 unset test_surfaces_LIBS
30476 unset test_surfaces_NONPKGCONFIG_LIBS
30477 unset test_surfaces_NONPKGCONFIG_EXTRA_LIBS
30478
30479
30480 fi
30481
30482                                                          if test "x$use_test_surfaces" = xyes; then
30483   CAIRO_HAS_TEST_SURFACES_TRUE=
30484   CAIRO_HAS_TEST_SURFACES_FALSE='#'
30485 else
30486   CAIRO_HAS_TEST_SURFACES_TRUE='#'
30487   CAIRO_HAS_TEST_SURFACES_FALSE=
30488 fi
30489
30490
30491                                                                                 cr_make_tmp='CAIRO_HAS_TEST_SURFACES=0'
30492                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
30493 ""$cr_make_tmp"
30494
30495
30496                                                                                 cr_make_tmp=''
30497                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30498 ""$cr_make_tmp"
30499
30500                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30501 ""$cr_make_tmp"
30502                                                                                 cr_make_tmp=''
30503                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30504 ""$cr_make_tmp"
30505
30506                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30507 ""$cr_make_tmp"
30508
30509
30510
30511
30512
30513
30514                                                                                 cr_make_tmp='all_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
30515 all_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
30516 all_cairo_sources += $(cairo_test_surfaces_sources)'
30517                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30518 ""$cr_make_tmp"
30519
30520                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30521 ""$cr_make_tmp"
30522                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
30523 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
30524 all_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
30525                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30526 ""$cr_make_tmp"
30527
30528                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30529 ""$cr_make_tmp"
30530
30531
30532                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_test_surfaces_private) $(cairo_test_surfaces_headers)
30533 enabled_cairo_cxx_sources += $(cairo_test_surfaces_cxx_sources)
30534 enabled_cairo_sources += $(cairo_test_surfaces_sources)'
30535                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30536 "'if CAIRO_HAS_TEST_SURFACES'
30537                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30538 ""$cr_make_tmp"
30539                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30540 "'endif'
30541
30542                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30543 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
30544                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30545 ""$cr_make_tmp"
30546                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30547 "'endif'
30548                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_test_surfaces_private) $(cairo_boilerplate_test_surfaces_headers)
30549 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_test_surfaces_cxx_sources)
30550 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_test_surfaces_sources)'
30551                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30552 "'if CAIRO_HAS_TEST_SURFACES'
30553                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30554 ""$cr_make_tmp"
30555                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30556 "'endif'
30557
30558                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30559 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
30560                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30561 ""$cr_make_tmp"
30562                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30563 "'endif'
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573                                         if test "x$use_test_surfaces" = xyes; then :
30574   :
30575
30576 $as_echo "#define CAIRO_HAS_TEST_SURFACES 1" >>confdefs.h
30577
30578
30579
30580 fi
30581                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TEST_SURFACES 1" >> $(top_srcdir)/src/cairo-features.h'
30582                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30583 "'ifeq ($(CAIRO_HAS_TEST_SURFACES),1)'
30584                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30585 ""$cr_make_tmp"
30586                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30587 "'endif'
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597                                                                                                                                 enable_image=yes
30598                         case $enable_image in #(
30599   no) :
30600                 use_image="no (disabled, use --enable-image to enable)"
30601          ;; #(
30602         yes|auto) :
30603                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's image surface backend feature" >&5
30604 $as_echo_n "checking for cairo's image surface backend feature... " >&6; }
30605                 echo
30606
30607                 use_image=yes
30608                         image_BASE="cairo"
30609 image_REQUIRES="$ac_env_image_REQUIRES_value"
30610 image_CFLAGS="$ac_env_image_CFLAGS_value"
30611 image_NONPKGCONFIG_CFLAGS="$ac_env_image_NONPKGCONFIG_CFLAGS_value"
30612 image_LIBS="$ac_env_image_LIBS_value"
30613 image_NONPKGCONFIG_LIBS="$ac_env_image_NONPKGCONFIG_LIBS_value"
30614 image_NONPKGCONFIG_EXTRA_LIBS="$ac_env_image_NONPKGCONFIG_EXTRA_LIBS_value"
30615
30616
30617
30618   pixman_REQUIRES="pixman-1 >= 0.22.0"
30619
30620 pkg_failed=no
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman" >&5
30622 $as_echo_n "checking for pixman... " >&6; }
30623
30624 if test -n "$pixman_CFLAGS"; then
30625     pkg_cv_pixman_CFLAGS="$pixman_CFLAGS"
30626  elif test -n "$PKG_CONFIG"; then
30627     if test -n "$PKG_CONFIG" && \
30628     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
30629   ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
30630   ac_status=$?
30631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632   test $ac_status = 0; }; then
30633   pkg_cv_pixman_CFLAGS=`$PKG_CONFIG --cflags "$pixman_REQUIRES" 2>/dev/null`
30634 else
30635   pkg_failed=yes
30636 fi
30637  else
30638     pkg_failed=untried
30639 fi
30640 if test -n "$pixman_LIBS"; then
30641     pkg_cv_pixman_LIBS="$pixman_LIBS"
30642  elif test -n "$PKG_CONFIG"; then
30643     if test -n "$PKG_CONFIG" && \
30644     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pixman_REQUIRES\""; } >&5
30645   ($PKG_CONFIG --exists --print-errors "$pixman_REQUIRES") 2>&5
30646   ac_status=$?
30647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30648   test $ac_status = 0; }; then
30649   pkg_cv_pixman_LIBS=`$PKG_CONFIG --libs "$pixman_REQUIRES" 2>/dev/null`
30650 else
30651   pkg_failed=yes
30652 fi
30653  else
30654     pkg_failed=untried
30655 fi
30656
30657
30658
30659 if test $pkg_failed = yes; then
30660
30661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30662         _pkg_short_errors_supported=yes
30663 else
30664         _pkg_short_errors_supported=no
30665 fi
30666         if test $_pkg_short_errors_supported = yes; then
30667                 pixman_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pixman_REQUIRES" 2>&1`
30668         else
30669                 pixman_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pixman_REQUIRES" 2>&1`
30670         fi
30671         # Put the nasty error message in config.log where it belongs
30672         echo "$pixman_PKG_ERRORS" >&5
30673
30674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675 $as_echo "no" >&6; }
30676                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677 $as_echo "no" >&6; }
30678   use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"
30679 elif test $pkg_failed = untried; then
30680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30681 $as_echo "no" >&6; }
30682   use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"
30683 else
30684         pixman_CFLAGS=$pkg_cv_pixman_CFLAGS
30685         pixman_LIBS=$pkg_cv_pixman_LIBS
30686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30687 $as_echo "yes" >&6; }
30688         :
30689 fi
30690   image_REQUIRES=$pixman_REQUIRES
30691   image_CFLAGS=$pixman_CFLAGS
30692   image_LIBS=$pixman_LIBS
30693
30694
30695                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's image surface backend feature could be enabled" >&5
30696 $as_echo_n "checking whether cairo's image surface backend feature could be enabled... " >&6; }
30697                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_image" >&5
30698 $as_echo "$use_image" >&6; }
30699
30700                 if test "x$enable_image" = "xyes" -a "x$use_image" != xyes; then :
30701                         as_fn_error $? "mandatory image surface backend feature could not be enabled" "$LINENO" 5
30702
30703 fi       ;; #(
30704   *) :
30705                         as_fn_error $? "invalid argument passed to --enable-image: \`$use_image', should be one of [no/auto/yes]" "$LINENO" 5
30706          ;;
30707 esac
30708         if test "x$use_image" = "xyes"; then :
30709                                                                                 CAIRO_REQUIRES="$image_REQUIRES"" ${CAIRO_REQUIRES}"
30710
30711                                                                         CAIRO_CFLAGS="$image_CFLAGS"" ${CAIRO_CFLAGS}"
30712
30713                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$image_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30714
30715                                                                         CAIRO_LIBS="$image_LIBS"" ${CAIRO_LIBS}"
30716
30717                                                                         CAIRO_NONPKGCONFIG_LIBS="$image_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30718
30719
30720 else
30721                                         unset image_BASE
30722 unset image_REQUIRES
30723 unset image_CFLAGS
30724 unset image_NONPKGCONFIG_CFLAGS
30725 unset image_LIBS
30726 unset image_NONPKGCONFIG_LIBS
30727 unset image_NONPKGCONFIG_EXTRA_LIBS
30728
30729
30730 fi
30731
30732
30733
30734                                                                                 cr_make_tmp=''
30735                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30736 ""$cr_make_tmp"
30737
30738                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30739 ""$cr_make_tmp"
30740                                                                                 cr_make_tmp=''
30741                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30742 ""$cr_make_tmp"
30743
30744                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30745 ""$cr_make_tmp"
30746
30747
30748                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_image_headers)'
30749                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30750 ""$cr_make_tmp"
30751
30752                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30753 ""$cr_make_tmp"
30754                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)'
30755                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30756 ""$cr_make_tmp"
30757
30758                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30759 ""$cr_make_tmp"
30760
30761
30762
30763                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_image_headers)
30764 all_cairo_private += $(cairo_image_private)
30765 all_cairo_cxx_sources += $(cairo_image_cxx_sources)
30766 all_cairo_sources += $(cairo_image_sources)'
30767                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30768 ""$cr_make_tmp"
30769
30770                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30771 ""$cr_make_tmp"
30772                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
30773 all_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
30774 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
30775 all_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
30776                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30777 ""$cr_make_tmp"
30778
30779                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30780 ""$cr_make_tmp"
30781
30782
30783                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_image_headers)
30784 enabled_cairo_private += $(cairo_image_private)
30785 enabled_cairo_cxx_sources += $(cairo_image_cxx_sources)
30786 enabled_cairo_sources += $(cairo_image_sources)'
30787                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30788 ""$cr_make_tmp"
30789
30790                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30791 ""$cr_make_tmp"
30792                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_image_headers)
30793 enabled_cairo_boilerplate_private += $(cairo_boilerplate_image_private)
30794 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_image_cxx_sources)
30795 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_image_sources)'
30796                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30797 ""$cr_make_tmp"
30798
30799                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30800 ""$cr_make_tmp"
30801
30802
30803
30804
30805
30806
30807
30808
30809                                         if test "x$use_image" = xyes; then :
30810   :
30811                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
30812
30813
30814 fi
30815                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
30816
30817
30818
30819                                         if test "x$use_image" != xyes; then :
30820   :
30821                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_IMAGE_SURFACE'
30822
30823
30824
30825 fi
30826
30827                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_IMAGE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
30828                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30829 ""$cr_make_tmp"
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839                                                                                                                                 enable_mime=yes
30840                         case $enable_mime in #(
30841   no) :
30842                 use_mime="no (disabled, use --enable-mime to enable)"
30843          ;; #(
30844         yes|auto) :
30845                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's mime surface backend feature" >&5
30846 $as_echo_n "checking for cairo's mime surface backend feature... " >&6; }
30847                 echo
30848
30849                 use_mime=yes
30850                         mime_BASE="cairo"
30851 mime_REQUIRES="$ac_env_mime_REQUIRES_value"
30852 mime_CFLAGS="$ac_env_mime_CFLAGS_value"
30853 mime_NONPKGCONFIG_CFLAGS="$ac_env_mime_NONPKGCONFIG_CFLAGS_value"
30854 mime_LIBS="$ac_env_mime_LIBS_value"
30855 mime_NONPKGCONFIG_LIBS="$ac_env_mime_NONPKGCONFIG_LIBS_value"
30856 mime_NONPKGCONFIG_EXTRA_LIBS="$ac_env_mime_NONPKGCONFIG_EXTRA_LIBS_value"
30857
30858
30859
30860
30861                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's mime surface backend feature could be enabled" >&5
30862 $as_echo_n "checking whether cairo's mime surface backend feature could be enabled... " >&6; }
30863                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_mime" >&5
30864 $as_echo "$use_mime" >&6; }
30865
30866                 if test "x$enable_mime" = "xyes" -a "x$use_mime" != xyes; then :
30867                         as_fn_error $? "mandatory mime surface backend feature could not be enabled" "$LINENO" 5
30868
30869 fi       ;; #(
30870   *) :
30871                         as_fn_error $? "invalid argument passed to --enable-mime: \`$use_mime', should be one of [no/auto/yes]" "$LINENO" 5
30872          ;;
30873 esac
30874         if test "x$use_mime" = "xyes"; then :
30875                                                                                 CAIRO_REQUIRES="$mime_REQUIRES"" ${CAIRO_REQUIRES}"
30876
30877                                                                         CAIRO_CFLAGS="$mime_CFLAGS"" ${CAIRO_CFLAGS}"
30878
30879                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$mime_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
30880
30881                                                                         CAIRO_LIBS="$mime_LIBS"" ${CAIRO_LIBS}"
30882
30883                                                                         CAIRO_NONPKGCONFIG_LIBS="$mime_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
30884
30885
30886 else
30887                                         unset mime_BASE
30888 unset mime_REQUIRES
30889 unset mime_CFLAGS
30890 unset mime_NONPKGCONFIG_CFLAGS
30891 unset mime_LIBS
30892 unset mime_NONPKGCONFIG_LIBS
30893 unset mime_NONPKGCONFIG_EXTRA_LIBS
30894
30895
30896 fi
30897
30898
30899
30900                                                                                 cr_make_tmp=''
30901                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30902 ""$cr_make_tmp"
30903
30904                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30905 ""$cr_make_tmp"
30906                                                                                 cr_make_tmp=''
30907                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30908 ""$cr_make_tmp"
30909
30910                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30911 ""$cr_make_tmp"
30912
30913
30914                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_mime_headers)'
30915                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30916 ""$cr_make_tmp"
30917
30918                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30919 ""$cr_make_tmp"
30920                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)'
30921                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30922 ""$cr_make_tmp"
30923
30924                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30925 ""$cr_make_tmp"
30926
30927
30928
30929                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_mime_headers)
30930 all_cairo_private += $(cairo_mime_private)
30931 all_cairo_cxx_sources += $(cairo_mime_cxx_sources)
30932 all_cairo_sources += $(cairo_mime_sources)'
30933                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30934 ""$cr_make_tmp"
30935
30936                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30937 ""$cr_make_tmp"
30938                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
30939 all_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
30940 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
30941 all_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
30942                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30943 ""$cr_make_tmp"
30944
30945                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30946 ""$cr_make_tmp"
30947
30948
30949                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_mime_headers)
30950 enabled_cairo_private += $(cairo_mime_private)
30951 enabled_cairo_cxx_sources += $(cairo_mime_cxx_sources)
30952 enabled_cairo_sources += $(cairo_mime_sources)'
30953                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
30954 ""$cr_make_tmp"
30955
30956                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
30957 ""$cr_make_tmp"
30958                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_mime_headers)
30959 enabled_cairo_boilerplate_private += $(cairo_boilerplate_mime_private)
30960 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_mime_cxx_sources)
30961 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_mime_sources)'
30962                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
30963 ""$cr_make_tmp"
30964
30965                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
30966 ""$cr_make_tmp"
30967
30968
30969
30970
30971
30972
30973
30974
30975                                         if test "x$use_mime" = xyes; then :
30976   :
30977                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
30978
30979
30980 fi
30981                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
30982
30983
30984
30985                                         if test "x$use_mime" != xyes; then :
30986   :
30987                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_MIME_SURFACE'
30988
30989
30990
30991 fi
30992
30993                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_MIME_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
30994                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
30995 ""$cr_make_tmp"
30996
30997
30998
30999
31000
31001
31002
31003                                                                                                                                 enable_recording=yes
31004                         case $enable_recording in #(
31005   no) :
31006                 use_recording="no (disabled, use --enable-recording to enable)"
31007          ;; #(
31008         yes|auto) :
31009                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's recording surface backend feature" >&5
31010 $as_echo_n "checking for cairo's recording surface backend feature... " >&6; }
31011                 echo
31012
31013                 use_recording=yes
31014                         recording_BASE="cairo"
31015 recording_REQUIRES="$ac_env_recording_REQUIRES_value"
31016 recording_CFLAGS="$ac_env_recording_CFLAGS_value"
31017 recording_NONPKGCONFIG_CFLAGS="$ac_env_recording_NONPKGCONFIG_CFLAGS_value"
31018 recording_LIBS="$ac_env_recording_LIBS_value"
31019 recording_NONPKGCONFIG_LIBS="$ac_env_recording_NONPKGCONFIG_LIBS_value"
31020 recording_NONPKGCONFIG_EXTRA_LIBS="$ac_env_recording_NONPKGCONFIG_EXTRA_LIBS_value"
31021
31022
31023
31024
31025                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's recording surface backend feature could be enabled" >&5
31026 $as_echo_n "checking whether cairo's recording surface backend feature could be enabled... " >&6; }
31027                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_recording" >&5
31028 $as_echo "$use_recording" >&6; }
31029
31030                 if test "x$enable_recording" = "xyes" -a "x$use_recording" != xyes; then :
31031                         as_fn_error $? "mandatory recording surface backend feature could not be enabled" "$LINENO" 5
31032
31033 fi       ;; #(
31034   *) :
31035                         as_fn_error $? "invalid argument passed to --enable-recording: \`$use_recording', should be one of [no/auto/yes]" "$LINENO" 5
31036          ;;
31037 esac
31038         if test "x$use_recording" = "xyes"; then :
31039                                                                                 CAIRO_REQUIRES="$recording_REQUIRES"" ${CAIRO_REQUIRES}"
31040
31041                                                                         CAIRO_CFLAGS="$recording_CFLAGS"" ${CAIRO_CFLAGS}"
31042
31043                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$recording_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31044
31045                                                                         CAIRO_LIBS="$recording_LIBS"" ${CAIRO_LIBS}"
31046
31047                                                                         CAIRO_NONPKGCONFIG_LIBS="$recording_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31048
31049
31050 else
31051                                         unset recording_BASE
31052 unset recording_REQUIRES
31053 unset recording_CFLAGS
31054 unset recording_NONPKGCONFIG_CFLAGS
31055 unset recording_LIBS
31056 unset recording_NONPKGCONFIG_LIBS
31057 unset recording_NONPKGCONFIG_EXTRA_LIBS
31058
31059
31060 fi
31061
31062
31063
31064                                                                                 cr_make_tmp=''
31065                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31066 ""$cr_make_tmp"
31067
31068                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31069 ""$cr_make_tmp"
31070                                                                                 cr_make_tmp=''
31071                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31072 ""$cr_make_tmp"
31073
31074                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31075 ""$cr_make_tmp"
31076
31077
31078                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_recording_headers)'
31079                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31080 ""$cr_make_tmp"
31081
31082                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31083 ""$cr_make_tmp"
31084                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)'
31085                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31086 ""$cr_make_tmp"
31087
31088                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31089 ""$cr_make_tmp"
31090
31091
31092
31093                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_recording_headers)
31094 all_cairo_private += $(cairo_recording_private)
31095 all_cairo_cxx_sources += $(cairo_recording_cxx_sources)
31096 all_cairo_sources += $(cairo_recording_sources)'
31097                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31098 ""$cr_make_tmp"
31099
31100                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31101 ""$cr_make_tmp"
31102                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
31103 all_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
31104 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
31105 all_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
31106                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31107 ""$cr_make_tmp"
31108
31109                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31110 ""$cr_make_tmp"
31111
31112
31113                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_recording_headers)
31114 enabled_cairo_private += $(cairo_recording_private)
31115 enabled_cairo_cxx_sources += $(cairo_recording_cxx_sources)
31116 enabled_cairo_sources += $(cairo_recording_sources)'
31117                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31118 ""$cr_make_tmp"
31119
31120                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31121 ""$cr_make_tmp"
31122                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_recording_headers)
31123 enabled_cairo_boilerplate_private += $(cairo_boilerplate_recording_private)
31124 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_recording_cxx_sources)
31125 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_recording_sources)'
31126                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31127 ""$cr_make_tmp"
31128
31129                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31130 ""$cr_make_tmp"
31131
31132
31133
31134
31135
31136
31137
31138
31139                                         if test "x$use_recording" = xyes; then :
31140   :
31141                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
31142
31143
31144 fi
31145                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
31146
31147
31148
31149                                         if test "x$use_recording" != xyes; then :
31150   :
31151                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_RECORDING_SURFACE'
31152
31153
31154
31155 fi
31156
31157                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_RECORDING_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31158                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31159 ""$cr_make_tmp"
31160
31161
31162
31163
31164
31165
31166
31167                                                                                                                                 enable_observer=yes
31168                         case $enable_observer in #(
31169   no) :
31170                 use_observer="no (disabled, use --enable-observer to enable)"
31171          ;; #(
31172         yes|auto) :
31173                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's observer surface backend feature" >&5
31174 $as_echo_n "checking for cairo's observer surface backend feature... " >&6; }
31175                 echo
31176
31177                 use_observer=yes
31178                         observer_BASE="cairo"
31179 observer_REQUIRES="$ac_env_observer_REQUIRES_value"
31180 observer_CFLAGS="$ac_env_observer_CFLAGS_value"
31181 observer_NONPKGCONFIG_CFLAGS="$ac_env_observer_NONPKGCONFIG_CFLAGS_value"
31182 observer_LIBS="$ac_env_observer_LIBS_value"
31183 observer_NONPKGCONFIG_LIBS="$ac_env_observer_NONPKGCONFIG_LIBS_value"
31184 observer_NONPKGCONFIG_EXTRA_LIBS="$ac_env_observer_NONPKGCONFIG_EXTRA_LIBS_value"
31185
31186
31187
31188
31189                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's observer surface backend feature could be enabled" >&5
31190 $as_echo_n "checking whether cairo's observer surface backend feature could be enabled... " >&6; }
31191                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_observer" >&5
31192 $as_echo "$use_observer" >&6; }
31193
31194                 if test "x$enable_observer" = "xyes" -a "x$use_observer" != xyes; then :
31195                         as_fn_error $? "mandatory observer surface backend feature could not be enabled" "$LINENO" 5
31196
31197 fi       ;; #(
31198   *) :
31199                         as_fn_error $? "invalid argument passed to --enable-observer: \`$use_observer', should be one of [no/auto/yes]" "$LINENO" 5
31200          ;;
31201 esac
31202         if test "x$use_observer" = "xyes"; then :
31203                                                                                 CAIRO_REQUIRES="$observer_REQUIRES"" ${CAIRO_REQUIRES}"
31204
31205                                                                         CAIRO_CFLAGS="$observer_CFLAGS"" ${CAIRO_CFLAGS}"
31206
31207                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$observer_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31208
31209                                                                         CAIRO_LIBS="$observer_LIBS"" ${CAIRO_LIBS}"
31210
31211                                                                         CAIRO_NONPKGCONFIG_LIBS="$observer_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31212
31213
31214 else
31215                                         unset observer_BASE
31216 unset observer_REQUIRES
31217 unset observer_CFLAGS
31218 unset observer_NONPKGCONFIG_CFLAGS
31219 unset observer_LIBS
31220 unset observer_NONPKGCONFIG_LIBS
31221 unset observer_NONPKGCONFIG_EXTRA_LIBS
31222
31223
31224 fi
31225
31226
31227
31228                                                                                 cr_make_tmp=''
31229                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31230 ""$cr_make_tmp"
31231
31232                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31233 ""$cr_make_tmp"
31234                                                                                 cr_make_tmp=''
31235                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31236 ""$cr_make_tmp"
31237
31238                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31239 ""$cr_make_tmp"
31240
31241
31242                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_observer_headers)'
31243                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31244 ""$cr_make_tmp"
31245
31246                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31247 ""$cr_make_tmp"
31248                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)'
31249                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31250 ""$cr_make_tmp"
31251
31252                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31253 ""$cr_make_tmp"
31254
31255
31256
31257                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_observer_headers)
31258 all_cairo_private += $(cairo_observer_private)
31259 all_cairo_cxx_sources += $(cairo_observer_cxx_sources)
31260 all_cairo_sources += $(cairo_observer_sources)'
31261                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31262 ""$cr_make_tmp"
31263
31264                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31265 ""$cr_make_tmp"
31266                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
31267 all_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
31268 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
31269 all_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
31270                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31271 ""$cr_make_tmp"
31272
31273                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31274 ""$cr_make_tmp"
31275
31276
31277                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_observer_headers)
31278 enabled_cairo_private += $(cairo_observer_private)
31279 enabled_cairo_cxx_sources += $(cairo_observer_cxx_sources)
31280 enabled_cairo_sources += $(cairo_observer_sources)'
31281                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31282 ""$cr_make_tmp"
31283
31284                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31285 ""$cr_make_tmp"
31286                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_observer_headers)
31287 enabled_cairo_boilerplate_private += $(cairo_boilerplate_observer_private)
31288 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_observer_cxx_sources)
31289 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_observer_sources)'
31290                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31291 ""$cr_make_tmp"
31292
31293                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31294 ""$cr_make_tmp"
31295
31296
31297
31298
31299
31300
31301
31302
31303                                         if test "x$use_observer" = xyes; then :
31304   :
31305                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
31306
31307
31308 fi
31309                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
31310
31311
31312
31313                                         if test "x$use_observer" != xyes; then :
31314   :
31315                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_OBSERVER_SURFACE'
31316
31317
31318
31319 fi
31320
31321                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_OBSERVER_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31322                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31323 ""$cr_make_tmp"
31324
31325
31326
31327
31328
31329
31330
31331                                                                                                                                 # Check whether --enable-tee was given.
31332 if test "${enable_tee+set}" = set; then :
31333   enableval=$enable_tee; enable_tee=$enableval
31334 else
31335   enable_tee=no
31336 fi
31337
31338                         case $enable_tee in #(
31339   no) :
31340                 use_tee="no (disabled, use --enable-tee to enable)"
31341          ;; #(
31342         yes|auto) :
31343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's tee surface backend feature" >&5
31344 $as_echo_n "checking for cairo's tee surface backend feature... " >&6; }
31345                 echo
31346
31347                 use_tee=yes
31348                         tee_BASE="cairo"
31349 tee_REQUIRES="$ac_env_tee_REQUIRES_value"
31350 tee_CFLAGS="$ac_env_tee_CFLAGS_value"
31351 tee_NONPKGCONFIG_CFLAGS="$ac_env_tee_NONPKGCONFIG_CFLAGS_value"
31352 tee_LIBS="$ac_env_tee_LIBS_value"
31353 tee_NONPKGCONFIG_LIBS="$ac_env_tee_NONPKGCONFIG_LIBS_value"
31354 tee_NONPKGCONFIG_EXTRA_LIBS="$ac_env_tee_NONPKGCONFIG_EXTRA_LIBS_value"
31355
31356
31357
31358
31359                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's tee surface backend feature could be enabled" >&5
31360 $as_echo_n "checking whether cairo's tee surface backend feature could be enabled... " >&6; }
31361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tee" >&5
31362 $as_echo "$use_tee" >&6; }
31363
31364                 if test "x$enable_tee" = "xyes" -a "x$use_tee" != xyes; then :
31365                         as_fn_error $? " tee surface backend feature could not be enabled" "$LINENO" 5
31366
31367 fi       ;; #(
31368   *) :
31369                         as_fn_error $? "invalid argument passed to --enable-tee: \`$use_tee', should be one of [no/auto/yes]" "$LINENO" 5
31370          ;;
31371 esac
31372         if test "x$use_tee" = "xyes"; then :
31373                                                                                 CAIRO_REQUIRES="$tee_REQUIRES"" ${CAIRO_REQUIRES}"
31374
31375                                                                         CAIRO_CFLAGS="$tee_CFLAGS"" ${CAIRO_CFLAGS}"
31376
31377                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$tee_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31378
31379                                                                         CAIRO_LIBS="$tee_LIBS"" ${CAIRO_LIBS}"
31380
31381                                                                         CAIRO_NONPKGCONFIG_LIBS="$tee_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31382
31383
31384 else
31385                                         unset tee_BASE
31386 unset tee_REQUIRES
31387 unset tee_CFLAGS
31388 unset tee_NONPKGCONFIG_CFLAGS
31389 unset tee_LIBS
31390 unset tee_NONPKGCONFIG_LIBS
31391 unset tee_NONPKGCONFIG_EXTRA_LIBS
31392
31393
31394 fi
31395
31396                                                          if test "x$use_tee" = xyes; then
31397   CAIRO_HAS_TEE_SURFACE_TRUE=
31398   CAIRO_HAS_TEE_SURFACE_FALSE='#'
31399 else
31400   CAIRO_HAS_TEE_SURFACE_TRUE='#'
31401   CAIRO_HAS_TEE_SURFACE_FALSE=
31402 fi
31403
31404
31405                                                                                 cr_make_tmp='CAIRO_HAS_TEE_SURFACE=0'
31406                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
31407 ""$cr_make_tmp"
31408
31409
31410                                                                                 cr_make_tmp=''
31411                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31412 ""$cr_make_tmp"
31413
31414                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31415 ""$cr_make_tmp"
31416                                                                                 cr_make_tmp=''
31417                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31418 ""$cr_make_tmp"
31419
31420                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31421 ""$cr_make_tmp"
31422
31423
31424
31425                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_tee_headers)'
31426                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31427 ""$cr_make_tmp"
31428
31429                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31430 ""$cr_make_tmp"
31431                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)'
31432                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31433 ""$cr_make_tmp"
31434
31435                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31436 ""$cr_make_tmp"
31437
31438
31439                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_tee_headers)
31440 all_cairo_private += $(cairo_tee_private)
31441 all_cairo_cxx_sources += $(cairo_tee_cxx_sources)
31442 all_cairo_sources += $(cairo_tee_sources)'
31443                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31444 ""$cr_make_tmp"
31445
31446                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31447 ""$cr_make_tmp"
31448                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
31449 all_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
31450 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
31451 all_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
31452                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31453 ""$cr_make_tmp"
31454
31455                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31456 ""$cr_make_tmp"
31457
31458
31459                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_tee_headers)
31460 enabled_cairo_private += $(cairo_tee_private)
31461 enabled_cairo_cxx_sources += $(cairo_tee_cxx_sources)
31462 enabled_cairo_sources += $(cairo_tee_sources)'
31463                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31464 "'if CAIRO_HAS_TEE_SURFACE'
31465                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31466 ""$cr_make_tmp"
31467                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31468 "'endif'
31469
31470                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31471 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
31472                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31473 ""$cr_make_tmp"
31474                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31475 "'endif'
31476                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_tee_headers)
31477 enabled_cairo_boilerplate_private += $(cairo_boilerplate_tee_private)
31478 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_tee_cxx_sources)
31479 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_tee_sources)'
31480                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31481 "'if CAIRO_HAS_TEE_SURFACE'
31482                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31483 ""$cr_make_tmp"
31484                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31485 "'endif'
31486
31487                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31488 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
31489                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31490 ""$cr_make_tmp"
31491                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31492 "'endif'
31493
31494
31495
31496
31497                                         if test "x$use_tee" = xyes; then :
31498   :
31499                 ac_config_files="$ac_config_files src/cairo-tee.pc:src/cairo-features.pc.in"
31500
31501
31502 fi
31503                                         if test "x$use_tee" = xyes; then :
31504   :
31505                 ac_config_files="$ac_config_files cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
31506
31507
31508 fi
31509                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-tee.pc'
31510                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31511 ""$cr_make_tmp"
31512
31513                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31514 ""$cr_make_tmp"
31515
31516
31517                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-tee.pc'
31518                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31519 "'if CAIRO_HAS_TEE_SURFACE'
31520                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31521 ""$cr_make_tmp"
31522                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31523 "'endif'
31524
31525                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31526 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
31527                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31528 ""$cr_make_tmp"
31529                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31530 "'endif'
31531
31532
31533                                         if test "x$use_tee" = xyes; then :
31534   :
31535                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_TEE_SURFACE'
31536
31537
31538 fi
31539
31540
31541
31542                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TEE_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31543                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31544 "'ifeq ($(CAIRO_HAS_TEE_SURFACE),1)'
31545                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31546 ""$cr_make_tmp"
31547                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31548 "'endif'
31549
31550
31551                                         if test "x$use_tee" = xyes; then :
31552   :
31553                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
31554
31555 "'--- The tee surface backend feature is still under active development and is
31556 --- included in this release only as a preview. It does NOT fully work yet
31557 --- and incompatible changes may yet be made to tee surface backend specific
31558 --- API.'
31559
31560
31561
31562 fi
31563
31564
31565
31566
31567                                                                                                                                 # Check whether --enable-xml was given.
31568 if test "${enable_xml+set}" = set; then :
31569   enableval=$enable_xml; enable_xml=$enableval
31570 else
31571   enable_xml=no
31572 fi
31573
31574                         case $enable_xml in #(
31575   no) :
31576                 use_xml="no (disabled, use --enable-xml to enable)"
31577          ;; #(
31578         yes|auto) :
31579                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's xml surface backend feature" >&5
31580 $as_echo_n "checking for cairo's xml surface backend feature... " >&6; }
31581                 echo
31582
31583                 use_xml=yes
31584                         xml_BASE="cairo"
31585 xml_REQUIRES="$ac_env_xml_REQUIRES_value"
31586 xml_CFLAGS="$ac_env_xml_CFLAGS_value"
31587 xml_NONPKGCONFIG_CFLAGS="$ac_env_xml_NONPKGCONFIG_CFLAGS_value"
31588 xml_LIBS="$ac_env_xml_LIBS_value"
31589 xml_NONPKGCONFIG_LIBS="$ac_env_xml_NONPKGCONFIG_LIBS_value"
31590 xml_NONPKGCONFIG_EXTRA_LIBS="$ac_env_xml_NONPKGCONFIG_EXTRA_LIBS_value"
31591
31592
31593
31594     use_xml=$have_libz
31595     xml_NONPKGCONFIG_LIBS=-lz
31596
31597
31598                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's xml surface backend feature could be enabled" >&5
31599 $as_echo_n "checking whether cairo's xml surface backend feature could be enabled... " >&6; }
31600                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_xml" >&5
31601 $as_echo "$use_xml" >&6; }
31602
31603                 if test "x$enable_xml" = "xyes" -a "x$use_xml" != xyes; then :
31604                         as_fn_error $? " xml surface backend feature could not be enabled" "$LINENO" 5
31605
31606 fi       ;; #(
31607   *) :
31608                         as_fn_error $? "invalid argument passed to --enable-xml: \`$use_xml', should be one of [no/auto/yes]" "$LINENO" 5
31609          ;;
31610 esac
31611         if test "x$use_xml" = "xyes"; then :
31612                                                                                 CAIRO_REQUIRES="$xml_REQUIRES"" ${CAIRO_REQUIRES}"
31613
31614                                                                         CAIRO_CFLAGS="$xml_CFLAGS"" ${CAIRO_CFLAGS}"
31615
31616                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$xml_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31617
31618                                                                         CAIRO_LIBS="$xml_LIBS"" ${CAIRO_LIBS}"
31619
31620                                                                         CAIRO_NONPKGCONFIG_LIBS="$xml_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31621
31622
31623 else
31624                                         unset xml_BASE
31625 unset xml_REQUIRES
31626 unset xml_CFLAGS
31627 unset xml_NONPKGCONFIG_CFLAGS
31628 unset xml_LIBS
31629 unset xml_NONPKGCONFIG_LIBS
31630 unset xml_NONPKGCONFIG_EXTRA_LIBS
31631
31632
31633 fi
31634
31635                                                          if test "x$use_xml" = xyes; then
31636   CAIRO_HAS_XML_SURFACE_TRUE=
31637   CAIRO_HAS_XML_SURFACE_FALSE='#'
31638 else
31639   CAIRO_HAS_XML_SURFACE_TRUE='#'
31640   CAIRO_HAS_XML_SURFACE_FALSE=
31641 fi
31642
31643
31644                                                                                 cr_make_tmp='CAIRO_HAS_XML_SURFACE=0'
31645                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
31646 ""$cr_make_tmp"
31647
31648
31649                                                                                 cr_make_tmp=''
31650                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31651 ""$cr_make_tmp"
31652
31653                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31654 ""$cr_make_tmp"
31655                                                                                 cr_make_tmp=''
31656                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31657 ""$cr_make_tmp"
31658
31659                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31660 ""$cr_make_tmp"
31661
31662
31663
31664                                                                                 cr_make_tmp='unsupported_cairo_headers += $(cairo_xml_headers)'
31665                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31666 ""$cr_make_tmp"
31667
31668                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31669 ""$cr_make_tmp"
31670                                                                                 cr_make_tmp='unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)'
31671                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31672 ""$cr_make_tmp"
31673
31674                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31675 ""$cr_make_tmp"
31676
31677
31678                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_xml_headers)
31679 all_cairo_private += $(cairo_xml_private)
31680 all_cairo_cxx_sources += $(cairo_xml_cxx_sources)
31681 all_cairo_sources += $(cairo_xml_sources)'
31682                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31683 ""$cr_make_tmp"
31684
31685                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31686 ""$cr_make_tmp"
31687                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
31688 all_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
31689 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
31690 all_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
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='enabled_cairo_headers += $(cairo_xml_headers)
31699 enabled_cairo_private += $(cairo_xml_private)
31700 enabled_cairo_cxx_sources += $(cairo_xml_cxx_sources)
31701 enabled_cairo_sources += $(cairo_xml_sources)'
31702                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31703 "'if CAIRO_HAS_XML_SURFACE'
31704                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31705 ""$cr_make_tmp"
31706                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31707 "'endif'
31708
31709                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31710 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
31711                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31712 ""$cr_make_tmp"
31713                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31714 "'endif'
31715                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_xml_headers)
31716 enabled_cairo_boilerplate_private += $(cairo_boilerplate_xml_private)
31717 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_xml_cxx_sources)
31718 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_xml_sources)'
31719                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31720 "'if CAIRO_HAS_XML_SURFACE'
31721                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31722 ""$cr_make_tmp"
31723                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31724 "'endif'
31725
31726                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31727 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
31728                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31729 ""$cr_make_tmp"
31730                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31731 "'endif'
31732
31733
31734
31735
31736                                         if test "x$use_xml" = xyes; then :
31737   :
31738                 ac_config_files="$ac_config_files src/cairo-xml.pc:src/cairo-features.pc.in"
31739
31740
31741 fi
31742                                         if test "x$use_xml" = xyes; then :
31743   :
31744                 ac_config_files="$ac_config_files cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
31745
31746
31747 fi
31748                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-xml.pc'
31749                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31750 ""$cr_make_tmp"
31751
31752                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31753 ""$cr_make_tmp"
31754
31755
31756                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-xml.pc'
31757                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31758 "'if CAIRO_HAS_XML_SURFACE'
31759                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31760 ""$cr_make_tmp"
31761                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31762 "'endif'
31763
31764                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31765 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
31766                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31767 ""$cr_make_tmp"
31768                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31769 "'endif'
31770
31771
31772                                         if test "x$use_xml" = xyes; then :
31773   :
31774                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_XML_SURFACE'
31775
31776
31777 fi
31778
31779
31780
31781                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_XML_SURFACE 1" >> $(top_srcdir)/src/cairo-features.h'
31782                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31783 "'ifeq ($(CAIRO_HAS_XML_SURFACE),1)'
31784                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31785 ""$cr_make_tmp"
31786                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31787 "'endif'
31788
31789
31790                                         if test "x$use_xml" = xyes; then :
31791   :
31792                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
31793
31794 "'--- The xml surface backend feature is still under active development and is
31795 --- included in this release only as a preview. It does NOT fully work yet
31796 --- and incompatible changes may yet be made to xml surface backend specific
31797 --- API.'
31798
31799
31800
31801 fi
31802
31803
31804
31805
31806
31807
31808                                                                                                                                 enable_user=yes
31809                         case $enable_user in #(
31810   no) :
31811                 use_user="no (disabled, use --enable-user to enable)"
31812          ;; #(
31813         yes|auto) :
31814                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's user font backend feature" >&5
31815 $as_echo_n "checking for cairo's user font backend feature... " >&6; }
31816                 echo
31817
31818                 use_user=yes
31819                         user_BASE="cairo"
31820 user_REQUIRES="$ac_env_user_REQUIRES_value"
31821 user_CFLAGS="$ac_env_user_CFLAGS_value"
31822 user_NONPKGCONFIG_CFLAGS="$ac_env_user_NONPKGCONFIG_CFLAGS_value"
31823 user_LIBS="$ac_env_user_LIBS_value"
31824 user_NONPKGCONFIG_LIBS="$ac_env_user_NONPKGCONFIG_LIBS_value"
31825 user_NONPKGCONFIG_EXTRA_LIBS="$ac_env_user_NONPKGCONFIG_EXTRA_LIBS_value"
31826
31827
31828
31829
31830                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's user font backend feature could be enabled" >&5
31831 $as_echo_n "checking whether cairo's user font backend feature could be enabled... " >&6; }
31832                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_user" >&5
31833 $as_echo "$use_user" >&6; }
31834
31835                 if test "x$enable_user" = "xyes" -a "x$use_user" != xyes; then :
31836                         as_fn_error $? "mandatory user font backend feature could not be enabled" "$LINENO" 5
31837
31838 fi       ;; #(
31839   *) :
31840                         as_fn_error $? "invalid argument passed to --enable-user: \`$use_user', should be one of [no/auto/yes]" "$LINENO" 5
31841          ;;
31842 esac
31843         if test "x$use_user" = "xyes"; then :
31844                                                                                 CAIRO_REQUIRES="$user_REQUIRES"" ${CAIRO_REQUIRES}"
31845
31846                                                                         CAIRO_CFLAGS="$user_CFLAGS"" ${CAIRO_CFLAGS}"
31847
31848                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$user_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
31849
31850                                                                         CAIRO_LIBS="$user_LIBS"" ${CAIRO_LIBS}"
31851
31852                                                                         CAIRO_NONPKGCONFIG_LIBS="$user_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
31853
31854
31855 else
31856                                         unset user_BASE
31857 unset user_REQUIRES
31858 unset user_CFLAGS
31859 unset user_NONPKGCONFIG_CFLAGS
31860 unset user_LIBS
31861 unset user_NONPKGCONFIG_LIBS
31862 unset user_NONPKGCONFIG_EXTRA_LIBS
31863
31864
31865 fi
31866
31867
31868
31869                                                                                 cr_make_tmp=''
31870                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31871 ""$cr_make_tmp"
31872
31873                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31874 ""$cr_make_tmp"
31875                                                                                 cr_make_tmp=''
31876                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31877 ""$cr_make_tmp"
31878
31879                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31880 ""$cr_make_tmp"
31881
31882
31883                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_user_headers)'
31884                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31885 ""$cr_make_tmp"
31886
31887                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31888 ""$cr_make_tmp"
31889                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)'
31890                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31891 ""$cr_make_tmp"
31892
31893                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31894 ""$cr_make_tmp"
31895
31896
31897
31898                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_user_headers)
31899 all_cairo_private += $(cairo_user_private)
31900 all_cairo_cxx_sources += $(cairo_user_cxx_sources)
31901 all_cairo_sources += $(cairo_user_sources)'
31902                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31903 ""$cr_make_tmp"
31904
31905                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31906 ""$cr_make_tmp"
31907                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
31908 all_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
31909 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
31910 all_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
31911                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31912 ""$cr_make_tmp"
31913
31914                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31915 ""$cr_make_tmp"
31916
31917
31918                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_user_headers)
31919 enabled_cairo_private += $(cairo_user_private)
31920 enabled_cairo_cxx_sources += $(cairo_user_cxx_sources)
31921 enabled_cairo_sources += $(cairo_user_sources)'
31922                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
31923 ""$cr_make_tmp"
31924
31925                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
31926 ""$cr_make_tmp"
31927                                                                                 cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_user_headers)
31928 enabled_cairo_boilerplate_private += $(cairo_boilerplate_user_private)
31929 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_user_cxx_sources)
31930 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_user_sources)'
31931                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
31932 ""$cr_make_tmp"
31933
31934                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
31935 ""$cr_make_tmp"
31936
31937
31938
31939
31940
31941
31942
31943
31944                                         if test "x$use_user" = xyes; then :
31945   :
31946                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_USER_FONT'
31947
31948
31949 fi
31950                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_USER_FONT'
31951
31952
31953
31954                                         if test "x$use_user" != xyes; then :
31955   :
31956                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_USER_FONT'
31957
31958
31959
31960 fi
31961
31962                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_USER_FONT 1" >> $(top_srcdir)/src/cairo-features.h'
31963                                                                                                                 CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
31964 ""$cr_make_tmp"
31965
31966
31967
31968
31969
31970
31971
31972
31973 have_real_pthread=no
31974 have_pthread=no
31975                                                                                                                                 # Check whether --enable-pthread was given.
31976 if test "${enable_pthread+set}" = set; then :
31977   enableval=$enable_pthread; enable_pthread=$enableval
31978 else
31979   enable_pthread=auto
31980 fi
31981
31982                         case $enable_pthread in #(
31983   no) :
31984                 use_pthread="no (disabled, use --enable-pthread to enable)"
31985          ;; #(
31986         yes|auto) :
31987                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's pthread feature" >&5
31988 $as_echo_n "checking for cairo's pthread feature... " >&6; }
31989                 echo
31990
31991                 use_pthread=yes
31992                         pthread_BASE="cairo"
31993 pthread_REQUIRES="$ac_env_pthread_REQUIRES_value"
31994 pthread_CFLAGS="$ac_env_pthread_CFLAGS_value"
31995 pthread_NONPKGCONFIG_CFLAGS="$ac_env_pthread_NONPKGCONFIG_CFLAGS_value"
31996 pthread_LIBS="$ac_env_pthread_LIBS_value"
31997 pthread_NONPKGCONFIG_LIBS="$ac_env_pthread_NONPKGCONFIG_LIBS_value"
31998 pthread_NONPKGCONFIG_EXTRA_LIBS="$ac_env_pthread_NONPKGCONFIG_EXTRA_LIBS_value"
31999
32000
32001                                         if test "x$PTHREAD_CFLAGS" = "x"; then
32002                 PTHREAD_CFLAGS="-D_REENTRANT"
32003         fi
32004         if test "x$PTHREAD_LIBS" = "x"; then
32005                 PTHREAD_LIBS="-lpthread"
32006         fi
32007
32008                                 # AC_LANG_PROGRAM() produces a main() w/o args,
32009         # but -Wold-style-definition doesn't like that.
32010         # We need _some_ program so that we don't get
32011         # warnings about empty compilation units, so always
32012         # append a reasonable main().
32013         _compile_program="#ifndef _GNU_SOURCE
32014 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
32015 #endif
32016 #include <pthread.h>
32017
32018 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
32019 int test_mutex (void)
32020 {
32021         int x = 0;
32022         pthread_mutex_t mutex;
32023         x |= pthread_mutex_init (&mutex, NULL);
32024         x |= pthread_mutex_lock (&mutex);
32025         x |= pthread_mutex_unlock (&mutex);
32026         x |= pthread_mutex_destroy (&mutex);
32027         return 0;
32028 }
32029
32030 int test_mutex_attr (void)
32031 {
32032         int x = 0;
32033         pthread_mutexattr_t attr;
32034         pthread_mutex_t mutex;
32035         x |= pthread_mutexattr_init (&attr);
32036         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
32037         x |= pthread_mutex_init (&mutex, &attr);
32038         x |= pthread_mutex_lock (&mutex);
32039         x |= pthread_mutex_unlock (&mutex);
32040         x |= pthread_mutex_destroy (&mutex);
32041         x |= pthread_mutexattr_destroy (&attr);
32042         return x;
32043 }
32044
32045 pthread_once_t once_control = PTHREAD_ONCE_INIT;
32046 void test_once_init (void) {}
32047 int test_once (void)
32048 {
32049         return pthread_once (&once_control, test_once_init);
32050 }
32051
32052 pthread_key_t test_specific_key;
32053 int test_specific (void)
32054 {
32055         int x = 0;
32056         x |= pthread_key_create (&test_specific_key, NULL);
32057         x |= pthread_setspecific (test_specific_key, NULL);
32058         x |= pthread_getspecific (test_specific_key) != NULL;
32059         return x;
32060 }
32061
32062 void cleaner (void *arg) { (void)arg; }
32063
32064 void *
32065 test_thread_main (void *arg)
32066 {
32067         pthread_cleanup_push (cleaner, arg);
32068         pthread_exit (arg);
32069         pthread_cleanup_pop (1);
32070         return arg;
32071 }
32072
32073 int
32074 test_threads (void)
32075 {
32076         int x = 0;
32077         pthread_t thread;
32078         pthread_attr_t attr;
32079         void *arg = NULL;
32080         x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
32081         x |= pthread_create (&thread, &attr, test_thread_main, arg);
32082         x |= pthread_equal (pthread_self(), thread);
32083         x |= pthread_join (thread, &arg);
32084         x |= pthread_attr_destroy (&attr);
32085         return x;
32086 }"'
32087                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
32088
32089         _save_cflags="$CFLAGS"
32090         _save_ldflags="$LDFLAGS"
32091         _save_libs="$LIBS"
32092         CFLAGS="$CFLAGS $PTHREAD_CFLAGS";
32093                  LIBS="$LIBS $PTHREAD_LIBS"
32094         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32095 /* end confdefs.h.  */
32096 $_compile_program
32097 _ACEOF
32098 if ac_fn_c_try_link "$LINENO"; then :
32099   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32100                  cairo_cc_flag=yes
32101 else
32102   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32103                  cairo_cc_flag=no
32104 fi
32105 rm -f core conftest.err conftest.$ac_objext \
32106     conftest$ac_exeext conftest.$ac_ext
32107
32108         if test "x$cairo_cc_stderr" != "x"; then
32109                 cairo_cc_flag=no
32110         fi
32111
32112         if test "x$cairo_cc_flag" = "xyes"; then
32113                 real_pthread_CFLAGS="$PTHREAD_CFLAGS";
32114                  real_pthread_LIBS="$PTHREAD_LIBS";
32115                  have_real_pthread=yes
32116         else
32117                 real_pthread_CFLAGS="";
32118                  real_pthread_LIBS="";
32119                  have_real_pthread=no
32120         fi
32121         CFLAGS="$_save_cflags"
32122         LDFLAGS="$_save_ldflags"
32123         LIBS="$_save_libs"
32124
32125
32126         if test "x$have_real_pthread" != "xyes"; then
32127                                                 # AC_LANG_PROGRAM() produces a main() w/o args,
32128         # but -Wold-style-definition doesn't like that.
32129         # We need _some_ program so that we don't get
32130         # warnings about empty compilation units, so always
32131         # append a reasonable main().
32132         _compile_program="#ifndef _GNU_SOURCE
32133 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
32134 #endif
32135 #include <pthread.h>
32136
32137 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
32138 int test_mutex (void)
32139 {
32140         int x = 0;
32141         pthread_mutex_t mutex;
32142         x |= pthread_mutex_init (&mutex, NULL);
32143         x |= pthread_mutex_lock (&mutex);
32144         x |= pthread_mutex_unlock (&mutex);
32145         x |= pthread_mutex_destroy (&mutex);
32146         return 0;
32147 }
32148
32149 int test_mutex_attr (void)
32150 {
32151         int x = 0;
32152         pthread_mutexattr_t attr;
32153         pthread_mutex_t mutex;
32154         x |= pthread_mutexattr_init (&attr);
32155         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
32156         x |= pthread_mutex_init (&mutex, &attr);
32157         x |= pthread_mutex_lock (&mutex);
32158         x |= pthread_mutex_unlock (&mutex);
32159         x |= pthread_mutex_destroy (&mutex);
32160         x |= pthread_mutexattr_destroy (&attr);
32161         return x;
32162 }
32163
32164 pthread_once_t once_control = PTHREAD_ONCE_INIT;
32165 void test_once_init (void) {}
32166 int test_once (void)
32167 {
32168         return pthread_once (&once_control, test_once_init);
32169 }
32170
32171 pthread_key_t test_specific_key;
32172 int test_specific (void)
32173 {
32174         int x = 0;
32175         x |= pthread_key_create (&test_specific_key, NULL);
32176         x |= pthread_setspecific (test_specific_key, NULL);
32177         x |= pthread_getspecific (test_specific_key) != NULL;
32178         return x;
32179 }
32180
32181 void cleaner (void *arg) { (void)arg; }
32182
32183 void *
32184 test_thread_main (void *arg)
32185 {
32186         pthread_cleanup_push (cleaner, arg);
32187         pthread_exit (arg);
32188         pthread_cleanup_pop (1);
32189         return arg;
32190 }
32191
32192 int
32193 test_threads (void)
32194 {
32195         int x = 0;
32196         pthread_t thread;
32197         pthread_attr_t attr;
32198         void *arg = NULL;
32199         x |= pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
32200         x |= pthread_create (&thread, &attr, test_thread_main, arg);
32201         x |= pthread_equal (pthread_self(), thread);
32202         x |= pthread_join (thread, &arg);
32203         x |= pthread_attr_destroy (&attr);
32204         return x;
32205 }"'
32206                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
32207
32208         _save_cflags="$CFLAGS"
32209         _save_ldflags="$LDFLAGS"
32210         _save_libs="$LIBS"
32211         CFLAGS="$CFLAGS -pthread";
32212                  LIBS="$LIBS "
32213         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32214 /* end confdefs.h.  */
32215 $_compile_program
32216 _ACEOF
32217 if ac_fn_c_try_link "$LINENO"; then :
32218   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32219                  cairo_cc_flag=yes
32220 else
32221   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32222                  cairo_cc_flag=no
32223 fi
32224 rm -f core conftest.err conftest.$ac_objext \
32225     conftest$ac_exeext conftest.$ac_ext
32226
32227         if test "x$cairo_cc_stderr" != "x"; then
32228                 cairo_cc_flag=no
32229         fi
32230
32231         if test "x$cairo_cc_flag" = "xyes"; then
32232                 real_pthread_CFLAGS="-pthread";
32233                  real_pthread_LIBS="";
32234                  have_real_pthread=yes
32235         else
32236                 real_pthread_CFLAGS="";
32237                  real_pthread_LIBS="";
32238                  have_real_pthread="no (can't link with -lpthread or -pthread)"
32239         fi
32240         CFLAGS="$_save_cflags"
32241         LDFLAGS="$_save_ldflags"
32242         LIBS="$_save_libs"
32243
32244
32245         fi
32246         PTHREAD_CFLAGS=
32247         PTHREAD_LIBS=
32248
32249                                 have_pthread="no"
32250         if test "x$enable_pthread" != "xyes"; then
32251                                 # AC_LANG_PROGRAM() produces a main() w/o args,
32252         # but -Wold-style-definition doesn't like that.
32253         # We need _some_ program so that we don't get
32254         # warnings about empty compilation units, so always
32255         # append a reasonable main().
32256         _compile_program="#ifndef _GNU_SOURCE
32257 #define _GNU_SOURCE /* for PTHREAD_MUTEX_INITIALIZER under linux */
32258 #endif
32259 #include <pthread.h>
32260
32261 pthread_mutex_t test_mutex_initializer = PTHREAD_MUTEX_INITIALIZER;
32262 int test_mutex (void)
32263 {
32264         int x = 0;
32265         pthread_mutex_t mutex;
32266         x |= pthread_mutex_init (&mutex, NULL);
32267         x |= pthread_mutex_lock (&mutex);
32268         x |= pthread_mutex_unlock (&mutex);
32269         x |= pthread_mutex_destroy (&mutex);
32270         return 0;
32271 }
32272
32273 int test_mutex_attr (void)
32274 {
32275         int x = 0;
32276         pthread_mutexattr_t attr;
32277         pthread_mutex_t mutex;
32278         x |= pthread_mutexattr_init (&attr);
32279         x |= pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
32280         x |= pthread_mutex_init (&mutex, &attr);
32281         x |= pthread_mutex_lock (&mutex);
32282         x |= pthread_mutex_unlock (&mutex);
32283         x |= pthread_mutex_destroy (&mutex);
32284         x |= pthread_mutexattr_destroy (&attr);
32285         return x;
32286 }"'
32287                 int main(int c, char **v) { (void)c; (void)v; return 0; }'
32288
32289         _save_cflags="$CFLAGS"
32290         _save_ldflags="$LDFLAGS"
32291         _save_libs="$LIBS"
32292         CFLAGS="$CFLAGS -D_REENTRANT";
32293                  LIBS="$LIBS "
32294         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32295 /* end confdefs.h.  */
32296 $_compile_program
32297 _ACEOF
32298 if ac_fn_c_try_link "$LINENO"; then :
32299   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32300                  cairo_cc_flag=yes
32301 else
32302   cairo_cc_stderr=`test -f conftest.err && cat conftest.err`
32303                  cairo_cc_flag=no
32304 fi
32305 rm -f core conftest.err conftest.$ac_objext \
32306     conftest$ac_exeext conftest.$ac_ext
32307
32308         if test "x$cairo_cc_stderr" != "x"; then
32309                 cairo_cc_flag=no
32310         fi
32311
32312         if test "x$cairo_cc_flag" = "xyes"; then
32313                 pthread_CFLAGS="-D_REENTRANT";
32314                  pthread_LIBS="";
32315                  have_pthread=yes
32316         else
32317                 pthread_CFLAGS="";
32318                  pthread_LIBS="";
32319
32320         fi
32321         CFLAGS="$_save_cflags"
32322         LDFLAGS="$_save_ldflags"
32323         LIBS="$_save_libs"
32324
32325
32326         fi
32327
32328                 if test "x$have_pthread" != "xyes"; then
32329                 have_pthread="$have_real_pthread";
32330                 pthread_CFLAGS="$real_pthread_CFLAGS";
32331                 pthread_LIBS="$real_pthread_LIBS";
32332         fi
32333
32334                 if test "x$have_real_pthread" = "xyes"; then
32335
32336 $as_echo "#define CAIRO_HAS_REAL_PTHREAD 1" >>confdefs.h
32337
32338         fi
32339         if test "x$have_pthread" = "xyes"; then
32340
32341 $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
32342
32343         fi
32344
32345                 if test "x$enable_pthread" = "xyes" -a "x$have_pthread" != "xyes"; then
32346                 as_fn_error $? "pthread requested but not found" "$LINENO" 5
32347         fi
32348
32349                 use_pthread="$have_pthread"
32350         pthread_REQUIRES=""
32351
32352
32353                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's pthread feature could be enabled" >&5
32354 $as_echo_n "checking whether cairo's pthread feature could be enabled... " >&6; }
32355                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5
32356 $as_echo "$use_pthread" >&6; }
32357
32358                 if test "x$enable_pthread" = "xyes" -a "x$use_pthread" != xyes; then :
32359                         as_fn_error $? " pthread feature could not be enabled" "$LINENO" 5
32360
32361 fi       ;; #(
32362   *) :
32363                         as_fn_error $? "invalid argument passed to --enable-pthread: \`$use_pthread', should be one of [no/auto/yes]" "$LINENO" 5
32364          ;;
32365 esac
32366         if test "x$use_pthread" = "xyes"; then :
32367                                                                                 CAIRO_REQUIRES="$pthread_REQUIRES"" ${CAIRO_REQUIRES}"
32368
32369                                                                         CAIRO_CFLAGS="$pthread_CFLAGS"" ${CAIRO_CFLAGS}"
32370
32371                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$pthread_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32372
32373                                                                         CAIRO_LIBS="$pthread_LIBS"" ${CAIRO_LIBS}"
32374
32375                                                                         CAIRO_NONPKGCONFIG_LIBS="$pthread_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32376
32377
32378 else
32379                                         unset pthread_BASE
32380 unset pthread_REQUIRES
32381 unset pthread_CFLAGS
32382 unset pthread_NONPKGCONFIG_CFLAGS
32383 unset pthread_LIBS
32384 unset pthread_NONPKGCONFIG_LIBS
32385 unset pthread_NONPKGCONFIG_EXTRA_LIBS
32386
32387
32388 fi
32389
32390                                                          if test "x$use_pthread" = xyes; then
32391   CAIRO_HAS_PTHREAD_TRUE=
32392   CAIRO_HAS_PTHREAD_FALSE='#'
32393 else
32394   CAIRO_HAS_PTHREAD_TRUE='#'
32395   CAIRO_HAS_PTHREAD_FALSE=
32396 fi
32397
32398
32399                                                                                 cr_make_tmp='CAIRO_HAS_PTHREAD=0'
32400                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
32401 ""$cr_make_tmp"
32402
32403
32404                                                                                 cr_make_tmp=''
32405                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32406 ""$cr_make_tmp"
32407
32408                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32409 ""$cr_make_tmp"
32410                                                                                 cr_make_tmp=''
32411                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32412 ""$cr_make_tmp"
32413
32414                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32415 ""$cr_make_tmp"
32416
32417
32418
32419
32420
32421
32422                                                                                 cr_make_tmp='all_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
32423 all_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
32424 all_cairo_sources += $(cairo_pthread_sources)'
32425                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32426 ""$cr_make_tmp"
32427
32428                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32429 ""$cr_make_tmp"
32430                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
32431 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
32432 all_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
32433                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32434 ""$cr_make_tmp"
32435
32436                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32437 ""$cr_make_tmp"
32438
32439
32440                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_pthread_private) $(cairo_pthread_headers)
32441 enabled_cairo_cxx_sources += $(cairo_pthread_cxx_sources)
32442 enabled_cairo_sources += $(cairo_pthread_sources)'
32443                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32444 "'if CAIRO_HAS_PTHREAD'
32445                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32446 ""$cr_make_tmp"
32447                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32448 "'endif'
32449
32450                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32451 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
32452                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32453 ""$cr_make_tmp"
32454                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32455 "'endif'
32456                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_pthread_private) $(cairo_boilerplate_pthread_headers)
32457 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_pthread_cxx_sources)
32458 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_pthread_sources)'
32459                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32460 "'if CAIRO_HAS_PTHREAD'
32461                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32462 ""$cr_make_tmp"
32463                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32464 "'endif'
32465
32466                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32467 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
32468                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32469 ""$cr_make_tmp"
32470                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32471 "'endif'
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481                                         if test "x$use_pthread" = xyes; then :
32482   :
32483
32484 $as_echo "#define CAIRO_HAS_PTHREAD 1" >>confdefs.h
32485
32486
32487
32488 fi
32489                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_PTHREAD 1" >> $(top_srcdir)/src/cairo-features.h'
32490                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32491 "'ifeq ($(CAIRO_HAS_PTHREAD),1)'
32492                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32493 ""$cr_make_tmp"
32494                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32495 "'endif'
32496
32497
32498
32499
32500
32501
32502
32503  if test "x$use_pthread" = "xyes" -a "x$have_real_pthread" = "xyes"; then
32504   HAVE_REAL_PTHREAD_TRUE=
32505   HAVE_REAL_PTHREAD_FALSE='#'
32506 else
32507   HAVE_REAL_PTHREAD_TRUE='#'
32508   HAVE_REAL_PTHREAD_FALSE=
32509 fi
32510
32511  if test "x$use_pthread" = "xyes"; then
32512   HAVE_PTHREAD_TRUE=
32513   HAVE_PTHREAD_FALSE='#'
32514 else
32515   HAVE_PTHREAD_TRUE='#'
32516   HAVE_PTHREAD_FALSE=
32517 fi
32518
32519
32520
32521
32522
32523
32524
32525
32526                                                                                                                                 # Check whether --enable-gobject was given.
32527 if test "${enable_gobject+set}" = set; then :
32528   enableval=$enable_gobject; enable_gobject=$enableval
32529 else
32530   enable_gobject=auto
32531 fi
32532
32533                         case $enable_gobject in #(
32534   no) :
32535                 use_gobject="no (disabled, use --enable-gobject to enable)"
32536          ;; #(
32537         yes|auto) :
32538                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's gobject functions feature" >&5
32539 $as_echo_n "checking for cairo's gobject functions feature... " >&6; }
32540                 echo
32541
32542                 use_gobject=yes
32543                         gobject_BASE="cairo"
32544 gobject_REQUIRES="$ac_env_gobject_REQUIRES_value"
32545 gobject_CFLAGS="$ac_env_gobject_CFLAGS_value"
32546 gobject_NONPKGCONFIG_CFLAGS="$ac_env_gobject_NONPKGCONFIG_CFLAGS_value"
32547 gobject_LIBS="$ac_env_gobject_LIBS_value"
32548 gobject_NONPKGCONFIG_LIBS="$ac_env_gobject_NONPKGCONFIG_LIBS_value"
32549 gobject_NONPKGCONFIG_EXTRA_LIBS="$ac_env_gobject_NONPKGCONFIG_EXTRA_LIBS_value"
32550
32551
32552
32553   gobject_REQUIRES="gobject-2.0 glib-2.0"
32554
32555 pkg_failed=no
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
32557 $as_echo_n "checking for GOBJECT... " >&6; }
32558
32559 if test -n "$GOBJECT_CFLAGS"; then
32560     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
32561  elif test -n "$PKG_CONFIG"; then
32562     if test -n "$PKG_CONFIG" && \
32563     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
32564   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
32565   ac_status=$?
32566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32567   test $ac_status = 0; }; then
32568   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
32569 else
32570   pkg_failed=yes
32571 fi
32572  else
32573     pkg_failed=untried
32574 fi
32575 if test -n "$GOBJECT_LIBS"; then
32576     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
32577  elif test -n "$PKG_CONFIG"; then
32578     if test -n "$PKG_CONFIG" && \
32579     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
32580   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
32581   ac_status=$?
32582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32583   test $ac_status = 0; }; then
32584   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
32585 else
32586   pkg_failed=yes
32587 fi
32588  else
32589     pkg_failed=untried
32590 fi
32591
32592
32593
32594 if test $pkg_failed = yes; then
32595
32596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32597         _pkg_short_errors_supported=yes
32598 else
32599         _pkg_short_errors_supported=no
32600 fi
32601         if test $_pkg_short_errors_supported = yes; then
32602                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
32603         else
32604                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
32605         fi
32606         # Put the nasty error message in config.log where it belongs
32607         echo "$GOBJECT_PKG_ERRORS" >&5
32608
32609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32610 $as_echo "no" >&6; }
32611                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32612 $as_echo "no" >&6; }
32613   use_gobject="no (requires $gobject_REQUIRES http://download.gnome.org/pub/GNOME/sources/glib/)"
32614 elif test $pkg_failed = untried; then
32615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32616 $as_echo "no" >&6; }
32617   use_gobject="no (requires $gobject_REQUIRES http://download.gnome.org/pub/GNOME/sources/glib/)"
32618 else
32619         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
32620         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
32621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32622 $as_echo "yes" >&6; }
32623         :
32624 fi
32625   gobject_NONPKGCONFIG_EXTRA_LIBS="-L\${libdir} -lcairo-gobject"
32626
32627
32628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's gobject functions feature could be enabled" >&5
32629 $as_echo_n "checking whether cairo's gobject functions feature could be enabled... " >&6; }
32630                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gobject" >&5
32631 $as_echo "$use_gobject" >&6; }
32632
32633                 if test "x$enable_gobject" = "xyes" -a "x$use_gobject" != xyes; then :
32634                         as_fn_error $? " gobject functions feature could not be enabled" "$LINENO" 5
32635
32636 fi       ;; #(
32637   *) :
32638                         as_fn_error $? "invalid argument passed to --enable-gobject: \`$use_gobject', should be one of [no/auto/yes]" "$LINENO" 5
32639          ;;
32640 esac
32641         if test "x$use_gobject" = "xyes"; then :
32642                                                                                 CAIRO_REQUIRES="$gobject_REQUIRES"" ${CAIRO_REQUIRES}"
32643
32644                                                                         CAIRO_CFLAGS="$gobject_CFLAGS"" ${CAIRO_CFLAGS}"
32645
32646                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$gobject_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
32647
32648                                                                         CAIRO_LIBS="$gobject_LIBS"" ${CAIRO_LIBS}"
32649
32650                                                                         CAIRO_NONPKGCONFIG_LIBS="$gobject_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
32651
32652
32653 else
32654                                         unset gobject_BASE
32655 unset gobject_REQUIRES
32656 unset gobject_CFLAGS
32657 unset gobject_NONPKGCONFIG_CFLAGS
32658 unset gobject_LIBS
32659 unset gobject_NONPKGCONFIG_LIBS
32660 unset gobject_NONPKGCONFIG_EXTRA_LIBS
32661
32662
32663 fi
32664
32665                                                          if test "x$use_gobject" = xyes; then
32666   CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE=
32667   CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE='#'
32668 else
32669   CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE='#'
32670   CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE=
32671 fi
32672
32673
32674                                                                                 cr_make_tmp='CAIRO_HAS_GOBJECT_FUNCTIONS=0'
32675                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
32676 ""$cr_make_tmp"
32677
32678
32679                                                                                 cr_make_tmp=''
32680                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32681 ""$cr_make_tmp"
32682
32683                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32684 ""$cr_make_tmp"
32685                                                                                 cr_make_tmp=''
32686                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32687 ""$cr_make_tmp"
32688
32689                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32690 ""$cr_make_tmp"
32691
32692
32693                                                                                 cr_make_tmp='supported_cairo_headers += $(cairo_gobject_headers)'
32694                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32695 ""$cr_make_tmp"
32696
32697                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32698 ""$cr_make_tmp"
32699                                                                                 cr_make_tmp='supported_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)'
32700                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32701 ""$cr_make_tmp"
32702
32703                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32704 ""$cr_make_tmp"
32705
32706
32707
32708                                                                                 cr_make_tmp='all_cairo_headers += $(cairo_gobject_headers)
32709 all_cairo_private += $(cairo_gobject_private)
32710 all_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
32711 all_cairo_sources += $(cairo_gobject_sources)'
32712                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32713 ""$cr_make_tmp"
32714
32715                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32716 ""$cr_make_tmp"
32717                                                                                 cr_make_tmp='all_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
32718 all_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
32719 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
32720 all_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
32721                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32722 ""$cr_make_tmp"
32723
32724                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32725 ""$cr_make_tmp"
32726
32727
32728                                                                                 cr_make_tmp='enabled_cairo_headers += $(cairo_gobject_headers)
32729 enabled_cairo_private += $(cairo_gobject_private)
32730 enabled_cairo_cxx_sources += $(cairo_gobject_cxx_sources)
32731 enabled_cairo_sources += $(cairo_gobject_sources)'
32732                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32733 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
32734                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32735 ""$cr_make_tmp"
32736                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32737 "'endif'
32738
32739                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32740 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
32741                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32742 ""$cr_make_tmp"
32743                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32744 "'endif'
32745                                                                         cr_make_tmp='enabled_cairo_boilerplate_headers += $(cairo_boilerplate_gobject_headers)
32746 enabled_cairo_boilerplate_private += $(cairo_boilerplate_gobject_private)
32747 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_gobject_cxx_sources)
32748 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_gobject_sources)'
32749                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32750 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
32751                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32752 ""$cr_make_tmp"
32753                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
32754 "'endif'
32755
32756                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32757 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
32758                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32759 ""$cr_make_tmp"
32760                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
32761 "'endif'
32762
32763
32764
32765
32766                                         if test "x$use_gobject" = xyes; then :
32767   :
32768                 ac_config_files="$ac_config_files src/cairo-gobject.pc:src/cairo-features.pc.in"
32769
32770
32771 fi
32772                                         if test "x$use_gobject" = xyes; then :
32773   :
32774                 ac_config_files="$ac_config_files cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in"
32775
32776
32777 fi
32778                                                                                 cr_make_tmp='all_cairo_pkgconf += cairo-gobject.pc'
32779                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32780 ""$cr_make_tmp"
32781
32782                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32783 ""$cr_make_tmp"
32784
32785
32786                                                                                 cr_make_tmp='enabled_cairo_pkgconf += cairo-gobject.pc'
32787                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32788 "'if CAIRO_HAS_GOBJECT_FUNCTIONS'
32789                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32790 ""$cr_make_tmp"
32791                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
32792 "'endif'
32793
32794                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32795 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
32796                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32797 ""$cr_make_tmp"
32798                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
32799 "'endif'
32800
32801
32802                                         if test "x$use_gobject" = xyes; then :
32803   :
32804                                         CAIRO_FEATURES="${CAIRO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
32805
32806
32807 fi
32808                                                                                 CAIRO_SUPPORTED_FEATURES="${CAIRO_SUPPORTED_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
32809
32810
32811
32812                                         if test "x$use_gobject" != xyes; then :
32813   :
32814                                         CAIRO_NO_FEATURES="${CAIRO_NO_FEATURES} "'CAIRO_HAS_GOBJECT_FUNCTIONS'
32815
32816
32817
32818 fi
32819
32820                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_GOBJECT_FUNCTIONS 1" >> $(top_srcdir)/src/cairo-features.h'
32821                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32822 "'ifeq ($(CAIRO_HAS_GOBJECT_FUNCTIONS),1)'
32823                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32824 ""$cr_make_tmp"
32825                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
32826 "'endif'
32827
32828
32829
32830
32831
32832
32833
32834 if test "x$use_gobject" = "xyes"; then
32835
32836 pkg_failed=no
32837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
32838 $as_echo_n "checking for GOBJECT... " >&6; }
32839
32840 if test -n "$GOBJECT_CFLAGS"; then
32841     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
32842  elif test -n "$PKG_CONFIG"; then
32843     if test -n "$PKG_CONFIG" && \
32844     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
32845   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
32846   ac_status=$?
32847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32848   test $ac_status = 0; }; then
32849   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "$gobject_REQUIRES" 2>/dev/null`
32850 else
32851   pkg_failed=yes
32852 fi
32853  else
32854     pkg_failed=untried
32855 fi
32856 if test -n "$GOBJECT_LIBS"; then
32857     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
32858  elif test -n "$PKG_CONFIG"; then
32859     if test -n "$PKG_CONFIG" && \
32860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gobject_REQUIRES\""; } >&5
32861   ($PKG_CONFIG --exists --print-errors "$gobject_REQUIRES") 2>&5
32862   ac_status=$?
32863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32864   test $ac_status = 0; }; then
32865   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "$gobject_REQUIRES" 2>/dev/null`
32866 else
32867   pkg_failed=yes
32868 fi
32869  else
32870     pkg_failed=untried
32871 fi
32872
32873
32874
32875 if test $pkg_failed = yes; then
32876
32877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32878         _pkg_short_errors_supported=yes
32879 else
32880         _pkg_short_errors_supported=no
32881 fi
32882         if test $_pkg_short_errors_supported = yes; then
32883                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$gobject_REQUIRES" 2>&1`
32884         else
32885                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$gobject_REQUIRES" 2>&1`
32886         fi
32887         # Put the nasty error message in config.log where it belongs
32888         echo "$GOBJECT_PKG_ERRORS" >&5
32889
32890         as_fn_error $? "Package requirements ($gobject_REQUIRES) were not met:
32891
32892 $GOBJECT_PKG_ERRORS
32893
32894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
32895 installed software in a non-standard prefix.
32896
32897 Alternatively, you may set the environment variables GOBJECT_CFLAGS
32898 and GOBJECT_LIBS to avoid the need to call pkg-config.
32899 See the pkg-config man page for more details.
32900 " "$LINENO" 5
32901 elif test $pkg_failed = untried; then
32902         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32904 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32905 is in your PATH or set the PKG_CONFIG environment variable to the full
32906 path to pkg-config.
32907
32908 Alternatively, you may set the environment variables GOBJECT_CFLAGS
32909 and GOBJECT_LIBS to avoid the need to call pkg-config.
32910 See the pkg-config man page for more details.
32911
32912 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32913 See \`config.log' for more details" "$LINENO" 5 ; }
32914 else
32915         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
32916         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
32917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32918 $as_echo "yes" >&6; }
32919         :
32920 fi
32921 fi
32922
32923
32924 # Check whether --enable-full-testing was given.
32925 if test "${enable_full_testing+set}" = set; then :
32926   enableval=$enable_full_testing;
32927 if test "x$enableval" = "xyes"; then
32928     CAIRO_TEST_MODE=full
32929
32930 fi
32931
32932 fi
32933
32934
32935  if test "x$any2ppm_svg" = "xyes" \
32936                  -o "x$any2ppm_pdf" = "xyes" \
32937                  -o "x$any2ppm_ps"  = "xyes" \
32938                  -o "x$any2ppm_cs"  = "xyes"; then
32939   BUILD_ANY2PPM_TRUE=
32940   BUILD_ANY2PPM_FALSE='#'
32941 else
32942   BUILD_ANY2PPM_TRUE='#'
32943   BUILD_ANY2PPM_FALSE=
32944 fi
32945
32946
32947
32948 case $host in
32949 *-*-darwin*)
32950         SHLIB_EXT="dylib"
32951         ;;
32952 *)
32953         SHLIB_EXT="so"
32954         ;;
32955 esac
32956
32957 cat >>confdefs.h <<_ACEOF
32958 #define SHARED_LIB_EXT "${SHLIB_EXT}"
32959 _ACEOF
32960
32961
32962
32963
32964 case $host in
32965 *-linux*|*-*bsd*|*-solaris*|*-*-darwin*|*-dragonfly*|*-*-gnu*)
32966         have_ld_preload="yes"
32967         ;;
32968 *)
32969         have_ld_preload="no"
32970         ;;
32971 esac
32972
32973                                                                                                                                 # Check whether --enable-trace was given.
32974 if test "${enable_trace+set}" = set; then :
32975   enableval=$enable_trace; enable_trace=$enableval
32976 else
32977   enable_trace=auto
32978 fi
32979
32980                         case $enable_trace in #(
32981   no) :
32982                 use_trace="no (disabled, use --enable-trace to enable)"
32983          ;; #(
32984         yes|auto) :
32985                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-trace feature" >&5
32986 $as_echo_n "checking for cairo's cairo-trace feature... " >&6; }
32987                 echo
32988
32989                 use_trace=yes
32990                         trace_BASE="cairo"
32991 trace_REQUIRES="$ac_env_trace_REQUIRES_value"
32992 trace_CFLAGS="$ac_env_trace_CFLAGS_value"
32993 trace_NONPKGCONFIG_CFLAGS="$ac_env_trace_NONPKGCONFIG_CFLAGS_value"
32994 trace_LIBS="$ac_env_trace_LIBS_value"
32995 trace_NONPKGCONFIG_LIBS="$ac_env_trace_NONPKGCONFIG_LIBS_value"
32996 trace_NONPKGCONFIG_EXTRA_LIBS="$ac_env_trace_NONPKGCONFIG_EXTRA_LIBS_value"
32997
32998
32999
33000         if test "x$have_ld_preload" != "xyes" -o \
33001                 "x$have_libz" != "xyes" -o \
33002                 "x$have_real_pthread" != "xyes" -o \
33003                 "x$have_dlsym" != "xyes"; then
33004                 use_trace="no (requires dynamic linker and zlib and real pthreads)"
33005         fi
33006
33007
33008                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-trace feature could be enabled" >&5
33009 $as_echo_n "checking whether cairo's cairo-trace feature could be enabled... " >&6; }
33010                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trace" >&5
33011 $as_echo "$use_trace" >&6; }
33012
33013                 if test "x$enable_trace" = "xyes" -a "x$use_trace" != xyes; then :
33014                         as_fn_error $? " cairo-trace feature could not be enabled" "$LINENO" 5
33015
33016 fi       ;; #(
33017   *) :
33018                         as_fn_error $? "invalid argument passed to --enable-trace: \`$use_trace', should be one of [no/auto/yes]" "$LINENO" 5
33019          ;;
33020 esac
33021         if test "x$use_trace" = "xyes"; then :
33022                                                                                 CAIRO_REQUIRES="$trace_REQUIRES"" ${CAIRO_REQUIRES}"
33023
33024                                                                         CAIRO_CFLAGS="$trace_CFLAGS"" ${CAIRO_CFLAGS}"
33025
33026                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$trace_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33027
33028                                                                         CAIRO_LIBS="$trace_LIBS"" ${CAIRO_LIBS}"
33029
33030                                                                         CAIRO_NONPKGCONFIG_LIBS="$trace_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33031
33032
33033 else
33034                                         unset trace_BASE
33035 unset trace_REQUIRES
33036 unset trace_CFLAGS
33037 unset trace_NONPKGCONFIG_CFLAGS
33038 unset trace_LIBS
33039 unset trace_NONPKGCONFIG_LIBS
33040 unset trace_NONPKGCONFIG_EXTRA_LIBS
33041
33042
33043 fi
33044
33045                                                          if test "x$use_trace" = xyes; then
33046   CAIRO_HAS_TRACE_TRUE=
33047   CAIRO_HAS_TRACE_FALSE='#'
33048 else
33049   CAIRO_HAS_TRACE_TRUE='#'
33050   CAIRO_HAS_TRACE_FALSE=
33051 fi
33052
33053
33054                                                                                 cr_make_tmp='CAIRO_HAS_TRACE=0'
33055                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
33056 ""$cr_make_tmp"
33057
33058
33059                                                                                 cr_make_tmp=''
33060                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33061 ""$cr_make_tmp"
33062
33063                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33064 ""$cr_make_tmp"
33065                                                                                 cr_make_tmp=''
33066                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33067 ""$cr_make_tmp"
33068
33069                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33070 ""$cr_make_tmp"
33071
33072
33073
33074
33075
33076
33077                                                                                 cr_make_tmp='all_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
33078 all_cairo_cxx_sources += $(cairo_trace_cxx_sources)
33079 all_cairo_sources += $(cairo_trace_sources)'
33080                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33081 ""$cr_make_tmp"
33082
33083                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33084 ""$cr_make_tmp"
33085                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
33086 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
33087 all_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
33088                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33089 ""$cr_make_tmp"
33090
33091                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33092 ""$cr_make_tmp"
33093
33094
33095                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_trace_private) $(cairo_trace_headers)
33096 enabled_cairo_cxx_sources += $(cairo_trace_cxx_sources)
33097 enabled_cairo_sources += $(cairo_trace_sources)'
33098                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33099 "'if CAIRO_HAS_TRACE'
33100                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33101 ""$cr_make_tmp"
33102                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33103 "'endif'
33104
33105                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33106 "'ifeq ($(CAIRO_HAS_TRACE),1)'
33107                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33108 ""$cr_make_tmp"
33109                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33110 "'endif'
33111                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_trace_private) $(cairo_boilerplate_trace_headers)
33112 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_trace_cxx_sources)
33113 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_trace_sources)'
33114                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33115 "'if CAIRO_HAS_TRACE'
33116                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33117 ""$cr_make_tmp"
33118                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33119 "'endif'
33120
33121                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33122 "'ifeq ($(CAIRO_HAS_TRACE),1)'
33123                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33124 ""$cr_make_tmp"
33125                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33126 "'endif'
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136                                         if test "x$use_trace" = xyes; then :
33137   :
33138
33139 $as_echo "#define CAIRO_HAS_TRACE 1" >>confdefs.h
33140
33141
33142
33143 fi
33144                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_TRACE 1" >> $(top_srcdir)/src/cairo-features.h'
33145                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33146 "'ifeq ($(CAIRO_HAS_TRACE),1)'
33147                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33148 ""$cr_make_tmp"
33149                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33150 "'endif'
33151
33152
33153
33154
33155
33156
33157
33158
33159                                                                                                                                 # Check whether --enable-interpreter was given.
33160 if test "${enable_interpreter+set}" = set; then :
33161   enableval=$enable_interpreter; enable_interpreter=$enableval
33162 else
33163   enable_interpreter=yes
33164 fi
33165
33166                         case $enable_interpreter in #(
33167   no) :
33168                 use_interpreter="no (disabled, use --enable-interpreter to enable)"
33169          ;; #(
33170         yes|auto) :
33171                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's cairo-script-interpreter feature" >&5
33172 $as_echo_n "checking for cairo's cairo-script-interpreter feature... " >&6; }
33173                 echo
33174
33175                 use_interpreter=yes
33176                         interpreter_BASE="cairo"
33177 interpreter_REQUIRES="$ac_env_interpreter_REQUIRES_value"
33178 interpreter_CFLAGS="$ac_env_interpreter_CFLAGS_value"
33179 interpreter_NONPKGCONFIG_CFLAGS="$ac_env_interpreter_NONPKGCONFIG_CFLAGS_value"
33180 interpreter_LIBS="$ac_env_interpreter_LIBS_value"
33181 interpreter_NONPKGCONFIG_LIBS="$ac_env_interpreter_NONPKGCONFIG_LIBS_value"
33182 interpreter_NONPKGCONFIG_EXTRA_LIBS="$ac_env_interpreter_NONPKGCONFIG_EXTRA_LIBS_value"
33183
33184
33185
33186         if test "x$have_libz" != "xyes"; then
33187                 use_interpreter="no (requires zlib)"
33188         fi
33189
33190
33191                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's cairo-script-interpreter feature could be enabled" >&5
33192 $as_echo_n "checking whether cairo's cairo-script-interpreter feature could be enabled... " >&6; }
33193                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_interpreter" >&5
33194 $as_echo "$use_interpreter" >&6; }
33195
33196                 if test "x$enable_interpreter" = "xyes" -a "x$use_interpreter" != xyes; then :
33197                         as_fn_error $? "recommended cairo-script-interpreter feature could not be enabled" "$LINENO" 5
33198
33199 fi       ;; #(
33200   *) :
33201                         as_fn_error $? "invalid argument passed to --enable-interpreter: \`$use_interpreter', should be one of [no/auto/yes]" "$LINENO" 5
33202          ;;
33203 esac
33204         if test "x$use_interpreter" = "xyes"; then :
33205                                                                                 CAIRO_REQUIRES="$interpreter_REQUIRES"" ${CAIRO_REQUIRES}"
33206
33207                                                                         CAIRO_CFLAGS="$interpreter_CFLAGS"" ${CAIRO_CFLAGS}"
33208
33209                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$interpreter_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33210
33211                                                                         CAIRO_LIBS="$interpreter_LIBS"" ${CAIRO_LIBS}"
33212
33213                                                                         CAIRO_NONPKGCONFIG_LIBS="$interpreter_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33214
33215
33216 else
33217                                         unset interpreter_BASE
33218 unset interpreter_REQUIRES
33219 unset interpreter_CFLAGS
33220 unset interpreter_NONPKGCONFIG_CFLAGS
33221 unset interpreter_LIBS
33222 unset interpreter_NONPKGCONFIG_LIBS
33223 unset interpreter_NONPKGCONFIG_EXTRA_LIBS
33224
33225
33226 fi
33227
33228                                                          if test "x$use_interpreter" = xyes; then
33229   CAIRO_HAS_INTERPRETER_TRUE=
33230   CAIRO_HAS_INTERPRETER_FALSE='#'
33231 else
33232   CAIRO_HAS_INTERPRETER_TRUE='#'
33233   CAIRO_HAS_INTERPRETER_FALSE=
33234 fi
33235
33236
33237                                                                                 cr_make_tmp='CAIRO_HAS_INTERPRETER=1'
33238                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
33239 ""$cr_make_tmp"
33240
33241
33242                                                                                 cr_make_tmp=''
33243                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33244 ""$cr_make_tmp"
33245
33246                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33247 ""$cr_make_tmp"
33248                                                                                 cr_make_tmp=''
33249                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33250 ""$cr_make_tmp"
33251
33252                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33253 ""$cr_make_tmp"
33254
33255
33256
33257
33258
33259
33260                                                                                 cr_make_tmp='all_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
33261 all_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
33262 all_cairo_sources += $(cairo_interpreter_sources)'
33263                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33264 ""$cr_make_tmp"
33265
33266                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33267 ""$cr_make_tmp"
33268                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
33269 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
33270 all_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
33271                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33272 ""$cr_make_tmp"
33273
33274                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33275 ""$cr_make_tmp"
33276
33277
33278                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_interpreter_private) $(cairo_interpreter_headers)
33279 enabled_cairo_cxx_sources += $(cairo_interpreter_cxx_sources)
33280 enabled_cairo_sources += $(cairo_interpreter_sources)'
33281                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33282 "'if CAIRO_HAS_INTERPRETER'
33283                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33284 ""$cr_make_tmp"
33285                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33286 "'endif'
33287
33288                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33289 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
33290                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33291 ""$cr_make_tmp"
33292                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33293 "'endif'
33294                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_interpreter_private) $(cairo_boilerplate_interpreter_headers)
33295 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_interpreter_cxx_sources)
33296 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_interpreter_sources)'
33297                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33298 "'if CAIRO_HAS_INTERPRETER'
33299                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33300 ""$cr_make_tmp"
33301                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33302 "'endif'
33303
33304                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33305 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
33306                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33307 ""$cr_make_tmp"
33308                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33309 "'endif'
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319                                         if test "x$use_interpreter" = xyes; then :
33320   :
33321
33322 $as_echo "#define CAIRO_HAS_INTERPRETER 1" >>confdefs.h
33323
33324
33325
33326 fi
33327                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_INTERPRETER 1" >> $(top_srcdir)/src/cairo-features.h'
33328                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33329 "'ifeq ($(CAIRO_HAS_INTERPRETER),1)'
33330                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33331 ""$cr_make_tmp"
33332                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33333 "'endif'
33334
33335
33336
33337                                         if test "x$use_interpreter" != xyes; then :
33338   :
33339                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
33340
33341 "'+++ It is strongly recommended that you do NOT disable the
33342 +++ cairo-script-interpreter feature.'
33343
33344
33345
33346 fi
33347
33348
33349
33350
33351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
33352 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; }
33353 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then :
33354   $as_echo_n "(cached) " >&6
33355 else
33356   ac_check_lib_save_LIBS=$LIBS
33357 LIBS="-lbfd  $LIBS"
33358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33359 /* end confdefs.h.  */
33360
33361 /* Override any GCC internal prototype to avoid an error.
33362    Use char because int might match the return type of a GCC
33363    builtin and then its argument prototype would still apply.  */
33364 #ifdef __cplusplus
33365 extern "C"
33366 #endif
33367 char bfd_openr ();
33368 int
33369 main ()
33370 {
33371 return bfd_openr ();
33372   ;
33373   return 0;
33374 }
33375 _ACEOF
33376 if ac_fn_c_try_link "$LINENO"; then :
33377   ac_cv_lib_bfd_bfd_openr=yes
33378 else
33379   ac_cv_lib_bfd_bfd_openr=no
33380 fi
33381 rm -f core conftest.err conftest.$ac_objext \
33382     conftest$ac_exeext conftest.$ac_ext
33383 LIBS=$ac_check_lib_save_LIBS
33384 fi
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
33386 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; }
33387 if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then :
33388   ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
33389 if test "x$ac_cv_header_bfd_h" = x""yes; then :
33390   have_bfd=yes
33391 else
33392   have_bfd=no
33393 fi
33394
33395
33396 else
33397   have_bfd=no
33398 fi
33399
33400 ac_fn_c_check_header_mongrel "$LINENO" "libiberty.h" "ac_cv_header_libiberty_h" "$ac_includes_default"
33401 if test "x$ac_cv_header_libiberty_h" = x""yes; then :
33402
33403 else
33404   have_bfd=no
33405 fi
33406
33407
33408 if test "x$have_bfd" = "xyes"; then
33409
33410 $as_echo "#define HAVE_BFD 1" >>confdefs.h
33411
33412     BFD_LIBS=-lbfd
33413
33414 fi
33415
33416                                                                                                                                 # Check whether --enable-symbol-lookup was given.
33417 if test "${enable_symbol_lookup+set}" = set; then :
33418   enableval=$enable_symbol_lookup; enable_symbol_lookup=$enableval
33419 else
33420   enable_symbol_lookup=auto
33421 fi
33422
33423                         case $enable_symbol_lookup in #(
33424   no) :
33425                 use_symbol_lookup="no (disabled, use --enable-symbol-lookup to enable)"
33426          ;; #(
33427         yes|auto) :
33428                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo's symbol-lookup feature" >&5
33429 $as_echo_n "checking for cairo's symbol-lookup feature... " >&6; }
33430                 echo
33431
33432                 use_symbol_lookup=yes
33433                         symbol_lookup_BASE="cairo"
33434 symbol_lookup_REQUIRES="$ac_env_symbol_lookup_REQUIRES_value"
33435 symbol_lookup_CFLAGS="$ac_env_symbol_lookup_CFLAGS_value"
33436 symbol_lookup_NONPKGCONFIG_CFLAGS="$ac_env_symbol_lookup_NONPKGCONFIG_CFLAGS_value"
33437 symbol_lookup_LIBS="$ac_env_symbol_lookup_LIBS_value"
33438 symbol_lookup_NONPKGCONFIG_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_LIBS_value"
33439 symbol_lookup_NONPKGCONFIG_EXTRA_LIBS="$ac_env_symbol_lookup_NONPKGCONFIG_EXTRA_LIBS_value"
33440
33441
33442
33443         if test "x$have_bfd" != "xyes"; then
33444                 use_symbol_lookup="no (requires bfd)"
33445         fi
33446
33447
33448                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo's symbol-lookup feature could be enabled" >&5
33449 $as_echo_n "checking whether cairo's symbol-lookup feature could be enabled... " >&6; }
33450                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_symbol_lookup" >&5
33451 $as_echo "$use_symbol_lookup" >&6; }
33452
33453                 if test "x$enable_symbol_lookup" = "xyes" -a "x$use_symbol_lookup" != xyes; then :
33454                         as_fn_error $? " symbol-lookup feature could not be enabled" "$LINENO" 5
33455
33456 fi       ;; #(
33457   *) :
33458                         as_fn_error $? "invalid argument passed to --enable-symbol-lookup: \`$use_symbol_lookup', should be one of [no/auto/yes]" "$LINENO" 5
33459          ;;
33460 esac
33461         if test "x$use_symbol_lookup" = "xyes"; then :
33462                                                                                 CAIRO_REQUIRES="$symbol_lookup_REQUIRES"" ${CAIRO_REQUIRES}"
33463
33464                                                                         CAIRO_CFLAGS="$symbol_lookup_CFLAGS"" ${CAIRO_CFLAGS}"
33465
33466                                                                         CAIRO_NONPKGCONFIG_CFLAGS="$symbol_lookup_NONPKGCONFIG_CFLAGS"" ${CAIRO_NONPKGCONFIG_CFLAGS}"
33467
33468                                                                         CAIRO_LIBS="$symbol_lookup_LIBS"" ${CAIRO_LIBS}"
33469
33470                                                                         CAIRO_NONPKGCONFIG_LIBS="$symbol_lookup_NONPKGCONFIG_LIBS"" ${CAIRO_NONPKGCONFIG_LIBS}"
33471
33472
33473 else
33474                                         unset symbol_lookup_BASE
33475 unset symbol_lookup_REQUIRES
33476 unset symbol_lookup_CFLAGS
33477 unset symbol_lookup_NONPKGCONFIG_CFLAGS
33478 unset symbol_lookup_LIBS
33479 unset symbol_lookup_NONPKGCONFIG_LIBS
33480 unset symbol_lookup_NONPKGCONFIG_EXTRA_LIBS
33481
33482
33483 fi
33484
33485                                                          if test "x$use_symbol_lookup" = xyes; then
33486   CAIRO_HAS_SYMBOL_LOOKUP_TRUE=
33487   CAIRO_HAS_SYMBOL_LOOKUP_FALSE='#'
33488 else
33489   CAIRO_HAS_SYMBOL_LOOKUP_TRUE='#'
33490   CAIRO_HAS_SYMBOL_LOOKUP_FALSE=
33491 fi
33492
33493
33494                                                                                 cr_make_tmp='CAIRO_HAS_SYMBOL_LOOKUP=0'
33495                                                                                                                 CAIRO_MAKEFILE___WIN32="${CAIRO_MAKEFILE___WIN32}
33496 ""$cr_make_tmp"
33497
33498
33499                                                                                 cr_make_tmp=''
33500                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33501 ""$cr_make_tmp"
33502
33503                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33504 ""$cr_make_tmp"
33505                                                                                 cr_make_tmp=''
33506                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33507 ""$cr_make_tmp"
33508
33509                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33510 ""$cr_make_tmp"
33511
33512
33513
33514
33515
33516
33517                                                                                 cr_make_tmp='all_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
33518 all_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
33519 all_cairo_sources += $(cairo_symbol_lookup_sources)'
33520                                                                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33521 ""$cr_make_tmp"
33522
33523                                                                                                                 CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33524 ""$cr_make_tmp"
33525                                                                                 cr_make_tmp='all_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
33526 all_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
33527 all_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
33528                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33529 ""$cr_make_tmp"
33530
33531                                                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33532 ""$cr_make_tmp"
33533
33534
33535                                                                                 cr_make_tmp='enabled_cairo_private += $(cairo_symbol_lookup_private) $(cairo_symbol_lookup_headers)
33536 enabled_cairo_cxx_sources += $(cairo_symbol_lookup_cxx_sources)
33537 enabled_cairo_sources += $(cairo_symbol_lookup_sources)'
33538                                                                                 CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33539 "'if CAIRO_HAS_SYMBOL_LOOKUP'
33540                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33541 ""$cr_make_tmp"
33542                                         CAIRO_MAKEFILE_cairo_AMAKE="${CAIRO_MAKEFILE_cairo_AMAKE}
33543 "'endif'
33544
33545                                                                                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33546 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
33547                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33548 ""$cr_make_tmp"
33549                                         CAIRO_MAKEFILE_cairo_WIN32="${CAIRO_MAKEFILE_cairo_WIN32}
33550 "'endif'
33551                                                                         cr_make_tmp='enabled_cairo_boilerplate_private += $(cairo_boilerplate_symbol_lookup_private) $(cairo_boilerplate_symbol_lookup_headers)
33552 enabled_cairo_boilerplate_cxx_sources += $(cairo_boilerplate_symbol_lookup_cxx_sources)
33553 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_symbol_lookup_sources)'
33554                                                                                 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33555 "'if CAIRO_HAS_SYMBOL_LOOKUP'
33556                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33557 ""$cr_make_tmp"
33558                                         CAIRO_MAKEFILE_cairo_boilerplate_AMAKE="${CAIRO_MAKEFILE_cairo_boilerplate_AMAKE}
33559 "'endif'
33560
33561                                                                                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33562 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
33563                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33564 ""$cr_make_tmp"
33565                                         CAIRO_MAKEFILE_cairo_boilerplate_WIN32="${CAIRO_MAKEFILE_cairo_boilerplate_WIN32}
33566 "'endif'
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576                                         if test "x$use_symbol_lookup" = xyes; then :
33577   :
33578
33579 $as_echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >>confdefs.h
33580
33581
33582
33583 fi
33584                                                                                 cr_make_tmp='   @echo "#define CAIRO_HAS_SYMBOL_LOOKUP 1" >> $(top_srcdir)/src/cairo-features.h'
33585                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33586 "'ifeq ($(CAIRO_HAS_SYMBOL_LOOKUP),1)'
33587                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33588 ""$cr_make_tmp"
33589                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33590 "'endif'
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600 pkg_failed=no
33601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
33602 $as_echo_n "checking for glib... " >&6; }
33603
33604 if test -n "$glib_CFLAGS"; then
33605     pkg_cv_glib_CFLAGS="$glib_CFLAGS"
33606  elif test -n "$PKG_CONFIG"; then
33607     if test -n "$PKG_CONFIG" && \
33608     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
33609   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
33610   ac_status=$?
33611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33612   test $ac_status = 0; }; then
33613   pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
33614 else
33615   pkg_failed=yes
33616 fi
33617  else
33618     pkg_failed=untried
33619 fi
33620 if test -n "$glib_LIBS"; then
33621     pkg_cv_glib_LIBS="$glib_LIBS"
33622  elif test -n "$PKG_CONFIG"; then
33623     if test -n "$PKG_CONFIG" && \
33624     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
33625   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
33626   ac_status=$?
33627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33628   test $ac_status = 0; }; then
33629   pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
33630 else
33631   pkg_failed=yes
33632 fi
33633  else
33634     pkg_failed=untried
33635 fi
33636
33637
33638
33639 if test $pkg_failed = yes; then
33640
33641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33642         _pkg_short_errors_supported=yes
33643 else
33644         _pkg_short_errors_supported=no
33645 fi
33646         if test $_pkg_short_errors_supported = yes; then
33647                 glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
33648         else
33649                 glib_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
33650         fi
33651         # Put the nasty error message in config.log where it belongs
33652         echo "$glib_PKG_ERRORS" >&5
33653
33654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33655 $as_echo "no" >&6; }
33656                 have_glib=no
33657 elif test $pkg_failed = untried; then
33658         have_glib=no
33659 else
33660         glib_CFLAGS=$pkg_cv_glib_CFLAGS
33661         glib_LIBS=$pkg_cv_glib_LIBS
33662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33663 $as_echo "yes" >&6; }
33664         have_glib=yes
33665 fi
33666
33667
33668  if test "x$have_glib" = "xyes"; then
33669   BUILD_SPHINX_TRUE=
33670   BUILD_SPHINX_FALSE='#'
33671 else
33672   BUILD_SPHINX_TRUE='#'
33673   BUILD_SPHINX_FALSE=
33674 fi
33675
33676
33677 save_LIBS="$LIBS"
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
33679 $as_echo_n "checking for shm_open in -lrt... " >&6; }
33680 if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
33681   $as_echo_n "(cached) " >&6
33682 else
33683   ac_check_lib_save_LIBS=$LIBS
33684 LIBS="-lrt  $LIBS"
33685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33686 /* end confdefs.h.  */
33687
33688 /* Override any GCC internal prototype to avoid an error.
33689    Use char because int might match the return type of a GCC
33690    builtin and then its argument prototype would still apply.  */
33691 #ifdef __cplusplus
33692 extern "C"
33693 #endif
33694 char shm_open ();
33695 int
33696 main ()
33697 {
33698 return shm_open ();
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 if ac_fn_c_try_link "$LINENO"; then :
33704   ac_cv_lib_rt_shm_open=yes
33705 else
33706   ac_cv_lib_rt_shm_open=no
33707 fi
33708 rm -f core conftest.err conftest.$ac_objext \
33709     conftest$ac_exeext conftest.$ac_ext
33710 LIBS=$ac_check_lib_save_LIBS
33711 fi
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
33713 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
33714 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
33715   shm_LIBS="-lrt"
33716 fi
33717
33718
33719 LIBS="$save_LIBS"
33720
33721
33722 # Check whether --enable-some-floating-point was given.
33723 if test "${enable_some_floating_point+set}" = set; then :
33724   enableval=$enable_some_floating_point;
33725 if test "x$enableval" = "xno"; then
33726   # A value of 'no' for $enableval means that they want to disable, which
33727   # means 'yes' for $disable_some_floating_point.
33728   disable_some_floating_point=yes
33729 fi
33730
33731 else
33732   disable_some_floating_point=no
33733 fi
33734
33735
33736  if test "x$disable_some_floating_point" = "xyes"; then
33737   DISABLE_SOME_FLOATING_POINT_TRUE=
33738   DISABLE_SOME_FLOATING_POINT_FALSE='#'
33739 else
33740   DISABLE_SOME_FLOATING_POINT_TRUE='#'
33741   DISABLE_SOME_FLOATING_POINT_FALSE=
33742 fi
33743
33744 if test "x$disable_some_floating_point" = "xyes"; then
33745
33746 $as_echo "#define DISABLE_SOME_FLOATING_POINT 1" >>confdefs.h
33747
33748 fi
33749
33750
33751 need_cxx="no"
33752 if test "x$use_skia" = "xyes"; then :
33753   need_cxx="yes"
33754 fi
33755 if test "x$use_qt" = "xyes"; then :
33756   need_cxx="yes"
33757 fi
33758 if test "x$use_beos" = "xyes"; then :
33759   need_cxx="yes"
33760 fi
33761
33762  if test "x$need_cxx" = "xyes"; then
33763   BUILD_CXX_TRUE=
33764   BUILD_CXX_FALSE='#'
33765 else
33766   BUILD_CXX_TRUE='#'
33767   BUILD_CXX_FALSE=
33768 fi
33769
33770
33771
33772 # We use GTK+ for some utility/debugging tools
33773
33774 pkg_failed=no
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk" >&5
33776 $as_echo_n "checking for gtk... " >&6; }
33777
33778 if test -n "$gtk_CFLAGS"; then
33779     pkg_cv_gtk_CFLAGS="$gtk_CFLAGS"
33780  elif test -n "$PKG_CONFIG"; then
33781     if test -n "$PKG_CONFIG" && \
33782     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
33783   ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
33784   ac_status=$?
33785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33786   test $ac_status = 0; }; then
33787   pkg_cv_gtk_CFLAGS=`$PKG_CONFIG --cflags ""gtk+-2.0"" 2>/dev/null`
33788 else
33789   pkg_failed=yes
33790 fi
33791  else
33792     pkg_failed=untried
33793 fi
33794 if test -n "$gtk_LIBS"; then
33795     pkg_cv_gtk_LIBS="$gtk_LIBS"
33796  elif test -n "$PKG_CONFIG"; then
33797     if test -n "$PKG_CONFIG" && \
33798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"gtk+-2.0\"\""; } >&5
33799   ($PKG_CONFIG --exists --print-errors ""gtk+-2.0"") 2>&5
33800   ac_status=$?
33801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33802   test $ac_status = 0; }; then
33803   pkg_cv_gtk_LIBS=`$PKG_CONFIG --libs ""gtk+-2.0"" 2>/dev/null`
33804 else
33805   pkg_failed=yes
33806 fi
33807  else
33808     pkg_failed=untried
33809 fi
33810
33811
33812
33813 if test $pkg_failed = yes; then
33814
33815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33816         _pkg_short_errors_supported=yes
33817 else
33818         _pkg_short_errors_supported=no
33819 fi
33820         if test $_pkg_short_errors_supported = yes; then
33821                 gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors ""gtk+-2.0"" 2>&1`
33822         else
33823                 gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors ""gtk+-2.0"" 2>&1`
33824         fi
33825         # Put the nasty error message in config.log where it belongs
33826         echo "$gtk_PKG_ERRORS" >&5
33827
33828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33829 $as_echo "no" >&6; }
33830                 have_gtk=no
33831 elif test $pkg_failed = untried; then
33832         have_gtk=no
33833 else
33834         gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
33835         gtk_LIBS=$pkg_cv_gtk_LIBS
33836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33837 $as_echo "yes" >&6; }
33838         have_gtk=yes
33839 fi
33840  if test "x$have_gtk" = "xyes"; then
33841   HAVE_GTK_TRUE=
33842   HAVE_GTK_FALSE='#'
33843 else
33844   HAVE_GTK_TRUE='#'
33845   HAVE_GTK_FALSE=
33846 fi
33847
33848
33849 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"
33850
33851
33852 cat >confcache <<\_ACEOF
33853 # This file is a shell script that caches the results of configure
33854 # tests run on this system so they can be shared between configure
33855 # scripts and configure runs, see configure's option --config-cache.
33856 # It is not useful on other systems.  If it contains results you don't
33857 # want to keep, you may remove or edit it.
33858 #
33859 # config.status only pays attention to the cache file if you give it
33860 # the --recheck option to rerun configure.
33861 #
33862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33864 # following values.
33865
33866 _ACEOF
33867
33868 # The following way of writing the cache mishandles newlines in values,
33869 # but we know of no workaround that is simple, portable, and efficient.
33870 # So, we kill variables containing newlines.
33871 # Ultrix sh set writes to stderr and can't be redirected directly,
33872 # and sets the high bit in the cache file unless we assign to the vars.
33873 (
33874   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33875     eval ac_val=\$$ac_var
33876     case $ac_val in #(
33877     *${as_nl}*)
33878       case $ac_var in #(
33879       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33881       esac
33882       case $ac_var in #(
33883       _ | IFS | as_nl) ;; #(
33884       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33885       *) { eval $ac_var=; unset $ac_var;} ;;
33886       esac ;;
33887     esac
33888   done
33889
33890   (set) 2>&1 |
33891     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33892     *${as_nl}ac_space=\ *)
33893       # `set' does not quote correctly, so add quotes: double-quote
33894       # substitution turns \\\\ into \\, and sed turns \\ into \.
33895       sed -n \
33896         "s/'/'\\\\''/g;
33897           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33898       ;; #(
33899     *)
33900       # `set' quotes correctly as required by POSIX, so do not add quotes.
33901       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33902       ;;
33903     esac |
33904     sort
33905 ) |
33906   sed '
33907      /^ac_cv_env_/b end
33908      t clear
33909      :clear
33910      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33911      t end
33912      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33913      :end' >>confcache
33914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33915   if test -w "$cache_file"; then
33916     test "x$cache_file" != "x/dev/null" &&
33917       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33918 $as_echo "$as_me: updating cache $cache_file" >&6;}
33919     cat confcache >$cache_file
33920   else
33921     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33923   fi
33924 fi
33925 rm -f confcache
33926
33927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33928 # Let make expand exec_prefix.
33929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33930
33931 DEFS=-DHAVE_CONFIG_H
33932
33933 ac_libobjs=
33934 ac_ltlibobjs=
33935 U=
33936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33937   # 1. Remove the extension, and $U if already installed.
33938   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33939   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33940   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33941   #    will be set to the directory where LIBOBJS objects are built.
33942   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33943   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33944 done
33945 LIBOBJS=$ac_libobjs
33946
33947 LTLIBOBJS=$ac_ltlibobjs
33948
33949
33950 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33951   as_fn_error $? "conditional \"AMDEP\" was never defined.
33952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33953 fi
33954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33955   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33957 fi
33958  if test -n "$EXEEXT"; then
33959   am__EXEEXT_TRUE=
33960   am__EXEEXT_FALSE='#'
33961 else
33962   am__EXEEXT_TRUE='#'
33963   am__EXEEXT_FALSE=
33964 fi
33965
33966 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
33967   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
33968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33969 fi
33970 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
33971   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
33972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33973 fi
33974 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
33975   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
33976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33977 fi
33978 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
33979   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
33980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33981 fi
33982 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
33983   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
33984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33985 fi
33986 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33987   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33989 fi
33990 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33991   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33993 fi
33994 CAIRO_CFLAGS="$CAIRO_CFLAGS $CAIRO_NONPKGCONFIG_CFLAGS"
33995 CAIRO_LIBS="$CAIRO_LIBS $CAIRO_NONPKGCONFIG_LIBS"
33996
33997                                                                 cr_make_tmp='   @echo "#endif" >>  $(top_srcdir)/src/cairo-features.h'
33998                                                                                                         CAIRO_MAKEFILE_win32_features_h_WIN32="${CAIRO_MAKEFILE_win32_features_h_WIN32}
33999 ""$cr_make_tmp"
34000
34001
34002
34003         if test -z "$CAIRO_NATIVE_SURFACE_BACKENDS"; then :
34004                                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
34005
34006 "'*** No native surface backends enabled for your platform. It is strongly
34007 *** recommended that you enable the native surface backend feature for your
34008 *** platform.'
34009
34010
34011 fi
34012         if test -z "$CAIRO_NATIVE_FONT_BACKENDS"; then :
34013                                                         CAIRO_WARNING_MESSAGE="${CAIRO_WARNING_MESSAGE}
34014
34015 "'*** No native font backends enabled for your platform. It is strongly
34016 *** recommended that you enable the native font backend feature for your
34017 *** platform.'
34018
34019
34020 fi
34021
34022 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
34023   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
34024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34025 fi
34026
34027 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
34028   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
34029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34030 fi
34031 if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then
34032   as_fn_error $? "conditional \"HAVE_SHM\" was never defined.
34033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34034 fi
34035 if test -z "${CAIRO_HAS_LCOV_TRUE}" && test -z "${CAIRO_HAS_LCOV_FALSE}"; then
34036   as_fn_error $? "conditional \"CAIRO_HAS_LCOV\" was never defined.
34037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34038 fi
34039 if test -z "${CAIRO_HAS_DL_TRUE}" && test -z "${CAIRO_HAS_DL_FALSE}"; then
34040   as_fn_error $? "conditional \"CAIRO_HAS_DL\" was never defined.
34041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34042 fi
34043 if test -z "${CAIRO_HAS_DLSYM_TRUE}" && test -z "${CAIRO_HAS_DLSYM_FALSE}"; then
34044   as_fn_error $? "conditional \"CAIRO_HAS_DLSYM\" was never defined.
34045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34046 fi
34047 if test -z "${CAIRO_HAS_XLIB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_SURFACE_FALSE}"; then
34048   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_SURFACE\" was never defined.
34049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34050 fi
34051 if test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XLIB_XRENDER_SURFACE_FALSE}"; then
34052   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XRENDER_SURFACE\" was never defined.
34053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34054 fi
34055 if test -z "${CAIRO_HAS_XCB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XCB_SURFACE_FALSE}"; then
34056   as_fn_error $? "conditional \"CAIRO_HAS_XCB_SURFACE\" was never defined.
34057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34058 fi
34059 if test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XLIB_XCB_FUNCTIONS_FALSE}"; then
34060   as_fn_error $? "conditional \"CAIRO_HAS_XLIB_XCB_FUNCTIONS\" was never defined.
34061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34062 fi
34063 if test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_XCB_SHM_FUNCTIONS_FALSE}"; then
34064   as_fn_error $? "conditional \"CAIRO_HAS_XCB_SHM_FUNCTIONS\" was never defined.
34065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34066 fi
34067 if test -z "${CAIRO_HAS_QT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QT_SURFACE_FALSE}"; then
34068   as_fn_error $? "conditional \"CAIRO_HAS_QT_SURFACE\" was never defined.
34069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34070 fi
34071 if test -z "${CAIRO_HAS_QUARTZ_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_SURFACE_FALSE}"; then
34072   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_SURFACE\" was never defined.
34073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34074 fi
34075 if test -z "${CAIRO_HAS_QUARTZ_FONT_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_FONT_FALSE}"; then
34076   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_FONT\" was never defined.
34077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34078 fi
34079 if test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_QUARTZ_IMAGE_SURFACE_FALSE}"; then
34080   as_fn_error $? "conditional \"CAIRO_HAS_QUARTZ_IMAGE_SURFACE\" was never defined.
34081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34082 fi
34083 if test -z "${CAIRO_HAS_WIN32_SURFACE_TRUE}" && test -z "${CAIRO_HAS_WIN32_SURFACE_FALSE}"; then
34084   as_fn_error $? "conditional \"CAIRO_HAS_WIN32_SURFACE\" was never defined.
34085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34086 fi
34087 if test -z "${CAIRO_HAS_WIN32_FONT_TRUE}" && test -z "${CAIRO_HAS_WIN32_FONT_FALSE}"; then
34088   as_fn_error $? "conditional \"CAIRO_HAS_WIN32_FONT\" was never defined.
34089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34090 fi
34091 if test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE_FALSE}"; then
34092   as_fn_error $? "conditional \"CAIRO_CAN_TEST_WIN32_PRINTING_SURFACE\" was never defined.
34093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34094 fi
34095 if test -z "${CAIRO_HAS_SKIA_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SKIA_SURFACE_FALSE}"; then
34096   as_fn_error $? "conditional \"CAIRO_HAS_SKIA_SURFACE\" was never defined.
34097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34098 fi
34099 if test -z "${CAIRO_HAS_OS2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_OS2_SURFACE_FALSE}"; then
34100   as_fn_error $? "conditional \"CAIRO_HAS_OS2_SURFACE\" was never defined.
34101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34102 fi
34103 if test -z "${CAIRO_HAS_BEOS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_BEOS_SURFACE_FALSE}"; then
34104   as_fn_error $? "conditional \"CAIRO_HAS_BEOS_SURFACE\" was never defined.
34105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34106 fi
34107 if test -z "${CAIRO_HAS_DRM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DRM_SURFACE_FALSE}"; then
34108   as_fn_error $? "conditional \"CAIRO_HAS_DRM_SURFACE\" was never defined.
34109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34110 fi
34111 if test -z "${CAIRO_HAS_GALLIUM_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GALLIUM_SURFACE_FALSE}"; then
34112   as_fn_error $? "conditional \"CAIRO_HAS_GALLIUM_SURFACE\" was never defined.
34113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34114 fi
34115 if test -z "${CAIRO_HAS_PNG_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_PNG_FUNCTIONS_FALSE}"; then
34116   as_fn_error $? "conditional \"CAIRO_HAS_PNG_FUNCTIONS\" was never defined.
34117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34118 fi
34119 if test -z "${CAIRO_HAS_GL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GL_SURFACE_FALSE}"; then
34120   as_fn_error $? "conditional \"CAIRO_HAS_GL_SURFACE\" was never defined.
34121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34122 fi
34123 if test -z "${CAIRO_HAS_GLESV2_SURFACE_TRUE}" && test -z "${CAIRO_HAS_GLESV2_SURFACE_FALSE}"; then
34124   as_fn_error $? "conditional \"CAIRO_HAS_GLESV2_SURFACE\" was never defined.
34125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34126 fi
34127 if test -z "${CAIRO_HAS_COGL_SURFACE_TRUE}" && test -z "${CAIRO_HAS_COGL_SURFACE_FALSE}"; then
34128   as_fn_error $? "conditional \"CAIRO_HAS_COGL_SURFACE\" was never defined.
34129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34130 fi
34131 if test -z "${CAIRO_HAS_DIRECTFB_SURFACE_TRUE}" && test -z "${CAIRO_HAS_DIRECTFB_SURFACE_FALSE}"; then
34132   as_fn_error $? "conditional \"CAIRO_HAS_DIRECTFB_SURFACE\" was never defined.
34133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34134 fi
34135 if test -z "${CAIRO_HAS_VG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_VG_SURFACE_FALSE}"; then
34136   as_fn_error $? "conditional \"CAIRO_HAS_VG_SURFACE\" was never defined.
34137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34138 fi
34139 if test -z "${CAIRO_HAS_EGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_EGL_FUNCTIONS_FALSE}"; then
34140   as_fn_error $? "conditional \"CAIRO_HAS_EGL_FUNCTIONS\" was never defined.
34141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34142 fi
34143 if test -z "${CAIRO_HAS_GLX_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GLX_FUNCTIONS_FALSE}"; then
34144   as_fn_error $? "conditional \"CAIRO_HAS_GLX_FUNCTIONS\" was never defined.
34145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34146 fi
34147 if test -z "${CAIRO_HAS_WGL_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_WGL_FUNCTIONS_FALSE}"; then
34148   as_fn_error $? "conditional \"CAIRO_HAS_WGL_FUNCTIONS\" was never defined.
34149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34150 fi
34151 if test -z "${CAIRO_HAS_SCRIPT_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SCRIPT_SURFACE_FALSE}"; then
34152   as_fn_error $? "conditional \"CAIRO_HAS_SCRIPT_SURFACE\" was never defined.
34153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34154 fi
34155 if test -z "${CAIRO_HAS_FT_FONT_TRUE}" && test -z "${CAIRO_HAS_FT_FONT_FALSE}"; then
34156   as_fn_error $? "conditional \"CAIRO_HAS_FT_FONT\" was never defined.
34157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34158 fi
34159 if test -z "${CAIRO_HAS_FC_FONT_TRUE}" && test -z "${CAIRO_HAS_FC_FONT_FALSE}"; then
34160   as_fn_error $? "conditional \"CAIRO_HAS_FC_FONT\" was never defined.
34161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34162 fi
34163 if test -z "${CAIRO_HAS_PS_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PS_SURFACE_FALSE}"; then
34164   as_fn_error $? "conditional \"CAIRO_HAS_PS_SURFACE\" was never defined.
34165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34166 fi
34167 if test -z "${CAIRO_CAN_TEST_PS_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PS_SURFACE_FALSE}"; then
34168   as_fn_error $? "conditional \"CAIRO_CAN_TEST_PS_SURFACE\" was never defined.
34169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34170 fi
34171 if test -z "${CAIRO_HAS_SPECTRE_TRUE}" && test -z "${CAIRO_HAS_SPECTRE_FALSE}"; then
34172   as_fn_error $? "conditional \"CAIRO_HAS_SPECTRE\" was never defined.
34173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34174 fi
34175 if test -z "${CAIRO_HAS_PDF_SURFACE_TRUE}" && test -z "${CAIRO_HAS_PDF_SURFACE_FALSE}"; then
34176   as_fn_error $? "conditional \"CAIRO_HAS_PDF_SURFACE\" was never defined.
34177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34178 fi
34179 if test -z "${CAIRO_CAN_TEST_PDF_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_PDF_SURFACE_FALSE}"; then
34180   as_fn_error $? "conditional \"CAIRO_CAN_TEST_PDF_SURFACE\" was never defined.
34181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34182 fi
34183 if test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_TRUE}" && test -z "${CAIRO_HAS_MULTI_PAGE_SURFACES_FALSE}"; then
34184   as_fn_error $? "conditional \"CAIRO_HAS_MULTI_PAGE_SURFACES\" was never defined.
34185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34186 fi
34187 if test -z "${CAIRO_HAS_SVG_SURFACE_TRUE}" && test -z "${CAIRO_HAS_SVG_SURFACE_FALSE}"; then
34188   as_fn_error $? "conditional \"CAIRO_HAS_SVG_SURFACE\" was never defined.
34189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34190 fi
34191 if test -z "${CAIRO_CAN_TEST_SVG_SURFACE_TRUE}" && test -z "${CAIRO_CAN_TEST_SVG_SURFACE_FALSE}"; then
34192   as_fn_error $? "conditional \"CAIRO_CAN_TEST_SVG_SURFACE\" was never defined.
34193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34194 fi
34195 if test -z "${CAIRO_HAS_TEST_SURFACES_TRUE}" && test -z "${CAIRO_HAS_TEST_SURFACES_FALSE}"; then
34196   as_fn_error $? "conditional \"CAIRO_HAS_TEST_SURFACES\" was never defined.
34197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34198 fi
34199 if test -z "${CAIRO_HAS_TEE_SURFACE_TRUE}" && test -z "${CAIRO_HAS_TEE_SURFACE_FALSE}"; then
34200   as_fn_error $? "conditional \"CAIRO_HAS_TEE_SURFACE\" was never defined.
34201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34202 fi
34203 if test -z "${CAIRO_HAS_XML_SURFACE_TRUE}" && test -z "${CAIRO_HAS_XML_SURFACE_FALSE}"; then
34204   as_fn_error $? "conditional \"CAIRO_HAS_XML_SURFACE\" was never defined.
34205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34206 fi
34207 if test -z "${CAIRO_HAS_PTHREAD_TRUE}" && test -z "${CAIRO_HAS_PTHREAD_FALSE}"; then
34208   as_fn_error $? "conditional \"CAIRO_HAS_PTHREAD\" was never defined.
34209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34210 fi
34211 if test -z "${HAVE_REAL_PTHREAD_TRUE}" && test -z "${HAVE_REAL_PTHREAD_FALSE}"; then
34212   as_fn_error $? "conditional \"HAVE_REAL_PTHREAD\" was never defined.
34213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34214 fi
34215 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
34216   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
34217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34218 fi
34219 if test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_TRUE}" && test -z "${CAIRO_HAS_GOBJECT_FUNCTIONS_FALSE}"; then
34220   as_fn_error $? "conditional \"CAIRO_HAS_GOBJECT_FUNCTIONS\" was never defined.
34221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34222 fi
34223 if test -z "${BUILD_ANY2PPM_TRUE}" && test -z "${BUILD_ANY2PPM_FALSE}"; then
34224   as_fn_error $? "conditional \"BUILD_ANY2PPM\" was never defined.
34225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34226 fi
34227 if test -z "${CAIRO_HAS_TRACE_TRUE}" && test -z "${CAIRO_HAS_TRACE_FALSE}"; then
34228   as_fn_error $? "conditional \"CAIRO_HAS_TRACE\" was never defined.
34229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34230 fi
34231 if test -z "${CAIRO_HAS_INTERPRETER_TRUE}" && test -z "${CAIRO_HAS_INTERPRETER_FALSE}"; then
34232   as_fn_error $? "conditional \"CAIRO_HAS_INTERPRETER\" was never defined.
34233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34234 fi
34235 if test -z "${CAIRO_HAS_SYMBOL_LOOKUP_TRUE}" && test -z "${CAIRO_HAS_SYMBOL_LOOKUP_FALSE}"; then
34236   as_fn_error $? "conditional \"CAIRO_HAS_SYMBOL_LOOKUP\" was never defined.
34237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34238 fi
34239 if test -z "${BUILD_SPHINX_TRUE}" && test -z "${BUILD_SPHINX_FALSE}"; then
34240   as_fn_error $? "conditional \"BUILD_SPHINX\" was never defined.
34241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34242 fi
34243 if test -z "${DISABLE_SOME_FLOATING_POINT_TRUE}" && test -z "${DISABLE_SOME_FLOATING_POINT_FALSE}"; then
34244   as_fn_error $? "conditional \"DISABLE_SOME_FLOATING_POINT\" was never defined.
34245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34246 fi
34247 if test -z "${BUILD_CXX_TRUE}" && test -z "${BUILD_CXX_FALSE}"; then
34248   as_fn_error $? "conditional \"BUILD_CXX\" was never defined.
34249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34250 fi
34251 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
34252   as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
34253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34254 fi
34255
34256 : ${CONFIG_STATUS=./config.status}
34257 ac_write_fail=0
34258 ac_clean_files_save=$ac_clean_files
34259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34261 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34262 as_write_fail=0
34263 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34264 #! $SHELL
34265 # Generated by $as_me.
34266 # Run this file to recreate the current configuration.
34267 # Compiler output produced by configure, useful for debugging
34268 # configure, is in config.log if it exists.
34269
34270 debug=false
34271 ac_cs_recheck=false
34272 ac_cs_silent=false
34273
34274 SHELL=\${CONFIG_SHELL-$SHELL}
34275 export SHELL
34276 _ASEOF
34277 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34278 ## -------------------- ##
34279 ## M4sh Initialization. ##
34280 ## -------------------- ##
34281
34282 # Be more Bourne compatible
34283 DUALCASE=1; export DUALCASE # for MKS sh
34284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34285   emulate sh
34286   NULLCMD=:
34287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34288   # is contrary to our usage.  Disable this feature.
34289   alias -g '${1+"$@"}'='"$@"'
34290   setopt NO_GLOB_SUBST
34291 else
34292   case `(set -o) 2>/dev/null` in #(
34293   *posix*) :
34294     set -o posix ;; #(
34295   *) :
34296      ;;
34297 esac
34298 fi
34299
34300
34301 as_nl='
34302 '
34303 export as_nl
34304 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34305 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34308 # Prefer a ksh shell builtin over an external printf program on Solaris,
34309 # but without wasting forks for bash or zsh.
34310 if test -z "$BASH_VERSION$ZSH_VERSION" \
34311     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34312   as_echo='print -r --'
34313   as_echo_n='print -rn --'
34314 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34315   as_echo='printf %s\n'
34316   as_echo_n='printf %s'
34317 else
34318   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34319     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34320     as_echo_n='/usr/ucb/echo -n'
34321   else
34322     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34323     as_echo_n_body='eval
34324       arg=$1;
34325       case $arg in #(
34326       *"$as_nl"*)
34327         expr "X$arg" : "X\\(.*\\)$as_nl";
34328         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34329       esac;
34330       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34331     '
34332     export as_echo_n_body
34333     as_echo_n='sh -c $as_echo_n_body as_echo'
34334   fi
34335   export as_echo_body
34336   as_echo='sh -c $as_echo_body as_echo'
34337 fi
34338
34339 # The user is always right.
34340 if test "${PATH_SEPARATOR+set}" != set; then
34341   PATH_SEPARATOR=:
34342   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34343     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34344       PATH_SEPARATOR=';'
34345   }
34346 fi
34347
34348
34349 # IFS
34350 # We need space, tab and new line, in precisely that order.  Quoting is
34351 # there to prevent editors from complaining about space-tab.
34352 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34353 # splitting by setting IFS to empty value.)
34354 IFS=" ""        $as_nl"
34355
34356 # Find who we are.  Look in the path if we contain no directory separator.
34357 case $0 in #((
34358   *[\\/]* ) as_myself=$0 ;;
34359   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34360 for as_dir in $PATH
34361 do
34362   IFS=$as_save_IFS
34363   test -z "$as_dir" && as_dir=.
34364     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34365   done
34366 IFS=$as_save_IFS
34367
34368      ;;
34369 esac
34370 # We did not find ourselves, most probably we were run as `sh COMMAND'
34371 # in which case we are not to be found in the path.
34372 if test "x$as_myself" = x; then
34373   as_myself=$0
34374 fi
34375 if test ! -f "$as_myself"; then
34376   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34377   exit 1
34378 fi
34379
34380 # Unset variables that we do not need and which cause bugs (e.g. in
34381 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
34382 # suppresses any "Segmentation fault" message there.  '((' could
34383 # trigger a bug in pdksh 5.2.14.
34384 for as_var in BASH_ENV ENV MAIL MAILPATH
34385 do eval test x\${$as_var+set} = xset \
34386   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34387 done
34388 PS1='$ '
34389 PS2='> '
34390 PS4='+ '
34391
34392 # NLS nuisances.
34393 LC_ALL=C
34394 export LC_ALL
34395 LANGUAGE=C
34396 export LANGUAGE
34397
34398 # CDPATH.
34399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34400
34401
34402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34403 # ----------------------------------------
34404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34406 # script with STATUS, using 1 if that was 0.
34407 as_fn_error ()
34408 {
34409   as_status=$1; test $as_status -eq 0 && as_status=1
34410   if test "$4"; then
34411     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34412     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34413   fi
34414   $as_echo "$as_me: error: $2" >&2
34415   as_fn_exit $as_status
34416 } # as_fn_error
34417
34418
34419 # as_fn_set_status STATUS
34420 # -----------------------
34421 # Set $? to STATUS, without forking.
34422 as_fn_set_status ()
34423 {
34424   return $1
34425 } # as_fn_set_status
34426
34427 # as_fn_exit STATUS
34428 # -----------------
34429 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34430 as_fn_exit ()
34431 {
34432   set +e
34433   as_fn_set_status $1
34434   exit $1
34435 } # as_fn_exit
34436
34437 # as_fn_unset VAR
34438 # ---------------
34439 # Portably unset VAR.
34440 as_fn_unset ()
34441 {
34442   { eval $1=; unset $1;}
34443 }
34444 as_unset=as_fn_unset
34445 # as_fn_append VAR VALUE
34446 # ----------------------
34447 # Append the text in VALUE to the end of the definition contained in VAR. Take
34448 # advantage of any shell optimizations that allow amortized linear growth over
34449 # repeated appends, instead of the typical quadratic growth present in naive
34450 # implementations.
34451 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34452   eval 'as_fn_append ()
34453   {
34454     eval $1+=\$2
34455   }'
34456 else
34457   as_fn_append ()
34458   {
34459     eval $1=\$$1\$2
34460   }
34461 fi # as_fn_append
34462
34463 # as_fn_arith ARG...
34464 # ------------------
34465 # Perform arithmetic evaluation on the ARGs, and store the result in the
34466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34467 # must be portable across $(()) and expr.
34468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34469   eval 'as_fn_arith ()
34470   {
34471     as_val=$(( $* ))
34472   }'
34473 else
34474   as_fn_arith ()
34475   {
34476     as_val=`expr "$@" || test $? -eq 1`
34477   }
34478 fi # as_fn_arith
34479
34480
34481 if expr a : '\(a\)' >/dev/null 2>&1 &&
34482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34483   as_expr=expr
34484 else
34485   as_expr=false
34486 fi
34487
34488 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34489   as_basename=basename
34490 else
34491   as_basename=false
34492 fi
34493
34494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34495   as_dirname=dirname
34496 else
34497   as_dirname=false
34498 fi
34499
34500 as_me=`$as_basename -- "$0" ||
34501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34502          X"$0" : 'X\(//\)$' \| \
34503          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34504 $as_echo X/"$0" |
34505     sed '/^.*\/\([^/][^/]*\)\/*$/{
34506             s//\1/
34507             q
34508           }
34509           /^X\/\(\/\/\)$/{
34510             s//\1/
34511             q
34512           }
34513           /^X\/\(\/\).*/{
34514             s//\1/
34515             q
34516           }
34517           s/.*/./; q'`
34518
34519 # Avoid depending upon Character Ranges.
34520 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34521 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34522 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34523 as_cr_digits='0123456789'
34524 as_cr_alnum=$as_cr_Letters$as_cr_digits
34525
34526 ECHO_C= ECHO_N= ECHO_T=
34527 case `echo -n x` in #(((((
34528 -n*)
34529   case `echo 'xy\c'` in
34530   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34531   xy)  ECHO_C='\c';;
34532   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34533        ECHO_T=' ';;
34534   esac;;
34535 *)
34536   ECHO_N='-n';;
34537 esac
34538
34539 rm -f conf$$ conf$$.exe conf$$.file
34540 if test -d conf$$.dir; then
34541   rm -f conf$$.dir/conf$$.file
34542 else
34543   rm -f conf$$.dir
34544   mkdir conf$$.dir 2>/dev/null
34545 fi
34546 if (echo >conf$$.file) 2>/dev/null; then
34547   if ln -s conf$$.file conf$$ 2>/dev/null; then
34548     as_ln_s='ln -s'
34549     # ... but there are two gotchas:
34550     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34551     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34552     # In both cases, we have to default to `cp -p'.
34553     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34554       as_ln_s='cp -p'
34555   elif ln conf$$.file conf$$ 2>/dev/null; then
34556     as_ln_s=ln
34557   else
34558     as_ln_s='cp -p'
34559   fi
34560 else
34561   as_ln_s='cp -p'
34562 fi
34563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34564 rmdir conf$$.dir 2>/dev/null
34565
34566
34567 # as_fn_mkdir_p
34568 # -------------
34569 # Create "$as_dir" as a directory, including parents if necessary.
34570 as_fn_mkdir_p ()
34571 {
34572
34573   case $as_dir in #(
34574   -*) as_dir=./$as_dir;;
34575   esac
34576   test -d "$as_dir" || eval $as_mkdir_p || {
34577     as_dirs=
34578     while :; do
34579       case $as_dir in #(
34580       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34581       *) as_qdir=$as_dir;;
34582       esac
34583       as_dirs="'$as_qdir' $as_dirs"
34584       as_dir=`$as_dirname -- "$as_dir" ||
34585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34586          X"$as_dir" : 'X\(//\)[^/]' \| \
34587          X"$as_dir" : 'X\(//\)$' \| \
34588          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34589 $as_echo X"$as_dir" |
34590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34591             s//\1/
34592             q
34593           }
34594           /^X\(\/\/\)[^/].*/{
34595             s//\1/
34596             q
34597           }
34598           /^X\(\/\/\)$/{
34599             s//\1/
34600             q
34601           }
34602           /^X\(\/\).*/{
34603             s//\1/
34604             q
34605           }
34606           s/.*/./; q'`
34607       test -d "$as_dir" && break
34608     done
34609     test -z "$as_dirs" || eval "mkdir $as_dirs"
34610   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34611
34612
34613 } # as_fn_mkdir_p
34614 if mkdir -p . 2>/dev/null; then
34615   as_mkdir_p='mkdir -p "$as_dir"'
34616 else
34617   test -d ./-p && rmdir ./-p
34618   as_mkdir_p=false
34619 fi
34620
34621 if test -x / >/dev/null 2>&1; then
34622   as_test_x='test -x'
34623 else
34624   if ls -dL / >/dev/null 2>&1; then
34625     as_ls_L_option=L
34626   else
34627     as_ls_L_option=
34628   fi
34629   as_test_x='
34630     eval sh -c '\''
34631       if test -d "$1"; then
34632         test -d "$1/.";
34633       else
34634         case $1 in #(
34635         -*)set "./$1";;
34636         esac;
34637         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34638         ???[sx]*):;;*)false;;esac;fi
34639     '\'' sh
34640   '
34641 fi
34642 as_executable_p=$as_test_x
34643
34644 # Sed expression to map a string onto a valid CPP name.
34645 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34646
34647 # Sed expression to map a string onto a valid variable name.
34648 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34649
34650
34651 exec 6>&1
34652 ## ----------------------------------- ##
34653 ## Main body of $CONFIG_STATUS script. ##
34654 ## ----------------------------------- ##
34655 _ASEOF
34656 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34657
34658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34659 # Save the log message, to keep $0 and so on meaningful, and to
34660 # report actual input values of CONFIG_FILES etc. instead of their
34661 # values after options handling.
34662 ac_log="
34663 This file was extended by cairo $as_me 1.12.3, which was
34664 generated by GNU Autoconf 2.67.  Invocation command line was
34665
34666   CONFIG_FILES    = $CONFIG_FILES
34667   CONFIG_HEADERS  = $CONFIG_HEADERS
34668   CONFIG_LINKS    = $CONFIG_LINKS
34669   CONFIG_COMMANDS = $CONFIG_COMMANDS
34670   $ $0 $@
34671
34672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34673 "
34674
34675 _ACEOF
34676
34677 case $ac_config_files in *"
34678 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34679 esac
34680
34681 case $ac_config_headers in *"
34682 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34683 esac
34684
34685
34686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34687 # Files that config.status was made for.
34688 config_files="$ac_config_files"
34689 config_headers="$ac_config_headers"
34690 config_commands="$ac_config_commands"
34691
34692 _ACEOF
34693
34694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34695 ac_cs_usage="\
34696 \`$as_me' instantiates files and other configuration actions
34697 from templates according to the current configuration.  Unless the files
34698 and actions are specified as TAGs, all are instantiated by default.
34699
34700 Usage: $0 [OPTION]... [TAG]...
34701
34702   -h, --help       print this help, then exit
34703   -V, --version    print version number and configuration settings, then exit
34704       --config     print configuration, then exit
34705   -q, --quiet, --silent
34706                    do not print progress messages
34707   -d, --debug      don't remove temporary files
34708       --recheck    update $as_me by reconfiguring in the same conditions
34709       --file=FILE[:TEMPLATE]
34710                    instantiate the configuration file FILE
34711       --header=FILE[:TEMPLATE]
34712                    instantiate the configuration header FILE
34713
34714 Configuration files:
34715 $config_files
34716
34717 Configuration headers:
34718 $config_headers
34719
34720 Configuration commands:
34721 $config_commands
34722
34723 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=cairo>.
34724 cairo home page: <http://cairographics.org/>."
34725
34726 _ACEOF
34727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34728 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34729 ac_cs_version="\\
34730 cairo config.status 1.12.3
34731 configured by $0, generated by GNU Autoconf 2.67,
34732   with options \\"\$ac_cs_config\\"
34733
34734 Copyright (C) 2010 Free Software Foundation, Inc.
34735 This config.status script is free software; the Free Software Foundation
34736 gives unlimited permission to copy, distribute and modify it."
34737
34738 ac_pwd='$ac_pwd'
34739 srcdir='$srcdir'
34740 INSTALL='$INSTALL'
34741 MKDIR_P='$MKDIR_P'
34742 AWK='$AWK'
34743 test -n "\$AWK" || AWK=awk
34744 _ACEOF
34745
34746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34747 # The default lists apply if the user does not specify any file.
34748 ac_need_defaults=:
34749 while test $# != 0
34750 do
34751   case $1 in
34752   --*=?*)
34753     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34754     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34755     ac_shift=:
34756     ;;
34757   --*=)
34758     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34759     ac_optarg=
34760     ac_shift=:
34761     ;;
34762   *)
34763     ac_option=$1
34764     ac_optarg=$2
34765     ac_shift=shift
34766     ;;
34767   esac
34768
34769   case $ac_option in
34770   # Handling of the options.
34771   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34772     ac_cs_recheck=: ;;
34773   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34774     $as_echo "$ac_cs_version"; exit ;;
34775   --config | --confi | --conf | --con | --co | --c )
34776     $as_echo "$ac_cs_config"; exit ;;
34777   --debug | --debu | --deb | --de | --d | -d )
34778     debug=: ;;
34779   --file | --fil | --fi | --f )
34780     $ac_shift
34781     case $ac_optarg in
34782     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34783     '') as_fn_error $? "missing file argument" ;;
34784     esac
34785     as_fn_append CONFIG_FILES " '$ac_optarg'"
34786     ac_need_defaults=false;;
34787   --header | --heade | --head | --hea )
34788     $ac_shift
34789     case $ac_optarg in
34790     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34791     esac
34792     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34793     ac_need_defaults=false;;
34794   --he | --h)
34795     # Conflict between --help and --header
34796     as_fn_error $? "ambiguous option: \`$1'
34797 Try \`$0 --help' for more information.";;
34798   --help | --hel | -h )
34799     $as_echo "$ac_cs_usage"; exit ;;
34800   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34801   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34802     ac_cs_silent=: ;;
34803
34804   # This is an error.
34805   -*) as_fn_error $? "unrecognized option: \`$1'
34806 Try \`$0 --help' for more information." ;;
34807
34808   *) as_fn_append ac_config_targets " $1"
34809      ac_need_defaults=false ;;
34810
34811   esac
34812   shift
34813 done
34814
34815 ac_configure_extra_args=
34816
34817 if $ac_cs_silent; then
34818   exec 6>/dev/null
34819   ac_configure_extra_args="$ac_configure_extra_args --silent"
34820 fi
34821
34822 _ACEOF
34823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34824 if \$ac_cs_recheck; then
34825   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34826   shift
34827   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34828   CONFIG_SHELL='$SHELL'
34829   export CONFIG_SHELL
34830   exec "\$@"
34831 fi
34832
34833 _ACEOF
34834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34835 exec 5>>config.log
34836 {
34837   echo
34838   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34839 ## Running $as_me. ##
34840 _ASBOX
34841   $as_echo "$ac_log"
34842 } >&5
34843
34844 _ACEOF
34845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34846 #
34847 # INIT-COMMANDS
34848 #
34849 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34850
34851
34852 # The HP-UX ksh and POSIX shell print the target directory to stdout
34853 # if CDPATH is set.
34854 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34855
34856 sed_quote_subst='$sed_quote_subst'
34857 double_quote_subst='$double_quote_subst'
34858 delay_variable_subst='$delay_variable_subst'
34859 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
34860 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
34861 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
34862 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
34863 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
34864 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
34865 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
34866 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
34867 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
34868 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
34869 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
34870 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
34871 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
34872 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
34873 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
34874 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
34875 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
34876 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
34877 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
34878 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
34879 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
34880 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
34881 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
34882 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
34883 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
34884 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
34885 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
34886 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
34887 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
34888 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
34889 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34890 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
34891 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
34892 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
34893 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34894 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
34895 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
34896 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34897 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34898 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34899 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
34900 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34901 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
34902 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
34903 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
34904 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
34905 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
34906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34907 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
34908 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
34909 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
34910 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
34911 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
34912 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
34913 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
34914 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
34915 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
34916 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
34917 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
34918 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
34919 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
34920 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
34921 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
34922 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
34923 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34924 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34925 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
34926 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
34927 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34928 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34929 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
34930 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34931 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34932 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34933 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34934 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34935 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34936 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
34937 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34938 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34939 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34940 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
34941 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
34942 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
34943 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
34944 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
34945 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34946 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
34947 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
34948 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
34949 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
34950 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
34951 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34952 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34953 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34954 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34955 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
34956 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
34957 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34958 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
34959 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
34960 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34961 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34962 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
34963 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34964 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
34965 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34966 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34967 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34968 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34969 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
34970 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
34971 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34972 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34973 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
34974 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
34975 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
34976 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
34977 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
34978 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
34979 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
34980 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34981 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34982 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
34983 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
34984 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
34985 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34986 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34987 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34988 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34989 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34990 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34991 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34992 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34993 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34994 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34995 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34996 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34997 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34998 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
34999 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35000 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35001 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35002 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35003 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35004 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35005 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35006 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35007 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35008 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35009 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35010 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35011 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35012 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35013 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35014 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35015 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35016 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35017 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35018 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35019 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35020 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35021 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35022 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35023 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35024 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35025 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35026 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35027 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35028 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35029 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35030 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35031 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35032
35033 LTCC='$LTCC'
35034 LTCFLAGS='$LTCFLAGS'
35035 compiler='$compiler_DEFAULT'
35036
35037 # Quote evaled strings.
35038 for var in SED \
35039 GREP \
35040 EGREP \
35041 FGREP \
35042 LD \
35043 NM \
35044 LN_S \
35045 lt_SP2NL \
35046 lt_NL2SP \
35047 reload_flag \
35048 deplibs_check_method \
35049 file_magic_cmd \
35050 AR \
35051 AR_FLAGS \
35052 STRIP \
35053 RANLIB \
35054 CC \
35055 CFLAGS \
35056 compiler \
35057 lt_cv_sys_global_symbol_pipe \
35058 lt_cv_sys_global_symbol_to_cdecl \
35059 lt_cv_sys_global_symbol_to_c_name_address \
35060 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35061 SHELL \
35062 ECHO \
35063 lt_prog_compiler_no_builtin_flag \
35064 lt_prog_compiler_wl \
35065 lt_prog_compiler_pic \
35066 lt_prog_compiler_static \
35067 lt_cv_prog_compiler_c_o \
35068 need_locks \
35069 DSYMUTIL \
35070 NMEDIT \
35071 LIPO \
35072 OTOOL \
35073 OTOOL64 \
35074 shrext_cmds \
35075 export_dynamic_flag_spec \
35076 whole_archive_flag_spec \
35077 compiler_needs_object \
35078 with_gnu_ld \
35079 allow_undefined_flag \
35080 no_undefined_flag \
35081 hardcode_libdir_flag_spec \
35082 hardcode_libdir_flag_spec_ld \
35083 hardcode_libdir_separator \
35084 fix_srcfile_path \
35085 exclude_expsyms \
35086 include_expsyms \
35087 file_list_spec \
35088 variables_saved_for_relink \
35089 libname_spec \
35090 library_names_spec \
35091 soname_spec \
35092 finish_eval \
35093 old_striplib \
35094 striplib \
35095 compiler_lib_search_dirs \
35096 predep_objects \
35097 postdep_objects \
35098 predeps \
35099 postdeps \
35100 compiler_lib_search_path \
35101 LD_CXX \
35102 compiler_CXX \
35103 lt_prog_compiler_no_builtin_flag_CXX \
35104 lt_prog_compiler_wl_CXX \
35105 lt_prog_compiler_pic_CXX \
35106 lt_prog_compiler_static_CXX \
35107 lt_cv_prog_compiler_c_o_CXX \
35108 export_dynamic_flag_spec_CXX \
35109 whole_archive_flag_spec_CXX \
35110 compiler_needs_object_CXX \
35111 with_gnu_ld_CXX \
35112 allow_undefined_flag_CXX \
35113 no_undefined_flag_CXX \
35114 hardcode_libdir_flag_spec_CXX \
35115 hardcode_libdir_flag_spec_ld_CXX \
35116 hardcode_libdir_separator_CXX \
35117 fix_srcfile_path_CXX \
35118 exclude_expsyms_CXX \
35119 include_expsyms_CXX \
35120 file_list_spec_CXX \
35121 compiler_lib_search_dirs_CXX \
35122 predep_objects_CXX \
35123 postdep_objects_CXX \
35124 predeps_CXX \
35125 postdeps_CXX \
35126 compiler_lib_search_path_CXX; do
35127     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35128     *[\\\\\\\`\\"\\\$]*)
35129       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35130       ;;
35131     *)
35132       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35133       ;;
35134     esac
35135 done
35136
35137 # Double-quote double-evaled strings.
35138 for var in reload_cmds \
35139 old_postinstall_cmds \
35140 old_postuninstall_cmds \
35141 old_archive_cmds \
35142 extract_expsyms_cmds \
35143 old_archive_from_new_cmds \
35144 old_archive_from_expsyms_cmds \
35145 archive_cmds \
35146 archive_expsym_cmds \
35147 module_cmds \
35148 module_expsym_cmds \
35149 export_symbols_cmds \
35150 prelink_cmds \
35151 postinstall_cmds \
35152 postuninstall_cmds \
35153 finish_cmds \
35154 sys_lib_search_path_spec \
35155 sys_lib_dlsearch_path_spec \
35156 old_archive_cmds_CXX \
35157 old_archive_from_new_cmds_CXX \
35158 old_archive_from_expsyms_cmds_CXX \
35159 archive_cmds_CXX \
35160 archive_expsym_cmds_CXX \
35161 module_cmds_CXX \
35162 module_expsym_cmds_CXX \
35163 export_symbols_cmds_CXX \
35164 prelink_cmds_CXX; do
35165     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35166     *[\\\\\\\`\\"\\\$]*)
35167       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35168       ;;
35169     *)
35170       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35171       ;;
35172     esac
35173 done
35174
35175 # Fix-up fallback echo if it was mangled by the above quoting rules.
35176 case \$lt_ECHO in
35177 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
35178   ;;
35179 esac
35180
35181 ac_aux_dir='$ac_aux_dir'
35182 xsi_shell='$xsi_shell'
35183 lt_shell_append='$lt_shell_append'
35184
35185 # See if we are running on zsh, and set the options which allow our
35186 # commands through without removal of \ escapes INIT.
35187 if test -n "\${ZSH_VERSION+set}" ; then
35188    setopt NO_GLOB_SUBST
35189 fi
35190
35191
35192     PACKAGE='$PACKAGE'
35193     VERSION='$VERSION'
35194     TIMESTAMP='$TIMESTAMP'
35195     RM='$RM'
35196     ofile='$ofile'
35197
35198
35199
35200
35201
35202 CAIRO_MAKEFILE___WIN32='$CAIRO_MAKEFILE___WIN32'
35203 CAIRO_MAKEFILE_cairo_AMAKE='$CAIRO_MAKEFILE_cairo_AMAKE'
35204 CAIRO_MAKEFILE_cairo_WIN32='$CAIRO_MAKEFILE_cairo_WIN32'
35205 CAIRO_MAKEFILE_cairo_boilerplate_AMAKE='$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE'
35206 CAIRO_MAKEFILE_cairo_boilerplate_WIN32='$CAIRO_MAKEFILE_cairo_boilerplate_WIN32'
35207         CAIRO_FEATURES='$CAIRO_FEATURES'
35208         CAIRO_NO_FEATURES='$CAIRO_NO_FEATURES'
35209
35210         CAIRO_SUPPORTED_FEATURES='$CAIRO_SUPPORTED_FEATURES'
35211
35212 CAIRO_MAKEFILE_win32_features_h_WIN32='$CAIRO_MAKEFILE_win32_features_h_WIN32'
35213                 SED='$SED'
35214                 xlib_BASE='$xlib_BASE'
35215                 xlib_REQUIRES='$xlib_REQUIRES'
35216                 xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
35217                 xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
35218                 xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
35219
35220                 SED='$SED'
35221                 xlib_BASE='$xlib_BASE'
35222                 xlib_REQUIRES='$xlib_REQUIRES'
35223                 xlib_NONPKGCONFIG_LIBS='$xlib_NONPKGCONFIG_LIBS'
35224                 xlib_NONPKGCONFIG_EXTRA_LIBS='$xlib_NONPKGCONFIG_EXTRA_LIBS'
35225                 xlib_NONPKGCONFIG_CFLAGS='$xlib_NONPKGCONFIG_CFLAGS'
35226
35227                 SED='$SED'
35228                 xlib_xrender_BASE='$xlib_xrender_BASE'
35229                 xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
35230                 xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
35231                 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
35232                 xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
35233
35234                 SED='$SED'
35235                 xlib_xrender_BASE='$xlib_xrender_BASE'
35236                 xlib_xrender_REQUIRES='$xlib_xrender_REQUIRES'
35237                 xlib_xrender_NONPKGCONFIG_LIBS='$xlib_xrender_NONPKGCONFIG_LIBS'
35238                 xlib_xrender_NONPKGCONFIG_EXTRA_LIBS='$xlib_xrender_NONPKGCONFIG_EXTRA_LIBS'
35239                 xlib_xrender_NONPKGCONFIG_CFLAGS='$xlib_xrender_NONPKGCONFIG_CFLAGS'
35240
35241                 SED='$SED'
35242                 xcb_BASE='$xcb_BASE'
35243                 xcb_REQUIRES='$xcb_REQUIRES'
35244                 xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
35245                 xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
35246                 xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
35247
35248                 SED='$SED'
35249                 xcb_BASE='$xcb_BASE'
35250                 xcb_REQUIRES='$xcb_REQUIRES'
35251                 xcb_NONPKGCONFIG_LIBS='$xcb_NONPKGCONFIG_LIBS'
35252                 xcb_NONPKGCONFIG_EXTRA_LIBS='$xcb_NONPKGCONFIG_EXTRA_LIBS'
35253                 xcb_NONPKGCONFIG_CFLAGS='$xcb_NONPKGCONFIG_CFLAGS'
35254
35255                 SED='$SED'
35256                 xlib_xcb_BASE='$xlib_xcb_BASE'
35257                 xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
35258                 xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
35259                 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
35260                 xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
35261
35262                 SED='$SED'
35263                 xlib_xcb_BASE='$xlib_xcb_BASE'
35264                 xlib_xcb_REQUIRES='$xlib_xcb_REQUIRES'
35265                 xlib_xcb_NONPKGCONFIG_LIBS='$xlib_xcb_NONPKGCONFIG_LIBS'
35266                 xlib_xcb_NONPKGCONFIG_EXTRA_LIBS='$xlib_xcb_NONPKGCONFIG_EXTRA_LIBS'
35267                 xlib_xcb_NONPKGCONFIG_CFLAGS='$xlib_xcb_NONPKGCONFIG_CFLAGS'
35268
35269                 SED='$SED'
35270                 xcb_shm_BASE='$xcb_shm_BASE'
35271                 xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
35272                 xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
35273                 xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
35274                 xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
35275
35276                 SED='$SED'
35277                 xcb_shm_BASE='$xcb_shm_BASE'
35278                 xcb_shm_REQUIRES='$xcb_shm_REQUIRES'
35279                 xcb_shm_NONPKGCONFIG_LIBS='$xcb_shm_NONPKGCONFIG_LIBS'
35280                 xcb_shm_NONPKGCONFIG_EXTRA_LIBS='$xcb_shm_NONPKGCONFIG_EXTRA_LIBS'
35281                 xcb_shm_NONPKGCONFIG_CFLAGS='$xcb_shm_NONPKGCONFIG_CFLAGS'
35282
35283                 SED='$SED'
35284                 qt_BASE='$qt_BASE'
35285                 qt_REQUIRES='$qt_REQUIRES'
35286                 qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
35287                 qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
35288                 qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
35289
35290                 SED='$SED'
35291                 qt_BASE='$qt_BASE'
35292                 qt_REQUIRES='$qt_REQUIRES'
35293                 qt_NONPKGCONFIG_LIBS='$qt_NONPKGCONFIG_LIBS'
35294                 qt_NONPKGCONFIG_EXTRA_LIBS='$qt_NONPKGCONFIG_EXTRA_LIBS'
35295                 qt_NONPKGCONFIG_CFLAGS='$qt_NONPKGCONFIG_CFLAGS'
35296
35297                 SED='$SED'
35298                 quartz_BASE='$quartz_BASE'
35299                 quartz_REQUIRES='$quartz_REQUIRES'
35300                 quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
35301                 quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
35302                 quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
35303
35304                 SED='$SED'
35305                 quartz_BASE='$quartz_BASE'
35306                 quartz_REQUIRES='$quartz_REQUIRES'
35307                 quartz_NONPKGCONFIG_LIBS='$quartz_NONPKGCONFIG_LIBS'
35308                 quartz_NONPKGCONFIG_EXTRA_LIBS='$quartz_NONPKGCONFIG_EXTRA_LIBS'
35309                 quartz_NONPKGCONFIG_CFLAGS='$quartz_NONPKGCONFIG_CFLAGS'
35310
35311                 SED='$SED'
35312                 quartz_font_BASE='$quartz_font_BASE'
35313                 quartz_font_REQUIRES='$quartz_font_REQUIRES'
35314                 quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
35315                 quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
35316                 quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
35317
35318                 SED='$SED'
35319                 quartz_font_BASE='$quartz_font_BASE'
35320                 quartz_font_REQUIRES='$quartz_font_REQUIRES'
35321                 quartz_font_NONPKGCONFIG_LIBS='$quartz_font_NONPKGCONFIG_LIBS'
35322                 quartz_font_NONPKGCONFIG_EXTRA_LIBS='$quartz_font_NONPKGCONFIG_EXTRA_LIBS'
35323                 quartz_font_NONPKGCONFIG_CFLAGS='$quartz_font_NONPKGCONFIG_CFLAGS'
35324
35325                 SED='$SED'
35326                 quartz_image_BASE='$quartz_image_BASE'
35327                 quartz_image_REQUIRES='$quartz_image_REQUIRES'
35328                 quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
35329                 quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
35330                 quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
35331
35332                 SED='$SED'
35333                 quartz_image_BASE='$quartz_image_BASE'
35334                 quartz_image_REQUIRES='$quartz_image_REQUIRES'
35335                 quartz_image_NONPKGCONFIG_LIBS='$quartz_image_NONPKGCONFIG_LIBS'
35336                 quartz_image_NONPKGCONFIG_EXTRA_LIBS='$quartz_image_NONPKGCONFIG_EXTRA_LIBS'
35337                 quartz_image_NONPKGCONFIG_CFLAGS='$quartz_image_NONPKGCONFIG_CFLAGS'
35338
35339                 SED='$SED'
35340                 win32_BASE='$win32_BASE'
35341                 win32_REQUIRES='$win32_REQUIRES'
35342                 win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
35343                 win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
35344                 win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
35345
35346                 SED='$SED'
35347                 win32_BASE='$win32_BASE'
35348                 win32_REQUIRES='$win32_REQUIRES'
35349                 win32_NONPKGCONFIG_LIBS='$win32_NONPKGCONFIG_LIBS'
35350                 win32_NONPKGCONFIG_EXTRA_LIBS='$win32_NONPKGCONFIG_EXTRA_LIBS'
35351                 win32_NONPKGCONFIG_CFLAGS='$win32_NONPKGCONFIG_CFLAGS'
35352
35353                 SED='$SED'
35354                 win32_font_BASE='$win32_font_BASE'
35355                 win32_font_REQUIRES='$win32_font_REQUIRES'
35356                 win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
35357                 win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
35358                 win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
35359
35360                 SED='$SED'
35361                 win32_font_BASE='$win32_font_BASE'
35362                 win32_font_REQUIRES='$win32_font_REQUIRES'
35363                 win32_font_NONPKGCONFIG_LIBS='$win32_font_NONPKGCONFIG_LIBS'
35364                 win32_font_NONPKGCONFIG_EXTRA_LIBS='$win32_font_NONPKGCONFIG_EXTRA_LIBS'
35365                 win32_font_NONPKGCONFIG_CFLAGS='$win32_font_NONPKGCONFIG_CFLAGS'
35366
35367                 SED='$SED'
35368                 skia_BASE='$skia_BASE'
35369                 skia_REQUIRES='$skia_REQUIRES'
35370                 skia_NONPKGCONFIG_LIBS='$skia_NONPKGCONFIG_LIBS'
35371                 skia_NONPKGCONFIG_EXTRA_LIBS='$skia_NONPKGCONFIG_EXTRA_LIBS'
35372                 skia_NONPKGCONFIG_CFLAGS='$skia_NONPKGCONFIG_CFLAGS'
35373
35374                 SED='$SED'
35375                 skia_BASE='$skia_BASE'
35376                 skia_REQUIRES='$skia_REQUIRES'
35377                 skia_NONPKGCONFIG_LIBS='$skia_NONPKGCONFIG_LIBS'
35378                 skia_NONPKGCONFIG_EXTRA_LIBS='$skia_NONPKGCONFIG_EXTRA_LIBS'
35379                 skia_NONPKGCONFIG_CFLAGS='$skia_NONPKGCONFIG_CFLAGS'
35380
35381                 SED='$SED'
35382                 os2_BASE='$os2_BASE'
35383                 os2_REQUIRES='$os2_REQUIRES'
35384                 os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
35385                 os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
35386                 os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
35387
35388                 SED='$SED'
35389                 os2_BASE='$os2_BASE'
35390                 os2_REQUIRES='$os2_REQUIRES'
35391                 os2_NONPKGCONFIG_LIBS='$os2_NONPKGCONFIG_LIBS'
35392                 os2_NONPKGCONFIG_EXTRA_LIBS='$os2_NONPKGCONFIG_EXTRA_LIBS'
35393                 os2_NONPKGCONFIG_CFLAGS='$os2_NONPKGCONFIG_CFLAGS'
35394
35395                 SED='$SED'
35396                 beos_BASE='$beos_BASE'
35397                 beos_REQUIRES='$beos_REQUIRES'
35398                 beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
35399                 beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
35400                 beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
35401
35402                 SED='$SED'
35403                 beos_BASE='$beos_BASE'
35404                 beos_REQUIRES='$beos_REQUIRES'
35405                 beos_NONPKGCONFIG_LIBS='$beos_NONPKGCONFIG_LIBS'
35406                 beos_NONPKGCONFIG_EXTRA_LIBS='$beos_NONPKGCONFIG_EXTRA_LIBS'
35407                 beos_NONPKGCONFIG_CFLAGS='$beos_NONPKGCONFIG_CFLAGS'
35408
35409                 SED='$SED'
35410                 drm_BASE='$drm_BASE'
35411                 drm_REQUIRES='$drm_REQUIRES'
35412                 drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
35413                 drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
35414                 drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
35415
35416                 SED='$SED'
35417                 drm_BASE='$drm_BASE'
35418                 drm_REQUIRES='$drm_REQUIRES'
35419                 drm_NONPKGCONFIG_LIBS='$drm_NONPKGCONFIG_LIBS'
35420                 drm_NONPKGCONFIG_EXTRA_LIBS='$drm_NONPKGCONFIG_EXTRA_LIBS'
35421                 drm_NONPKGCONFIG_CFLAGS='$drm_NONPKGCONFIG_CFLAGS'
35422
35423                 SED='$SED'
35424                 gallium_BASE='$gallium_BASE'
35425                 gallium_REQUIRES='$gallium_REQUIRES'
35426                 gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
35427                 gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
35428                 gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
35429
35430                 SED='$SED'
35431                 gallium_BASE='$gallium_BASE'
35432                 gallium_REQUIRES='$gallium_REQUIRES'
35433                 gallium_NONPKGCONFIG_LIBS='$gallium_NONPKGCONFIG_LIBS'
35434                 gallium_NONPKGCONFIG_EXTRA_LIBS='$gallium_NONPKGCONFIG_EXTRA_LIBS'
35435                 gallium_NONPKGCONFIG_CFLAGS='$gallium_NONPKGCONFIG_CFLAGS'
35436
35437                 SED='$SED'
35438                 png_BASE='$png_BASE'
35439                 png_REQUIRES='$png_REQUIRES'
35440                 png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
35441                 png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
35442                 png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
35443
35444                 SED='$SED'
35445                 png_BASE='$png_BASE'
35446                 png_REQUIRES='$png_REQUIRES'
35447                 png_NONPKGCONFIG_LIBS='$png_NONPKGCONFIG_LIBS'
35448                 png_NONPKGCONFIG_EXTRA_LIBS='$png_NONPKGCONFIG_EXTRA_LIBS'
35449                 png_NONPKGCONFIG_CFLAGS='$png_NONPKGCONFIG_CFLAGS'
35450
35451                 SED='$SED'
35452                 gl_BASE='$gl_BASE'
35453                 gl_REQUIRES='$gl_REQUIRES'
35454                 gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
35455                 gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
35456                 gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
35457
35458                 SED='$SED'
35459                 gl_BASE='$gl_BASE'
35460                 gl_REQUIRES='$gl_REQUIRES'
35461                 gl_NONPKGCONFIG_LIBS='$gl_NONPKGCONFIG_LIBS'
35462                 gl_NONPKGCONFIG_EXTRA_LIBS='$gl_NONPKGCONFIG_EXTRA_LIBS'
35463                 gl_NONPKGCONFIG_CFLAGS='$gl_NONPKGCONFIG_CFLAGS'
35464
35465                 SED='$SED'
35466                 glesv2_BASE='$glesv2_BASE'
35467                 glesv2_REQUIRES='$glesv2_REQUIRES'
35468                 glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
35469                 glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
35470                 glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
35471
35472                 SED='$SED'
35473                 glesv2_BASE='$glesv2_BASE'
35474                 glesv2_REQUIRES='$glesv2_REQUIRES'
35475                 glesv2_NONPKGCONFIG_LIBS='$glesv2_NONPKGCONFIG_LIBS'
35476                 glesv2_NONPKGCONFIG_EXTRA_LIBS='$glesv2_NONPKGCONFIG_EXTRA_LIBS'
35477                 glesv2_NONPKGCONFIG_CFLAGS='$glesv2_NONPKGCONFIG_CFLAGS'
35478
35479                 SED='$SED'
35480                 cogl_BASE='$cogl_BASE'
35481                 cogl_REQUIRES='$cogl_REQUIRES'
35482                 cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
35483                 cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
35484                 cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
35485
35486                 SED='$SED'
35487                 cogl_BASE='$cogl_BASE'
35488                 cogl_REQUIRES='$cogl_REQUIRES'
35489                 cogl_NONPKGCONFIG_LIBS='$cogl_NONPKGCONFIG_LIBS'
35490                 cogl_NONPKGCONFIG_EXTRA_LIBS='$cogl_NONPKGCONFIG_EXTRA_LIBS'
35491                 cogl_NONPKGCONFIG_CFLAGS='$cogl_NONPKGCONFIG_CFLAGS'
35492
35493                 SED='$SED'
35494                 directfb_BASE='$directfb_BASE'
35495                 directfb_REQUIRES='$directfb_REQUIRES'
35496                 directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
35497                 directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
35498                 directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
35499
35500                 SED='$SED'
35501                 directfb_BASE='$directfb_BASE'
35502                 directfb_REQUIRES='$directfb_REQUIRES'
35503                 directfb_NONPKGCONFIG_LIBS='$directfb_NONPKGCONFIG_LIBS'
35504                 directfb_NONPKGCONFIG_EXTRA_LIBS='$directfb_NONPKGCONFIG_EXTRA_LIBS'
35505                 directfb_NONPKGCONFIG_CFLAGS='$directfb_NONPKGCONFIG_CFLAGS'
35506
35507                 SED='$SED'
35508                 vg_BASE='$vg_BASE'
35509                 vg_REQUIRES='$vg_REQUIRES'
35510                 vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
35511                 vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
35512                 vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
35513
35514                 SED='$SED'
35515                 vg_BASE='$vg_BASE'
35516                 vg_REQUIRES='$vg_REQUIRES'
35517                 vg_NONPKGCONFIG_LIBS='$vg_NONPKGCONFIG_LIBS'
35518                 vg_NONPKGCONFIG_EXTRA_LIBS='$vg_NONPKGCONFIG_EXTRA_LIBS'
35519                 vg_NONPKGCONFIG_CFLAGS='$vg_NONPKGCONFIG_CFLAGS'
35520
35521                 SED='$SED'
35522                 egl_BASE='$egl_BASE'
35523                 egl_REQUIRES='$egl_REQUIRES'
35524                 egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
35525                 egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
35526                 egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
35527
35528                 SED='$SED'
35529                 egl_BASE='$egl_BASE'
35530                 egl_REQUIRES='$egl_REQUIRES'
35531                 egl_NONPKGCONFIG_LIBS='$egl_NONPKGCONFIG_LIBS'
35532                 egl_NONPKGCONFIG_EXTRA_LIBS='$egl_NONPKGCONFIG_EXTRA_LIBS'
35533                 egl_NONPKGCONFIG_CFLAGS='$egl_NONPKGCONFIG_CFLAGS'
35534
35535                 SED='$SED'
35536                 glx_BASE='$glx_BASE'
35537                 glx_REQUIRES='$glx_REQUIRES'
35538                 glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
35539                 glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
35540                 glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
35541
35542                 SED='$SED'
35543                 glx_BASE='$glx_BASE'
35544                 glx_REQUIRES='$glx_REQUIRES'
35545                 glx_NONPKGCONFIG_LIBS='$glx_NONPKGCONFIG_LIBS'
35546                 glx_NONPKGCONFIG_EXTRA_LIBS='$glx_NONPKGCONFIG_EXTRA_LIBS'
35547                 glx_NONPKGCONFIG_CFLAGS='$glx_NONPKGCONFIG_CFLAGS'
35548
35549                 SED='$SED'
35550                 wgl_BASE='$wgl_BASE'
35551                 wgl_REQUIRES='$wgl_REQUIRES'
35552                 wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
35553                 wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
35554                 wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
35555
35556                 SED='$SED'
35557                 wgl_BASE='$wgl_BASE'
35558                 wgl_REQUIRES='$wgl_REQUIRES'
35559                 wgl_NONPKGCONFIG_LIBS='$wgl_NONPKGCONFIG_LIBS'
35560                 wgl_NONPKGCONFIG_EXTRA_LIBS='$wgl_NONPKGCONFIG_EXTRA_LIBS'
35561                 wgl_NONPKGCONFIG_CFLAGS='$wgl_NONPKGCONFIG_CFLAGS'
35562
35563                 SED='$SED'
35564                 script_BASE='$script_BASE'
35565                 script_REQUIRES='$script_REQUIRES'
35566                 script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
35567                 script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
35568                 script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
35569
35570                 SED='$SED'
35571                 script_BASE='$script_BASE'
35572                 script_REQUIRES='$script_REQUIRES'
35573                 script_NONPKGCONFIG_LIBS='$script_NONPKGCONFIG_LIBS'
35574                 script_NONPKGCONFIG_EXTRA_LIBS='$script_NONPKGCONFIG_EXTRA_LIBS'
35575                 script_NONPKGCONFIG_CFLAGS='$script_NONPKGCONFIG_CFLAGS'
35576
35577                 SED='$SED'
35578                 ft_BASE='$ft_BASE'
35579                 ft_REQUIRES='$ft_REQUIRES'
35580                 ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
35581                 ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
35582                 ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
35583
35584                 SED='$SED'
35585                 ft_BASE='$ft_BASE'
35586                 ft_REQUIRES='$ft_REQUIRES'
35587                 ft_NONPKGCONFIG_LIBS='$ft_NONPKGCONFIG_LIBS'
35588                 ft_NONPKGCONFIG_EXTRA_LIBS='$ft_NONPKGCONFIG_EXTRA_LIBS'
35589                 ft_NONPKGCONFIG_CFLAGS='$ft_NONPKGCONFIG_CFLAGS'
35590
35591                 SED='$SED'
35592                 fc_BASE='$fc_BASE'
35593                 fc_REQUIRES='$fc_REQUIRES'
35594                 fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
35595                 fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
35596                 fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
35597
35598                 SED='$SED'
35599                 fc_BASE='$fc_BASE'
35600                 fc_REQUIRES='$fc_REQUIRES'
35601                 fc_NONPKGCONFIG_LIBS='$fc_NONPKGCONFIG_LIBS'
35602                 fc_NONPKGCONFIG_EXTRA_LIBS='$fc_NONPKGCONFIG_EXTRA_LIBS'
35603                 fc_NONPKGCONFIG_CFLAGS='$fc_NONPKGCONFIG_CFLAGS'
35604
35605                 SED='$SED'
35606                 ps_BASE='$ps_BASE'
35607                 ps_REQUIRES='$ps_REQUIRES'
35608                 ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
35609                 ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
35610                 ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
35611
35612                 SED='$SED'
35613                 ps_BASE='$ps_BASE'
35614                 ps_REQUIRES='$ps_REQUIRES'
35615                 ps_NONPKGCONFIG_LIBS='$ps_NONPKGCONFIG_LIBS'
35616                 ps_NONPKGCONFIG_EXTRA_LIBS='$ps_NONPKGCONFIG_EXTRA_LIBS'
35617                 ps_NONPKGCONFIG_CFLAGS='$ps_NONPKGCONFIG_CFLAGS'
35618
35619                 SED='$SED'
35620                 pdf_BASE='$pdf_BASE'
35621                 pdf_REQUIRES='$pdf_REQUIRES'
35622                 pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
35623                 pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
35624                 pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
35625
35626                 SED='$SED'
35627                 pdf_BASE='$pdf_BASE'
35628                 pdf_REQUIRES='$pdf_REQUIRES'
35629                 pdf_NONPKGCONFIG_LIBS='$pdf_NONPKGCONFIG_LIBS'
35630                 pdf_NONPKGCONFIG_EXTRA_LIBS='$pdf_NONPKGCONFIG_EXTRA_LIBS'
35631                 pdf_NONPKGCONFIG_CFLAGS='$pdf_NONPKGCONFIG_CFLAGS'
35632
35633                 SED='$SED'
35634                 svg_BASE='$svg_BASE'
35635                 svg_REQUIRES='$svg_REQUIRES'
35636                 svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
35637                 svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
35638                 svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
35639
35640                 SED='$SED'
35641                 svg_BASE='$svg_BASE'
35642                 svg_REQUIRES='$svg_REQUIRES'
35643                 svg_NONPKGCONFIG_LIBS='$svg_NONPKGCONFIG_LIBS'
35644                 svg_NONPKGCONFIG_EXTRA_LIBS='$svg_NONPKGCONFIG_EXTRA_LIBS'
35645                 svg_NONPKGCONFIG_CFLAGS='$svg_NONPKGCONFIG_CFLAGS'
35646
35647                 SED='$SED'
35648                 tee_BASE='$tee_BASE'
35649                 tee_REQUIRES='$tee_REQUIRES'
35650                 tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
35651                 tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
35652                 tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
35653
35654                 SED='$SED'
35655                 tee_BASE='$tee_BASE'
35656                 tee_REQUIRES='$tee_REQUIRES'
35657                 tee_NONPKGCONFIG_LIBS='$tee_NONPKGCONFIG_LIBS'
35658                 tee_NONPKGCONFIG_EXTRA_LIBS='$tee_NONPKGCONFIG_EXTRA_LIBS'
35659                 tee_NONPKGCONFIG_CFLAGS='$tee_NONPKGCONFIG_CFLAGS'
35660
35661                 SED='$SED'
35662                 xml_BASE='$xml_BASE'
35663                 xml_REQUIRES='$xml_REQUIRES'
35664                 xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
35665                 xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
35666                 xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
35667
35668                 SED='$SED'
35669                 xml_BASE='$xml_BASE'
35670                 xml_REQUIRES='$xml_REQUIRES'
35671                 xml_NONPKGCONFIG_LIBS='$xml_NONPKGCONFIG_LIBS'
35672                 xml_NONPKGCONFIG_EXTRA_LIBS='$xml_NONPKGCONFIG_EXTRA_LIBS'
35673                 xml_NONPKGCONFIG_CFLAGS='$xml_NONPKGCONFIG_CFLAGS'
35674
35675                 SED='$SED'
35676                 gobject_BASE='$gobject_BASE'
35677                 gobject_REQUIRES='$gobject_REQUIRES'
35678                 gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
35679                 gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
35680                 gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
35681
35682                 SED='$SED'
35683                 gobject_BASE='$gobject_BASE'
35684                 gobject_REQUIRES='$gobject_REQUIRES'
35685                 gobject_NONPKGCONFIG_LIBS='$gobject_NONPKGCONFIG_LIBS'
35686                 gobject_NONPKGCONFIG_EXTRA_LIBS='$gobject_NONPKGCONFIG_EXTRA_LIBS'
35687                 gobject_NONPKGCONFIG_CFLAGS='$gobject_NONPKGCONFIG_CFLAGS'
35688
35689
35690 _ACEOF
35691
35692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35693
35694 # Handling of arguments.
35695 for ac_config_target in $ac_config_targets
35696 do
35697   case $ac_config_target in
35698     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35699     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35700     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35701     "$srcdir/build/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features" ;;
35702     "$srcdir/src/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.am.features" ;;
35703     "$srcdir/src/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/src/Makefile.win32.features" ;;
35704     "$srcdir/boilerplate/Makefile.am.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.am.features" ;;
35705     "$srcdir/boilerplate/Makefile.win32.features") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/boilerplate/Makefile.win32.features" ;;
35706     "src/cairo.pc") CONFIG_FILES="$CONFIG_FILES src/cairo.pc" ;;
35707     "cairo-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-uninstalled.pc:src/cairo-uninstalled.pc.in" ;;
35708     "src/cairo-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-features.h" ;;
35709     "src/cairo-supported-features.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/cairo-supported-features.h" ;;
35710     "$srcdir/build/Makefile.win32.features-h") CONFIG_COMMANDS="$CONFIG_COMMANDS $srcdir/build/Makefile.win32.features-h" ;;
35711     "src/cairo-xlib.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib.pc:src/cairo-features.pc.in" ;;
35712     "cairo-xlib-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35713     "src/cairo-xlib-xrender.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xrender.pc:src/cairo-features.pc.in" ;;
35714     "cairo-xlib-xrender-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xrender-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35715     "src/cairo-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb.pc:src/cairo-features.pc.in" ;;
35716     "cairo-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35717     "src/cairo-xlib-xcb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xlib-xcb.pc:src/cairo-features.pc.in" ;;
35718     "cairo-xlib-xcb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xlib-xcb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35719     "src/cairo-xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xcb-shm.pc:src/cairo-features.pc.in" ;;
35720     "cairo-xcb-shm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xcb-shm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35721     "src/cairo-qt.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-qt.pc:src/cairo-features.pc.in" ;;
35722     "cairo-qt-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-qt-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35723     "src/cairo-quartz.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz.pc:src/cairo-features.pc.in" ;;
35724     "cairo-quartz-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35725     "src/cairo-quartz-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-font.pc:src/cairo-features.pc.in" ;;
35726     "cairo-quartz-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35727     "src/cairo-quartz-image.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-quartz-image.pc:src/cairo-features.pc.in" ;;
35728     "cairo-quartz-image-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-quartz-image-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35729     "src/cairo-win32.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32.pc:src/cairo-features.pc.in" ;;
35730     "cairo-win32-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35731     "src/cairo-win32-font.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-win32-font.pc:src/cairo-features.pc.in" ;;
35732     "cairo-win32-font-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-win32-font-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35733     "src/cairo-skia.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-skia.pc:src/cairo-features.pc.in" ;;
35734     "cairo-skia-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-skia-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35735     "src/cairo-os2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-os2.pc:src/cairo-features.pc.in" ;;
35736     "cairo-os2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-os2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35737     "src/cairo-beos.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-beos.pc:src/cairo-features.pc.in" ;;
35738     "cairo-beos-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-beos-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35739     "src/cairo-drm.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-drm.pc:src/cairo-features.pc.in" ;;
35740     "cairo-drm-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-drm-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35741     "src/cairo-gallium.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gallium.pc:src/cairo-features.pc.in" ;;
35742     "cairo-gallium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gallium-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35743     "src/cairo-png.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-png.pc:src/cairo-features.pc.in" ;;
35744     "cairo-png-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-png-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35745     "src/cairo-gl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gl.pc:src/cairo-features.pc.in" ;;
35746     "cairo-gl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35747     "src/cairo-glesv2.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glesv2.pc:src/cairo-features.pc.in" ;;
35748     "cairo-glesv2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glesv2-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35749     "src/cairo-cogl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-cogl.pc:src/cairo-features.pc.in" ;;
35750     "cairo-cogl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-cogl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35751     "src/cairo-directfb.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-directfb.pc:src/cairo-features.pc.in" ;;
35752     "cairo-directfb-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-directfb-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35753     "src/cairo-vg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-vg.pc:src/cairo-features.pc.in" ;;
35754     "cairo-vg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-vg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35755     "src/cairo-egl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-egl.pc:src/cairo-features.pc.in" ;;
35756     "cairo-egl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-egl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35757     "src/cairo-glx.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-glx.pc:src/cairo-features.pc.in" ;;
35758     "cairo-glx-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-glx-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35759     "src/cairo-wgl.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-wgl.pc:src/cairo-features.pc.in" ;;
35760     "cairo-wgl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-wgl-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35761     "src/cairo-script.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-script.pc:src/cairo-features.pc.in" ;;
35762     "cairo-script-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-script-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35763     "src/cairo-ft.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ft.pc:src/cairo-features.pc.in" ;;
35764     "cairo-ft-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ft-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35765     "src/cairo-fc.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-fc.pc:src/cairo-features.pc.in" ;;
35766     "cairo-fc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-fc-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35767     "src/cairo-ps.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-ps.pc:src/cairo-features.pc.in" ;;
35768     "cairo-ps-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-ps-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35769     "src/cairo-pdf.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-pdf.pc:src/cairo-features.pc.in" ;;
35770     "cairo-pdf-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-pdf-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35771     "src/cairo-svg.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-svg.pc:src/cairo-features.pc.in" ;;
35772     "cairo-svg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-svg-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35773     "src/cairo-tee.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-tee.pc:src/cairo-features.pc.in" ;;
35774     "cairo-tee-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-tee-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35775     "src/cairo-xml.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-xml.pc:src/cairo-features.pc.in" ;;
35776     "cairo-xml-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-xml-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35777     "src/cairo-gobject.pc") CONFIG_FILES="$CONFIG_FILES src/cairo-gobject.pc:src/cairo-features.pc.in" ;;
35778     "cairo-gobject-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cairo-gobject-uninstalled.pc:src/cairo-features-uninstalled.pc.in" ;;
35779     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35780     "boilerplate/Makefile") CONFIG_FILES="$CONFIG_FILES boilerplate/Makefile" ;;
35781     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35782     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
35783     "test/pdiff/Makefile") CONFIG_FILES="$CONFIG_FILES test/pdiff/Makefile" ;;
35784     "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
35785     "perf/micro/Makefile") CONFIG_FILES="$CONFIG_FILES perf/micro/Makefile" ;;
35786     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
35787     "util/cairo-fdr/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-fdr/Makefile" ;;
35788     "util/cairo-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-gobject/Makefile" ;;
35789     "util/cairo-missing/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-missing/Makefile" ;;
35790     "util/cairo-script/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/Makefile" ;;
35791     "util/cairo-script/examples/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-script/examples/Makefile" ;;
35792     "util/cairo-sphinx/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-sphinx/Makefile" ;;
35793     "util/cairo-trace/Makefile") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/Makefile" ;;
35794     "util/cairo-trace/cairo-trace") CONFIG_FILES="$CONFIG_FILES util/cairo-trace/cairo-trace" ;;
35795     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35796     "doc/public/Makefile") CONFIG_FILES="$CONFIG_FILES doc/public/Makefile" ;;
35797
35798   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
35799   esac
35800 done
35801
35802
35803 # If the user did not use the arguments to specify the items to instantiate,
35804 # then the envvar interface is used.  Set only those that are not.
35805 # We use the long form for the default assignment because of an extremely
35806 # bizarre bug on SunOS 4.1.3.
35807 if $ac_need_defaults; then
35808   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35809   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35810   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35811 fi
35812
35813 # Have a temporary directory for convenience.  Make it in the build tree
35814 # simply because there is no reason against having it here, and in addition,
35815 # creating and moving files from /tmp can sometimes cause problems.
35816 # Hook for its removal unless debugging.
35817 # Note that there is a small window in which the directory will not be cleaned:
35818 # after its creation but before its name has been assigned to `$tmp'.
35819 $debug ||
35820 {
35821   tmp=
35822   trap 'exit_status=$?
35823   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35824 ' 0
35825   trap 'as_fn_exit 1' 1 2 13 15
35826 }
35827 # Create a (secure) tmp directory for tmp files.
35828
35829 {
35830   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35831   test -n "$tmp" && test -d "$tmp"
35832 }  ||
35833 {
35834   tmp=./conf$$-$RANDOM
35835   (umask 077 && mkdir "$tmp")
35836 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35837
35838 # Set up the scripts for CONFIG_FILES section.
35839 # No need to generate them if there are no CONFIG_FILES.
35840 # This happens for instance with `./config.status config.h'.
35841 if test -n "$CONFIG_FILES"; then
35842
35843
35844 ac_cr=`echo X | tr X '\015'`
35845 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35846 # But we know of no other shell where ac_cr would be empty at this
35847 # point, so we can use a bashism as a fallback.
35848 if test "x$ac_cr" = x; then
35849   eval ac_cr=\$\'\\r\'
35850 fi
35851 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35852 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35853   ac_cs_awk_cr='\\r'
35854 else
35855   ac_cs_awk_cr=$ac_cr
35856 fi
35857
35858 echo 'BEGIN {' >"$tmp/subs1.awk" &&
35859 _ACEOF
35860
35861
35862 {
35863   echo "cat >conf$$subs.awk <<_ACEOF" &&
35864   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35865   echo "_ACEOF"
35866 } >conf$$subs.sh ||
35867   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35868 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35869 ac_delim='%!_!# '
35870 for ac_last_try in false false false false false :; do
35871   . ./conf$$subs.sh ||
35872     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35873
35874   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35875   if test $ac_delim_n = $ac_delim_num; then
35876     break
35877   elif $ac_last_try; then
35878     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35879   else
35880     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35881   fi
35882 done
35883 rm -f conf$$subs.sh
35884
35885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35886 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
35887 _ACEOF
35888 sed -n '
35889 h
35890 s/^/S["/; s/!.*/"]=/
35891 p
35892 g
35893 s/^[^!]*!//
35894 :repl
35895 t repl
35896 s/'"$ac_delim"'$//
35897 t delim
35898 :nl
35899 h
35900 s/\(.\{148\}\)..*/\1/
35901 t more1
35902 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35903 p
35904 n
35905 b repl
35906 :more1
35907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35908 p
35909 g
35910 s/.\{148\}//
35911 t nl
35912 :delim
35913 h
35914 s/\(.\{148\}\)..*/\1/
35915 t more2
35916 s/["\\]/\\&/g; s/^/"/; s/$/"/
35917 p
35918 b
35919 :more2
35920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35921 p
35922 g
35923 s/.\{148\}//
35924 t delim
35925 ' <conf$$subs.awk | sed '
35926 /^[^""]/{
35927   N
35928   s/\n//
35929 }
35930 ' >>$CONFIG_STATUS || ac_write_fail=1
35931 rm -f conf$$subs.awk
35932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35933 _ACAWK
35934 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
35935   for (key in S) S_is_set[key] = 1
35936   FS = "\a"
35937
35938 }
35939 {
35940   line = $ 0
35941   nfields = split(line, field, "@")
35942   substed = 0
35943   len = length(field[1])
35944   for (i = 2; i < nfields; i++) {
35945     key = field[i]
35946     keylen = length(key)
35947     if (S_is_set[key]) {
35948       value = S[key]
35949       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35950       len += length(value) + length(field[++i])
35951       substed = 1
35952     } else
35953       len += 1 + keylen
35954   }
35955
35956   print line
35957 }
35958
35959 _ACAWK
35960 _ACEOF
35961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35962 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35963   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35964 else
35965   cat
35966 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
35967   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35968 _ACEOF
35969
35970 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35971 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35972 # trailing colons and then remove the whole line if VPATH becomes empty
35973 # (actually we leave an empty line to preserve line numbers).
35974 if test "x$srcdir" = x.; then
35975   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
35976 h
35977 s///
35978 s/^/:/
35979 s/[      ]*$/:/
35980 s/:\$(srcdir):/:/g
35981 s/:\${srcdir}:/:/g
35982 s/:@srcdir@:/:/g
35983 s/^:*//
35984 s/:*$//
35985 x
35986 s/\(=[   ]*\).*/\1/
35987 G
35988 s/\n//
35989 s/^[^=]*=[       ]*$//
35990 }'
35991 fi
35992
35993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35994 fi # test -n "$CONFIG_FILES"
35995
35996 # Set up the scripts for CONFIG_HEADERS section.
35997 # No need to generate them if there are no CONFIG_HEADERS.
35998 # This happens for instance with `./config.status Makefile'.
35999 if test -n "$CONFIG_HEADERS"; then
36000 cat >"$tmp/defines.awk" <<\_ACAWK ||
36001 BEGIN {
36002 _ACEOF
36003
36004 # Transform confdefs.h into an awk script `defines.awk', embedded as
36005 # here-document in config.status, that substitutes the proper values into
36006 # config.h.in to produce config.h.
36007
36008 # Create a delimiter string that does not exist in confdefs.h, to ease
36009 # handling of long lines.
36010 ac_delim='%!_!# '
36011 for ac_last_try in false false :; do
36012   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36013   if test -z "$ac_t"; then
36014     break
36015   elif $ac_last_try; then
36016     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36017   else
36018     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36019   fi
36020 done
36021
36022 # For the awk script, D is an array of macro values keyed by name,
36023 # likewise P contains macro parameters if any.  Preserve backslash
36024 # newline sequences.
36025
36026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36027 sed -n '
36028 s/.\{148\}/&'"$ac_delim"'/g
36029 t rset
36030 :rset
36031 s/^[     ]*#[    ]*define[       ][      ]*/ /
36032 t def
36033 d
36034 :def
36035 s/\\$//
36036 t bsnl
36037 s/["\\]/\\&/g
36038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36039 D["\1"]=" \3"/p
36040 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36041 d
36042 :bsnl
36043 s/["\\]/\\&/g
36044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36045 D["\1"]=" \3\\\\\\n"\\/p
36046 t cont
36047 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36048 t cont
36049 d
36050 :cont
36051 n
36052 s/.\{148\}/&'"$ac_delim"'/g
36053 t clear
36054 :clear
36055 s/\\$//
36056 t bsnlc
36057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36058 d
36059 :bsnlc
36060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36061 b cont
36062 ' <confdefs.h | sed '
36063 s/'"$ac_delim"'/"\\\
36064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36065
36066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36067   for (key in D) D_is_set[key] = 1
36068   FS = "\a"
36069 }
36070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36071   line = \$ 0
36072   split(line, arg, " ")
36073   if (arg[1] == "#") {
36074     defundef = arg[2]
36075     mac1 = arg[3]
36076   } else {
36077     defundef = substr(arg[1], 2)
36078     mac1 = arg[2]
36079   }
36080   split(mac1, mac2, "(") #)
36081   macro = mac2[1]
36082   prefix = substr(line, 1, index(line, defundef) - 1)
36083   if (D_is_set[macro]) {
36084     # Preserve the white space surrounding the "#".
36085     print prefix "define", macro P[macro] D[macro]
36086     next
36087   } else {
36088     # Replace #undef with comments.  This is necessary, for example,
36089     # in the case of _POSIX_SOURCE, which is predefined and required
36090     # on some systems where configure will not decide to define it.
36091     if (defundef == "undef") {
36092       print "/*", prefix defundef, macro, "*/"
36093       next
36094     }
36095   }
36096 }
36097 { print }
36098 _ACAWK
36099 _ACEOF
36100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36101   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36102 fi # test -n "$CONFIG_HEADERS"
36103
36104
36105 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36106 shift
36107 for ac_tag
36108 do
36109   case $ac_tag in
36110   :[FHLC]) ac_mode=$ac_tag; continue;;
36111   esac
36112   case $ac_mode$ac_tag in
36113   :[FHL]*:*);;
36114   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
36115   :[FH]-) ac_tag=-:-;;
36116   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36117   esac
36118   ac_save_IFS=$IFS
36119   IFS=:
36120   set x $ac_tag
36121   IFS=$ac_save_IFS
36122   shift
36123   ac_file=$1
36124   shift
36125
36126   case $ac_mode in
36127   :L) ac_source=$1;;
36128   :[FH])
36129     ac_file_inputs=
36130     for ac_f
36131     do
36132       case $ac_f in
36133       -) ac_f="$tmp/stdin";;
36134       *) # Look for the file first in the build tree, then in the source tree
36135          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36136          # because $ac_f cannot contain `:'.
36137          test -f "$ac_f" ||
36138            case $ac_f in
36139            [\\/$]*) false;;
36140            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36141            esac ||
36142            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
36143       esac
36144       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36145       as_fn_append ac_file_inputs " '$ac_f'"
36146     done
36147
36148     # Let's still pretend it is `configure' which instantiates (i.e., don't
36149     # use $as_me), people would be surprised to read:
36150     #    /* config.h.  Generated by config.status.  */
36151     configure_input='Generated from '`
36152           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36153         `' by configure.'
36154     if test x"$ac_file" != x-; then
36155       configure_input="$ac_file.  $configure_input"
36156       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36157 $as_echo "$as_me: creating $ac_file" >&6;}
36158     fi
36159     # Neutralize special characters interpreted by sed in replacement strings.
36160     case $configure_input in #(
36161     *\&* | *\|* | *\\* )
36162        ac_sed_conf_input=`$as_echo "$configure_input" |
36163        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36164     *) ac_sed_conf_input=$configure_input;;
36165     esac
36166
36167     case $ac_tag in
36168     *:-:* | *:-) cat >"$tmp/stdin" \
36169       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
36170     esac
36171     ;;
36172   esac
36173
36174   ac_dir=`$as_dirname -- "$ac_file" ||
36175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36176          X"$ac_file" : 'X\(//\)[^/]' \| \
36177          X"$ac_file" : 'X\(//\)$' \| \
36178          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36179 $as_echo X"$ac_file" |
36180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36181             s//\1/
36182             q
36183           }
36184           /^X\(\/\/\)[^/].*/{
36185             s//\1/
36186             q
36187           }
36188           /^X\(\/\/\)$/{
36189             s//\1/
36190             q
36191           }
36192           /^X\(\/\).*/{
36193             s//\1/
36194             q
36195           }
36196           s/.*/./; q'`
36197   as_dir="$ac_dir"; as_fn_mkdir_p
36198   ac_builddir=.
36199
36200 case "$ac_dir" in
36201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36202 *)
36203   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36204   # A ".." for each directory in $ac_dir_suffix.
36205   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36206   case $ac_top_builddir_sub in
36207   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36208   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36209   esac ;;
36210 esac
36211 ac_abs_top_builddir=$ac_pwd
36212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36213 # for backward compatibility:
36214 ac_top_builddir=$ac_top_build_prefix
36215
36216 case $srcdir in
36217   .)  # We are building in place.
36218     ac_srcdir=.
36219     ac_top_srcdir=$ac_top_builddir_sub
36220     ac_abs_top_srcdir=$ac_pwd ;;
36221   [\\/]* | ?:[\\/]* )  # Absolute name.
36222     ac_srcdir=$srcdir$ac_dir_suffix;
36223     ac_top_srcdir=$srcdir
36224     ac_abs_top_srcdir=$srcdir ;;
36225   *) # Relative name.
36226     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36227     ac_top_srcdir=$ac_top_build_prefix$srcdir
36228     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36229 esac
36230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36231
36232
36233   case $ac_mode in
36234   :F)
36235   #
36236   # CONFIG_FILE
36237   #
36238
36239   case $INSTALL in
36240   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36241   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36242   esac
36243   ac_MKDIR_P=$MKDIR_P
36244   case $MKDIR_P in
36245   [\\/$]* | ?:[\\/]* ) ;;
36246   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36247   esac
36248 _ACEOF
36249
36250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36251 # If the template does not know about datarootdir, expand it.
36252 # FIXME: This hack should be removed a few years after 2.60.
36253 ac_datarootdir_hack=; ac_datarootdir_seen=
36254 ac_sed_dataroot='
36255 /datarootdir/ {
36256   p
36257   q
36258 }
36259 /@datadir@/p
36260 /@docdir@/p
36261 /@infodir@/p
36262 /@localedir@/p
36263 /@mandir@/p'
36264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36265 *datarootdir*) ac_datarootdir_seen=yes;;
36266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36267   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36268 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36269 _ACEOF
36270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36271   ac_datarootdir_hack='
36272   s&@datadir@&$datadir&g
36273   s&@docdir@&$docdir&g
36274   s&@infodir@&$infodir&g
36275   s&@localedir@&$localedir&g
36276   s&@mandir@&$mandir&g
36277   s&\\\${datarootdir}&$datarootdir&g' ;;
36278 esac
36279 _ACEOF
36280
36281 # Neutralize VPATH when `$srcdir' = `.'.
36282 # Shell code in configure.ac might set extrasub.
36283 # FIXME: do we really want to maintain this feature?
36284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36285 ac_sed_extra="$ac_vpsub
36286 $extrasub
36287 _ACEOF
36288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36289 :t
36290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36291 s|@configure_input@|$ac_sed_conf_input|;t t
36292 s&@top_builddir@&$ac_top_builddir_sub&;t t
36293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36294 s&@srcdir@&$ac_srcdir&;t t
36295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36296 s&@top_srcdir@&$ac_top_srcdir&;t t
36297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36298 s&@builddir@&$ac_builddir&;t t
36299 s&@abs_builddir@&$ac_abs_builddir&;t t
36300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36301 s&@INSTALL@&$ac_INSTALL&;t t
36302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36303 $ac_datarootdir_hack
36304 "
36305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36306   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36307
36308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36309   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36310   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36311   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36312 which seems to be undefined.  Please make sure it is defined" >&5
36313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36314 which seems to be undefined.  Please make sure it is defined" >&2;}
36315
36316   rm -f "$tmp/stdin"
36317   case $ac_file in
36318   -) cat "$tmp/out" && rm -f "$tmp/out";;
36319   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
36320   esac \
36321   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36322  ;;
36323   :H)
36324   #
36325   # CONFIG_HEADER
36326   #
36327   if test x"$ac_file" != x-; then
36328     {
36329       $as_echo "/* $configure_input  */" \
36330       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
36331     } >"$tmp/config.h" \
36332       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36333     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36334       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36335 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36336     else
36337       rm -f "$ac_file"
36338       mv "$tmp/config.h" "$ac_file" \
36339         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36340     fi
36341   else
36342     $as_echo "/* $configure_input  */" \
36343       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36344       || as_fn_error $? "could not create -" "$LINENO" 5
36345   fi
36346 # Compute "$ac_file"'s index in $config_headers.
36347 _am_arg="$ac_file"
36348 _am_stamp_count=1
36349 for _am_header in $config_headers :; do
36350   case $_am_header in
36351     $_am_arg | $_am_arg:* )
36352       break ;;
36353     * )
36354       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36355   esac
36356 done
36357 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36358 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36359          X"$_am_arg" : 'X\(//\)[^/]' \| \
36360          X"$_am_arg" : 'X\(//\)$' \| \
36361          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36362 $as_echo X"$_am_arg" |
36363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36364             s//\1/
36365             q
36366           }
36367           /^X\(\/\/\)[^/].*/{
36368             s//\1/
36369             q
36370           }
36371           /^X\(\/\/\)$/{
36372             s//\1/
36373             q
36374           }
36375           /^X\(\/\).*/{
36376             s//\1/
36377             q
36378           }
36379           s/.*/./; q'`/stamp-h$_am_stamp_count
36380  ;;
36381
36382   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36383 $as_echo "$as_me: executing $ac_file commands" >&6;}
36384  ;;
36385   esac
36386
36387
36388   case $ac_file$ac_mode in
36389     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36390   # Autoconf 2.62 quotes --file arguments for eval, but not when files
36391   # are listed without --file.  Let's play safe and only enable the eval
36392   # if we detect the quoting.
36393   case $CONFIG_FILES in
36394   *\'*) eval set x "$CONFIG_FILES" ;;
36395   *)   set x $CONFIG_FILES ;;
36396   esac
36397   shift
36398   for mf
36399   do
36400     # Strip MF so we end up with the name of the file.
36401     mf=`echo "$mf" | sed -e 's/:.*$//'`
36402     # Check whether this is an Automake generated Makefile or not.
36403     # We used to match only the files named `Makefile.in', but
36404     # some people rename them; so instead we look at the file content.
36405     # Grep'ing the first line is not enough: some people post-process
36406     # each Makefile.in and add a new line on top of each file to say so.
36407     # Grep'ing the whole file is not good either: AIX grep has a line
36408     # limit of 2048, but all sed's we know have understand at least 4000.
36409     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36410       dirpart=`$as_dirname -- "$mf" ||
36411 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36412          X"$mf" : 'X\(//\)[^/]' \| \
36413          X"$mf" : 'X\(//\)$' \| \
36414          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36415 $as_echo X"$mf" |
36416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36417             s//\1/
36418             q
36419           }
36420           /^X\(\/\/\)[^/].*/{
36421             s//\1/
36422             q
36423           }
36424           /^X\(\/\/\)$/{
36425             s//\1/
36426             q
36427           }
36428           /^X\(\/\).*/{
36429             s//\1/
36430             q
36431           }
36432           s/.*/./; q'`
36433     else
36434       continue
36435     fi
36436     # Extract the definition of DEPDIR, am__include, and am__quote
36437     # from the Makefile without running `make'.
36438     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36439     test -z "$DEPDIR" && continue
36440     am__include=`sed -n 's/^am__include = //p' < "$mf"`
36441     test -z "am__include" && continue
36442     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36443     # When using ansi2knr, U may be empty or an underscore; expand it
36444     U=`sed -n 's/^U = //p' < "$mf"`
36445     # Find all dependency output files, they are included files with
36446     # $(DEPDIR) in their names.  We invoke sed twice because it is the
36447     # simplest approach to changing $(DEPDIR) to its actual value in the
36448     # expansion.
36449     for file in `sed -n "
36450       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36451          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36452       # Make sure the directory exists.
36453       test -f "$dirpart/$file" && continue
36454       fdir=`$as_dirname -- "$file" ||
36455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36456          X"$file" : 'X\(//\)[^/]' \| \
36457          X"$file" : 'X\(//\)$' \| \
36458          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36459 $as_echo X"$file" |
36460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36461             s//\1/
36462             q
36463           }
36464           /^X\(\/\/\)[^/].*/{
36465             s//\1/
36466             q
36467           }
36468           /^X\(\/\/\)$/{
36469             s//\1/
36470             q
36471           }
36472           /^X\(\/\).*/{
36473             s//\1/
36474             q
36475           }
36476           s/.*/./; q'`
36477       as_dir=$dirpart/$fdir; as_fn_mkdir_p
36478       # echo "creating $dirpart/$file"
36479       echo '# dummy' > "$dirpart/$file"
36480     done
36481   done
36482 }
36483  ;;
36484     "libtool":C)
36485
36486     # See if we are running on zsh, and set the options which allow our
36487     # commands through without removal of \ escapes.
36488     if test -n "${ZSH_VERSION+set}" ; then
36489       setopt NO_GLOB_SUBST
36490     fi
36491
36492     cfgfile="${ofile}T"
36493     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36494     $RM "$cfgfile"
36495
36496     cat <<_LT_EOF >> "$cfgfile"
36497 #! $SHELL
36498
36499 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36500 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36501 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36502 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36503 #
36504 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36505 #                 2006, 2007, 2008 Free Software Foundation, Inc.
36506 #   Written by Gordon Matzigkeit, 1996
36507 #
36508 #   This file is part of GNU Libtool.
36509 #
36510 # GNU Libtool is free software; you can redistribute it and/or
36511 # modify it under the terms of the GNU General Public License as
36512 # published by the Free Software Foundation; either version 2 of
36513 # the License, or (at your option) any later version.
36514 #
36515 # As a special exception to the GNU General Public License,
36516 # if you distribute this file as part of a program or library that
36517 # is built using GNU Libtool, you may include this file under the
36518 # same distribution terms that you use for the rest of that program.
36519 #
36520 # GNU Libtool is distributed in the hope that it will be useful,
36521 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36523 # GNU General Public License for more details.
36524 #
36525 # You should have received a copy of the GNU General Public License
36526 # along with GNU Libtool; see the file COPYING.  If not, a copy
36527 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36528 # obtained by writing to the Free Software Foundation, Inc.,
36529 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36530
36531
36532 # The names of the tagged configurations supported by this script.
36533 available_tags="CXX "
36534
36535 # ### BEGIN LIBTOOL CONFIG
36536
36537 # Which release of libtool.m4 was used?
36538 macro_version=$macro_version
36539 macro_revision=$macro_revision
36540
36541 # Assembler program.
36542 AS=$AS
36543
36544 # DLL creation program.
36545 DLLTOOL=$DLLTOOL
36546
36547 # Object dumper program.
36548 OBJDUMP=$OBJDUMP
36549
36550 # Whether or not to build shared libraries.
36551 build_libtool_libs=$enable_shared
36552
36553 # Whether or not to build static libraries.
36554 build_old_libs=$enable_static
36555
36556 # What type of objects to build.
36557 pic_mode=$pic_mode
36558
36559 # Whether or not to optimize for fast installation.
36560 fast_install=$enable_fast_install
36561
36562 # The host system.
36563 host_alias=$host_alias
36564 host=$host
36565 host_os=$host_os
36566
36567 # The build system.
36568 build_alias=$build_alias
36569 build=$build
36570 build_os=$build_os
36571
36572 # A sed program that does not truncate output.
36573 SED=$lt_SED
36574
36575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36576 Xsed="\$SED -e 1s/^X//"
36577
36578 # A grep program that handles long lines.
36579 GREP=$lt_GREP
36580
36581 # An ERE matcher.
36582 EGREP=$lt_EGREP
36583
36584 # A literal string matcher.
36585 FGREP=$lt_FGREP
36586
36587 # A BSD- or MS-compatible name lister.
36588 NM=$lt_NM
36589
36590 # Whether we need soft or hard links.
36591 LN_S=$lt_LN_S
36592
36593 # What is the maximum length of a command?
36594 max_cmd_len=$max_cmd_len
36595
36596 # Object file suffix (normally "o").
36597 objext=$ac_objext
36598
36599 # Executable file suffix (normally "").
36600 exeext=$exeext
36601
36602 # whether the shell understands "unset".
36603 lt_unset=$lt_unset
36604
36605 # turn spaces into newlines.
36606 SP2NL=$lt_lt_SP2NL
36607
36608 # turn newlines into spaces.
36609 NL2SP=$lt_lt_NL2SP
36610
36611 # How to create reloadable object files.
36612 reload_flag=$lt_reload_flag
36613 reload_cmds=$lt_reload_cmds
36614
36615 # Method to check whether dependent libraries are shared objects.
36616 deplibs_check_method=$lt_deplibs_check_method
36617
36618 # Command to use when deplibs_check_method == "file_magic".
36619 file_magic_cmd=$lt_file_magic_cmd
36620
36621 # The archiver.
36622 AR=$lt_AR
36623 AR_FLAGS=$lt_AR_FLAGS
36624
36625 # A symbol stripping program.
36626 STRIP=$lt_STRIP
36627
36628 # Commands used to install an old-style archive.
36629 RANLIB=$lt_RANLIB
36630 old_postinstall_cmds=$lt_old_postinstall_cmds
36631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36632
36633 # A C compiler.
36634 LTCC=$lt_CC
36635
36636 # LTCC compiler flags.
36637 LTCFLAGS=$lt_CFLAGS
36638
36639 # Take the output of nm and produce a listing of raw symbols and C names.
36640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36641
36642 # Transform the output of nm in a proper C declaration.
36643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36644
36645 # Transform the output of nm in a C name address pair.
36646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36647
36648 # Transform the output of nm in a C name address pair when lib prefix is needed.
36649 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36650
36651 # The name of the directory that contains temporary libtool files.
36652 objdir=$objdir
36653
36654 # Shell to use when invoking shell scripts.
36655 SHELL=$lt_SHELL
36656
36657 # An echo program that does not interpret backslashes.
36658 ECHO=$lt_ECHO
36659
36660 # Used to examine libraries when file_magic_cmd begins with "file".
36661 MAGIC_CMD=$MAGIC_CMD
36662
36663 # Must we lock files when doing compilation?
36664 need_locks=$lt_need_locks
36665
36666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36667 DSYMUTIL=$lt_DSYMUTIL
36668
36669 # Tool to change global to local symbols on Mac OS X.
36670 NMEDIT=$lt_NMEDIT
36671
36672 # Tool to manipulate fat objects and archives on Mac OS X.
36673 LIPO=$lt_LIPO
36674
36675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36676 OTOOL=$lt_OTOOL
36677
36678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36679 OTOOL64=$lt_OTOOL64
36680
36681 # Old archive suffix (normally "a").
36682 libext=$libext
36683
36684 # Shared library suffix (normally ".so").
36685 shrext_cmds=$lt_shrext_cmds
36686
36687 # The commands to extract the exported symbol list from a shared archive.
36688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36689
36690 # Variables whose values should be saved in libtool wrapper scripts and
36691 # restored at link time.
36692 variables_saved_for_relink=$lt_variables_saved_for_relink
36693
36694 # Do we need the "lib" prefix for modules?
36695 need_lib_prefix=$need_lib_prefix
36696
36697 # Do we need a version for libraries?
36698 need_version=$need_version
36699
36700 # Library versioning type.
36701 version_type=$version_type
36702
36703 # Shared library runtime path variable.
36704 runpath_var=$runpath_var
36705
36706 # Shared library path variable.
36707 shlibpath_var=$shlibpath_var
36708
36709 # Is shlibpath searched before the hard-coded library search path?
36710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36711
36712 # Format of library name prefix.
36713 libname_spec=$lt_libname_spec
36714
36715 # List of archive names.  First name is the real one, the rest are links.
36716 # The last name is the one that the linker finds with -lNAME
36717 library_names_spec=$lt_library_names_spec
36718
36719 # The coded name of the library, if different from the real name.
36720 soname_spec=$lt_soname_spec
36721
36722 # Command to use after installation of a shared archive.
36723 postinstall_cmds=$lt_postinstall_cmds
36724
36725 # Command to use after uninstallation of a shared archive.
36726 postuninstall_cmds=$lt_postuninstall_cmds
36727
36728 # Commands used to finish a libtool library installation in a directory.
36729 finish_cmds=$lt_finish_cmds
36730
36731 # As "finish_cmds", except a single script fragment to be evaled but
36732 # not shown.
36733 finish_eval=$lt_finish_eval
36734
36735 # Whether we should hardcode library paths into libraries.
36736 hardcode_into_libs=$hardcode_into_libs
36737
36738 # Compile-time system search path for libraries.
36739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36740
36741 # Run-time system search path for libraries.
36742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36743
36744 # Whether dlopen is supported.
36745 dlopen_support=$enable_dlopen
36746
36747 # Whether dlopen of programs is supported.
36748 dlopen_self=$enable_dlopen_self
36749
36750 # Whether dlopen of statically linked programs is supported.
36751 dlopen_self_static=$enable_dlopen_self_static
36752
36753 # Commands to strip libraries.
36754 old_striplib=$lt_old_striplib
36755 striplib=$lt_striplib
36756
36757
36758 # The linker used to build libraries.
36759 LD=$lt_LD
36760
36761 # Commands used to build an old-style archive.
36762 old_archive_cmds=$lt_old_archive_cmds
36763
36764 # A language specific compiler.
36765 CC=$lt_compiler
36766
36767 # Is the compiler the GNU compiler?
36768 with_gcc=$GCC
36769
36770 # Compiler flag to turn off builtin functions.
36771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36772
36773 # How to pass a linker flag through the compiler.
36774 wl=$lt_lt_prog_compiler_wl
36775
36776 # Additional compiler flags for building library objects.
36777 pic_flag=$lt_lt_prog_compiler_pic
36778
36779 # Compiler flag to prevent dynamic linking.
36780 link_static_flag=$lt_lt_prog_compiler_static
36781
36782 # Does compiler simultaneously support -c and -o options?
36783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36784
36785 # Whether or not to add -lc for building shared libraries.
36786 build_libtool_need_lc=$archive_cmds_need_lc
36787
36788 # Whether or not to disallow shared libs when runtime libs are static.
36789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36790
36791 # Compiler flag to allow reflexive dlopens.
36792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36793
36794 # Compiler flag to generate shared objects directly from archives.
36795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36796
36797 # Whether the compiler copes with passing no objects directly.
36798 compiler_needs_object=$lt_compiler_needs_object
36799
36800 # Create an old-style archive from a shared archive.
36801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36802
36803 # Create a temporary old-style archive to link instead of a shared archive.
36804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36805
36806 # Commands used to build a shared archive.
36807 archive_cmds=$lt_archive_cmds
36808 archive_expsym_cmds=$lt_archive_expsym_cmds
36809
36810 # Commands used to build a loadable module if different from building
36811 # a shared archive.
36812 module_cmds=$lt_module_cmds
36813 module_expsym_cmds=$lt_module_expsym_cmds
36814
36815 # Whether we are building with GNU ld or not.
36816 with_gnu_ld=$lt_with_gnu_ld
36817
36818 # Flag that allows shared libraries with undefined symbols to be built.
36819 allow_undefined_flag=$lt_allow_undefined_flag
36820
36821 # Flag that enforces no undefined symbols.
36822 no_undefined_flag=$lt_no_undefined_flag
36823
36824 # Flag to hardcode \$libdir into a binary during linking.
36825 # This must work even if \$libdir does not exist
36826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36827
36828 # If ld is used when linking, flag to hardcode \$libdir into a binary
36829 # during linking.  This must work even if \$libdir does not exist.
36830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36831
36832 # Whether we need a single "-rpath" flag with a separated argument.
36833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36834
36835 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36836 # DIR into the resulting binary.
36837 hardcode_direct=$hardcode_direct
36838
36839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36840 # DIR into the resulting binary and the resulting library dependency is
36841 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36842 # library is relocated.
36843 hardcode_direct_absolute=$hardcode_direct_absolute
36844
36845 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36846 # into the resulting binary.
36847 hardcode_minus_L=$hardcode_minus_L
36848
36849 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36850 # into the resulting binary.
36851 hardcode_shlibpath_var=$hardcode_shlibpath_var
36852
36853 # Set to "yes" if building a shared library automatically hardcodes DIR
36854 # into the library and all subsequent libraries and executables linked
36855 # against it.
36856 hardcode_automatic=$hardcode_automatic
36857
36858 # Set to yes if linker adds runtime paths of dependent libraries
36859 # to runtime path list.
36860 inherit_rpath=$inherit_rpath
36861
36862 # Whether libtool must link a program against all its dependency libraries.
36863 link_all_deplibs=$link_all_deplibs
36864
36865 # Fix the shell variable \$srcfile for the compiler.
36866 fix_srcfile_path=$lt_fix_srcfile_path
36867
36868 # Set to "yes" if exported symbols are required.
36869 always_export_symbols=$always_export_symbols
36870
36871 # The commands to list exported symbols.
36872 export_symbols_cmds=$lt_export_symbols_cmds
36873
36874 # Symbols that should not be listed in the preloaded symbols.
36875 exclude_expsyms=$lt_exclude_expsyms
36876
36877 # Symbols that must always be exported.
36878 include_expsyms=$lt_include_expsyms
36879
36880 # Commands necessary for linking programs (against libraries) with templates.
36881 prelink_cmds=$lt_prelink_cmds
36882
36883 # Specify filename containing input files.
36884 file_list_spec=$lt_file_list_spec
36885
36886 # How to hardcode a shared library path into an executable.
36887 hardcode_action=$hardcode_action
36888
36889 # The directories searched by this compiler when creating a shared library.
36890 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36891
36892 # Dependencies to place before and after the objects being linked to
36893 # create a shared library.
36894 predep_objects=$lt_predep_objects
36895 postdep_objects=$lt_postdep_objects
36896 predeps=$lt_predeps
36897 postdeps=$lt_postdeps
36898
36899 # The library search path used internally by the compiler when linking
36900 # a shared library.
36901 compiler_lib_search_path=$lt_compiler_lib_search_path
36902
36903 # ### END LIBTOOL CONFIG
36904
36905 _LT_EOF
36906
36907   case $host_os in
36908   aix3*)
36909     cat <<\_LT_EOF >> "$cfgfile"
36910 # AIX sometimes has problems with the GCC collect2 program.  For some
36911 # reason, if we set the COLLECT_NAMES environment variable, the problems
36912 # vanish in a puff of smoke.
36913 if test "X${COLLECT_NAMES+set}" != Xset; then
36914   COLLECT_NAMES=
36915   export COLLECT_NAMES
36916 fi
36917 _LT_EOF
36918     ;;
36919   esac
36920
36921
36922 ltmain="$ac_aux_dir/ltmain.sh"
36923
36924
36925   # We use sed instead of cat because bash on DJGPP gets confused if
36926   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
36927   # text mode, it properly converts lines to CR/LF.  This bash problem
36928   # is reportedly fixed, but why not run on old versions too?
36929   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
36930     || (rm -f "$cfgfile"; exit 1)
36931
36932   case $xsi_shell in
36933   yes)
36934     cat << \_LT_EOF >> "$cfgfile"
36935
36936 # func_dirname file append nondir_replacement
36937 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
36938 # otherwise set result to NONDIR_REPLACEMENT.
36939 func_dirname ()
36940 {
36941   case ${1} in
36942     */*) func_dirname_result="${1%/*}${2}" ;;
36943     *  ) func_dirname_result="${3}" ;;
36944   esac
36945 }
36946
36947 # func_basename file
36948 func_basename ()
36949 {
36950   func_basename_result="${1##*/}"
36951 }
36952
36953 # func_dirname_and_basename file append nondir_replacement
36954 # perform func_basename and func_dirname in a single function
36955 # call:
36956 #   dirname:  Compute the dirname of FILE.  If nonempty,
36957 #             add APPEND to the result, otherwise set result
36958 #             to NONDIR_REPLACEMENT.
36959 #             value returned in "$func_dirname_result"
36960 #   basename: Compute filename of FILE.
36961 #             value retuned in "$func_basename_result"
36962 # Implementation must be kept synchronized with func_dirname
36963 # and func_basename. For efficiency, we do not delegate to
36964 # those functions but instead duplicate the functionality here.
36965 func_dirname_and_basename ()
36966 {
36967   case ${1} in
36968     */*) func_dirname_result="${1%/*}${2}" ;;
36969     *  ) func_dirname_result="${3}" ;;
36970   esac
36971   func_basename_result="${1##*/}"
36972 }
36973
36974 # func_stripname prefix suffix name
36975 # strip PREFIX and SUFFIX off of NAME.
36976 # PREFIX and SUFFIX must not contain globbing or regex special
36977 # characters, hashes, percent signs, but SUFFIX may contain a leading
36978 # dot (in which case that matches only a dot).
36979 func_stripname ()
36980 {
36981   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36982   # positional parameters, so assign one to ordinary parameter first.
36983   func_stripname_result=${3}
36984   func_stripname_result=${func_stripname_result#"${1}"}
36985   func_stripname_result=${func_stripname_result%"${2}"}
36986 }
36987
36988 # func_opt_split
36989 func_opt_split ()
36990 {
36991   func_opt_split_opt=${1%%=*}
36992   func_opt_split_arg=${1#*=}
36993 }
36994
36995 # func_lo2o object
36996 func_lo2o ()
36997 {
36998   case ${1} in
36999     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
37000     *)    func_lo2o_result=${1} ;;
37001   esac
37002 }
37003
37004 # func_xform libobj-or-source
37005 func_xform ()
37006 {
37007   func_xform_result=${1%.*}.lo
37008 }
37009
37010 # func_arith arithmetic-term...
37011 func_arith ()
37012 {
37013   func_arith_result=$(( $* ))
37014 }
37015
37016 # func_len string
37017 # STRING may not start with a hyphen.
37018 func_len ()
37019 {
37020   func_len_result=${#1}
37021 }
37022
37023 _LT_EOF
37024     ;;
37025   *) # Bourne compatible functions.
37026     cat << \_LT_EOF >> "$cfgfile"
37027
37028 # func_dirname file append nondir_replacement
37029 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37030 # otherwise set result to NONDIR_REPLACEMENT.
37031 func_dirname ()
37032 {
37033   # Extract subdirectory from the argument.
37034   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
37035   if test "X$func_dirname_result" = "X${1}"; then
37036     func_dirname_result="${3}"
37037   else
37038     func_dirname_result="$func_dirname_result${2}"
37039   fi
37040 }
37041
37042 # func_basename file
37043 func_basename ()
37044 {
37045   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
37046 }
37047
37048
37049 # func_stripname prefix suffix name
37050 # strip PREFIX and SUFFIX off of NAME.
37051 # PREFIX and SUFFIX must not contain globbing or regex special
37052 # characters, hashes, percent signs, but SUFFIX may contain a leading
37053 # dot (in which case that matches only a dot).
37054 # func_strip_suffix prefix name
37055 func_stripname ()
37056 {
37057   case ${2} in
37058     .*) func_stripname_result=`$ECHO "X${3}" \
37059            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
37060     *)  func_stripname_result=`$ECHO "X${3}" \
37061            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
37062   esac
37063 }
37064
37065 # sed scripts:
37066 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
37067 my_sed_long_arg='1s/^-[^=]*=//'
37068
37069 # func_opt_split
37070 func_opt_split ()
37071 {
37072   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
37073   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
37074 }
37075
37076 # func_lo2o object
37077 func_lo2o ()
37078 {
37079   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
37080 }
37081
37082 # func_xform libobj-or-source
37083 func_xform ()
37084 {
37085   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
37086 }
37087
37088 # func_arith arithmetic-term...
37089 func_arith ()
37090 {
37091   func_arith_result=`expr "$@"`
37092 }
37093
37094 # func_len string
37095 # STRING may not start with a hyphen.
37096 func_len ()
37097 {
37098   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
37099 }
37100
37101 _LT_EOF
37102 esac
37103
37104 case $lt_shell_append in
37105   yes)
37106     cat << \_LT_EOF >> "$cfgfile"
37107
37108 # func_append var value
37109 # Append VALUE to the end of shell variable VAR.
37110 func_append ()
37111 {
37112   eval "$1+=\$2"
37113 }
37114 _LT_EOF
37115     ;;
37116   *)
37117     cat << \_LT_EOF >> "$cfgfile"
37118
37119 # func_append var value
37120 # Append VALUE to the end of shell variable VAR.
37121 func_append ()
37122 {
37123   eval "$1=\$$1\$2"
37124 }
37125
37126 _LT_EOF
37127     ;;
37128   esac
37129
37130
37131   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
37132     || (rm -f "$cfgfile"; exit 1)
37133
37134   mv -f "$cfgfile" "$ofile" ||
37135     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37136   chmod +x "$ofile"
37137
37138
37139     cat <<_LT_EOF >> "$ofile"
37140
37141 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37142
37143 # The linker used to build libraries.
37144 LD=$lt_LD_CXX
37145
37146 # Commands used to build an old-style archive.
37147 old_archive_cmds=$lt_old_archive_cmds_CXX
37148
37149 # A language specific compiler.
37150 CC=$lt_compiler_CXX
37151
37152 # Is the compiler the GNU compiler?
37153 with_gcc=$GCC_CXX
37154
37155 # Compiler flag to turn off builtin functions.
37156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37157
37158 # How to pass a linker flag through the compiler.
37159 wl=$lt_lt_prog_compiler_wl_CXX
37160
37161 # Additional compiler flags for building library objects.
37162 pic_flag=$lt_lt_prog_compiler_pic_CXX
37163
37164 # Compiler flag to prevent dynamic linking.
37165 link_static_flag=$lt_lt_prog_compiler_static_CXX
37166
37167 # Does compiler simultaneously support -c and -o options?
37168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37169
37170 # Whether or not to add -lc for building shared libraries.
37171 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37172
37173 # Whether or not to disallow shared libs when runtime libs are static.
37174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37175
37176 # Compiler flag to allow reflexive dlopens.
37177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37178
37179 # Compiler flag to generate shared objects directly from archives.
37180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37181
37182 # Whether the compiler copes with passing no objects directly.
37183 compiler_needs_object=$lt_compiler_needs_object_CXX
37184
37185 # Create an old-style archive from a shared archive.
37186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37187
37188 # Create a temporary old-style archive to link instead of a shared archive.
37189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37190
37191 # Commands used to build a shared archive.
37192 archive_cmds=$lt_archive_cmds_CXX
37193 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37194
37195 # Commands used to build a loadable module if different from building
37196 # a shared archive.
37197 module_cmds=$lt_module_cmds_CXX
37198 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37199
37200 # Whether we are building with GNU ld or not.
37201 with_gnu_ld=$lt_with_gnu_ld_CXX
37202
37203 # Flag that allows shared libraries with undefined symbols to be built.
37204 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37205
37206 # Flag that enforces no undefined symbols.
37207 no_undefined_flag=$lt_no_undefined_flag_CXX
37208
37209 # Flag to hardcode \$libdir into a binary during linking.
37210 # This must work even if \$libdir does not exist
37211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37212
37213 # If ld is used when linking, flag to hardcode \$libdir into a binary
37214 # during linking.  This must work even if \$libdir does not exist.
37215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37216
37217 # Whether we need a single "-rpath" flag with a separated argument.
37218 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37219
37220 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37221 # DIR into the resulting binary.
37222 hardcode_direct=$hardcode_direct_CXX
37223
37224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37225 # DIR into the resulting binary and the resulting library dependency is
37226 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37227 # library is relocated.
37228 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37229
37230 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37231 # into the resulting binary.
37232 hardcode_minus_L=$hardcode_minus_L_CXX
37233
37234 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37235 # into the resulting binary.
37236 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37237
37238 # Set to "yes" if building a shared library automatically hardcodes DIR
37239 # into the library and all subsequent libraries and executables linked
37240 # against it.
37241 hardcode_automatic=$hardcode_automatic_CXX
37242
37243 # Set to yes if linker adds runtime paths of dependent libraries
37244 # to runtime path list.
37245 inherit_rpath=$inherit_rpath_CXX
37246
37247 # Whether libtool must link a program against all its dependency libraries.
37248 link_all_deplibs=$link_all_deplibs_CXX
37249
37250 # Fix the shell variable \$srcfile for the compiler.
37251 fix_srcfile_path=$lt_fix_srcfile_path_CXX
37252
37253 # Set to "yes" if exported symbols are required.
37254 always_export_symbols=$always_export_symbols_CXX
37255
37256 # The commands to list exported symbols.
37257 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37258
37259 # Symbols that should not be listed in the preloaded symbols.
37260 exclude_expsyms=$lt_exclude_expsyms_CXX
37261
37262 # Symbols that must always be exported.
37263 include_expsyms=$lt_include_expsyms_CXX
37264
37265 # Commands necessary for linking programs (against libraries) with templates.
37266 prelink_cmds=$lt_prelink_cmds_CXX
37267
37268 # Specify filename containing input files.
37269 file_list_spec=$lt_file_list_spec_CXX
37270
37271 # How to hardcode a shared library path into an executable.
37272 hardcode_action=$hardcode_action_CXX
37273
37274 # The directories searched by this compiler when creating a shared library.
37275 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37276
37277 # Dependencies to place before and after the objects being linked to
37278 # create a shared library.
37279 predep_objects=$lt_predep_objects_CXX
37280 postdep_objects=$lt_postdep_objects_CXX
37281 predeps=$lt_predeps_CXX
37282 postdeps=$lt_postdeps_CXX
37283
37284 # The library search path used internally by the compiler when linking
37285 # a shared library.
37286 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37287
37288 # ### END LIBTOOL TAG CONFIG: CXX
37289 _LT_EOF
37290
37291  ;;
37292     "$srcdir/build/Makefile.win32.features":C)
37293                 _config_file=$srcdir/build/Makefile.win32.features
37294                 _tmp_file=cairoconf.tmp
37295                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37296 $as_echo "$as_me: creating $_config_file" >&6;}
37297                 {
37298                         echo "$CAIRO_MAKEFILE___WIN32"
37299                 } >> "$_tmp_file" ||
37300                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37301
37302                 if cmp -s "$_tmp_file" "$_config_file"; then
37303                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37304 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37305                   rm -f "$_tmp_file"
37306                 else
37307                   mv "$_tmp_file" "$_config_file" ||
37308                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37309                 fi
37310          ;;
37311     "$srcdir/src/Makefile.am.features":C)
37312                 _config_file=$srcdir/src/Makefile.am.features
37313                 _tmp_file=cairoconf.tmp
37314                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37315 $as_echo "$as_me: creating $_config_file" >&6;}
37316                 {
37317                         echo "$CAIRO_MAKEFILE_cairo_AMAKE"
37318                 } >> "$_tmp_file" ||
37319                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37320
37321                 if cmp -s "$_tmp_file" "$_config_file"; then
37322                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37323 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37324                   rm -f "$_tmp_file"
37325                 else
37326                   mv "$_tmp_file" "$_config_file" ||
37327                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37328                 fi
37329          ;;
37330     "$srcdir/src/Makefile.win32.features":C)
37331                 _config_file=$srcdir/src/Makefile.win32.features
37332                 _tmp_file=cairoconf.tmp
37333                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37334 $as_echo "$as_me: creating $_config_file" >&6;}
37335                 {
37336                         echo "$CAIRO_MAKEFILE_cairo_WIN32"
37337                 } >> "$_tmp_file" ||
37338                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37339
37340                 if cmp -s "$_tmp_file" "$_config_file"; then
37341                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37342 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37343                   rm -f "$_tmp_file"
37344                 else
37345                   mv "$_tmp_file" "$_config_file" ||
37346                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37347                 fi
37348          ;;
37349     "$srcdir/boilerplate/Makefile.am.features":C)
37350                 _config_file=$srcdir/boilerplate/Makefile.am.features
37351                 _tmp_file=cairoconf.tmp
37352                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37353 $as_echo "$as_me: creating $_config_file" >&6;}
37354                 {
37355                         echo "$CAIRO_MAKEFILE_cairo_boilerplate_AMAKE"
37356                 } >> "$_tmp_file" ||
37357                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37358
37359                 if cmp -s "$_tmp_file" "$_config_file"; then
37360                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37361 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37362                   rm -f "$_tmp_file"
37363                 else
37364                   mv "$_tmp_file" "$_config_file" ||
37365                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37366                 fi
37367          ;;
37368     "$srcdir/boilerplate/Makefile.win32.features":C)
37369                 _config_file=$srcdir/boilerplate/Makefile.win32.features
37370                 _tmp_file=cairoconf.tmp
37371                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37372 $as_echo "$as_me: creating $_config_file" >&6;}
37373                 {
37374                         echo "$CAIRO_MAKEFILE_cairo_boilerplate_WIN32"
37375                 } >> "$_tmp_file" ||
37376                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37377
37378                 if cmp -s "$_tmp_file" "$_config_file"; then
37379                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37380 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37381                   rm -f "$_tmp_file"
37382                 else
37383                   mv "$_tmp_file" "$_config_file" ||
37384                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37385                 fi
37386          ;;
37387     "src/cairo-features.h":C)
37388                 _config_file=src/cairo-features.h
37389                 _tmp_file=cairoconf.tmp
37390                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37391 $as_echo "$as_me: creating $_config_file" >&6;}
37392                 {
37393                                 echo '/* Generated by configure.  Do not edit. */'
37394         echo '#ifndef CAIRO_FEATURES_H'
37395         echo '#define CAIRO_FEATURES_H'
37396         echo ''
37397         for FEATURE in $CAIRO_FEATURES; do
37398                 echo "#define $FEATURE 1"
37399         done | LANG=C sort
37400         echo ''
37401         for FEATURE in $CAIRO_NO_FEATURES; do
37402                 echo "/*#undef $FEATURE */"
37403         done | LANG=C sort
37404         echo ''
37405         echo '#endif'
37406
37407                 } >> "$_tmp_file" ||
37408                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37409
37410                 if cmp -s "$_tmp_file" "$_config_file"; then
37411                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37412 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37413                   rm -f "$_tmp_file"
37414                 else
37415                   mv "$_tmp_file" "$_config_file" ||
37416                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37417                 fi
37418          ;;
37419     "src/cairo-supported-features.h":C)
37420                 _config_file=src/cairo-supported-features.h
37421                 _tmp_file=cairoconf.tmp
37422                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37423 $as_echo "$as_me: creating $_config_file" >&6;}
37424                 {
37425                                 echo '/* Generated by configure.  Do not edit. */'
37426         echo '#ifndef CAIRO_SUPPORTED_FEATURES_H'
37427         echo '#define CAIRO_SUPPORTED_FEATURES_H'
37428         echo ''
37429         echo '/* This is a dummy header, to trick gtk-doc only */'
37430         echo ''
37431         for FEATURE in $CAIRO_SUPPORTED_FEATURES; do
37432                 echo "#define $FEATURE 1"
37433         done
37434         echo ''
37435         echo '#endif'
37436
37437                 } >> "$_tmp_file" ||
37438                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37439
37440                 if cmp -s "$_tmp_file" "$_config_file"; then
37441                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37442 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37443                   rm -f "$_tmp_file"
37444                 else
37445                   mv "$_tmp_file" "$_config_file" ||
37446                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37447                 fi
37448          ;;
37449     "$srcdir/build/Makefile.win32.features-h":C)
37450                 _config_file=$srcdir/build/Makefile.win32.features-h
37451                 _tmp_file=cairoconf.tmp
37452                 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $_config_file" >&5
37453 $as_echo "$as_me: creating $_config_file" >&6;}
37454                 {
37455                         echo "$CAIRO_MAKEFILE_win32_features_h_WIN32"
37456                 } >> "$_tmp_file" ||
37457                 as_fn_error $? "failed to write to $_tmp_file" "$LINENO" 5
37458
37459                 if cmp -s "$_tmp_file" "$_config_file"; then
37460                   { $as_echo "$as_me:${as_lineno-$LINENO}: $_config_file is unchanged" >&5
37461 $as_echo "$as_me: $_config_file is unchanged" >&6;}
37462                   rm -f "$_tmp_file"
37463                 else
37464                   mv "$_tmp_file" "$_config_file" ||
37465                   as_fn_error $? "failed to update $_config_file" "$LINENO" 5
37466                 fi
37467          ;;
37468     "src/cairo-xlib.pc":F)              mv "src/cairo-xlib.pc" "src/cairo-xlib.pc.tmp" &&
37469                 $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" ||
37470                 as_fn_error $? "failed to update src/cairo-xlib.pc" "$LINENO" 5
37471          ;;
37472     "cairo-xlib-uninstalled.pc":F)              mv "cairo-xlib-uninstalled.pc" "cairo-xlib-uninstalled.pc.tmp" &&
37473                 $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" ||
37474                 as_fn_error $? "failed to update cairo-xlib-uninstalled.pc" "$LINENO" 5
37475          ;;
37476     "src/cairo-xlib-xrender.pc":F)              mv "src/cairo-xlib-xrender.pc" "src/cairo-xlib-xrender.pc.tmp" &&
37477                 $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" ||
37478                 as_fn_error $? "failed to update src/cairo-xlib-xrender.pc" "$LINENO" 5
37479          ;;
37480     "cairo-xlib-xrender-uninstalled.pc":F)              mv "cairo-xlib-xrender-uninstalled.pc" "cairo-xlib-xrender-uninstalled.pc.tmp" &&
37481                 $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" ||
37482                 as_fn_error $? "failed to update cairo-xlib-xrender-uninstalled.pc" "$LINENO" 5
37483          ;;
37484     "src/cairo-xcb.pc":F)               mv "src/cairo-xcb.pc" "src/cairo-xcb.pc.tmp" &&
37485                 $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" ||
37486                 as_fn_error $? "failed to update src/cairo-xcb.pc" "$LINENO" 5
37487          ;;
37488     "cairo-xcb-uninstalled.pc":F)               mv "cairo-xcb-uninstalled.pc" "cairo-xcb-uninstalled.pc.tmp" &&
37489                 $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" ||
37490                 as_fn_error $? "failed to update cairo-xcb-uninstalled.pc" "$LINENO" 5
37491          ;;
37492     "src/cairo-xlib-xcb.pc":F)          mv "src/cairo-xlib-xcb.pc" "src/cairo-xlib-xcb.pc.tmp" &&
37493                 $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" ||
37494                 as_fn_error $? "failed to update src/cairo-xlib-xcb.pc" "$LINENO" 5
37495          ;;
37496     "cairo-xlib-xcb-uninstalled.pc":F)          mv "cairo-xlib-xcb-uninstalled.pc" "cairo-xlib-xcb-uninstalled.pc.tmp" &&
37497                 $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" ||
37498                 as_fn_error $? "failed to update cairo-xlib-xcb-uninstalled.pc" "$LINENO" 5
37499          ;;
37500     "src/cairo-xcb-shm.pc":F)           mv "src/cairo-xcb-shm.pc" "src/cairo-xcb-shm.pc.tmp" &&
37501                 $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" ||
37502                 as_fn_error $? "failed to update src/cairo-xcb-shm.pc" "$LINENO" 5
37503          ;;
37504     "cairo-xcb-shm-uninstalled.pc":F)           mv "cairo-xcb-shm-uninstalled.pc" "cairo-xcb-shm-uninstalled.pc.tmp" &&
37505                 $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" ||
37506                 as_fn_error $? "failed to update cairo-xcb-shm-uninstalled.pc" "$LINENO" 5
37507          ;;
37508     "src/cairo-qt.pc":F)                mv "src/cairo-qt.pc" "src/cairo-qt.pc.tmp" &&
37509                 $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" ||
37510                 as_fn_error $? "failed to update src/cairo-qt.pc" "$LINENO" 5
37511          ;;
37512     "cairo-qt-uninstalled.pc":F)                mv "cairo-qt-uninstalled.pc" "cairo-qt-uninstalled.pc.tmp" &&
37513                 $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" ||
37514                 as_fn_error $? "failed to update cairo-qt-uninstalled.pc" "$LINENO" 5
37515          ;;
37516     "src/cairo-quartz.pc":F)            mv "src/cairo-quartz.pc" "src/cairo-quartz.pc.tmp" &&
37517                 $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" ||
37518                 as_fn_error $? "failed to update src/cairo-quartz.pc" "$LINENO" 5
37519          ;;
37520     "cairo-quartz-uninstalled.pc":F)            mv "cairo-quartz-uninstalled.pc" "cairo-quartz-uninstalled.pc.tmp" &&
37521                 $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" ||
37522                 as_fn_error $? "failed to update cairo-quartz-uninstalled.pc" "$LINENO" 5
37523          ;;
37524     "src/cairo-quartz-font.pc":F)               mv "src/cairo-quartz-font.pc" "src/cairo-quartz-font.pc.tmp" &&
37525                 $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" ||
37526                 as_fn_error $? "failed to update src/cairo-quartz-font.pc" "$LINENO" 5
37527          ;;
37528     "cairo-quartz-font-uninstalled.pc":F)               mv "cairo-quartz-font-uninstalled.pc" "cairo-quartz-font-uninstalled.pc.tmp" &&
37529                 $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" ||
37530                 as_fn_error $? "failed to update cairo-quartz-font-uninstalled.pc" "$LINENO" 5
37531          ;;
37532     "src/cairo-quartz-image.pc":F)              mv "src/cairo-quartz-image.pc" "src/cairo-quartz-image.pc.tmp" &&
37533                 $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" ||
37534                 as_fn_error $? "failed to update src/cairo-quartz-image.pc" "$LINENO" 5
37535          ;;
37536     "cairo-quartz-image-uninstalled.pc":F)              mv "cairo-quartz-image-uninstalled.pc" "cairo-quartz-image-uninstalled.pc.tmp" &&
37537                 $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" ||
37538                 as_fn_error $? "failed to update cairo-quartz-image-uninstalled.pc" "$LINENO" 5
37539          ;;
37540     "src/cairo-win32.pc":F)             mv "src/cairo-win32.pc" "src/cairo-win32.pc.tmp" &&
37541                 $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" ||
37542                 as_fn_error $? "failed to update src/cairo-win32.pc" "$LINENO" 5
37543          ;;
37544     "cairo-win32-uninstalled.pc":F)             mv "cairo-win32-uninstalled.pc" "cairo-win32-uninstalled.pc.tmp" &&
37545                 $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" ||
37546                 as_fn_error $? "failed to update cairo-win32-uninstalled.pc" "$LINENO" 5
37547          ;;
37548     "src/cairo-win32-font.pc":F)                mv "src/cairo-win32-font.pc" "src/cairo-win32-font.pc.tmp" &&
37549                 $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" ||
37550                 as_fn_error $? "failed to update src/cairo-win32-font.pc" "$LINENO" 5
37551          ;;
37552     "cairo-win32-font-uninstalled.pc":F)                mv "cairo-win32-font-uninstalled.pc" "cairo-win32-font-uninstalled.pc.tmp" &&
37553                 $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" ||
37554                 as_fn_error $? "failed to update cairo-win32-font-uninstalled.pc" "$LINENO" 5
37555          ;;
37556     "src/cairo-skia.pc":F)              mv "src/cairo-skia.pc" "src/cairo-skia.pc.tmp" &&
37557                 $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" ||
37558                 as_fn_error $? "failed to update src/cairo-skia.pc" "$LINENO" 5
37559          ;;
37560     "cairo-skia-uninstalled.pc":F)              mv "cairo-skia-uninstalled.pc" "cairo-skia-uninstalled.pc.tmp" &&
37561                 $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" ||
37562                 as_fn_error $? "failed to update cairo-skia-uninstalled.pc" "$LINENO" 5
37563          ;;
37564     "src/cairo-os2.pc":F)               mv "src/cairo-os2.pc" "src/cairo-os2.pc.tmp" &&
37565                 $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" ||
37566                 as_fn_error $? "failed to update src/cairo-os2.pc" "$LINENO" 5
37567          ;;
37568     "cairo-os2-uninstalled.pc":F)               mv "cairo-os2-uninstalled.pc" "cairo-os2-uninstalled.pc.tmp" &&
37569                 $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" ||
37570                 as_fn_error $? "failed to update cairo-os2-uninstalled.pc" "$LINENO" 5
37571          ;;
37572     "src/cairo-beos.pc":F)              mv "src/cairo-beos.pc" "src/cairo-beos.pc.tmp" &&
37573                 $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" ||
37574                 as_fn_error $? "failed to update src/cairo-beos.pc" "$LINENO" 5
37575          ;;
37576     "cairo-beos-uninstalled.pc":F)              mv "cairo-beos-uninstalled.pc" "cairo-beos-uninstalled.pc.tmp" &&
37577                 $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" ||
37578                 as_fn_error $? "failed to update cairo-beos-uninstalled.pc" "$LINENO" 5
37579          ;;
37580     "src/cairo-drm.pc":F)               mv "src/cairo-drm.pc" "src/cairo-drm.pc.tmp" &&
37581                 $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" ||
37582                 as_fn_error $? "failed to update src/cairo-drm.pc" "$LINENO" 5
37583          ;;
37584     "cairo-drm-uninstalled.pc":F)               mv "cairo-drm-uninstalled.pc" "cairo-drm-uninstalled.pc.tmp" &&
37585                 $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" ||
37586                 as_fn_error $? "failed to update cairo-drm-uninstalled.pc" "$LINENO" 5
37587          ;;
37588     "src/cairo-gallium.pc":F)           mv "src/cairo-gallium.pc" "src/cairo-gallium.pc.tmp" &&
37589                 $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" ||
37590                 as_fn_error $? "failed to update src/cairo-gallium.pc" "$LINENO" 5
37591          ;;
37592     "cairo-gallium-uninstalled.pc":F)           mv "cairo-gallium-uninstalled.pc" "cairo-gallium-uninstalled.pc.tmp" &&
37593                 $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" ||
37594                 as_fn_error $? "failed to update cairo-gallium-uninstalled.pc" "$LINENO" 5
37595          ;;
37596     "src/cairo-png.pc":F)               mv "src/cairo-png.pc" "src/cairo-png.pc.tmp" &&
37597                 $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" ||
37598                 as_fn_error $? "failed to update src/cairo-png.pc" "$LINENO" 5
37599          ;;
37600     "cairo-png-uninstalled.pc":F)               mv "cairo-png-uninstalled.pc" "cairo-png-uninstalled.pc.tmp" &&
37601                 $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" ||
37602                 as_fn_error $? "failed to update cairo-png-uninstalled.pc" "$LINENO" 5
37603          ;;
37604     "src/cairo-gl.pc":F)                mv "src/cairo-gl.pc" "src/cairo-gl.pc.tmp" &&
37605                 $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" ||
37606                 as_fn_error $? "failed to update src/cairo-gl.pc" "$LINENO" 5
37607          ;;
37608     "cairo-gl-uninstalled.pc":F)                mv "cairo-gl-uninstalled.pc" "cairo-gl-uninstalled.pc.tmp" &&
37609                 $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" ||
37610                 as_fn_error $? "failed to update cairo-gl-uninstalled.pc" "$LINENO" 5
37611          ;;
37612     "src/cairo-glesv2.pc":F)            mv "src/cairo-glesv2.pc" "src/cairo-glesv2.pc.tmp" &&
37613                 $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" ||
37614                 as_fn_error $? "failed to update src/cairo-glesv2.pc" "$LINENO" 5
37615          ;;
37616     "cairo-glesv2-uninstalled.pc":F)            mv "cairo-glesv2-uninstalled.pc" "cairo-glesv2-uninstalled.pc.tmp" &&
37617                 $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" ||
37618                 as_fn_error $? "failed to update cairo-glesv2-uninstalled.pc" "$LINENO" 5
37619          ;;
37620     "src/cairo-cogl.pc":F)              mv "src/cairo-cogl.pc" "src/cairo-cogl.pc.tmp" &&
37621                 $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" ||
37622                 as_fn_error $? "failed to update src/cairo-cogl.pc" "$LINENO" 5
37623          ;;
37624     "cairo-cogl-uninstalled.pc":F)              mv "cairo-cogl-uninstalled.pc" "cairo-cogl-uninstalled.pc.tmp" &&
37625                 $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" ||
37626                 as_fn_error $? "failed to update cairo-cogl-uninstalled.pc" "$LINENO" 5
37627          ;;
37628     "src/cairo-directfb.pc":F)          mv "src/cairo-directfb.pc" "src/cairo-directfb.pc.tmp" &&
37629                 $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" ||
37630                 as_fn_error $? "failed to update src/cairo-directfb.pc" "$LINENO" 5
37631          ;;
37632     "cairo-directfb-uninstalled.pc":F)          mv "cairo-directfb-uninstalled.pc" "cairo-directfb-uninstalled.pc.tmp" &&
37633                 $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" ||
37634                 as_fn_error $? "failed to update cairo-directfb-uninstalled.pc" "$LINENO" 5
37635          ;;
37636     "src/cairo-vg.pc":F)                mv "src/cairo-vg.pc" "src/cairo-vg.pc.tmp" &&
37637                 $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" ||
37638                 as_fn_error $? "failed to update src/cairo-vg.pc" "$LINENO" 5
37639          ;;
37640     "cairo-vg-uninstalled.pc":F)                mv "cairo-vg-uninstalled.pc" "cairo-vg-uninstalled.pc.tmp" &&
37641                 $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" ||
37642                 as_fn_error $? "failed to update cairo-vg-uninstalled.pc" "$LINENO" 5
37643          ;;
37644     "src/cairo-egl.pc":F)               mv "src/cairo-egl.pc" "src/cairo-egl.pc.tmp" &&
37645                 $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" ||
37646                 as_fn_error $? "failed to update src/cairo-egl.pc" "$LINENO" 5
37647          ;;
37648     "cairo-egl-uninstalled.pc":F)               mv "cairo-egl-uninstalled.pc" "cairo-egl-uninstalled.pc.tmp" &&
37649                 $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" ||
37650                 as_fn_error $? "failed to update cairo-egl-uninstalled.pc" "$LINENO" 5
37651          ;;
37652     "src/cairo-glx.pc":F)               mv "src/cairo-glx.pc" "src/cairo-glx.pc.tmp" &&
37653                 $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" ||
37654                 as_fn_error $? "failed to update src/cairo-glx.pc" "$LINENO" 5
37655          ;;
37656     "cairo-glx-uninstalled.pc":F)               mv "cairo-glx-uninstalled.pc" "cairo-glx-uninstalled.pc.tmp" &&
37657                 $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" ||
37658                 as_fn_error $? "failed to update cairo-glx-uninstalled.pc" "$LINENO" 5
37659          ;;
37660     "src/cairo-wgl.pc":F)               mv "src/cairo-wgl.pc" "src/cairo-wgl.pc.tmp" &&
37661                 $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" ||
37662                 as_fn_error $? "failed to update src/cairo-wgl.pc" "$LINENO" 5
37663          ;;
37664     "cairo-wgl-uninstalled.pc":F)               mv "cairo-wgl-uninstalled.pc" "cairo-wgl-uninstalled.pc.tmp" &&
37665                 $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" ||
37666                 as_fn_error $? "failed to update cairo-wgl-uninstalled.pc" "$LINENO" 5
37667          ;;
37668     "src/cairo-script.pc":F)            mv "src/cairo-script.pc" "src/cairo-script.pc.tmp" &&
37669                 $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" ||
37670                 as_fn_error $? "failed to update src/cairo-script.pc" "$LINENO" 5
37671          ;;
37672     "cairo-script-uninstalled.pc":F)            mv "cairo-script-uninstalled.pc" "cairo-script-uninstalled.pc.tmp" &&
37673                 $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" ||
37674                 as_fn_error $? "failed to update cairo-script-uninstalled.pc" "$LINENO" 5
37675          ;;
37676     "src/cairo-ft.pc":F)                mv "src/cairo-ft.pc" "src/cairo-ft.pc.tmp" &&
37677                 $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" ||
37678                 as_fn_error $? "failed to update src/cairo-ft.pc" "$LINENO" 5
37679          ;;
37680     "cairo-ft-uninstalled.pc":F)                mv "cairo-ft-uninstalled.pc" "cairo-ft-uninstalled.pc.tmp" &&
37681                 $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" ||
37682                 as_fn_error $? "failed to update cairo-ft-uninstalled.pc" "$LINENO" 5
37683          ;;
37684     "src/cairo-fc.pc":F)                mv "src/cairo-fc.pc" "src/cairo-fc.pc.tmp" &&
37685                 $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" ||
37686                 as_fn_error $? "failed to update src/cairo-fc.pc" "$LINENO" 5
37687          ;;
37688     "cairo-fc-uninstalled.pc":F)                mv "cairo-fc-uninstalled.pc" "cairo-fc-uninstalled.pc.tmp" &&
37689                 $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" ||
37690                 as_fn_error $? "failed to update cairo-fc-uninstalled.pc" "$LINENO" 5
37691          ;;
37692     "src/cairo-ps.pc":F)                mv "src/cairo-ps.pc" "src/cairo-ps.pc.tmp" &&
37693                 $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" ||
37694                 as_fn_error $? "failed to update src/cairo-ps.pc" "$LINENO" 5
37695          ;;
37696     "cairo-ps-uninstalled.pc":F)                mv "cairo-ps-uninstalled.pc" "cairo-ps-uninstalled.pc.tmp" &&
37697                 $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" ||
37698                 as_fn_error $? "failed to update cairo-ps-uninstalled.pc" "$LINENO" 5
37699          ;;
37700     "src/cairo-pdf.pc":F)               mv "src/cairo-pdf.pc" "src/cairo-pdf.pc.tmp" &&
37701                 $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" ||
37702                 as_fn_error $? "failed to update src/cairo-pdf.pc" "$LINENO" 5
37703          ;;
37704     "cairo-pdf-uninstalled.pc":F)               mv "cairo-pdf-uninstalled.pc" "cairo-pdf-uninstalled.pc.tmp" &&
37705                 $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" ||
37706                 as_fn_error $? "failed to update cairo-pdf-uninstalled.pc" "$LINENO" 5
37707          ;;
37708     "src/cairo-svg.pc":F)               mv "src/cairo-svg.pc" "src/cairo-svg.pc.tmp" &&
37709                 $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" ||
37710                 as_fn_error $? "failed to update src/cairo-svg.pc" "$LINENO" 5
37711          ;;
37712     "cairo-svg-uninstalled.pc":F)               mv "cairo-svg-uninstalled.pc" "cairo-svg-uninstalled.pc.tmp" &&
37713                 $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" ||
37714                 as_fn_error $? "failed to update cairo-svg-uninstalled.pc" "$LINENO" 5
37715          ;;
37716     "src/cairo-tee.pc":F)               mv "src/cairo-tee.pc" "src/cairo-tee.pc.tmp" &&
37717                 $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" ||
37718                 as_fn_error $? "failed to update src/cairo-tee.pc" "$LINENO" 5
37719          ;;
37720     "cairo-tee-uninstalled.pc":F)               mv "cairo-tee-uninstalled.pc" "cairo-tee-uninstalled.pc.tmp" &&
37721                 $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" ||
37722                 as_fn_error $? "failed to update cairo-tee-uninstalled.pc" "$LINENO" 5
37723          ;;
37724     "src/cairo-xml.pc":F)               mv "src/cairo-xml.pc" "src/cairo-xml.pc.tmp" &&
37725                 $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" ||
37726                 as_fn_error $? "failed to update src/cairo-xml.pc" "$LINENO" 5
37727          ;;
37728     "cairo-xml-uninstalled.pc":F)               mv "cairo-xml-uninstalled.pc" "cairo-xml-uninstalled.pc.tmp" &&
37729                 $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" ||
37730                 as_fn_error $? "failed to update cairo-xml-uninstalled.pc" "$LINENO" 5
37731          ;;
37732     "src/cairo-gobject.pc":F)           mv "src/cairo-gobject.pc" "src/cairo-gobject.pc.tmp" &&
37733                 $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" ||
37734                 as_fn_error $? "failed to update src/cairo-gobject.pc" "$LINENO" 5
37735          ;;
37736     "cairo-gobject-uninstalled.pc":F)           mv "cairo-gobject-uninstalled.pc" "cairo-gobject-uninstalled.pc.tmp" &&
37737                 $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" ||
37738                 as_fn_error $? "failed to update cairo-gobject-uninstalled.pc" "$LINENO" 5
37739          ;;
37740
37741   esac
37742 done # for ac_tag
37743
37744
37745 as_fn_exit 0
37746 _ACEOF
37747 ac_clean_files=$ac_clean_files_save
37748
37749 test $ac_write_fail = 0 ||
37750   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37751
37752
37753 # configure is writing to config.log, and then calls config.status.
37754 # config.status does its own redirection, appending to config.log.
37755 # Unfortunately, on DOS this fails, as config.log is still kept open
37756 # by configure, so config.status won't be able to write to it; its
37757 # output is simply discarded.  So we exec the FD to /dev/null,
37758 # effectively closing config.log, so it can be properly (re)opened and
37759 # appended to by config.status.  When coming back to configure, we
37760 # need to make the FD available again.
37761 if test "$no_create" != yes; then
37762   ac_cs_success=:
37763   ac_config_status_args=
37764   test "$silent" = yes &&
37765     ac_config_status_args="$ac_config_status_args --quiet"
37766   exec 5>/dev/null
37767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37768   exec 5>>config.log
37769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37770   # would make configure fail if this is the last instruction.
37771   $ac_cs_success || as_fn_exit 1
37772 fi
37773 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37775 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37776 fi
37777
37778         V="$CAIRO_VERSION_MAJOR.$CAIRO_VERSION_MINOR.$CAIRO_VERSION_MICRO"
37779         echo ""
37780         echo "cairo (version $V [$CAIRO_RELEASE_STATUS]) will be compiled with:"
37781         echo ""
37782         echo "The following surface backends:"
37783         echo "  Image:         yes (always builtin)"
37784         echo "  Recording:     yes (always builtin)"
37785         echo "  Observer:      yes (always builtin)"
37786         echo "  Mime:          yes (always builtin)"
37787         echo "  Tee:           $use_tee"
37788         echo "  XML:           $use_xml"
37789         echo "  Skia:          $use_skia"
37790         echo "  Xlib:          $use_xlib"
37791         echo "  Xlib Xrender:  $use_xlib_xrender"
37792         echo "  Qt:            $use_qt"
37793         echo "  Quartz:        $use_quartz"
37794         echo "  Quartz-image:  $use_quartz_image"
37795         echo "  XCB:           $use_xcb"
37796         echo "  Win32:         $use_win32"
37797         echo "  OS2:           $use_os2"
37798         echo "  CairoScript:   $use_script"
37799         echo "  PostScript:    $use_ps"
37800         echo "  PDF:           $use_pdf"
37801         echo "  SVG:           $use_svg"
37802         echo "  OpenGL:        $use_gl"
37803         echo "  OpenGL ES 2.0: $use_glesv2"
37804         echo "  BeOS:          $use_beos"
37805         echo "  DirectFB:      $use_directfb"
37806         echo "  OpenVG:        $use_vg"
37807         echo "  DRM:           $use_drm"
37808         echo "  Cogl:          $use_cogl"
37809         echo ""
37810         echo "The following font backends:"
37811         echo "  User:          yes (always builtin)"
37812         echo "  FreeType:      $use_ft"
37813         echo "  Fontconfig:    $use_fc"
37814         echo "  Win32:         $use_win32_font"
37815         echo "  Quartz:        $use_quartz_font"
37816         echo ""
37817         echo "The following functions:"
37818         echo "  PNG functions:   $use_png"
37819         echo "  GLX functions:   $use_glx"
37820         echo "  WGL functions:   $use_wgl"
37821         echo "  EGL functions:   $use_egl"
37822         echo "  X11-xcb functions: $use_xlib_xcb"
37823         echo "  XCB-shm functions: $use_xcb_shm"
37824         echo ""
37825         echo "The following features and utilities:"
37826         echo "  cairo-trace:                $use_trace"
37827         echo "  cairo-script-interpreter:   $use_interpreter"
37828         echo ""
37829         echo "And the following internal features:"
37830         echo "  pthread:       $use_pthread"
37831         echo "  gtk-doc:       $enable_gtk_doc"
37832         echo "  gcov support:  $use_gcov"
37833         echo "  symbol-lookup: $use_symbol_lookup"
37834         echo "  test surfaces: $use_test_surfaces"
37835         echo "  ps testing:    $test_ps"
37836         echo "  pdf testing:   $test_pdf"
37837         echo "  svg testing:   $test_svg"
37838         if test x"$use_win32" = "xyes"; then
37839                 echo "  win32 printing testing:    $test_win32_printing"
37840         fi
37841         echo "$CAIRO_WARNING_MESSAGE"
37842         echo ""
37843