]> granicus.if.org Git - imagemagick/blob - configure
Sync configure with configure.ac
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0.
4 #
5 # Report bugs to <http://www.imagemagick.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.imagemagick.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549 lt_ltdl_dir='ltdl'
550
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
553
554 test -n "$DJDIR" || exec 7<&0 </dev/null
555 exec 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573
574 # Identity of this package.
575 PACKAGE_NAME='ImageMagick'
576 PACKAGE_TARNAME='ImageMagick-7.0.0'
577 PACKAGE_VERSION='7.0.0'
578 PACKAGE_STRING='ImageMagick 7.0.0'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
580 PACKAGE_URL=''
581
582 ac_unique_file="MagickCore/MagickCore.h"
583 ac_config_libobj_dir=ltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 #  include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #  include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
619
620 ac_header_list=
621 ac_subst_vars='ltdl_LTLIBOBJS
622 ltdl_LIBOBJS
623 am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 MAGICK_FEATURES
627 MAGICK_LIBS
628 MAGICK_LDFLAGS
629 MAGICK_PCFLAGS
630 MAGICK_CPPFLAGS
631 MAGICK_CXXFLAGS
632 MAGICK_CFLAGS
633 MAGICK_DEP_LIBS
634 MAGICK_LTDLDEPS
635 MAGICK_LIBLTDL
636 OSX_GCOV_LDFLAG
637 DELEGATES
638 MAGICKCORE_PATH
639 PERL_SUPPORTS_DESTDIR
640 WITH_PERL_DYNAMIC_FALSE
641 WITH_PERL_DYNAMIC_TRUE
642 WITH_PERL_STATIC_FALSE
643 WITH_PERL_STATIC_TRUE
644 WITH_PERL_FALSE
645 WITH_PERL_TRUE
646 PERL_VERSION
647 GSVersion
648 GSPSDevice
649 GSPDFDevice
650 GSMonoDevice
651 GSEPSDevice
652 GSColorDevice
653 GSCMYKDevice
654 GSAlphaDevice
655 XPSVersion
656 XPSCMYKDevice
657 XPSColorDevice
658 XPSMonoDevice
659 PCLVersion
660 PCLCMYKDevice
661 PCLColorDevice
662 PCLMonoDevice
663 ZIP_DELEGATE_FALSE
664 ZIP_DELEGATE_TRUE
665 ZIP
666 P7ZIP_DELEGATE_FALSE
667 P7ZIP_DELEGATE_TRUE
668 P7ZIP
669 RPM_DELEGATE_FALSE
670 RPM_DELEGATE_TRUE
671 RPM
672 PERL
673 TAR
674 ShowImageDelegate
675 type_include_files
676 ghostscript_font_dir
677 windows_font_dir
678 dejavu_font_dir
679 PrintDelegate
680 ZipDelegate
681 XPSDelegate
682 WWWDecodeDelegate
683 WMFDecodeDelegate
684 UniconvertorDelegate
685 TXTDelegate
686 SCANDecodeDelegate
687 RSVGDecodeDelegate
688 RMDelegate
689 RLEEncodeDelegate
690 PSDelegate
691 POVDelegate
692 PGPDecodeDelegate
693 PCLDelegate
694 MVDelegate
695 MrSIDDecodeDelegate
696 MPEGEncodeDelegate
697 MPEGDecodeDelegate
698 MANDelegate
699 LaunchDelegate
700 LZWEncodeDelegate
701 LZWDecodeDelegate
702 LPRDelegate
703 LPDelegate
704 ILBMEncodeDelegate
705 ILBMDecodeDelegate
706 HTMLDecodeDelegate
707 HPGLDecodeDelegate
708 GnuplotDecodeDelegate
709 MogrifyDelegate
710 DisplayDelegate
711 ConvertDelegate
712 FIGDecodeDelegate
713 EditorDelegate
714 EchoDelegate
715 DVIDecodeDelegate
716 GVCDecodeDelegate
717 DNGDecodeDelegate
718 CatDelegate
719 CGMDecodeDelegate
720 BrowseDelegate
721 BZIPDelegate
722 BlenderDecodeDelegate
723 AutotraceDecodeDelegate
724 SHARE_PATH
725 CONFIGURE_PATH
726 DOCUMENTATION_PATH
727 FILTER_PATH
728 CODER_PATH
729 LIBRARY_PATH
730 EXECUTABLE_PATH
731 PERLMAINCC
732 XML_LIBS
733 XML_DELEGATE_FALSE
734 XML_DELEGATE_TRUE
735 xml2_config
736 WMF_LIBS
737 WMF_DELEGATE_FALSE
738 WMF_DELEGATE_TRUE
739 WEBP_LIBS
740 WEBP_DELEGATE_FALSE
741 WEBP_DELEGATE_TRUE
742 TIFF_LIBS
743 TIFF_DELEGATE_FALSE
744 TIFF_DELEGATE_TRUE
745 CAIRO_DELEGATE_FALSE
746 CAIRO_DELEGATE_TRUE
747 RSVG_DELEGATE_FALSE
748 RSVG_DELEGATE_TRUE
749 CAIRO_SVG_LIBS
750 CAIRO_SVG_CFLAGS
751 RSVG_LIBS
752 RSVG_CFLAGS
753 PNG_LIBS
754 PNG_DELEGATE_FALSE
755 PNG_DELEGATE_TRUE
756 OPENEXR_DELEGATE_FALSE
757 OPENEXR_DELEGATE_TRUE
758 OPENEXR_LIBS
759 OPENEXR_CFLAGS
760 LZMA_LIBS
761 LZMA_DELEGATE_FALSE
762 LZMA_DELEGATE_TRUE
763 LQR_DELEGATE_FALSE
764 LQR_DELEGATE_TRUE
765 LQR_LIBS
766 LQR_CFLAGS
767 LCMS_LIBS
768 LCMS_DELEGATE_FALSE
769 LCMS_DELEGATE_TRUE
770 JP2_LIBS
771 JP2_DELEGATE_FALSE
772 JP2_DELEGATE_TRUE
773 JPEG_LIBS
774 JPEG_DELEGATE_FALSE
775 JPEG_DELEGATE_TRUE
776 JBIG_LIBS
777 JBIG_DELEGATE_FALSE
778 JBIG_DELEGATE_TRUE
779 GVC_DELEGATE_FALSE
780 GVC_DELEGATE_TRUE
781 GVC_LIBS
782 GVC_CFLAGS
783 GS_LIBS
784 GS_DELEGATE_FALSE
785 GS_DELEGATE_TRUE
786 FREETYPE_LIBS
787 FREETYPE_DELEGATE_FALSE
788 FREETYPE_DELEGATE_TRUE
789 freetype_config
790 FONTCONFIG_DELEGATE_FALSE
791 FONTCONFIG_DELEGATE_TRUE
792 FONTCONFIG_LIBS
793 FONTCONFIG_CFLAGS
794 FPX_LIBS
795 FPX_DELEGATE_FALSE
796 FPX_DELEGATE_TRUE
797 FFTW_LIBS
798 FFTW_DELEGATE_FALSE
799 FFTW_DELEGATE_TRUE
800 DJVU_LIBS
801 DJVU_DELEGATE_FALSE
802 DJVU_DELEGATE_TRUE
803 DPS_LIBS
804 DPS_DELEGATE_FALSE
805 DPS_DELEGATE_TRUE
806 AUTOTRACE_DELEGATE_FALSE
807 AUTOTRACE_DELEGATE_TRUE
808 AUTOTRACE_LIBS
809 AUTOTRACE_CFLAGS
810 LIB_DL
811 ZLIB_LIBS
812 ZLIB_DELEGATE_FALSE
813 ZLIB_DELEGATE_TRUE
814 XEXT_LIBS
815 X11_LIBS
816 X11_DELEGATE_FALSE
817 X11_DELEGATE_TRUE
818 X_EXTRA_LIBS
819 X_LIBS
820 X_PRE_LIBS
821 X_CFLAGS
822 XMKMF
823 BZLIB_LIBS
824 BZLIB_DELEGATE_FALSE
825 BZLIB_DELEGATE_TRUE
826 CCMALLOCDelegate
827 UMEM_LIBS
828 HasUMEM_FALSE
829 HasUMEM_TRUE
830 THREAD_LIBS
831 GOMP_LIBS
832 WITH_MAGICK_PLUS_PLUS_FALSE
833 WITH_MAGICK_PLUS_PLUS_TRUE
834 OPENMP_CXXFLAGS
835 MATH_LIBS
836 POW_LIB
837 LIBOBJS
838 UINTPTR_F
839 UINTPTR_T
840 UINTMAX_F
841 UINTMAX_T
842 UINT64_F
843 UINT64_T
844 INT64_F
845 INT64_T
846 UINT32_F
847 UINT32_T
848 INT32_F
849 INT32_T
850 UINT16_T
851 INT16_T
852 UINT8_T
853 INT8_T
854 LIBRARY_EXTRA_CPPFLAGS
855 MODULE_EXTRA_CPPFLAGS
856 LIBSTDCLDFLAGS
857 PERL_MAKE_OPTIONS
858 QUANTUM_DEPTH
859 MAINT
860 MAINTAINER_MODE_FALSE
861 MAINTAINER_MODE_TRUE
862 MAGICK_HDRI
863 DLLDFLAGS
864 WITH_LTDL_FALSE
865 WITH_LTDL_TRUE
866 WITH_MODULES_FALSE
867 WITH_MODULES_TRUE
868 WITH_SHARED_LIBS_FALSE
869 WITH_SHARED_LIBS_TRUE
870 LTDLOPEN
871 LT_CONFIG_H
872 CONVENIENCE_LTDL_FALSE
873 CONVENIENCE_LTDL_TRUE
874 INSTALL_LTDL_FALSE
875 INSTALL_LTDL_TRUE
876 ARGZ_H
877 sys_symbol_underscore
878 LIBADD_DL
879 LT_DLPREOPEN
880 LIBADD_DLD_LINK
881 LIBADD_SHL_LOAD
882 LIBADD_DLOPEN
883 LT_DLLOADERS
884 INCLTDL
885 LTDLINCL
886 LTDLDEPS
887 LIBLTDL
888 LIBTOOL_DEPS
889 CXXCPP
890 OTOOL64
891 OTOOL
892 LIPO
893 NMEDIT
894 DSYMUTIL
895 MANIFEST_TOOL
896 RANLIB
897 ac_ct_AR
898 AR
899 NM
900 ac_ct_DUMPBIN
901 DUMPBIN
902 LIBTOOL
903 OBJDUMP
904 DLLTOOL
905 AS
906 LFS_CPPFLAGS
907 CL_LIBS
908 CL_CFLAGS
909 OPENMP_CFLAGS
910 PTHREAD_CFLAGS
911 PTHREAD_LIBS
912 PTHREAD_CC
913 ax_pthread_config
914 WinPathScript
915 USING_CL_FALSE
916 USING_CL_TRUE
917 CYGWIN_BUILD_FALSE
918 CYGWIN_BUILD_TRUE
919 WIN32_NATIVE_BUILD_FALSE
920 WIN32_NATIVE_BUILD_TRUE
921 WINGDI32_DELEGATE_FALSE
922 WINGDI32_DELEGATE_TRUE
923 GDI32_LIBS
924 PKG_CONFIG
925 LN_S
926 LD
927 FGREP
928 SED
929 am__fastdepCXX_FALSE
930 am__fastdepCXX_TRUE
931 CXXDEPMODE
932 ac_ct_CXX
933 CXXFLAGS
934 CXX
935 EGREP
936 GREP
937 CPP
938 am__fastdepCC_FALSE
939 am__fastdepCC_TRUE
940 CCDEPMODE
941 AMDEPBACKSLASH
942 AMDEP_FALSE
943 AMDEP_TRUE
944 am__quote
945 am__include
946 DEPDIR
947 OBJEXT
948 EXEEXT
949 ac_ct_CC
950 CPPFLAGS
951 LDFLAGS
952 CFLAGS
953 CC
954 DIRSEP
955 MAGICK_FILTER_MODULE_PATH
956 MAGICK_CONFIGURE_BUILD_PATH
957 MAGICK_CONFIGURE_SRC_PATH
958 MAGICK_CODER_MODULE_PATH
959 MAN_DIR
960 INFO_DIR
961 PERSISTINCLUDE_DIR
962 INCLUDE_DIR
963 LIB_DIR
964 LOCALSTATE_DIR
965 SHAREDSTATE_DIR
966 SYSCONF_DIR
967 DOC_DIR
968 DATA_DIR
969 LIBEXEC_DIR
970 SBIN_DIR
971 BIN_DIR
972 EXEC_PREFIX_DIR
973 PREFIX_DIR
974 CONFIG_STATUS_DEPENDENCIES
975 MAGICK_LIB_VERSION_NUMBER
976 MAGICK_LIB_VERSION_TEXT
977 MAGICK_LIB_VERSION
978 AM_BACKSLASH
979 AM_DEFAULT_VERBOSITY
980 am__untar
981 am__tar
982 AMTAR
983 am__leading_dot
984 SET_MAKE
985 AWK
986 mkdir_p
987 MKDIR_P
988 INSTALL_STRIP_PROGRAM
989 STRIP
990 install_sh
991 MAKEINFO
992 AUTOHEADER
993 AUTOMAKE
994 AUTOCONF
995 ACLOCAL
996 VERSION
997 PACKAGE
998 CYGPATH_W
999 am__isrc
1000 INSTALL_DATA
1001 INSTALL_SCRIPT
1002 INSTALL_PROGRAM
1003 PACKAGE_VERSION_ADDENDUM
1004 PACKAGE_RELEASE_DATE
1005 PACKAGE_LIB_VERSION_NUMBER
1006 PACKAGE_LIB_VERSION
1007 PACKAGE_CHANGE_DATE
1008 PACKAGE_RELEASE
1009 PACKAGE_PERL_VERSION
1010 MAGICK_SVN_REVISION
1011 MAGICK_LIBRARY_VERSION_INFO
1012 MAGICK_LIBRARY_CURRENT_MIN
1013 MAGICK_LIBRARY_AGE
1014 MAGICK_LIBRARY_REVISION
1015 MAGICK_LIBRARY_CURRENT
1016 MAGICK_TARGET_OS
1017 MAGICK_TARGET_VENDOR
1018 MAGICK_TARGET_CPU
1019 target_os
1020 target_vendor
1021 target_cpu
1022 target
1023 host_os
1024 host_vendor
1025 host_cpu
1026 host
1027 build_os
1028 build_vendor
1029 build_cpu
1030 build
1031 CONFIGURE_ARGS
1032 DISTCHECK_CONFIG_FLAGS
1033 target_alias
1034 host_alias
1035 build_alias
1036 LIBS
1037 ECHO_T
1038 ECHO_N
1039 ECHO_C
1040 DEFS
1041 mandir
1042 localedir
1043 libdir
1044 psdir
1045 pdfdir
1046 dvidir
1047 htmldir
1048 infodir
1049 docdir
1050 oldincludedir
1051 includedir
1052 localstatedir
1053 sharedstatedir
1054 sysconfdir
1055 datadir
1056 datarootdir
1057 libexecdir
1058 sbindir
1059 bindir
1060 program_transform_name
1061 prefix
1062 exec_prefix
1063 PACKAGE_URL
1064 PACKAGE_BUGREPORT
1065 PACKAGE_STRING
1066 PACKAGE_VERSION
1067 PACKAGE_TARNAME
1068 PACKAGE_NAME
1069 PATH_SEPARATOR
1070 SHELL'
1071 ac_subst_files=''
1072 ac_user_opts='
1073 enable_option_checking
1074 enable_silent_rules
1075 enable_dependency_tracking
1076 with_gnu_ld
1077 with_dmalloc
1078 enable_bounds_checking
1079 enable_osx_universal_binary
1080 with_threads
1081 enable_openmp
1082 enable_opencl
1083 enable_largefile
1084 enable_shared
1085 enable_static
1086 with_pic
1087 enable_fast_install
1088 with_sysroot
1089 enable_libtool_lock
1090 with_included_ltdl
1091 with_ltdl_include
1092 with_ltdl_lib
1093 enable_ltdl_install
1094 with_modules
1095 enable_delegate_build
1096 enable_deprecated
1097 enable_installed
1098 enable_cipher
1099 enable_embeddable
1100 enable_hdri
1101 enable_assert
1102 enable_maintainer_mode
1103 enable_ccmalloc
1104 enable_efence
1105 enable_prof
1106 enable_gprof
1107 enable_gcov
1108 with_method_prefix
1109 with_quantum_depth
1110 with_cache
1111 with_frozenpaths
1112 with_magick_plus_plus
1113 with_perl
1114 with_perl_options
1115 with_umem
1116 with_libstdc
1117 with_bzlib
1118 with_x
1119 with_zlib
1120 with_autotrace
1121 with_dps
1122 with_djvu
1123 with_dejavu_font_dir
1124 with_fftw
1125 with_fpx
1126 with_fontconfig
1127 with_freetype
1128 with_gslib
1129 with_fontpath
1130 with_gs_font_dir
1131 with_gvc
1132 with_jbig
1133 with_jpeg
1134 with_jp2
1135 with_lcms
1136 with_lcms2
1137 with_lqr
1138 with_lzma
1139 with_openexr
1140 with_png
1141 with_rsvg
1142 with_tiff
1143 with_webp
1144 with_windows_font_dir
1145 with_wmf
1146 with_xml
1147 '
1148       ac_precious_vars='build_alias
1149 host_alias
1150 target_alias
1151 CC
1152 CFLAGS
1153 LDFLAGS
1154 LIBS
1155 CPPFLAGS
1156 CPP
1157 CXX
1158 CXXFLAGS
1159 CCC
1160 PKG_CONFIG
1161 CXXCPP
1162 XMKMF
1163 AUTOTRACE_CFLAGS
1164 AUTOTRACE_LIBS
1165 FONTCONFIG_CFLAGS
1166 FONTCONFIG_LIBS
1167 GVC_CFLAGS
1168 GVC_LIBS
1169 LQR_CFLAGS
1170 LQR_LIBS
1171 OPENEXR_CFLAGS
1172 OPENEXR_LIBS
1173 RSVG_CFLAGS
1174 RSVG_LIBS
1175 CAIRO_SVG_CFLAGS
1176 CAIRO_SVG_LIBS'
1177
1178
1179 # Initialize some variables set by options.
1180 ac_init_help=
1181 ac_init_version=false
1182 ac_unrecognized_opts=
1183 ac_unrecognized_sep=
1184 # The variables have the same names as the options, with
1185 # dashes changed to underlines.
1186 cache_file=/dev/null
1187 exec_prefix=NONE
1188 no_create=
1189 no_recursion=
1190 prefix=NONE
1191 program_prefix=NONE
1192 program_suffix=NONE
1193 program_transform_name=s,x,x,
1194 silent=
1195 site=
1196 srcdir=
1197 verbose=
1198 x_includes=NONE
1199 x_libraries=NONE
1200
1201 # Installation directory options.
1202 # These are left unexpanded so users can "make install exec_prefix=/foo"
1203 # and all the variables that are supposed to be based on exec_prefix
1204 # by default will actually change.
1205 # Use braces instead of parens because sh, perl, etc. also accept them.
1206 # (The list follows the same order as the GNU Coding Standards.)
1207 bindir='${exec_prefix}/bin'
1208 sbindir='${exec_prefix}/sbin'
1209 libexecdir='${exec_prefix}/libexec'
1210 datarootdir='${prefix}/share'
1211 datadir='${datarootdir}'
1212 sysconfdir='${prefix}/etc'
1213 sharedstatedir='${prefix}/com'
1214 localstatedir='${prefix}/var'
1215 includedir='${prefix}/include'
1216 oldincludedir='/usr/include'
1217 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218 infodir='${datarootdir}/info'
1219 htmldir='${docdir}'
1220 dvidir='${docdir}'
1221 pdfdir='${docdir}'
1222 psdir='${docdir}'
1223 libdir='${exec_prefix}/lib'
1224 localedir='${datarootdir}/locale'
1225 mandir='${datarootdir}/man'
1226
1227 ac_prev=
1228 ac_dashdash=
1229 for ac_option
1230 do
1231   # If the previous option needs an argument, assign it.
1232   if test -n "$ac_prev"; then
1233     eval $ac_prev=\$ac_option
1234     ac_prev=
1235     continue
1236   fi
1237
1238   case $ac_option in
1239   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240   *=)   ac_optarg= ;;
1241   *)    ac_optarg=yes ;;
1242   esac
1243
1244   # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246   case $ac_dashdash$ac_option in
1247   --)
1248     ac_dashdash=yes ;;
1249
1250   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251     ac_prev=bindir ;;
1252   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253     bindir=$ac_optarg ;;
1254
1255   -build | --build | --buil | --bui | --bu)
1256     ac_prev=build_alias ;;
1257   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258     build_alias=$ac_optarg ;;
1259
1260   -cache-file | --cache-file | --cache-fil | --cache-fi \
1261   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262     ac_prev=cache_file ;;
1263   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265     cache_file=$ac_optarg ;;
1266
1267   --config-cache | -C)
1268     cache_file=config.cache ;;
1269
1270   -datadir | --datadir | --datadi | --datad)
1271     ac_prev=datadir ;;
1272   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273     datadir=$ac_optarg ;;
1274
1275   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276   | --dataroo | --dataro | --datar)
1277     ac_prev=datarootdir ;;
1278   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280     datarootdir=$ac_optarg ;;
1281
1282   -disable-* | --disable-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid feature name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "enable_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval enable_$ac_useropt=no ;;
1297
1298   -docdir | --docdir | --docdi | --doc | --do)
1299     ac_prev=docdir ;;
1300   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301     docdir=$ac_optarg ;;
1302
1303   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304     ac_prev=dvidir ;;
1305   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306     dvidir=$ac_optarg ;;
1307
1308   -enable-* | --enable-*)
1309     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312       as_fn_error $? "invalid feature name: $ac_useropt"
1313     ac_useropt_orig=$ac_useropt
1314     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315     case $ac_user_opts in
1316       *"
1317 "enable_$ac_useropt"
1318 "*) ;;
1319       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320          ac_unrecognized_sep=', ';;
1321     esac
1322     eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326   | --exec | --exe | --ex)
1327     ac_prev=exec_prefix ;;
1328   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330   | --exec=* | --exe=* | --ex=*)
1331     exec_prefix=$ac_optarg ;;
1332
1333   -gas | --gas | --ga | --g)
1334     # Obsolete; use --with-gas.
1335     with_gas=yes ;;
1336
1337   -help | --help | --hel | --he | -h)
1338     ac_init_help=long ;;
1339   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340     ac_init_help=recursive ;;
1341   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342     ac_init_help=short ;;
1343
1344   -host | --host | --hos | --ho)
1345     ac_prev=host_alias ;;
1346   -host=* | --host=* | --hos=* | --ho=*)
1347     host_alias=$ac_optarg ;;
1348
1349   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350     ac_prev=htmldir ;;
1351   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352   | --ht=*)
1353     htmldir=$ac_optarg ;;
1354
1355   -includedir | --includedir | --includedi | --included | --include \
1356   | --includ | --inclu | --incl | --inc)
1357     ac_prev=includedir ;;
1358   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359   | --includ=* | --inclu=* | --incl=* | --inc=*)
1360     includedir=$ac_optarg ;;
1361
1362   -infodir | --infodir | --infodi | --infod | --info | --inf)
1363     ac_prev=infodir ;;
1364   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365     infodir=$ac_optarg ;;
1366
1367   -libdir | --libdir | --libdi | --libd)
1368     ac_prev=libdir ;;
1369   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370     libdir=$ac_optarg ;;
1371
1372   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373   | --libexe | --libex | --libe)
1374     ac_prev=libexecdir ;;
1375   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376   | --libexe=* | --libex=* | --libe=*)
1377     libexecdir=$ac_optarg ;;
1378
1379   -localedir | --localedir | --localedi | --localed | --locale)
1380     ac_prev=localedir ;;
1381   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382     localedir=$ac_optarg ;;
1383
1384   -localstatedir | --localstatedir | --localstatedi | --localstated \
1385   | --localstate | --localstat | --localsta | --localst | --locals)
1386     ac_prev=localstatedir ;;
1387   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389     localstatedir=$ac_optarg ;;
1390
1391   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392     ac_prev=mandir ;;
1393   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394     mandir=$ac_optarg ;;
1395
1396   -nfp | --nfp | --nf)
1397     # Obsolete; use --without-fp.
1398     with_fp=no ;;
1399
1400   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401   | --no-cr | --no-c | -n)
1402     no_create=yes ;;
1403
1404   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406     no_recursion=yes ;;
1407
1408   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410   | --oldin | --oldi | --old | --ol | --o)
1411     ac_prev=oldincludedir ;;
1412   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415     oldincludedir=$ac_optarg ;;
1416
1417   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418     ac_prev=prefix ;;
1419   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420     prefix=$ac_optarg ;;
1421
1422   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423   | --program-pre | --program-pr | --program-p)
1424     ac_prev=program_prefix ;;
1425   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427     program_prefix=$ac_optarg ;;
1428
1429   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430   | --program-suf | --program-su | --program-s)
1431     ac_prev=program_suffix ;;
1432   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434     program_suffix=$ac_optarg ;;
1435
1436   -program-transform-name | --program-transform-name \
1437   | --program-transform-nam | --program-transform-na \
1438   | --program-transform-n | --program-transform- \
1439   | --program-transform | --program-transfor \
1440   | --program-transfo | --program-transf \
1441   | --program-trans | --program-tran \
1442   | --progr-tra | --program-tr | --program-t)
1443     ac_prev=program_transform_name ;;
1444   -program-transform-name=* | --program-transform-name=* \
1445   | --program-transform-nam=* | --program-transform-na=* \
1446   | --program-transform-n=* | --program-transform-=* \
1447   | --program-transform=* | --program-transfor=* \
1448   | --program-transfo=* | --program-transf=* \
1449   | --program-trans=* | --program-tran=* \
1450   | --progr-tra=* | --program-tr=* | --program-t=*)
1451     program_transform_name=$ac_optarg ;;
1452
1453   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454     ac_prev=pdfdir ;;
1455   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456     pdfdir=$ac_optarg ;;
1457
1458   -psdir | --psdir | --psdi | --psd | --ps)
1459     ac_prev=psdir ;;
1460   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461     psdir=$ac_optarg ;;
1462
1463   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464   | -silent | --silent | --silen | --sile | --sil)
1465     silent=yes ;;
1466
1467   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468     ac_prev=sbindir ;;
1469   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470   | --sbi=* | --sb=*)
1471     sbindir=$ac_optarg ;;
1472
1473   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475   | --sharedst | --shareds | --shared | --share | --shar \
1476   | --sha | --sh)
1477     ac_prev=sharedstatedir ;;
1478   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481   | --sha=* | --sh=*)
1482     sharedstatedir=$ac_optarg ;;
1483
1484   -site | --site | --sit)
1485     ac_prev=site ;;
1486   -site=* | --site=* | --sit=*)
1487     site=$ac_optarg ;;
1488
1489   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490     ac_prev=srcdir ;;
1491   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492     srcdir=$ac_optarg ;;
1493
1494   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495   | --syscon | --sysco | --sysc | --sys | --sy)
1496     ac_prev=sysconfdir ;;
1497   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499     sysconfdir=$ac_optarg ;;
1500
1501   -target | --target | --targe | --targ | --tar | --ta | --t)
1502     ac_prev=target_alias ;;
1503   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504     target_alias=$ac_optarg ;;
1505
1506   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507     verbose=yes ;;
1508
1509   -version | --version | --versio | --versi | --vers | -V)
1510     ac_init_version=: ;;
1511
1512   -with-* | --with-*)
1513     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514     # Reject names that are not valid shell variable names.
1515     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516       as_fn_error $? "invalid package name: $ac_useropt"
1517     ac_useropt_orig=$ac_useropt
1518     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519     case $ac_user_opts in
1520       *"
1521 "with_$ac_useropt"
1522 "*) ;;
1523       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524          ac_unrecognized_sep=', ';;
1525     esac
1526     eval with_$ac_useropt=\$ac_optarg ;;
1527
1528   -without-* | --without-*)
1529     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530     # Reject names that are not valid shell variable names.
1531     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532       as_fn_error $? "invalid package name: $ac_useropt"
1533     ac_useropt_orig=$ac_useropt
1534     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535     case $ac_user_opts in
1536       *"
1537 "with_$ac_useropt"
1538 "*) ;;
1539       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540          ac_unrecognized_sep=', ';;
1541     esac
1542     eval with_$ac_useropt=no ;;
1543
1544   --x)
1545     # Obsolete; use --with-x.
1546     with_x=yes ;;
1547
1548   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549   | --x-incl | --x-inc | --x-in | --x-i)
1550     ac_prev=x_includes ;;
1551   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553     x_includes=$ac_optarg ;;
1554
1555   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557     ac_prev=x_libraries ;;
1558   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560     x_libraries=$ac_optarg ;;
1561
1562   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563 Try \`$0 --help' for more information"
1564     ;;
1565
1566   *=*)
1567     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568     # Reject names that are not valid shell variable names.
1569     case $ac_envvar in #(
1570       '' | [0-9]* | *[!_$as_cr_alnum]* )
1571       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1572     esac
1573     eval $ac_envvar=\$ac_optarg
1574     export $ac_envvar ;;
1575
1576   *)
1577     # FIXME: should be removed in autoconf 3.0.
1578     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1581     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1582     ;;
1583
1584   esac
1585 done
1586
1587 if test -n "$ac_prev"; then
1588   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1589   as_fn_error $? "missing argument to $ac_option"
1590 fi
1591
1592 if test -n "$ac_unrecognized_opts"; then
1593   case $enable_option_checking in
1594     no) ;;
1595     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1596     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597   esac
1598 fi
1599
1600 # Check all directory arguments for consistency.
1601 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602                 datadir sysconfdir sharedstatedir localstatedir includedir \
1603                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604                 libdir localedir mandir
1605 do
1606   eval ac_val=\$$ac_var
1607   # Remove trailing slashes.
1608   case $ac_val in
1609     */ )
1610       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611       eval $ac_var=\$ac_val;;
1612   esac
1613   # Be sure to have absolute directory names.
1614   case $ac_val in
1615     [\\/$]* | ?:[\\/]* )  continue;;
1616     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617   esac
1618   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1619 done
1620
1621 # There might be people who depend on the old broken behavior: `$host'
1622 # used to hold the argument of --host etc.
1623 # FIXME: To remove some day.
1624 build=$build_alias
1625 host=$host_alias
1626 target=$target_alias
1627
1628 # FIXME: To remove some day.
1629 if test "x$host_alias" != x; then
1630   if test "x$build_alias" = x; then
1631     cross_compiling=maybe
1632     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633     If a cross compiler is detected then cross compile mode will be used" >&2
1634   elif test "x$build_alias" != "x$host_alias"; then
1635     cross_compiling=yes
1636   fi
1637 fi
1638
1639 ac_tool_prefix=
1640 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642 test "$silent" = yes && exec 6>/dev/null
1643
1644
1645 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646 ac_ls_di=`ls -di .` &&
1647 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1648   as_fn_error $? "working directory cannot be determined"
1649 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1650   as_fn_error $? "pwd does not report name of working directory"
1651
1652
1653 # Find the source files, if location was not specified.
1654 if test -z "$srcdir"; then
1655   ac_srcdir_defaulted=yes
1656   # Try the directory containing this script, then the parent directory.
1657   ac_confdir=`$as_dirname -- "$as_myself" ||
1658 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659          X"$as_myself" : 'X\(//\)[^/]' \| \
1660          X"$as_myself" : 'X\(//\)$' \| \
1661          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662 $as_echo X"$as_myself" |
1663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664             s//\1/
1665             q
1666           }
1667           /^X\(\/\/\)[^/].*/{
1668             s//\1/
1669             q
1670           }
1671           /^X\(\/\/\)$/{
1672             s//\1/
1673             q
1674           }
1675           /^X\(\/\).*/{
1676             s//\1/
1677             q
1678           }
1679           s/.*/./; q'`
1680   srcdir=$ac_confdir
1681   if test ! -r "$srcdir/$ac_unique_file"; then
1682     srcdir=..
1683   fi
1684 else
1685   ac_srcdir_defaulted=no
1686 fi
1687 if test ! -r "$srcdir/$ac_unique_file"; then
1688   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1689   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1690 fi
1691 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692 ac_abs_confdir=`(
1693         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1694         pwd)`
1695 # When building in place, set srcdir=.
1696 if test "$ac_abs_confdir" = "$ac_pwd"; then
1697   srcdir=.
1698 fi
1699 # Remove unnecessary trailing slashes from srcdir.
1700 # Double slashes in file names in object file debugging info
1701 # mess up M-x gdb in Emacs.
1702 case $srcdir in
1703 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704 esac
1705 for ac_var in $ac_precious_vars; do
1706   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707   eval ac_env_${ac_var}_value=\$${ac_var}
1708   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710 done
1711
1712 #
1713 # Report the --help message.
1714 #
1715 if test "$ac_init_help" = "long"; then
1716   # Omit some internal or obsolete options to make the list less imposing.
1717   # This message is too long to be a string in the A/UX 3.1 sh.
1718   cat <<_ACEOF
1719 \`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
1720
1721 Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724 VAR=VALUE.  See below for descriptions of some of the useful variables.
1725
1726 Defaults for the options are specified in brackets.
1727
1728 Configuration:
1729   -h, --help              display this help and exit
1730       --help=short        display options specific to this package
1731       --help=recursive    display the short help of all the included packages
1732   -V, --version           display version information and exit
1733   -q, --quiet, --silent   do not print \`checking ...' messages
1734       --cache-file=FILE   cache test results in FILE [disabled]
1735   -C, --config-cache      alias for \`--cache-file=config.cache'
1736   -n, --no-create         do not create output files
1737       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1738
1739 Installation directories:
1740   --prefix=PREFIX         install architecture-independent files in PREFIX
1741                           [$ac_default_prefix]
1742   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1743                           [PREFIX]
1744
1745 By default, \`make install' will install all the files in
1746 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1747 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748 for instance \`--prefix=\$HOME'.
1749
1750 For better control, use the options below.
1751
1752 Fine tuning of the installation directories:
1753   --bindir=DIR            user executables [EPREFIX/bin]
1754   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1755   --libexecdir=DIR        program executables [EPREFIX/libexec]
1756   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1757   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1758   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1759   --libdir=DIR            object code libraries [EPREFIX/lib]
1760   --includedir=DIR        C header files [PREFIX/include]
1761   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1762   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1763   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1764   --infodir=DIR           info documentation [DATAROOTDIR/info]
1765   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1766   --mandir=DIR            man documentation [DATAROOTDIR/man]
1767   --docdir=DIR            documentation root
1768                           [DATAROOTDIR/doc/ImageMagick-7.0.0]
1769   --htmldir=DIR           html documentation [DOCDIR]
1770   --dvidir=DIR            dvi documentation [DOCDIR]
1771   --pdfdir=DIR            pdf documentation [DOCDIR]
1772   --psdir=DIR             ps documentation [DOCDIR]
1773 _ACEOF
1774
1775   cat <<\_ACEOF
1776
1777 Program names:
1778   --program-prefix=PREFIX            prepend PREFIX to installed program names
1779   --program-suffix=SUFFIX            append SUFFIX to installed program names
1780   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1781
1782 X features:
1783   --x-includes=DIR    X include files are in DIR
1784   --x-libraries=DIR   X library files are in DIR
1785
1786 System types:
1787   --build=BUILD     configure for building on BUILD [guessed]
1788   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1789   --target=TARGET   configure for building compilers for TARGET [HOST]
1790 _ACEOF
1791 fi
1792
1793 if test -n "$ac_init_help"; then
1794   case $ac_init_help in
1795      short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
1796    esac
1797   cat <<\_ACEOF
1798
1799 Optional Features:
1800   --disable-option-checking  ignore unrecognized --enable/--with options
1801   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1802   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1803   --enable-silent-rules          less verbose build output (undo: `make V=1')
1804   --disable-silent-rules         verbose build output (undo: `make V=0')
1805   --disable-dependency-tracking  speeds up one-time build
1806   --enable-dependency-tracking   do not reject slow dependency extractors
1807   --bounds-checking       enable run-time bounds-checking
1808   --enable-osx-universal-binary
1809                           build universal binary on OS X [[default=no]]
1810   --disable-openmp        do not use OpenMP
1811   --disable-opencl        do not use OpenCL
1812   --disable-largefile     omit support for large files
1813   --enable-shared[=PKGS]  build shared libraries [default=yes]
1814   --enable-static[=PKGS]  build static libraries [default=yes]
1815   --enable-fast-install[=PKGS]
1816                           optimize for fast installation [default=yes]
1817   --disable-libtool-lock  avoid locking (might break parallel builds)
1818   --enable-ltdl-install   install libltdl
1819   --enable-delegate-build look for delegate libraries in build directory
1820   --disable-deprecated    exclude deprecated methods in MagickCore and
1821                           MagickWand API's
1822   --disable-installed     Formally install ImageMagick under PREFIX
1823   --disable-cipher        disable enciphering and deciphering image pixels
1824   --enable-embeddable     enable self-contained, embeddable,
1825                           zero-configuration ImageMagick
1826   --enable-hdri           accurately represent the wide range of intensity
1827                           levels found in real scenes
1828   --disable-assert        disable assert() statements in build
1829   --enable-maintainer-mode  enable make rules and dependencies not useful
1830                           (and sometimes confusing) to the casual installer
1831   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1832   --enable-efence         enable 'efence' memory debug support
1833   --enable-prof           enable 'prof' profiling support
1834   --enable-gprof          enable 'gprof' profiling support
1835   --enable-gcov           enable 'gcov' profiling support
1836   --disable-assert        turn off assertions
1837
1838 Optional Packages:
1839   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1840   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1841   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1842   --with-dmalloc          use dmalloc, as in
1843                           http://www.dmalloc.com/dmalloc.tar.gz
1844   --without-threads       disable threads support
1845   --with-pic              try to use only PIC/non-PIC objects [default=use
1846                           both]
1847   --with-sysroot=DIR Search for dependent libraries within DIR
1848                         (or the compiler's sysroot if not specified).
1849   --with-included-ltdl    use the GNU ltdl sources included here
1850   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1851   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1852   --with-modules          enable building dynamically loadable modules
1853   --with-method-prefix=PREFIX
1854                           prefix MagickCore API methods
1855   --with-quantum-depth=DEPTH
1856                           number of bits in a pixel quantum (default 16)
1857   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1858                           memory)
1859   --with-frozenpaths      freeze delegate paths
1860   --without-magick-plus-plus
1861                           disable build/install of Magick++
1862   --with-perl             enable build/install of PerlMagick
1863   --with-perl-options=OPTIONS
1864                           options to pass on command-line when generating
1865                           PerlMagick's build file
1866   --with-umem             enable umem memory allocation library support
1867   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1868   --without-bzlib         disable BZLIB support
1869   --with-x                use the X Window System
1870   --without-zlib          disable ZLIB support
1871   --with-autotrace        enable autotrace support
1872   --without-dps           disable Display Postscript support
1873   --without-djvu          disable DjVu support
1874   --with-dejavu-font-dir=DIR
1875                           DejaVu font directory
1876   --without-fftw          disable FFTW support
1877   --without-fpx           disable FlashPIX support
1878   --without-fontconfig    disable fontconfig support
1879   --without-freetype      disable Freetype support
1880   --without-gslib         enable Ghostscript library support
1881   --with-fontpath=DIR     prepend to default font search path
1882   --with-gs-font-dir=DIR  Ghostscript font directory
1883   --without-gvc           disable GVC support
1884   --without-jbig          disable JBIG support
1885   --without-jpeg          disable JPEG support
1886   --without-jp2           disable JPEG-2000 support
1887   --without-lcms          disable lcms (v1.1X) support
1888   --without-lcms2         disable lcms (v2.X) support
1889   --without-lqr           disable Liquid Rescale support
1890   --without-lzma          disable LZMA support
1891   --without-openexr       disable OpenEXR support
1892   --without-png           disable PNG support
1893   --without-rsvg          disable RSVG support
1894   --without-tiff          disable TIFF support
1895   --without-webp          disable WEBP support
1896   --with-windows-font-dir=DIR
1897                           directory containing MS-Windows fonts
1898   --without-wmf           disable WMF support
1899   --without-xml           disable XML support
1900
1901 Some influential environment variables:
1902   CC          C compiler command
1903   CFLAGS      C compiler flags
1904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1905               nonstandard directory <lib dir>
1906   LIBS        libraries to pass to the linker, e.g. -l<library>
1907   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1908               you have headers in a nonstandard directory <include dir>
1909   CPP         C preprocessor
1910   CXX         C++ compiler command
1911   CXXFLAGS    C++ compiler flags
1912   PKG_CONFIG  path to pkg-config utility
1913   CXXCPP      C++ preprocessor
1914   XMKMF       Path to xmkmf, Makefile generator for X Window System
1915   AUTOTRACE_CFLAGS
1916               C compiler flags for AUTOTRACE, overriding pkg-config
1917   AUTOTRACE_LIBS
1918               linker flags for AUTOTRACE, overriding pkg-config
1919   FONTCONFIG_CFLAGS
1920               C compiler flags for FONTCONFIG, overriding pkg-config
1921   FONTCONFIG_LIBS
1922               linker flags for FONTCONFIG, overriding pkg-config
1923   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1924   GVC_LIBS    linker flags for GVC, overriding pkg-config
1925   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1926   LQR_LIBS    linker flags for LQR, overriding pkg-config
1927   OPENEXR_CFLAGS
1928               C compiler flags for OPENEXR, overriding pkg-config
1929   OPENEXR_LIBS
1930               linker flags for OPENEXR, overriding pkg-config
1931   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1932   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1933   CAIRO_SVG_CFLAGS
1934               C compiler flags for CAIRO_SVG, overriding pkg-config
1935   CAIRO_SVG_LIBS
1936               linker flags for CAIRO_SVG, overriding pkg-config
1937
1938 Use these variables to override the choices made by `configure' or to help
1939 it to find libraries and programs with nonstandard names/locations.
1940
1941 Report bugs to <http://www.imagemagick.org>.
1942 _ACEOF
1943 ac_status=$?
1944 fi
1945
1946 if test "$ac_init_help" = "recursive"; then
1947   # If there are subdirs, report their specific --help.
1948   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1949     test -d "$ac_dir" ||
1950       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1951       continue
1952     ac_builddir=.
1953
1954 case "$ac_dir" in
1955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956 *)
1957   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1958   # A ".." for each directory in $ac_dir_suffix.
1959   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1960   case $ac_top_builddir_sub in
1961   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1963   esac ;;
1964 esac
1965 ac_abs_top_builddir=$ac_pwd
1966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1967 # for backward compatibility:
1968 ac_top_builddir=$ac_top_build_prefix
1969
1970 case $srcdir in
1971   .)  # We are building in place.
1972     ac_srcdir=.
1973     ac_top_srcdir=$ac_top_builddir_sub
1974     ac_abs_top_srcdir=$ac_pwd ;;
1975   [\\/]* | ?:[\\/]* )  # Absolute name.
1976     ac_srcdir=$srcdir$ac_dir_suffix;
1977     ac_top_srcdir=$srcdir
1978     ac_abs_top_srcdir=$srcdir ;;
1979   *) # Relative name.
1980     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1981     ac_top_srcdir=$ac_top_build_prefix$srcdir
1982     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1983 esac
1984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1985
1986     cd "$ac_dir" || { ac_status=$?; continue; }
1987     # Check for guested configure.
1988     if test -f "$ac_srcdir/configure.gnu"; then
1989       echo &&
1990       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991     elif test -f "$ac_srcdir/configure"; then
1992       echo &&
1993       $SHELL "$ac_srcdir/configure" --help=recursive
1994     else
1995       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996     fi || ac_status=$?
1997     cd "$ac_pwd" || { ac_status=$?; break; }
1998   done
1999 fi
2000
2001 test -n "$ac_init_help" && exit $ac_status
2002 if $ac_init_version; then
2003   cat <<\_ACEOF
2004 ImageMagick configure 7.0.0
2005 generated by GNU Autoconf 2.68
2006
2007 Copyright (C) 2010 Free Software Foundation, Inc.
2008 This configure script is free software; the Free Software Foundation
2009 gives unlimited permission to copy, distribute and modify it.
2010 _ACEOF
2011   exit
2012 fi
2013
2014 ## ------------------------ ##
2015 ## Autoconf initialization. ##
2016 ## ------------------------ ##
2017
2018 # ac_fn_c_try_compile LINENO
2019 # --------------------------
2020 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2021 ac_fn_c_try_compile ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   rm -f conftest.$ac_objext
2025   if { { ac_try="$ac_compile"
2026 case "(($ac_try" in
2027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028   *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032   (eval "$ac_compile") 2>conftest.err
2033   ac_status=$?
2034   if test -s conftest.err; then
2035     grep -v '^ *+' conftest.err >conftest.er1
2036     cat conftest.er1 >&5
2037     mv -f conftest.er1 conftest.err
2038   fi
2039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040   test $ac_status = 0; } && {
2041          test -z "$ac_c_werror_flag" ||
2042          test ! -s conftest.err
2043        } && test -s conftest.$ac_objext; then :
2044   ac_retval=0
2045 else
2046   $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049         ac_retval=1
2050 fi
2051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052   as_fn_set_status $ac_retval
2053
2054 } # ac_fn_c_try_compile
2055
2056 # ac_fn_c_try_cpp LINENO
2057 # ----------------------
2058 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_c_try_cpp ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070   ac_status=$?
2071   if test -s conftest.err; then
2072     grep -v '^ *+' conftest.err >conftest.er1
2073     cat conftest.er1 >&5
2074     mv -f conftest.er1 conftest.err
2075   fi
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } > conftest.i && {
2078          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079          test ! -s conftest.err
2080        }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2085
2086     ac_retval=1
2087 fi
2088   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089   as_fn_set_status $ac_retval
2090
2091 } # ac_fn_c_try_cpp
2092
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2097 # accordingly.
2098 ac_fn_c_check_header_mongrel ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   if eval \${$3+:} false; then :
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 fi
2107 eval ac_res=\$$3
2108                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 else
2111   # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 #include <$2>
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120   ac_header_compiler=yes
2121 else
2122   ac_header_compiler=no
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2127
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 #include <$2>
2134 _ACEOF
2135 if ac_fn_c_try_cpp "$LINENO"; then :
2136   ac_header_preproc=yes
2137 else
2138   ac_header_preproc=no
2139 fi
2140 rm -f conftest.err conftest.i conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2143
2144 # So?  What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146   yes:no: )
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151     ;;
2152   no:yes:* )
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 ( $as_echo "## ----------------------------------------- ##
2164 ## Report this to http://www.imagemagick.org ##
2165 ## ----------------------------------------- ##"
2166      ) | sed "s/^/$as_me: WARNING:     /" >&2
2167     ;;
2168 esac
2169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172   $as_echo_n "(cached) " >&6
2173 else
2174   eval "$3=\$ac_header_compiler"
2175 fi
2176 eval ac_res=\$$3
2177                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 fi
2180   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182 } # ac_fn_c_check_header_mongrel
2183
2184 # ac_fn_c_try_run LINENO
2185 # ----------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2187 # that executables *can* be run.
2188 ac_fn_c_try_run ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   if { { ac_try="$ac_link"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198   (eval "$ac_link") 2>&5
2199   ac_status=$?
2200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2202   { { case "(($ac_try" in
2203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204   *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208   (eval "$ac_try") 2>&5
2209   ac_status=$?
2210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211   test $ac_status = 0; }; }; then :
2212   ac_retval=0
2213 else
2214   $as_echo "$as_me: program exited with status $ac_status" >&5
2215        $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218        ac_retval=$ac_status
2219 fi
2220   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222   as_fn_set_status $ac_retval
2223
2224 } # ac_fn_c_try_run
2225
2226 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2227 # -------------------------------------------------------
2228 # Tests whether HEADER exists and can be compiled using the include files in
2229 # INCLUDES, setting the cache variable VAR accordingly.
2230 ac_fn_c_check_header_compile ()
2231 {
2232   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236   $as_echo_n "(cached) " >&6
2237 else
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 #include <$2>
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244   eval "$3=yes"
2245 else
2246   eval "$3=no"
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 eval ac_res=\$$3
2251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255 } # ac_fn_c_check_header_compile
2256
2257 # ac_fn_cxx_try_compile LINENO
2258 # ----------------------------
2259 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_compile ()
2261 {
2262   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263   rm -f conftest.$ac_objext
2264   if { { ac_try="$ac_compile"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271   (eval "$ac_compile") 2>conftest.err
2272   ac_status=$?
2273   if test -s conftest.err; then
2274     grep -v '^ *+' conftest.err >conftest.er1
2275     cat conftest.er1 >&5
2276     mv -f conftest.er1 conftest.err
2277   fi
2278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279   test $ac_status = 0; } && {
2280          test -z "$ac_cxx_werror_flag" ||
2281          test ! -s conftest.err
2282        } && test -s conftest.$ac_objext; then :
2283   ac_retval=0
2284 else
2285   $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288         ac_retval=1
2289 fi
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291   as_fn_set_status $ac_retval
2292
2293 } # ac_fn_cxx_try_compile
2294
2295 # ac_fn_c_try_link LINENO
2296 # -----------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_c_try_link ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext conftest$ac_exeext
2302   if { { ac_try="$ac_link"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_link") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_c_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest$ac_exeext && {
2321          test "$cross_compiling" = yes ||
2322          $as_test_x conftest$ac_exeext
2323        }; then :
2324   ac_retval=0
2325 else
2326   $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329         ac_retval=1
2330 fi
2331   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333   # interfere with the next link command; also delete a directory that is
2334   # left behind by Apple's compiler.  We do this before executing the actions.
2335   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337   as_fn_set_status $ac_retval
2338
2339 } # ac_fn_c_try_link
2340
2341 # ac_fn_c_check_func LINENO FUNC VAR
2342 # ----------------------------------
2343 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2344 ac_fn_c_check_func ()
2345 {
2346   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \${$3+:} false; then :
2350   $as_echo_n "(cached) " >&6
2351 else
2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2356 #define $2 innocuous_$2
2357
2358 /* System header to define __stub macros and hopefully few prototypes,
2359     which can conflict with char $2 (); below.
2360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361     <limits.h> exists even on freestanding compilers.  */
2362
2363 #ifdef __STDC__
2364 # include <limits.h>
2365 #else
2366 # include <assert.h>
2367 #endif
2368
2369 #undef $2
2370
2371 /* Override any GCC internal prototype to avoid an error.
2372    Use char because int might match the return type of a GCC
2373    builtin and then its argument prototype would still apply.  */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 char $2 ();
2378 /* The GNU C library defines this for functions which it implements
2379     to always fail with ENOSYS.  Some functions are actually named
2380     something starting with __ and the normal name is an alias.  */
2381 #if defined __stub_$2 || defined __stub___$2
2382 choke me
2383 #endif
2384
2385 int
2386 main ()
2387 {
2388 return $2 ();
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_link "$LINENO"; then :
2394   eval "$3=yes"
2395 else
2396   eval "$3=no"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext \
2399     conftest$ac_exeext conftest.$ac_ext
2400 fi
2401 eval ac_res=\$$3
2402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405
2406 } # ac_fn_c_check_func
2407
2408 # ac_fn_cxx_try_cpp LINENO
2409 # ------------------------
2410 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411 ac_fn_cxx_try_cpp ()
2412 {
2413   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414   if { { ac_try="$ac_cpp conftest.$ac_ext"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 $as_echo "$ac_try_echo"; } >&5
2421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2422   ac_status=$?
2423   if test -s conftest.err; then
2424     grep -v '^ *+' conftest.err >conftest.er1
2425     cat conftest.er1 >&5
2426     mv -f conftest.er1 conftest.err
2427   fi
2428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429   test $ac_status = 0; } > conftest.i && {
2430          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2431          test ! -s conftest.err
2432        }; then :
2433   ac_retval=0
2434 else
2435   $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438     ac_retval=1
2439 fi
2440   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441   as_fn_set_status $ac_retval
2442
2443 } # ac_fn_cxx_try_cpp
2444
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link ()
2449 {
2450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451   rm -f conftest.$ac_objext conftest$ac_exeext
2452   if { { ac_try="$ac_link"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459   (eval "$ac_link") 2>conftest.err
2460   ac_status=$?
2461   if test -s conftest.err; then
2462     grep -v '^ *+' conftest.err >conftest.er1
2463     cat conftest.er1 >&5
2464     mv -f conftest.er1 conftest.err
2465   fi
2466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467   test $ac_status = 0; } && {
2468          test -z "$ac_cxx_werror_flag" ||
2469          test ! -s conftest.err
2470        } && test -s conftest$ac_exeext && {
2471          test "$cross_compiling" = yes ||
2472          $as_test_x conftest$ac_exeext
2473        }; then :
2474   ac_retval=0
2475 else
2476   $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479         ac_retval=1
2480 fi
2481   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483   # interfere with the next link command; also delete a directory that is
2484   # left behind by Apple's compiler.  We do this before executing the actions.
2485   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487   as_fn_set_status $ac_retval
2488
2489 } # ac_fn_cxx_try_link
2490
2491 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2492 # ---------------------------------------------
2493 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2494 # accordingly.
2495 ac_fn_c_check_decl ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   as_decl_name=`echo $2|sed 's/ *(.*//'`
2499   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2502 if eval \${$3+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h.  */
2507 $4
2508 int
2509 main ()
2510 {
2511 #ifndef $as_decl_name
2512 #ifdef __cplusplus
2513   (void) $as_decl_use;
2514 #else
2515   (void) $as_decl_name;
2516 #endif
2517 #endif
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524   eval "$3=yes"
2525 else
2526   eval "$3=no"
2527 fi
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 fi
2530 eval ac_res=\$$3
2531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534
2535 } # ac_fn_c_check_decl
2536
2537 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2538 # -------------------------------------------
2539 # Tests whether TYPE exists after having included INCLUDES, setting cache
2540 # variable VAR accordingly.
2541 ac_fn_c_check_type ()
2542 {
2543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   eval "$3=no"
2550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $4
2553 int
2554 main ()
2555 {
2556 if (sizeof ($2))
2557          return 0;
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"; then :
2563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h.  */
2565 $4
2566 int
2567 main ()
2568 {
2569 if (sizeof (($2)))
2570             return 0;
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576
2577 else
2578   eval "$3=yes"
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 eval ac_res=\$$3
2585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586 $as_echo "$ac_res" >&6; }
2587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588
2589 } # ac_fn_c_check_type
2590
2591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592 # ----------------------------------------------------
2593 # Tries to find if the field MEMBER exists in type AGGR, after including
2594 # INCLUDES, setting cache variable VAR accordingly.
2595 ac_fn_c_check_member ()
2596 {
2597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599 $as_echo_n "checking for $2.$3... " >&6; }
2600 if eval \${$4+:} false; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $5
2606 int
2607 main ()
2608 {
2609 static $2 ac_aggr;
2610 if (ac_aggr.$3)
2611 return 0;
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 if ac_fn_c_try_compile "$LINENO"; then :
2617   eval "$4=yes"
2618 else
2619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 $5
2622 int
2623 main ()
2624 {
2625 static $2 ac_aggr;
2626 if (sizeof ac_aggr.$3)
2627 return 0;
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633   eval "$4=yes"
2634 else
2635   eval "$4=no"
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641 eval ac_res=\$$4
2642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645
2646 } # ac_fn_c_check_member
2647
2648 # ac_fn_c_find_intX_t LINENO BITS VAR
2649 # -----------------------------------
2650 # Finds a signed integer type with width BITS, setting cache variable VAR
2651 # accordingly.
2652 ac_fn_c_find_intX_t ()
2653 {
2654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2656 $as_echo_n "checking for int$2_t... " >&6; }
2657 if eval \${$3+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   eval "$3=no"
2661      # Order is important - never check a type that is potentially smaller
2662      # than half of the expected target width.
2663      for ac_type in int$2_t 'int' 'long int' \
2664          'long long int' 'short int' 'signed char'; do
2665        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $ac_includes_default
2668              enum { N = $2 / 2 - 1 };
2669 int
2670 main ()
2671 {
2672 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2673 test_array [0] = 0
2674
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_compile "$LINENO"; then :
2680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h.  */
2682 $ac_includes_default
2683                 enum { N = $2 / 2 - 1 };
2684 int
2685 main ()
2686 {
2687 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2688                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2689 test_array [0] = 0
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696
2697 else
2698   case $ac_type in #(
2699   int$2_t) :
2700     eval "$3=yes" ;; #(
2701   *) :
2702     eval "$3=\$ac_type" ;;
2703 esac
2704 fi
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708        if eval test \"x\$"$3"\" = x"no"; then :
2709
2710 else
2711   break
2712 fi
2713      done
2714 fi
2715 eval ac_res=\$$3
2716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720 } # ac_fn_c_find_intX_t
2721
2722 # ac_fn_c_find_uintX_t LINENO BITS VAR
2723 # ------------------------------------
2724 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2725 # accordingly.
2726 ac_fn_c_find_uintX_t ()
2727 {
2728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2730 $as_echo_n "checking for uint$2_t... " >&6; }
2731 if eval \${$3+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   eval "$3=no"
2735      # Order is important - never check a type that is potentially smaller
2736      # than half of the expected target width.
2737      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2738          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2739        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h.  */
2741 $ac_includes_default
2742 int
2743 main ()
2744 {
2745 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2746 test_array [0] = 0
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753   case $ac_type in #(
2754   uint$2_t) :
2755     eval "$3=yes" ;; #(
2756   *) :
2757     eval "$3=\$ac_type" ;;
2758 esac
2759 fi
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761        if eval test \"x\$"$3"\" = x"no"; then :
2762
2763 else
2764   break
2765 fi
2766      done
2767 fi
2768 eval ac_res=\$$3
2769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773 } # ac_fn_c_find_uintX_t
2774
2775 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2776 # --------------------------------------------
2777 # Tries to find the compile-time value of EXPR in a program that includes
2778 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2779 # computed
2780 ac_fn_c_compute_int ()
2781 {
2782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783   if test "$cross_compiling" = yes; then
2784     # Depending upon the size, compute the lo and hi bounds.
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h.  */
2787 $4
2788 int
2789 main ()
2790 {
2791 static int test_array [1 - 2 * !(($2) >= 0)];
2792 test_array [0] = 0
2793
2794   ;
2795   return 0;
2796 }
2797 _ACEOF
2798 if ac_fn_c_try_compile "$LINENO"; then :
2799   ac_lo=0 ac_mid=0
2800   while :; do
2801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h.  */
2803 $4
2804 int
2805 main ()
2806 {
2807 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2808 test_array [0] = 0
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 if ac_fn_c_try_compile "$LINENO"; then :
2815   ac_hi=$ac_mid; break
2816 else
2817   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2818                         if test $ac_lo -le $ac_mid; then
2819                           ac_lo= ac_hi=
2820                           break
2821                         fi
2822                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823 fi
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825   done
2826 else
2827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h.  */
2829 $4
2830 int
2831 main ()
2832 {
2833 static int test_array [1 - 2 * !(($2) < 0)];
2834 test_array [0] = 0
2835
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 if ac_fn_c_try_compile "$LINENO"; then :
2841   ac_hi=-1 ac_mid=-1
2842   while :; do
2843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h.  */
2845 $4
2846 int
2847 main ()
2848 {
2849 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2850 test_array [0] = 0
2851
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857   ac_lo=$ac_mid; break
2858 else
2859   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860                         if test $ac_mid -le $ac_hi; then
2861                           ac_lo= ac_hi=
2862                           break
2863                         fi
2864                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865 fi
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867   done
2868 else
2869   ac_lo= ac_hi=
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 fi
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 # Binary search between lo and hi bounds.
2875 while test "x$ac_lo" != "x$ac_hi"; do
2876   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h.  */
2879 $4
2880 int
2881 main ()
2882 {
2883 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2884 test_array [0] = 0
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_c_try_compile "$LINENO"; then :
2891   ac_hi=$ac_mid
2892 else
2893   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897 case $ac_lo in #((
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899 '') ac_retval=1 ;;
2900 esac
2901   else
2902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2907 #include <stdio.h>
2908 #include <stdlib.h>
2909 int
2910 main ()
2911 {
2912
2913   FILE *f = fopen ("conftest.val", "w");
2914   if (! f)
2915     return 1;
2916   if (($2) < 0)
2917     {
2918       long int i = longval ();
2919       if (i != ($2))
2920         return 1;
2921       fprintf (f, "%ld", i);
2922     }
2923   else
2924     {
2925       unsigned long int i = ulongval ();
2926       if (i != ($2))
2927         return 1;
2928       fprintf (f, "%lu", i);
2929     }
2930   /* Do not output a trailing newline, as this causes \r\n confusion
2931      on some platforms.  */
2932   return ferror (f) || fclose (f) != 0;
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_c_try_run "$LINENO"; then :
2939   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940 else
2941   ac_retval=1
2942 fi
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944   conftest.$ac_objext conftest.beam conftest.$ac_ext
2945 rm -f conftest.val
2946
2947   fi
2948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949   as_fn_set_status $ac_retval
2950
2951 } # ac_fn_c_compute_int
2952
2953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954 # ---------------------------------------------------------
2955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956 # the include files in INCLUDES and setting the cache variable VAR
2957 # accordingly.
2958 ac_fn_cxx_check_header_mongrel ()
2959 {
2960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2961   if eval \${$3+:} false; then :
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963 $as_echo_n "checking for $2... " >&6; }
2964 if eval \${$3+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 fi
2967 eval ac_res=\$$3
2968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969 $as_echo "$ac_res" >&6; }
2970 else
2971   # Is the header compilable?
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973 $as_echo_n "checking $2 usability... " >&6; }
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h.  */
2976 $4
2977 #include <$2>
2978 _ACEOF
2979 if ac_fn_cxx_try_compile "$LINENO"; then :
2980   ac_header_compiler=yes
2981 else
2982   ac_header_compiler=no
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986 $as_echo "$ac_header_compiler" >&6; }
2987
2988 # Is the header present?
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990 $as_echo_n "checking $2 presence... " >&6; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h.  */
2993 #include <$2>
2994 _ACEOF
2995 if ac_fn_cxx_try_cpp "$LINENO"; then :
2996   ac_header_preproc=yes
2997 else
2998   ac_header_preproc=no
2999 fi
3000 rm -f conftest.err conftest.i conftest.$ac_ext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002 $as_echo "$ac_header_preproc" >&6; }
3003
3004 # So?  What about this header?
3005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006   yes:no: )
3007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3011     ;;
3012   no:yes:* )
3013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3016 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3020 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3023 ( $as_echo "## ----------------------------------------- ##
3024 ## Report this to http://www.imagemagick.org ##
3025 ## ----------------------------------------- ##"
3026      ) | sed "s/^/$as_me: WARNING:     /" >&2
3027     ;;
3028 esac
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030 $as_echo_n "checking for $2... " >&6; }
3031 if eval \${$3+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   eval "$3=\$ac_header_compiler"
3035 fi
3036 eval ac_res=\$$3
3037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038 $as_echo "$ac_res" >&6; }
3039 fi
3040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3041
3042 } # ac_fn_cxx_check_header_mongrel
3043 cat >config.log <<_ACEOF
3044 This file contains any messages produced by compilers while
3045 running configure, to aid debugging if configure makes a mistake.
3046
3047 It was created by ImageMagick $as_me 7.0.0, which was
3048 generated by GNU Autoconf 2.68.  Invocation command line was
3049
3050   $ $0 $@
3051
3052 _ACEOF
3053 exec 5>>config.log
3054 {
3055 cat <<_ASUNAME
3056 ## --------- ##
3057 ## Platform. ##
3058 ## --------- ##
3059
3060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3065
3066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3068
3069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3072 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3076
3077 _ASUNAME
3078
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084     $as_echo "PATH: $as_dir"
3085   done
3086 IFS=$as_save_IFS
3087
3088 } >&5
3089
3090 cat >&5 <<_ACEOF
3091
3092
3093 ## ----------- ##
3094 ## Core tests. ##
3095 ## ----------- ##
3096
3097 _ACEOF
3098
3099
3100 # Keep a trace of the command line.
3101 # Strip out --no-create and --no-recursion so they do not pile up.
3102 # Strip out --silent because we don't want to record it for future runs.
3103 # Also quote any args containing shell meta-characters.
3104 # Make two passes to allow for proper duplicate-argument suppression.
3105 ac_configure_args=
3106 ac_configure_args0=
3107 ac_configure_args1=
3108 ac_must_keep_next=false
3109 for ac_pass in 1 2
3110 do
3111   for ac_arg
3112   do
3113     case $ac_arg in
3114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3116     | -silent | --silent | --silen | --sile | --sil)
3117       continue ;;
3118     *\'*)
3119       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3120     esac
3121     case $ac_pass in
3122     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3123     2)
3124       as_fn_append ac_configure_args1 " '$ac_arg'"
3125       if test $ac_must_keep_next = true; then
3126         ac_must_keep_next=false # Got value, back to normal.
3127       else
3128         case $ac_arg in
3129           *=* | --config-cache | -C | -disable-* | --disable-* \
3130           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3131           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3132           | -with-* | --with-* | -without-* | --without-* | --x)
3133             case "$ac_configure_args0 " in
3134               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3135             esac
3136             ;;
3137           -* ) ac_must_keep_next=true ;;
3138         esac
3139       fi
3140       as_fn_append ac_configure_args " '$ac_arg'"
3141       ;;
3142     esac
3143   done
3144 done
3145 { ac_configure_args0=; unset ac_configure_args0;}
3146 { ac_configure_args1=; unset ac_configure_args1;}
3147
3148 # When interrupted or exit'd, cleanup temporary files, and complete
3149 # config.log.  We remove comments because anyway the quotes in there
3150 # would cause problems or look ugly.
3151 # WARNING: Use '\'' to represent an apostrophe within the trap.
3152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3153 trap 'exit_status=$?
3154   # Save into config.log some information that might help in debugging.
3155   {
3156     echo
3157
3158     $as_echo "## ---------------- ##
3159 ## Cache variables. ##
3160 ## ---------------- ##"
3161     echo
3162     # The following way of writing the cache mishandles newlines in values,
3163 (
3164   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3165     eval ac_val=\$$ac_var
3166     case $ac_val in #(
3167     *${as_nl}*)
3168       case $ac_var in #(
3169       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171       esac
3172       case $ac_var in #(
3173       _ | IFS | as_nl) ;; #(
3174       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3175       *) { eval $ac_var=; unset $ac_var;} ;;
3176       esac ;;
3177     esac
3178   done
3179   (set) 2>&1 |
3180     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3181     *${as_nl}ac_space=\ *)
3182       sed -n \
3183         "s/'\''/'\''\\\\'\'''\''/g;
3184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185       ;; #(
3186     *)
3187       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3188       ;;
3189     esac |
3190     sort
3191 )
3192     echo
3193
3194     $as_echo "## ----------------- ##
3195 ## Output variables. ##
3196 ## ----------------- ##"
3197     echo
3198     for ac_var in $ac_subst_vars
3199     do
3200       eval ac_val=\$$ac_var
3201       case $ac_val in
3202       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203       esac
3204       $as_echo "$ac_var='\''$ac_val'\''"
3205     done | sort
3206     echo
3207
3208     if test -n "$ac_subst_files"; then
3209       $as_echo "## ------------------- ##
3210 ## File substitutions. ##
3211 ## ------------------- ##"
3212       echo
3213       for ac_var in $ac_subst_files
3214       do
3215         eval ac_val=\$$ac_var
3216         case $ac_val in
3217         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3218         esac
3219         $as_echo "$ac_var='\''$ac_val'\''"
3220       done | sort
3221       echo
3222     fi
3223
3224     if test -s confdefs.h; then
3225       $as_echo "## ----------- ##
3226 ## confdefs.h. ##
3227 ## ----------- ##"
3228       echo
3229       cat confdefs.h
3230       echo
3231     fi
3232     test "$ac_signal" != 0 &&
3233       $as_echo "$as_me: caught signal $ac_signal"
3234     $as_echo "$as_me: exit $exit_status"
3235   } >&5
3236   rm -f core *.core core.conftest.* &&
3237     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238     exit $exit_status
3239 ' 0
3240 for ac_signal in 1 2 13 15; do
3241   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3242 done
3243 ac_signal=0
3244
3245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3246 rm -f -r conftest* confdefs.h
3247
3248 $as_echo "/* confdefs.h */" > confdefs.h
3249
3250 # Predefined preprocessor variables.
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_NAME "$PACKAGE_NAME"
3254 _ACEOF
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258 _ACEOF
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3262 _ACEOF
3263
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_STRING "$PACKAGE_STRING"
3266 _ACEOF
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270 _ACEOF
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_URL "$PACKAGE_URL"
3274 _ACEOF
3275
3276
3277 # Let the site file select an alternate cache file if it wants to.
3278 # Prefer an explicitly selected file to automatically selected ones.
3279 ac_site_file1=NONE
3280 ac_site_file2=NONE
3281 if test -n "$CONFIG_SITE"; then
3282   # We do not want a PATH search for config.site.
3283   case $CONFIG_SITE in #((
3284     -*)  ac_site_file1=./$CONFIG_SITE;;
3285     */*) ac_site_file1=$CONFIG_SITE;;
3286     *)   ac_site_file1=./$CONFIG_SITE;;
3287   esac
3288 elif test "x$prefix" != xNONE; then
3289   ac_site_file1=$prefix/share/config.site
3290   ac_site_file2=$prefix/etc/config.site
3291 else
3292   ac_site_file1=$ac_default_prefix/share/config.site
3293   ac_site_file2=$ac_default_prefix/etc/config.site
3294 fi
3295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3296 do
3297   test "x$ac_site_file" = xNONE && continue
3298   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3299     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3301     sed 's/^/| /' "$ac_site_file" >&5
3302     . "$ac_site_file" \
3303       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "failed to load site script $ac_site_file
3306 See \`config.log' for more details" "$LINENO" 5; }
3307   fi
3308 done
3309
3310 if test -r "$cache_file"; then
3311   # Some versions of bash will fail to source /dev/null (special files
3312   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3313   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3315 $as_echo "$as_me: loading cache $cache_file" >&6;}
3316     case $cache_file in
3317       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318       *)                      . "./$cache_file";;
3319     esac
3320   fi
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3323 $as_echo "$as_me: creating cache $cache_file" >&6;}
3324   >$cache_file
3325 fi
3326
3327 as_fn_append ac_header_list " stdlib.h"
3328 as_fn_append ac_header_list " unistd.h"
3329 as_fn_append ac_header_list " sys/param.h"
3330 # Check that the precious variables saved in the cache have kept the same
3331 # value.
3332 ac_cache_corrupted=false
3333 for ac_var in $ac_precious_vars; do
3334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3335   eval ac_new_set=\$ac_env_${ac_var}_set
3336   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3337   eval ac_new_val=\$ac_env_${ac_var}_value
3338   case $ac_old_set,$ac_new_set in
3339     set,)
3340       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3341 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3342       ac_cache_corrupted=: ;;
3343     ,set)
3344       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3345 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3346       ac_cache_corrupted=: ;;
3347     ,);;
3348     *)
3349       if test "x$ac_old_val" != "x$ac_new_val"; then
3350         # differences in whitespace do not lead to failure.
3351         ac_old_val_w=`echo x $ac_old_val`
3352         ac_new_val_w=`echo x $ac_new_val`
3353         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3354           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3355 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3356           ac_cache_corrupted=:
3357         else
3358           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3359 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3360           eval $ac_var=\$ac_old_val
3361         fi
3362         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3363 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3364         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3365 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3366       fi;;
3367   esac
3368   # Pass precious variables to config.status.
3369   if test "$ac_new_set" = set; then
3370     case $ac_new_val in
3371     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3372     *) ac_arg=$ac_var=$ac_new_val ;;
3373     esac
3374     case " $ac_configure_args " in
3375       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3376       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3377     esac
3378   fi
3379 done
3380 if $ac_cache_corrupted; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3384 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3385   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3386 fi
3387 ## -------------------- ##
3388 ## Main body of script. ##
3389 ## -------------------- ##
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398
3399 ac_aux_dir=
3400 for ac_dir in config "$srcdir"/config; do
3401   if test -f "$ac_dir/install-sh"; then
3402     ac_aux_dir=$ac_dir
3403     ac_install_sh="$ac_aux_dir/install-sh -c"
3404     break
3405   elif test -f "$ac_dir/install.sh"; then
3406     ac_aux_dir=$ac_dir
3407     ac_install_sh="$ac_aux_dir/install.sh -c"
3408     break
3409   elif test -f "$ac_dir/shtool"; then
3410     ac_aux_dir=$ac_dir
3411     ac_install_sh="$ac_aux_dir/shtool install -c"
3412     break
3413   fi
3414 done
3415 if test -z "$ac_aux_dir"; then
3416   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3417 fi
3418
3419 # These three variables are undocumented and unsupported,
3420 # and are intended to be withdrawn in a future Autoconf release.
3421 # They can cause serious problems if a builder's source tree is in a directory
3422 # whose full name contains unusual characters.
3423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3425 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3426
3427
3428
3429
3430 ac_config_headers="$ac_config_headers config/config.h"
3431
3432
3433 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3434
3435 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3436
3437
3438 #
3439 # Save initial user-tunable values
3440 #
3441 USER_LIBS=$LIBS
3442 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3443   eval isset=\${$var+set}
3444     if test "$isset" = 'set'; then
3445         eval val=$`echo $var`
3446         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3447     fi
3448 done
3449
3450
3451 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3452
3453
3454 # Source file containing package/library versioning information.
3455 . ${srcdir}/version.sh
3456
3457 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3458 # Make sure we can run config.sub.
3459 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3460   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3463 $as_echo_n "checking build system type... " >&6; }
3464 if ${ac_cv_build+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   ac_build_alias=$build_alias
3468 test "x$ac_build_alias" = x &&
3469   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3470 test "x$ac_build_alias" = x &&
3471   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3473   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3474
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3477 $as_echo "$ac_cv_build" >&6; }
3478 case $ac_cv_build in
3479 *-*-*) ;;
3480 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3481 esac
3482 build=$ac_cv_build
3483 ac_save_IFS=$IFS; IFS='-'
3484 set x $ac_cv_build
3485 shift
3486 build_cpu=$1
3487 build_vendor=$2
3488 shift; shift
3489 # Remember, the first character of IFS is used to create $*,
3490 # except with old shells:
3491 build_os=$*
3492 IFS=$ac_save_IFS
3493 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494
3495
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3497 $as_echo_n "checking host system type... " >&6; }
3498 if ${ac_cv_host+:} false; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test "x$host_alias" = x; then
3502   ac_cv_host=$ac_cv_build
3503 else
3504   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3505     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3506 fi
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3510 $as_echo "$ac_cv_host" >&6; }
3511 case $ac_cv_host in
3512 *-*-*) ;;
3513 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3514 esac
3515 host=$ac_cv_host
3516 ac_save_IFS=$IFS; IFS='-'
3517 set x $ac_cv_host
3518 shift
3519 host_cpu=$1
3520 host_vendor=$2
3521 shift; shift
3522 # Remember, the first character of IFS is used to create $*,
3523 # except with old shells:
3524 host_os=$*
3525 IFS=$ac_save_IFS
3526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527
3528
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3530 $as_echo_n "checking target system type... " >&6; }
3531 if ${ac_cv_target+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test "x$target_alias" = x; then
3535   ac_cv_target=$ac_cv_host
3536 else
3537   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3538     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3539 fi
3540
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3543 $as_echo "$ac_cv_target" >&6; }
3544 case $ac_cv_target in
3545 *-*-*) ;;
3546 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3547 esac
3548 target=$ac_cv_target
3549 ac_save_IFS=$IFS; IFS='-'
3550 set x $ac_cv_target
3551 shift
3552 target_cpu=$1
3553 target_vendor=$2
3554 shift; shift
3555 # Remember, the first character of IFS is used to create $*,
3556 # except with old shells:
3557 target_os=$*
3558 IFS=$ac_save_IFS
3559 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3560
3561
3562 # The aliases save the names the user supplied, while $host etc.
3563 # will get canonicalized.
3564 test -n "$target_alias" &&
3565   test "$program_prefix$program_suffix$program_transform_name" = \
3566     NONENONEs,x,x, &&
3567   program_prefix=${target_alias}-
3568
3569
3570
3571
3572 MAGICK_TARGET_CPU=$host_cpu
3573
3574
3575 MAGICK_TARGET_VENDOR=$host_vendor
3576
3577
3578 MAGICK_TARGET_OS=$host_os
3579
3580
3581 # Substitute library versioning
3582 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3583
3584 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3585
3586 MAGICK_SVN_REVISION=exported
3587
3588
3589
3590
3591 # Ensure that make can run correctly
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3593 $as_echo_n "checking whether build environment is sane... " >&6; }
3594 # Just in case
3595 sleep 1
3596 echo timestamp > conftest.file
3597 # Reject unsafe characters in $srcdir or the absolute working directory
3598 # name.  Accept space and tab only in the latter.
3599 am_lf='
3600 '
3601 case `pwd` in
3602   *[\\\"\#\$\&\'\`$am_lf]*)
3603     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3604 esac
3605 case $srcdir in
3606   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3607     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3608 esac
3609
3610 # Do `set' in a subshell so we don't clobber the current shell's
3611 # arguments.  Must try -L first in case configure is actually a
3612 # symlink; some systems play weird games with the mod time of symlinks
3613 # (eg FreeBSD returns the mod time of the symlink's containing
3614 # directory).
3615 if (
3616    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3617    if test "$*" = "X"; then
3618       # -L didn't work.
3619       set X `ls -t "$srcdir/configure" conftest.file`
3620    fi
3621    rm -f conftest.file
3622    if test "$*" != "X $srcdir/configure conftest.file" \
3623       && test "$*" != "X conftest.file $srcdir/configure"; then
3624
3625       # If neither matched, then we have a broken ls.  This can happen
3626       # if, for instance, CONFIG_SHELL is bash and it inherits a
3627       # broken ls alias from the environment.  This has actually
3628       # happened.  Such a system could not be considered "sane".
3629       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3630 alias in your environment" "$LINENO" 5
3631    fi
3632
3633    test "$2" = conftest.file
3634    )
3635 then
3636    # Ok.
3637    :
3638 else
3639    as_fn_error $? "newly created file is older than distributed files!
3640 Check your system clock" "$LINENO" 5
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643 $as_echo "yes" >&6; }
3644
3645 am__api_version='1.11'
3646
3647 # Find a good install program.  We prefer a C program (faster),
3648 # so one script is as good as another.  But avoid the broken or
3649 # incompatible versions:
3650 # SysV /etc/install, /usr/sbin/install
3651 # SunOS /usr/etc/install
3652 # IRIX /sbin/install
3653 # AIX /bin/install
3654 # AmigaOS /C/install, which installs bootblocks on floppy discs
3655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658 # OS/2's system install, which has a completely different semantic
3659 # ./install, which can be erroneously created by make from ./install.sh.
3660 # Reject install programs that cannot install multiple files.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3663 if test -z "$INSTALL"; then
3664 if ${ac_cv_path_install+:} false; then :
3665   $as_echo_n "(cached) " >&6
3666 else
3667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672     # Account for people who put trailing slashes in PATH elements.
3673 case $as_dir/ in #((
3674   ./ | .// | /[cC]/* | \
3675   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3677   /usr/ucb/* ) ;;
3678   *)
3679     # OSF1 and SCO ODT 3.0 have their own names for install.
3680     # Don't use installbsd from OSF since it installs stuff as root
3681     # by default.
3682     for ac_prog in ginstall scoinst install; do
3683       for ac_exec_ext in '' $ac_executable_extensions; do
3684         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3685           if test $ac_prog = install &&
3686             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687             # AIX install.  It has an incompatible calling convention.
3688             :
3689           elif test $ac_prog = install &&
3690             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691             # program-specific install script used by HP pwplus--don't use.
3692             :
3693           else
3694             rm -rf conftest.one conftest.two conftest.dir
3695             echo one > conftest.one
3696             echo two > conftest.two
3697             mkdir conftest.dir
3698             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699               test -s conftest.one && test -s conftest.two &&
3700               test -s conftest.dir/conftest.one &&
3701               test -s conftest.dir/conftest.two
3702             then
3703               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704               break 3
3705             fi
3706           fi
3707         fi
3708       done
3709     done
3710     ;;
3711 esac
3712
3713   done
3714 IFS=$as_save_IFS
3715
3716 rm -rf conftest.one conftest.two conftest.dir
3717
3718 fi
3719   if test "${ac_cv_path_install+set}" = set; then
3720     INSTALL=$ac_cv_path_install
3721   else
3722     # As a last resort, use the slow shell script.  Don't cache a
3723     # value for INSTALL within a source directory, because that will
3724     # break other packages using the cache if that directory is
3725     # removed, or if the value is a relative name.
3726     INSTALL=$ac_install_sh
3727   fi
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730 $as_echo "$INSTALL" >&6; }
3731
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739
3740 test "$program_prefix" != NONE &&
3741   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3742 # Use a double $ so make ignores it.
3743 test "$program_suffix" != NONE &&
3744   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3745 # Double any \ or $.
3746 # By default was `s,x,x', remove it if useless.
3747 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3748 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749
3750 # expand $ac_aux_dir to an absolute path
3751 am_aux_dir=`cd $ac_aux_dir && pwd`
3752
3753 if test x"${MISSING+set}" != xset; then
3754   case $am_aux_dir in
3755   *\ * | *\     *)
3756     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3757   *)
3758     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3759   esac
3760 fi
3761 # Use eval to expand $SHELL
3762 if eval "$MISSING --run true"; then
3763   am_missing_run="$MISSING --run "
3764 else
3765   am_missing_run=
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3767 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3768 fi
3769
3770 if test x"${install_sh}" != xset; then
3771   case $am_aux_dir in
3772   *\ * | *\     *)
3773     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3774   *)
3775     install_sh="\${SHELL} $am_aux_dir/install-sh"
3776   esac
3777 fi
3778
3779 # Installed binaries are usually stripped using `strip' when the user
3780 # run `make install-strip'.  However `strip' might not be the right
3781 # tool to use in cross-compilation environments, therefore Automake
3782 # will honor the `STRIP' environment variable to overrule this program.
3783 if test "$cross_compiling" != no; then
3784   if test -n "$ac_tool_prefix"; then
3785   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}strip; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_STRIP+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -n "$STRIP"; then
3793   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800     for ac_exec_ext in '' $ac_executable_extensions; do
3801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807   done
3808 IFS=$as_save_IFS
3809
3810 fi
3811 fi
3812 STRIP=$ac_cv_prog_STRIP
3813 if test -n "$STRIP"; then
3814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3815 $as_echo "$STRIP" >&6; }
3816 else
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821
3822 fi
3823 if test -z "$ac_cv_prog_STRIP"; then
3824   ac_ct_STRIP=$STRIP
3825   # Extract the first word of "strip", so it can be a program name with args.
3826 set dummy strip; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3830   $as_echo_n "(cached) " >&6
3831 else
3832   if test -n "$ac_ct_STRIP"; then
3833   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840     for ac_exec_ext in '' $ac_executable_extensions; do
3841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842     ac_cv_prog_ac_ct_STRIP="strip"
3843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847   done
3848 IFS=$as_save_IFS
3849
3850 fi
3851 fi
3852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3853 if test -n "$ac_ct_STRIP"; then
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3855 $as_echo "$ac_ct_STRIP" >&6; }
3856 else
3857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 fi
3860
3861   if test "x$ac_ct_STRIP" = x; then
3862     STRIP=":"
3863   else
3864     case $cross_compiling:$ac_tool_warned in
3865 yes:)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3869 esac
3870     STRIP=$ac_ct_STRIP
3871   fi
3872 else
3873   STRIP="$ac_cv_prog_STRIP"
3874 fi
3875
3876 fi
3877 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3880 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881 if test -z "$MKDIR_P"; then
3882   if ${ac_cv_path_mkdir+:} false; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890     for ac_prog in mkdir gmkdir; do
3891          for ac_exec_ext in '' $ac_executable_extensions; do
3892            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894              'mkdir (GNU coreutils) '* | \
3895              'mkdir (coreutils) '* | \
3896              'mkdir (fileutils) '4.1*)
3897                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898                break 3;;
3899            esac
3900          done
3901        done
3902   done
3903 IFS=$as_save_IFS
3904
3905 fi
3906
3907   test -d ./--version && rmdir ./--version
3908   if test "${ac_cv_path_mkdir+set}" = set; then
3909     MKDIR_P="$ac_cv_path_mkdir -p"
3910   else
3911     # As a last resort, use the slow shell script.  Don't cache a
3912     # value for MKDIR_P within a source directory, because that will
3913     # break other packages using the cache if that directory is
3914     # removed, or if the value is a relative name.
3915     MKDIR_P="$ac_install_sh -d"
3916   fi
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3919 $as_echo "$MKDIR_P" >&6; }
3920
3921 mkdir_p="$MKDIR_P"
3922 case $mkdir_p in
3923   [\\/$]* | ?:[\\/]*) ;;
3924   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3925 esac
3926
3927 for ac_prog in gawk mawk nawk awk
3928 do
3929   # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_AWK+:} false; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -n "$AWK"; then
3937   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944     for ac_exec_ext in '' $ac_executable_extensions; do
3945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946     ac_cv_prog_AWK="$ac_prog"
3947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951   done
3952 IFS=$as_save_IFS
3953
3954 fi
3955 fi
3956 AWK=$ac_cv_prog_AWK
3957 if test -n "$AWK"; then
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959 $as_echo "$AWK" >&6; }
3960 else
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 fi
3964
3965
3966   test -n "$AWK" && break
3967 done
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971 set x ${MAKE-make}
3972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3973 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   cat >conftest.make <<\_ACEOF
3977 SHELL = /bin/sh
3978 all:
3979         @echo '@@@%%%=$(MAKE)=@@@%%%'
3980 _ACEOF
3981 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983   *@@@%%%=?*=@@@%%%*)
3984     eval ac_cv_prog_make_${ac_make}_set=yes;;
3985   *)
3986     eval ac_cv_prog_make_${ac_make}_set=no;;
3987 esac
3988 rm -f conftest.make
3989 fi
3990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3993   SET_MAKE=
3994 else
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997   SET_MAKE="MAKE=${MAKE-make}"
3998 fi
3999
4000 rm -rf .tst 2>/dev/null
4001 mkdir .tst 2>/dev/null
4002 if test -d .tst; then
4003   am__leading_dot=.
4004 else
4005   am__leading_dot=_
4006 fi
4007 rmdir .tst 2>/dev/null
4008
4009 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4010   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4011   # is not polluted with repeated "-I."
4012   am__isrc=' -I$(srcdir)'
4013   # test to see if srcdir already configured
4014   if test -f $srcdir/config.status; then
4015     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4016   fi
4017 fi
4018
4019 # test whether we have cygpath
4020 if test -z "$CYGPATH_W"; then
4021   if (cygpath --version) >/dev/null 2>/dev/null; then
4022     CYGPATH_W='cygpath -w'
4023   else
4024     CYGPATH_W=echo
4025   fi
4026 fi
4027
4028
4029 # Define the identity of the package.
4030  PACKAGE=$PACKAGE_NAME
4031  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4032
4033
4034 # Some tools Automake needs.
4035
4036 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4037
4038
4039 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4040
4041
4042 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4043
4044
4045 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4046
4047
4048 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4049
4050 # We need awk for the "check" target.  The system "awk" is bad on
4051 # some platforms.
4052 # Always define AMTAR for backward compatibility.
4053
4054 AMTAR=${AMTAR-"${am_missing_run}tar"}
4055
4056 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4057
4058
4059
4060
4061
4062
4063 # Enable support for silent build rules
4064 # Check whether --enable-silent-rules was given.
4065 if test "${enable_silent_rules+set}" = set; then :
4066   enableval=$enable_silent_rules;
4067 fi
4068
4069 case $enable_silent_rules in
4070 yes) AM_DEFAULT_VERBOSITY=0;;
4071 no)  AM_DEFAULT_VERBOSITY=1;;
4072 *)   AM_DEFAULT_VERBOSITY=0;;
4073 esac
4074 AM_BACKSLASH='\'
4075
4076
4077 MAGICK_LIB_VERSION="0x"
4078 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4079   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4080 fi
4081 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4082 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4083   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4084 fi
4085 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4086 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4087   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4088 fi
4089 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4090
4091
4092 # Definition used to define MagickLibVersionText in version.h
4093 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4094
4095
4096 # Definition used to define MagickLibVersionNumber in version.h
4097 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4098
4099
4100 # Regenerate config.status if ChangeLog or version.sh is updated.
4101 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4102
4103
4104 PERLMAINCC=$CC
4105
4106 MAGICK_CFLAGS=''
4107 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4108 MAGICK_PCFLAGS=$CPPFLAGS_USER
4109 MAGICK_LDFLAGS=''
4110 MAGICK_LIBS=''
4111 MAGICK_FEATURES=''
4112
4113 #
4114 # Evaluate shell variable equivalents to Makefile directory variables
4115 #
4116 if test "x$prefix" = xNONE; then
4117     prefix=$ac_default_prefix
4118 fi
4119 # Let make expand exec_prefix.
4120 if test "x$exec_prefix" = xNONE; then
4121     exec_prefix='${prefix}'
4122 fi
4123
4124 #
4125 eval "eval PREFIX_DIR=${prefix}"
4126
4127 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4128
4129 eval "eval BIN_DIR=$bindir"
4130
4131 eval "eval SBIN_DIR=$sbindir"
4132
4133 eval "eval LIBEXEC_DIR=$libexecdir"
4134
4135 eval "eval DATA_DIR=$datadir"
4136
4137 eval "eval DOC_DIR=$docdir"
4138
4139 eval "eval SYSCONF_DIR=$sysconfdir"
4140
4141 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4142
4143 eval "eval LOCALSTATE_DIR=$localstatedir"
4144
4145 eval "eval LIB_DIR=$libdir"
4146
4147 eval "eval INCLUDE_DIR=$includedir"
4148
4149 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4150
4151 eval "eval INFO_DIR=$infodir"
4152
4153 eval "eval MAN_DIR=$mandir"
4154
4155
4156 # Get full paths to source and build directories
4157 srcdirfull="`cd $srcdir && pwd`"
4158 builddir="`pwd`"
4159
4160 #
4161 # Compute variables useful for running uninstalled software.
4162 #
4163 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4164 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4165 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4166 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4167 DIRSEP=':'
4168 case "${build_os}" in
4169     mingw* )
4170         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4171         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4172         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4173         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4174         DIRSEP=';'
4175     ;;
4176 esac
4177 case "${host_os}" in
4178   mingw* )
4179     DIRSEP=';'
4180     ;;
4181 esac
4182
4183
4184
4185
4186
4187
4188
4189 #
4190 # Enable OS features.
4191 #
4192 DEPDIR="${am__leading_dot}deps"
4193
4194 ac_config_commands="$ac_config_commands depfiles"
4195
4196
4197 am_make=${MAKE-make}
4198 cat > confinc << 'END'
4199 am__doit:
4200         @echo this is the am__doit target
4201 .PHONY: am__doit
4202 END
4203 # If we don't find an include directive, just comment out the code.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4206 am__include="#"
4207 am__quote=
4208 _am_result=none
4209 # First try GNU make style include.
4210 echo "include confinc" > confmf
4211 # Ignore all kinds of additional output from `make'.
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4214   am__include=include
4215   am__quote=
4216   _am_result=GNU
4217   ;;
4218 esac
4219 # Now try BSD make style include.
4220 if test "$am__include" = "#"; then
4221    echo '.include "confinc"' > confmf
4222    case `$am_make -s -f confmf 2> /dev/null` in #(
4223    *the\ am__doit\ target*)
4224      am__include=.include
4225      am__quote="\""
4226      _am_result=BSD
4227      ;;
4228    esac
4229 fi
4230
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4233 $as_echo "$_am_result" >&6; }
4234 rm -f confinc confmf
4235
4236 # Check whether --enable-dependency-tracking was given.
4237 if test "${enable_dependency_tracking+set}" = set; then :
4238   enableval=$enable_dependency_tracking;
4239 fi
4240
4241 if test "x$enable_dependency_tracking" != xno; then
4242   am_depcomp="$ac_aux_dir/depcomp"
4243   AMDEPBACKSLASH='\'
4244 fi
4245  if test "x$enable_dependency_tracking" != xno; then
4246   AMDEP_TRUE=
4247   AMDEP_FALSE='#'
4248 else
4249   AMDEP_TRUE='#'
4250   AMDEP_FALSE=
4251 fi
4252
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 if test -n "$ac_tool_prefix"; then
4260   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   if test -n "$CC"; then
4268   ac_cv_prog_CC="$CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_exec_ext in '' $ac_executable_extensions; do
4276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282   done
4283 IFS=$as_save_IFS
4284
4285 fi
4286 fi
4287 CC=$ac_cv_prog_CC
4288 if test -n "$CC"; then
4289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290 $as_echo "$CC" >&6; }
4291 else
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4294 fi
4295
4296
4297 fi
4298 if test -z "$ac_cv_prog_CC"; then
4299   ac_ct_CC=$CC
4300   # Extract the first word of "gcc", so it can be a program name with args.
4301 set dummy gcc; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307   if test -n "$ac_ct_CC"; then
4308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315     for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     ac_cv_prog_ac_ct_CC="gcc"
4318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319     break 2
4320   fi
4321 done
4322   done
4323 IFS=$as_save_IFS
4324
4325 fi
4326 fi
4327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328 if test -n "$ac_ct_CC"; then
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4330 $as_echo "$ac_ct_CC" >&6; }
4331 else
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4334 fi
4335
4336   if test "x$ac_ct_CC" = x; then
4337     CC=""
4338   else
4339     case $cross_compiling:$ac_tool_warned in
4340 yes:)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4343 ac_tool_warned=yes ;;
4344 esac
4345     CC=$ac_ct_CC
4346   fi
4347 else
4348   CC="$ac_cv_prog_CC"
4349 fi
4350
4351 if test -z "$CC"; then
4352           if test -n "$ac_tool_prefix"; then
4353     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}cc; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_CC+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -n "$CC"; then
4361   ac_cv_prog_CC="$CC" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370     ac_cv_prog_CC="${ac_tool_prefix}cc"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 CC=$ac_cv_prog_CC
4381 if test -n "$CC"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383 $as_echo "$CC" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390   fi
4391 fi
4392 if test -z "$CC"; then
4393   # Extract the first word of "cc", so it can be a program name with args.
4394 set dummy cc; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   if test -n "$CC"; then
4401   ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403   ac_prog_rejected=no
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4412        ac_prog_rejected=yes
4413        continue
4414      fi
4415     ac_cv_prog_CC="cc"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4422
4423 if test $ac_prog_rejected = yes; then
4424   # We found a bogon in the path, so make sure we never use it.
4425   set dummy $ac_cv_prog_CC
4426   shift
4427   if test $# != 0; then
4428     # We chose a different compiler from the bogus one.
4429     # However, it has the same basename, so the bogon will be chosen
4430     # first if we set CC to just the basename; use the full file name.
4431     shift
4432     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4433   fi
4434 fi
4435 fi
4436 fi
4437 CC=$ac_cv_prog_CC
4438 if test -n "$CC"; then
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4440 $as_echo "$CC" >&6; }
4441 else
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444 fi
4445
4446
4447 fi
4448 if test -z "$CC"; then
4449   if test -n "$ac_tool_prefix"; then
4450   for ac_prog in cl.exe
4451   do
4452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_CC+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459   if test -n "$CC"; then
4460   ac_cv_prog_CC="$CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474   done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 CC=$ac_cv_prog_CC
4480 if test -n "$CC"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4482 $as_echo "$CC" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489     test -n "$CC" && break
4490   done
4491 fi
4492 if test -z "$CC"; then
4493   ac_ct_CC=$CC
4494   for ac_prog in cl.exe
4495 do
4496   # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   if test -n "$ac_ct_CC"; then
4504   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_prog_ac_ct_CC="$ac_prog"
4514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518   done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 $as_echo "$ac_ct_CC" >&6; }
4527 else
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 fi
4531
4532
4533   test -n "$ac_ct_CC" && break
4534 done
4535
4536   if test "x$ac_ct_CC" = x; then
4537     CC=""
4538   else
4539     case $cross_compiling:$ac_tool_warned in
4540 yes:)
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543 ac_tool_warned=yes ;;
4544 esac
4545     CC=$ac_ct_CC
4546   fi
4547 fi
4548
4549 fi
4550
4551
4552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "no acceptable C compiler found in \$PATH
4555 See \`config.log' for more details" "$LINENO" 5; }
4556
4557 # Provide some information about the compiler.
4558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4559 set X $ac_compile
4560 ac_compiler=$2
4561 for ac_option in --version -v -V -qversion; do
4562   { { ac_try="$ac_compiler $ac_option >&5"
4563 case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4570   ac_status=$?
4571   if test -s conftest.err; then
4572     sed '10a\
4573 ... rest of stderr output deleted ...
4574          10q' conftest.err >conftest.er1
4575     cat conftest.er1 >&5
4576   fi
4577   rm -f conftest.er1 conftest.err
4578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579   test $ac_status = 0; }
4580 done
4581
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 ac_clean_files_save=$ac_clean_files
4594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4595 # Try to create an executable without -o first, disregard a.out.
4596 # It will help us diagnose broken compilers, and finding out an intuition
4597 # of exeext.
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4599 $as_echo_n "checking whether the C compiler works... " >&6; }
4600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4601
4602 # The possible output files:
4603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4604
4605 ac_rmfiles=
4606 for ac_file in $ac_files
4607 do
4608   case $ac_file in
4609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4610     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4611   esac
4612 done
4613 rm -f $ac_rmfiles
4614
4615 if { { ac_try="$ac_link_default"
4616 case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622   (eval "$ac_link_default") 2>&5
4623   ac_status=$?
4624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625   test $ac_status = 0; }; then :
4626   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4628 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4629 # so that the user can short-circuit this test for compilers unknown to
4630 # Autoconf.
4631 for ac_file in $ac_files ''
4632 do
4633   test -f "$ac_file" || continue
4634   case $ac_file in
4635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4636         ;;
4637     [ab].out )
4638         # We found the default executable, but exeext='' is most
4639         # certainly right.
4640         break;;
4641     *.* )
4642         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4643         then :; else
4644            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645         fi
4646         # We set ac_cv_exeext here because the later test for it is not
4647         # safe: cross compilers may not add the suffix if given an `-o'
4648         # argument, so we may need to know it at that point already.
4649         # Even if this section looks crufty: it has the advantage of
4650         # actually working.
4651         break;;
4652     * )
4653         break;;
4654   esac
4655 done
4656 test "$ac_cv_exeext" = no && ac_cv_exeext=
4657
4658 else
4659   ac_file=''
4660 fi
4661 if test -z "$ac_file"; then :
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4669 as_fn_error 77 "C compiler cannot create executables
4670 See \`config.log' for more details" "$LINENO" 5; }
4671 else
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4676 $as_echo_n "checking for C compiler default output file name... " >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4678 $as_echo "$ac_file" >&6; }
4679 ac_exeext=$ac_cv_exeext
4680
4681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4682 ac_clean_files=$ac_clean_files_save
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4684 $as_echo_n "checking for suffix of executables... " >&6; }
4685 if { { ac_try="$ac_link"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691 $as_echo "$ac_try_echo"; } >&5
4692   (eval "$ac_link") 2>&5
4693   ac_status=$?
4694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4695   test $ac_status = 0; }; then :
4696   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4697 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4698 # work properly (i.e., refer to `conftest.exe'), while it won't with
4699 # `rm'.
4700 for ac_file in conftest.exe conftest conftest.*; do
4701   test -f "$ac_file" || continue
4702   case $ac_file in
4703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4704     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4705           break;;
4706     * ) break;;
4707   esac
4708 done
4709 else
4710   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4713 See \`config.log' for more details" "$LINENO" 5; }
4714 fi
4715 rm -f conftest conftest$ac_cv_exeext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4717 $as_echo "$ac_cv_exeext" >&6; }
4718
4719 rm -f conftest.$ac_ext
4720 EXEEXT=$ac_cv_exeext
4721 ac_exeext=$EXEEXT
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <stdio.h>
4725 int
4726 main ()
4727 {
4728 FILE *f = fopen ("conftest.out", "w");
4729  return ferror (f) || fclose (f) != 0;
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 ac_clean_files="$ac_clean_files conftest.out"
4736 # Check that the compiler produces executables we can run.  If not, either
4737 # the compiler is broken, or we cross compile.
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4739 $as_echo_n "checking whether we are cross compiling... " >&6; }
4740 if test "$cross_compiling" != yes; then
4741   { { ac_try="$ac_link"
4742 case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747 $as_echo "$ac_try_echo"; } >&5
4748   (eval "$ac_link") 2>&5
4749   ac_status=$?
4750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4751   test $ac_status = 0; }
4752   if { ac_try='./conftest$ac_cv_exeext'
4753   { { case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759   (eval "$ac_try") 2>&5
4760   ac_status=$?
4761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762   test $ac_status = 0; }; }; then
4763     cross_compiling=no
4764   else
4765     if test "$cross_compiling" = maybe; then
4766         cross_compiling=yes
4767     else
4768         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4770 as_fn_error $? "cannot run C compiled programs.
4771 If you meant to cross compile, use \`--host'.
4772 See \`config.log' for more details" "$LINENO" 5; }
4773     fi
4774   fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4777 $as_echo "$cross_compiling" >&6; }
4778
4779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4780 ac_clean_files=$ac_clean_files_save
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4782 $as_echo_n "checking for suffix of object files... " >&6; }
4783 if ${ac_cv_objext+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h.  */
4788
4789 int
4790 main ()
4791 {
4792
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.o conftest.obj
4798 if { { ac_try="$ac_compile"
4799 case "(($ac_try" in
4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801   *) ac_try_echo=$ac_try;;
4802 esac
4803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804 $as_echo "$ac_try_echo"; } >&5
4805   (eval "$ac_compile") 2>&5
4806   ac_status=$?
4807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808   test $ac_status = 0; }; then :
4809   for ac_file in conftest.o conftest.obj conftest.*; do
4810   test -f "$ac_file" || continue;
4811   case $ac_file in
4812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4813     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4814        break;;
4815   esac
4816 done
4817 else
4818   $as_echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4823 as_fn_error $? "cannot compute suffix of object files: cannot compile
4824 See \`config.log' for more details" "$LINENO" 5; }
4825 fi
4826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4829 $as_echo "$ac_cv_objext" >&6; }
4830 OBJEXT=$ac_cv_objext
4831 ac_objext=$OBJEXT
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4834 if ${ac_cv_c_compiler_gnu+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h.  */
4839
4840 int
4841 main ()
4842 {
4843 #ifndef __GNUC__
4844        choke me
4845 #endif
4846
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852   ac_compiler_gnu=yes
4853 else
4854   ac_compiler_gnu=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4858
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862 if test $ac_compiler_gnu = yes; then
4863   GCC=yes
4864 else
4865   GCC=
4866 fi
4867 ac_test_CFLAGS=${CFLAGS+set}
4868 ac_save_CFLAGS=$CFLAGS
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4871 if ${ac_cv_prog_cc_g+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   ac_save_c_werror_flag=$ac_c_werror_flag
4875    ac_c_werror_flag=yes
4876    ac_cv_prog_cc_g=no
4877    CFLAGS="-g"
4878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880
4881 int
4882 main ()
4883 {
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890   ac_cv_prog_cc_g=yes
4891 else
4892   CFLAGS=""
4893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h.  */
4895
4896 int
4897 main ()
4898 {
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905
4906 else
4907   ac_c_werror_flag=$ac_save_c_werror_flag
4908          CFLAGS="-g"
4909          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911
4912 int
4913 main ()
4914 {
4915
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921   ac_cv_prog_cc_g=yes
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 fi
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928    ac_c_werror_flag=$ac_save_c_werror_flag
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4931 $as_echo "$ac_cv_prog_cc_g" >&6; }
4932 if test "$ac_test_CFLAGS" = set; then
4933   CFLAGS=$ac_save_CFLAGS
4934 elif test $ac_cv_prog_cc_g = yes; then
4935   if test "$GCC" = yes; then
4936     CFLAGS="-g -O2"
4937   else
4938     CFLAGS="-g"
4939   fi
4940 else
4941   if test "$GCC" = yes; then
4942     CFLAGS="-O2"
4943   else
4944     CFLAGS=
4945   fi
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4949 if ${ac_cv_prog_cc_c89+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   ac_cv_prog_cc_c89=no
4953 ac_save_CC=$CC
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h.  */
4956 #include <stdarg.h>
4957 #include <stdio.h>
4958 #include <sys/types.h>
4959 #include <sys/stat.h>
4960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4961 struct buf { int x; };
4962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4963 static char *e (p, i)
4964      char **p;
4965      int i;
4966 {
4967   return p[i];
4968 }
4969 static char *f (char * (*g) (char **, int), char **p, ...)
4970 {
4971   char *s;
4972   va_list v;
4973   va_start (v,p);
4974   s = g (p, va_arg (v,int));
4975   va_end (v);
4976   return s;
4977 }
4978
4979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4980    function prototypes and stuff, but not '\xHH' hex character constants.
4981    These don't provoke an error unfortunately, instead are silently treated
4982    as 'x'.  The following induces an error, until -std is added to get
4983    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4984    array size at least.  It's necessary to write '\x00'==0 to get something
4985    that's true only with -std.  */
4986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4987
4988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4989    inside strings and character constants.  */
4990 #define FOO(x) 'x'
4991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4992
4993 int test (int i, double x);
4994 struct s1 {int (*f) (int a);};
4995 struct s2 {int (*f) (double a);};
4996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4997 int argc;
4998 char **argv;
4999 int
5000 main ()
5001 {
5002 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5008         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5009 do
5010   CC="$ac_save_CC $ac_arg"
5011   if ac_fn_c_try_compile "$LINENO"; then :
5012   ac_cv_prog_cc_c89=$ac_arg
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext
5015   test "x$ac_cv_prog_cc_c89" != "xno" && break
5016 done
5017 rm -f conftest.$ac_ext
5018 CC=$ac_save_CC
5019
5020 fi
5021 # AC_CACHE_VAL
5022 case "x$ac_cv_prog_cc_c89" in
5023   x)
5024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025 $as_echo "none needed" >&6; } ;;
5026   xno)
5027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5028 $as_echo "unsupported" >&6; } ;;
5029   *)
5030     CC="$CC $ac_cv_prog_cc_c89"
5031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5032 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5033 esac
5034 if test "x$ac_cv_prog_cc_c89" != xno; then :
5035
5036 fi
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043
5044 depcc="$CC"   am_compiler_list=
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5047 $as_echo_n "checking dependency style of $depcc... " >&6; }
5048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5052   # We make a subdir and do the tests there.  Otherwise we can end up
5053   # making bogus files that we don't know about and never remove.  For
5054   # instance it was reported that on HP-UX the gcc test will end up
5055   # making a dummy file named `D' -- because `-MD' means `put the output
5056   # in D'.
5057   mkdir conftest.dir
5058   # Copy depcomp to subdir because otherwise we won't find it if we're
5059   # using a relative directory.
5060   cp "$am_depcomp" conftest.dir
5061   cd conftest.dir
5062   # We will build objects and dependencies in a subdirectory because
5063   # it helps to detect inapplicable dependency modes.  For instance
5064   # both Tru64's cc and ICC support -MD to output dependencies as a
5065   # side effect of compilation, but ICC will put the dependencies in
5066   # the current directory while Tru64 will put them in the object
5067   # directory.
5068   mkdir sub
5069
5070   am_cv_CC_dependencies_compiler_type=none
5071   if test "$am_compiler_list" = ""; then
5072      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5073   fi
5074   am__universal=false
5075   case " $depcc " in #(
5076      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5077      esac
5078
5079   for depmode in $am_compiler_list; do
5080     # Setup a source with many dependencies, because some compilers
5081     # like to wrap large dependency lists on column 80 (with \), and
5082     # we should not choose a depcomp mode which is confused by this.
5083     #
5084     # We need to recreate these files for each test, as the compiler may
5085     # overwrite some of them when testing with obscure command lines.
5086     # This happens at least with the AIX C compiler.
5087     : > sub/conftest.c
5088     for i in 1 2 3 4 5 6; do
5089       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5090       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5091       # Solaris 8's {/usr,}/bin/sh.
5092       touch sub/conftst$i.h
5093     done
5094     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5095
5096     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5097     # mode.  It turns out that the SunPro C++ compiler does not properly
5098     # handle `-M -o', and we need to detect this.  Also, some Intel
5099     # versions had trouble with output in subdirs
5100     am__obj=sub/conftest.${OBJEXT-o}
5101     am__minus_obj="-o $am__obj"
5102     case $depmode in
5103     gcc)
5104       # This depmode causes a compiler race in universal mode.
5105       test "$am__universal" = false || continue
5106       ;;
5107     nosideeffect)
5108       # after this tag, mechanisms are not by side-effect, so they'll
5109       # only be used when explicitly requested
5110       if test "x$enable_dependency_tracking" = xyes; then
5111         continue
5112       else
5113         break
5114       fi
5115       ;;
5116     msvisualcpp | msvcmsys)
5117       # This compiler won't grok `-c -o', but also, the minuso test has
5118       # not run yet.  These depmodes are late enough in the game, and
5119       # so weak that their functioning should not be impacted.
5120       am__obj=conftest.${OBJEXT-o}
5121       am__minus_obj=
5122       ;;
5123     none) break ;;
5124     esac
5125     if depmode=$depmode \
5126        source=sub/conftest.c object=$am__obj \
5127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5129          >/dev/null 2>conftest.err &&
5130        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5131        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5133        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134       # icc doesn't choke on unknown options, it will just issue warnings
5135       # or remarks (even with -Werror).  So we grep stderr for any message
5136       # that says an option was ignored or not supported.
5137       # When given -MP, icc 7.0 and 7.1 complain thusly:
5138       #   icc: Command line warning: ignoring option '-M'; no argument required
5139       # The diagnosis changed in icc 8.0:
5140       #   icc: Command line remark: option '-MP' not supported
5141       if (grep 'ignoring option' conftest.err ||
5142           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143         am_cv_CC_dependencies_compiler_type=$depmode
5144         break
5145       fi
5146     fi
5147   done
5148
5149   cd ..
5150   rm -rf conftest.dir
5151 else
5152   am_cv_CC_dependencies_compiler_type=none
5153 fi
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5159
5160  if
5161   test "x$enable_dependency_tracking" != xno \
5162   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5163   am__fastdepCC_TRUE=
5164   am__fastdepCC_FALSE='#'
5165 else
5166   am__fastdepCC_TRUE='#'
5167   am__fastdepCC_FALSE=
5168 fi
5169
5170
5171
5172 ac_ext=c
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5179 # On Suns, sometimes $CPP names a directory.
5180 if test -n "$CPP" && test -d "$CPP"; then
5181   CPP=
5182 fi
5183 if test -z "$CPP"; then
5184   if ${ac_cv_prog_CPP+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187       # Double quotes because CPP needs to be expanded
5188     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5189     do
5190       ac_preproc_ok=false
5191 for ac_c_preproc_warn_flag in '' yes
5192 do
5193   # Use a header file that comes with gcc, so configuring glibc
5194   # with a fresh cross-compiler works.
5195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196   # <limits.h> exists even on freestanding compilers.
5197   # On the NeXT, cc -E runs the code through the compiler's parser,
5198   # not just through cpp. "Syntax error" is here to catch this case.
5199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h.  */
5201 #ifdef __STDC__
5202 # include <limits.h>
5203 #else
5204 # include <assert.h>
5205 #endif
5206                      Syntax error
5207 _ACEOF
5208 if ac_fn_c_try_cpp "$LINENO"; then :
5209
5210 else
5211   # Broken: fails on valid input.
5212 continue
5213 fi
5214 rm -f conftest.err conftest.i conftest.$ac_ext
5215
5216   # OK, works on sane cases.  Now check whether nonexistent headers
5217   # can be detected and how.
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220 #include <ac_nonexistent.h>
5221 _ACEOF
5222 if ac_fn_c_try_cpp "$LINENO"; then :
5223   # Broken: success on invalid input.
5224 continue
5225 else
5226   # Passes both tests.
5227 ac_preproc_ok=:
5228 break
5229 fi
5230 rm -f conftest.err conftest.i conftest.$ac_ext
5231
5232 done
5233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5234 rm -f conftest.i conftest.err conftest.$ac_ext
5235 if $ac_preproc_ok; then :
5236   break
5237 fi
5238
5239     done
5240     ac_cv_prog_CPP=$CPP
5241
5242 fi
5243   CPP=$ac_cv_prog_CPP
5244 else
5245   ac_cv_prog_CPP=$CPP
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5248 $as_echo "$CPP" >&6; }
5249 ac_preproc_ok=false
5250 for ac_c_preproc_warn_flag in '' yes
5251 do
5252   # Use a header file that comes with gcc, so configuring glibc
5253   # with a fresh cross-compiler works.
5254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5255   # <limits.h> exists even on freestanding compilers.
5256   # On the NeXT, cc -E runs the code through the compiler's parser,
5257   # not just through cpp. "Syntax error" is here to catch this case.
5258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260 #ifdef __STDC__
5261 # include <limits.h>
5262 #else
5263 # include <assert.h>
5264 #endif
5265                      Syntax error
5266 _ACEOF
5267 if ac_fn_c_try_cpp "$LINENO"; then :
5268
5269 else
5270   # Broken: fails on valid input.
5271 continue
5272 fi
5273 rm -f conftest.err conftest.i conftest.$ac_ext
5274
5275   # OK, works on sane cases.  Now check whether nonexistent headers
5276   # can be detected and how.
5277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #include <ac_nonexistent.h>
5280 _ACEOF
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5282   # Broken: success on invalid input.
5283 continue
5284 else
5285   # Passes both tests.
5286 ac_preproc_ok=:
5287 break
5288 fi
5289 rm -f conftest.err conftest.i conftest.$ac_ext
5290
5291 done
5292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5293 rm -f conftest.i conftest.err conftest.$ac_ext
5294 if $ac_preproc_ok; then :
5295
5296 else
5297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5300 See \`config.log' for more details" "$LINENO" 5; }
5301 fi
5302
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5312 if ${ac_cv_path_GREP+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   if test -z "$GREP"; then
5316   ac_path_GREP_found=false
5317   # Loop through the user's path and test for each of PROGNAME-LIST
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_prog in grep ggrep; do
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5326       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5327 # Check for GNU ac_path_GREP and select it if it is found.
5328   # Check for GNU $ac_path_GREP
5329 case `"$ac_path_GREP" --version 2>&1` in
5330 *GNU*)
5331   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5332 *)
5333   ac_count=0
5334   $as_echo_n 0123456789 >"conftest.in"
5335   while :
5336   do
5337     cat "conftest.in" "conftest.in" >"conftest.tmp"
5338     mv "conftest.tmp" "conftest.in"
5339     cp "conftest.in" "conftest.nl"
5340     $as_echo 'GREP' >> "conftest.nl"
5341     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343     as_fn_arith $ac_count + 1 && ac_count=$as_val
5344     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5345       # Best one so far, save it but keep looking for a better one
5346       ac_cv_path_GREP="$ac_path_GREP"
5347       ac_path_GREP_max=$ac_count
5348     fi
5349     # 10*(2^10) chars as input seems more than enough
5350     test $ac_count -gt 10 && break
5351   done
5352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353 esac
5354
5355       $ac_path_GREP_found && break 3
5356     done
5357   done
5358   done
5359 IFS=$as_save_IFS
5360   if test -z "$ac_cv_path_GREP"; then
5361     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362   fi
5363 else
5364   ac_cv_path_GREP=$GREP
5365 fi
5366
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5369 $as_echo "$ac_cv_path_GREP" >&6; }
5370  GREP="$ac_cv_path_GREP"
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5374 $as_echo_n "checking for egrep... " >&6; }
5375 if ${ac_cv_path_EGREP+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5379    then ac_cv_path_EGREP="$GREP -E"
5380    else
5381      if test -z "$EGREP"; then
5382   ac_path_EGREP_found=false
5383   # Loop through the user's path and test for each of PROGNAME-LIST
5384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389     for ac_prog in egrep; do
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5392       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5393 # Check for GNU ac_path_EGREP and select it if it is found.
5394   # Check for GNU $ac_path_EGREP
5395 case `"$ac_path_EGREP" --version 2>&1` in
5396 *GNU*)
5397   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5398 *)
5399   ac_count=0
5400   $as_echo_n 0123456789 >"conftest.in"
5401   while :
5402   do
5403     cat "conftest.in" "conftest.in" >"conftest.tmp"
5404     mv "conftest.tmp" "conftest.in"
5405     cp "conftest.in" "conftest.nl"
5406     $as_echo 'EGREP' >> "conftest.nl"
5407     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5408     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5409     as_fn_arith $ac_count + 1 && ac_count=$as_val
5410     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5411       # Best one so far, save it but keep looking for a better one
5412       ac_cv_path_EGREP="$ac_path_EGREP"
5413       ac_path_EGREP_max=$ac_count
5414     fi
5415     # 10*(2^10) chars as input seems more than enough
5416     test $ac_count -gt 10 && break
5417   done
5418   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5419 esac
5420
5421       $ac_path_EGREP_found && break 3
5422     done
5423   done
5424   done
5425 IFS=$as_save_IFS
5426   if test -z "$ac_cv_path_EGREP"; then
5427     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5428   fi
5429 else
5430   ac_cv_path_EGREP=$EGREP
5431 fi
5432
5433    fi
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5436 $as_echo "$ac_cv_path_EGREP" >&6; }
5437  EGREP="$ac_cv_path_EGREP"
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5441 $as_echo_n "checking for ANSI C header files... " >&6; }
5442 if ${ac_cv_header_stdc+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447 #include <stdlib.h>
5448 #include <stdarg.h>
5449 #include <string.h>
5450 #include <float.h>
5451
5452 int
5453 main ()
5454 {
5455
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461   ac_cv_header_stdc=yes
5462 else
5463   ac_cv_header_stdc=no
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466
5467 if test $ac_cv_header_stdc = yes; then
5468   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h.  */
5471 #include <string.h>
5472
5473 _ACEOF
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475   $EGREP "memchr" >/dev/null 2>&1; then :
5476
5477 else
5478   ac_cv_header_stdc=no
5479 fi
5480 rm -f conftest*
5481
5482 fi
5483
5484 if test $ac_cv_header_stdc = yes; then
5485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h.  */
5488 #include <stdlib.h>
5489
5490 _ACEOF
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492   $EGREP "free" >/dev/null 2>&1; then :
5493
5494 else
5495   ac_cv_header_stdc=no
5496 fi
5497 rm -f conftest*
5498
5499 fi
5500
5501 if test $ac_cv_header_stdc = yes; then
5502   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5503   if test "$cross_compiling" = yes; then :
5504   :
5505 else
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #include <ctype.h>
5509 #include <stdlib.h>
5510 #if ((' ' & 0x0FF) == 0x020)
5511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5513 #else
5514 # define ISLOWER(c) \
5515                    (('a' <= (c) && (c) <= 'i') \
5516                      || ('j' <= (c) && (c) <= 'r') \
5517                      || ('s' <= (c) && (c) <= 'z'))
5518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5519 #endif
5520
5521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5522 int
5523 main ()
5524 {
5525   int i;
5526   for (i = 0; i < 256; i++)
5527     if (XOR (islower (i), ISLOWER (i))
5528         || toupper (i) != TOUPPER (i))
5529       return 2;
5530   return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_run "$LINENO"; then :
5534
5535 else
5536   ac_cv_header_stdc=no
5537 fi
5538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5539   conftest.$ac_objext conftest.beam conftest.$ac_ext
5540 fi
5541
5542 fi
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5545 $as_echo "$ac_cv_header_stdc" >&6; }
5546 if test $ac_cv_header_stdc = yes; then
5547
5548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5549
5550 fi
5551
5552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5554                   inttypes.h stdint.h unistd.h
5555 do :
5556   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5558 "
5559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5560   cat >>confdefs.h <<_ACEOF
5561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 _ACEOF
5563
5564 fi
5565
5566 done
5567
5568
5569
5570   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5572   MINIX=yes
5573 else
5574   MINIX=
5575 fi
5576
5577
5578   if test "$MINIX" = yes; then
5579
5580 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5581
5582
5583 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5584
5585
5586 $as_echo "#define _MINIX 1" >>confdefs.h
5587
5588   fi
5589
5590
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5592 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5593 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h.  */
5598
5599 #         define __EXTENSIONS__ 1
5600           $ac_includes_default
5601 int
5602 main ()
5603 {
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610   ac_cv_safe_to_define___extensions__=yes
5611 else
5612   ac_cv_safe_to_define___extensions__=no
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5617 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5618   test $ac_cv_safe_to_define___extensions__ = yes &&
5619     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5620
5621   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5622
5623   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5624
5625   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5626
5627   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5628
5629
5630
5631 # Check for programs
5632 ac_ext=c
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 if test -n "$ac_tool_prefix"; then
5638   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CC+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$CC"; then
5646   ac_cv_prog_CC="$CC" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 CC=$ac_cv_prog_CC
5666 if test -n "$CC"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5668 $as_echo "$CC" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675 fi
5676 if test -z "$ac_cv_prog_CC"; then
5677   ac_ct_CC=$CC
5678   # Extract the first word of "gcc", so it can be a program name with args.
5679 set dummy gcc; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$ac_ct_CC"; then
5686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693     for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_prog_ac_ct_CC="gcc"
5696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700   done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706 if test -n "$ac_ct_CC"; then
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5708 $as_echo "$ac_ct_CC" >&6; }
5709 else
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714   if test "x$ac_ct_CC" = x; then
5715     CC=""
5716   else
5717     case $cross_compiling:$ac_tool_warned in
5718 yes:)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723     CC=$ac_ct_CC
5724   fi
5725 else
5726   CC="$ac_cv_prog_CC"
5727 fi
5728
5729 if test -z "$CC"; then
5730           if test -n "$ac_tool_prefix"; then
5731     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}cc; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_CC+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if test -n "$CC"; then
5739   ac_cv_prog_CC="$CC" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748     ac_cv_prog_CC="${ac_tool_prefix}cc"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755
5756 fi
5757 fi
5758 CC=$ac_cv_prog_CC
5759 if test -n "$CC"; then
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5761 $as_echo "$CC" >&6; }
5762 else
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767
5768   fi
5769 fi
5770 if test -z "$CC"; then
5771   # Extract the first word of "cc", so it can be a program name with args.
5772 set dummy cc; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_CC+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   if test -n "$CC"; then
5779   ac_cv_prog_CC="$CC" # Let the user override the test.
5780 else
5781   ac_prog_rejected=no
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787     for ac_exec_ext in '' $ac_executable_extensions; do
5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5790        ac_prog_rejected=yes
5791        continue
5792      fi
5793     ac_cv_prog_CC="cc"
5794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798   done
5799 IFS=$as_save_IFS
5800
5801 if test $ac_prog_rejected = yes; then
5802   # We found a bogon in the path, so make sure we never use it.
5803   set dummy $ac_cv_prog_CC
5804   shift
5805   if test $# != 0; then
5806     # We chose a different compiler from the bogus one.
5807     # However, it has the same basename, so the bogon will be chosen
5808     # first if we set CC to just the basename; use the full file name.
5809     shift
5810     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5811   fi
5812 fi
5813 fi
5814 fi
5815 CC=$ac_cv_prog_CC
5816 if test -n "$CC"; then
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5818 $as_echo "$CC" >&6; }
5819 else
5820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 fi
5823
5824
5825 fi
5826 if test -z "$CC"; then
5827   if test -n "$ac_tool_prefix"; then
5828   for ac_prog in cl.exe
5829   do
5830     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_CC+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$CC"; then
5838   ac_cv_prog_CC="$CC" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 CC=$ac_cv_prog_CC
5858 if test -n "$CC"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5860 $as_echo "$CC" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867     test -n "$CC" && break
5868   done
5869 fi
5870 if test -z "$CC"; then
5871   ac_ct_CC=$CC
5872   for ac_prog in cl.exe
5873 do
5874   # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881   if test -n "$ac_ct_CC"; then
5882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_prog_ac_ct_CC="$ac_prog"
5892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896   done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5902 if test -n "$ac_ct_CC"; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5904 $as_echo "$ac_ct_CC" >&6; }
5905 else
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909
5910
5911   test -n "$ac_ct_CC" && break
5912 done
5913
5914   if test "x$ac_ct_CC" = x; then
5915     CC=""
5916   else
5917     case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923     CC=$ac_ct_CC
5924   fi
5925 fi
5926
5927 fi
5928
5929
5930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5932 as_fn_error $? "no acceptable C compiler found in \$PATH
5933 See \`config.log' for more details" "$LINENO" 5; }
5934
5935 # Provide some information about the compiler.
5936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5937 set X $ac_compile
5938 ac_compiler=$2
5939 for ac_option in --version -v -V -qversion; do
5940   { { ac_try="$ac_compiler $ac_option >&5"
5941 case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946 $as_echo "$ac_try_echo"; } >&5
5947   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5948   ac_status=$?
5949   if test -s conftest.err; then
5950     sed '10a\
5951 ... rest of stderr output deleted ...
5952          10q' conftest.err >conftest.er1
5953     cat conftest.er1 >&5
5954   fi
5955   rm -f conftest.er1 conftest.err
5956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957   test $ac_status = 0; }
5958 done
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5962 if ${ac_cv_c_compiler_gnu+:} false; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h.  */
5967
5968 int
5969 main ()
5970 {
5971 #ifndef __GNUC__
5972        choke me
5973 #endif
5974
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980   ac_compiler_gnu=yes
5981 else
5982   ac_compiler_gnu=no
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5986
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5990 if test $ac_compiler_gnu = yes; then
5991   GCC=yes
5992 else
5993   GCC=
5994 fi
5995 ac_test_CFLAGS=${CFLAGS+set}
5996 ac_save_CFLAGS=$CFLAGS
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5999 if ${ac_cv_prog_cc_g+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   ac_save_c_werror_flag=$ac_c_werror_flag
6003    ac_c_werror_flag=yes
6004    ac_cv_prog_cc_g=no
6005    CFLAGS="-g"
6006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h.  */
6008
6009 int
6010 main ()
6011 {
6012
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018   ac_cv_prog_cc_g=yes
6019 else
6020   CFLAGS=""
6021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023
6024 int
6025 main ()
6026 {
6027
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033
6034 else
6035   ac_c_werror_flag=$ac_save_c_werror_flag
6036          CFLAGS="-g"
6037          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h.  */
6039
6040 int
6041 main ()
6042 {
6043
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049   ac_cv_prog_cc_g=yes
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056    ac_c_werror_flag=$ac_save_c_werror_flag
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6059 $as_echo "$ac_cv_prog_cc_g" >&6; }
6060 if test "$ac_test_CFLAGS" = set; then
6061   CFLAGS=$ac_save_CFLAGS
6062 elif test $ac_cv_prog_cc_g = yes; then
6063   if test "$GCC" = yes; then
6064     CFLAGS="-g -O2"
6065   else
6066     CFLAGS="-g"
6067   fi
6068 else
6069   if test "$GCC" = yes; then
6070     CFLAGS="-O2"
6071   else
6072     CFLAGS=
6073   fi
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6077 if ${ac_cv_prog_cc_c89+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   ac_cv_prog_cc_c89=no
6081 ac_save_CC=$CC
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h.  */
6084 #include <stdarg.h>
6085 #include <stdio.h>
6086 #include <sys/types.h>
6087 #include <sys/stat.h>
6088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6089 struct buf { int x; };
6090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6091 static char *e (p, i)
6092      char **p;
6093      int i;
6094 {
6095   return p[i];
6096 }
6097 static char *f (char * (*g) (char **, int), char **p, ...)
6098 {
6099   char *s;
6100   va_list v;
6101   va_start (v,p);
6102   s = g (p, va_arg (v,int));
6103   va_end (v);
6104   return s;
6105 }
6106
6107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6108    function prototypes and stuff, but not '\xHH' hex character constants.
6109    These don't provoke an error unfortunately, instead are silently treated
6110    as 'x'.  The following induces an error, until -std is added to get
6111    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6112    array size at least.  It's necessary to write '\x00'==0 to get something
6113    that's true only with -std.  */
6114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6115
6116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6117    inside strings and character constants.  */
6118 #define FOO(x) 'x'
6119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6120
6121 int test (int i, double x);
6122 struct s1 {int (*f) (int a);};
6123 struct s2 {int (*f) (double a);};
6124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6125 int argc;
6126 char **argv;
6127 int
6128 main ()
6129 {
6130 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6136         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6137 do
6138   CC="$ac_save_CC $ac_arg"
6139   if ac_fn_c_try_compile "$LINENO"; then :
6140   ac_cv_prog_cc_c89=$ac_arg
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext
6143   test "x$ac_cv_prog_cc_c89" != "xno" && break
6144 done
6145 rm -f conftest.$ac_ext
6146 CC=$ac_save_CC
6147
6148 fi
6149 # AC_CACHE_VAL
6150 case "x$ac_cv_prog_cc_c89" in
6151   x)
6152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6153 $as_echo "none needed" >&6; } ;;
6154   xno)
6155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6156 $as_echo "unsupported" >&6; } ;;
6157   *)
6158     CC="$CC $ac_cv_prog_cc_c89"
6159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6161 esac
6162 if test "x$ac_cv_prog_cc_c89" != xno; then :
6163
6164 fi
6165
6166 ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172 depcc="$CC"   am_compiler_list=
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6175 $as_echo_n "checking dependency style of $depcc... " >&6; }
6176 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6180   # We make a subdir and do the tests there.  Otherwise we can end up
6181   # making bogus files that we don't know about and never remove.  For
6182   # instance it was reported that on HP-UX the gcc test will end up
6183   # making a dummy file named `D' -- because `-MD' means `put the output
6184   # in D'.
6185   mkdir conftest.dir
6186   # Copy depcomp to subdir because otherwise we won't find it if we're
6187   # using a relative directory.
6188   cp "$am_depcomp" conftest.dir
6189   cd conftest.dir
6190   # We will build objects and dependencies in a subdirectory because
6191   # it helps to detect inapplicable dependency modes.  For instance
6192   # both Tru64's cc and ICC support -MD to output dependencies as a
6193   # side effect of compilation, but ICC will put the dependencies in
6194   # the current directory while Tru64 will put them in the object
6195   # directory.
6196   mkdir sub
6197
6198   am_cv_CC_dependencies_compiler_type=none
6199   if test "$am_compiler_list" = ""; then
6200      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6201   fi
6202   am__universal=false
6203   case " $depcc " in #(
6204      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6205      esac
6206
6207   for depmode in $am_compiler_list; do
6208     # Setup a source with many dependencies, because some compilers
6209     # like to wrap large dependency lists on column 80 (with \), and
6210     # we should not choose a depcomp mode which is confused by this.
6211     #
6212     # We need to recreate these files for each test, as the compiler may
6213     # overwrite some of them when testing with obscure command lines.
6214     # This happens at least with the AIX C compiler.
6215     : > sub/conftest.c
6216     for i in 1 2 3 4 5 6; do
6217       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6218       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6219       # Solaris 8's {/usr,}/bin/sh.
6220       touch sub/conftst$i.h
6221     done
6222     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6223
6224     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6225     # mode.  It turns out that the SunPro C++ compiler does not properly
6226     # handle `-M -o', and we need to detect this.  Also, some Intel
6227     # versions had trouble with output in subdirs
6228     am__obj=sub/conftest.${OBJEXT-o}
6229     am__minus_obj="-o $am__obj"
6230     case $depmode in
6231     gcc)
6232       # This depmode causes a compiler race in universal mode.
6233       test "$am__universal" = false || continue
6234       ;;
6235     nosideeffect)
6236       # after this tag, mechanisms are not by side-effect, so they'll
6237       # only be used when explicitly requested
6238       if test "x$enable_dependency_tracking" = xyes; then
6239         continue
6240       else
6241         break
6242       fi
6243       ;;
6244     msvisualcpp | msvcmsys)
6245       # This compiler won't grok `-c -o', but also, the minuso test has
6246       # not run yet.  These depmodes are late enough in the game, and
6247       # so weak that their functioning should not be impacted.
6248       am__obj=conftest.${OBJEXT-o}
6249       am__minus_obj=
6250       ;;
6251     none) break ;;
6252     esac
6253     if depmode=$depmode \
6254        source=sub/conftest.c object=$am__obj \
6255        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6256        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6257          >/dev/null 2>conftest.err &&
6258        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6259        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6260        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6261        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6262       # icc doesn't choke on unknown options, it will just issue warnings
6263       # or remarks (even with -Werror).  So we grep stderr for any message
6264       # that says an option was ignored or not supported.
6265       # When given -MP, icc 7.0 and 7.1 complain thusly:
6266       #   icc: Command line warning: ignoring option '-M'; no argument required
6267       # The diagnosis changed in icc 8.0:
6268       #   icc: Command line remark: option '-MP' not supported
6269       if (grep 'ignoring option' conftest.err ||
6270           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6271         am_cv_CC_dependencies_compiler_type=$depmode
6272         break
6273       fi
6274     fi
6275   done
6276
6277   cd ..
6278   rm -rf conftest.dir
6279 else
6280   am_cv_CC_dependencies_compiler_type=none
6281 fi
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6285 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6287
6288  if
6289   test "x$enable_dependency_tracking" != xno \
6290   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6291   am__fastdepCC_TRUE=
6292   am__fastdepCC_FALSE='#'
6293 else
6294   am__fastdepCC_TRUE='#'
6295   am__fastdepCC_FALSE=
6296 fi
6297
6298
6299 ac_ext=cpp
6300 ac_cpp='$CXXCPP $CPPFLAGS'
6301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6304 if test -z "$CXX"; then
6305   if test -n "$CCC"; then
6306     CXX=$CCC
6307   else
6308     if test -n "$ac_tool_prefix"; then
6309   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6310   do
6311     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_CXX+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   if test -n "$CXX"; then
6319   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333   done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 CXX=$ac_cv_prog_CXX
6339 if test -n "$CXX"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6341 $as_echo "$CXX" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346
6347
6348     test -n "$CXX" && break
6349   done
6350 fi
6351 if test -z "$CXX"; then
6352   ac_ct_CXX=$CXX
6353   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6354 do
6355   # Extract the first word of "$ac_prog", so it can be a program name with args.
6356 set dummy $ac_prog; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   if test -n "$ac_ct_CXX"; then
6363   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370     for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_prog_ac_ct_CXX="$ac_prog"
6373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377   done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6383 if test -n "$ac_ct_CXX"; then
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6385 $as_echo "$ac_ct_CXX" >&6; }
6386 else
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391
6392   test -n "$ac_ct_CXX" && break
6393 done
6394
6395   if test "x$ac_ct_CXX" = x; then
6396     CXX="g++"
6397   else
6398     case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404     CXX=$ac_ct_CXX
6405   fi
6406 fi
6407
6408   fi
6409 fi
6410 # Provide some information about the compiler.
6411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6412 set X $ac_compile
6413 ac_compiler=$2
6414 for ac_option in --version -v -V -qversion; do
6415   { { ac_try="$ac_compiler $ac_option >&5"
6416 case "(($ac_try" in
6417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418   *) ac_try_echo=$ac_try;;
6419 esac
6420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6421 $as_echo "$ac_try_echo"; } >&5
6422   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6423   ac_status=$?
6424   if test -s conftest.err; then
6425     sed '10a\
6426 ... rest of stderr output deleted ...
6427          10q' conftest.err >conftest.er1
6428     cat conftest.er1 >&5
6429   fi
6430   rm -f conftest.er1 conftest.err
6431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432   test $ac_status = 0; }
6433 done
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6437 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h.  */
6442
6443 int
6444 main ()
6445 {
6446 #ifndef __GNUC__
6447        choke me
6448 #endif
6449
6450   ;
6451   return 0;
6452 }
6453 _ACEOF
6454 if ac_fn_cxx_try_compile "$LINENO"; then :
6455   ac_compiler_gnu=yes
6456 else
6457   ac_compiler_gnu=no
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6461
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6465 if test $ac_compiler_gnu = yes; then
6466   GXX=yes
6467 else
6468   GXX=
6469 fi
6470 ac_test_CXXFLAGS=${CXXFLAGS+set}
6471 ac_save_CXXFLAGS=$CXXFLAGS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6474 if ${ac_cv_prog_cxx_g+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6478    ac_cxx_werror_flag=yes
6479    ac_cv_prog_cxx_g=no
6480    CXXFLAGS="-g"
6481    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h.  */
6483
6484 int
6485 main ()
6486 {
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_cxx_try_compile "$LINENO"; then :
6493   ac_cv_prog_cxx_g=yes
6494 else
6495   CXXFLAGS=""
6496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h.  */
6498
6499 int
6500 main ()
6501 {
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_cxx_try_compile "$LINENO"; then :
6508
6509 else
6510   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6511          CXXFLAGS="-g"
6512          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h.  */
6514
6515 int
6516 main ()
6517 {
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_cxx_try_compile "$LINENO"; then :
6524   ac_cv_prog_cxx_g=yes
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6535 if test "$ac_test_CXXFLAGS" = set; then
6536   CXXFLAGS=$ac_save_CXXFLAGS
6537 elif test $ac_cv_prog_cxx_g = yes; then
6538   if test "$GXX" = yes; then
6539     CXXFLAGS="-g -O2"
6540   else
6541     CXXFLAGS="-g"
6542   fi
6543 else
6544   if test "$GXX" = yes; then
6545     CXXFLAGS="-O2"
6546   else
6547     CXXFLAGS=
6548   fi
6549 fi
6550 ac_ext=c
6551 ac_cpp='$CPP $CPPFLAGS'
6552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555
6556 depcc="$CXX"  am_compiler_list=
6557
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6559 $as_echo_n "checking dependency style of $depcc... " >&6; }
6560 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6564   # We make a subdir and do the tests there.  Otherwise we can end up
6565   # making bogus files that we don't know about and never remove.  For
6566   # instance it was reported that on HP-UX the gcc test will end up
6567   # making a dummy file named `D' -- because `-MD' means `put the output
6568   # in D'.
6569   mkdir conftest.dir
6570   # Copy depcomp to subdir because otherwise we won't find it if we're
6571   # using a relative directory.
6572   cp "$am_depcomp" conftest.dir
6573   cd conftest.dir
6574   # We will build objects and dependencies in a subdirectory because
6575   # it helps to detect inapplicable dependency modes.  For instance
6576   # both Tru64's cc and ICC support -MD to output dependencies as a
6577   # side effect of compilation, but ICC will put the dependencies in
6578   # the current directory while Tru64 will put them in the object
6579   # directory.
6580   mkdir sub
6581
6582   am_cv_CXX_dependencies_compiler_type=none
6583   if test "$am_compiler_list" = ""; then
6584      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6585   fi
6586   am__universal=false
6587   case " $depcc " in #(
6588      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6589      esac
6590
6591   for depmode in $am_compiler_list; do
6592     # Setup a source with many dependencies, because some compilers
6593     # like to wrap large dependency lists on column 80 (with \), and
6594     # we should not choose a depcomp mode which is confused by this.
6595     #
6596     # We need to recreate these files for each test, as the compiler may
6597     # overwrite some of them when testing with obscure command lines.
6598     # This happens at least with the AIX C compiler.
6599     : > sub/conftest.c
6600     for i in 1 2 3 4 5 6; do
6601       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6602       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6603       # Solaris 8's {/usr,}/bin/sh.
6604       touch sub/conftst$i.h
6605     done
6606     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6607
6608     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6609     # mode.  It turns out that the SunPro C++ compiler does not properly
6610     # handle `-M -o', and we need to detect this.  Also, some Intel
6611     # versions had trouble with output in subdirs
6612     am__obj=sub/conftest.${OBJEXT-o}
6613     am__minus_obj="-o $am__obj"
6614     case $depmode in
6615     gcc)
6616       # This depmode causes a compiler race in universal mode.
6617       test "$am__universal" = false || continue
6618       ;;
6619     nosideeffect)
6620       # after this tag, mechanisms are not by side-effect, so they'll
6621       # only be used when explicitly requested
6622       if test "x$enable_dependency_tracking" = xyes; then
6623         continue
6624       else
6625         break
6626       fi
6627       ;;
6628     msvisualcpp | msvcmsys)
6629       # This compiler won't grok `-c -o', but also, the minuso test has
6630       # not run yet.  These depmodes are late enough in the game, and
6631       # so weak that their functioning should not be impacted.
6632       am__obj=conftest.${OBJEXT-o}
6633       am__minus_obj=
6634       ;;
6635     none) break ;;
6636     esac
6637     if depmode=$depmode \
6638        source=sub/conftest.c object=$am__obj \
6639        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6640        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6641          >/dev/null 2>conftest.err &&
6642        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6643        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6644        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6645        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6646       # icc doesn't choke on unknown options, it will just issue warnings
6647       # or remarks (even with -Werror).  So we grep stderr for any message
6648       # that says an option was ignored or not supported.
6649       # When given -MP, icc 7.0 and 7.1 complain thusly:
6650       #   icc: Command line warning: ignoring option '-M'; no argument required
6651       # The diagnosis changed in icc 8.0:
6652       #   icc: Command line remark: option '-MP' not supported
6653       if (grep 'ignoring option' conftest.err ||
6654           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6655         am_cv_CXX_dependencies_compiler_type=$depmode
6656         break
6657       fi
6658     fi
6659   done
6660
6661   cd ..
6662   rm -rf conftest.dir
6663 else
6664   am_cv_CXX_dependencies_compiler_type=none
6665 fi
6666
6667 fi
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6669 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6670 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6671
6672  if
6673   test "x$enable_dependency_tracking" != xno \
6674   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6675   am__fastdepCXX_TRUE=
6676   am__fastdepCXX_FALSE='#'
6677 else
6678   am__fastdepCXX_TRUE='#'
6679   am__fastdepCXX_FALSE=
6680 fi
6681
6682
6683    case $ac_cv_prog_cc_stdc in #(
6684   no) :
6685     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6686   *) :
6687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6688 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6689 if ${ac_cv_prog_cc_c99+:} false; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   ac_cv_prog_cc_c99=no
6693 ac_save_CC=$CC
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h.  */
6696 #include <stdarg.h>
6697 #include <stdbool.h>
6698 #include <stdlib.h>
6699 #include <wchar.h>
6700 #include <stdio.h>
6701
6702 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6703 #define debug(...) fprintf (stderr, __VA_ARGS__)
6704 #define showlist(...) puts (#__VA_ARGS__)
6705 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6706 static void
6707 test_varargs_macros (void)
6708 {
6709   int x = 1234;
6710   int y = 5678;
6711   debug ("Flag");
6712   debug ("X = %d\n", x);
6713   showlist (The first, second, and third items.);
6714   report (x>y, "x is %d but y is %d", x, y);
6715 }
6716
6717 // Check long long types.
6718 #define BIG64 18446744073709551615ull
6719 #define BIG32 4294967295ul
6720 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6721 #if !BIG_OK
6722   your preprocessor is broken;
6723 #endif
6724 #if BIG_OK
6725 #else
6726   your preprocessor is broken;
6727 #endif
6728 static long long int bignum = -9223372036854775807LL;
6729 static unsigned long long int ubignum = BIG64;
6730
6731 struct incomplete_array
6732 {
6733   int datasize;
6734   double data[];
6735 };
6736
6737 struct named_init {
6738   int number;
6739   const wchar_t *name;
6740   double average;
6741 };
6742
6743 typedef const char *ccp;
6744
6745 static inline int
6746 test_restrict (ccp restrict text)
6747 {
6748   // See if C++-style comments work.
6749   // Iterate through items via the restricted pointer.
6750   // Also check for declarations in for loops.
6751   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6752     continue;
6753   return 0;
6754 }
6755
6756 // Check varargs and va_copy.
6757 static void
6758 test_varargs (const char *format, ...)
6759 {
6760   va_list args;
6761   va_start (args, format);
6762   va_list args_copy;
6763   va_copy (args_copy, args);
6764
6765   const char *str;
6766   int number;
6767   float fnumber;
6768
6769   while (*format)
6770     {
6771       switch (*format++)
6772         {
6773         case 's': // string
6774           str = va_arg (args_copy, const char *);
6775           break;
6776         case 'd': // int
6777           number = va_arg (args_copy, int);
6778           break;
6779         case 'f': // float
6780           fnumber = va_arg (args_copy, double);
6781           break;
6782         default:
6783           break;
6784         }
6785     }
6786   va_end (args_copy);
6787   va_end (args);
6788 }
6789
6790 int
6791 main ()
6792 {
6793
6794   // Check bool.
6795   _Bool success = false;
6796
6797   // Check restrict.
6798   if (test_restrict ("String literal") == 0)
6799     success = true;
6800   char *restrict newvar = "Another string";
6801
6802   // Check varargs.
6803   test_varargs ("s, d' f .", "string", 65, 34.234);
6804   test_varargs_macros ();
6805
6806   // Check flexible array members.
6807   struct incomplete_array *ia =
6808     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6809   ia->datasize = 10;
6810   for (int i = 0; i < ia->datasize; ++i)
6811     ia->data[i] = i * 1.234;
6812
6813   // Check named initializers.
6814   struct named_init ni = {
6815     .number = 34,
6816     .name = L"Test wide string",
6817     .average = 543.34343,
6818   };
6819
6820   ni.number = 58;
6821
6822   int dynamic_array[ni.number];
6823   dynamic_array[ni.number - 1] = 543;
6824
6825   // work around unused variable warnings
6826   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6827           || dynamic_array[ni.number - 1] != 543);
6828
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6834 do
6835   CC="$ac_save_CC $ac_arg"
6836   if ac_fn_c_try_compile "$LINENO"; then :
6837   ac_cv_prog_cc_c99=$ac_arg
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext
6840   test "x$ac_cv_prog_cc_c99" != "xno" && break
6841 done
6842 rm -f conftest.$ac_ext
6843 CC=$ac_save_CC
6844
6845 fi
6846 # AC_CACHE_VAL
6847 case "x$ac_cv_prog_cc_c99" in
6848   x)
6849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6850 $as_echo "none needed" >&6; } ;;
6851   xno)
6852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6853 $as_echo "unsupported" >&6; } ;;
6854   *)
6855     CC="$CC $ac_cv_prog_cc_c99"
6856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6857 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6858 esac
6859 if test "x$ac_cv_prog_cc_c99" != xno; then :
6860   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6861 else
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6864 if ${ac_cv_prog_cc_c89+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   ac_cv_prog_cc_c89=no
6868 ac_save_CC=$CC
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h.  */
6871 #include <stdarg.h>
6872 #include <stdio.h>
6873 #include <sys/types.h>
6874 #include <sys/stat.h>
6875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6876 struct buf { int x; };
6877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6878 static char *e (p, i)
6879      char **p;
6880      int i;
6881 {
6882   return p[i];
6883 }
6884 static char *f (char * (*g) (char **, int), char **p, ...)
6885 {
6886   char *s;
6887   va_list v;
6888   va_start (v,p);
6889   s = g (p, va_arg (v,int));
6890   va_end (v);
6891   return s;
6892 }
6893
6894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6895    function prototypes and stuff, but not '\xHH' hex character constants.
6896    These don't provoke an error unfortunately, instead are silently treated
6897    as 'x'.  The following induces an error, until -std is added to get
6898    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6899    array size at least.  It's necessary to write '\x00'==0 to get something
6900    that's true only with -std.  */
6901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6902
6903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6904    inside strings and character constants.  */
6905 #define FOO(x) 'x'
6906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6907
6908 int test (int i, double x);
6909 struct s1 {int (*f) (int a);};
6910 struct s2 {int (*f) (double a);};
6911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6912 int argc;
6913 char **argv;
6914 int
6915 main ()
6916 {
6917 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6923         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6924 do
6925   CC="$ac_save_CC $ac_arg"
6926   if ac_fn_c_try_compile "$LINENO"; then :
6927   ac_cv_prog_cc_c89=$ac_arg
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext
6930   test "x$ac_cv_prog_cc_c89" != "xno" && break
6931 done
6932 rm -f conftest.$ac_ext
6933 CC=$ac_save_CC
6934
6935 fi
6936 # AC_CACHE_VAL
6937 case "x$ac_cv_prog_cc_c89" in
6938   x)
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6940 $as_echo "none needed" >&6; } ;;
6941   xno)
6942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6943 $as_echo "unsupported" >&6; } ;;
6944   *)
6945     CC="$CC $ac_cv_prog_cc_c89"
6946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6948 esac
6949 if test "x$ac_cv_prog_cc_c89" != xno; then :
6950   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6951 else
6952   ac_cv_prog_cc_stdc=no
6953 fi
6954
6955 fi
6956  ;;
6957 esac
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6959 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6960   if ${ac_cv_prog_cc_stdc+:} false; then :
6961   $as_echo_n "(cached) " >&6
6962 fi
6963
6964   case $ac_cv_prog_cc_stdc in #(
6965   no) :
6966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6967 $as_echo "unsupported" >&6; } ;; #(
6968   '') :
6969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6970 $as_echo "none needed" >&6; } ;; #(
6971   *) :
6972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6973 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6974 esac
6975
6976 ac_ext=c
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6982 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6983 # On Suns, sometimes $CPP names a directory.
6984 if test -n "$CPP" && test -d "$CPP"; then
6985   CPP=
6986 fi
6987 if test -z "$CPP"; then
6988   if ${ac_cv_prog_CPP+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991       # Double quotes because CPP needs to be expanded
6992     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6993     do
6994       ac_preproc_ok=false
6995 for ac_c_preproc_warn_flag in '' yes
6996 do
6997   # Use a header file that comes with gcc, so configuring glibc
6998   # with a fresh cross-compiler works.
6999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000   # <limits.h> exists even on freestanding compilers.
7001   # On the NeXT, cc -E runs the code through the compiler's parser,
7002   # not just through cpp. "Syntax error" is here to catch this case.
7003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h.  */
7005 #ifdef __STDC__
7006 # include <limits.h>
7007 #else
7008 # include <assert.h>
7009 #endif
7010                      Syntax error
7011 _ACEOF
7012 if ac_fn_c_try_cpp "$LINENO"; then :
7013
7014 else
7015   # Broken: fails on valid input.
7016 continue
7017 fi
7018 rm -f conftest.err conftest.i conftest.$ac_ext
7019
7020   # OK, works on sane cases.  Now check whether nonexistent headers
7021   # can be detected and how.
7022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024 #include <ac_nonexistent.h>
7025 _ACEOF
7026 if ac_fn_c_try_cpp "$LINENO"; then :
7027   # Broken: success on invalid input.
7028 continue
7029 else
7030   # Passes both tests.
7031 ac_preproc_ok=:
7032 break
7033 fi
7034 rm -f conftest.err conftest.i conftest.$ac_ext
7035
7036 done
7037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7038 rm -f conftest.i conftest.err conftest.$ac_ext
7039 if $ac_preproc_ok; then :
7040   break
7041 fi
7042
7043     done
7044     ac_cv_prog_CPP=$CPP
7045
7046 fi
7047   CPP=$ac_cv_prog_CPP
7048 else
7049   ac_cv_prog_CPP=$CPP
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7052 $as_echo "$CPP" >&6; }
7053 ac_preproc_ok=false
7054 for ac_c_preproc_warn_flag in '' yes
7055 do
7056   # Use a header file that comes with gcc, so configuring glibc
7057   # with a fresh cross-compiler works.
7058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059   # <limits.h> exists even on freestanding compilers.
7060   # On the NeXT, cc -E runs the code through the compiler's parser,
7061   # not just through cpp. "Syntax error" is here to catch this case.
7062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064 #ifdef __STDC__
7065 # include <limits.h>
7066 #else
7067 # include <assert.h>
7068 #endif
7069                      Syntax error
7070 _ACEOF
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7072
7073 else
7074   # Broken: fails on valid input.
7075 continue
7076 fi
7077 rm -f conftest.err conftest.i conftest.$ac_ext
7078
7079   # OK, works on sane cases.  Now check whether nonexistent headers
7080   # can be detected and how.
7081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h.  */
7083 #include <ac_nonexistent.h>
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086   # Broken: success on invalid input.
7087 continue
7088 else
7089   # Passes both tests.
7090 ac_preproc_ok=:
7091 break
7092 fi
7093 rm -f conftest.err conftest.i conftest.$ac_ext
7094
7095 done
7096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097 rm -f conftest.i conftest.err conftest.$ac_ext
7098 if $ac_preproc_ok; then :
7099
7100 else
7101   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7103 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7104 See \`config.log' for more details" "$LINENO" 5; }
7105 fi
7106
7107 ac_ext=c
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7114 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7115 if ${ac_cv_path_SED+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7119      for ac_i in 1 2 3 4 5 6 7; do
7120        ac_script="$ac_script$as_nl$ac_script"
7121      done
7122      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7123      { ac_script=; unset ac_script;}
7124      if test -z "$SED"; then
7125   ac_path_SED_found=false
7126   # Loop through the user's path and test for each of PROGNAME-LIST
7127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_prog in sed gsed; do
7133     for ac_exec_ext in '' $ac_executable_extensions; do
7134       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7135       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7136 # Check for GNU ac_path_SED and select it if it is found.
7137   # Check for GNU $ac_path_SED
7138 case `"$ac_path_SED" --version 2>&1` in
7139 *GNU*)
7140   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7141 *)
7142   ac_count=0
7143   $as_echo_n 0123456789 >"conftest.in"
7144   while :
7145   do
7146     cat "conftest.in" "conftest.in" >"conftest.tmp"
7147     mv "conftest.tmp" "conftest.in"
7148     cp "conftest.in" "conftest.nl"
7149     $as_echo '' >> "conftest.nl"
7150     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7152     as_fn_arith $ac_count + 1 && ac_count=$as_val
7153     if test $ac_count -gt ${ac_path_SED_max-0}; then
7154       # Best one so far, save it but keep looking for a better one
7155       ac_cv_path_SED="$ac_path_SED"
7156       ac_path_SED_max=$ac_count
7157     fi
7158     # 10*(2^10) chars as input seems more than enough
7159     test $ac_count -gt 10 && break
7160   done
7161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7162 esac
7163
7164       $ac_path_SED_found && break 3
7165     done
7166   done
7167   done
7168 IFS=$as_save_IFS
7169   if test -z "$ac_cv_path_SED"; then
7170     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7171   fi
7172 else
7173   ac_cv_path_SED=$SED
7174 fi
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7178 $as_echo "$ac_cv_path_SED" >&6; }
7179  SED="$ac_cv_path_SED"
7180   rm -f conftest.sed
7181
7182 test -z "$SED" && SED=sed
7183 Xsed="$SED -e 1s/^X//"
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7196 $as_echo_n "checking for fgrep... " >&6; }
7197 if ${ac_cv_path_FGREP+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7201    then ac_cv_path_FGREP="$GREP -F"
7202    else
7203      if test -z "$FGREP"; then
7204   ac_path_FGREP_found=false
7205   # Loop through the user's path and test for each of PROGNAME-LIST
7206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211     for ac_prog in fgrep; do
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7214       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7215 # Check for GNU ac_path_FGREP and select it if it is found.
7216   # Check for GNU $ac_path_FGREP
7217 case `"$ac_path_FGREP" --version 2>&1` in
7218 *GNU*)
7219   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7220 *)
7221   ac_count=0
7222   $as_echo_n 0123456789 >"conftest.in"
7223   while :
7224   do
7225     cat "conftest.in" "conftest.in" >"conftest.tmp"
7226     mv "conftest.tmp" "conftest.in"
7227     cp "conftest.in" "conftest.nl"
7228     $as_echo 'FGREP' >> "conftest.nl"
7229     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7230     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7231     as_fn_arith $ac_count + 1 && ac_count=$as_val
7232     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7233       # Best one so far, save it but keep looking for a better one
7234       ac_cv_path_FGREP="$ac_path_FGREP"
7235       ac_path_FGREP_max=$ac_count
7236     fi
7237     # 10*(2^10) chars as input seems more than enough
7238     test $ac_count -gt 10 && break
7239   done
7240   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7241 esac
7242
7243       $ac_path_FGREP_found && break 3
7244     done
7245   done
7246   done
7247 IFS=$as_save_IFS
7248   if test -z "$ac_cv_path_FGREP"; then
7249     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7250   fi
7251 else
7252   ac_cv_path_FGREP=$FGREP
7253 fi
7254
7255    fi
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7258 $as_echo "$ac_cv_path_FGREP" >&6; }
7259  FGREP="$ac_cv_path_FGREP"
7260
7261
7262 test -z "$GREP" && GREP=grep
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7285 $as_echo_n "checking how to print strings... " >&6; }
7286 # Test print first, because it will be a builtin if present.
7287 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7288    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7289   ECHO='print -r --'
7290 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7291   ECHO='printf %s\n'
7292 else
7293   # Use this function as a fallback that always works.
7294   func_fallback_echo ()
7295   {
7296     eval 'cat <<_LTECHO_EOF
7297 $1
7298 _LTECHO_EOF'
7299   }
7300   ECHO='func_fallback_echo'
7301 fi
7302
7303 # func_echo_all arg...
7304 # Invoke $ECHO with all args, space-separated.
7305 func_echo_all ()
7306 {
7307     $ECHO ""
7308 }
7309
7310 case "$ECHO" in
7311   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7312 $as_echo "printf" >&6; } ;;
7313   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7314 $as_echo "print -r" >&6; } ;;
7315   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7316 $as_echo "cat" >&6; } ;;
7317 esac
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 # Check whether --with-gnu-ld was given.
7335 if test "${with_gnu_ld+set}" = set; then :
7336   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7337 else
7338   with_gnu_ld=no
7339 fi
7340
7341 ac_prog=ld
7342 if test "$GCC" = yes; then
7343   # Check if gcc -print-prog-name=ld gives a path.
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7345 $as_echo_n "checking for ld used by $CC... " >&6; }
7346   case $host in
7347   *-*-mingw*)
7348     # gcc leaves a trailing carriage return which upsets mingw
7349     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7350   *)
7351     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7352   esac
7353   case $ac_prog in
7354     # Accept absolute paths.
7355     [\\/]* | ?:[\\/]*)
7356       re_direlt='/[^/][^/]*/\.\./'
7357       # Canonicalize the pathname of ld
7358       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7359       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7360         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7361       done
7362       test -z "$LD" && LD="$ac_prog"
7363       ;;
7364   "")
7365     # If it fails, then pretend we aren't using GCC.
7366     ac_prog=ld
7367     ;;
7368   *)
7369     # If it is relative, then search for the first ld in PATH.
7370     with_gnu_ld=unknown
7371     ;;
7372   esac
7373 elif test "$with_gnu_ld" = yes; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7375 $as_echo_n "checking for GNU ld... " >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7378 $as_echo_n "checking for non-GNU ld... " >&6; }
7379 fi
7380 if ${lt_cv_path_LD+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -z "$LD"; then
7384   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385   for ac_dir in $PATH; do
7386     IFS="$lt_save_ifs"
7387     test -z "$ac_dir" && ac_dir=.
7388     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7389       lt_cv_path_LD="$ac_dir/$ac_prog"
7390       # Check to see if the program is GNU ld.  I'd rather use --version,
7391       # but apparently some variants of GNU ld only accept -v.
7392       # Break only if it was the GNU/non-GNU ld that we prefer.
7393       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7394       *GNU* | *'with BFD'*)
7395         test "$with_gnu_ld" != no && break
7396         ;;
7397       *)
7398         test "$with_gnu_ld" != yes && break
7399         ;;
7400       esac
7401     fi
7402   done
7403   IFS="$lt_save_ifs"
7404 else
7405   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7406 fi
7407 fi
7408
7409 LD="$lt_cv_path_LD"
7410 if test -n "$LD"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7412 $as_echo "$LD" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7420 if ${lt_cv_prog_gnu_ld+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7424 case `$LD -v 2>&1 </dev/null` in
7425 *GNU* | *'with BFD'*)
7426   lt_cv_prog_gnu_ld=yes
7427   ;;
7428 *)
7429   lt_cv_prog_gnu_ld=no
7430   ;;
7431 esac
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7435 with_gnu_ld=$lt_cv_prog_gnu_ld
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7447 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7448 if ${ac_cv_prog_cc_c99+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   ac_cv_prog_cc_c99=no
7452 ac_save_CC=$CC
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h.  */
7455 #include <stdarg.h>
7456 #include <stdbool.h>
7457 #include <stdlib.h>
7458 #include <wchar.h>
7459 #include <stdio.h>
7460
7461 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7462 #define debug(...) fprintf (stderr, __VA_ARGS__)
7463 #define showlist(...) puts (#__VA_ARGS__)
7464 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7465 static void
7466 test_varargs_macros (void)
7467 {
7468   int x = 1234;
7469   int y = 5678;
7470   debug ("Flag");
7471   debug ("X = %d\n", x);
7472   showlist (The first, second, and third items.);
7473   report (x>y, "x is %d but y is %d", x, y);
7474 }
7475
7476 // Check long long types.
7477 #define BIG64 18446744073709551615ull
7478 #define BIG32 4294967295ul
7479 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7480 #if !BIG_OK
7481   your preprocessor is broken;
7482 #endif
7483 #if BIG_OK
7484 #else
7485   your preprocessor is broken;
7486 #endif
7487 static long long int bignum = -9223372036854775807LL;
7488 static unsigned long long int ubignum = BIG64;
7489
7490 struct incomplete_array
7491 {
7492   int datasize;
7493   double data[];
7494 };
7495
7496 struct named_init {
7497   int number;
7498   const wchar_t *name;
7499   double average;
7500 };
7501
7502 typedef const char *ccp;
7503
7504 static inline int
7505 test_restrict (ccp restrict text)
7506 {
7507   // See if C++-style comments work.
7508   // Iterate through items via the restricted pointer.
7509   // Also check for declarations in for loops.
7510   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7511     continue;
7512   return 0;
7513 }
7514
7515 // Check varargs and va_copy.
7516 static void
7517 test_varargs (const char *format, ...)
7518 {
7519   va_list args;
7520   va_start (args, format);
7521   va_list args_copy;
7522   va_copy (args_copy, args);
7523
7524   const char *str;
7525   int number;
7526   float fnumber;
7527
7528   while (*format)
7529     {
7530       switch (*format++)
7531         {
7532         case 's': // string
7533           str = va_arg (args_copy, const char *);
7534           break;
7535         case 'd': // int
7536           number = va_arg (args_copy, int);
7537           break;
7538         case 'f': // float
7539           fnumber = va_arg (args_copy, double);
7540           break;
7541         default:
7542           break;
7543         }
7544     }
7545   va_end (args_copy);
7546   va_end (args);
7547 }
7548
7549 int
7550 main ()
7551 {
7552
7553   // Check bool.
7554   _Bool success = false;
7555
7556   // Check restrict.
7557   if (test_restrict ("String literal") == 0)
7558     success = true;
7559   char *restrict newvar = "Another string";
7560
7561   // Check varargs.
7562   test_varargs ("s, d' f .", "string", 65, 34.234);
7563   test_varargs_macros ();
7564
7565   // Check flexible array members.
7566   struct incomplete_array *ia =
7567     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7568   ia->datasize = 10;
7569   for (int i = 0; i < ia->datasize; ++i)
7570     ia->data[i] = i * 1.234;
7571
7572   // Check named initializers.
7573   struct named_init ni = {
7574     .number = 34,
7575     .name = L"Test wide string",
7576     .average = 543.34343,
7577   };
7578
7579   ni.number = 58;
7580
7581   int dynamic_array[ni.number];
7582   dynamic_array[ni.number - 1] = 543;
7583
7584   // work around unused variable warnings
7585   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7586           || dynamic_array[ni.number - 1] != 543);
7587
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7593 do
7594   CC="$ac_save_CC $ac_arg"
7595   if ac_fn_c_try_compile "$LINENO"; then :
7596   ac_cv_prog_cc_c99=$ac_arg
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext
7599   test "x$ac_cv_prog_cc_c99" != "xno" && break
7600 done
7601 rm -f conftest.$ac_ext
7602 CC=$ac_save_CC
7603
7604 fi
7605 # AC_CACHE_VAL
7606 case "x$ac_cv_prog_cc_c99" in
7607   x)
7608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7609 $as_echo "none needed" >&6; } ;;
7610   xno)
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7612 $as_echo "unsupported" >&6; } ;;
7613   *)
7614     CC="$CC $ac_cv_prog_cc_c99"
7615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7616 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7617 esac
7618 if test "x$ac_cv_prog_cc_c99" != xno; then :
7619
7620 fi
7621
7622
7623 if test "x$CC" != xcc; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7625 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7628 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7629 fi
7630 set dummy $CC; ac_cc=`$as_echo "$2" |
7631                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7632 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637
7638 int
7639 main ()
7640 {
7641
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 # Make sure it works both with $CC and with simple cc.
7647 # We do the test twice because some compilers refuse to overwrite an
7648 # existing .o file with -o, though they will create one.
7649 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7650 rm -f conftest2.*
7651 if { { case "(($ac_try" in
7652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653   *) ac_try_echo=$ac_try;;
7654 esac
7655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7656 $as_echo "$ac_try_echo"; } >&5
7657   (eval "$ac_try") 2>&5
7658   ac_status=$?
7659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660   test $ac_status = 0; } &&
7661    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663   *) ac_try_echo=$ac_try;;
7664 esac
7665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7666 $as_echo "$ac_try_echo"; } >&5
7667   (eval "$ac_try") 2>&5
7668   ac_status=$?
7669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670   test $ac_status = 0; };
7671 then
7672   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7673   if test "x$CC" != xcc; then
7674     # Test first that cc exists at all.
7675     if { ac_try='cc -c conftest.$ac_ext >&5'
7676   { { case "(($ac_try" in
7677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678   *) ac_try_echo=$ac_try;;
7679 esac
7680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7681 $as_echo "$ac_try_echo"; } >&5
7682   (eval "$ac_try") 2>&5
7683   ac_status=$?
7684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685   test $ac_status = 0; }; }; then
7686       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7687       rm -f conftest2.*
7688       if { { case "(($ac_try" in
7689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690   *) ac_try_echo=$ac_try;;
7691 esac
7692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7693 $as_echo "$ac_try_echo"; } >&5
7694   (eval "$ac_try") 2>&5
7695   ac_status=$?
7696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697   test $ac_status = 0; } &&
7698          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700   *) ac_try_echo=$ac_try;;
7701 esac
7702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7703 $as_echo "$ac_try_echo"; } >&5
7704   (eval "$ac_try") 2>&5
7705   ac_status=$?
7706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707   test $ac_status = 0; };
7708       then
7709         # cc works too.
7710         :
7711       else
7712         # cc exists but doesn't like -o.
7713         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7714       fi
7715     fi
7716   fi
7717 else
7718   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7719 fi
7720 rm -f core conftest*
7721
7722 fi
7723 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7725 $as_echo "yes" >&6; }
7726 else
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729
7730 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7731
7732 fi
7733
7734 # FIXME: we rely on the cache variable name because
7735 # there is no other way.
7736 set dummy $CC
7737 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7738 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7739 if test "$am_t" != yes; then
7740    # Losing compiler, so override with the script.
7741    # FIXME: It is wrong to rewrite CC.
7742    # But if we don't then we get into trouble of one sort or another.
7743    # A longer-term fix would be to have automake use am__CC in this case,
7744    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7745    CC="$am_aux_dir/compile $CC"
7746 fi
7747
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7750 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7751 if ${ac_cv_cflags_warn_all+:} false; then :
7752   $as_echo_n "(cached) " >&6
7753 else
7754   ac_cv_cflags_warn_all="no, unknown"
7755  ac_ext=c
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760
7761  ac_save_CFLAGS="$CFLAGS"
7762 for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
7763 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766
7767 int
7768 main ()
7769 {
7770
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"; then :
7776   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 done
7780  CFLAGS="$ac_save_CFLAGS"
7781  ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7790 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7791 case ".$ac_cv_cflags_warn_all" in
7792      .ok|.ok,*)  ;;
7793    .|.no|.no,*)
7794  ;;
7795    *)
7796    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7797    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7798   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7799   ac_status=$?
7800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801   test $ac_status = 0; }
7802    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7803   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7804   ac_status=$?
7805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806   test $ac_status = 0; }
7807                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7808    fi
7809  ;;
7810 esac
7811
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7815 set x ${MAKE-make}
7816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7817 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   cat >conftest.make <<\_ACEOF
7821 SHELL = /bin/sh
7822 all:
7823         @echo '@@@%%%=$(MAKE)=@@@%%%'
7824 _ACEOF
7825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7827   *@@@%%%=?*=@@@%%%*)
7828     eval ac_cv_prog_make_${ac_make}_set=yes;;
7829   *)
7830     eval ac_cv_prog_make_${ac_make}_set=no;;
7831 esac
7832 rm -f conftest.make
7833 fi
7834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7837   SET_MAKE=
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841   SET_MAKE="MAKE=${MAKE-make}"
7842 fi
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7845 $as_echo_n "checking whether ln -s works... " >&6; }
7846 LN_S=$as_ln_s
7847 if test "$LN_S" = "ln -s"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7852 $as_echo "no, using $LN_S" >&6; }
7853 fi
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7856 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7857
7858 # Check whether --with-dmalloc was given.
7859 if test "${with_dmalloc+set}" = set; then :
7860   withval=$with_dmalloc; if test "$withval" = yes; then
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7863
7864 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7865
7866   LIBS="$LIBS -ldmalloc"
7867   LDFLAGS="$LDFLAGS -g"
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872 else
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7880 $as_echo_n "checking for __attribute__... " >&6; }
7881 if ${ax_cv___attribute__+:} false; then :
7882   $as_echo_n "(cached) " >&6
7883 else
7884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h.  */
7886 #include <stdlib.h>
7887           static void foo(void) __attribute__ ((unused));
7888           static void
7889           foo(void) {
7890               exit(1);
7891           }
7892
7893 int
7894 main ()
7895 {
7896
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902   ax_cv___attribute__=yes
7903 else
7904   ax_cv___attribute__=no
7905
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7911 $as_echo "$ax_cv___attribute__" >&6; }
7912   if test "$ax_cv___attribute__" = "yes"; then
7913
7914 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7915
7916   fi
7917
7918
7919
7920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7921         if test -n "$ac_tool_prefix"; then
7922   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7927   $as_echo_n "(cached) " >&6
7928 else
7929   case $PKG_CONFIG in
7930   [\\/]* | ?:[\\/]*)
7931   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7932   ;;
7933   *)
7934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937   IFS=$as_save_IFS
7938   test -z "$as_dir" && as_dir=.
7939     for ac_exec_ext in '' $ac_executable_extensions; do
7940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946   done
7947 IFS=$as_save_IFS
7948
7949   ;;
7950 esac
7951 fi
7952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7953 if test -n "$PKG_CONFIG"; then
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7955 $as_echo "$PKG_CONFIG" >&6; }
7956 else
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961
7962 fi
7963 if test -z "$ac_cv_path_PKG_CONFIG"; then
7964   ac_pt_PKG_CONFIG=$PKG_CONFIG
7965   # Extract the first word of "pkg-config", so it can be a program name with args.
7966 set dummy pkg-config; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   case $ac_pt_PKG_CONFIG in
7973   [\\/]* | ?:[\\/]*)
7974   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7975   ;;
7976   *)
7977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991
7992   ;;
7993 esac
7994 fi
7995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7996 if test -n "$ac_pt_PKG_CONFIG"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7998 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7999 else
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004   if test "x$ac_pt_PKG_CONFIG" = x; then
8005     PKG_CONFIG=""
8006   else
8007     case $cross_compiling:$ac_tool_warned in
8008 yes:)
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8012 esac
8013     PKG_CONFIG=$ac_pt_PKG_CONFIG
8014   fi
8015 else
8016   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8017 fi
8018
8019 fi
8020 if test -n "$PKG_CONFIG"; then
8021         _pkg_min_version=0.9.0
8022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8024         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8025                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026 $as_echo "yes" >&6; }
8027         else
8028                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030                 PKG_CONFIG=""
8031         fi
8032
8033 fi
8034
8035 #
8036 # Enable run-time checking.
8037 #
8038 # Check whether --enable-bounds-checking was given.
8039 if test "${enable_bounds_checking+set}" = set; then :
8040   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8041 else
8042   enable_bounds_checking='no'
8043 fi
8044
8045
8046 if test "$enable_bounds_checking" = yes; then
8047
8048 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8049
8050 fi
8051
8052 #
8053 # Tests for Windows
8054 #
8055
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8058 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8059 if ${ax_cv_c_compiler_ms+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h.  */
8064
8065 int
8066 main ()
8067 {
8068 #ifndef _MSC_VER
8069        choke me
8070 #endif
8071
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_compile "$LINENO"; then :
8077   ax_compiler_ms=yes
8078 else
8079   ax_compiler_ms=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 ax_cv_c_compiler_ms=$ax_compiler_ms
8083
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8086 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8087
8088 GDI32_LIBS=''
8089 native_win32_build='no'
8090 cygwin_build='no'
8091 case "${host_os}" in
8092     cygwin* )
8093         cygwin_build='yes'
8094         GDI32_LIBS='-lgdi32'
8095     ;;
8096     mingw* )
8097         native_win32_build='yes'
8098         GDI32_LIBS='-lgdi32'
8099     ;;
8100 esac
8101 if test "${GDI32_LIBS}x" != 'x'; then
8102
8103 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8104
8105 fi
8106
8107  if test "${GDI32_LIBS}x" != 'x' ; then
8108   WINGDI32_DELEGATE_TRUE=
8109   WINGDI32_DELEGATE_FALSE='#'
8110 else
8111   WINGDI32_DELEGATE_TRUE='#'
8112   WINGDI32_DELEGATE_FALSE=
8113 fi
8114
8115  if test "${native_win32_build}" = 'yes' ; then
8116   WIN32_NATIVE_BUILD_TRUE=
8117   WIN32_NATIVE_BUILD_FALSE='#'
8118 else
8119   WIN32_NATIVE_BUILD_TRUE='#'
8120   WIN32_NATIVE_BUILD_FALSE=
8121 fi
8122
8123  if test "${cygwin_build}" = 'yes' ; then
8124   CYGWIN_BUILD_TRUE=
8125   CYGWIN_BUILD_FALSE='#'
8126 else
8127   CYGWIN_BUILD_TRUE='#'
8128   CYGWIN_BUILD_FALSE=
8129 fi
8130
8131  if test "x${CC}" = 'xcl.exe' ; then
8132   USING_CL_TRUE=
8133   USING_CL_FALSE='#'
8134 else
8135   USING_CL_TRUE='#'
8136   USING_CL_FALSE=
8137 fi
8138
8139
8140 WinPathScript="${srcdirfull}/winpath.sh"
8141
8142
8143 #
8144 # Compiler flags tweaks
8145 #
8146 if test "${GCC}" != "yes"; then
8147     case "${host}" in
8148         *-*-hpux* )
8149             # aCC: HP ANSI C++ B3910B A.03.34
8150             CFLAGS="${CFLAGS} -Wp,-H30000"
8151             if test -n "${CXXFLAGS}"; then
8152                 CXXFLAGS='-AA'
8153             else
8154                 CXXFLAGS="${CXXFLAGS} -AA"
8155             fi
8156         ;;
8157         *-dec-osf5.* )
8158             # Compaq alphaev68-dec-osf5.1 compiler
8159             if test -n "${CXXFLAGS}"; then
8160                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8161             else
8162                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8163             fi
8164   esac
8165 fi
8166
8167 # Check for lazy-loading.
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8169 $as_echo_n "checking for linker lazyload option... " >&6; }
8170 if ${im_cv_ld_lazyload+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173
8174 im_cv_ld_lazyload='none'
8175 case "${host}" in
8176   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8177     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8178        im_cv_ld_lazyload='-Wl,-zlazyload'
8179     fi
8180     ;;
8181 esac
8182
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8185 $as_echo "$im_cv_ld_lazyload" >&6; }
8186 if test "${im_cv_ld_lazyload}" != 'none' ; then
8187   if test -z "${LDFLAGS}" ; then
8188     LDFLAGS="${im_cv_ld_lazyload}"
8189   else
8190     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8191   fi
8192 fi
8193
8194 case "$host" in
8195 *darwin* | *-macos10*)
8196     # Check whether --enable-osx-universal-binary was given.
8197 if test "${enable_osx_universal_binary+set}" = set; then :
8198   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8199 else
8200   build_osxuniversal=no
8201 fi
8202
8203
8204   if test "${build_osxuniversal}" != no ; then
8205     if test "$enable_dependency_tracking" != no ; then
8206       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8207 Please re-run configure with these options:
8208   --disable-dependency-tracking --enable-osx-universal-binary
8209         " "$LINENO" 5
8210     fi
8211     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8214   fi
8215   ;;
8216 esac
8217
8218 # Enable support for threads
8219
8220 # Check whether --with-threads was given.
8221 if test "${with_threads+set}" = set; then :
8222   withval=$with_threads; with_threads=$withval
8223 else
8224   with_threads='yes'
8225 fi
8226
8227
8228 have_threads=no
8229 if test "$with_threads" != 'no'; then
8230
8231
8232
8233 ac_ext=c
8234 ac_cpp='$CPP $CPPFLAGS'
8235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239 ax_pthread_ok=no
8240
8241 # We used to check for pthread.h first, but this fails if pthread.h
8242 # requires special compiler flags (e.g. on True64 or Sequent).
8243 # It gets checked for in the link test anyway.
8244
8245 # First of all, check if the user has set any of the PTHREAD_LIBS,
8246 # etcetera environment variables, and if threads linking works using
8247 # them:
8248 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8249         save_CFLAGS="$CFLAGS"
8250         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8251         save_LIBS="$LIBS"
8252         LIBS="$PTHREAD_LIBS $LIBS"
8253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8254 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h.  */
8257
8258 /* Override any GCC internal prototype to avoid an error.
8259    Use char because int might match the return type of a GCC
8260    builtin and then its argument prototype would still apply.  */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char pthread_join ();
8265 int
8266 main ()
8267 {
8268 return pthread_join ();
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274   ax_pthread_ok=yes
8275 fi
8276 rm -f core conftest.err conftest.$ac_objext \
8277     conftest$ac_exeext conftest.$ac_ext
8278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8279 $as_echo "$ax_pthread_ok" >&6; }
8280         if test x"$ax_pthread_ok" = xno; then
8281                 PTHREAD_LIBS=""
8282                 PTHREAD_CFLAGS=""
8283         fi
8284         LIBS="$save_LIBS"
8285         CFLAGS="$save_CFLAGS"
8286 fi
8287
8288 # We must check for the threads library under a number of different
8289 # names; the ordering is very important because some systems
8290 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8291 # libraries is broken (non-POSIX).
8292
8293 # Create a list of thread flags to try.  Items starting with a "-" are
8294 # C compiler flags, and other items are library names, except for "none"
8295 # which indicates that we try without any flags at all, and "pthread-config"
8296 # which is a program returning the flags for the Pth emulation library.
8297
8298 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8299
8300 # The ordering *is* (sometimes) important.  Some notes on the
8301 # individual items follow:
8302
8303 # pthreads: AIX (must check this before -lpthread)
8304 # none: in case threads are in libc; should be tried before -Kthread and
8305 #       other compiler flags to prevent continual compiler warnings
8306 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8307 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8308 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8309 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8310 # -pthreads: Solaris/gcc
8311 # -mthreads: Mingw32/gcc, Lynx/gcc
8312 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8313 #      doesn't hurt to check since this sometimes defines pthreads too;
8314 #      also defines -D_REENTRANT)
8315 #      ... -mt is also the pthreads flag for HP/aCC
8316 # pthread: Linux, etcetera
8317 # --thread-safe: KAI C++
8318 # pthread-config: use pthread-config program (for GNU Pth library)
8319
8320 case "${host_cpu}-${host_os}" in
8321         *solaris*)
8322
8323         # On Solaris (at least, for some versions), libc contains stubbed
8324         # (non-functional) versions of the pthreads routines, so link-based
8325         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8326         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8327         # a function called by this macro, so we could check for that, but
8328         # who knows whether they'll stub that too in a future libc.)  So,
8329         # we'll just look for -pthreads and -lpthread first:
8330
8331         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8332         ;;
8333
8334         *-darwin*)
8335         ax_pthread_flags="-pthread $ax_pthread_flags"
8336         ;;
8337 esac
8338
8339 if test x"$ax_pthread_ok" = xno; then
8340 for flag in $ax_pthread_flags; do
8341
8342         case $flag in
8343                 none)
8344                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8345 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8346                 ;;
8347
8348                 -*)
8349                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8350 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8351                 PTHREAD_CFLAGS="$flag"
8352                 ;;
8353
8354                 pthread-config)
8355                 # Extract the first word of "pthread-config", so it can be a program name with args.
8356 set dummy pthread-config; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   if test -n "$ax_pthread_config"; then
8363   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370     for ac_exec_ext in '' $ac_executable_extensions; do
8371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372     ac_cv_prog_ax_pthread_config="yes"
8373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377   done
8378 IFS=$as_save_IFS
8379
8380   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8381 fi
8382 fi
8383 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8384 if test -n "$ax_pthread_config"; then
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8386 $as_echo "$ax_pthread_config" >&6; }
8387 else
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393                 if test x"$ax_pthread_config" = xno; then continue; fi
8394                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8395                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8396                 ;;
8397
8398                 *)
8399                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8400 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8401                 PTHREAD_LIBS="-l$flag"
8402                 ;;
8403         esac
8404
8405         save_LIBS="$LIBS"
8406         save_CFLAGS="$CFLAGS"
8407         LIBS="$PTHREAD_LIBS $LIBS"
8408         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8409
8410         # Check for various functions.  We must include pthread.h,
8411         # since some functions may be macros.  (On the Sequent, we
8412         # need a special flag -Kthread to make this header compile.)
8413         # We check for pthread_join because it is in -lpthread on IRIX
8414         # while pthread_create is in libc.  We check for pthread_attr_init
8415         # due to DEC craziness with -lpthreads.  We check for
8416         # pthread_cleanup_push because it is one of the few pthread
8417         # functions on Solaris that doesn't have a non-functional libc stub.
8418         # We try pthread_create on general principles.
8419         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421 #include <pthread.h>
8422                      static void routine(void* a) {a=0;}
8423                      static void* start_routine(void* a) {return a;}
8424 int
8425 main ()
8426 {
8427 pthread_t th; pthread_attr_t attr;
8428                      pthread_create(&th,0,start_routine,0);
8429                      pthread_join(th, 0);
8430                      pthread_attr_init(&attr);
8431                      pthread_cleanup_push(routine, 0);
8432                      pthread_cleanup_pop(0);
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438   ax_pthread_ok=yes
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext \
8441     conftest$ac_exeext conftest.$ac_ext
8442
8443         LIBS="$save_LIBS"
8444         CFLAGS="$save_CFLAGS"
8445
8446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8447 $as_echo "$ax_pthread_ok" >&6; }
8448         if test "x$ax_pthread_ok" = xyes; then
8449                 break;
8450         fi
8451
8452         PTHREAD_LIBS=""
8453         PTHREAD_CFLAGS=""
8454 done
8455 fi
8456
8457 # Various other checks:
8458 if test "x$ax_pthread_ok" = xyes; then
8459         save_LIBS="$LIBS"
8460         LIBS="$PTHREAD_LIBS $LIBS"
8461         save_CFLAGS="$CFLAGS"
8462         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8463
8464         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8466 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8467         attr_name=unknown
8468         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8469             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h.  */
8471 #include <pthread.h>
8472 int
8473 main ()
8474 {
8475 int attr=$attr; return attr;
8476   ;
8477   return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_link "$LINENO"; then :
8481   attr_name=$attr; break
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484     conftest$ac_exeext conftest.$ac_ext
8485         done
8486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8487 $as_echo "$attr_name" >&6; }
8488         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define PTHREAD_CREATE_JOINABLE $attr_name
8492 _ACEOF
8493
8494         fi
8495
8496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8497 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8498         flag=no
8499         case "${host_cpu}-${host_os}" in
8500             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8501             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8502         esac
8503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8504 $as_echo "${flag}" >&6; }
8505         if test "x$flag" != xno; then
8506             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8507         fi
8508
8509         LIBS="$save_LIBS"
8510         CFLAGS="$save_CFLAGS"
8511
8512         # More AIX lossage: must compile with xlc_r or cc_r
8513         if test x"$GCC" != xyes; then
8514           for ac_prog in xlc_r cc_r
8515 do
8516   # Extract the first word of "$ac_prog", so it can be a program name with args.
8517 set dummy $ac_prog; ac_word=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8521   $as_echo_n "(cached) " >&6
8522 else
8523   if test -n "$PTHREAD_CC"; then
8524   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8525 else
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8528 do
8529   IFS=$as_save_IFS
8530   test -z "$as_dir" && as_dir=.
8531     for ac_exec_ext in '' $ac_executable_extensions; do
8532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533     ac_cv_prog_PTHREAD_CC="$ac_prog"
8534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535     break 2
8536   fi
8537 done
8538   done
8539 IFS=$as_save_IFS
8540
8541 fi
8542 fi
8543 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8544 if test -n "$PTHREAD_CC"; then
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8546 $as_echo "$PTHREAD_CC" >&6; }
8547 else
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8550 fi
8551
8552
8553   test -n "$PTHREAD_CC" && break
8554 done
8555 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8556
8557         else
8558           PTHREAD_CC=$CC
8559         fi
8560 else
8561         PTHREAD_CC="$CC"
8562 fi
8563
8564
8565
8566
8567
8568 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8569 if test x"$ax_pthread_ok" = xyes; then
8570
8571 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8572
8573         :
8574 else
8575         ax_pthread_ok=no
8576
8577 fi
8578 ac_ext=c
8579 ac_cpp='$CPP $CPPFLAGS'
8580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8583
8584
8585     if test "$ax_pthread_ok" = yes; then
8586         have_threads=yes
8587         DEF_THREAD="$PTHREAD_CFLAGS"
8588         CFLAGS="$CFLAGS $DEF_THREAD"
8589         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8590         if test "$CC" != "$PTHREAD_CC"; then
8591             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8592 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8593             CC="$PTHREAD_CC"
8594         fi
8595
8596 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8597
8598     fi
8599 fi
8600
8601 # Enable support for OpenMP
8602 if test "$have_threads" != 'yes'; then
8603   ac_cv_prog_c_openmp=unsupported
8604 fi
8605
8606   OPENMP_CFLAGS=
8607   # Check whether --enable-openmp was given.
8608 if test "${enable_openmp+set}" = set; then :
8609   enableval=$enable_openmp;
8610 fi
8611
8612   if test "$enable_openmp" != no; then
8613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8614 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8615 if ${ac_cv_prog_c_openmp+:} false; then :
8616   $as_echo_n "(cached) " >&6
8617 else
8618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h.  */
8620
8621 #ifndef _OPENMP
8622  choke me
8623 #endif
8624 #include <omp.h>
8625 int main () { return omp_get_num_threads (); }
8626
8627 _ACEOF
8628 if ac_fn_c_try_link "$LINENO"; then :
8629   ac_cv_prog_c_openmp='none needed'
8630 else
8631   ac_cv_prog_c_openmp='unsupported'
8632                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8633             ac_save_CFLAGS=$CFLAGS
8634             CFLAGS="$CFLAGS $ac_option"
8635             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637
8638 #ifndef _OPENMP
8639  choke me
8640 #endif
8641 #include <omp.h>
8642 int main () { return omp_get_num_threads (); }
8643
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"; then :
8646   ac_cv_prog_c_openmp=$ac_option
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext \
8649     conftest$ac_exeext conftest.$ac_ext
8650             CFLAGS=$ac_save_CFLAGS
8651             if test "$ac_cv_prog_c_openmp" != unsupported; then
8652               break
8653             fi
8654           done
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657     conftest$ac_exeext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8660 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8661     case $ac_cv_prog_c_openmp in #(
8662       "none needed" | unsupported)
8663         ;; #(
8664       *)
8665         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8666     esac
8667   fi
8668
8669
8670 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8671 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8672
8673 if test "$enable_openmp" != no; then
8674   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8675     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8676   fi
8677 fi
8678
8679 # Enable support for OpenCL
8680
8681
8682
8683 ac_ext=c
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689 ax_pthread_ok=no
8690
8691 # We used to check for pthread.h first, but this fails if pthread.h
8692 # requires special compiler flags (e.g. on True64 or Sequent).
8693 # It gets checked for in the link test anyway.
8694
8695 # First of all, check if the user has set any of the PTHREAD_LIBS,
8696 # etcetera environment variables, and if threads linking works using
8697 # them:
8698 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8699         save_CFLAGS="$CFLAGS"
8700         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8701         save_LIBS="$LIBS"
8702         LIBS="$PTHREAD_LIBS $LIBS"
8703         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8704 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707
8708 /* Override any GCC internal prototype to avoid an error.
8709    Use char because int might match the return type of a GCC
8710    builtin and then its argument prototype would still apply.  */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 char pthread_join ();
8715 int
8716 main ()
8717 {
8718 return pthread_join ();
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724   ax_pthread_ok=yes
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727     conftest$ac_exeext conftest.$ac_ext
8728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8729 $as_echo "$ax_pthread_ok" >&6; }
8730         if test x"$ax_pthread_ok" = xno; then
8731                 PTHREAD_LIBS=""
8732                 PTHREAD_CFLAGS=""
8733         fi
8734         LIBS="$save_LIBS"
8735         CFLAGS="$save_CFLAGS"
8736 fi
8737
8738 # We must check for the threads library under a number of different
8739 # names; the ordering is very important because some systems
8740 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8741 # libraries is broken (non-POSIX).
8742
8743 # Create a list of thread flags to try.  Items starting with a "-" are
8744 # C compiler flags, and other items are library names, except for "none"
8745 # which indicates that we try without any flags at all, and "pthread-config"
8746 # which is a program returning the flags for the Pth emulation library.
8747
8748 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8749
8750 # The ordering *is* (sometimes) important.  Some notes on the
8751 # individual items follow:
8752
8753 # pthreads: AIX (must check this before -lpthread)
8754 # none: in case threads are in libc; should be tried before -Kthread and
8755 #       other compiler flags to prevent continual compiler warnings
8756 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8757 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8758 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8759 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8760 # -pthreads: Solaris/gcc
8761 # -mthreads: Mingw32/gcc, Lynx/gcc
8762 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8763 #      doesn't hurt to check since this sometimes defines pthreads too;
8764 #      also defines -D_REENTRANT)
8765 #      ... -mt is also the pthreads flag for HP/aCC
8766 # pthread: Linux, etcetera
8767 # --thread-safe: KAI C++
8768 # pthread-config: use pthread-config program (for GNU Pth library)
8769
8770 case "${host_cpu}-${host_os}" in
8771         *solaris*)
8772
8773         # On Solaris (at least, for some versions), libc contains stubbed
8774         # (non-functional) versions of the pthreads routines, so link-based
8775         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8776         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8777         # a function called by this macro, so we could check for that, but
8778         # who knows whether they'll stub that too in a future libc.)  So,
8779         # we'll just look for -pthreads and -lpthread first:
8780
8781         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8782         ;;
8783
8784         *-darwin*)
8785         ax_pthread_flags="-pthread $ax_pthread_flags"
8786         ;;
8787 esac
8788
8789 if test x"$ax_pthread_ok" = xno; then
8790 for flag in $ax_pthread_flags; do
8791
8792         case $flag in
8793                 none)
8794                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8795 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8796                 ;;
8797
8798                 -*)
8799                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8800 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8801                 PTHREAD_CFLAGS="$flag"
8802                 ;;
8803
8804                 pthread-config)
8805                 # Extract the first word of "pthread-config", so it can be a program name with args.
8806 set dummy pthread-config; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   if test -n "$ax_pthread_config"; then
8813   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818   IFS=$as_save_IFS
8819   test -z "$as_dir" && as_dir=.
8820     for ac_exec_ext in '' $ac_executable_extensions; do
8821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822     ac_cv_prog_ax_pthread_config="yes"
8823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824     break 2
8825   fi
8826 done
8827   done
8828 IFS=$as_save_IFS
8829
8830   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8831 fi
8832 fi
8833 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8834 if test -n "$ax_pthread_config"; then
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8836 $as_echo "$ax_pthread_config" >&6; }
8837 else
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842
8843                 if test x"$ax_pthread_config" = xno; then continue; fi
8844                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8845                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8846                 ;;
8847
8848                 *)
8849                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8850 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8851                 PTHREAD_LIBS="-l$flag"
8852                 ;;
8853         esac
8854
8855         save_LIBS="$LIBS"
8856         save_CFLAGS="$CFLAGS"
8857         LIBS="$PTHREAD_LIBS $LIBS"
8858         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8859
8860         # Check for various functions.  We must include pthread.h,
8861         # since some functions may be macros.  (On the Sequent, we
8862         # need a special flag -Kthread to make this header compile.)
8863         # We check for pthread_join because it is in -lpthread on IRIX
8864         # while pthread_create is in libc.  We check for pthread_attr_init
8865         # due to DEC craziness with -lpthreads.  We check for
8866         # pthread_cleanup_push because it is one of the few pthread
8867         # functions on Solaris that doesn't have a non-functional libc stub.
8868         # We try pthread_create on general principles.
8869         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h.  */
8871 #include <pthread.h>
8872                      static void routine(void* a) {a=0;}
8873                      static void* start_routine(void* a) {return a;}
8874 int
8875 main ()
8876 {
8877 pthread_t th; pthread_attr_t attr;
8878                      pthread_create(&th,0,start_routine,0);
8879                      pthread_join(th, 0);
8880                      pthread_attr_init(&attr);
8881                      pthread_cleanup_push(routine, 0);
8882                      pthread_cleanup_pop(0);
8883   ;
8884   return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888   ax_pthread_ok=yes
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891     conftest$ac_exeext conftest.$ac_ext
8892
8893         LIBS="$save_LIBS"
8894         CFLAGS="$save_CFLAGS"
8895
8896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8897 $as_echo "$ax_pthread_ok" >&6; }
8898         if test "x$ax_pthread_ok" = xyes; then
8899                 break;
8900         fi
8901
8902         PTHREAD_LIBS=""
8903         PTHREAD_CFLAGS=""
8904 done
8905 fi
8906
8907 # Various other checks:
8908 if test "x$ax_pthread_ok" = xyes; then
8909         save_LIBS="$LIBS"
8910         LIBS="$PTHREAD_LIBS $LIBS"
8911         save_CFLAGS="$CFLAGS"
8912         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8913
8914         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8916 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8917         attr_name=unknown
8918         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8919             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h.  */
8921 #include <pthread.h>
8922 int
8923 main ()
8924 {
8925 int attr=$attr; return attr;
8926   ;
8927   return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931   attr_name=$attr; break
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext \
8934     conftest$ac_exeext conftest.$ac_ext
8935         done
8936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8937 $as_echo "$attr_name" >&6; }
8938         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8939
8940 cat >>confdefs.h <<_ACEOF
8941 #define PTHREAD_CREATE_JOINABLE $attr_name
8942 _ACEOF
8943
8944         fi
8945
8946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8947 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8948         flag=no
8949         case "${host_cpu}-${host_os}" in
8950             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8951             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8952         esac
8953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8954 $as_echo "${flag}" >&6; }
8955         if test "x$flag" != xno; then
8956             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8957         fi
8958
8959         LIBS="$save_LIBS"
8960         CFLAGS="$save_CFLAGS"
8961
8962         # More AIX lossage: must compile with xlc_r or cc_r
8963         if test x"$GCC" != xyes; then
8964           for ac_prog in xlc_r cc_r
8965 do
8966   # Extract the first word of "$ac_prog", so it can be a program name with args.
8967 set dummy $ac_prog; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8971   $as_echo_n "(cached) " >&6
8972 else
8973   if test -n "$PTHREAD_CC"; then
8974   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8978 do
8979   IFS=$as_save_IFS
8980   test -z "$as_dir" && as_dir=.
8981     for ac_exec_ext in '' $ac_executable_extensions; do
8982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983     ac_cv_prog_PTHREAD_CC="$ac_prog"
8984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985     break 2
8986   fi
8987 done
8988   done
8989 IFS=$as_save_IFS
8990
8991 fi
8992 fi
8993 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8994 if test -n "$PTHREAD_CC"; then
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8996 $as_echo "$PTHREAD_CC" >&6; }
8997 else
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001
9002
9003   test -n "$PTHREAD_CC" && break
9004 done
9005 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9006
9007         else
9008           PTHREAD_CC=$CC
9009         fi
9010 else
9011         PTHREAD_CC="$CC"
9012 fi
9013
9014
9015
9016
9017
9018 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9019 if test x"$ax_pthread_ok" = xyes; then
9020
9021 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9022
9023         :
9024 else
9025         ax_pthread_ok=no
9026
9027 fi
9028 ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035
9036 # Check whether --enable-opencl was given.
9037 if test "${enable_opencl+set}" = set; then :
9038   enableval=$enable_opencl; disable_opencl=$enableval
9039 else
9040   disable_opencl='yes'
9041 fi
9042
9043
9044 if test "$disable_opencl" = 'yes'; then
9045   ac_ext=c
9046 ac_cpp='$CPP $CPPFLAGS'
9047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9050
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9052 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9053 if ${ax_cv_c_compiler_ms+:} false; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h.  */
9058
9059 int
9060 main ()
9061 {
9062 #ifndef _MSC_VER
9063        choke me
9064 #endif
9065
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_compile "$LINENO"; then :
9071   ax_compiler_ms=yes
9072 else
9073   ax_compiler_ms=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 ax_cv_c_compiler_ms=$ax_compiler_ms
9077
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9080 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9081   if test X$ax_compiler_ms = Xno; then :
9082   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9083 fi
9084
9085   ax_save_CPPFLAGS=$CPPFLAGS
9086   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9087   for ac_header in CL/cl.h OpenCL/cl.h
9088 do :
9089   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9092   cat >>confdefs.h <<_ACEOF
9093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094 _ACEOF
9095
9096 fi
9097
9098 done
9099
9100   CPPFLAGS=$ax_save_CPPFLAGS
9101
9102   for ac_header in windows.h
9103 do :
9104   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9105 if test "x$ac_cv_header_windows_h" = xyes; then :
9106   cat >>confdefs.h <<_ACEOF
9107 #define HAVE_WINDOWS_H 1
9108 _ACEOF
9109
9110 fi
9111
9112 done
9113
9114
9115
9116
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9118 $as_echo_n "checking for OpenCL library... " >&6; }
9119 if ${ax_cv_check_cl_libcl+:} false; then :
9120   $as_echo_n "(cached) " >&6
9121 else
9122   ax_cv_check_cl_libcl=no
9123   case $host_cpu in
9124     x86_64) ax_check_cl_libdir=lib64 ;;
9125     *)      ax_check_cl_libdir=lib ;;
9126   esac
9127   ax_save_CPPFLAGS=$CPPFLAGS
9128   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9129   ax_save_LIBS=$LIBS
9130   LIBS=""
9131   ax_check_libs="-lOpenCL -lCL -lclparser"
9132   for ax_lib in $ax_check_libs; do
9133     if test X$ax_compiler_ms = Xyes; then :
9134   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9135 else
9136   ax_try_lib=$ax_lib
9137 fi
9138     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h.  */
9141
9142   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9143   #   include <windows.h>
9144   # endif
9145   # ifdef HAVE_CL_CL_H
9146   #   include <CL/cl.h>
9147   # elif defined(HAVE_OPENCL_CL_H)
9148   #   include <OpenCL/cl.h>
9149   # else
9150   #   error no CL.h
9151   # endif
9152 int
9153 main ()
9154 {
9155 clCreateContextFromType(0,0,0,0,0)
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161   ax_cv_check_cl_libcl=$ax_try_lib; break
9162 else
9163   ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9164                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h.  */
9166
9167   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9168   #   include <windows.h>
9169   # endif
9170   # ifdef HAVE_CL_CL_H
9171   #   include <CL/cl.h>
9172   # elif defined(HAVE_OPENCL_CL_H)
9173   #   include <OpenCL/cl.h>
9174   # else
9175   #   error no CL.h
9176   # endif
9177 int
9178 main ()
9179 {
9180 clCreateContextFromType(0,0,0,0,0)
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9187 else
9188   ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9189                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h.  */
9191
9192   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9193   #   include <windows.h>
9194   # endif
9195   # ifdef HAVE_CL_CL_H
9196   #   include <CL/cl.h>
9197   # elif defined(HAVE_OPENCL_CL_H)
9198   #   include <OpenCL/cl.h>
9199   # else
9200   #   error no CL.h
9201   # endif
9202 int
9203 main ()
9204 {
9205 clCreateContextFromType(0,0,0,0,0)
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext \
9214     conftest$ac_exeext conftest.$ac_ext
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext \
9217     conftest$ac_exeext conftest.$ac_ext
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext \
9220     conftest$ac_exeext conftest.$ac_ext
9221   done
9222
9223   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9224   LIBS='-Wl,-framework,OpenCL'
9225         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h.  */
9227
9228   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9229   #   include <windows.h>
9230   # endif
9231   # ifdef HAVE_CL_CL_H
9232   #   include <CL/cl.h>
9233   # elif defined(HAVE_OPENCL_CL_H)
9234   #   include <OpenCL/cl.h>
9235   # else
9236   #   error no CL.h
9237   # endif
9238 int
9239 main ()
9240 {
9241 clCreateContextFromType(0,0,0,0,0)
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247   ax_cv_check_cl_libcl=$LIBS
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext \
9250     conftest$ac_exeext conftest.$ac_ext
9251 fi
9252
9253   LIBS=$ax_save_LIBS
9254   CPPFLAGS=$ax_save_CPPFLAGS
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9257 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9258
9259   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9260   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9261 else
9262   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9263 $as_echo "#define _OPENCL 1" >>confdefs.h
9264
9265 fi
9266   ac_ext=c
9267 ac_cpp='$CPP $CPPFLAGS'
9268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9271
9272 fi
9273
9274
9275
9276
9277 CFLAGS="$CL_CFLAGS $CFLAGS"
9278 LIBS="$CL_LIBS $LIBS"
9279
9280 if test "$enable_opencl" != no; then
9281   if test "_OPENCL" = '1'; then
9282     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9283   fi
9284 fi
9285
9286 ########
9287 #
9288 # Check for large file support
9289 #
9290 ########
9291 # Check whether --enable-largefile was given.
9292 if test "${enable_largefile+set}" = set; then :
9293   enableval=$enable_largefile;
9294 fi
9295
9296 if test "$enable_largefile" != no; then
9297
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9299 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9300 if ${ac_cv_sys_largefile_CC+:} false; then :
9301   $as_echo_n "(cached) " >&6
9302 else
9303   ac_cv_sys_largefile_CC=no
9304      if test "$GCC" != yes; then
9305        ac_save_CC=$CC
9306        while :; do
9307          # IRIX 6.2 and later do not support large files by default,
9308          # so use the C compiler's -n32 option if that helps.
9309          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h.  */
9311 #include <sys/types.h>
9312  /* Check that off_t can represent 2**63 - 1 correctly.
9313     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9314     since some C++ compilers masquerading as C compilers
9315     incorrectly reject 9223372036854775807.  */
9316 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9317   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9318                        && LARGE_OFF_T % 2147483647 == 1)
9319                       ? 1 : -1];
9320 int
9321 main ()
9322 {
9323
9324   ;
9325   return 0;
9326 }
9327 _ACEOF
9328          if ac_fn_c_try_compile "$LINENO"; then :
9329   break
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext
9332          CC="$CC -n32"
9333          if ac_fn_c_try_compile "$LINENO"; then :
9334   ac_cv_sys_largefile_CC=' -n32'; break
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext
9337          break
9338        done
9339        CC=$ac_save_CC
9340        rm -f conftest.$ac_ext
9341     fi
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9344 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9345   if test "$ac_cv_sys_largefile_CC" != no; then
9346     CC=$CC$ac_cv_sys_largefile_CC
9347   fi
9348
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9350 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9351 if ${ac_cv_sys_file_offset_bits+:} false; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354   while :; do
9355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h.  */
9357 #include <sys/types.h>
9358  /* Check that off_t can represent 2**63 - 1 correctly.
9359     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9360     since some C++ compilers masquerading as C compilers
9361     incorrectly reject 9223372036854775807.  */
9362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9363   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9364                        && LARGE_OFF_T % 2147483647 == 1)
9365                       ? 1 : -1];
9366 int
9367 main ()
9368 {
9369
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_compile "$LINENO"; then :
9375   ac_cv_sys_file_offset_bits=no; break
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380 #define _FILE_OFFSET_BITS 64
9381 #include <sys/types.h>
9382  /* Check that off_t can represent 2**63 - 1 correctly.
9383     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9384     since some C++ compilers masquerading as C compilers
9385     incorrectly reject 9223372036854775807.  */
9386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9387   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9388                        && LARGE_OFF_T % 2147483647 == 1)
9389                       ? 1 : -1];
9390 int
9391 main ()
9392 {
9393
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_compile "$LINENO"; then :
9399   ac_cv_sys_file_offset_bits=64; break
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402   ac_cv_sys_file_offset_bits=unknown
9403   break
9404 done
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9407 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9408 case $ac_cv_sys_file_offset_bits in #(
9409   no | unknown) ;;
9410   *)
9411 cat >>confdefs.h <<_ACEOF
9412 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9413 _ACEOF
9414 ;;
9415 esac
9416 rm -rf conftest*
9417   if test $ac_cv_sys_file_offset_bits = unknown; then
9418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9419 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9420 if ${ac_cv_sys_large_files+:} false; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423   while :; do
9424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h.  */
9426 #include <sys/types.h>
9427  /* Check that off_t can represent 2**63 - 1 correctly.
9428     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9429     since some C++ compilers masquerading as C compilers
9430     incorrectly reject 9223372036854775807.  */
9431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9432   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9433                        && LARGE_OFF_T % 2147483647 == 1)
9434                       ? 1 : -1];
9435 int
9436 main ()
9437 {
9438
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444   ac_cv_sys_large_files=no; break
9445 fi
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h.  */
9449 #define _LARGE_FILES 1
9450 #include <sys/types.h>
9451  /* Check that off_t can represent 2**63 - 1 correctly.
9452     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9453     since some C++ compilers masquerading as C compilers
9454     incorrectly reject 9223372036854775807.  */
9455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9456   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9457                        && LARGE_OFF_T % 2147483647 == 1)
9458                       ? 1 : -1];
9459 int
9460 main ()
9461 {
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_compile "$LINENO"; then :
9468   ac_cv_sys_large_files=1; break
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471   ac_cv_sys_large_files=unknown
9472   break
9473 done
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9476 $as_echo "$ac_cv_sys_large_files" >&6; }
9477 case $ac_cv_sys_large_files in #(
9478   no | unknown) ;;
9479   *)
9480 cat >>confdefs.h <<_ACEOF
9481 #define _LARGE_FILES $ac_cv_sys_large_files
9482 _ACEOF
9483 ;;
9484 esac
9485 rm -rf conftest*
9486   fi
9487 fi
9488
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9490 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9491 if ${ac_cv_sys_largefile_source+:} false; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   while :; do
9495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h.  */
9497 #include <sys/types.h> /* for off_t */
9498      #include <stdio.h>
9499 int
9500 main ()
9501 {
9502 int (*fp) (FILE *, off_t, int) = fseeko;
9503      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509   ac_cv_sys_largefile_source=no; break
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext \
9512     conftest$ac_exeext conftest.$ac_ext
9513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h.  */
9515 #define _LARGEFILE_SOURCE 1
9516 #include <sys/types.h> /* for off_t */
9517      #include <stdio.h>
9518 int
9519 main ()
9520 {
9521 int (*fp) (FILE *, off_t, int) = fseeko;
9522      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528   ac_cv_sys_largefile_source=1; break
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531     conftest$ac_exeext conftest.$ac_ext
9532   ac_cv_sys_largefile_source=unknown
9533   break
9534 done
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9537 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9538 case $ac_cv_sys_largefile_source in #(
9539   no | unknown) ;;
9540   *)
9541 cat >>confdefs.h <<_ACEOF
9542 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9543 _ACEOF
9544 ;;
9545 esac
9546 rm -rf conftest*
9547
9548 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9549 # in glibc 2.1.3, but that breaks too many other things.
9550 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9551 if test $ac_cv_sys_largefile_source != unknown; then
9552
9553 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9554
9555 fi
9556
9557 LFS_CPPFLAGS=''
9558 if test "$enable_largefile" != no; then
9559     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9560         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9561     else
9562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9563 $as_echo_n "checking for native large file support... " >&6; }
9564         if test "$cross_compiling" = yes; then :
9565   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9567 as_fn_error $? "cannot run test program while cross compiling
9568 See \`config.log' for more details" "$LINENO" 5; }
9569 else
9570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h.  */
9572 #include <unistd.h>
9573           main () {
9574           exit(!(sizeof(off_t) == 8));
9575         }
9576 int
9577 main ()
9578 {
9579
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_run "$LINENO"; then :
9585   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9586
9587          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9594   conftest.$ac_objext conftest.beam conftest.$ac_ext
9595 fi
9596
9597     fi
9598     if test "$ac_cv_sys_large_files" != 'no'; then
9599         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9600     fi
9601     if test "$ac_cv_sys_largefile_source" != 'no'; then
9602         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9603     fi
9604 fi
9605
9606
9607 #
9608 # Configure libtool & libltdl
9609 #
9610 # Configure libtool
9611 enable_dlopen=yes
9612
9613
9614
9615 case `pwd` in
9616   *\ * | *\     *)
9617     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9618 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9619 esac
9620
9621
9622
9623 macro_version='2.4'
9624 macro_revision='1.3293'
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638 ltmain="$ac_aux_dir/ltmain.sh"
9639
9640 # Backslashify metacharacters that are still active within
9641 # double-quoted strings.
9642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9643
9644 # Same as above, but do not quote variable references.
9645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9646
9647 # Sed substitution to delay expansion of an escaped shell variable in a
9648 # double_quote_subst'ed string.
9649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9650
9651 # Sed substitution to delay expansion of an escaped single quote.
9652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9653
9654 # Sed substitution to avoid accidental globbing in evaled expressions
9655 no_glob_subst='s/\*/\\\*/g'
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9658 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9659 if ${lt_cv_path_NM+:} false; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662   if test -n "$NM"; then
9663   # Let the user override the test.
9664   lt_cv_path_NM="$NM"
9665 else
9666   lt_nm_to_check="${ac_tool_prefix}nm"
9667   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9668     lt_nm_to_check="$lt_nm_to_check nm"
9669   fi
9670   for lt_tmp_nm in $lt_nm_to_check; do
9671     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9673       IFS="$lt_save_ifs"
9674       test -z "$ac_dir" && ac_dir=.
9675       tmp_nm="$ac_dir/$lt_tmp_nm"
9676       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9677         # Check to see if the nm accepts a BSD-compat flag.
9678         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9679         #   nm: unknown option "B" ignored
9680         # Tru64's nm complains that /dev/null is an invalid object file
9681         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9682         */dev/null* | *'Invalid file or object type'*)
9683           lt_cv_path_NM="$tmp_nm -B"
9684           break
9685           ;;
9686         *)
9687           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9688           */dev/null*)
9689             lt_cv_path_NM="$tmp_nm -p"
9690             break
9691             ;;
9692           *)
9693             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9694             continue # so that we can try to find one that supports BSD flags
9695             ;;
9696           esac
9697           ;;
9698         esac
9699       fi
9700     done
9701     IFS="$lt_save_ifs"
9702   done
9703   : ${lt_cv_path_NM=no}
9704 fi
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9707 $as_echo "$lt_cv_path_NM" >&6; }
9708 if test "$lt_cv_path_NM" != "no"; then
9709   NM="$lt_cv_path_NM"
9710 else
9711   # Didn't find any BSD compatible name lister, look for dumpbin.
9712   if test -n "$DUMPBIN"; then :
9713     # Let the user override the test.
9714   else
9715     if test -n "$ac_tool_prefix"; then
9716   for ac_prog in dumpbin "link -dump"
9717   do
9718     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_DUMPBIN+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   if test -n "$DUMPBIN"; then
9726   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731   IFS=$as_save_IFS
9732   test -z "$as_dir" && as_dir=.
9733     for ac_exec_ext in '' $ac_executable_extensions; do
9734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737     break 2
9738   fi
9739 done
9740   done
9741 IFS=$as_save_IFS
9742
9743 fi
9744 fi
9745 DUMPBIN=$ac_cv_prog_DUMPBIN
9746 if test -n "$DUMPBIN"; then
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9748 $as_echo "$DUMPBIN" >&6; }
9749 else
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9752 fi
9753
9754
9755     test -n "$DUMPBIN" && break
9756   done
9757 fi
9758 if test -z "$DUMPBIN"; then
9759   ac_ct_DUMPBIN=$DUMPBIN
9760   for ac_prog in dumpbin "link -dump"
9761 do
9762   # Extract the first word of "$ac_prog", so it can be a program name with args.
9763 set dummy $ac_prog; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   if test -n "$ac_ct_DUMPBIN"; then
9770   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777     for ac_exec_ext in '' $ac_executable_extensions; do
9778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781     break 2
9782   fi
9783 done
9784   done
9785 IFS=$as_save_IFS
9786
9787 fi
9788 fi
9789 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9790 if test -n "$ac_ct_DUMPBIN"; then
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9792 $as_echo "$ac_ct_DUMPBIN" >&6; }
9793 else
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9796 fi
9797
9798
9799   test -n "$ac_ct_DUMPBIN" && break
9800 done
9801
9802   if test "x$ac_ct_DUMPBIN" = x; then
9803     DUMPBIN=":"
9804   else
9805     case $cross_compiling:$ac_tool_warned in
9806 yes:)
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9809 ac_tool_warned=yes ;;
9810 esac
9811     DUMPBIN=$ac_ct_DUMPBIN
9812   fi
9813 fi
9814
9815     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9816     *COFF*)
9817       DUMPBIN="$DUMPBIN -symbols"
9818       ;;
9819     *)
9820       DUMPBIN=:
9821       ;;
9822     esac
9823   fi
9824
9825   if test "$DUMPBIN" != ":"; then
9826     NM="$DUMPBIN"
9827   fi
9828 fi
9829 test -z "$NM" && NM=nm
9830
9831
9832
9833
9834
9835
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9838 if ${lt_cv_nm_interface+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   lt_cv_nm_interface="BSD nm"
9842   echo "int some_variable = 0;" > conftest.$ac_ext
9843   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9844   (eval "$ac_compile" 2>conftest.err)
9845   cat conftest.err >&5
9846   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9847   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9848   cat conftest.err >&5
9849   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9850   cat conftest.out >&5
9851   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9852     lt_cv_nm_interface="MS dumpbin"
9853   fi
9854   rm -f conftest*
9855 fi
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9857 $as_echo "$lt_cv_nm_interface" >&6; }
9858
9859 # find the maximum length of command line arguments
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9862 if ${lt_cv_sys_max_cmd_len+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865     i=0
9866   teststring="ABCD"
9867
9868   case $build_os in
9869   msdosdjgpp*)
9870     # On DJGPP, this test can blow up pretty badly due to problems in libc
9871     # (any single argument exceeding 2000 bytes causes a buffer overrun
9872     # during glob expansion).  Even if it were fixed, the result of this
9873     # check would be larger than it should be.
9874     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9875     ;;
9876
9877   gnu*)
9878     # Under GNU Hurd, this test is not required because there is
9879     # no limit to the length of command line arguments.
9880     # Libtool will interpret -1 as no limit whatsoever
9881     lt_cv_sys_max_cmd_len=-1;
9882     ;;
9883
9884   cygwin* | mingw* | cegcc*)
9885     # On Win9x/ME, this test blows up -- it succeeds, but takes
9886     # about 5 minutes as the teststring grows exponentially.
9887     # Worse, since 9x/ME are not pre-emptively multitasking,
9888     # you end up with a "frozen" computer, even though with patience
9889     # the test eventually succeeds (with a max line length of 256k).
9890     # Instead, let's just punt: use the minimum linelength reported by
9891     # all of the supported platforms: 8192 (on NT/2K/XP).
9892     lt_cv_sys_max_cmd_len=8192;
9893     ;;
9894
9895   mint*)
9896     # On MiNT this can take a long time and run out of memory.
9897     lt_cv_sys_max_cmd_len=8192;
9898     ;;
9899
9900   amigaos*)
9901     # On AmigaOS with pdksh, this test takes hours, literally.
9902     # So we just punt and use a minimum line length of 8192.
9903     lt_cv_sys_max_cmd_len=8192;
9904     ;;
9905
9906   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9907     # This has been around since 386BSD, at least.  Likely further.
9908     if test -x /sbin/sysctl; then
9909       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9910     elif test -x /usr/sbin/sysctl; then
9911       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9912     else
9913       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9914     fi
9915     # And add a safety zone
9916     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9917     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9918     ;;
9919
9920   interix*)
9921     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9922     lt_cv_sys_max_cmd_len=196608
9923     ;;
9924
9925   osf*)
9926     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9927     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9928     # nice to cause kernel panics so lets avoid the loop below.
9929     # First set a reasonable default.
9930     lt_cv_sys_max_cmd_len=16384
9931     #
9932     if test -x /sbin/sysconfig; then
9933       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9934         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9935       esac
9936     fi
9937     ;;
9938   sco3.2v5*)
9939     lt_cv_sys_max_cmd_len=102400
9940     ;;
9941   sysv5* | sco5v6* | sysv4.2uw2*)
9942     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9943     if test -n "$kargmax"; then
9944       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9945     else
9946       lt_cv_sys_max_cmd_len=32768
9947     fi
9948     ;;
9949   *)
9950     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9951     if test -n "$lt_cv_sys_max_cmd_len"; then
9952       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9953       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9954     else
9955       # Make teststring a little bigger before we do anything with it.
9956       # a 1K string should be a reasonable start.
9957       for i in 1 2 3 4 5 6 7 8 ; do
9958         teststring=$teststring$teststring
9959       done
9960       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9961       # If test is not a shell built-in, we'll probably end up computing a
9962       # maximum length that is only half of the actual maximum length, but
9963       # we can't tell.
9964       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9965                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9966               test $i != 17 # 1/2 MB should be enough
9967       do
9968         i=`expr $i + 1`
9969         teststring=$teststring$teststring
9970       done
9971       # Only check the string length outside the loop.
9972       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9973       teststring=
9974       # Add a significant safety factor because C++ compilers can tack on
9975       # massive amounts of additional arguments before passing them to the
9976       # linker.  It appears as though 1/2 is a usable value.
9977       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9978     fi
9979     ;;
9980   esac
9981
9982 fi
9983
9984 if test -n $lt_cv_sys_max_cmd_len ; then
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9986 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9987 else
9988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9989 $as_echo "none" >&6; }
9990 fi
9991 max_cmd_len=$lt_cv_sys_max_cmd_len
9992
9993
9994
9995
9996
9997
9998 : ${CP="cp -f"}
9999 : ${MV="mv -f"}
10000 : ${RM="rm -f"}
10001
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10003 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10004 # Try some XSI features
10005 xsi_shell=no
10006 ( _lt_dummy="a/b/c"
10007   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10008       = c,a/b,b/c, \
10009     && eval 'test $(( 1 + 1 )) -eq 2 \
10010     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10011   && xsi_shell=yes
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10013 $as_echo "$xsi_shell" >&6; }
10014
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10017 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10018 lt_shell_append=no
10019 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10020     >/dev/null 2>&1 \
10021   && lt_shell_append=yes
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10023 $as_echo "$lt_shell_append" >&6; }
10024
10025
10026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10027   lt_unset=unset
10028 else
10029   lt_unset=false
10030 fi
10031
10032
10033
10034
10035
10036 # test EBCDIC or ASCII
10037 case `echo X|tr X '\101'` in
10038  A) # ASCII based system
10039     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10040   lt_SP2NL='tr \040 \012'
10041   lt_NL2SP='tr \015\012 \040\040'
10042   ;;
10043  *) # EBCDIC based system
10044   lt_SP2NL='tr \100 \n'
10045   lt_NL2SP='tr \r\n \100\100'
10046   ;;
10047 esac
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10058 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10059 if ${lt_cv_to_host_file_cmd+:} false; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062   case $host in
10063   *-*-mingw* )
10064     case $build in
10065       *-*-mingw* ) # actually msys
10066         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10067         ;;
10068       *-*-cygwin* )
10069         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10070         ;;
10071       * ) # otherwise, assume *nix
10072         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10073         ;;
10074     esac
10075     ;;
10076   *-*-cygwin* )
10077     case $build in
10078       *-*-mingw* ) # actually msys
10079         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10080         ;;
10081       *-*-cygwin* )
10082         lt_cv_to_host_file_cmd=func_convert_file_noop
10083         ;;
10084       * ) # otherwise, assume *nix
10085         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10086         ;;
10087     esac
10088     ;;
10089   * ) # unhandled hosts (and "normal" native builds)
10090     lt_cv_to_host_file_cmd=func_convert_file_noop
10091     ;;
10092 esac
10093
10094 fi
10095
10096 to_host_file_cmd=$lt_cv_to_host_file_cmd
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10098 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10099
10100
10101
10102
10103
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10105 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10106 if ${lt_cv_to_tool_file_cmd+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   #assume ordinary cross tools, or native build.
10110 lt_cv_to_tool_file_cmd=func_convert_file_noop
10111 case $host in
10112   *-*-mingw* )
10113     case $build in
10114       *-*-mingw* ) # actually msys
10115         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10116         ;;
10117     esac
10118     ;;
10119 esac
10120
10121 fi
10122
10123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10125 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10126
10127
10128
10129
10130
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10132 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10133 if ${lt_cv_ld_reload_flag+:} false; then :
10134   $as_echo_n "(cached) " >&6
10135 else
10136   lt_cv_ld_reload_flag='-r'
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10139 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10140 reload_flag=$lt_cv_ld_reload_flag
10141 case $reload_flag in
10142 "" | " "*) ;;
10143 *) reload_flag=" $reload_flag" ;;
10144 esac
10145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10146 case $host_os in
10147   cygwin* | mingw* | pw32* | cegcc*)
10148     if test "$GCC" != yes; then
10149       reload_cmds=false
10150     fi
10151     ;;
10152   darwin*)
10153     if test "$GCC" = yes; then
10154       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10155     else
10156       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10157     fi
10158     ;;
10159 esac
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 if test -n "$ac_tool_prefix"; then
10170   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_OBJDUMP+:} false; then :
10175   $as_echo_n "(cached) " >&6
10176 else
10177   if test -n "$OBJDUMP"; then
10178   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194
10195 fi
10196 fi
10197 OBJDUMP=$ac_cv_prog_OBJDUMP
10198 if test -n "$OBJDUMP"; then
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10200 $as_echo "$OBJDUMP" >&6; }
10201 else
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204 fi
10205
10206
10207 fi
10208 if test -z "$ac_cv_prog_OBJDUMP"; then
10209   ac_ct_OBJDUMP=$OBJDUMP
10210   # Extract the first word of "objdump", so it can be a program name with args.
10211 set dummy objdump; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   if test -n "$ac_ct_OBJDUMP"; then
10218   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223   IFS=$as_save_IFS
10224   test -z "$as_dir" && as_dir=.
10225     for ac_exec_ext in '' $ac_executable_extensions; do
10226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229     break 2
10230   fi
10231 done
10232   done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10238 if test -n "$ac_ct_OBJDUMP"; then
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10240 $as_echo "$ac_ct_OBJDUMP" >&6; }
10241 else
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246   if test "x$ac_ct_OBJDUMP" = x; then
10247     OBJDUMP="false"
10248   else
10249     case $cross_compiling:$ac_tool_warned in
10250 yes:)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10254 esac
10255     OBJDUMP=$ac_ct_OBJDUMP
10256   fi
10257 else
10258   OBJDUMP="$ac_cv_prog_OBJDUMP"
10259 fi
10260
10261 test -z "$OBJDUMP" && OBJDUMP=objdump
10262
10263
10264
10265
10266
10267
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10270 if ${lt_cv_deplibs_check_method+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   lt_cv_file_magic_cmd='$MAGIC_CMD'
10274 lt_cv_file_magic_test_file=
10275 lt_cv_deplibs_check_method='unknown'
10276 # Need to set the preceding variable on all platforms that support
10277 # interlibrary dependencies.
10278 # 'none' -- dependencies not supported.
10279 # `unknown' -- same as none, but documents that we really don't know.
10280 # 'pass_all' -- all dependencies passed with no checks.
10281 # 'test_compile' -- check by making test program.
10282 # 'file_magic [[regex]]' -- check by looking for files in library path
10283 # which responds to the $file_magic_cmd with a given extended regex.
10284 # If you have `file' or equivalent on your system and you're not sure
10285 # whether `pass_all' will *always* work, you probably want this one.
10286
10287 case $host_os in
10288 aix[4-9]*)
10289   lt_cv_deplibs_check_method=pass_all
10290   ;;
10291
10292 beos*)
10293   lt_cv_deplibs_check_method=pass_all
10294   ;;
10295
10296 bsdi[45]*)
10297   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10298   lt_cv_file_magic_cmd='/usr/bin/file -L'
10299   lt_cv_file_magic_test_file=/shlib/libc.so
10300   ;;
10301
10302 cygwin*)
10303   # func_win32_libid is a shell function defined in ltmain.sh
10304   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10305   lt_cv_file_magic_cmd='func_win32_libid'
10306   ;;
10307
10308 mingw* | pw32*)
10309   # Base MSYS/MinGW do not provide the 'file' command needed by
10310   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10311   # unless we find 'file', for example because we are cross-compiling.
10312   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10313   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10314     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10315     lt_cv_file_magic_cmd='func_win32_libid'
10316   else
10317     # Keep this pattern in sync with the one in func_win32_libid.
10318     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10319     lt_cv_file_magic_cmd='$OBJDUMP -f'
10320   fi
10321   ;;
10322
10323 cegcc*)
10324   # use the weaker test based on 'objdump'. See mingw*.
10325   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10326   lt_cv_file_magic_cmd='$OBJDUMP -f'
10327   ;;
10328
10329 darwin* | rhapsody*)
10330   lt_cv_deplibs_check_method=pass_all
10331   ;;
10332
10333 freebsd* | dragonfly*)
10334   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10335     case $host_cpu in
10336     i*86 )
10337       # Not sure whether the presence of OpenBSD here was a mistake.
10338       # Let's accept both of them until this is cleared up.
10339       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10340       lt_cv_file_magic_cmd=/usr/bin/file
10341       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10342       ;;
10343     esac
10344   else
10345     lt_cv_deplibs_check_method=pass_all
10346   fi
10347   ;;
10348
10349 gnu*)
10350   lt_cv_deplibs_check_method=pass_all
10351   ;;
10352
10353 haiku*)
10354   lt_cv_deplibs_check_method=pass_all
10355   ;;
10356
10357 hpux10.20* | hpux11*)
10358   lt_cv_file_magic_cmd=/usr/bin/file
10359   case $host_cpu in
10360   ia64*)
10361     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10362     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10363     ;;
10364   hppa*64*)
10365     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
10366     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10367     ;;
10368   *)
10369     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10370     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10371     ;;
10372   esac
10373   ;;
10374
10375 interix[3-9]*)
10376   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10377   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10378   ;;
10379
10380 irix5* | irix6* | nonstopux*)
10381   case $LD in
10382   *-32|*"-32 ") libmagic=32-bit;;
10383   *-n32|*"-n32 ") libmagic=N32;;
10384   *-64|*"-64 ") libmagic=64-bit;;
10385   *) libmagic=never-match;;
10386   esac
10387   lt_cv_deplibs_check_method=pass_all
10388   ;;
10389
10390 # This must be Linux ELF.
10391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10392   lt_cv_deplibs_check_method=pass_all
10393   ;;
10394
10395 netbsd*)
10396   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10397     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10398   else
10399     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10400   fi
10401   ;;
10402
10403 newos6*)
10404   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10405   lt_cv_file_magic_cmd=/usr/bin/file
10406   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10407   ;;
10408
10409 *nto* | *qnx*)
10410   lt_cv_deplibs_check_method=pass_all
10411   ;;
10412
10413 openbsd*)
10414   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10415     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10416   else
10417     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10418   fi
10419   ;;
10420
10421 osf3* | osf4* | osf5*)
10422   lt_cv_deplibs_check_method=pass_all
10423   ;;
10424
10425 rdos*)
10426   lt_cv_deplibs_check_method=pass_all
10427   ;;
10428
10429 solaris*)
10430   lt_cv_deplibs_check_method=pass_all
10431   ;;
10432
10433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10434   lt_cv_deplibs_check_method=pass_all
10435   ;;
10436
10437 sysv4 | sysv4.3*)
10438   case $host_vendor in
10439   motorola)
10440     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]'
10441     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10442     ;;
10443   ncr)
10444     lt_cv_deplibs_check_method=pass_all
10445     ;;
10446   sequent)
10447     lt_cv_file_magic_cmd='/bin/file'
10448     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10449     ;;
10450   sni)
10451     lt_cv_file_magic_cmd='/bin/file'
10452     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10453     lt_cv_file_magic_test_file=/lib/libc.so
10454     ;;
10455   siemens)
10456     lt_cv_deplibs_check_method=pass_all
10457     ;;
10458   pc)
10459     lt_cv_deplibs_check_method=pass_all
10460     ;;
10461   esac
10462   ;;
10463
10464 tpf*)
10465   lt_cv_deplibs_check_method=pass_all
10466   ;;
10467 esac
10468
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10472
10473 file_magic_glob=
10474 want_nocaseglob=no
10475 if test "$build" = "$host"; then
10476   case $host_os in
10477   mingw* | pw32*)
10478     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10479       want_nocaseglob=yes
10480     else
10481       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10482     fi
10483     ;;
10484   esac
10485 fi
10486
10487 file_magic_cmd=$lt_cv_file_magic_cmd
10488 deplibs_check_method=$lt_cv_deplibs_check_method
10489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512 if test -n "$ac_tool_prefix"; then
10513   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if ${ac_cv_prog_DLLTOOL+:} false; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   if test -n "$DLLTOOL"; then
10521   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10522 else
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10525 do
10526   IFS=$as_save_IFS
10527   test -z "$as_dir" && as_dir=.
10528     for ac_exec_ext in '' $ac_executable_extensions; do
10529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532     break 2
10533   fi
10534 done
10535   done
10536 IFS=$as_save_IFS
10537
10538 fi
10539 fi
10540 DLLTOOL=$ac_cv_prog_DLLTOOL
10541 if test -n "$DLLTOOL"; then
10542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10543 $as_echo "$DLLTOOL" >&6; }
10544 else
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10547 fi
10548
10549
10550 fi
10551 if test -z "$ac_cv_prog_DLLTOOL"; then
10552   ac_ct_DLLTOOL=$DLLTOOL
10553   # Extract the first word of "dlltool", so it can be a program name with args.
10554 set dummy dlltool; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10558   $as_echo_n "(cached) " >&6
10559 else
10560   if test -n "$ac_ct_DLLTOOL"; then
10561   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566   IFS=$as_save_IFS
10567   test -z "$as_dir" && as_dir=.
10568     for ac_exec_ext in '' $ac_executable_extensions; do
10569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572     break 2
10573   fi
10574 done
10575   done
10576 IFS=$as_save_IFS
10577
10578 fi
10579 fi
10580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10581 if test -n "$ac_ct_DLLTOOL"; then
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10583 $as_echo "$ac_ct_DLLTOOL" >&6; }
10584 else
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589   if test "x$ac_ct_DLLTOOL" = x; then
10590     DLLTOOL="false"
10591   else
10592     case $cross_compiling:$ac_tool_warned in
10593 yes:)
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10596 ac_tool_warned=yes ;;
10597 esac
10598     DLLTOOL=$ac_ct_DLLTOOL
10599   fi
10600 else
10601   DLLTOOL="$ac_cv_prog_DLLTOOL"
10602 fi
10603
10604 test -z "$DLLTOOL" && DLLTOOL=dlltool
10605
10606
10607
10608
10609
10610
10611
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   lt_cv_sharedlib_from_linklib_cmd='unknown'
10618
10619 case $host_os in
10620 cygwin* | mingw* | pw32* | cegcc*)
10621   # two different shell functions defined in ltmain.sh
10622   # decide which to use based on capabilities of $DLLTOOL
10623   case `$DLLTOOL --help 2>&1` in
10624   *--identify-strict*)
10625     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10626     ;;
10627   *)
10628     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10629     ;;
10630   esac
10631   ;;
10632 *)
10633   # fallback: assume linklib IS sharedlib
10634   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10635   ;;
10636 esac
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10643
10644
10645
10646
10647
10648
10649
10650 if test -n "$ac_tool_prefix"; then
10651   for ac_prog in ar
10652   do
10653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_prog_AR+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   if test -n "$AR"; then
10661   ac_cv_prog_AR="$AR" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666   IFS=$as_save_IFS
10667   test -z "$as_dir" && as_dir=.
10668     for ac_exec_ext in '' $ac_executable_extensions; do
10669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672     break 2
10673   fi
10674 done
10675   done
10676 IFS=$as_save_IFS
10677
10678 fi
10679 fi
10680 AR=$ac_cv_prog_AR
10681 if test -n "$AR"; then
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10683 $as_echo "$AR" >&6; }
10684 else
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688
10689
10690     test -n "$AR" && break
10691   done
10692 fi
10693 if test -z "$AR"; then
10694   ac_ct_AR=$AR
10695   for ac_prog in ar
10696 do
10697   # Extract the first word of "$ac_prog", so it can be a program name with args.
10698 set dummy $ac_prog; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   if test -n "$ac_ct_AR"; then
10705   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710   IFS=$as_save_IFS
10711   test -z "$as_dir" && as_dir=.
10712     for ac_exec_ext in '' $ac_executable_extensions; do
10713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714     ac_cv_prog_ac_ct_AR="$ac_prog"
10715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716     break 2
10717   fi
10718 done
10719   done
10720 IFS=$as_save_IFS
10721
10722 fi
10723 fi
10724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10725 if test -n "$ac_ct_AR"; then
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10727 $as_echo "$ac_ct_AR" >&6; }
10728 else
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10732
10733
10734   test -n "$ac_ct_AR" && break
10735 done
10736
10737   if test "x$ac_ct_AR" = x; then
10738     AR="false"
10739   else
10740     case $cross_compiling:$ac_tool_warned in
10741 yes:)
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10745 esac
10746     AR=$ac_ct_AR
10747   fi
10748 fi
10749
10750 : ${AR=ar}
10751 : ${AR_FLAGS=cru}
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10764 $as_echo_n "checking for archiver @FILE support... " >&6; }
10765 if ${lt_cv_ar_at_file+:} false; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   lt_cv_ar_at_file=no
10769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 int
10773 main ()
10774 {
10775
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781   echo conftest.$ac_objext > conftest.lst
10782       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10783       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10784   (eval $lt_ar_try) 2>&5
10785   ac_status=$?
10786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787   test $ac_status = 0; }
10788       if test "$ac_status" -eq 0; then
10789         # Ensure the archiver fails upon bogus file names.
10790         rm -f conftest.$ac_objext libconftest.a
10791         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10792   (eval $lt_ar_try) 2>&5
10793   ac_status=$?
10794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795   test $ac_status = 0; }
10796         if test "$ac_status" -ne 0; then
10797           lt_cv_ar_at_file=@
10798         fi
10799       fi
10800       rm -f conftest.* libconftest.a
10801
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804
10805 fi
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10807 $as_echo "$lt_cv_ar_at_file" >&6; }
10808
10809 if test "x$lt_cv_ar_at_file" = xno; then
10810   archiver_list_spec=
10811 else
10812   archiver_list_spec=$lt_cv_ar_at_file
10813 fi
10814
10815
10816
10817
10818
10819
10820
10821 if test -n "$ac_tool_prefix"; then
10822   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10823 set dummy ${ac_tool_prefix}strip; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if ${ac_cv_prog_STRIP+:} false; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   if test -n "$STRIP"; then
10830   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10831 else
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10834 do
10835   IFS=$as_save_IFS
10836   test -z "$as_dir" && as_dir=.
10837     for ac_exec_ext in '' $ac_executable_extensions; do
10838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841     break 2
10842   fi
10843 done
10844   done
10845 IFS=$as_save_IFS
10846
10847 fi
10848 fi
10849 STRIP=$ac_cv_prog_STRIP
10850 if test -n "$STRIP"; then
10851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10852 $as_echo "$STRIP" >&6; }
10853 else
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10856 fi
10857
10858
10859 fi
10860 if test -z "$ac_cv_prog_STRIP"; then
10861   ac_ct_STRIP=$STRIP
10862   # Extract the first word of "strip", so it can be a program name with args.
10863 set dummy strip; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   if test -n "$ac_ct_STRIP"; then
10870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875   IFS=$as_save_IFS
10876   test -z "$as_dir" && as_dir=.
10877     for ac_exec_ext in '' $ac_executable_extensions; do
10878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879     ac_cv_prog_ac_ct_STRIP="strip"
10880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881     break 2
10882   fi
10883 done
10884   done
10885 IFS=$as_save_IFS
10886
10887 fi
10888 fi
10889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10890 if test -n "$ac_ct_STRIP"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10892 $as_echo "$ac_ct_STRIP" >&6; }
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898   if test "x$ac_ct_STRIP" = x; then
10899     STRIP=":"
10900   else
10901     case $cross_compiling:$ac_tool_warned in
10902 yes:)
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10905 ac_tool_warned=yes ;;
10906 esac
10907     STRIP=$ac_ct_STRIP
10908   fi
10909 else
10910   STRIP="$ac_cv_prog_STRIP"
10911 fi
10912
10913 test -z "$STRIP" && STRIP=:
10914
10915
10916
10917
10918
10919
10920 if test -n "$ac_tool_prefix"; then
10921   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if ${ac_cv_prog_RANLIB+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   if test -n "$RANLIB"; then
10929   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10933 do
10934   IFS=$as_save_IFS
10935   test -z "$as_dir" && as_dir=.
10936     for ac_exec_ext in '' $ac_executable_extensions; do
10937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940     break 2
10941   fi
10942 done
10943   done
10944 IFS=$as_save_IFS
10945
10946 fi
10947 fi
10948 RANLIB=$ac_cv_prog_RANLIB
10949 if test -n "$RANLIB"; then
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10951 $as_echo "$RANLIB" >&6; }
10952 else
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10955 fi
10956
10957
10958 fi
10959 if test -z "$ac_cv_prog_RANLIB"; then
10960   ac_ct_RANLIB=$RANLIB
10961   # Extract the first word of "ranlib", so it can be a program name with args.
10962 set dummy ranlib; ac_word=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10966   $as_echo_n "(cached) " >&6
10967 else
10968   if test -n "$ac_ct_RANLIB"; then
10969   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976     for ac_exec_ext in '' $ac_executable_extensions; do
10977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978     ac_cv_prog_ac_ct_RANLIB="ranlib"
10979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983   done
10984 IFS=$as_save_IFS
10985
10986 fi
10987 fi
10988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10989 if test -n "$ac_ct_RANLIB"; then
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10991 $as_echo "$ac_ct_RANLIB" >&6; }
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996
10997   if test "x$ac_ct_RANLIB" = x; then
10998     RANLIB=":"
10999   else
11000     case $cross_compiling:$ac_tool_warned in
11001 yes:)
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11004 ac_tool_warned=yes ;;
11005 esac
11006     RANLIB=$ac_ct_RANLIB
11007   fi
11008 else
11009   RANLIB="$ac_cv_prog_RANLIB"
11010 fi
11011
11012 test -z "$RANLIB" && RANLIB=:
11013
11014
11015
11016
11017
11018
11019 # Determine commands to create old-style static archives.
11020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11021 old_postinstall_cmds='chmod 644 $oldlib'
11022 old_postuninstall_cmds=
11023
11024 if test -n "$RANLIB"; then
11025   case $host_os in
11026   openbsd*)
11027     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11028     ;;
11029   *)
11030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11031     ;;
11032   esac
11033   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11034 fi
11035
11036 case $host_os in
11037   darwin*)
11038     lock_old_archive_extraction=yes ;;
11039   *)
11040     lock_old_archive_extraction=no ;;
11041 esac
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 # If no C compiler was specified, use CC.
11082 LTCC=${LTCC-"$CC"}
11083
11084 # If no C compiler flags were specified, use CFLAGS.
11085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11086
11087 # Allow CC to be a program name with arguments.
11088 compiler=$CC
11089
11090
11091 # Check for command to grab the raw symbol name followed by C symbol from nm.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097
11098 # These are sane defaults that work on at least a few old systems.
11099 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11100
11101 # Character class describing NM global symbol codes.
11102 symcode='[BCDEGRST]'
11103
11104 # Regexp to match symbols that can be accessed directly from C.
11105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11106
11107 # Define system-specific variables.
11108 case $host_os in
11109 aix*)
11110   symcode='[BCDT]'
11111   ;;
11112 cygwin* | mingw* | pw32* | cegcc*)
11113   symcode='[ABCDGISTW]'
11114   ;;
11115 hpux*)
11116   if test "$host_cpu" = ia64; then
11117     symcode='[ABCDEGRST]'
11118   fi
11119   ;;
11120 irix* | nonstopux*)
11121   symcode='[BCDEGRST]'
11122   ;;
11123 osf*)
11124   symcode='[BCDEGQRST]'
11125   ;;
11126 solaris*)
11127   symcode='[BDRT]'
11128   ;;
11129 sco3.2v5*)
11130   symcode='[DT]'
11131   ;;
11132 sysv4.2uw2*)
11133   symcode='[DT]'
11134   ;;
11135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11136   symcode='[ABDT]'
11137   ;;
11138 sysv4)
11139   symcode='[DFNSTU]'
11140   ;;
11141 esac
11142
11143 # If we're using GNU nm, then use its standard symbol codes.
11144 case `$NM -V 2>&1` in
11145 *GNU* | *'with BFD'*)
11146   symcode='[ABCDGIRSTW]' ;;
11147 esac
11148
11149 # Transform an extracted symbol line into a proper C declaration.
11150 # Some systems (esp. on ia64) link data and code symbols differently,
11151 # so use this general approach.
11152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11153
11154 # Transform an extracted symbol line into symbol name and symbol address
11155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11156 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'"
11157
11158 # Handle CRLF in mingw tool chain
11159 opt_cr=
11160 case $build_os in
11161 mingw*)
11162   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11163   ;;
11164 esac
11165
11166 # Try without a prefix underscore, then with it.
11167 for ac_symprfx in "" "_"; do
11168
11169   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11170   symxfrm="\\1 $ac_symprfx\\2 \\2"
11171
11172   # Write the raw and C identifiers.
11173   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11174     # Fake it for dumpbin and say T for any non-static function
11175     # and D for any global variable.
11176     # Also find C++ and __fastcall symbols from MSVC++,
11177     # which start with @ or ?.
11178     lt_cv_sys_global_symbol_pipe="$AWK '"\
11179 "     {last_section=section; section=\$ 3};"\
11180 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11181 "     \$ 0!~/External *\|/{next};"\
11182 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11183 "     {if(hide[section]) next};"\
11184 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11185 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11186 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11187 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11188 "     ' prfx=^$ac_symprfx"
11189   else
11190     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11191   fi
11192   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11193
11194   # Check to see that the pipe works correctly.
11195   pipe_works=no
11196
11197   rm -f conftest*
11198   cat > conftest.$ac_ext <<_LT_EOF
11199 #ifdef __cplusplus
11200 extern "C" {
11201 #endif
11202 char nm_test_var;
11203 void nm_test_func(void);
11204 void nm_test_func(void){}
11205 #ifdef __cplusplus
11206 }
11207 #endif
11208 int main(){nm_test_var='a';nm_test_func();return(0);}
11209 _LT_EOF
11210
11211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11212   (eval $ac_compile) 2>&5
11213   ac_status=$?
11214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215   test $ac_status = 0; }; then
11216     # Now try to grab the symbols.
11217     nlist=conftest.nm
11218     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11219   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11220   ac_status=$?
11221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222   test $ac_status = 0; } && test -s "$nlist"; then
11223       # Try sorting and uniquifying the output.
11224       if sort "$nlist" | uniq > "$nlist"T; then
11225         mv -f "$nlist"T "$nlist"
11226       else
11227         rm -f "$nlist"T
11228       fi
11229
11230       # Make sure that we snagged all the symbols we need.
11231       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11232         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11233           cat <<_LT_EOF > conftest.$ac_ext
11234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11237    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11238 # define LT_DLSYM_CONST
11239 #elif defined(__osf__)
11240 /* This system does not cope well with relocations in const data.  */
11241 # define LT_DLSYM_CONST
11242 #else
11243 # define LT_DLSYM_CONST const
11244 #endif
11245
11246 #ifdef __cplusplus
11247 extern "C" {
11248 #endif
11249
11250 _LT_EOF
11251           # Now generate the symbol file.
11252           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11253
11254           cat <<_LT_EOF >> conftest.$ac_ext
11255
11256 /* The mapping between symbol names and symbols.  */
11257 LT_DLSYM_CONST struct {
11258   const char *name;
11259   void       *address;
11260 }
11261 lt__PROGRAM__LTX_preloaded_symbols[] =
11262 {
11263   { "@PROGRAM@", (void *) 0 },
11264 _LT_EOF
11265           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11266           cat <<\_LT_EOF >> conftest.$ac_ext
11267   {0, (void *) 0}
11268 };
11269
11270 /* This works around a problem in FreeBSD linker */
11271 #ifdef FREEBSD_WORKAROUND
11272 static const void *lt_preloaded_setup() {
11273   return lt__PROGRAM__LTX_preloaded_symbols;
11274 }
11275 #endif
11276
11277 #ifdef __cplusplus
11278 }
11279 #endif
11280 _LT_EOF
11281           # Now try linking the two files.
11282           mv conftest.$ac_objext conftstm.$ac_objext
11283           lt_globsym_save_LIBS=$LIBS
11284           lt_globsym_save_CFLAGS=$CFLAGS
11285           LIBS="conftstm.$ac_objext"
11286           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11287           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11288   (eval $ac_link) 2>&5
11289   ac_status=$?
11290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11292             pipe_works=yes
11293           fi
11294           LIBS=$lt_globsym_save_LIBS
11295           CFLAGS=$lt_globsym_save_CFLAGS
11296         else
11297           echo "cannot find nm_test_func in $nlist" >&5
11298         fi
11299       else
11300         echo "cannot find nm_test_var in $nlist" >&5
11301       fi
11302     else
11303       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11304     fi
11305   else
11306     echo "$progname: failed program was:" >&5
11307     cat conftest.$ac_ext >&5
11308   fi
11309   rm -rf conftest* conftst*
11310
11311   # Do not use the global_symbol_pipe unless it works.
11312   if test "$pipe_works" = yes; then
11313     break
11314   else
11315     lt_cv_sys_global_symbol_pipe=
11316   fi
11317 done
11318
11319 fi
11320
11321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11322   lt_cv_sys_global_symbol_to_cdecl=
11323 fi
11324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11326 $as_echo "failed" >&6; }
11327 else
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11329 $as_echo "ok" >&6; }
11330 fi
11331
11332 # Response file support.
11333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11334   nm_file_list_spec='@'
11335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11336   nm_file_list_spec='@'
11337 fi
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11366 $as_echo_n "checking for sysroot... " >&6; }
11367
11368 # Check whether --with-sysroot was given.
11369 if test "${with_sysroot+set}" = set; then :
11370   withval=$with_sysroot;
11371 else
11372   with_sysroot=no
11373 fi
11374
11375
11376 lt_sysroot=
11377 case ${with_sysroot} in #(
11378  yes)
11379    if test "$GCC" = yes; then
11380      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11381    fi
11382    ;; #(
11383  /*)
11384    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11385    ;; #(
11386  no|'')
11387    ;; #(
11388  *)
11389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11390 $as_echo "${with_sysroot}" >&6; }
11391    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11392    ;;
11393 esac
11394
11395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11396 $as_echo "${lt_sysroot:-no}" >&6; }
11397
11398
11399
11400
11401
11402 # Check whether --enable-libtool-lock was given.
11403 if test "${enable_libtool_lock+set}" = set; then :
11404   enableval=$enable_libtool_lock;
11405 fi
11406
11407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11408
11409 # Some flags need to be propagated to the compiler or linker for good
11410 # libtool support.
11411 case $host in
11412 ia64-*-hpux*)
11413   # Find out which ABI we are using.
11414   echo 'int i;' > conftest.$ac_ext
11415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11416   (eval $ac_compile) 2>&5
11417   ac_status=$?
11418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419   test $ac_status = 0; }; then
11420     case `/usr/bin/file conftest.$ac_objext` in
11421       *ELF-32*)
11422         HPUX_IA64_MODE="32"
11423         ;;
11424       *ELF-64*)
11425         HPUX_IA64_MODE="64"
11426         ;;
11427     esac
11428   fi
11429   rm -rf conftest*
11430   ;;
11431 *-*-irix6*)
11432   # Find out which ABI we are using.
11433   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11435   (eval $ac_compile) 2>&5
11436   ac_status=$?
11437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438   test $ac_status = 0; }; then
11439     if test "$lt_cv_prog_gnu_ld" = yes; then
11440       case `/usr/bin/file conftest.$ac_objext` in
11441         *32-bit*)
11442           LD="${LD-ld} -melf32bsmip"
11443           ;;
11444         *N32*)
11445           LD="${LD-ld} -melf32bmipn32"
11446           ;;
11447         *64-bit*)
11448           LD="${LD-ld} -melf64bmip"
11449         ;;
11450       esac
11451     else
11452       case `/usr/bin/file conftest.$ac_objext` in
11453         *32-bit*)
11454           LD="${LD-ld} -32"
11455           ;;
11456         *N32*)
11457           LD="${LD-ld} -n32"
11458           ;;
11459         *64-bit*)
11460           LD="${LD-ld} -64"
11461           ;;
11462       esac
11463     fi
11464   fi
11465   rm -rf conftest*
11466   ;;
11467
11468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11470   # Find out which ABI we are using.
11471   echo 'int i;' > conftest.$ac_ext
11472   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11473   (eval $ac_compile) 2>&5
11474   ac_status=$?
11475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476   test $ac_status = 0; }; then
11477     case `/usr/bin/file conftest.o` in
11478       *32-bit*)
11479         case $host in
11480           x86_64-*kfreebsd*-gnu)
11481             LD="${LD-ld} -m elf_i386_fbsd"
11482             ;;
11483           x86_64-*linux*)
11484             LD="${LD-ld} -m elf_i386"
11485             ;;
11486           ppc64-*linux*|powerpc64-*linux*)
11487             LD="${LD-ld} -m elf32ppclinux"
11488             ;;
11489           s390x-*linux*)
11490             LD="${LD-ld} -m elf_s390"
11491             ;;
11492           sparc64-*linux*)
11493             LD="${LD-ld} -m elf32_sparc"
11494             ;;
11495         esac
11496         ;;
11497       *64-bit*)
11498         case $host in
11499           x86_64-*kfreebsd*-gnu)
11500             LD="${LD-ld} -m elf_x86_64_fbsd"
11501             ;;
11502           x86_64-*linux*)
11503             LD="${LD-ld} -m elf_x86_64"
11504             ;;
11505           ppc*-*linux*|powerpc*-*linux*)
11506             LD="${LD-ld} -m elf64ppc"
11507             ;;
11508           s390*-*linux*|s390*-*tpf*)
11509             LD="${LD-ld} -m elf64_s390"
11510             ;;
11511           sparc*-*linux*)
11512             LD="${LD-ld} -m elf64_sparc"
11513             ;;
11514         esac
11515         ;;
11516     esac
11517   fi
11518   rm -rf conftest*
11519   ;;
11520
11521 *-*-sco3.2v5*)
11522   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11523   SAVE_CFLAGS="$CFLAGS"
11524   CFLAGS="$CFLAGS -belf"
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11527 if ${lt_cv_cc_needs_belf+:} false; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   ac_ext=c
11531 ac_cpp='$CPP $CPPFLAGS'
11532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11535
11536      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h.  */
11538
11539 int
11540 main ()
11541 {
11542
11543   ;
11544   return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548   lt_cv_cc_needs_belf=yes
11549 else
11550   lt_cv_cc_needs_belf=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553     conftest$ac_exeext conftest.$ac_ext
11554      ac_ext=c
11555 ac_cpp='$CPP $CPPFLAGS'
11556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11559
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11563   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11564     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11565     CFLAGS="$SAVE_CFLAGS"
11566   fi
11567   ;;
11568 sparc*-*solaris*)
11569   # Find out which ABI we are using.
11570   echo 'int i;' > conftest.$ac_ext
11571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572   (eval $ac_compile) 2>&5
11573   ac_status=$?
11574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575   test $ac_status = 0; }; then
11576     case `/usr/bin/file conftest.o` in
11577     *64-bit*)
11578       case $lt_cv_prog_gnu_ld in
11579       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11580       *)
11581         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11582           LD="${LD-ld} -64"
11583         fi
11584         ;;
11585       esac
11586       ;;
11587     esac
11588   fi
11589   rm -rf conftest*
11590   ;;
11591 esac
11592
11593 need_locks="$enable_libtool_lock"
11594
11595 if test -n "$ac_tool_prefix"; then
11596   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11597 set dummy ${ac_tool_prefix}mt; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   if test -n "$MANIFEST_TOOL"; then
11604   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609   IFS=$as_save_IFS
11610   test -z "$as_dir" && as_dir=.
11611     for ac_exec_ext in '' $ac_executable_extensions; do
11612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615     break 2
11616   fi
11617 done
11618   done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11624 if test -n "$MANIFEST_TOOL"; then
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11626 $as_echo "$MANIFEST_TOOL" >&6; }
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633 fi
11634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11635   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11636   # Extract the first word of "mt", so it can be a program name with args.
11637 set dummy mt; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   if test -n "$ac_ct_MANIFEST_TOOL"; then
11644   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11645 else
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     for ac_exec_ext in '' $ac_executable_extensions; do
11652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655     break 2
11656   fi
11657 done
11658   done
11659 IFS=$as_save_IFS
11660
11661 fi
11662 fi
11663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11664 if test -n "$ac_ct_MANIFEST_TOOL"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671
11672   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11673     MANIFEST_TOOL=":"
11674   else
11675     case $cross_compiling:$ac_tool_warned in
11676 yes:)
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11679 ac_tool_warned=yes ;;
11680 esac
11681     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11682   fi
11683 else
11684   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11685 fi
11686
11687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11690 if ${lt_cv_path_mainfest_tool+:} false; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   lt_cv_path_mainfest_tool=no
11694   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11695   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11696   cat conftest.err >&5
11697   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11698     lt_cv_path_mainfest_tool=yes
11699   fi
11700   rm -f conftest*
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11704 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11705   MANIFEST_TOOL=:
11706 fi
11707
11708
11709
11710
11711
11712
11713   case $host_os in
11714     rhapsody* | darwin*)
11715     if test -n "$ac_tool_prefix"; then
11716   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   if test -n "$DSYMUTIL"; then
11724   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11725 else
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731     for ac_exec_ext in '' $ac_executable_extensions; do
11732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738   done
11739 IFS=$as_save_IFS
11740
11741 fi
11742 fi
11743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11744 if test -n "$DSYMUTIL"; then
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11746 $as_echo "$DSYMUTIL" >&6; }
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 fi
11751
11752
11753 fi
11754 if test -z "$ac_cv_prog_DSYMUTIL"; then
11755   ac_ct_DSYMUTIL=$DSYMUTIL
11756   # Extract the first word of "dsymutil", so it can be a program name with args.
11757 set dummy dsymutil; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11761   $as_echo_n "(cached) " >&6
11762 else
11763   if test -n "$ac_ct_DSYMUTIL"; then
11764   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11765 else
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_prog_ac_ct_DSYMUTIL="dsymutil"
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 fi
11782 fi
11783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11784 if test -n "$ac_ct_DSYMUTIL"; then
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11787 else
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790 fi
11791
11792   if test "x$ac_ct_DSYMUTIL" = x; then
11793     DSYMUTIL=":"
11794   else
11795     case $cross_compiling:$ac_tool_warned in
11796 yes:)
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11799 ac_tool_warned=yes ;;
11800 esac
11801     DSYMUTIL=$ac_ct_DSYMUTIL
11802   fi
11803 else
11804   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11805 fi
11806
11807     if test -n "$ac_tool_prefix"; then
11808   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_NMEDIT+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   if test -n "$NMEDIT"; then
11816   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821   IFS=$as_save_IFS
11822   test -z "$as_dir" && as_dir=.
11823     for ac_exec_ext in '' $ac_executable_extensions; do
11824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830   done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 NMEDIT=$ac_cv_prog_NMEDIT
11836 if test -n "$NMEDIT"; then
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11838 $as_echo "$NMEDIT" >&6; }
11839 else
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844
11845 fi
11846 if test -z "$ac_cv_prog_NMEDIT"; then
11847   ac_ct_NMEDIT=$NMEDIT
11848   # Extract the first word of "nmedit", so it can be a program name with args.
11849 set dummy nmedit; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   if test -n "$ac_ct_NMEDIT"; then
11856   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11857 else
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863     for ac_exec_ext in '' $ac_executable_extensions; do
11864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870   done
11871 IFS=$as_save_IFS
11872
11873 fi
11874 fi
11875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11876 if test -n "$ac_ct_NMEDIT"; then
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11878 $as_echo "$ac_ct_NMEDIT" >&6; }
11879 else
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884   if test "x$ac_ct_NMEDIT" = x; then
11885     NMEDIT=":"
11886   else
11887     case $cross_compiling:$ac_tool_warned in
11888 yes:)
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11891 ac_tool_warned=yes ;;
11892 esac
11893     NMEDIT=$ac_ct_NMEDIT
11894   fi
11895 else
11896   NMEDIT="$ac_cv_prog_NMEDIT"
11897 fi
11898
11899     if test -n "$ac_tool_prefix"; then
11900   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_LIPO+:} false; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   if test -n "$LIPO"; then
11908   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 LIPO=$ac_cv_prog_LIPO
11928 if test -n "$LIPO"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11930 $as_echo "$LIPO" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936
11937 fi
11938 if test -z "$ac_cv_prog_LIPO"; then
11939   ac_ct_LIPO=$LIPO
11940   # Extract the first word of "lipo", so it can be a program name with args.
11941 set dummy lipo; ac_word=$2
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943 $as_echo_n "checking for $ac_word... " >&6; }
11944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947   if test -n "$ac_ct_LIPO"; then
11948   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11949 else
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11952 do
11953   IFS=$as_save_IFS
11954   test -z "$as_dir" && as_dir=.
11955     for ac_exec_ext in '' $ac_executable_extensions; do
11956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957     ac_cv_prog_ac_ct_LIPO="lipo"
11958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959     break 2
11960   fi
11961 done
11962   done
11963 IFS=$as_save_IFS
11964
11965 fi
11966 fi
11967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11968 if test -n "$ac_ct_LIPO"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11970 $as_echo "$ac_ct_LIPO" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976   if test "x$ac_ct_LIPO" = x; then
11977     LIPO=":"
11978   else
11979     case $cross_compiling:$ac_tool_warned in
11980 yes:)
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11983 ac_tool_warned=yes ;;
11984 esac
11985     LIPO=$ac_ct_LIPO
11986   fi
11987 else
11988   LIPO="$ac_cv_prog_LIPO"
11989 fi
11990
11991     if test -n "$ac_tool_prefix"; then
11992   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11993 set dummy ${ac_tool_prefix}otool; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_OTOOL+:} false; then :
11997   $as_echo_n "(cached) " >&6
11998 else
11999   if test -n "$OTOOL"; then
12000   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011     break 2
12012   fi
12013 done
12014   done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 OTOOL=$ac_cv_prog_OTOOL
12020 if test -n "$OTOOL"; then
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12022 $as_echo "$OTOOL" >&6; }
12023 else
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028
12029 fi
12030 if test -z "$ac_cv_prog_OTOOL"; then
12031   ac_ct_OTOOL=$OTOOL
12032   # Extract the first word of "otool", so it can be a program name with args.
12033 set dummy otool; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if test -n "$ac_ct_OTOOL"; then
12040   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049     ac_cv_prog_ac_ct_OTOOL="otool"
12050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054   done
12055 IFS=$as_save_IFS
12056
12057 fi
12058 fi
12059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12060 if test -n "$ac_ct_OTOOL"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12062 $as_echo "$ac_ct_OTOOL" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068   if test "x$ac_ct_OTOOL" = x; then
12069     OTOOL=":"
12070   else
12071     case $cross_compiling:$ac_tool_warned in
12072 yes:)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12076 esac
12077     OTOOL=$ac_ct_OTOOL
12078   fi
12079 else
12080   OTOOL="$ac_cv_prog_OTOOL"
12081 fi
12082
12083     if test -n "$ac_tool_prefix"; then
12084   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_OTOOL64+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   if test -n "$OTOOL64"; then
12092   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097   IFS=$as_save_IFS
12098   test -z "$as_dir" && as_dir=.
12099     for ac_exec_ext in '' $ac_executable_extensions; do
12100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103     break 2
12104   fi
12105 done
12106   done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 OTOOL64=$ac_cv_prog_OTOOL64
12112 if test -n "$OTOOL64"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12114 $as_echo "$OTOOL64" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_prog_OTOOL64"; then
12123   ac_ct_OTOOL64=$OTOOL64
12124   # Extract the first word of "otool64", so it can be a program name with args.
12125 set dummy otool64; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if test -n "$ac_ct_OTOOL64"; then
12132   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137   IFS=$as_save_IFS
12138   test -z "$as_dir" && as_dir=.
12139     for ac_exec_ext in '' $ac_executable_extensions; do
12140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141     ac_cv_prog_ac_ct_OTOOL64="otool64"
12142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143     break 2
12144   fi
12145 done
12146   done
12147 IFS=$as_save_IFS
12148
12149 fi
12150 fi
12151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12152 if test -n "$ac_ct_OTOOL64"; then
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12154 $as_echo "$ac_ct_OTOOL64" >&6; }
12155 else
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159
12160   if test "x$ac_ct_OTOOL64" = x; then
12161     OTOOL64=":"
12162   else
12163     case $cross_compiling:$ac_tool_warned in
12164 yes:)
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167 ac_tool_warned=yes ;;
12168 esac
12169     OTOOL64=$ac_ct_OTOOL64
12170   fi
12171 else
12172   OTOOL64="$ac_cv_prog_OTOOL64"
12173 fi
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12202 $as_echo_n "checking for -single_module linker flag... " >&6; }
12203 if ${lt_cv_apple_cc_single_mod+:} false; then :
12204   $as_echo_n "(cached) " >&6
12205 else
12206   lt_cv_apple_cc_single_mod=no
12207       if test -z "${LT_MULTI_MODULE}"; then
12208         # By default we will add the -single_module flag. You can override
12209         # by either setting the environment variable LT_MULTI_MODULE
12210         # non-empty at configure time, or by adding -multi_module to the
12211         # link flags.
12212         rm -rf libconftest.dylib*
12213         echo "int foo(void){return 1;}" > conftest.c
12214         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12215 -dynamiclib -Wl,-single_module conftest.c" >&5
12216         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12217           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12218         _lt_result=$?
12219         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12220           lt_cv_apple_cc_single_mod=yes
12221         else
12222           cat conftest.err >&5
12223         fi
12224         rm -rf libconftest.dylib*
12225         rm -f conftest.*
12226       fi
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   lt_cv_ld_exported_symbols_list=no
12236       save_LDFLAGS=$LDFLAGS
12237       echo "_main" > conftest.sym
12238       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241
12242 int
12243 main ()
12244 {
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251   lt_cv_ld_exported_symbols_list=yes
12252 else
12253   lt_cv_ld_exported_symbols_list=no
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256     conftest$ac_exeext conftest.$ac_ext
12257         LDFLAGS="$save_LDFLAGS"
12258
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12263 $as_echo_n "checking for -force_load linker flag... " >&6; }
12264 if ${lt_cv_ld_force_load+:} false; then :
12265   $as_echo_n "(cached) " >&6
12266 else
12267   lt_cv_ld_force_load=no
12268       cat > conftest.c << _LT_EOF
12269 int forced_loaded() { return 2;}
12270 _LT_EOF
12271       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12272       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12273       echo "$AR cru libconftest.a conftest.o" >&5
12274       $AR cru libconftest.a conftest.o 2>&5
12275       echo "$RANLIB libconftest.a" >&5
12276       $RANLIB libconftest.a 2>&5
12277       cat > conftest.c << _LT_EOF
12278 int main() { return 0;}
12279 _LT_EOF
12280       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12281       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12282       _lt_result=$?
12283       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12284         lt_cv_ld_force_load=yes
12285       else
12286         cat conftest.err >&5
12287       fi
12288         rm -f conftest.err libconftest.a conftest conftest.c
12289         rm -rf conftest.dSYM
12290
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12293 $as_echo "$lt_cv_ld_force_load" >&6; }
12294     case $host_os in
12295     rhapsody* | darwin1.[012])
12296       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12297     darwin1.*)
12298       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12299     darwin*) # darwin 5.x on
12300       # if running on 10.5 or later, the deployment target defaults
12301       # to the OS version, if on x86, and 10.4, the deployment
12302       # target defaults to 10.4. Don't you love it?
12303       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12304         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12305           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12306         10.[012]*)
12307           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12308         10.*)
12309           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12310       esac
12311     ;;
12312   esac
12313     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12314       _lt_dar_single_mod='$single_module'
12315     fi
12316     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12317       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12318     else
12319       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12320     fi
12321     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12322       _lt_dsymutil='~$DSYMUTIL $lib || :'
12323     else
12324       _lt_dsymutil=
12325     fi
12326     ;;
12327   esac
12328
12329 for ac_header in dlfcn.h
12330 do :
12331   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12332 "
12333 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12334   cat >>confdefs.h <<_ACEOF
12335 #define HAVE_DLFCN_H 1
12336 _ACEOF
12337
12338 fi
12339
12340 done
12341
12342
12343
12344
12345 func_stripname_cnf ()
12346 {
12347   case ${2} in
12348   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12349   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12350   esac
12351 } # func_stripname_cnf
12352
12353
12354
12355
12356
12357 # Set options
12358 enable_win32_dll=yes
12359
12360 case $host in
12361 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12362   if test -n "$ac_tool_prefix"; then
12363   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12364 set dummy ${ac_tool_prefix}as; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_AS+:} false; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   if test -n "$AS"; then
12371   ac_cv_prog_AS="$AS" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376   IFS=$as_save_IFS
12377   test -z "$as_dir" && as_dir=.
12378     for ac_exec_ext in '' $ac_executable_extensions; do
12379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380     ac_cv_prog_AS="${ac_tool_prefix}as"
12381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382     break 2
12383   fi
12384 done
12385   done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 AS=$ac_cv_prog_AS
12391 if test -n "$AS"; then
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12393 $as_echo "$AS" >&6; }
12394 else
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398
12399
12400 fi
12401 if test -z "$ac_cv_prog_AS"; then
12402   ac_ct_AS=$AS
12403   # Extract the first word of "as", so it can be a program name with args.
12404 set dummy as; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410   if test -n "$ac_ct_AS"; then
12411   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   test -z "$as_dir" && as_dir=.
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420     ac_cv_prog_ac_ct_AS="as"
12421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422     break 2
12423   fi
12424 done
12425   done
12426 IFS=$as_save_IFS
12427
12428 fi
12429 fi
12430 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12431 if test -n "$ac_ct_AS"; then
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12433 $as_echo "$ac_ct_AS" >&6; }
12434 else
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438
12439   if test "x$ac_ct_AS" = x; then
12440     AS="false"
12441   else
12442     case $cross_compiling:$ac_tool_warned in
12443 yes:)
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446 ac_tool_warned=yes ;;
12447 esac
12448     AS=$ac_ct_AS
12449   fi
12450 else
12451   AS="$ac_cv_prog_AS"
12452 fi
12453
12454   if test -n "$ac_tool_prefix"; then
12455   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_DLLTOOL+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   if test -n "$DLLTOOL"; then
12463   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468   IFS=$as_save_IFS
12469   test -z "$as_dir" && as_dir=.
12470     for ac_exec_ext in '' $ac_executable_extensions; do
12471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474     break 2
12475   fi
12476 done
12477   done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 DLLTOOL=$ac_cv_prog_DLLTOOL
12483 if test -n "$DLLTOOL"; then
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12485 $as_echo "$DLLTOOL" >&6; }
12486 else
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491
12492 fi
12493 if test -z "$ac_cv_prog_DLLTOOL"; then
12494   ac_ct_DLLTOOL=$DLLTOOL
12495   # Extract the first word of "dlltool", so it can be a program name with args.
12496 set dummy dlltool; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502   if test -n "$ac_ct_DLLTOOL"; then
12503   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12504 else
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $PATH
12507 do
12508   IFS=$as_save_IFS
12509   test -z "$as_dir" && as_dir=.
12510     for ac_exec_ext in '' $ac_executable_extensions; do
12511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514     break 2
12515   fi
12516 done
12517   done
12518 IFS=$as_save_IFS
12519
12520 fi
12521 fi
12522 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12523 if test -n "$ac_ct_DLLTOOL"; then
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12525 $as_echo "$ac_ct_DLLTOOL" >&6; }
12526 else
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12529 fi
12530
12531   if test "x$ac_ct_DLLTOOL" = x; then
12532     DLLTOOL="false"
12533   else
12534     case $cross_compiling:$ac_tool_warned in
12535 yes:)
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12538 ac_tool_warned=yes ;;
12539 esac
12540     DLLTOOL=$ac_ct_DLLTOOL
12541   fi
12542 else
12543   DLLTOOL="$ac_cv_prog_DLLTOOL"
12544 fi
12545
12546   if test -n "$ac_tool_prefix"; then
12547   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12548 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 $as_echo_n "checking for $ac_word... " >&6; }
12551 if ${ac_cv_prog_OBJDUMP+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   if test -n "$OBJDUMP"; then
12555   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12556 else
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12559 do
12560   IFS=$as_save_IFS
12561   test -z "$as_dir" && as_dir=.
12562     for ac_exec_ext in '' $ac_executable_extensions; do
12563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566     break 2
12567   fi
12568 done
12569   done
12570 IFS=$as_save_IFS
12571
12572 fi
12573 fi
12574 OBJDUMP=$ac_cv_prog_OBJDUMP
12575 if test -n "$OBJDUMP"; then
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12577 $as_echo "$OBJDUMP" >&6; }
12578 else
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12581 fi
12582
12583
12584 fi
12585 if test -z "$ac_cv_prog_OBJDUMP"; then
12586   ac_ct_OBJDUMP=$OBJDUMP
12587   # Extract the first word of "objdump", so it can be a program name with args.
12588 set dummy objdump; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   if test -n "$ac_ct_OBJDUMP"; then
12595   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611
12612 fi
12613 fi
12614 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12615 if test -n "$ac_ct_OBJDUMP"; then
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12617 $as_echo "$ac_ct_OBJDUMP" >&6; }
12618 else
12619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621 fi
12622
12623   if test "x$ac_ct_OBJDUMP" = x; then
12624     OBJDUMP="false"
12625   else
12626     case $cross_compiling:$ac_tool_warned in
12627 yes:)
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630 ac_tool_warned=yes ;;
12631 esac
12632     OBJDUMP=$ac_ct_OBJDUMP
12633   fi
12634 else
12635   OBJDUMP="$ac_cv_prog_OBJDUMP"
12636 fi
12637
12638   ;;
12639 esac
12640
12641 test -z "$AS" && AS=as
12642
12643
12644
12645
12646
12647 test -z "$DLLTOOL" && DLLTOOL=dlltool
12648
12649
12650
12651
12652
12653 test -z "$OBJDUMP" && OBJDUMP=objdump
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663             # Check whether --enable-shared was given.
12664 if test "${enable_shared+set}" = set; then :
12665   enableval=$enable_shared; p=${PACKAGE-default}
12666     case $enableval in
12667     yes) enable_shared=yes ;;
12668     no) enable_shared=no ;;
12669     *)
12670       enable_shared=no
12671       # Look at the argument we got.  We use all the common list separators.
12672       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673       for pkg in $enableval; do
12674         IFS="$lt_save_ifs"
12675         if test "X$pkg" = "X$p"; then
12676           enable_shared=yes
12677         fi
12678       done
12679       IFS="$lt_save_ifs"
12680       ;;
12681     esac
12682 else
12683   enable_shared=yes
12684 fi
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694   # Check whether --enable-static was given.
12695 if test "${enable_static+set}" = set; then :
12696   enableval=$enable_static; p=${PACKAGE-default}
12697     case $enableval in
12698     yes) enable_static=yes ;;
12699     no) enable_static=no ;;
12700     *)
12701      enable_static=no
12702       # Look at the argument we got.  We use all the common list separators.
12703       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12704       for pkg in $enableval; do
12705         IFS="$lt_save_ifs"
12706         if test "X$pkg" = "X$p"; then
12707           enable_static=yes
12708         fi
12709       done
12710       IFS="$lt_save_ifs"
12711       ;;
12712     esac
12713 else
12714   enable_static=yes
12715 fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726 # Check whether --with-pic was given.
12727 if test "${with_pic+set}" = set; then :
12728   withval=$with_pic; pic_mode="$withval"
12729 else
12730   pic_mode=default
12731 fi
12732
12733
12734 test -z "$pic_mode" && pic_mode=default
12735
12736
12737
12738
12739
12740
12741
12742   # Check whether --enable-fast-install was given.
12743 if test "${enable_fast_install+set}" = set; then :
12744   enableval=$enable_fast_install; p=${PACKAGE-default}
12745     case $enableval in
12746     yes) enable_fast_install=yes ;;
12747     no) enable_fast_install=no ;;
12748     *)
12749       enable_fast_install=no
12750       # Look at the argument we got.  We use all the common list separators.
12751       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12752       for pkg in $enableval; do
12753         IFS="$lt_save_ifs"
12754         if test "X$pkg" = "X$p"; then
12755           enable_fast_install=yes
12756         fi
12757       done
12758       IFS="$lt_save_ifs"
12759       ;;
12760     esac
12761 else
12762   enable_fast_install=yes
12763 fi
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775 # This can be used to rebuild libtool when needed
12776 LIBTOOL_DEPS="$ltmain"
12777
12778 # Always use our own libtool.
12779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806 test -z "$LN_S" && LN_S="ln -s"
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821 if test -n "${ZSH_VERSION+set}" ; then
12822    setopt NO_GLOB_SUBST
12823 fi
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12826 $as_echo_n "checking for objdir... " >&6; }
12827 if ${lt_cv_objdir+:} false; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   rm -f .libs 2>/dev/null
12831 mkdir .libs 2>/dev/null
12832 if test -d .libs; then
12833   lt_cv_objdir=.libs
12834 else
12835   # MS-DOS does not allow filenames that begin with a dot.
12836   lt_cv_objdir=_libs
12837 fi
12838 rmdir .libs 2>/dev/null
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12841 $as_echo "$lt_cv_objdir" >&6; }
12842 objdir=$lt_cv_objdir
12843
12844
12845
12846
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define LT_OBJDIR "$lt_cv_objdir/"
12850 _ACEOF
12851
12852
12853
12854
12855 case $host_os in
12856 aix3*)
12857   # AIX sometimes has problems with the GCC collect2 program.  For some
12858   # reason, if we set the COLLECT_NAMES environment variable, the problems
12859   # vanish in a puff of smoke.
12860   if test "X${COLLECT_NAMES+set}" != Xset; then
12861     COLLECT_NAMES=
12862     export COLLECT_NAMES
12863   fi
12864   ;;
12865 esac
12866
12867 # Global variables:
12868 ofile=libtool
12869 can_build_shared=yes
12870
12871 # All known linkers require a `.a' archive for static linking (except MSVC,
12872 # which needs '.lib').
12873 libext=a
12874
12875 with_gnu_ld="$lt_cv_prog_gnu_ld"
12876
12877 old_CC="$CC"
12878 old_CFLAGS="$CFLAGS"
12879
12880 # Set sane defaults for various variables
12881 test -z "$CC" && CC=cc
12882 test -z "$LTCC" && LTCC=$CC
12883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12884 test -z "$LD" && LD=ld
12885 test -z "$ac_objext" && ac_objext=o
12886
12887 for cc_temp in $compiler""; do
12888   case $cc_temp in
12889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12891     \-*) ;;
12892     *) break;;
12893   esac
12894 done
12895 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12896
12897
12898 # Only perform the check for file, if the check method requires it
12899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12900 case $deplibs_check_method in
12901 file_magic*)
12902   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12905 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12906   $as_echo_n "(cached) " >&6
12907 else
12908   case $MAGIC_CMD in
12909 [\\/*] |  ?:[\\/]*)
12910   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12911   ;;
12912 *)
12913   lt_save_MAGIC_CMD="$MAGIC_CMD"
12914   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12915   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12916   for ac_dir in $ac_dummy; do
12917     IFS="$lt_save_ifs"
12918     test -z "$ac_dir" && ac_dir=.
12919     if test -f $ac_dir/${ac_tool_prefix}file; then
12920       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12921       if test -n "$file_magic_test_file"; then
12922         case $deplibs_check_method in
12923         "file_magic "*)
12924           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12925           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12926           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12927             $EGREP "$file_magic_regex" > /dev/null; then
12928             :
12929           else
12930             cat <<_LT_EOF 1>&2
12931
12932 *** Warning: the command libtool uses to detect shared libraries,
12933 *** $file_magic_cmd, produces output that libtool cannot recognize.
12934 *** The result is that libtool may fail to recognize shared libraries
12935 *** as such.  This will affect the creation of libtool libraries that
12936 *** depend on shared libraries, but programs linked with such libtool
12937 *** libraries will work regardless of this problem.  Nevertheless, you
12938 *** may want to report the problem to your system manager and/or to
12939 *** bug-libtool@gnu.org
12940
12941 _LT_EOF
12942           fi ;;
12943         esac
12944       fi
12945       break
12946     fi
12947   done
12948   IFS="$lt_save_ifs"
12949   MAGIC_CMD="$lt_save_MAGIC_CMD"
12950   ;;
12951 esac
12952 fi
12953
12954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12955 if test -n "$MAGIC_CMD"; then
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12957 $as_echo "$MAGIC_CMD" >&6; }
12958 else
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12961 fi
12962
12963
12964
12965
12966
12967 if test -z "$lt_cv_path_MAGIC_CMD"; then
12968   if test -n "$ac_tool_prefix"; then
12969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12970 $as_echo_n "checking for file... " >&6; }
12971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   case $MAGIC_CMD in
12975 [\\/*] |  ?:[\\/]*)
12976   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12977   ;;
12978 *)
12979   lt_save_MAGIC_CMD="$MAGIC_CMD"
12980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12982   for ac_dir in $ac_dummy; do
12983     IFS="$lt_save_ifs"
12984     test -z "$ac_dir" && ac_dir=.
12985     if test -f $ac_dir/file; then
12986       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12987       if test -n "$file_magic_test_file"; then
12988         case $deplibs_check_method in
12989         "file_magic "*)
12990           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12991           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12993             $EGREP "$file_magic_regex" > /dev/null; then
12994             :
12995           else
12996             cat <<_LT_EOF 1>&2
12997
12998 *** Warning: the command libtool uses to detect shared libraries,
12999 *** $file_magic_cmd, produces output that libtool cannot recognize.
13000 *** The result is that libtool may fail to recognize shared libraries
13001 *** as such.  This will affect the creation of libtool libraries that
13002 *** depend on shared libraries, but programs linked with such libtool
13003 *** libraries will work regardless of this problem.  Nevertheless, you
13004 *** may want to report the problem to your system manager and/or to
13005 *** bug-libtool@gnu.org
13006
13007 _LT_EOF
13008           fi ;;
13009         esac
13010       fi
13011       break
13012     fi
13013   done
13014   IFS="$lt_save_ifs"
13015   MAGIC_CMD="$lt_save_MAGIC_CMD"
13016   ;;
13017 esac
13018 fi
13019
13020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13021 if test -n "$MAGIC_CMD"; then
13022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13023 $as_echo "$MAGIC_CMD" >&6; }
13024 else
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027 fi
13028
13029
13030   else
13031     MAGIC_CMD=:
13032   fi
13033 fi
13034
13035   fi
13036   ;;
13037 esac
13038
13039 # Use C for the default configuration in the libtool script
13040
13041 lt_save_CC="$CC"
13042 ac_ext=c
13043 ac_cpp='$CPP $CPPFLAGS'
13044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13047
13048
13049 # Source file extension for C test sources.
13050 ac_ext=c
13051
13052 # Object file extension for compiled C test sources.
13053 objext=o
13054 objext=$objext
13055
13056 # Code to be used in simple compile tests
13057 lt_simple_compile_test_code="int some_variable = 0;"
13058
13059 # Code to be used in simple link tests
13060 lt_simple_link_test_code='int main(){return(0);}'
13061
13062
13063
13064
13065
13066
13067
13068 # If no C compiler was specified, use CC.
13069 LTCC=${LTCC-"$CC"}
13070
13071 # If no C compiler flags were specified, use CFLAGS.
13072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13073
13074 # Allow CC to be a program name with arguments.
13075 compiler=$CC
13076
13077 # Save the default compiler, since it gets overwritten when the other
13078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13079 compiler_DEFAULT=$CC
13080
13081 # save warnings/boilerplate of simple test code
13082 ac_outfile=conftest.$ac_objext
13083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13085 _lt_compiler_boilerplate=`cat conftest.err`
13086 $RM conftest*
13087
13088 ac_outfile=conftest.$ac_objext
13089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13091 _lt_linker_boilerplate=`cat conftest.err`
13092 $RM -r conftest*
13093
13094
13095 ## CAVEAT EMPTOR:
13096 ## There is no encapsulation within the following macros, do not change
13097 ## the running order or otherwise move them around unless you know exactly
13098 ## what you are doing...
13099 if test -n "$compiler"; then
13100
13101 lt_prog_compiler_no_builtin_flag=
13102
13103 if test "$GCC" = yes; then
13104   case $cc_basename in
13105   nvcc*)
13106     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13107   *)
13108     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13109   esac
13110
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13112 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13113 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13114   $as_echo_n "(cached) " >&6
13115 else
13116   lt_cv_prog_compiler_rtti_exceptions=no
13117    ac_outfile=conftest.$ac_objext
13118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13119    lt_compiler_flag="-fno-rtti -fno-exceptions"
13120    # Insert the option either (1) after the last *FLAGS variable, or
13121    # (2) before a word containing "conftest.", or (3) at the end.
13122    # Note that $ac_compile itself does not contain backslashes and begins
13123    # with a dollar sign (not a hyphen), so the echo should work correctly.
13124    # The option is referenced via a variable to avoid confusing sed.
13125    lt_compile=`echo "$ac_compile" | $SED \
13126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13128    -e 's:$: $lt_compiler_flag:'`
13129    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13130    (eval "$lt_compile" 2>conftest.err)
13131    ac_status=$?
13132    cat conftest.err >&5
13133    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134    if (exit $ac_status) && test -s "$ac_outfile"; then
13135      # The compiler can only warn and ignore the option if not recognized
13136      # So say no if there are warnings other than the usual output.
13137      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13138      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13139      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13140        lt_cv_prog_compiler_rtti_exceptions=yes
13141      fi
13142    fi
13143    $RM conftest*
13144
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13147 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13148
13149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13150     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13151 else
13152     :
13153 fi
13154
13155 fi
13156
13157
13158
13159
13160
13161
13162   lt_prog_compiler_wl=
13163 lt_prog_compiler_pic=
13164 lt_prog_compiler_static=
13165
13166
13167   if test "$GCC" = yes; then
13168     lt_prog_compiler_wl='-Wl,'
13169     lt_prog_compiler_static='-static'
13170
13171     case $host_os in
13172       aix*)
13173       # All AIX code is PIC.
13174       if test "$host_cpu" = ia64; then
13175         # AIX 5 now supports IA64 processor
13176         lt_prog_compiler_static='-Bstatic'
13177       fi
13178       ;;
13179
13180     amigaos*)
13181       case $host_cpu in
13182       powerpc)
13183             # see comment about AmigaOS4 .so support
13184             lt_prog_compiler_pic='-fPIC'
13185         ;;
13186       m68k)
13187             # FIXME: we need at least 68020 code to build shared libraries, but
13188             # adding the `-m68020' flag to GCC prevents building anything better,
13189             # like `-m68040'.
13190             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13191         ;;
13192       esac
13193       ;;
13194
13195     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13196       # PIC is the default for these OSes.
13197       ;;
13198
13199     mingw* | cygwin* | pw32* | os2* | cegcc*)
13200       # This hack is so that the source file can tell whether it is being
13201       # built for inclusion in a dll (and should export symbols for example).
13202       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13203       # (--disable-auto-import) libraries
13204       lt_prog_compiler_pic='-DDLL_EXPORT'
13205       ;;
13206
13207     darwin* | rhapsody*)
13208       # PIC is the default on this platform
13209       # Common symbols not allowed in MH_DYLIB files
13210       lt_prog_compiler_pic='-fno-common'
13211       ;;
13212
13213     haiku*)
13214       # PIC is the default for Haiku.
13215       # The "-static" flag exists, but is broken.
13216       lt_prog_compiler_static=
13217       ;;
13218
13219     hpux*)
13220       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13221       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13222       # sets the default TLS model and affects inlining.
13223       case $host_cpu in
13224       hppa*64*)
13225         # +Z the default
13226         ;;
13227       *)
13228         lt_prog_compiler_pic='-fPIC'
13229         ;;
13230       esac
13231       ;;
13232
13233     interix[3-9]*)
13234       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13235       # Instead, we relocate shared libraries at runtime.
13236       ;;
13237
13238     msdosdjgpp*)
13239       # Just because we use GCC doesn't mean we suddenly get shared libraries
13240       # on systems that don't support them.
13241       lt_prog_compiler_can_build_shared=no
13242       enable_shared=no
13243       ;;
13244
13245     *nto* | *qnx*)
13246       # QNX uses GNU C++, but need to define -shared option too, otherwise
13247       # it will coredump.
13248       lt_prog_compiler_pic='-fPIC -shared'
13249       ;;
13250
13251     sysv4*MP*)
13252       if test -d /usr/nec; then
13253         lt_prog_compiler_pic=-Kconform_pic
13254       fi
13255       ;;
13256
13257     *)
13258       lt_prog_compiler_pic='-fPIC'
13259       ;;
13260     esac
13261
13262     case $cc_basename in
13263     nvcc*) # Cuda Compiler Driver 2.2
13264       lt_prog_compiler_wl='-Xlinker '
13265       lt_prog_compiler_pic='-Xcompiler -fPIC'
13266       ;;
13267     esac
13268   else
13269     # PORTME Check for flag to pass linker flags through the system compiler.
13270     case $host_os in
13271     aix*)
13272       lt_prog_compiler_wl='-Wl,'
13273       if test "$host_cpu" = ia64; then
13274         # AIX 5 now supports IA64 processor
13275         lt_prog_compiler_static='-Bstatic'
13276       else
13277         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13278       fi
13279       ;;
13280
13281     mingw* | cygwin* | pw32* | os2* | cegcc*)
13282       # This hack is so that the source file can tell whether it is being
13283       # built for inclusion in a dll (and should export symbols for example).
13284       lt_prog_compiler_pic='-DDLL_EXPORT'
13285       ;;
13286
13287     hpux9* | hpux10* | hpux11*)
13288       lt_prog_compiler_wl='-Wl,'
13289       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290       # not for PA HP-UX.
13291       case $host_cpu in
13292       hppa*64*|ia64*)
13293         # +Z the default
13294         ;;
13295       *)
13296         lt_prog_compiler_pic='+Z'
13297         ;;
13298       esac
13299       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13300       lt_prog_compiler_static='${wl}-a ${wl}archive'
13301       ;;
13302
13303     irix5* | irix6* | nonstopux*)
13304       lt_prog_compiler_wl='-Wl,'
13305       # PIC (with -KPIC) is the default.
13306       lt_prog_compiler_static='-non_shared'
13307       ;;
13308
13309     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13310       case $cc_basename in
13311       # old Intel for x86_64 which still supported -KPIC.
13312       ecc*)
13313         lt_prog_compiler_wl='-Wl,'
13314         lt_prog_compiler_pic='-KPIC'
13315         lt_prog_compiler_static='-static'
13316         ;;
13317       # icc used to be incompatible with GCC.
13318       # ICC 10 doesn't accept -KPIC any more.
13319       icc* | ifort*)
13320         lt_prog_compiler_wl='-Wl,'
13321         lt_prog_compiler_pic='-fPIC'
13322         lt_prog_compiler_static='-static'
13323         ;;
13324       # Lahey Fortran 8.1.
13325       lf95*)
13326         lt_prog_compiler_wl='-Wl,'
13327         lt_prog_compiler_pic='--shared'
13328         lt_prog_compiler_static='--static'
13329         ;;
13330       nagfor*)
13331         # NAG Fortran compiler
13332         lt_prog_compiler_wl='-Wl,-Wl,,'
13333         lt_prog_compiler_pic='-PIC'
13334         lt_prog_compiler_static='-Bstatic'
13335         ;;
13336       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13337         # Portland Group compilers (*not* the Pentium gcc compiler,
13338         # which looks to be a dead project)
13339         lt_prog_compiler_wl='-Wl,'
13340         lt_prog_compiler_pic='-fpic'
13341         lt_prog_compiler_static='-Bstatic'
13342         ;;
13343       ccc*)
13344         lt_prog_compiler_wl='-Wl,'
13345         # All Alpha code is PIC.
13346         lt_prog_compiler_static='-non_shared'
13347         ;;
13348       xl* | bgxl* | bgf* | mpixl*)
13349         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13350         lt_prog_compiler_wl='-Wl,'
13351         lt_prog_compiler_pic='-qpic'
13352         lt_prog_compiler_static='-qstaticlink'
13353         ;;
13354       *)
13355         case `$CC -V 2>&1 | sed 5q` in
13356         *Sun\ F* | *Sun*Fortran*)
13357           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13358           lt_prog_compiler_pic='-KPIC'
13359           lt_prog_compiler_static='-Bstatic'
13360           lt_prog_compiler_wl=''
13361           ;;
13362         *Sun\ C*)
13363           # Sun C 5.9
13364           lt_prog_compiler_pic='-KPIC'
13365           lt_prog_compiler_static='-Bstatic'
13366           lt_prog_compiler_wl='-Wl,'
13367           ;;
13368         esac
13369         ;;
13370       esac
13371       ;;
13372
13373     newsos6)
13374       lt_prog_compiler_pic='-KPIC'
13375       lt_prog_compiler_static='-Bstatic'
13376       ;;
13377
13378     *nto* | *qnx*)
13379       # QNX uses GNU C++, but need to define -shared option too, otherwise
13380       # it will coredump.
13381       lt_prog_compiler_pic='-fPIC -shared'
13382       ;;
13383
13384     osf3* | osf4* | osf5*)
13385       lt_prog_compiler_wl='-Wl,'
13386       # All OSF/1 code is PIC.
13387       lt_prog_compiler_static='-non_shared'
13388       ;;
13389
13390     rdos*)
13391       lt_prog_compiler_static='-non_shared'
13392       ;;
13393
13394     solaris*)
13395       lt_prog_compiler_pic='-KPIC'
13396       lt_prog_compiler_static='-Bstatic'
13397       case $cc_basename in
13398       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13399         lt_prog_compiler_wl='-Qoption ld ';;
13400       *)
13401         lt_prog_compiler_wl='-Wl,';;
13402       esac
13403       ;;
13404
13405     sunos4*)
13406       lt_prog_compiler_wl='-Qoption ld '
13407       lt_prog_compiler_pic='-PIC'
13408       lt_prog_compiler_static='-Bstatic'
13409       ;;
13410
13411     sysv4 | sysv4.2uw2* | sysv4.3*)
13412       lt_prog_compiler_wl='-Wl,'
13413       lt_prog_compiler_pic='-KPIC'
13414       lt_prog_compiler_static='-Bstatic'
13415       ;;
13416
13417     sysv4*MP*)
13418       if test -d /usr/nec ;then
13419         lt_prog_compiler_pic='-Kconform_pic'
13420         lt_prog_compiler_static='-Bstatic'
13421       fi
13422       ;;
13423
13424     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13425       lt_prog_compiler_wl='-Wl,'
13426       lt_prog_compiler_pic='-KPIC'
13427       lt_prog_compiler_static='-Bstatic'
13428       ;;
13429
13430     unicos*)
13431       lt_prog_compiler_wl='-Wl,'
13432       lt_prog_compiler_can_build_shared=no
13433       ;;
13434
13435     uts4*)
13436       lt_prog_compiler_pic='-pic'
13437       lt_prog_compiler_static='-Bstatic'
13438       ;;
13439
13440     *)
13441       lt_prog_compiler_can_build_shared=no
13442       ;;
13443     esac
13444   fi
13445
13446 case $host_os in
13447   # For platforms which do not support PIC, -DPIC is meaningless:
13448   *djgpp*)
13449     lt_prog_compiler_pic=
13450     ;;
13451   *)
13452     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13453     ;;
13454 esac
13455
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13458 if ${lt_cv_prog_compiler_pic+:} false; then :
13459   $as_echo_n "(cached) " >&6
13460 else
13461   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13464 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13465 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13466
13467 #
13468 # Check to make sure the PIC flag actually works.
13469 #
13470 if test -n "$lt_prog_compiler_pic"; then
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13473 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   lt_cv_prog_compiler_pic_works=no
13477    ac_outfile=conftest.$ac_objext
13478    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13479    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13480    # Insert the option either (1) after the last *FLAGS variable, or
13481    # (2) before a word containing "conftest.", or (3) at the end.
13482    # Note that $ac_compile itself does not contain backslashes and begins
13483    # with a dollar sign (not a hyphen), so the echo should work correctly.
13484    # The option is referenced via a variable to avoid confusing sed.
13485    lt_compile=`echo "$ac_compile" | $SED \
13486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488    -e 's:$: $lt_compiler_flag:'`
13489    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13490    (eval "$lt_compile" 2>conftest.err)
13491    ac_status=$?
13492    cat conftest.err >&5
13493    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494    if (exit $ac_status) && test -s "$ac_outfile"; then
13495      # The compiler can only warn and ignore the option if not recognized
13496      # So say no if there are warnings other than the usual output.
13497      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13498      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13500        lt_cv_prog_compiler_pic_works=yes
13501      fi
13502    fi
13503    $RM conftest*
13504
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13507 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13508
13509 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13510     case $lt_prog_compiler_pic in
13511      "" | " "*) ;;
13512      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13513      esac
13514 else
13515     lt_prog_compiler_pic=
13516      lt_prog_compiler_can_build_shared=no
13517 fi
13518
13519 fi
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 #
13532 # Check to make sure the static flag actually works.
13533 #
13534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13537 if ${lt_cv_prog_compiler_static_works+:} false; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   lt_cv_prog_compiler_static_works=no
13541    save_LDFLAGS="$LDFLAGS"
13542    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13544    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545      # The linker can only warn and ignore the option if not recognized
13546      # So say no if there are warnings
13547      if test -s conftest.err; then
13548        # Append any errors to the config.log.
13549        cat conftest.err 1>&5
13550        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13551        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552        if diff conftest.exp conftest.er2 >/dev/null; then
13553          lt_cv_prog_compiler_static_works=yes
13554        fi
13555      else
13556        lt_cv_prog_compiler_static_works=yes
13557      fi
13558    fi
13559    $RM -r conftest*
13560    LDFLAGS="$save_LDFLAGS"
13561
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13565
13566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13567     :
13568 else
13569     lt_prog_compiler_static=
13570 fi
13571
13572
13573
13574
13575
13576
13577
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13580 if ${lt_cv_prog_compiler_c_o+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   lt_cv_prog_compiler_c_o=no
13584    $RM -r conftest 2>/dev/null
13585    mkdir conftest
13586    cd conftest
13587    mkdir out
13588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589
13590    lt_compiler_flag="-o out/conftest2.$ac_objext"
13591    # Insert the option either (1) after the last *FLAGS variable, or
13592    # (2) before a word containing "conftest.", or (3) at the end.
13593    # Note that $ac_compile itself does not contain backslashes and begins
13594    # with a dollar sign (not a hyphen), so the echo should work correctly.
13595    lt_compile=`echo "$ac_compile" | $SED \
13596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598    -e 's:$: $lt_compiler_flag:'`
13599    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13600    (eval "$lt_compile" 2>out/conftest.err)
13601    ac_status=$?
13602    cat out/conftest.err >&5
13603    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13605    then
13606      # The compiler can only warn and ignore the option if not recognized
13607      # So say no if there are warnings
13608      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13609      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13610      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13611        lt_cv_prog_compiler_c_o=yes
13612      fi
13613    fi
13614    chmod u+w . 2>&5
13615    $RM conftest*
13616    # SGI C++ compiler will create directory out/ii_files/ for
13617    # template instantiation
13618    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13619    $RM out/* && rmdir out
13620    cd ..
13621    $RM -r conftest
13622    $RM conftest*
13623
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13627
13628
13629
13630
13631
13632
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13635 if ${lt_cv_prog_compiler_c_o+:} false; then :
13636   $as_echo_n "(cached) " >&6
13637 else
13638   lt_cv_prog_compiler_c_o=no
13639    $RM -r conftest 2>/dev/null
13640    mkdir conftest
13641    cd conftest
13642    mkdir out
13643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13644
13645    lt_compiler_flag="-o out/conftest2.$ac_objext"
13646    # Insert the option either (1) after the last *FLAGS variable, or
13647    # (2) before a word containing "conftest.", or (3) at the end.
13648    # Note that $ac_compile itself does not contain backslashes and begins
13649    # with a dollar sign (not a hyphen), so the echo should work correctly.
13650    lt_compile=`echo "$ac_compile" | $SED \
13651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653    -e 's:$: $lt_compiler_flag:'`
13654    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13655    (eval "$lt_compile" 2>out/conftest.err)
13656    ac_status=$?
13657    cat out/conftest.err >&5
13658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13660    then
13661      # The compiler can only warn and ignore the option if not recognized
13662      # So say no if there are warnings
13663      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13664      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13665      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13666        lt_cv_prog_compiler_c_o=yes
13667      fi
13668    fi
13669    chmod u+w . 2>&5
13670    $RM conftest*
13671    # SGI C++ compiler will create directory out/ii_files/ for
13672    # template instantiation
13673    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13674    $RM out/* && rmdir out
13675    cd ..
13676    $RM -r conftest
13677    $RM conftest*
13678
13679 fi
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13682
13683
13684
13685
13686 hard_links="nottested"
13687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13688   # do not overwrite the value of need_locks provided by the user
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13690 $as_echo_n "checking if we can lock with hard links... " >&6; }
13691   hard_links=yes
13692   $RM conftest*
13693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13694   touch conftest.a
13695   ln conftest.a conftest.b 2>&5 || hard_links=no
13696   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13698 $as_echo "$hard_links" >&6; }
13699   if test "$hard_links" = no; then
13700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13702     need_locks=warn
13703   fi
13704 else
13705   need_locks=no
13706 fi
13707
13708
13709
13710
13711
13712
13713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13715
13716   runpath_var=
13717   allow_undefined_flag=
13718   always_export_symbols=no
13719   archive_cmds=
13720   archive_expsym_cmds=
13721   compiler_needs_object=no
13722   enable_shared_with_static_runtimes=no
13723   export_dynamic_flag_spec=
13724   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13725   hardcode_automatic=no
13726   hardcode_direct=no
13727   hardcode_direct_absolute=no
13728   hardcode_libdir_flag_spec=
13729   hardcode_libdir_flag_spec_ld=
13730   hardcode_libdir_separator=
13731   hardcode_minus_L=no
13732   hardcode_shlibpath_var=unsupported
13733   inherit_rpath=no
13734   link_all_deplibs=unknown
13735   module_cmds=
13736   module_expsym_cmds=
13737   old_archive_from_new_cmds=
13738   old_archive_from_expsyms_cmds=
13739   thread_safe_flag_spec=
13740   whole_archive_flag_spec=
13741   # include_expsyms should be a list of space-separated symbols to be *always*
13742   # included in the symbol list
13743   include_expsyms=
13744   # exclude_expsyms can be an extended regexp of symbols to exclude
13745   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13746   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13747   # as well as any symbol that contains `d'.
13748   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13749   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13750   # platforms (ab)use it in PIC code, but their linkers get confused if
13751   # the symbol is explicitly referenced.  Since portable code cannot
13752   # rely on this symbol name, it's probably fine to never include it in
13753   # preloaded symbol tables.
13754   # Exclude shared library initialization/finalization symbols.
13755   extract_expsyms_cmds=
13756
13757   case $host_os in
13758   cygwin* | mingw* | pw32* | cegcc*)
13759     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13760     # When not using gcc, we currently assume that we are using
13761     # Microsoft Visual C++.
13762     if test "$GCC" != yes; then
13763       with_gnu_ld=no
13764     fi
13765     ;;
13766   interix*)
13767     # we just hope/assume this is gcc and not c89 (= MSVC++)
13768     with_gnu_ld=yes
13769     ;;
13770   openbsd*)
13771     with_gnu_ld=no
13772     ;;
13773   esac
13774
13775   ld_shlibs=yes
13776
13777   # On some targets, GNU ld is compatible enough with the native linker
13778   # that we're better off using the native interface for both.
13779   lt_use_gnu_ld_interface=no
13780   if test "$with_gnu_ld" = yes; then
13781     case $host_os in
13782       aix*)
13783         # The AIX port of GNU ld has always aspired to compatibility
13784         # with the native linker.  However, as the warning in the GNU ld
13785         # block says, versions before 2.19.5* couldn't really create working
13786         # shared libraries, regardless of the interface used.
13787         case `$LD -v 2>&1` in
13788           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13789           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13790           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13791           *)
13792             lt_use_gnu_ld_interface=yes
13793             ;;
13794         esac
13795         ;;
13796       *)
13797         lt_use_gnu_ld_interface=yes
13798         ;;
13799     esac
13800   fi
13801
13802   if test "$lt_use_gnu_ld_interface" = yes; then
13803     # If archive_cmds runs LD, not CC, wlarc should be empty
13804     wlarc='${wl}'
13805
13806     # Set some defaults for GNU ld with shared library support. These
13807     # are reset later if shared libraries are not supported. Putting them
13808     # here allows them to be overridden if necessary.
13809     runpath_var=LD_RUN_PATH
13810     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13811     export_dynamic_flag_spec='${wl}--export-dynamic'
13812     # ancient GNU ld didn't support --whole-archive et. al.
13813     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13814       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13815     else
13816       whole_archive_flag_spec=
13817     fi
13818     supports_anon_versioning=no
13819     case `$LD -v 2>&1` in
13820       *GNU\ gold*) supports_anon_versioning=yes ;;
13821       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13822       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13823       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13824       *\ 2.11.*) ;; # other 2.11 versions
13825       *) supports_anon_versioning=yes ;;
13826     esac
13827
13828     # See if GNU ld supports shared libraries.
13829     case $host_os in
13830     aix[3-9]*)
13831       # On AIX/PPC, the GNU linker is very broken
13832       if test "$host_cpu" != ia64; then
13833         ld_shlibs=no
13834         cat <<_LT_EOF 1>&2
13835
13836 *** Warning: the GNU linker, at least up to release 2.19, is reported
13837 *** to be unable to reliably create shared libraries on AIX.
13838 *** Therefore, libtool is disabling shared libraries support.  If you
13839 *** really care for shared libraries, you may want to install binutils
13840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13841 *** You will then need to restart the configuration process.
13842
13843 _LT_EOF
13844       fi
13845       ;;
13846
13847     amigaos*)
13848       case $host_cpu in
13849       powerpc)
13850             # see comment about AmigaOS4 .so support
13851             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852             archive_expsym_cmds=''
13853         ;;
13854       m68k)
13855             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)'
13856             hardcode_libdir_flag_spec='-L$libdir'
13857             hardcode_minus_L=yes
13858         ;;
13859       esac
13860       ;;
13861
13862     beos*)
13863       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864         allow_undefined_flag=unsupported
13865         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13866         # support --undefined.  This deserves some investigation.  FIXME
13867         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868       else
13869         ld_shlibs=no
13870       fi
13871       ;;
13872
13873     cygwin* | mingw* | pw32* | cegcc*)
13874       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13875       # as there is no search path for DLLs.
13876       hardcode_libdir_flag_spec='-L$libdir'
13877       export_dynamic_flag_spec='${wl}--export-all-symbols'
13878       allow_undefined_flag=unsupported
13879       always_export_symbols=no
13880       enable_shared_with_static_runtimes=yes
13881       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13882       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13883
13884       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13885         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13886         # If the export-symbols file already is a .def file (1st line
13887         # is EXPORTS), use it as is; otherwise, prepend...
13888         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13889           cp $export_symbols $output_objdir/$soname.def;
13890         else
13891           echo EXPORTS > $output_objdir/$soname.def;
13892           cat $export_symbols >> $output_objdir/$soname.def;
13893         fi~
13894         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13895       else
13896         ld_shlibs=no
13897       fi
13898       ;;
13899
13900     haiku*)
13901       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902       link_all_deplibs=yes
13903       ;;
13904
13905     interix[3-9]*)
13906       hardcode_direct=no
13907       hardcode_shlibpath_var=no
13908       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13909       export_dynamic_flag_spec='${wl}-E'
13910       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13911       # Instead, shared libraries are loaded at an image base (0x10000000 by
13912       # default) and relocated if they conflict, which is a slow very memory
13913       # consuming and fragmenting process.  To avoid this, we pick a random,
13914       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13915       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13916       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13917       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'
13918       ;;
13919
13920     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13921       tmp_diet=no
13922       if test "$host_os" = linux-dietlibc; then
13923         case $cc_basename in
13924           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13925         esac
13926       fi
13927       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13928          && test "$tmp_diet" = no
13929       then
13930         tmp_addflag=' $pic_flag'
13931         tmp_sharedflag='-shared'
13932         case $cc_basename,$host_cpu in
13933         pgcc*)                          # Portland Group C compiler
13934           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13935           tmp_addflag=' $pic_flag'
13936           ;;
13937         pgf77* | pgf90* | pgf95* | pgfortran*)
13938                                         # Portland Group f77 and f90 compilers
13939           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13940           tmp_addflag=' $pic_flag -Mnomain' ;;
13941         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13942           tmp_addflag=' -i_dynamic' ;;
13943         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13944           tmp_addflag=' -i_dynamic -nofor_main' ;;
13945         ifc* | ifort*)                  # Intel Fortran compiler
13946           tmp_addflag=' -nofor_main' ;;
13947         lf95*)                          # Lahey Fortran 8.1
13948           whole_archive_flag_spec=
13949           tmp_sharedflag='--shared' ;;
13950         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13951           tmp_sharedflag='-qmkshrobj'
13952           tmp_addflag= ;;
13953         nvcc*)  # Cuda Compiler Driver 2.2
13954           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13955           compiler_needs_object=yes
13956           ;;
13957         esac
13958         case `$CC -V 2>&1 | sed 5q` in
13959         *Sun\ C*)                       # Sun C 5.9
13960           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13961           compiler_needs_object=yes
13962           tmp_sharedflag='-G' ;;
13963         *Sun\ F*)                       # Sun Fortran 8.3
13964           tmp_sharedflag='-G' ;;
13965         esac
13966         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13967
13968         if test "x$supports_anon_versioning" = xyes; then
13969           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13970             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13971             echo "local: *; };" >> $output_objdir/$libname.ver~
13972             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13973         fi
13974
13975         case $cc_basename in
13976         xlf* | bgf* | bgxlf* | mpixlf*)
13977           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13978           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13979           hardcode_libdir_flag_spec=
13980           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13981           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13982           if test "x$supports_anon_versioning" = xyes; then
13983             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13984               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13985               echo "local: *; };" >> $output_objdir/$libname.ver~
13986               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13987           fi
13988           ;;
13989         esac
13990       else
13991         ld_shlibs=no
13992       fi
13993       ;;
13994
13995     netbsd*)
13996       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13997         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13998         wlarc=
13999       else
14000         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14002       fi
14003       ;;
14004
14005     solaris*)
14006       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14007         ld_shlibs=no
14008         cat <<_LT_EOF 1>&2
14009
14010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14011 *** create shared libraries on Solaris systems.  Therefore, libtool
14012 *** is disabling shared libraries support.  We urge you to upgrade GNU
14013 *** binutils to release 2.9.1 or newer.  Another option is to modify
14014 *** your PATH or compiler configuration so that the native linker is
14015 *** used, and then restart.
14016
14017 _LT_EOF
14018       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14019         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14021       else
14022         ld_shlibs=no
14023       fi
14024       ;;
14025
14026     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14027       case `$LD -v 2>&1` in
14028         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14029         ld_shlibs=no
14030         cat <<_LT_EOF 1>&2
14031
14032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14033 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14034 *** is disabling shared libraries support.  We urge you to upgrade GNU
14035 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14036 *** your PATH or compiler configuration so that the native linker is
14037 *** used, and then restart.
14038
14039 _LT_EOF
14040         ;;
14041         *)
14042           # For security reasons, it is highly recommended that you always
14043           # use absolute paths for naming shared libraries, and exclude the
14044           # DT_RUNPATH tag from executables and libraries.  But doing so
14045           # requires that you compile everything twice, which is a pain.
14046           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14047             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14050           else
14051             ld_shlibs=no
14052           fi
14053         ;;
14054       esac
14055       ;;
14056
14057     sunos4*)
14058       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14059       wlarc=
14060       hardcode_direct=yes
14061       hardcode_shlibpath_var=no
14062       ;;
14063
14064     *)
14065       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14068       else
14069         ld_shlibs=no
14070       fi
14071       ;;
14072     esac
14073
14074     if test "$ld_shlibs" = no; then
14075       runpath_var=
14076       hardcode_libdir_flag_spec=
14077       export_dynamic_flag_spec=
14078       whole_archive_flag_spec=
14079     fi
14080   else
14081     # PORTME fill in a description of your system's linker (not GNU ld)
14082     case $host_os in
14083     aix3*)
14084       allow_undefined_flag=unsupported
14085       always_export_symbols=yes
14086       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'
14087       # Note: this linker hardcodes the directories in LIBPATH if there
14088       # are no directories specified by -L.
14089       hardcode_minus_L=yes
14090       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14091         # Neither direct hardcoding nor static linking is supported with a
14092         # broken collect2.
14093         hardcode_direct=unsupported
14094       fi
14095       ;;
14096
14097     aix[4-9]*)
14098       if test "$host_cpu" = ia64; then
14099         # On IA64, the linker does run time linking by default, so we don't
14100         # have to do anything special.
14101         aix_use_runtimelinking=no
14102         exp_sym_flag='-Bexport'
14103         no_entry_flag=""
14104       else
14105         # If we're using GNU nm, then we don't want the "-C" option.
14106         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14107         # Also, AIX nm treats weak defined symbols like other global
14108         # defined symbols, whereas GNU nm marks them as "W".
14109         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14110           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14111         else
14112           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'
14113         fi
14114         aix_use_runtimelinking=no
14115
14116         # Test if we are trying to use run time linking or normal
14117         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14118         # need to do runtime linking.
14119         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14120           for ld_flag in $LDFLAGS; do
14121           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14122             aix_use_runtimelinking=yes
14123             break
14124           fi
14125           done
14126           ;;
14127         esac
14128
14129         exp_sym_flag='-bexport'
14130         no_entry_flag='-bnoentry'
14131       fi
14132
14133       # When large executables or shared objects are built, AIX ld can
14134       # have problems creating the table of contents.  If linking a library
14135       # or program results in "error TOC overflow" add -mminimal-toc to
14136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14138
14139       archive_cmds=''
14140       hardcode_direct=yes
14141       hardcode_direct_absolute=yes
14142       hardcode_libdir_separator=':'
14143       link_all_deplibs=yes
14144       file_list_spec='${wl}-f,'
14145
14146       if test "$GCC" = yes; then
14147         case $host_os in aix4.[012]|aix4.[012].*)
14148         # We only want to do this on AIX 4.2 and lower, the check
14149         # below for broken collect2 doesn't work under 4.3+
14150           collect2name=`${CC} -print-prog-name=collect2`
14151           if test -f "$collect2name" &&
14152            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14153           then
14154           # We have reworked collect2
14155           :
14156           else
14157           # We have old collect2
14158           hardcode_direct=unsupported
14159           # It fails to find uninstalled libraries when the uninstalled
14160           # path is not listed in the libpath.  Setting hardcode_minus_L
14161           # to unsupported forces relinking
14162           hardcode_minus_L=yes
14163           hardcode_libdir_flag_spec='-L$libdir'
14164           hardcode_libdir_separator=
14165           fi
14166           ;;
14167         esac
14168         shared_flag='-shared'
14169         if test "$aix_use_runtimelinking" = yes; then
14170           shared_flag="$shared_flag "'${wl}-G'
14171         fi
14172       else
14173         # not using gcc
14174         if test "$host_cpu" = ia64; then
14175         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14176         # chokes on -Wl,-G. The following line is correct:
14177           shared_flag='-G'
14178         else
14179           if test "$aix_use_runtimelinking" = yes; then
14180             shared_flag='${wl}-G'
14181           else
14182             shared_flag='${wl}-bM:SRE'
14183           fi
14184         fi
14185       fi
14186
14187       export_dynamic_flag_spec='${wl}-bexpall'
14188       # It seems that -bexpall does not export symbols beginning with
14189       # underscore (_), so it is better to generate a list of symbols to export.
14190       always_export_symbols=yes
14191       if test "$aix_use_runtimelinking" = yes; then
14192         # Warning - without using the other runtime loading flags (-brtl),
14193         # -berok will link without error, but may produce a broken library.
14194         allow_undefined_flag='-berok'
14195         # Determine the default libpath from the value encoded in an
14196         # empty executable.
14197         if test "${lt_cv_aix_libpath+set}" = set; then
14198   aix_libpath=$lt_cv_aix_libpath
14199 else
14200   if ${lt_cv_aix_libpath_+:} false; then :
14201   $as_echo_n "(cached) " >&6
14202 else
14203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205
14206 int
14207 main ()
14208 {
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215
14216   lt_aix_libpath_sed='
14217       /Import File Strings/,/^$/ {
14218           /^0/ {
14219               s/^0  *\([^ ]*\) *$/\1/
14220               p
14221           }
14222       }'
14223   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224   # Check for a 64-bit object if we didn't find anything.
14225   if test -z "$lt_cv_aix_libpath_"; then
14226     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14227   fi
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext \
14230     conftest$ac_exeext conftest.$ac_ext
14231   if test -z "$lt_cv_aix_libpath_"; then
14232     lt_cv_aix_libpath_="/usr/lib:/lib"
14233   fi
14234
14235 fi
14236
14237   aix_libpath=$lt_cv_aix_libpath_
14238 fi
14239
14240         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14241         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14242       else
14243         if test "$host_cpu" = ia64; then
14244           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14245           allow_undefined_flag="-z nodefs"
14246           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"
14247         else
14248          # Determine the default libpath from the value encoded in an
14249          # empty executable.
14250          if test "${lt_cv_aix_libpath+set}" = set; then
14251   aix_libpath=$lt_cv_aix_libpath
14252 else
14253   if ${lt_cv_aix_libpath_+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h.  */
14258
14259 int
14260 main ()
14261 {
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268
14269   lt_aix_libpath_sed='
14270       /Import File Strings/,/^$/ {
14271           /^0/ {
14272               s/^0  *\([^ ]*\) *$/\1/
14273               p
14274           }
14275       }'
14276   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277   # Check for a 64-bit object if we didn't find anything.
14278   if test -z "$lt_cv_aix_libpath_"; then
14279     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280   fi
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext \
14283     conftest$ac_exeext conftest.$ac_ext
14284   if test -z "$lt_cv_aix_libpath_"; then
14285     lt_cv_aix_libpath_="/usr/lib:/lib"
14286   fi
14287
14288 fi
14289
14290   aix_libpath=$lt_cv_aix_libpath_
14291 fi
14292
14293          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14294           # Warning - without using the other run time loading flags,
14295           # -berok will link without error, but may produce a broken library.
14296           no_undefined_flag=' ${wl}-bernotok'
14297           allow_undefined_flag=' ${wl}-berok'
14298           if test "$with_gnu_ld" = yes; then
14299             # We only use this code for GNU lds that support --whole-archive.
14300             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14301           else
14302             # Exported symbols can be pulled into shared objects from archives
14303             whole_archive_flag_spec='$convenience'
14304           fi
14305           archive_cmds_need_lc=yes
14306           # This is similar to how AIX traditionally builds its shared libraries.
14307           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'
14308         fi
14309       fi
14310       ;;
14311
14312     amigaos*)
14313       case $host_cpu in
14314       powerpc)
14315             # see comment about AmigaOS4 .so support
14316             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317             archive_expsym_cmds=''
14318         ;;
14319       m68k)
14320             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)'
14321             hardcode_libdir_flag_spec='-L$libdir'
14322             hardcode_minus_L=yes
14323         ;;
14324       esac
14325       ;;
14326
14327     bsdi[45]*)
14328       export_dynamic_flag_spec=-rdynamic
14329       ;;
14330
14331     cygwin* | mingw* | pw32* | cegcc*)
14332       # When not using gcc, we currently assume that we are using
14333       # Microsoft Visual C++.
14334       # hardcode_libdir_flag_spec is actually meaningless, as there is
14335       # no search path for DLLs.
14336       case $cc_basename in
14337       cl*)
14338         # Native MSVC
14339         hardcode_libdir_flag_spec=' '
14340         allow_undefined_flag=unsupported
14341         always_export_symbols=yes
14342         file_list_spec='@'
14343         # Tell ltmain to make .lib files, not .a files.
14344         libext=lib
14345         # Tell ltmain to make .dll files, not .so files.
14346         shrext_cmds=".dll"
14347         # FIXME: Setting linknames here is a bad hack.
14348         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14349         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14350             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14351           else
14352             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14353           fi~
14354           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14355           linknames='
14356         # The linker will not automatically build a static lib if we build a DLL.
14357         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14358         enable_shared_with_static_runtimes=yes
14359         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14360         # Don't use ranlib
14361         old_postinstall_cmds='chmod 644 $oldlib'
14362         postlink_cmds='lt_outputfile="@OUTPUT@"~
14363           lt_tool_outputfile="@TOOL_OUTPUT@"~
14364           case $lt_outputfile in
14365             *.exe|*.EXE) ;;
14366             *)
14367               lt_outputfile="$lt_outputfile.exe"
14368               lt_tool_outputfile="$lt_tool_outputfile.exe"
14369               ;;
14370           esac~
14371           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14372             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14373             $RM "$lt_outputfile.manifest";
14374           fi'
14375         ;;
14376       *)
14377         # Assume MSVC wrapper
14378         hardcode_libdir_flag_spec=' '
14379         allow_undefined_flag=unsupported
14380         # Tell ltmain to make .lib files, not .a files.
14381         libext=lib
14382         # Tell ltmain to make .dll files, not .so files.
14383         shrext_cmds=".dll"
14384         # FIXME: Setting linknames here is a bad hack.
14385         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14386         # The linker will automatically build a .lib file if we build a DLL.
14387         old_archive_from_new_cmds='true'
14388         # FIXME: Should let the user specify the lib program.
14389         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14390         enable_shared_with_static_runtimes=yes
14391         ;;
14392       esac
14393       ;;
14394
14395     darwin* | rhapsody*)
14396
14397
14398   archive_cmds_need_lc=no
14399   hardcode_direct=no
14400   hardcode_automatic=yes
14401   hardcode_shlibpath_var=unsupported
14402   if test "$lt_cv_ld_force_load" = "yes"; then
14403     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14404   else
14405     whole_archive_flag_spec=''
14406   fi
14407   link_all_deplibs=yes
14408   allow_undefined_flag="$_lt_dar_allow_undefined"
14409   case $cc_basename in
14410      ifort*) _lt_dar_can_shared=yes ;;
14411      *) _lt_dar_can_shared=$GCC ;;
14412   esac
14413   if test "$_lt_dar_can_shared" = "yes"; then
14414     output_verbose_link_cmd=func_echo_all
14415     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14416     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14417     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}"
14418     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}"
14419
14420   else
14421   ld_shlibs=no
14422   fi
14423
14424       ;;
14425
14426     dgux*)
14427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14428       hardcode_libdir_flag_spec='-L$libdir'
14429       hardcode_shlibpath_var=no
14430       ;;
14431
14432     freebsd1*)
14433       ld_shlibs=no
14434       ;;
14435
14436     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14437     # support.  Future versions do this automatically, but an explicit c++rt0.o
14438     # does not break anything, and helps significantly (at the cost of a little
14439     # extra space).
14440     freebsd2.2*)
14441       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14442       hardcode_libdir_flag_spec='-R$libdir'
14443       hardcode_direct=yes
14444       hardcode_shlibpath_var=no
14445       ;;
14446
14447     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14448     freebsd2*)
14449       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14450       hardcode_direct=yes
14451       hardcode_minus_L=yes
14452       hardcode_shlibpath_var=no
14453       ;;
14454
14455     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14456     freebsd* | dragonfly*)
14457       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14458       hardcode_libdir_flag_spec='-R$libdir'
14459       hardcode_direct=yes
14460       hardcode_shlibpath_var=no
14461       ;;
14462
14463     hpux9*)
14464       if test "$GCC" = yes; then
14465         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14466       else
14467         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'
14468       fi
14469       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14470       hardcode_libdir_separator=:
14471       hardcode_direct=yes
14472
14473       # hardcode_minus_L: Not really in the search PATH,
14474       # but as the default location of the library.
14475       hardcode_minus_L=yes
14476       export_dynamic_flag_spec='${wl}-E'
14477       ;;
14478
14479     hpux10*)
14480       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14481         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14482       else
14483         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14484       fi
14485       if test "$with_gnu_ld" = no; then
14486         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14487         hardcode_libdir_flag_spec_ld='+b $libdir'
14488         hardcode_libdir_separator=:
14489         hardcode_direct=yes
14490         hardcode_direct_absolute=yes
14491         export_dynamic_flag_spec='${wl}-E'
14492         # hardcode_minus_L: Not really in the search PATH,
14493         # but as the default location of the library.
14494         hardcode_minus_L=yes
14495       fi
14496       ;;
14497
14498     hpux11*)
14499       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14500         case $host_cpu in
14501         hppa*64*)
14502           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14503           ;;
14504         ia64*)
14505           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14506           ;;
14507         *)
14508           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14509           ;;
14510         esac
14511       else
14512         case $host_cpu in
14513         hppa*64*)
14514           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14515           ;;
14516         ia64*)
14517           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14518           ;;
14519         *)
14520
14521           # Older versions of the 11.00 compiler do not understand -b yet
14522           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14524 $as_echo_n "checking if $CC understands -b... " >&6; }
14525 if ${lt_cv_prog_compiler__b+:} false; then :
14526   $as_echo_n "(cached) " >&6
14527 else
14528   lt_cv_prog_compiler__b=no
14529    save_LDFLAGS="$LDFLAGS"
14530    LDFLAGS="$LDFLAGS -b"
14531    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14532    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14533      # The linker can only warn and ignore the option if not recognized
14534      # So say no if there are warnings
14535      if test -s conftest.err; then
14536        # Append any errors to the config.log.
14537        cat conftest.err 1>&5
14538        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14539        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540        if diff conftest.exp conftest.er2 >/dev/null; then
14541          lt_cv_prog_compiler__b=yes
14542        fi
14543      else
14544        lt_cv_prog_compiler__b=yes
14545      fi
14546    fi
14547    $RM -r conftest*
14548    LDFLAGS="$save_LDFLAGS"
14549
14550 fi
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14552 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14553
14554 if test x"$lt_cv_prog_compiler__b" = xyes; then
14555     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14556 else
14557     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14558 fi
14559
14560           ;;
14561         esac
14562       fi
14563       if test "$with_gnu_ld" = no; then
14564         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14565         hardcode_libdir_separator=:
14566
14567         case $host_cpu in
14568         hppa*64*|ia64*)
14569           hardcode_direct=no
14570           hardcode_shlibpath_var=no
14571           ;;
14572         *)
14573           hardcode_direct=yes
14574           hardcode_direct_absolute=yes
14575           export_dynamic_flag_spec='${wl}-E'
14576
14577           # hardcode_minus_L: Not really in the search PATH,
14578           # but as the default location of the library.
14579           hardcode_minus_L=yes
14580           ;;
14581         esac
14582       fi
14583       ;;
14584
14585     irix5* | irix6* | nonstopux*)
14586       if test "$GCC" = yes; then
14587         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14588         # Try to use the -exported_symbol ld option, if it does not
14589         # work, assume that -exports_file does not work either and
14590         # implicitly export all symbols.
14591         # This should be the same for all languages, so no per-tag cache variable.
14592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14593 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14594 if ${lt_cv_irix_exported_symbol+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   save_LDFLAGS="$LDFLAGS"
14598            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14599            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601 int foo (void) { return 0; }
14602 _ACEOF
14603 if ac_fn_c_try_link "$LINENO"; then :
14604   lt_cv_irix_exported_symbol=yes
14605 else
14606   lt_cv_irix_exported_symbol=no
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext \
14609     conftest$ac_exeext conftest.$ac_ext
14610            LDFLAGS="$save_LDFLAGS"
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14613 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14614         if test "$lt_cv_irix_exported_symbol" = yes; then
14615           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14616         fi
14617       else
14618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14619         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14620       fi
14621       archive_cmds_need_lc='no'
14622       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14623       hardcode_libdir_separator=:
14624       inherit_rpath=yes
14625       link_all_deplibs=yes
14626       ;;
14627
14628     netbsd*)
14629       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14630         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14631       else
14632         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14633       fi
14634       hardcode_libdir_flag_spec='-R$libdir'
14635       hardcode_direct=yes
14636       hardcode_shlibpath_var=no
14637       ;;
14638
14639     newsos6)
14640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641       hardcode_direct=yes
14642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14643       hardcode_libdir_separator=:
14644       hardcode_shlibpath_var=no
14645       ;;
14646
14647     *nto* | *qnx*)
14648       ;;
14649
14650     openbsd*)
14651       if test -f /usr/libexec/ld.so; then
14652         hardcode_direct=yes
14653         hardcode_shlibpath_var=no
14654         hardcode_direct_absolute=yes
14655         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14656           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14657           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14658           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14659           export_dynamic_flag_spec='${wl}-E'
14660         else
14661           case $host_os in
14662            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14663              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14664              hardcode_libdir_flag_spec='-R$libdir'
14665              ;;
14666            *)
14667              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14668              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14669              ;;
14670           esac
14671         fi
14672       else
14673         ld_shlibs=no
14674       fi
14675       ;;
14676
14677     os2*)
14678       hardcode_libdir_flag_spec='-L$libdir'
14679       hardcode_minus_L=yes
14680       allow_undefined_flag=unsupported
14681       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'
14682       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14683       ;;
14684
14685     osf3*)
14686       if test "$GCC" = yes; then
14687         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14688         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14689       else
14690         allow_undefined_flag=' -expect_unresolved \*'
14691         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14692       fi
14693       archive_cmds_need_lc='no'
14694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14695       hardcode_libdir_separator=:
14696       ;;
14697
14698     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14699       if test "$GCC" = yes; then
14700         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14701         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14702         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14703       else
14704         allow_undefined_flag=' -expect_unresolved \*'
14705         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14706         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~
14707         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14708
14709         # Both c and cxx compiler support -rpath directly
14710         hardcode_libdir_flag_spec='-rpath $libdir'
14711       fi
14712       archive_cmds_need_lc='no'
14713       hardcode_libdir_separator=:
14714       ;;
14715
14716     solaris*)
14717       no_undefined_flag=' -z defs'
14718       if test "$GCC" = yes; then
14719         wlarc='${wl}'
14720         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14721         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14722           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14723       else
14724         case `$CC -V 2>&1` in
14725         *"Compilers 5.0"*)
14726           wlarc=''
14727           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14730           ;;
14731         *)
14732           wlarc='${wl}'
14733           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14734           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14735           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14736           ;;
14737         esac
14738       fi
14739       hardcode_libdir_flag_spec='-R$libdir'
14740       hardcode_shlibpath_var=no
14741       case $host_os in
14742       solaris2.[0-5] | solaris2.[0-5].*) ;;
14743       *)
14744         # The compiler driver will combine and reorder linker options,
14745         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14746         # but is careful enough not to reorder.
14747         # Supported since Solaris 2.6 (maybe 2.5.1?)
14748         if test "$GCC" = yes; then
14749           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14750         else
14751           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14752         fi
14753         ;;
14754       esac
14755       link_all_deplibs=yes
14756       ;;
14757
14758     sunos4*)
14759       if test "x$host_vendor" = xsequent; then
14760         # Use $CC to link under sequent, because it throws in some extra .o
14761         # files that make .init and .fini sections work.
14762         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14763       else
14764         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14765       fi
14766       hardcode_libdir_flag_spec='-L$libdir'
14767       hardcode_direct=yes
14768       hardcode_minus_L=yes
14769       hardcode_shlibpath_var=no
14770       ;;
14771
14772     sysv4)
14773       case $host_vendor in
14774         sni)
14775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776           hardcode_direct=yes # is this really true???
14777         ;;
14778         siemens)
14779           ## LD is ld it makes a PLAMLIB
14780           ## CC just makes a GrossModule.
14781           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14782           reload_cmds='$CC -r -o $output$reload_objs'
14783           hardcode_direct=no
14784         ;;
14785         motorola)
14786           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14788         ;;
14789       esac
14790       runpath_var='LD_RUN_PATH'
14791       hardcode_shlibpath_var=no
14792       ;;
14793
14794     sysv4.3*)
14795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796       hardcode_shlibpath_var=no
14797       export_dynamic_flag_spec='-Bexport'
14798       ;;
14799
14800     sysv4*MP*)
14801       if test -d /usr/nec; then
14802         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803         hardcode_shlibpath_var=no
14804         runpath_var=LD_RUN_PATH
14805         hardcode_runpath_var=yes
14806         ld_shlibs=yes
14807       fi
14808       ;;
14809
14810     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14811       no_undefined_flag='${wl}-z,text'
14812       archive_cmds_need_lc=no
14813       hardcode_shlibpath_var=no
14814       runpath_var='LD_RUN_PATH'
14815
14816       if test "$GCC" = yes; then
14817         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819       else
14820         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822       fi
14823       ;;
14824
14825     sysv5* | sco3.2v5* | sco5v6*)
14826       # Note: We can NOT use -z defs as we might desire, because we do not
14827       # link with -lc, and that would cause any symbols used from libc to
14828       # always be unresolved, which means just about no library would
14829       # ever link correctly.  If we're not using GNU ld we use -z text
14830       # though, which does catch some bad symbols but isn't as heavy-handed
14831       # as -z defs.
14832       no_undefined_flag='${wl}-z,text'
14833       allow_undefined_flag='${wl}-z,nodefs'
14834       archive_cmds_need_lc=no
14835       hardcode_shlibpath_var=no
14836       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14837       hardcode_libdir_separator=':'
14838       link_all_deplibs=yes
14839       export_dynamic_flag_spec='${wl}-Bexport'
14840       runpath_var='LD_RUN_PATH'
14841
14842       if test "$GCC" = yes; then
14843         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845       else
14846         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848       fi
14849       ;;
14850
14851     uts4*)
14852       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853       hardcode_libdir_flag_spec='-L$libdir'
14854       hardcode_shlibpath_var=no
14855       ;;
14856
14857     *)
14858       ld_shlibs=no
14859       ;;
14860     esac
14861
14862     if test x$host_vendor = xsni; then
14863       case $host in
14864       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865         export_dynamic_flag_spec='${wl}-Blargedynsym'
14866         ;;
14867       esac
14868     fi
14869   fi
14870
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14872 $as_echo "$ld_shlibs" >&6; }
14873 test "$ld_shlibs" = no && can_build_shared=no
14874
14875 with_gnu_ld=$with_gnu_ld
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891 #
14892 # Do we need to explicitly link libc?
14893 #
14894 case "x$archive_cmds_need_lc" in
14895 x|xyes)
14896   # Assume -lc should be added
14897   archive_cmds_need_lc=yes
14898
14899   if test "$enable_shared" = yes && test "$GCC" = yes; then
14900     case $archive_cmds in
14901     *'~'*)
14902       # FIXME: we may have to deal with multi-command sequences.
14903       ;;
14904     '$CC '*)
14905       # Test whether the compiler implicitly links with -lc since on some
14906       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14907       # to ld, don't add -lc before -lgcc.
14908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14909 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14910 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14911   $as_echo_n "(cached) " >&6
14912 else
14913   $RM conftest*
14914         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14915
14916         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14917   (eval $ac_compile) 2>&5
14918   ac_status=$?
14919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920   test $ac_status = 0; } 2>conftest.err; then
14921           soname=conftest
14922           lib=conftest
14923           libobjs=conftest.$ac_objext
14924           deplibs=
14925           wl=$lt_prog_compiler_wl
14926           pic_flag=$lt_prog_compiler_pic
14927           compiler_flags=-v
14928           linker_flags=-v
14929           verstring=
14930           output_objdir=.
14931           libname=conftest
14932           lt_save_allow_undefined_flag=$allow_undefined_flag
14933           allow_undefined_flag=
14934           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14935   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14936   ac_status=$?
14937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938   test $ac_status = 0; }
14939           then
14940             lt_cv_archive_cmds_need_lc=no
14941           else
14942             lt_cv_archive_cmds_need_lc=yes
14943           fi
14944           allow_undefined_flag=$lt_save_allow_undefined_flag
14945         else
14946           cat conftest.err 1>&5
14947         fi
14948         $RM conftest*
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14952 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14953       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14954       ;;
14955     esac
14956   fi
14957   ;;
14958 esac
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15118
15119 if test "$GCC" = yes; then
15120   case $host_os in
15121     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15122     *) lt_awk_arg="/^libraries:/" ;;
15123   esac
15124   case $host_os in
15125     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15126     *) lt_sed_strip_eq="s,=/,/,g" ;;
15127   esac
15128   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15129   case $lt_search_path_spec in
15130   *\;*)
15131     # if the path contains ";" then we assume it to be the separator
15132     # otherwise default to the standard path separator (i.e. ":") - it is
15133     # assumed that no part of a normal pathname contains ";" but that should
15134     # okay in the real world where ";" in dirpaths is itself problematic.
15135     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15136     ;;
15137   *)
15138     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15139     ;;
15140   esac
15141   # Ok, now we have the path, separated by spaces, we can step through it
15142   # and add multilib dir if necessary.
15143   lt_tmp_lt_search_path_spec=
15144   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15145   for lt_sys_path in $lt_search_path_spec; do
15146     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15147       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15148     else
15149       test -d "$lt_sys_path" && \
15150         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15151     fi
15152   done
15153   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15154 BEGIN {RS=" "; FS="/|\n";} {
15155   lt_foo="";
15156   lt_count=0;
15157   for (lt_i = NF; lt_i > 0; lt_i--) {
15158     if ($lt_i != "" && $lt_i != ".") {
15159       if ($lt_i == "..") {
15160         lt_count++;
15161       } else {
15162         if (lt_count == 0) {
15163           lt_foo="/" $lt_i lt_foo;
15164         } else {
15165           lt_count--;
15166         }
15167       }
15168     }
15169   }
15170   if (lt_foo != "") { lt_freq[lt_foo]++; }
15171   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15172 }'`
15173   # AWK program above erroneously prepends '/' to C:/dos/paths
15174   # for these hosts.
15175   case $host_os in
15176     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15177       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15178   esac
15179   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15180 else
15181   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15182 fi
15183 library_names_spec=
15184 libname_spec='lib$name'
15185 soname_spec=
15186 shrext_cmds=".so"
15187 postinstall_cmds=
15188 postuninstall_cmds=
15189 finish_cmds=
15190 finish_eval=
15191 shlibpath_var=
15192 shlibpath_overrides_runpath=unknown
15193 version_type=none
15194 dynamic_linker="$host_os ld.so"
15195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15196 need_lib_prefix=unknown
15197 hardcode_into_libs=no
15198
15199 # when you set need_version to no, make sure it does not cause -set_version
15200 # flags to be left without arguments
15201 need_version=unknown
15202
15203 case $host_os in
15204 aix3*)
15205   version_type=linux
15206   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15207   shlibpath_var=LIBPATH
15208
15209   # AIX 3 has no versioning support, so we append a major version to the name.
15210   soname_spec='${libname}${release}${shared_ext}$major'
15211   ;;
15212
15213 aix[4-9]*)
15214   version_type=linux
15215   need_lib_prefix=no
15216   need_version=no
15217   hardcode_into_libs=yes
15218   if test "$host_cpu" = ia64; then
15219     # AIX 5 supports IA64
15220     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15221     shlibpath_var=LD_LIBRARY_PATH
15222   else
15223     # With GCC up to 2.95.x, collect2 would create an import file
15224     # for dependence libraries.  The import file would start with
15225     # the line `#! .'.  This would cause the generated library to
15226     # depend on `.', always an invalid library.  This was fixed in
15227     # development snapshots of GCC prior to 3.0.
15228     case $host_os in
15229       aix4 | aix4.[01] | aix4.[01].*)
15230       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15231            echo ' yes '
15232            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15233         :
15234       else
15235         can_build_shared=no
15236       fi
15237       ;;
15238     esac
15239     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15240     # soname into executable. Probably we can add versioning support to
15241     # collect2, so additional links can be useful in future.
15242     if test "$aix_use_runtimelinking" = yes; then
15243       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15244       # instead of lib<name>.a to let people know that these are not
15245       # typical AIX shared libraries.
15246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247     else
15248       # We preserve .a as extension for shared libraries through AIX4.2
15249       # and later when we are not doing run time linking.
15250       library_names_spec='${libname}${release}.a $libname.a'
15251       soname_spec='${libname}${release}${shared_ext}$major'
15252     fi
15253     shlibpath_var=LIBPATH
15254   fi
15255   ;;
15256
15257 amigaos*)
15258   case $host_cpu in
15259   powerpc)
15260     # Since July 2007 AmigaOS4 officially supports .so libraries.
15261     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263     ;;
15264   m68k)
15265     library_names_spec='$libname.ixlibrary $libname.a'
15266     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15267     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15268     ;;
15269   esac
15270   ;;
15271
15272 beos*)
15273   library_names_spec='${libname}${shared_ext}'
15274   dynamic_linker="$host_os ld.so"
15275   shlibpath_var=LIBRARY_PATH
15276   ;;
15277
15278 bsdi[45]*)
15279   version_type=linux
15280   need_version=no
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282   soname_spec='${libname}${release}${shared_ext}$major'
15283   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284   shlibpath_var=LD_LIBRARY_PATH
15285   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287   # the default ld.so.conf also contains /usr/contrib/lib and
15288   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289   # libtool to hard-code these into programs
15290   ;;
15291
15292 cygwin* | mingw* | pw32* | cegcc*)
15293   version_type=windows
15294   shrext_cmds=".dll"
15295   need_version=no
15296   need_lib_prefix=no
15297
15298   case $GCC,$cc_basename in
15299   yes,*)
15300     # gcc
15301     library_names_spec='$libname.dll.a'
15302     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15303     postinstall_cmds='base_file=`basename \${file}`~
15304       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15305       dldir=$destdir/`dirname \$dlpath`~
15306       test -d \$dldir || mkdir -p \$dldir~
15307       $install_prog $dir/$dlname \$dldir/$dlname~
15308       chmod a+x \$dldir/$dlname~
15309       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15310         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15311       fi'
15312     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313       dlpath=$dir/\$dldll~
15314        $RM \$dlpath'
15315     shlibpath_overrides_runpath=yes
15316
15317     case $host_os in
15318     cygwin*)
15319       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15320       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321
15322       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15323       ;;
15324     mingw* | cegcc*)
15325       # MinGW DLLs use traditional 'lib' prefix
15326       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327       ;;
15328     pw32*)
15329       # pw32 DLLs use 'pw' prefix rather than 'lib'
15330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331       ;;
15332     esac
15333     dynamic_linker='Win32 ld.exe'
15334     ;;
15335
15336   *,cl*)
15337     # Native MSVC
15338     libname_spec='$name'
15339     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15340     library_names_spec='${libname}.dll.lib'
15341
15342     case $build_os in
15343     mingw*)
15344       sys_lib_search_path_spec=
15345       lt_save_ifs=$IFS
15346       IFS=';'
15347       for lt_path in $LIB
15348       do
15349         IFS=$lt_save_ifs
15350         # Let DOS variable expansion print the short 8.3 style file name.
15351         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15352         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15353       done
15354       IFS=$lt_save_ifs
15355       # Convert to MSYS style.
15356       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15357       ;;
15358     cygwin*)
15359       # Convert to unix form, then to dos form, then back to unix form
15360       # but this time dos style (no spaces!) so that the unix form looks
15361       # like /cygdrive/c/PROGRA~1:/cygdr...
15362       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15363       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15364       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15365       ;;
15366     *)
15367       sys_lib_search_path_spec="$LIB"
15368       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15369         # It is most probably a Windows format PATH.
15370         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15371       else
15372         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15373       fi
15374       # FIXME: find the short name or the path components, as spaces are
15375       # common. (e.g. "Program Files" -> "PROGRA~1")
15376       ;;
15377     esac
15378
15379     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15380     postinstall_cmds='base_file=`basename \${file}`~
15381       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15382       dldir=$destdir/`dirname \$dlpath`~
15383       test -d \$dldir || mkdir -p \$dldir~
15384       $install_prog $dir/$dlname \$dldir/$dlname'
15385     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15386       dlpath=$dir/\$dldll~
15387        $RM \$dlpath'
15388     shlibpath_overrides_runpath=yes
15389     dynamic_linker='Win32 link.exe'
15390     ;;
15391
15392   *)
15393     # Assume MSVC wrapper
15394     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15395     dynamic_linker='Win32 ld.exe'
15396     ;;
15397   esac
15398   # FIXME: first we should search . and the directory the executable is in
15399   shlibpath_var=PATH
15400   ;;
15401
15402 darwin* | rhapsody*)
15403   dynamic_linker="$host_os dyld"
15404   version_type=darwin
15405   need_lib_prefix=no
15406   need_version=no
15407   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15408   soname_spec='${libname}${release}${major}$shared_ext'
15409   shlibpath_overrides_runpath=yes
15410   shlibpath_var=DYLD_LIBRARY_PATH
15411   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15412
15413   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15414   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15415   ;;
15416
15417 dgux*)
15418   version_type=linux
15419   need_lib_prefix=no
15420   need_version=no
15421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15422   soname_spec='${libname}${release}${shared_ext}$major'
15423   shlibpath_var=LD_LIBRARY_PATH
15424   ;;
15425
15426 freebsd1*)
15427   dynamic_linker=no
15428   ;;
15429
15430 freebsd* | dragonfly*)
15431   # DragonFly does not have aout.  When/if they implement a new
15432   # versioning mechanism, adjust this.
15433   if test -x /usr/bin/objformat; then
15434     objformat=`/usr/bin/objformat`
15435   else
15436     case $host_os in
15437     freebsd[123]*) objformat=aout ;;
15438     *) objformat=elf ;;
15439     esac
15440   fi
15441   version_type=freebsd-$objformat
15442   case $version_type in
15443     freebsd-elf*)
15444       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15445       need_version=no
15446       need_lib_prefix=no
15447       ;;
15448     freebsd-*)
15449       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15450       need_version=yes
15451       ;;
15452   esac
15453   shlibpath_var=LD_LIBRARY_PATH
15454   case $host_os in
15455   freebsd2*)
15456     shlibpath_overrides_runpath=yes
15457     ;;
15458   freebsd3.[01]* | freebsdelf3.[01]*)
15459     shlibpath_overrides_runpath=yes
15460     hardcode_into_libs=yes
15461     ;;
15462   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15463   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15464     shlibpath_overrides_runpath=no
15465     hardcode_into_libs=yes
15466     ;;
15467   *) # from 4.6 on, and DragonFly
15468     shlibpath_overrides_runpath=yes
15469     hardcode_into_libs=yes
15470     ;;
15471   esac
15472   ;;
15473
15474 gnu*)
15475   version_type=linux
15476   need_lib_prefix=no
15477   need_version=no
15478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479   soname_spec='${libname}${release}${shared_ext}$major'
15480   shlibpath_var=LD_LIBRARY_PATH
15481   hardcode_into_libs=yes
15482   ;;
15483
15484 haiku*)
15485   version_type=linux
15486   need_lib_prefix=no
15487   need_version=no
15488   dynamic_linker="$host_os runtime_loader"
15489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15490   soname_spec='${libname}${release}${shared_ext}$major'
15491   shlibpath_var=LIBRARY_PATH
15492   shlibpath_overrides_runpath=yes
15493   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15494   hardcode_into_libs=yes
15495   ;;
15496
15497 hpux9* | hpux10* | hpux11*)
15498   # Give a soname corresponding to the major version so that dld.sl refuses to
15499   # link against other versions.
15500   version_type=sunos
15501   need_lib_prefix=no
15502   need_version=no
15503   case $host_cpu in
15504   ia64*)
15505     shrext_cmds='.so'
15506     hardcode_into_libs=yes
15507     dynamic_linker="$host_os dld.so"
15508     shlibpath_var=LD_LIBRARY_PATH
15509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511     soname_spec='${libname}${release}${shared_ext}$major'
15512     if test "X$HPUX_IA64_MODE" = X32; then
15513       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15514     else
15515       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15516     fi
15517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518     ;;
15519   hppa*64*)
15520     shrext_cmds='.sl'
15521     hardcode_into_libs=yes
15522     dynamic_linker="$host_os dld.sl"
15523     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15524     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526     soname_spec='${libname}${release}${shared_ext}$major'
15527     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15528     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15529     ;;
15530   *)
15531     shrext_cmds='.sl'
15532     dynamic_linker="$host_os dld.sl"
15533     shlibpath_var=SHLIB_PATH
15534     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536     soname_spec='${libname}${release}${shared_ext}$major'
15537     ;;
15538   esac
15539   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15540   postinstall_cmds='chmod 555 $lib'
15541   # or fails outright, so override atomically:
15542   install_override_mode=555
15543   ;;
15544
15545 interix[3-9]*)
15546   version_type=linux
15547   need_lib_prefix=no
15548   need_version=no
15549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550   soname_spec='${libname}${release}${shared_ext}$major'
15551   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15552   shlibpath_var=LD_LIBRARY_PATH
15553   shlibpath_overrides_runpath=no
15554   hardcode_into_libs=yes
15555   ;;
15556
15557 irix5* | irix6* | nonstopux*)
15558   case $host_os in
15559     nonstopux*) version_type=nonstopux ;;
15560     *)
15561         if test "$lt_cv_prog_gnu_ld" = yes; then
15562                 version_type=linux
15563         else
15564                 version_type=irix
15565         fi ;;
15566   esac
15567   need_lib_prefix=no
15568   need_version=no
15569   soname_spec='${libname}${release}${shared_ext}$major'
15570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15571   case $host_os in
15572   irix5* | nonstopux*)
15573     libsuff= shlibsuff=
15574     ;;
15575   *)
15576     case $LD in # libtool.m4 will add one of these switches to LD
15577     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15578       libsuff= shlibsuff= libmagic=32-bit;;
15579     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15580       libsuff=32 shlibsuff=N32 libmagic=N32;;
15581     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15582       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15583     *) libsuff= shlibsuff= libmagic=never-match;;
15584     esac
15585     ;;
15586   esac
15587   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15588   shlibpath_overrides_runpath=no
15589   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15590   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15591   hardcode_into_libs=yes
15592   ;;
15593
15594 # No shared lib support for Linux oldld, aout, or coff.
15595 linux*oldld* | linux*aout* | linux*coff*)
15596   dynamic_linker=no
15597   ;;
15598
15599 # This must be Linux ELF.
15600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15601   version_type=linux
15602   need_lib_prefix=no
15603   need_version=no
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15607   shlibpath_var=LD_LIBRARY_PATH
15608   shlibpath_overrides_runpath=no
15609
15610   # Some binutils ld are patched to set DT_RUNPATH
15611   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15612   $as_echo_n "(cached) " >&6
15613 else
15614   lt_cv_shlibpath_overrides_runpath=no
15615     save_LDFLAGS=$LDFLAGS
15616     save_libdir=$libdir
15617     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15618          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h.  */
15621
15622 int
15623 main ()
15624 {
15625
15626   ;
15627   return 0;
15628 }
15629 _ACEOF
15630 if ac_fn_c_try_link "$LINENO"; then :
15631   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15632   lt_cv_shlibpath_overrides_runpath=yes
15633 fi
15634 fi
15635 rm -f core conftest.err conftest.$ac_objext \
15636     conftest$ac_exeext conftest.$ac_ext
15637     LDFLAGS=$save_LDFLAGS
15638     libdir=$save_libdir
15639
15640 fi
15641
15642   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15643
15644   # This implies no fast_install, which is unacceptable.
15645   # Some rework will be needed to allow for fast_install
15646   # before this can be enabled.
15647   hardcode_into_libs=yes
15648
15649   # Add ABI-specific directories to the system library path.
15650   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15651
15652   # Append ld.so.conf contents to the search path
15653   if test -f /etc/ld.so.conf; then
15654     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15655     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15656
15657   fi
15658
15659   # We used to test for /lib/ld.so.1 and disable shared libraries on
15660   # powerpc, because MkLinux only supported shared libraries with the
15661   # GNU dynamic linker.  Since this was broken with cross compilers,
15662   # most powerpc-linux boxes support dynamic linking these days and
15663   # people can always --disable-shared, the test was removed, and we
15664   # assume the GNU/Linux dynamic linker is in use.
15665   dynamic_linker='GNU/Linux ld.so'
15666   ;;
15667
15668 netbsd*)
15669   version_type=sunos
15670   need_lib_prefix=no
15671   need_version=no
15672   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15675     dynamic_linker='NetBSD (a.out) ld.so'
15676   else
15677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15678     soname_spec='${libname}${release}${shared_ext}$major'
15679     dynamic_linker='NetBSD ld.elf_so'
15680   fi
15681   shlibpath_var=LD_LIBRARY_PATH
15682   shlibpath_overrides_runpath=yes
15683   hardcode_into_libs=yes
15684   ;;
15685
15686 newsos6)
15687   version_type=linux
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   shlibpath_var=LD_LIBRARY_PATH
15690   shlibpath_overrides_runpath=yes
15691   ;;
15692
15693 *nto* | *qnx*)
15694   version_type=qnx
15695   need_lib_prefix=no
15696   need_version=no
15697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698   soname_spec='${libname}${release}${shared_ext}$major'
15699   shlibpath_var=LD_LIBRARY_PATH
15700   shlibpath_overrides_runpath=no
15701   hardcode_into_libs=yes
15702   dynamic_linker='ldqnx.so'
15703   ;;
15704
15705 openbsd*)
15706   version_type=sunos
15707   sys_lib_dlsearch_path_spec="/usr/lib"
15708   need_lib_prefix=no
15709   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15710   case $host_os in
15711     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15712     *)                          need_version=no  ;;
15713   esac
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718     case $host_os in
15719       openbsd2.[89] | openbsd2.[89].*)
15720         shlibpath_overrides_runpath=no
15721         ;;
15722       *)
15723         shlibpath_overrides_runpath=yes
15724         ;;
15725       esac
15726   else
15727     shlibpath_overrides_runpath=yes
15728   fi
15729   ;;
15730
15731 os2*)
15732   libname_spec='$name'
15733   shrext_cmds=".dll"
15734   need_lib_prefix=no
15735   library_names_spec='$libname${shared_ext} $libname.a'
15736   dynamic_linker='OS/2 ld.exe'
15737   shlibpath_var=LIBPATH
15738   ;;
15739
15740 osf3* | osf4* | osf5*)
15741   version_type=osf
15742   need_lib_prefix=no
15743   need_version=no
15744   soname_spec='${libname}${release}${shared_ext}$major'
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746   shlibpath_var=LD_LIBRARY_PATH
15747   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15748   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15749   ;;
15750
15751 rdos*)
15752   dynamic_linker=no
15753   ;;
15754
15755 solaris*)
15756   version_type=linux
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   hardcode_into_libs=yes
15764   # ldd complains unless libraries are executable
15765   postinstall_cmds='chmod +x $lib'
15766   ;;
15767
15768 sunos4*)
15769   version_type=sunos
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15771   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   shlibpath_overrides_runpath=yes
15774   if test "$with_gnu_ld" = yes; then
15775     need_lib_prefix=no
15776   fi
15777   need_version=yes
15778   ;;
15779
15780 sysv4 | sysv4.3*)
15781   version_type=linux
15782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783   soname_spec='${libname}${release}${shared_ext}$major'
15784   shlibpath_var=LD_LIBRARY_PATH
15785   case $host_vendor in
15786     sni)
15787       shlibpath_overrides_runpath=no
15788       need_lib_prefix=no
15789       runpath_var=LD_RUN_PATH
15790       ;;
15791     siemens)
15792       need_lib_prefix=no
15793       ;;
15794     motorola)
15795       need_lib_prefix=no
15796       need_version=no
15797       shlibpath_overrides_runpath=no
15798       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15799       ;;
15800   esac
15801   ;;
15802
15803 sysv4*MP*)
15804   if test -d /usr/nec ;then
15805     version_type=linux
15806     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15807     soname_spec='$libname${shared_ext}.$major'
15808     shlibpath_var=LD_LIBRARY_PATH
15809   fi
15810   ;;
15811
15812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15813   version_type=freebsd-elf
15814   need_lib_prefix=no
15815   need_version=no
15816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15817   soname_spec='${libname}${release}${shared_ext}$major'
15818   shlibpath_var=LD_LIBRARY_PATH
15819   shlibpath_overrides_runpath=yes
15820   hardcode_into_libs=yes
15821   if test "$with_gnu_ld" = yes; then
15822     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15823   else
15824     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15825     case $host_os in
15826       sco3.2v5*)
15827         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15828         ;;
15829     esac
15830   fi
15831   sys_lib_dlsearch_path_spec='/usr/lib'
15832   ;;
15833
15834 tpf*)
15835   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15836   version_type=linux
15837   need_lib_prefix=no
15838   need_version=no
15839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   shlibpath_overrides_runpath=no
15842   hardcode_into_libs=yes
15843   ;;
15844
15845 uts4*)
15846   version_type=linux
15847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848   soname_spec='${libname}${release}${shared_ext}$major'
15849   shlibpath_var=LD_LIBRARY_PATH
15850   ;;
15851
15852 *)
15853   dynamic_linker=no
15854   ;;
15855 esac
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15857 $as_echo "$dynamic_linker" >&6; }
15858 test "$dynamic_linker" = no && can_build_shared=no
15859
15860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15861 if test "$GCC" = yes; then
15862   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15863 fi
15864
15865 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15866   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15867 fi
15868 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15869   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15870 fi
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15965 hardcode_action=
15966 if test -n "$hardcode_libdir_flag_spec" ||
15967    test -n "$runpath_var" ||
15968    test "X$hardcode_automatic" = "Xyes" ; then
15969
15970   # We can hardcode non-existent directories.
15971   if test "$hardcode_direct" != no &&
15972      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15973      # have to relink, otherwise we might link with an installed library
15974      # when we should be linking with a yet-to-be-installed one
15975      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15976      test "$hardcode_minus_L" != no; then
15977     # Linking always hardcodes the temporary library directory.
15978     hardcode_action=relink
15979   else
15980     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15981     hardcode_action=immediate
15982   fi
15983 else
15984   # We cannot hardcode anything, or else we can only hardcode existing
15985   # directories.
15986   hardcode_action=unsupported
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15989 $as_echo "$hardcode_action" >&6; }
15990
15991 if test "$hardcode_action" = relink ||
15992    test "$inherit_rpath" = yes; then
15993   # Fast installation is not supported
15994   enable_fast_install=no
15995 elif test "$shlibpath_overrides_runpath" = yes ||
15996      test "$enable_shared" = no; then
15997   # Fast installation is not necessary
15998   enable_fast_install=needless
15999 fi
16000
16001
16002
16003
16004
16005
16006   if test "x$enable_dlopen" != xyes; then
16007   enable_dlopen=unknown
16008   enable_dlopen_self=unknown
16009   enable_dlopen_self_static=unknown
16010 else
16011   lt_cv_dlopen=no
16012   lt_cv_dlopen_libs=
16013
16014   case $host_os in
16015   beos*)
16016     lt_cv_dlopen="load_add_on"
16017     lt_cv_dlopen_libs=
16018     lt_cv_dlopen_self=yes
16019     ;;
16020
16021   mingw* | pw32* | cegcc*)
16022     lt_cv_dlopen="LoadLibrary"
16023     lt_cv_dlopen_libs=
16024     ;;
16025
16026   cygwin*)
16027     lt_cv_dlopen="dlopen"
16028     lt_cv_dlopen_libs=
16029     ;;
16030
16031   darwin*)
16032   # if libdl is installed we need to link against it
16033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16035 if ${ac_cv_lib_dl_dlopen+:} false; then :
16036   $as_echo_n "(cached) " >&6
16037 else
16038   ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-ldl  $LIBS"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h.  */
16042
16043 /* Override any GCC internal prototype to avoid an error.
16044    Use char because int might match the return type of a GCC
16045    builtin and then its argument prototype would still apply.  */
16046 #ifdef __cplusplus
16047 extern "C"
16048 #endif
16049 char dlopen ();
16050 int
16051 main ()
16052 {
16053 return dlopen ();
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 if ac_fn_c_try_link "$LINENO"; then :
16059   ac_cv_lib_dl_dlopen=yes
16060 else
16061   ac_cv_lib_dl_dlopen=no
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext \
16064     conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16066 fi
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16069 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16070   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16071 else
16072
16073     lt_cv_dlopen="dyld"
16074     lt_cv_dlopen_libs=
16075     lt_cv_dlopen_self=yes
16076
16077 fi
16078
16079     ;;
16080
16081   *)
16082     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16083 if test "x$ac_cv_func_shl_load" = xyes; then :
16084   lt_cv_dlopen="shl_load"
16085 else
16086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16087 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16088 if ${ac_cv_lib_dld_shl_load+:} false; then :
16089   $as_echo_n "(cached) " >&6
16090 else
16091   ac_check_lib_save_LIBS=$LIBS
16092 LIBS="-ldld  $LIBS"
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h.  */
16095
16096 /* Override any GCC internal prototype to avoid an error.
16097    Use char because int might match the return type of a GCC
16098    builtin and then its argument prototype would still apply.  */
16099 #ifdef __cplusplus
16100 extern "C"
16101 #endif
16102 char shl_load ();
16103 int
16104 main ()
16105 {
16106 return shl_load ();
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112   ac_cv_lib_dld_shl_load=yes
16113 else
16114   ac_cv_lib_dld_shl_load=no
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext \
16117     conftest$ac_exeext conftest.$ac_ext
16118 LIBS=$ac_check_lib_save_LIBS
16119 fi
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16121 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16122 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16123   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16124 else
16125   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16126 if test "x$ac_cv_func_dlopen" = xyes; then :
16127   lt_cv_dlopen="dlopen"
16128 else
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16131 if ${ac_cv_lib_dl_dlopen+:} false; then :
16132   $as_echo_n "(cached) " >&6
16133 else
16134   ac_check_lib_save_LIBS=$LIBS
16135 LIBS="-ldl  $LIBS"
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h.  */
16138
16139 /* Override any GCC internal prototype to avoid an error.
16140    Use char because int might match the return type of a GCC
16141    builtin and then its argument prototype would still apply.  */
16142 #ifdef __cplusplus
16143 extern "C"
16144 #endif
16145 char dlopen ();
16146 int
16147 main ()
16148 {
16149 return dlopen ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 if ac_fn_c_try_link "$LINENO"; then :
16155   ac_cv_lib_dl_dlopen=yes
16156 else
16157   ac_cv_lib_dl_dlopen=no
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext \
16160     conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16162 fi
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16166   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16167 else
16168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16170 if ${ac_cv_lib_svld_dlopen+:} false; then :
16171   $as_echo_n "(cached) " >&6
16172 else
16173   ac_check_lib_save_LIBS=$LIBS
16174 LIBS="-lsvld  $LIBS"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h.  */
16177
16178 /* Override any GCC internal prototype to avoid an error.
16179    Use char because int might match the return type of a GCC
16180    builtin and then its argument prototype would still apply.  */
16181 #ifdef __cplusplus
16182 extern "C"
16183 #endif
16184 char dlopen ();
16185 int
16186 main ()
16187 {
16188 return dlopen ();
16189   ;
16190   return 0;
16191 }
16192 _ACEOF
16193 if ac_fn_c_try_link "$LINENO"; then :
16194   ac_cv_lib_svld_dlopen=yes
16195 else
16196   ac_cv_lib_svld_dlopen=no
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext \
16199     conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16201 fi
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16204 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16206 else
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16208 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16209 if ${ac_cv_lib_dld_dld_link+:} false; then :
16210   $as_echo_n "(cached) " >&6
16211 else
16212   ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-ldld  $LIBS"
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h.  */
16216
16217 /* Override any GCC internal prototype to avoid an error.
16218    Use char because int might match the return type of a GCC
16219    builtin and then its argument prototype would still apply.  */
16220 #ifdef __cplusplus
16221 extern "C"
16222 #endif
16223 char dld_link ();
16224 int
16225 main ()
16226 {
16227 return dld_link ();
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 if ac_fn_c_try_link "$LINENO"; then :
16233   ac_cv_lib_dld_dld_link=yes
16234 else
16235   ac_cv_lib_dld_dld_link=no
16236 fi
16237 rm -f core conftest.err conftest.$ac_objext \
16238     conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16243 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16244   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16245 fi
16246
16247
16248 fi
16249
16250
16251 fi
16252
16253
16254 fi
16255
16256
16257 fi
16258
16259
16260 fi
16261
16262     ;;
16263   esac
16264
16265   if test "x$lt_cv_dlopen" != xno; then
16266     enable_dlopen=yes
16267   else
16268     enable_dlopen=no
16269   fi
16270
16271   case $lt_cv_dlopen in
16272   dlopen)
16273     save_CPPFLAGS="$CPPFLAGS"
16274     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16275
16276     save_LDFLAGS="$LDFLAGS"
16277     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16278
16279     save_LIBS="$LIBS"
16280     LIBS="$lt_cv_dlopen_libs $LIBS"
16281
16282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16284 if ${lt_cv_dlopen_self+:} false; then :
16285   $as_echo_n "(cached) " >&6
16286 else
16287           if test "$cross_compiling" = yes; then :
16288   lt_cv_dlopen_self=cross
16289 else
16290   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16291   lt_status=$lt_dlunknown
16292   cat > conftest.$ac_ext <<_LT_EOF
16293 #line $LINENO "configure"
16294 #include "confdefs.h"
16295
16296 #if HAVE_DLFCN_H
16297 #include <dlfcn.h>
16298 #endif
16299
16300 #include <stdio.h>
16301
16302 #ifdef RTLD_GLOBAL
16303 #  define LT_DLGLOBAL           RTLD_GLOBAL
16304 #else
16305 #  ifdef DL_GLOBAL
16306 #    define LT_DLGLOBAL         DL_GLOBAL
16307 #  else
16308 #    define LT_DLGLOBAL         0
16309 #  endif
16310 #endif
16311
16312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16313    find out it does not work in some platform. */
16314 #ifndef LT_DLLAZY_OR_NOW
16315 #  ifdef RTLD_LAZY
16316 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16317 #  else
16318 #    ifdef DL_LAZY
16319 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16320 #    else
16321 #      ifdef RTLD_NOW
16322 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16323 #      else
16324 #        ifdef DL_NOW
16325 #          define LT_DLLAZY_OR_NOW      DL_NOW
16326 #        else
16327 #          define LT_DLLAZY_OR_NOW      0
16328 #        endif
16329 #      endif
16330 #    endif
16331 #  endif
16332 #endif
16333
16334 /* When -fvisbility=hidden is used, assume the code has been annotated
16335    correspondingly for the symbols needed.  */
16336 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16337 int fnord () __attribute__((visibility("default")));
16338 #endif
16339
16340 int fnord () { return 42; }
16341 int main ()
16342 {
16343   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16344   int status = $lt_dlunknown;
16345
16346   if (self)
16347     {
16348       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16349       else
16350         {
16351           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16352           else puts (dlerror ());
16353         }
16354       /* dlclose (self); */
16355     }
16356   else
16357     puts (dlerror ());
16358
16359   return status;
16360 }
16361 _LT_EOF
16362   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16363   (eval $ac_link) 2>&5
16364   ac_status=$?
16365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16367     (./conftest; exit; ) >&5 2>/dev/null
16368     lt_status=$?
16369     case x$lt_status in
16370       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16371       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16372       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16373     esac
16374   else :
16375     # compilation failed
16376     lt_cv_dlopen_self=no
16377   fi
16378 fi
16379 rm -fr conftest*
16380
16381
16382 fi
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16384 $as_echo "$lt_cv_dlopen_self" >&6; }
16385
16386     if test "x$lt_cv_dlopen_self" = xyes; then
16387       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16389 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16390 if ${lt_cv_dlopen_self_static+:} false; then :
16391   $as_echo_n "(cached) " >&6
16392 else
16393           if test "$cross_compiling" = yes; then :
16394   lt_cv_dlopen_self_static=cross
16395 else
16396   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16397   lt_status=$lt_dlunknown
16398   cat > conftest.$ac_ext <<_LT_EOF
16399 #line $LINENO "configure"
16400 #include "confdefs.h"
16401
16402 #if HAVE_DLFCN_H
16403 #include <dlfcn.h>
16404 #endif
16405
16406 #include <stdio.h>
16407
16408 #ifdef RTLD_GLOBAL
16409 #  define LT_DLGLOBAL           RTLD_GLOBAL
16410 #else
16411 #  ifdef DL_GLOBAL
16412 #    define LT_DLGLOBAL         DL_GLOBAL
16413 #  else
16414 #    define LT_DLGLOBAL         0
16415 #  endif
16416 #endif
16417
16418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16419    find out it does not work in some platform. */
16420 #ifndef LT_DLLAZY_OR_NOW
16421 #  ifdef RTLD_LAZY
16422 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16423 #  else
16424 #    ifdef DL_LAZY
16425 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16426 #    else
16427 #      ifdef RTLD_NOW
16428 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16429 #      else
16430 #        ifdef DL_NOW
16431 #          define LT_DLLAZY_OR_NOW      DL_NOW
16432 #        else
16433 #          define LT_DLLAZY_OR_NOW      0
16434 #        endif
16435 #      endif
16436 #    endif
16437 #  endif
16438 #endif
16439
16440 /* When -fvisbility=hidden is used, assume the code has been annotated
16441    correspondingly for the symbols needed.  */
16442 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16443 int fnord () __attribute__((visibility("default")));
16444 #endif
16445
16446 int fnord () { return 42; }
16447 int main ()
16448 {
16449   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16450   int status = $lt_dlunknown;
16451
16452   if (self)
16453     {
16454       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16455       else
16456         {
16457           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16458           else puts (dlerror ());
16459         }
16460       /* dlclose (self); */
16461     }
16462   else
16463     puts (dlerror ());
16464
16465   return status;
16466 }
16467 _LT_EOF
16468   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16469   (eval $ac_link) 2>&5
16470   ac_status=$?
16471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16473     (./conftest; exit; ) >&5 2>/dev/null
16474     lt_status=$?
16475     case x$lt_status in
16476       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16477       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16478       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16479     esac
16480   else :
16481     # compilation failed
16482     lt_cv_dlopen_self_static=no
16483   fi
16484 fi
16485 rm -fr conftest*
16486
16487
16488 fi
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16490 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16491     fi
16492
16493     CPPFLAGS="$save_CPPFLAGS"
16494     LDFLAGS="$save_LDFLAGS"
16495     LIBS="$save_LIBS"
16496     ;;
16497   esac
16498
16499   case $lt_cv_dlopen_self in
16500   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16501   *) enable_dlopen_self=unknown ;;
16502   esac
16503
16504   case $lt_cv_dlopen_self_static in
16505   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16506   *) enable_dlopen_self_static=unknown ;;
16507   esac
16508 fi
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526 striplib=
16527 old_striplib=
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16529 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16530 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16531   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16532   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534 $as_echo "yes" >&6; }
16535 else
16536 # FIXME - insert some real tests, host_os isn't really good enough
16537   case $host_os in
16538   darwin*)
16539     if test -n "$STRIP" ; then
16540       striplib="$STRIP -x"
16541       old_striplib="$STRIP -S"
16542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16543 $as_echo "yes" >&6; }
16544     else
16545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547     fi
16548     ;;
16549   *)
16550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16551 $as_echo "no" >&6; }
16552     ;;
16553   esac
16554 fi
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567   # Report which library types will actually be built
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16569 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16571 $as_echo "$can_build_shared" >&6; }
16572
16573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16574 $as_echo_n "checking whether to build shared libraries... " >&6; }
16575   test "$can_build_shared" = "no" && enable_shared=no
16576
16577   # On AIX, shared libraries and static libraries use the same namespace, and
16578   # are all built from PIC.
16579   case $host_os in
16580   aix3*)
16581     test "$enable_shared" = yes && enable_static=no
16582     if test -n "$RANLIB"; then
16583       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16584       postinstall_cmds='$RANLIB $lib'
16585     fi
16586     ;;
16587
16588   aix[4-9]*)
16589     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16590       test "$enable_shared" = yes && enable_static=no
16591     fi
16592     ;;
16593   esac
16594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16595 $as_echo "$enable_shared" >&6; }
16596
16597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16598 $as_echo_n "checking whether to build static libraries... " >&6; }
16599   # Make sure either enable_shared or enable_static is yes.
16600   test "$enable_shared" = yes || enable_static=yes
16601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16602 $as_echo "$enable_static" >&6; }
16603
16604
16605
16606
16607 fi
16608 ac_ext=c
16609 ac_cpp='$CPP $CPPFLAGS'
16610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16613
16614 CC="$lt_save_CC"
16615
16616       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16617     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16618     (test "X$CXX" != "Xg++"))) ; then
16619   ac_ext=cpp
16620 ac_cpp='$CXXCPP $CPPFLAGS'
16621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16625 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16626 if test -z "$CXXCPP"; then
16627   if ${ac_cv_prog_CXXCPP+:} false; then :
16628   $as_echo_n "(cached) " >&6
16629 else
16630       # Double quotes because CXXCPP needs to be expanded
16631     for CXXCPP in "$CXX -E" "/lib/cpp"
16632     do
16633       ac_preproc_ok=false
16634 for ac_cxx_preproc_warn_flag in '' yes
16635 do
16636   # Use a header file that comes with gcc, so configuring glibc
16637   # with a fresh cross-compiler works.
16638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639   # <limits.h> exists even on freestanding compilers.
16640   # On the NeXT, cc -E runs the code through the compiler's parser,
16641   # not just through cpp. "Syntax error" is here to catch this case.
16642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h.  */
16644 #ifdef __STDC__
16645 # include <limits.h>
16646 #else
16647 # include <assert.h>
16648 #endif
16649                      Syntax error
16650 _ACEOF
16651 if ac_fn_cxx_try_cpp "$LINENO"; then :
16652
16653 else
16654   # Broken: fails on valid input.
16655 continue
16656 fi
16657 rm -f conftest.err conftest.i conftest.$ac_ext
16658
16659   # OK, works on sane cases.  Now check whether nonexistent headers
16660   # can be detected and how.
16661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h.  */
16663 #include <ac_nonexistent.h>
16664 _ACEOF
16665 if ac_fn_cxx_try_cpp "$LINENO"; then :
16666   # Broken: success on invalid input.
16667 continue
16668 else
16669   # Passes both tests.
16670 ac_preproc_ok=:
16671 break
16672 fi
16673 rm -f conftest.err conftest.i conftest.$ac_ext
16674
16675 done
16676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16677 rm -f conftest.i conftest.err conftest.$ac_ext
16678 if $ac_preproc_ok; then :
16679   break
16680 fi
16681
16682     done
16683     ac_cv_prog_CXXCPP=$CXXCPP
16684
16685 fi
16686   CXXCPP=$ac_cv_prog_CXXCPP
16687 else
16688   ac_cv_prog_CXXCPP=$CXXCPP
16689 fi
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16691 $as_echo "$CXXCPP" >&6; }
16692 ac_preproc_ok=false
16693 for ac_cxx_preproc_warn_flag in '' yes
16694 do
16695   # Use a header file that comes with gcc, so configuring glibc
16696   # with a fresh cross-compiler works.
16697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698   # <limits.h> exists even on freestanding compilers.
16699   # On the NeXT, cc -E runs the code through the compiler's parser,
16700   # not just through cpp. "Syntax error" is here to catch this case.
16701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h.  */
16703 #ifdef __STDC__
16704 # include <limits.h>
16705 #else
16706 # include <assert.h>
16707 #endif
16708                      Syntax error
16709 _ACEOF
16710 if ac_fn_cxx_try_cpp "$LINENO"; then :
16711
16712 else
16713   # Broken: fails on valid input.
16714 continue
16715 fi
16716 rm -f conftest.err conftest.i conftest.$ac_ext
16717
16718   # OK, works on sane cases.  Now check whether nonexistent headers
16719   # can be detected and how.
16720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h.  */
16722 #include <ac_nonexistent.h>
16723 _ACEOF
16724 if ac_fn_cxx_try_cpp "$LINENO"; then :
16725   # Broken: success on invalid input.
16726 continue
16727 else
16728   # Passes both tests.
16729 ac_preproc_ok=:
16730 break
16731 fi
16732 rm -f conftest.err conftest.i conftest.$ac_ext
16733
16734 done
16735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16736 rm -f conftest.i conftest.err conftest.$ac_ext
16737 if $ac_preproc_ok; then :
16738
16739 else
16740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16742 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16743 See \`config.log' for more details" "$LINENO" 5; }
16744 fi
16745
16746 ac_ext=c
16747 ac_cpp='$CPP $CPPFLAGS'
16748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751
16752 else
16753   _lt_caught_CXX_error=yes
16754 fi
16755
16756 ac_ext=cpp
16757 ac_cpp='$CXXCPP $CPPFLAGS'
16758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16761
16762 archive_cmds_need_lc_CXX=no
16763 allow_undefined_flag_CXX=
16764 always_export_symbols_CXX=no
16765 archive_expsym_cmds_CXX=
16766 compiler_needs_object_CXX=no
16767 export_dynamic_flag_spec_CXX=
16768 hardcode_direct_CXX=no
16769 hardcode_direct_absolute_CXX=no
16770 hardcode_libdir_flag_spec_CXX=
16771 hardcode_libdir_flag_spec_ld_CXX=
16772 hardcode_libdir_separator_CXX=
16773 hardcode_minus_L_CXX=no
16774 hardcode_shlibpath_var_CXX=unsupported
16775 hardcode_automatic_CXX=no
16776 inherit_rpath_CXX=no
16777 module_cmds_CXX=
16778 module_expsym_cmds_CXX=
16779 link_all_deplibs_CXX=unknown
16780 old_archive_cmds_CXX=$old_archive_cmds
16781 reload_flag_CXX=$reload_flag
16782 reload_cmds_CXX=$reload_cmds
16783 no_undefined_flag_CXX=
16784 whole_archive_flag_spec_CXX=
16785 enable_shared_with_static_runtimes_CXX=no
16786
16787 # Source file extension for C++ test sources.
16788 ac_ext=cpp
16789
16790 # Object file extension for compiled C++ test sources.
16791 objext=o
16792 objext_CXX=$objext
16793
16794 # No sense in running all these tests if we already determined that
16795 # the CXX compiler isn't working.  Some variables (like enable_shared)
16796 # are currently assumed to apply to all compilers on this platform,
16797 # and will be corrupted by setting them based on a non-working compiler.
16798 if test "$_lt_caught_CXX_error" != yes; then
16799   # Code to be used in simple compile tests
16800   lt_simple_compile_test_code="int some_variable = 0;"
16801
16802   # Code to be used in simple link tests
16803   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16804
16805   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16806
16807
16808
16809
16810
16811
16812 # If no C compiler was specified, use CC.
16813 LTCC=${LTCC-"$CC"}
16814
16815 # If no C compiler flags were specified, use CFLAGS.
16816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16817
16818 # Allow CC to be a program name with arguments.
16819 compiler=$CC
16820
16821
16822   # save warnings/boilerplate of simple test code
16823   ac_outfile=conftest.$ac_objext
16824 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16826 _lt_compiler_boilerplate=`cat conftest.err`
16827 $RM conftest*
16828
16829   ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16832 _lt_linker_boilerplate=`cat conftest.err`
16833 $RM -r conftest*
16834
16835
16836   # Allow CC to be a program name with arguments.
16837   lt_save_CC=$CC
16838   lt_save_CFLAGS=$CFLAGS
16839   lt_save_LD=$LD
16840   lt_save_GCC=$GCC
16841   GCC=$GXX
16842   lt_save_with_gnu_ld=$with_gnu_ld
16843   lt_save_path_LD=$lt_cv_path_LD
16844   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16845     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16846   else
16847     $as_unset lt_cv_prog_gnu_ld
16848   fi
16849   if test -n "${lt_cv_path_LDCXX+set}"; then
16850     lt_cv_path_LD=$lt_cv_path_LDCXX
16851   else
16852     $as_unset lt_cv_path_LD
16853   fi
16854   test -z "${LDCXX+set}" || LD=$LDCXX
16855   CC=${CXX-"c++"}
16856   CFLAGS=$CXXFLAGS
16857   compiler=$CC
16858   compiler_CXX=$CC
16859   for cc_temp in $compiler""; do
16860   case $cc_temp in
16861     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16863     \-*) ;;
16864     *) break;;
16865   esac
16866 done
16867 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16868
16869
16870   if test -n "$compiler"; then
16871     # We don't want -fno-exception when compiling C++ code, so set the
16872     # no_builtin_flag separately
16873     if test "$GXX" = yes; then
16874       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16875     else
16876       lt_prog_compiler_no_builtin_flag_CXX=
16877     fi
16878
16879     if test "$GXX" = yes; then
16880       # Set up default GNU C++ configuration
16881
16882
16883
16884 # Check whether --with-gnu-ld was given.
16885 if test "${with_gnu_ld+set}" = set; then :
16886   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16887 else
16888   with_gnu_ld=no
16889 fi
16890
16891 ac_prog=ld
16892 if test "$GCC" = yes; then
16893   # Check if gcc -print-prog-name=ld gives a path.
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16895 $as_echo_n "checking for ld used by $CC... " >&6; }
16896   case $host in
16897   *-*-mingw*)
16898     # gcc leaves a trailing carriage return which upsets mingw
16899     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16900   *)
16901     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16902   esac
16903   case $ac_prog in
16904     # Accept absolute paths.
16905     [\\/]* | ?:[\\/]*)
16906       re_direlt='/[^/][^/]*/\.\./'
16907       # Canonicalize the pathname of ld
16908       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16909       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16910         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16911       done
16912       test -z "$LD" && LD="$ac_prog"
16913       ;;
16914   "")
16915     # If it fails, then pretend we aren't using GCC.
16916     ac_prog=ld
16917     ;;
16918   *)
16919     # If it is relative, then search for the first ld in PATH.
16920     with_gnu_ld=unknown
16921     ;;
16922   esac
16923 elif test "$with_gnu_ld" = yes; then
16924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16925 $as_echo_n "checking for GNU ld... " >&6; }
16926 else
16927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16928 $as_echo_n "checking for non-GNU ld... " >&6; }
16929 fi
16930 if ${lt_cv_path_LD+:} false; then :
16931   $as_echo_n "(cached) " >&6
16932 else
16933   if test -z "$LD"; then
16934   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16935   for ac_dir in $PATH; do
16936     IFS="$lt_save_ifs"
16937     test -z "$ac_dir" && ac_dir=.
16938     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16939       lt_cv_path_LD="$ac_dir/$ac_prog"
16940       # Check to see if the program is GNU ld.  I'd rather use --version,
16941       # but apparently some variants of GNU ld only accept -v.
16942       # Break only if it was the GNU/non-GNU ld that we prefer.
16943       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16944       *GNU* | *'with BFD'*)
16945         test "$with_gnu_ld" != no && break
16946         ;;
16947       *)
16948         test "$with_gnu_ld" != yes && break
16949         ;;
16950       esac
16951     fi
16952   done
16953   IFS="$lt_save_ifs"
16954 else
16955   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16956 fi
16957 fi
16958
16959 LD="$lt_cv_path_LD"
16960 if test -n "$LD"; then
16961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16962 $as_echo "$LD" >&6; }
16963 else
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16966 fi
16967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16970 if ${lt_cv_prog_gnu_ld+:} false; then :
16971   $as_echo_n "(cached) " >&6
16972 else
16973   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16974 case `$LD -v 2>&1 </dev/null` in
16975 *GNU* | *'with BFD'*)
16976   lt_cv_prog_gnu_ld=yes
16977   ;;
16978 *)
16979   lt_cv_prog_gnu_ld=no
16980   ;;
16981 esac
16982 fi
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16985 with_gnu_ld=$lt_cv_prog_gnu_ld
16986
16987
16988
16989
16990
16991
16992
16993       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16994       # archiving commands below assume that GNU ld is being used.
16995       if test "$with_gnu_ld" = yes; then
16996         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16998
16999         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17000         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17001
17002         # If archive_cmds runs LD, not CC, wlarc should be empty
17003         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17004         #     investigate it a little bit more. (MM)
17005         wlarc='${wl}'
17006
17007         # ancient GNU ld didn't support --whole-archive et. al.
17008         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17009           $GREP 'no-whole-archive' > /dev/null; then
17010           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17011         else
17012           whole_archive_flag_spec_CXX=
17013         fi
17014       else
17015         with_gnu_ld=no
17016         wlarc=
17017
17018         # A generic and very simple default shared library creation
17019         # command for GNU C++ for the case where it uses the native
17020         # linker, instead of GNU ld.  If possible, this setting should
17021         # overridden to take advantage of the native linker features on
17022         # the platform it is being used on.
17023         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17024       fi
17025
17026       # Commands to make compiler produce verbose output that lists
17027       # what "hidden" libraries, object files and flags are used when
17028       # linking a shared library.
17029       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17030
17031     else
17032       GXX=no
17033       with_gnu_ld=no
17034       wlarc=
17035     fi
17036
17037     # PORTME: fill in a description of your system's C++ link characteristics
17038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17040     ld_shlibs_CXX=yes
17041     case $host_os in
17042       aix3*)
17043         # FIXME: insert proper C++ library support
17044         ld_shlibs_CXX=no
17045         ;;
17046       aix[4-9]*)
17047         if test "$host_cpu" = ia64; then
17048           # On IA64, the linker does run time linking by default, so we don't
17049           # have to do anything special.
17050           aix_use_runtimelinking=no
17051           exp_sym_flag='-Bexport'
17052           no_entry_flag=""
17053         else
17054           aix_use_runtimelinking=no
17055
17056           # Test if we are trying to use run time linking or normal
17057           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17058           # need to do runtime linking.
17059           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17060             for ld_flag in $LDFLAGS; do
17061               case $ld_flag in
17062               *-brtl*)
17063                 aix_use_runtimelinking=yes
17064                 break
17065                 ;;
17066               esac
17067             done
17068             ;;
17069           esac
17070
17071           exp_sym_flag='-bexport'
17072           no_entry_flag='-bnoentry'
17073         fi
17074
17075         # When large executables or shared objects are built, AIX ld can
17076         # have problems creating the table of contents.  If linking a library
17077         # or program results in "error TOC overflow" add -mminimal-toc to
17078         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17079         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17080
17081         archive_cmds_CXX=''
17082         hardcode_direct_CXX=yes
17083         hardcode_direct_absolute_CXX=yes
17084         hardcode_libdir_separator_CXX=':'
17085         link_all_deplibs_CXX=yes
17086         file_list_spec_CXX='${wl}-f,'
17087
17088         if test "$GXX" = yes; then
17089           case $host_os in aix4.[012]|aix4.[012].*)
17090           # We only want to do this on AIX 4.2 and lower, the check
17091           # below for broken collect2 doesn't work under 4.3+
17092           collect2name=`${CC} -print-prog-name=collect2`
17093           if test -f "$collect2name" &&
17094              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17095           then
17096             # We have reworked collect2
17097             :
17098           else
17099             # We have old collect2
17100             hardcode_direct_CXX=unsupported
17101             # It fails to find uninstalled libraries when the uninstalled
17102             # path is not listed in the libpath.  Setting hardcode_minus_L
17103             # to unsupported forces relinking
17104             hardcode_minus_L_CXX=yes
17105             hardcode_libdir_flag_spec_CXX='-L$libdir'
17106             hardcode_libdir_separator_CXX=
17107           fi
17108           esac
17109           shared_flag='-shared'
17110           if test "$aix_use_runtimelinking" = yes; then
17111             shared_flag="$shared_flag "'${wl}-G'
17112           fi
17113         else
17114           # not using gcc
17115           if test "$host_cpu" = ia64; then
17116           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17117           # chokes on -Wl,-G. The following line is correct:
17118           shared_flag='-G'
17119           else
17120             if test "$aix_use_runtimelinking" = yes; then
17121               shared_flag='${wl}-G'
17122             else
17123               shared_flag='${wl}-bM:SRE'
17124             fi
17125           fi
17126         fi
17127
17128         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17129         # It seems that -bexpall does not export symbols beginning with
17130         # underscore (_), so it is better to generate a list of symbols to
17131         # export.
17132         always_export_symbols_CXX=yes
17133         if test "$aix_use_runtimelinking" = yes; then
17134           # Warning - without using the other runtime loading flags (-brtl),
17135           # -berok will link without error, but may produce a broken library.
17136           allow_undefined_flag_CXX='-berok'
17137           # Determine the default libpath from the value encoded in an empty
17138           # executable.
17139           if test "${lt_cv_aix_libpath+set}" = set; then
17140   aix_libpath=$lt_cv_aix_libpath
17141 else
17142   if ${lt_cv_aix_libpath__CXX+:} false; then :
17143   $as_echo_n "(cached) " >&6
17144 else
17145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h.  */
17147
17148 int
17149 main ()
17150 {
17151
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_cxx_try_link "$LINENO"; then :
17157
17158   lt_aix_libpath_sed='
17159       /Import File Strings/,/^$/ {
17160           /^0/ {
17161               s/^0  *\([^ ]*\) *$/\1/
17162               p
17163           }
17164       }'
17165   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17166   # Check for a 64-bit object if we didn't find anything.
17167   if test -z "$lt_cv_aix_libpath__CXX"; then
17168     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17169   fi
17170 fi
17171 rm -f core conftest.err conftest.$ac_objext \
17172     conftest$ac_exeext conftest.$ac_ext
17173   if test -z "$lt_cv_aix_libpath__CXX"; then
17174     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17175   fi
17176
17177 fi
17178
17179   aix_libpath=$lt_cv_aix_libpath__CXX
17180 fi
17181
17182           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17183
17184           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17185         else
17186           if test "$host_cpu" = ia64; then
17187             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17188             allow_undefined_flag_CXX="-z nodefs"
17189             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"
17190           else
17191             # Determine the default libpath from the value encoded in an
17192             # empty executable.
17193             if test "${lt_cv_aix_libpath+set}" = set; then
17194   aix_libpath=$lt_cv_aix_libpath
17195 else
17196   if ${lt_cv_aix_libpath__CXX+:} false; then :
17197   $as_echo_n "(cached) " >&6
17198 else
17199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h.  */
17201
17202 int
17203 main ()
17204 {
17205
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_cxx_try_link "$LINENO"; then :
17211
17212   lt_aix_libpath_sed='
17213       /Import File Strings/,/^$/ {
17214           /^0/ {
17215               s/^0  *\([^ ]*\) *$/\1/
17216               p
17217           }
17218       }'
17219   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17220   # Check for a 64-bit object if we didn't find anything.
17221   if test -z "$lt_cv_aix_libpath__CXX"; then
17222     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17223   fi
17224 fi
17225 rm -f core conftest.err conftest.$ac_objext \
17226     conftest$ac_exeext conftest.$ac_ext
17227   if test -z "$lt_cv_aix_libpath__CXX"; then
17228     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17229   fi
17230
17231 fi
17232
17233   aix_libpath=$lt_cv_aix_libpath__CXX
17234 fi
17235
17236             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17237             # Warning - without using the other run time loading flags,
17238             # -berok will link without error, but may produce a broken library.
17239             no_undefined_flag_CXX=' ${wl}-bernotok'
17240             allow_undefined_flag_CXX=' ${wl}-berok'
17241             if test "$with_gnu_ld" = yes; then
17242               # We only use this code for GNU lds that support --whole-archive.
17243               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17244             else
17245               # Exported symbols can be pulled into shared objects from archives
17246               whole_archive_flag_spec_CXX='$convenience'
17247             fi
17248             archive_cmds_need_lc_CXX=yes
17249             # This is similar to how AIX traditionally builds its shared
17250             # libraries.
17251             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'
17252           fi
17253         fi
17254         ;;
17255
17256       beos*)
17257         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17258           allow_undefined_flag_CXX=unsupported
17259           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17260           # support --undefined.  This deserves some investigation.  FIXME
17261           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17262         else
17263           ld_shlibs_CXX=no
17264         fi
17265         ;;
17266
17267       chorus*)
17268         case $cc_basename in
17269           *)
17270           # FIXME: insert proper C++ library support
17271           ld_shlibs_CXX=no
17272           ;;
17273         esac
17274         ;;
17275
17276       cygwin* | mingw* | pw32* | cegcc*)
17277         case $GXX,$cc_basename in
17278         ,cl* | no,cl*)
17279           # Native MSVC
17280           # hardcode_libdir_flag_spec is actually meaningless, as there is
17281           # no search path for DLLs.
17282           hardcode_libdir_flag_spec_CXX=' '
17283           allow_undefined_flag_CXX=unsupported
17284           always_export_symbols_CXX=yes
17285           file_list_spec_CXX='@'
17286           # Tell ltmain to make .lib files, not .a files.
17287           libext=lib
17288           # Tell ltmain to make .dll files, not .so files.
17289           shrext_cmds=".dll"
17290           # FIXME: Setting linknames here is a bad hack.
17291           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17292           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17293               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17294             else
17295               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17296             fi~
17297             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17298             linknames='
17299           # The linker will not automatically build a static lib if we build a DLL.
17300           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17301           enable_shared_with_static_runtimes_CXX=yes
17302           # Don't use ranlib
17303           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17304           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17305             lt_tool_outputfile="@TOOL_OUTPUT@"~
17306             case $lt_outputfile in
17307               *.exe|*.EXE) ;;
17308               *)
17309                 lt_outputfile="$lt_outputfile.exe"
17310                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17311                 ;;
17312             esac~
17313             func_to_tool_file "$lt_outputfile"~
17314             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17315               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17316               $RM "$lt_outputfile.manifest";
17317             fi'
17318           ;;
17319         *)
17320           # g++
17321           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17322           # as there is no search path for DLLs.
17323           hardcode_libdir_flag_spec_CXX='-L$libdir'
17324           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17325           allow_undefined_flag_CXX=unsupported
17326           always_export_symbols_CXX=no
17327           enable_shared_with_static_runtimes_CXX=yes
17328
17329           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17330             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'
17331             # If the export-symbols file already is a .def file (1st line
17332             # is EXPORTS), use it as is; otherwise, prepend...
17333             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17334               cp $export_symbols $output_objdir/$soname.def;
17335             else
17336               echo EXPORTS > $output_objdir/$soname.def;
17337               cat $export_symbols >> $output_objdir/$soname.def;
17338             fi~
17339             $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'
17340           else
17341             ld_shlibs_CXX=no
17342           fi
17343           ;;
17344         esac
17345         ;;
17346       darwin* | rhapsody*)
17347
17348
17349   archive_cmds_need_lc_CXX=no
17350   hardcode_direct_CXX=no
17351   hardcode_automatic_CXX=yes
17352   hardcode_shlibpath_var_CXX=unsupported
17353   if test "$lt_cv_ld_force_load" = "yes"; then
17354     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17355   else
17356     whole_archive_flag_spec_CXX=''
17357   fi
17358   link_all_deplibs_CXX=yes
17359   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17360   case $cc_basename in
17361      ifort*) _lt_dar_can_shared=yes ;;
17362      *) _lt_dar_can_shared=$GCC ;;
17363   esac
17364   if test "$_lt_dar_can_shared" = "yes"; then
17365     output_verbose_link_cmd=func_echo_all
17366     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}"
17367     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17368     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}"
17369     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}"
17370        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17371       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}"
17372       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}"
17373     fi
17374
17375   else
17376   ld_shlibs_CXX=no
17377   fi
17378
17379         ;;
17380
17381       dgux*)
17382         case $cc_basename in
17383           ec++*)
17384             # FIXME: insert proper C++ library support
17385             ld_shlibs_CXX=no
17386             ;;
17387           ghcx*)
17388             # Green Hills C++ Compiler
17389             # FIXME: insert proper C++ library support
17390             ld_shlibs_CXX=no
17391             ;;
17392           *)
17393             # FIXME: insert proper C++ library support
17394             ld_shlibs_CXX=no
17395             ;;
17396         esac
17397         ;;
17398
17399       freebsd[12]*)
17400         # C++ shared libraries reported to be fairly broken before
17401         # switch to ELF
17402         ld_shlibs_CXX=no
17403         ;;
17404
17405       freebsd-elf*)
17406         archive_cmds_need_lc_CXX=no
17407         ;;
17408
17409       freebsd* | dragonfly*)
17410         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17411         # conventions
17412         ld_shlibs_CXX=yes
17413         ;;
17414
17415       gnu*)
17416         ;;
17417
17418       haiku*)
17419         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420         link_all_deplibs_CXX=yes
17421         ;;
17422
17423       hpux9*)
17424         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17425         hardcode_libdir_separator_CXX=:
17426         export_dynamic_flag_spec_CXX='${wl}-E'
17427         hardcode_direct_CXX=yes
17428         hardcode_minus_L_CXX=yes # Not in the search PATH,
17429                                              # but as the default
17430                                              # location of the library.
17431
17432         case $cc_basename in
17433           CC*)
17434             # FIXME: insert proper C++ library support
17435             ld_shlibs_CXX=no
17436             ;;
17437           aCC*)
17438             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'
17439             # Commands to make compiler produce verbose output that lists
17440             # what "hidden" libraries, object files and flags are used when
17441             # linking a shared library.
17442             #
17443             # There doesn't appear to be a way to prevent this compiler from
17444             # explicitly linking system object files so we need to strip them
17445             # from the output so that they don't get included in the library
17446             # dependencies.
17447             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17448             ;;
17449           *)
17450             if test "$GXX" = yes; then
17451               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17452             else
17453               # FIXME: insert proper C++ library support
17454               ld_shlibs_CXX=no
17455             fi
17456             ;;
17457         esac
17458         ;;
17459
17460       hpux10*|hpux11*)
17461         if test $with_gnu_ld = no; then
17462           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17463           hardcode_libdir_separator_CXX=:
17464
17465           case $host_cpu in
17466             hppa*64*|ia64*)
17467               ;;
17468             *)
17469               export_dynamic_flag_spec_CXX='${wl}-E'
17470               ;;
17471           esac
17472         fi
17473         case $host_cpu in
17474           hppa*64*|ia64*)
17475             hardcode_direct_CXX=no
17476             hardcode_shlibpath_var_CXX=no
17477             ;;
17478           *)
17479             hardcode_direct_CXX=yes
17480             hardcode_direct_absolute_CXX=yes
17481             hardcode_minus_L_CXX=yes # Not in the search PATH,
17482                                                  # but as the default
17483                                                  # location of the library.
17484             ;;
17485         esac
17486
17487         case $cc_basename in
17488           CC*)
17489             # FIXME: insert proper C++ library support
17490             ld_shlibs_CXX=no
17491             ;;
17492           aCC*)
17493             case $host_cpu in
17494               hppa*64*)
17495                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17496                 ;;
17497               ia64*)
17498                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17499                 ;;
17500               *)
17501                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17502                 ;;
17503             esac
17504             # Commands to make compiler produce verbose output that lists
17505             # what "hidden" libraries, object files and flags are used when
17506             # linking a shared library.
17507             #
17508             # There doesn't appear to be a way to prevent this compiler from
17509             # explicitly linking system object files so we need to strip them
17510             # from the output so that they don't get included in the library
17511             # dependencies.
17512             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17513             ;;
17514           *)
17515             if test "$GXX" = yes; then
17516               if test $with_gnu_ld = no; then
17517                 case $host_cpu in
17518                   hppa*64*)
17519                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17520                     ;;
17521                   ia64*)
17522                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17523                     ;;
17524                   *)
17525                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17526                     ;;
17527                 esac
17528               fi
17529             else
17530               # FIXME: insert proper C++ library support
17531               ld_shlibs_CXX=no
17532             fi
17533             ;;
17534         esac
17535         ;;
17536
17537       interix[3-9]*)
17538         hardcode_direct_CXX=no
17539         hardcode_shlibpath_var_CXX=no
17540         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17541         export_dynamic_flag_spec_CXX='${wl}-E'
17542         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17543         # Instead, shared libraries are loaded at an image base (0x10000000 by
17544         # default) and relocated if they conflict, which is a slow very memory
17545         # consuming and fragmenting process.  To avoid this, we pick a random,
17546         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17547         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17548         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'
17549         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'
17550         ;;
17551       irix5* | irix6*)
17552         case $cc_basename in
17553           CC*)
17554             # SGI C++
17555             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17556
17557             # Archives containing C++ object files must be created using
17558             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17559             # necessary to make sure instantiated templates are included
17560             # in the archive.
17561             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17562             ;;
17563           *)
17564             if test "$GXX" = yes; then
17565               if test "$with_gnu_ld" = no; then
17566                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17567               else
17568                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
17569               fi
17570             fi
17571             link_all_deplibs_CXX=yes
17572             ;;
17573         esac
17574         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17575         hardcode_libdir_separator_CXX=:
17576         inherit_rpath_CXX=yes
17577         ;;
17578
17579       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17580         case $cc_basename in
17581           KCC*)
17582             # Kuck and Associates, Inc. (KAI) C++ Compiler
17583
17584             # KCC will only create a shared library if the output file
17585             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17586             # to its proper name (with version) after linking.
17587             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'
17588             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'
17589             # Commands to make compiler produce verbose output that lists
17590             # what "hidden" libraries, object files and flags are used when
17591             # linking a shared library.
17592             #
17593             # There doesn't appear to be a way to prevent this compiler from
17594             # explicitly linking system object files so we need to strip them
17595             # from the output so that they don't get included in the library
17596             # dependencies.
17597             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17598
17599             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17600             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17601
17602             # Archives containing C++ object files must be created using
17603             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17604             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17605             ;;
17606           icpc* | ecpc* )
17607             # Intel C++
17608             with_gnu_ld=yes
17609             # version 8.0 and above of icpc choke on multiply defined symbols
17610             # if we add $predep_objects and $postdep_objects, however 7.1 and
17611             # earlier do not add the objects themselves.
17612             case `$CC -V 2>&1` in
17613               *"Version 7."*)
17614                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17615                 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'
17616                 ;;
17617               *)  # Version 8.0 or newer
17618                 tmp_idyn=
17619                 case $host_cpu in
17620                   ia64*) tmp_idyn=' -i_dynamic';;
17621                 esac
17622                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623                 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'
17624                 ;;
17625             esac
17626             archive_cmds_need_lc_CXX=no
17627             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17628             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17629             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17630             ;;
17631           pgCC* | pgcpp*)
17632             # Portland Group C++ compiler
17633             case `$CC -V` in
17634             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17635               prelink_cmds_CXX='tpldir=Template.dir~
17636                 rm -rf $tpldir~
17637                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17638                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17639               old_archive_cmds_CXX='tpldir=Template.dir~
17640                 rm -rf $tpldir~
17641                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17642                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17643                 $RANLIB $oldlib'
17644               archive_cmds_CXX='tpldir=Template.dir~
17645                 rm -rf $tpldir~
17646                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17647                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17648               archive_expsym_cmds_CXX='tpldir=Template.dir~
17649                 rm -rf $tpldir~
17650                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17651                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17652               ;;
17653             *) # Version 6 and above use weak symbols
17654               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17655               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'
17656               ;;
17657             esac
17658
17659             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17660             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17661             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17662             ;;
17663           cxx*)
17664             # Compaq C++
17665             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666             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'
17667
17668             runpath_var=LD_RUN_PATH
17669             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17670             hardcode_libdir_separator_CXX=:
17671
17672             # Commands to make compiler produce verbose output that lists
17673             # what "hidden" libraries, object files and flags are used when
17674             # linking a shared library.
17675             #
17676             # There doesn't appear to be a way to prevent this compiler from
17677             # explicitly linking system object files so we need to strip them
17678             # from the output so that they don't get included in the library
17679             # dependencies.
17680             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17681             ;;
17682           xl* | mpixl* | bgxl*)
17683             # IBM XL 8.0 on PPC, with GNU ld
17684             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17685             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17686             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17687             if test "x$supports_anon_versioning" = xyes; then
17688               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17689                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17690                 echo "local: *; };" >> $output_objdir/$libname.ver~
17691                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17692             fi
17693             ;;
17694           *)
17695             case `$CC -V 2>&1 | sed 5q` in
17696             *Sun\ C*)
17697               # Sun C++ 5.9
17698               no_undefined_flag_CXX=' -zdefs'
17699               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17700               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'
17701               hardcode_libdir_flag_spec_CXX='-R$libdir'
17702               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17703               compiler_needs_object_CXX=yes
17704
17705               # Not sure whether something based on
17706               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17707               # would be better.
17708               output_verbose_link_cmd='func_echo_all'
17709
17710               # Archives containing C++ object files must be created using
17711               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17712               # necessary to make sure instantiated templates are included
17713               # in the archive.
17714               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17715               ;;
17716             esac
17717             ;;
17718         esac
17719         ;;
17720
17721       lynxos*)
17722         # FIXME: insert proper C++ library support
17723         ld_shlibs_CXX=no
17724         ;;
17725
17726       m88k*)
17727         # FIXME: insert proper C++ library support
17728         ld_shlibs_CXX=no
17729         ;;
17730
17731       mvs*)
17732         case $cc_basename in
17733           cxx*)
17734             # FIXME: insert proper C++ library support
17735             ld_shlibs_CXX=no
17736             ;;
17737           *)
17738             # FIXME: insert proper C++ library support
17739             ld_shlibs_CXX=no
17740             ;;
17741         esac
17742         ;;
17743
17744       netbsd*)
17745         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17746           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17747           wlarc=
17748           hardcode_libdir_flag_spec_CXX='-R$libdir'
17749           hardcode_direct_CXX=yes
17750           hardcode_shlibpath_var_CXX=no
17751         fi
17752         # Workaround some broken pre-1.5 toolchains
17753         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17754         ;;
17755
17756       *nto* | *qnx*)
17757         ld_shlibs_CXX=yes
17758         ;;
17759
17760       openbsd2*)
17761         # C++ shared libraries are fairly broken
17762         ld_shlibs_CXX=no
17763         ;;
17764
17765       openbsd*)
17766         if test -f /usr/libexec/ld.so; then
17767           hardcode_direct_CXX=yes
17768           hardcode_shlibpath_var_CXX=no
17769           hardcode_direct_absolute_CXX=yes
17770           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17771           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17772           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17773             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17774             export_dynamic_flag_spec_CXX='${wl}-E'
17775             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17776           fi
17777           output_verbose_link_cmd=func_echo_all
17778         else
17779           ld_shlibs_CXX=no
17780         fi
17781         ;;
17782
17783       osf3* | osf4* | osf5*)
17784         case $cc_basename in
17785           KCC*)
17786             # Kuck and Associates, Inc. (KAI) C++ Compiler
17787
17788             # KCC will only create a shared library if the output file
17789             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17790             # to its proper name (with version) after linking.
17791             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'
17792
17793             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17794             hardcode_libdir_separator_CXX=:
17795
17796             # Archives containing C++ object files must be created using
17797             # the KAI C++ compiler.
17798             case $host in
17799               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17800               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17801             esac
17802             ;;
17803           RCC*)
17804             # Rational C++ 2.4.1
17805             # FIXME: insert proper C++ library support
17806             ld_shlibs_CXX=no
17807             ;;
17808           cxx*)
17809             case $host in
17810               osf3*)
17811                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17812                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17813                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17814                 ;;
17815               *)
17816                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17817                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17818                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17819                   echo "-hidden">> $lib.exp~
17820                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
17821                   $RM $lib.exp'
17822                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17823                 ;;
17824             esac
17825
17826             hardcode_libdir_separator_CXX=:
17827
17828             # Commands to make compiler produce verbose output that lists
17829             # what "hidden" libraries, object files and flags are used when
17830             # linking a shared library.
17831             #
17832             # There doesn't appear to be a way to prevent this compiler from
17833             # explicitly linking system object files so we need to strip them
17834             # from the output so that they don't get included in the library
17835             # dependencies.
17836             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17837             ;;
17838           *)
17839             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17840               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17841               case $host in
17842                 osf3*)
17843                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17844                   ;;
17845                 *)
17846                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17847                   ;;
17848               esac
17849
17850               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17851               hardcode_libdir_separator_CXX=:
17852
17853               # Commands to make compiler produce verbose output that lists
17854               # what "hidden" libraries, object files and flags are used when
17855               # linking a shared library.
17856               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17857
17858             else
17859               # FIXME: insert proper C++ library support
17860               ld_shlibs_CXX=no
17861             fi
17862             ;;
17863         esac
17864         ;;
17865
17866       psos*)
17867         # FIXME: insert proper C++ library support
17868         ld_shlibs_CXX=no
17869         ;;
17870
17871       sunos4*)
17872         case $cc_basename in
17873           CC*)
17874             # Sun C++ 4.x
17875             # FIXME: insert proper C++ library support
17876             ld_shlibs_CXX=no
17877             ;;
17878           lcc*)
17879             # Lucid
17880             # FIXME: insert proper C++ library support
17881             ld_shlibs_CXX=no
17882             ;;
17883           *)
17884             # FIXME: insert proper C++ library support
17885             ld_shlibs_CXX=no
17886             ;;
17887         esac
17888         ;;
17889
17890       solaris*)
17891         case $cc_basename in
17892           CC* | sunCC*)
17893             # Sun C++ 4.2, 5.x and Centerline C++
17894             archive_cmds_need_lc_CXX=yes
17895             no_undefined_flag_CXX=' -zdefs'
17896             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17897             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17898               $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'
17899
17900             hardcode_libdir_flag_spec_CXX='-R$libdir'
17901             hardcode_shlibpath_var_CXX=no
17902             case $host_os in
17903               solaris2.[0-5] | solaris2.[0-5].*) ;;
17904               *)
17905                 # The compiler driver will combine and reorder linker options,
17906                 # but understands `-z linker_flag'.
17907                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17908                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17909                 ;;
17910             esac
17911             link_all_deplibs_CXX=yes
17912
17913             output_verbose_link_cmd='func_echo_all'
17914
17915             # Archives containing C++ object files must be created using
17916             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17917             # necessary to make sure instantiated templates are included
17918             # in the archive.
17919             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17920             ;;
17921           gcx*)
17922             # Green Hills C++ Compiler
17923             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17924
17925             # The C++ compiler must be used to create the archive.
17926             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17927             ;;
17928           *)
17929             # GNU C++ compiler with Solaris linker
17930             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17932               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17933                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17934                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17935                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17936
17937                 # Commands to make compiler produce verbose output that lists
17938                 # what "hidden" libraries, object files and flags are used when
17939                 # linking a shared library.
17940                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17941               else
17942                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17943                 # platform.
17944                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17945                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17946                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17947
17948                 # Commands to make compiler produce verbose output that lists
17949                 # what "hidden" libraries, object files and flags are used when
17950                 # linking a shared library.
17951                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17952               fi
17953
17954               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17955               case $host_os in
17956                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17957                 *)
17958                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17959                   ;;
17960               esac
17961             fi
17962             ;;
17963         esac
17964         ;;
17965
17966     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17967       no_undefined_flag_CXX='${wl}-z,text'
17968       archive_cmds_need_lc_CXX=no
17969       hardcode_shlibpath_var_CXX=no
17970       runpath_var='LD_RUN_PATH'
17971
17972       case $cc_basename in
17973         CC*)
17974           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976           ;;
17977         *)
17978           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980           ;;
17981       esac
17982       ;;
17983
17984       sysv5* | sco3.2v5* | sco5v6*)
17985         # Note: We can NOT use -z defs as we might desire, because we do not
17986         # link with -lc, and that would cause any symbols used from libc to
17987         # always be unresolved, which means just about no library would
17988         # ever link correctly.  If we're not using GNU ld we use -z text
17989         # though, which does catch some bad symbols but isn't as heavy-handed
17990         # as -z defs.
17991         no_undefined_flag_CXX='${wl}-z,text'
17992         allow_undefined_flag_CXX='${wl}-z,nodefs'
17993         archive_cmds_need_lc_CXX=no
17994         hardcode_shlibpath_var_CXX=no
17995         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17996         hardcode_libdir_separator_CXX=':'
17997         link_all_deplibs_CXX=yes
17998         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17999         runpath_var='LD_RUN_PATH'
18000
18001         case $cc_basename in
18002           CC*)
18003             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18006               '"$old_archive_cmds_CXX"
18007             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18008               '"$reload_cmds_CXX"
18009             ;;
18010           *)
18011             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013             ;;
18014         esac
18015       ;;
18016
18017       tandem*)
18018         case $cc_basename in
18019           NCC*)
18020             # NonStop-UX NCC 3.20
18021             # FIXME: insert proper C++ library support
18022             ld_shlibs_CXX=no
18023             ;;
18024           *)
18025             # FIXME: insert proper C++ library support
18026             ld_shlibs_CXX=no
18027             ;;
18028         esac
18029         ;;
18030
18031       vxworks*)
18032         # FIXME: insert proper C++ library support
18033         ld_shlibs_CXX=no
18034         ;;
18035
18036       *)
18037         # FIXME: insert proper C++ library support
18038         ld_shlibs_CXX=no
18039         ;;
18040     esac
18041
18042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18043 $as_echo "$ld_shlibs_CXX" >&6; }
18044     test "$ld_shlibs_CXX" = no && can_build_shared=no
18045
18046     GCC_CXX="$GXX"
18047     LD_CXX="$LD"
18048
18049     ## CAVEAT EMPTOR:
18050     ## There is no encapsulation within the following macros, do not change
18051     ## the running order or otherwise move them around unless you know exactly
18052     ## what you are doing...
18053     # Dependencies to place before and after the object being linked:
18054 predep_objects_CXX=
18055 postdep_objects_CXX=
18056 predeps_CXX=
18057 postdeps_CXX=
18058 compiler_lib_search_path_CXX=
18059
18060 cat > conftest.$ac_ext <<_LT_EOF
18061 class Foo
18062 {
18063 public:
18064   Foo (void) { a = 0; }
18065 private:
18066   int a;
18067 };
18068 _LT_EOF
18069
18070
18071 _lt_libdeps_save_CFLAGS=$CFLAGS
18072 case "$CC $CFLAGS " in #(
18073 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18074 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18075 esac
18076
18077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18078   (eval $ac_compile) 2>&5
18079   ac_status=$?
18080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18081   test $ac_status = 0; }; then
18082   # Parse the compiler output and extract the necessary
18083   # objects, libraries and library flags.
18084
18085   # Sentinel used to keep track of whether or not we are before
18086   # the conftest object file.
18087   pre_test_object_deps_done=no
18088
18089   for p in `eval "$output_verbose_link_cmd"`; do
18090     case ${prev}${p} in
18091
18092     -L* | -R* | -l*)
18093        # Some compilers place space between "-{L,R}" and the path.
18094        # Remove the space.
18095        if test $p = "-L" ||
18096           test $p = "-R"; then
18097          prev=$p
18098          continue
18099        fi
18100
18101        # Expand the sysroot to ease extracting the directories later.
18102        if test -z "$prev"; then
18103          case $p in
18104          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18105          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18106          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18107          esac
18108        fi
18109        case $p in
18110        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18111        esac
18112        if test "$pre_test_object_deps_done" = no; then
18113          case ${prev} in
18114          -L | -R)
18115            # Internal compiler library paths should come after those
18116            # provided the user.  The postdeps already come after the
18117            # user supplied libs so there is no need to process them.
18118            if test -z "$compiler_lib_search_path_CXX"; then
18119              compiler_lib_search_path_CXX="${prev}${p}"
18120            else
18121              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18122            fi
18123            ;;
18124          # The "-l" case would never come before the object being
18125          # linked, so don't bother handling this case.
18126          esac
18127        else
18128          if test -z "$postdeps_CXX"; then
18129            postdeps_CXX="${prev}${p}"
18130          else
18131            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18132          fi
18133        fi
18134        prev=
18135        ;;
18136
18137     *.lto.$objext) ;; # Ignore GCC LTO objects
18138     *.$objext)
18139        # This assumes that the test object file only shows up
18140        # once in the compiler output.
18141        if test "$p" = "conftest.$objext"; then
18142          pre_test_object_deps_done=yes
18143          continue
18144        fi
18145
18146        if test "$pre_test_object_deps_done" = no; then
18147          if test -z "$predep_objects_CXX"; then
18148            predep_objects_CXX="$p"
18149          else
18150            predep_objects_CXX="$predep_objects_CXX $p"
18151          fi
18152        else
18153          if test -z "$postdep_objects_CXX"; then
18154            postdep_objects_CXX="$p"
18155          else
18156            postdep_objects_CXX="$postdep_objects_CXX $p"
18157          fi
18158        fi
18159        ;;
18160
18161     *) ;; # Ignore the rest.
18162
18163     esac
18164   done
18165
18166   # Clean up.
18167   rm -f a.out a.exe
18168 else
18169   echo "libtool.m4: error: problem compiling CXX test program"
18170 fi
18171
18172 $RM -f confest.$objext
18173 CFLAGS=$_lt_libdeps_save_CFLAGS
18174
18175 # PORTME: override above test on systems where it is broken
18176 case $host_os in
18177 interix[3-9]*)
18178   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18179   # hack all around it, let's just trust "g++" to DTRT.
18180   predep_objects_CXX=
18181   postdep_objects_CXX=
18182   postdeps_CXX=
18183   ;;
18184
18185 linux*)
18186   case `$CC -V 2>&1 | sed 5q` in
18187   *Sun\ C*)
18188     # Sun C++ 5.9
18189
18190     # The more standards-conforming stlport4 library is
18191     # incompatible with the Cstd library. Avoid specifying
18192     # it if it's in CXXFLAGS. Ignore libCrun as
18193     # -library=stlport4 depends on it.
18194     case " $CXX $CXXFLAGS " in
18195     *" -library=stlport4 "*)
18196       solaris_use_stlport4=yes
18197       ;;
18198     esac
18199
18200     if test "$solaris_use_stlport4" != yes; then
18201       postdeps_CXX='-library=Cstd -library=Crun'
18202     fi
18203     ;;
18204   esac
18205   ;;
18206
18207 solaris*)
18208   case $cc_basename in
18209   CC* | sunCC*)
18210     # The more standards-conforming stlport4 library is
18211     # incompatible with the Cstd library. Avoid specifying
18212     # it if it's in CXXFLAGS. Ignore libCrun as
18213     # -library=stlport4 depends on it.
18214     case " $CXX $CXXFLAGS " in
18215     *" -library=stlport4 "*)
18216       solaris_use_stlport4=yes
18217       ;;
18218     esac
18219
18220     # Adding this requires a known-good setup of shared libraries for
18221     # Sun compiler versions before 5.6, else PIC objects from an old
18222     # archive will be linked into the output, leading to subtle bugs.
18223     if test "$solaris_use_stlport4" != yes; then
18224       postdeps_CXX='-library=Cstd -library=Crun'
18225     fi
18226     ;;
18227   esac
18228   ;;
18229 esac
18230
18231
18232 case " $postdeps_CXX " in
18233 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18234 esac
18235  compiler_lib_search_dirs_CXX=
18236 if test -n "${compiler_lib_search_path_CXX}"; then
18237  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18238 fi
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270     lt_prog_compiler_wl_CXX=
18271 lt_prog_compiler_pic_CXX=
18272 lt_prog_compiler_static_CXX=
18273
18274
18275   # C++ specific cases for pic, static, wl, etc.
18276   if test "$GXX" = yes; then
18277     lt_prog_compiler_wl_CXX='-Wl,'
18278     lt_prog_compiler_static_CXX='-static'
18279
18280     case $host_os in
18281     aix*)
18282       # All AIX code is PIC.
18283       if test "$host_cpu" = ia64; then
18284         # AIX 5 now supports IA64 processor
18285         lt_prog_compiler_static_CXX='-Bstatic'
18286       fi
18287       ;;
18288
18289     amigaos*)
18290       case $host_cpu in
18291       powerpc)
18292             # see comment about AmigaOS4 .so support
18293             lt_prog_compiler_pic_CXX='-fPIC'
18294         ;;
18295       m68k)
18296             # FIXME: we need at least 68020 code to build shared libraries, but
18297             # adding the `-m68020' flag to GCC prevents building anything better,
18298             # like `-m68040'.
18299             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18300         ;;
18301       esac
18302       ;;
18303
18304     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18305       # PIC is the default for these OSes.
18306       ;;
18307     mingw* | cygwin* | os2* | pw32* | cegcc*)
18308       # This hack is so that the source file can tell whether it is being
18309       # built for inclusion in a dll (and should export symbols for example).
18310       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18311       # (--disable-auto-import) libraries
18312       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18313       ;;
18314     darwin* | rhapsody*)
18315       # PIC is the default on this platform
18316       # Common symbols not allowed in MH_DYLIB files
18317       lt_prog_compiler_pic_CXX='-fno-common'
18318       ;;
18319     *djgpp*)
18320       # DJGPP does not support shared libraries at all
18321       lt_prog_compiler_pic_CXX=
18322       ;;
18323     haiku*)
18324       # PIC is the default for Haiku.
18325       # The "-static" flag exists, but is broken.
18326       lt_prog_compiler_static_CXX=
18327       ;;
18328     interix[3-9]*)
18329       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18330       # Instead, we relocate shared libraries at runtime.
18331       ;;
18332     sysv4*MP*)
18333       if test -d /usr/nec; then
18334         lt_prog_compiler_pic_CXX=-Kconform_pic
18335       fi
18336       ;;
18337     hpux*)
18338       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18339       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18340       # sets the default TLS model and affects inlining.
18341       case $host_cpu in
18342       hppa*64*)
18343         ;;
18344       *)
18345         lt_prog_compiler_pic_CXX='-fPIC'
18346         ;;
18347       esac
18348       ;;
18349     *qnx* | *nto*)
18350       # QNX uses GNU C++, but need to define -shared option too, otherwise
18351       # it will coredump.
18352       lt_prog_compiler_pic_CXX='-fPIC -shared'
18353       ;;
18354     *)
18355       lt_prog_compiler_pic_CXX='-fPIC'
18356       ;;
18357     esac
18358   else
18359     case $host_os in
18360       aix[4-9]*)
18361         # All AIX code is PIC.
18362         if test "$host_cpu" = ia64; then
18363           # AIX 5 now supports IA64 processor
18364           lt_prog_compiler_static_CXX='-Bstatic'
18365         else
18366           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18367         fi
18368         ;;
18369       chorus*)
18370         case $cc_basename in
18371         cxch68*)
18372           # Green Hills C++ Compiler
18373           # _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"
18374           ;;
18375         esac
18376         ;;
18377       mingw* | cygwin* | os2* | pw32* | cegcc*)
18378         # This hack is so that the source file can tell whether it is being
18379         # built for inclusion in a dll (and should export symbols for example).
18380         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18381         ;;
18382       dgux*)
18383         case $cc_basename in
18384           ec++*)
18385             lt_prog_compiler_pic_CXX='-KPIC'
18386             ;;
18387           ghcx*)
18388             # Green Hills C++ Compiler
18389             lt_prog_compiler_pic_CXX='-pic'
18390             ;;
18391           *)
18392             ;;
18393         esac
18394         ;;
18395       freebsd* | dragonfly*)
18396         # FreeBSD uses GNU C++
18397         ;;
18398       hpux9* | hpux10* | hpux11*)
18399         case $cc_basename in
18400           CC*)
18401             lt_prog_compiler_wl_CXX='-Wl,'
18402             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18403             if test "$host_cpu" != ia64; then
18404               lt_prog_compiler_pic_CXX='+Z'
18405             fi
18406             ;;
18407           aCC*)
18408             lt_prog_compiler_wl_CXX='-Wl,'
18409             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18410             case $host_cpu in
18411             hppa*64*|ia64*)
18412               # +Z the default
18413               ;;
18414             *)
18415               lt_prog_compiler_pic_CXX='+Z'
18416               ;;
18417             esac
18418             ;;
18419           *)
18420             ;;
18421         esac
18422         ;;
18423       interix*)
18424         # This is c89, which is MS Visual C++ (no shared libs)
18425         # Anyone wants to do a port?
18426         ;;
18427       irix5* | irix6* | nonstopux*)
18428         case $cc_basename in
18429           CC*)
18430             lt_prog_compiler_wl_CXX='-Wl,'
18431             lt_prog_compiler_static_CXX='-non_shared'
18432             # CC pic flag -KPIC is the default.
18433             ;;
18434           *)
18435             ;;
18436         esac
18437         ;;
18438       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18439         case $cc_basename in
18440           KCC*)
18441             # KAI C++ Compiler
18442             lt_prog_compiler_wl_CXX='--backend -Wl,'
18443             lt_prog_compiler_pic_CXX='-fPIC'
18444             ;;
18445           ecpc* )
18446             # old Intel C++ for x86_64 which still supported -KPIC.
18447             lt_prog_compiler_wl_CXX='-Wl,'
18448             lt_prog_compiler_pic_CXX='-KPIC'
18449             lt_prog_compiler_static_CXX='-static'
18450             ;;
18451           icpc* )
18452             # Intel C++, used to be incompatible with GCC.
18453             # ICC 10 doesn't accept -KPIC any more.
18454             lt_prog_compiler_wl_CXX='-Wl,'
18455             lt_prog_compiler_pic_CXX='-fPIC'
18456             lt_prog_compiler_static_CXX='-static'
18457             ;;
18458           pgCC* | pgcpp*)
18459             # Portland Group C++ compiler
18460             lt_prog_compiler_wl_CXX='-Wl,'
18461             lt_prog_compiler_pic_CXX='-fpic'
18462             lt_prog_compiler_static_CXX='-Bstatic'
18463             ;;
18464           cxx*)
18465             # Compaq C++
18466             # Make sure the PIC flag is empty.  It appears that all Alpha
18467             # Linux and Compaq Tru64 Unix objects are PIC.
18468             lt_prog_compiler_pic_CXX=
18469             lt_prog_compiler_static_CXX='-non_shared'
18470             ;;
18471           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18472             # IBM XL 8.0, 9.0 on PPC and BlueGene
18473             lt_prog_compiler_wl_CXX='-Wl,'
18474             lt_prog_compiler_pic_CXX='-qpic'
18475             lt_prog_compiler_static_CXX='-qstaticlink'
18476             ;;
18477           *)
18478             case `$CC -V 2>&1 | sed 5q` in
18479             *Sun\ C*)
18480               # Sun C++ 5.9
18481               lt_prog_compiler_pic_CXX='-KPIC'
18482               lt_prog_compiler_static_CXX='-Bstatic'
18483               lt_prog_compiler_wl_CXX='-Qoption ld '
18484               ;;
18485             esac
18486             ;;
18487         esac
18488         ;;
18489       lynxos*)
18490         ;;
18491       m88k*)
18492         ;;
18493       mvs*)
18494         case $cc_basename in
18495           cxx*)
18496             lt_prog_compiler_pic_CXX='-W c,exportall'
18497             ;;
18498           *)
18499             ;;
18500         esac
18501         ;;
18502       netbsd*)
18503         ;;
18504       *qnx* | *nto*)
18505         # QNX uses GNU C++, but need to define -shared option too, otherwise
18506         # it will coredump.
18507         lt_prog_compiler_pic_CXX='-fPIC -shared'
18508         ;;
18509       osf3* | osf4* | osf5*)
18510         case $cc_basename in
18511           KCC*)
18512             lt_prog_compiler_wl_CXX='--backend -Wl,'
18513             ;;
18514           RCC*)
18515             # Rational C++ 2.4.1
18516             lt_prog_compiler_pic_CXX='-pic'
18517             ;;
18518           cxx*)
18519             # Digital/Compaq C++
18520             lt_prog_compiler_wl_CXX='-Wl,'
18521             # Make sure the PIC flag is empty.  It appears that all Alpha
18522             # Linux and Compaq Tru64 Unix objects are PIC.
18523             lt_prog_compiler_pic_CXX=
18524             lt_prog_compiler_static_CXX='-non_shared'
18525             ;;
18526           *)
18527             ;;
18528         esac
18529         ;;
18530       psos*)
18531         ;;
18532       solaris*)
18533         case $cc_basename in
18534           CC* | sunCC*)
18535             # Sun C++ 4.2, 5.x and Centerline C++
18536             lt_prog_compiler_pic_CXX='-KPIC'
18537             lt_prog_compiler_static_CXX='-Bstatic'
18538             lt_prog_compiler_wl_CXX='-Qoption ld '
18539             ;;
18540           gcx*)
18541             # Green Hills C++ Compiler
18542             lt_prog_compiler_pic_CXX='-PIC'
18543             ;;
18544           *)
18545             ;;
18546         esac
18547         ;;
18548       sunos4*)
18549         case $cc_basename in
18550           CC*)
18551             # Sun C++ 4.x
18552             lt_prog_compiler_pic_CXX='-pic'
18553             lt_prog_compiler_static_CXX='-Bstatic'
18554             ;;
18555           lcc*)
18556             # Lucid
18557             lt_prog_compiler_pic_CXX='-pic'
18558             ;;
18559           *)
18560             ;;
18561         esac
18562         ;;
18563       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18564         case $cc_basename in
18565           CC*)
18566             lt_prog_compiler_wl_CXX='-Wl,'
18567             lt_prog_compiler_pic_CXX='-KPIC'
18568             lt_prog_compiler_static_CXX='-Bstatic'
18569             ;;
18570         esac
18571         ;;
18572       tandem*)
18573         case $cc_basename in
18574           NCC*)
18575             # NonStop-UX NCC 3.20
18576             lt_prog_compiler_pic_CXX='-KPIC'
18577             ;;
18578           *)
18579             ;;
18580         esac
18581         ;;
18582       vxworks*)
18583         ;;
18584       *)
18585         lt_prog_compiler_can_build_shared_CXX=no
18586         ;;
18587     esac
18588   fi
18589
18590 case $host_os in
18591   # For platforms which do not support PIC, -DPIC is meaningless:
18592   *djgpp*)
18593     lt_prog_compiler_pic_CXX=
18594     ;;
18595   *)
18596     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18597     ;;
18598 esac
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18602 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18603   $as_echo_n "(cached) " >&6
18604 else
18605   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18606 fi
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18608 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18609 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18610
18611 #
18612 # Check to make sure the PIC flag actually works.
18613 #
18614 if test -n "$lt_prog_compiler_pic_CXX"; then
18615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18616 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18617 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18618   $as_echo_n "(cached) " >&6
18619 else
18620   lt_cv_prog_compiler_pic_works_CXX=no
18621    ac_outfile=conftest.$ac_objext
18622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18623    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18624    # Insert the option either (1) after the last *FLAGS variable, or
18625    # (2) before a word containing "conftest.", or (3) at the end.
18626    # Note that $ac_compile itself does not contain backslashes and begins
18627    # with a dollar sign (not a hyphen), so the echo should work correctly.
18628    # The option is referenced via a variable to avoid confusing sed.
18629    lt_compile=`echo "$ac_compile" | $SED \
18630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18632    -e 's:$: $lt_compiler_flag:'`
18633    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18634    (eval "$lt_compile" 2>conftest.err)
18635    ac_status=$?
18636    cat conftest.err >&5
18637    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638    if (exit $ac_status) && test -s "$ac_outfile"; then
18639      # The compiler can only warn and ignore the option if not recognized
18640      # So say no if there are warnings other than the usual output.
18641      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18644        lt_cv_prog_compiler_pic_works_CXX=yes
18645      fi
18646    fi
18647    $RM conftest*
18648
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18651 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18652
18653 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18654     case $lt_prog_compiler_pic_CXX in
18655      "" | " "*) ;;
18656      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18657      esac
18658 else
18659     lt_prog_compiler_pic_CXX=
18660      lt_prog_compiler_can_build_shared_CXX=no
18661 fi
18662
18663 fi
18664
18665
18666
18667
18668
18669 #
18670 # Check to make sure the static flag actually works.
18671 #
18672 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18675 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18676   $as_echo_n "(cached) " >&6
18677 else
18678   lt_cv_prog_compiler_static_works_CXX=no
18679    save_LDFLAGS="$LDFLAGS"
18680    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18681    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18682    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18683      # The linker can only warn and ignore the option if not recognized
18684      # So say no if there are warnings
18685      if test -s conftest.err; then
18686        # Append any errors to the config.log.
18687        cat conftest.err 1>&5
18688        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18689        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18690        if diff conftest.exp conftest.er2 >/dev/null; then
18691          lt_cv_prog_compiler_static_works_CXX=yes
18692        fi
18693      else
18694        lt_cv_prog_compiler_static_works_CXX=yes
18695      fi
18696    fi
18697    $RM -r conftest*
18698    LDFLAGS="$save_LDFLAGS"
18699
18700 fi
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18702 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18703
18704 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18705     :
18706 else
18707     lt_prog_compiler_static_CXX=
18708 fi
18709
18710
18711
18712
18713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18714 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18715 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18716   $as_echo_n "(cached) " >&6
18717 else
18718   lt_cv_prog_compiler_c_o_CXX=no
18719    $RM -r conftest 2>/dev/null
18720    mkdir conftest
18721    cd conftest
18722    mkdir out
18723    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18724
18725    lt_compiler_flag="-o out/conftest2.$ac_objext"
18726    # Insert the option either (1) after the last *FLAGS variable, or
18727    # (2) before a word containing "conftest.", or (3) at the end.
18728    # Note that $ac_compile itself does not contain backslashes and begins
18729    # with a dollar sign (not a hyphen), so the echo should work correctly.
18730    lt_compile=`echo "$ac_compile" | $SED \
18731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18733    -e 's:$: $lt_compiler_flag:'`
18734    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18735    (eval "$lt_compile" 2>out/conftest.err)
18736    ac_status=$?
18737    cat out/conftest.err >&5
18738    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18740    then
18741      # The compiler can only warn and ignore the option if not recognized
18742      # So say no if there are warnings
18743      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18744      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18745      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18746        lt_cv_prog_compiler_c_o_CXX=yes
18747      fi
18748    fi
18749    chmod u+w . 2>&5
18750    $RM conftest*
18751    # SGI C++ compiler will create directory out/ii_files/ for
18752    # template instantiation
18753    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18754    $RM out/* && rmdir out
18755    cd ..
18756    $RM -r conftest
18757    $RM conftest*
18758
18759 fi
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18761 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18762
18763
18764
18765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18767 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18768   $as_echo_n "(cached) " >&6
18769 else
18770   lt_cv_prog_compiler_c_o_CXX=no
18771    $RM -r conftest 2>/dev/null
18772    mkdir conftest
18773    cd conftest
18774    mkdir out
18775    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18776
18777    lt_compiler_flag="-o out/conftest2.$ac_objext"
18778    # Insert the option either (1) after the last *FLAGS variable, or
18779    # (2) before a word containing "conftest.", or (3) at the end.
18780    # Note that $ac_compile itself does not contain backslashes and begins
18781    # with a dollar sign (not a hyphen), so the echo should work correctly.
18782    lt_compile=`echo "$ac_compile" | $SED \
18783    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18785    -e 's:$: $lt_compiler_flag:'`
18786    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18787    (eval "$lt_compile" 2>out/conftest.err)
18788    ac_status=$?
18789    cat out/conftest.err >&5
18790    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18792    then
18793      # The compiler can only warn and ignore the option if not recognized
18794      # So say no if there are warnings
18795      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18796      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18797      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18798        lt_cv_prog_compiler_c_o_CXX=yes
18799      fi
18800    fi
18801    chmod u+w . 2>&5
18802    $RM conftest*
18803    # SGI C++ compiler will create directory out/ii_files/ for
18804    # template instantiation
18805    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18806    $RM out/* && rmdir out
18807    cd ..
18808    $RM -r conftest
18809    $RM conftest*
18810
18811 fi
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18813 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18814
18815
18816
18817
18818 hard_links="nottested"
18819 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18820   # do not overwrite the value of need_locks provided by the user
18821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18822 $as_echo_n "checking if we can lock with hard links... " >&6; }
18823   hard_links=yes
18824   $RM conftest*
18825   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18826   touch conftest.a
18827   ln conftest.a conftest.b 2>&5 || hard_links=no
18828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18830 $as_echo "$hard_links" >&6; }
18831   if test "$hard_links" = no; then
18832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18833 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18834     need_locks=warn
18835   fi
18836 else
18837   need_locks=no
18838 fi
18839
18840
18841
18842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844
18845   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18846   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18847   case $host_os in
18848   aix[4-9]*)
18849     # If we're using GNU nm, then we don't want the "-C" option.
18850     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18851     # Also, AIX nm treats weak defined symbols like other global defined
18852     # symbols, whereas GNU nm marks them as "W".
18853     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18854       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18855     else
18856       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'
18857     fi
18858     ;;
18859   pw32*)
18860     export_symbols_cmds_CXX="$ltdll_cmds"
18861     ;;
18862   cygwin* | mingw* | cegcc*)
18863     case $cc_basename in
18864     cl*) ;;
18865     *)
18866       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18867       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18868       ;;
18869     esac
18870     ;;
18871   *)
18872     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18873     ;;
18874   esac
18875
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18877 $as_echo "$ld_shlibs_CXX" >&6; }
18878 test "$ld_shlibs_CXX" = no && can_build_shared=no
18879
18880 with_gnu_ld_CXX=$with_gnu_ld
18881
18882
18883
18884
18885
18886
18887 #
18888 # Do we need to explicitly link libc?
18889 #
18890 case "x$archive_cmds_need_lc_CXX" in
18891 x|xyes)
18892   # Assume -lc should be added
18893   archive_cmds_need_lc_CXX=yes
18894
18895   if test "$enable_shared" = yes && test "$GCC" = yes; then
18896     case $archive_cmds_CXX in
18897     *'~'*)
18898       # FIXME: we may have to deal with multi-command sequences.
18899       ;;
18900     '$CC '*)
18901       # Test whether the compiler implicitly links with -lc since on some
18902       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18903       # to ld, don't add -lc before -lgcc.
18904       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18905 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18906 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18907   $as_echo_n "(cached) " >&6
18908 else
18909   $RM conftest*
18910         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
18912         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18913   (eval $ac_compile) 2>&5
18914   ac_status=$?
18915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916   test $ac_status = 0; } 2>conftest.err; then
18917           soname=conftest
18918           lib=conftest
18919           libobjs=conftest.$ac_objext
18920           deplibs=
18921           wl=$lt_prog_compiler_wl_CXX
18922           pic_flag=$lt_prog_compiler_pic_CXX
18923           compiler_flags=-v
18924           linker_flags=-v
18925           verstring=
18926           output_objdir=.
18927           libname=conftest
18928           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18929           allow_undefined_flag_CXX=
18930           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18931   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18932   ac_status=$?
18933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934   test $ac_status = 0; }
18935           then
18936             lt_cv_archive_cmds_need_lc_CXX=no
18937           else
18938             lt_cv_archive_cmds_need_lc_CXX=yes
18939           fi
18940           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18941         else
18942           cat conftest.err 1>&5
18943         fi
18944         $RM conftest*
18945
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18948 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18949       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18950       ;;
18951     esac
18952   fi
18953   ;;
18954 esac
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19021
19022 library_names_spec=
19023 libname_spec='lib$name'
19024 soname_spec=
19025 shrext_cmds=".so"
19026 postinstall_cmds=
19027 postuninstall_cmds=
19028 finish_cmds=
19029 finish_eval=
19030 shlibpath_var=
19031 shlibpath_overrides_runpath=unknown
19032 version_type=none
19033 dynamic_linker="$host_os ld.so"
19034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19035 need_lib_prefix=unknown
19036 hardcode_into_libs=no
19037
19038 # when you set need_version to no, make sure it does not cause -set_version
19039 # flags to be left without arguments
19040 need_version=unknown
19041
19042 case $host_os in
19043 aix3*)
19044   version_type=linux
19045   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19046   shlibpath_var=LIBPATH
19047
19048   # AIX 3 has no versioning support, so we append a major version to the name.
19049   soname_spec='${libname}${release}${shared_ext}$major'
19050   ;;
19051
19052 aix[4-9]*)
19053   version_type=linux
19054   need_lib_prefix=no
19055   need_version=no
19056   hardcode_into_libs=yes
19057   if test "$host_cpu" = ia64; then
19058     # AIX 5 supports IA64
19059     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19060     shlibpath_var=LD_LIBRARY_PATH
19061   else
19062     # With GCC up to 2.95.x, collect2 would create an import file
19063     # for dependence libraries.  The import file would start with
19064     # the line `#! .'.  This would cause the generated library to
19065     # depend on `.', always an invalid library.  This was fixed in
19066     # development snapshots of GCC prior to 3.0.
19067     case $host_os in
19068       aix4 | aix4.[01] | aix4.[01].*)
19069       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19070            echo ' yes '
19071            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19072         :
19073       else
19074         can_build_shared=no
19075       fi
19076       ;;
19077     esac
19078     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19079     # soname into executable. Probably we can add versioning support to
19080     # collect2, so additional links can be useful in future.
19081     if test "$aix_use_runtimelinking" = yes; then
19082       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19083       # instead of lib<name>.a to let people know that these are not
19084       # typical AIX shared libraries.
19085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086     else
19087       # We preserve .a as extension for shared libraries through AIX4.2
19088       # and later when we are not doing run time linking.
19089       library_names_spec='${libname}${release}.a $libname.a'
19090       soname_spec='${libname}${release}${shared_ext}$major'
19091     fi
19092     shlibpath_var=LIBPATH
19093   fi
19094   ;;
19095
19096 amigaos*)
19097   case $host_cpu in
19098   powerpc)
19099     # Since July 2007 AmigaOS4 officially supports .so libraries.
19100     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102     ;;
19103   m68k)
19104     library_names_spec='$libname.ixlibrary $libname.a'
19105     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19106     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19107     ;;
19108   esac
19109   ;;
19110
19111 beos*)
19112   library_names_spec='${libname}${shared_ext}'
19113   dynamic_linker="$host_os ld.so"
19114   shlibpath_var=LIBRARY_PATH
19115   ;;
19116
19117 bsdi[45]*)
19118   version_type=linux
19119   need_version=no
19120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121   soname_spec='${libname}${release}${shared_ext}$major'
19122   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19123   shlibpath_var=LD_LIBRARY_PATH
19124   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19125   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19126   # the default ld.so.conf also contains /usr/contrib/lib and
19127   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19128   # libtool to hard-code these into programs
19129   ;;
19130
19131 cygwin* | mingw* | pw32* | cegcc*)
19132   version_type=windows
19133   shrext_cmds=".dll"
19134   need_version=no
19135   need_lib_prefix=no
19136
19137   case $GCC,$cc_basename in
19138   yes,*)
19139     # gcc
19140     library_names_spec='$libname.dll.a'
19141     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19142     postinstall_cmds='base_file=`basename \${file}`~
19143       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19144       dldir=$destdir/`dirname \$dlpath`~
19145       test -d \$dldir || mkdir -p \$dldir~
19146       $install_prog $dir/$dlname \$dldir/$dlname~
19147       chmod a+x \$dldir/$dlname~
19148       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19149         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19150       fi'
19151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19152       dlpath=$dir/\$dldll~
19153        $RM \$dlpath'
19154     shlibpath_overrides_runpath=yes
19155
19156     case $host_os in
19157     cygwin*)
19158       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19159       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19160
19161       ;;
19162     mingw* | cegcc*)
19163       # MinGW DLLs use traditional 'lib' prefix
19164       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19165       ;;
19166     pw32*)
19167       # pw32 DLLs use 'pw' prefix rather than 'lib'
19168       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19169       ;;
19170     esac
19171     dynamic_linker='Win32 ld.exe'
19172     ;;
19173
19174   *,cl*)
19175     # Native MSVC
19176     libname_spec='$name'
19177     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19178     library_names_spec='${libname}.dll.lib'
19179
19180     case $build_os in
19181     mingw*)
19182       sys_lib_search_path_spec=
19183       lt_save_ifs=$IFS
19184       IFS=';'
19185       for lt_path in $LIB
19186       do
19187         IFS=$lt_save_ifs
19188         # Let DOS variable expansion print the short 8.3 style file name.
19189         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19190         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19191       done
19192       IFS=$lt_save_ifs
19193       # Convert to MSYS style.
19194       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19195       ;;
19196     cygwin*)
19197       # Convert to unix form, then to dos form, then back to unix form
19198       # but this time dos style (no spaces!) so that the unix form looks
19199       # like /cygdrive/c/PROGRA~1:/cygdr...
19200       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19201       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19202       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19203       ;;
19204     *)
19205       sys_lib_search_path_spec="$LIB"
19206       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19207         # It is most probably a Windows format PATH.
19208         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19209       else
19210         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19211       fi
19212       # FIXME: find the short name or the path components, as spaces are
19213       # common. (e.g. "Program Files" -> "PROGRA~1")
19214       ;;
19215     esac
19216
19217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19218     postinstall_cmds='base_file=`basename \${file}`~
19219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19220       dldir=$destdir/`dirname \$dlpath`~
19221       test -d \$dldir || mkdir -p \$dldir~
19222       $install_prog $dir/$dlname \$dldir/$dlname'
19223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19224       dlpath=$dir/\$dldll~
19225        $RM \$dlpath'
19226     shlibpath_overrides_runpath=yes
19227     dynamic_linker='Win32 link.exe'
19228     ;;
19229
19230   *)
19231     # Assume MSVC wrapper
19232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19233     dynamic_linker='Win32 ld.exe'
19234     ;;
19235   esac
19236   # FIXME: first we should search . and the directory the executable is in
19237   shlibpath_var=PATH
19238   ;;
19239
19240 darwin* | rhapsody*)
19241   dynamic_linker="$host_os dyld"
19242   version_type=darwin
19243   need_lib_prefix=no
19244   need_version=no
19245   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246   soname_spec='${libname}${release}${major}$shared_ext'
19247   shlibpath_overrides_runpath=yes
19248   shlibpath_var=DYLD_LIBRARY_PATH
19249   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19250
19251   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19252   ;;
19253
19254 dgux*)
19255   version_type=linux
19256   need_lib_prefix=no
19257   need_version=no
19258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19259   soname_spec='${libname}${release}${shared_ext}$major'
19260   shlibpath_var=LD_LIBRARY_PATH
19261   ;;
19262
19263 freebsd1*)
19264   dynamic_linker=no
19265   ;;
19266
19267 freebsd* | dragonfly*)
19268   # DragonFly does not have aout.  When/if they implement a new
19269   # versioning mechanism, adjust this.
19270   if test -x /usr/bin/objformat; then
19271     objformat=`/usr/bin/objformat`
19272   else
19273     case $host_os in
19274     freebsd[123]*) objformat=aout ;;
19275     *) objformat=elf ;;
19276     esac
19277   fi
19278   version_type=freebsd-$objformat
19279   case $version_type in
19280     freebsd-elf*)
19281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19282       need_version=no
19283       need_lib_prefix=no
19284       ;;
19285     freebsd-*)
19286       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19287       need_version=yes
19288       ;;
19289   esac
19290   shlibpath_var=LD_LIBRARY_PATH
19291   case $host_os in
19292   freebsd2*)
19293     shlibpath_overrides_runpath=yes
19294     ;;
19295   freebsd3.[01]* | freebsdelf3.[01]*)
19296     shlibpath_overrides_runpath=yes
19297     hardcode_into_libs=yes
19298     ;;
19299   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19300   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19301     shlibpath_overrides_runpath=no
19302     hardcode_into_libs=yes
19303     ;;
19304   *) # from 4.6 on, and DragonFly
19305     shlibpath_overrides_runpath=yes
19306     hardcode_into_libs=yes
19307     ;;
19308   esac
19309   ;;
19310
19311 gnu*)
19312   version_type=linux
19313   need_lib_prefix=no
19314   need_version=no
19315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19316   soname_spec='${libname}${release}${shared_ext}$major'
19317   shlibpath_var=LD_LIBRARY_PATH
19318   hardcode_into_libs=yes
19319   ;;
19320
19321 haiku*)
19322   version_type=linux
19323   need_lib_prefix=no
19324   need_version=no
19325   dynamic_linker="$host_os runtime_loader"
19326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19327   soname_spec='${libname}${release}${shared_ext}$major'
19328   shlibpath_var=LIBRARY_PATH
19329   shlibpath_overrides_runpath=yes
19330   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19331   hardcode_into_libs=yes
19332   ;;
19333
19334 hpux9* | hpux10* | hpux11*)
19335   # Give a soname corresponding to the major version so that dld.sl refuses to
19336   # link against other versions.
19337   version_type=sunos
19338   need_lib_prefix=no
19339   need_version=no
19340   case $host_cpu in
19341   ia64*)
19342     shrext_cmds='.so'
19343     hardcode_into_libs=yes
19344     dynamic_linker="$host_os dld.so"
19345     shlibpath_var=LD_LIBRARY_PATH
19346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348     soname_spec='${libname}${release}${shared_ext}$major'
19349     if test "X$HPUX_IA64_MODE" = X32; then
19350       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19351     else
19352       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19353     fi
19354     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19355     ;;
19356   hppa*64*)
19357     shrext_cmds='.sl'
19358     hardcode_into_libs=yes
19359     dynamic_linker="$host_os dld.sl"
19360     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363     soname_spec='${libname}${release}${shared_ext}$major'
19364     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19366     ;;
19367   *)
19368     shrext_cmds='.sl'
19369     dynamic_linker="$host_os dld.sl"
19370     shlibpath_var=SHLIB_PATH
19371     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373     soname_spec='${libname}${release}${shared_ext}$major'
19374     ;;
19375   esac
19376   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19377   postinstall_cmds='chmod 555 $lib'
19378   # or fails outright, so override atomically:
19379   install_override_mode=555
19380   ;;
19381
19382 interix[3-9]*)
19383   version_type=linux
19384   need_lib_prefix=no
19385   need_version=no
19386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387   soname_spec='${libname}${release}${shared_ext}$major'
19388   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19389   shlibpath_var=LD_LIBRARY_PATH
19390   shlibpath_overrides_runpath=no
19391   hardcode_into_libs=yes
19392   ;;
19393
19394 irix5* | irix6* | nonstopux*)
19395   case $host_os in
19396     nonstopux*) version_type=nonstopux ;;
19397     *)
19398         if test "$lt_cv_prog_gnu_ld" = yes; then
19399                 version_type=linux
19400         else
19401                 version_type=irix
19402         fi ;;
19403   esac
19404   need_lib_prefix=no
19405   need_version=no
19406   soname_spec='${libname}${release}${shared_ext}$major'
19407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19408   case $host_os in
19409   irix5* | nonstopux*)
19410     libsuff= shlibsuff=
19411     ;;
19412   *)
19413     case $LD in # libtool.m4 will add one of these switches to LD
19414     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19415       libsuff= shlibsuff= libmagic=32-bit;;
19416     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19417       libsuff=32 shlibsuff=N32 libmagic=N32;;
19418     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19419       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19420     *) libsuff= shlibsuff= libmagic=never-match;;
19421     esac
19422     ;;
19423   esac
19424   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19425   shlibpath_overrides_runpath=no
19426   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19427   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19428   hardcode_into_libs=yes
19429   ;;
19430
19431 # No shared lib support for Linux oldld, aout, or coff.
19432 linux*oldld* | linux*aout* | linux*coff*)
19433   dynamic_linker=no
19434   ;;
19435
19436 # This must be Linux ELF.
19437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19438   version_type=linux
19439   need_lib_prefix=no
19440   need_version=no
19441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442   soname_spec='${libname}${release}${shared_ext}$major'
19443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19444   shlibpath_var=LD_LIBRARY_PATH
19445   shlibpath_overrides_runpath=no
19446
19447   # Some binutils ld are patched to set DT_RUNPATH
19448   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451   lt_cv_shlibpath_overrides_runpath=no
19452     save_LDFLAGS=$LDFLAGS
19453     save_libdir=$libdir
19454     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19455          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h.  */
19458
19459 int
19460 main ()
19461 {
19462
19463   ;
19464   return 0;
19465 }
19466 _ACEOF
19467 if ac_fn_cxx_try_link "$LINENO"; then :
19468   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19469   lt_cv_shlibpath_overrides_runpath=yes
19470 fi
19471 fi
19472 rm -f core conftest.err conftest.$ac_objext \
19473     conftest$ac_exeext conftest.$ac_ext
19474     LDFLAGS=$save_LDFLAGS
19475     libdir=$save_libdir
19476
19477 fi
19478
19479   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19480
19481   # This implies no fast_install, which is unacceptable.
19482   # Some rework will be needed to allow for fast_install
19483   # before this can be enabled.
19484   hardcode_into_libs=yes
19485
19486   # Add ABI-specific directories to the system library path.
19487   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19488
19489   # Append ld.so.conf contents to the search path
19490   if test -f /etc/ld.so.conf; then
19491     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
19492     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19493
19494   fi
19495
19496   # We used to test for /lib/ld.so.1 and disable shared libraries on
19497   # powerpc, because MkLinux only supported shared libraries with the
19498   # GNU dynamic linker.  Since this was broken with cross compilers,
19499   # most powerpc-linux boxes support dynamic linking these days and
19500   # people can always --disable-shared, the test was removed, and we
19501   # assume the GNU/Linux dynamic linker is in use.
19502   dynamic_linker='GNU/Linux ld.so'
19503   ;;
19504
19505 netbsd*)
19506   version_type=sunos
19507   need_lib_prefix=no
19508   need_version=no
19509   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19511     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19512     dynamic_linker='NetBSD (a.out) ld.so'
19513   else
19514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19515     soname_spec='${libname}${release}${shared_ext}$major'
19516     dynamic_linker='NetBSD ld.elf_so'
19517   fi
19518   shlibpath_var=LD_LIBRARY_PATH
19519   shlibpath_overrides_runpath=yes
19520   hardcode_into_libs=yes
19521   ;;
19522
19523 newsos6)
19524   version_type=linux
19525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19526   shlibpath_var=LD_LIBRARY_PATH
19527   shlibpath_overrides_runpath=yes
19528   ;;
19529
19530 *nto* | *qnx*)
19531   version_type=qnx
19532   need_lib_prefix=no
19533   need_version=no
19534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535   soname_spec='${libname}${release}${shared_ext}$major'
19536   shlibpath_var=LD_LIBRARY_PATH
19537   shlibpath_overrides_runpath=no
19538   hardcode_into_libs=yes
19539   dynamic_linker='ldqnx.so'
19540   ;;
19541
19542 openbsd*)
19543   version_type=sunos
19544   sys_lib_dlsearch_path_spec="/usr/lib"
19545   need_lib_prefix=no
19546   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19547   case $host_os in
19548     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19549     *)                          need_version=no  ;;
19550   esac
19551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19553   shlibpath_var=LD_LIBRARY_PATH
19554   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19555     case $host_os in
19556       openbsd2.[89] | openbsd2.[89].*)
19557         shlibpath_overrides_runpath=no
19558         ;;
19559       *)
19560         shlibpath_overrides_runpath=yes
19561         ;;
19562       esac
19563   else
19564     shlibpath_overrides_runpath=yes
19565   fi
19566   ;;
19567
19568 os2*)
19569   libname_spec='$name'
19570   shrext_cmds=".dll"
19571   need_lib_prefix=no
19572   library_names_spec='$libname${shared_ext} $libname.a'
19573   dynamic_linker='OS/2 ld.exe'
19574   shlibpath_var=LIBPATH
19575   ;;
19576
19577 osf3* | osf4* | osf5*)
19578   version_type=osf
19579   need_lib_prefix=no
19580   need_version=no
19581   soname_spec='${libname}${release}${shared_ext}$major'
19582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19583   shlibpath_var=LD_LIBRARY_PATH
19584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19585   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19586   ;;
19587
19588 rdos*)
19589   dynamic_linker=no
19590   ;;
19591
19592 solaris*)
19593   version_type=linux
19594   need_lib_prefix=no
19595   need_version=no
19596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597   soname_spec='${libname}${release}${shared_ext}$major'
19598   shlibpath_var=LD_LIBRARY_PATH
19599   shlibpath_overrides_runpath=yes
19600   hardcode_into_libs=yes
19601   # ldd complains unless libraries are executable
19602   postinstall_cmds='chmod +x $lib'
19603   ;;
19604
19605 sunos4*)
19606   version_type=sunos
19607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19608   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19609   shlibpath_var=LD_LIBRARY_PATH
19610   shlibpath_overrides_runpath=yes
19611   if test "$with_gnu_ld" = yes; then
19612     need_lib_prefix=no
19613   fi
19614   need_version=yes
19615   ;;
19616
19617 sysv4 | sysv4.3*)
19618   version_type=linux
19619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19620   soname_spec='${libname}${release}${shared_ext}$major'
19621   shlibpath_var=LD_LIBRARY_PATH
19622   case $host_vendor in
19623     sni)
19624       shlibpath_overrides_runpath=no
19625       need_lib_prefix=no
19626       runpath_var=LD_RUN_PATH
19627       ;;
19628     siemens)
19629       need_lib_prefix=no
19630       ;;
19631     motorola)
19632       need_lib_prefix=no
19633       need_version=no
19634       shlibpath_overrides_runpath=no
19635       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19636       ;;
19637   esac
19638   ;;
19639
19640 sysv4*MP*)
19641   if test -d /usr/nec ;then
19642     version_type=linux
19643     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19644     soname_spec='$libname${shared_ext}.$major'
19645     shlibpath_var=LD_LIBRARY_PATH
19646   fi
19647   ;;
19648
19649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19650   version_type=freebsd-elf
19651   need_lib_prefix=no
19652   need_version=no
19653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19654   soname_spec='${libname}${release}${shared_ext}$major'
19655   shlibpath_var=LD_LIBRARY_PATH
19656   shlibpath_overrides_runpath=yes
19657   hardcode_into_libs=yes
19658   if test "$with_gnu_ld" = yes; then
19659     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19660   else
19661     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19662     case $host_os in
19663       sco3.2v5*)
19664         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19665         ;;
19666     esac
19667   fi
19668   sys_lib_dlsearch_path_spec='/usr/lib'
19669   ;;
19670
19671 tpf*)
19672   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19673   version_type=linux
19674   need_lib_prefix=no
19675   need_version=no
19676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19677   shlibpath_var=LD_LIBRARY_PATH
19678   shlibpath_overrides_runpath=no
19679   hardcode_into_libs=yes
19680   ;;
19681
19682 uts4*)
19683   version_type=linux
19684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19685   soname_spec='${libname}${release}${shared_ext}$major'
19686   shlibpath_var=LD_LIBRARY_PATH
19687   ;;
19688
19689 *)
19690   dynamic_linker=no
19691   ;;
19692 esac
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19694 $as_echo "$dynamic_linker" >&6; }
19695 test "$dynamic_linker" = no && can_build_shared=no
19696
19697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19698 if test "$GCC" = yes; then
19699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19700 fi
19701
19702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19703   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19704 fi
19705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19706   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19707 fi
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19748 hardcode_action_CXX=
19749 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19750    test -n "$runpath_var_CXX" ||
19751    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19752
19753   # We can hardcode non-existent directories.
19754   if test "$hardcode_direct_CXX" != no &&
19755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19756      # have to relink, otherwise we might link with an installed library
19757      # when we should be linking with a yet-to-be-installed one
19758      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19759      test "$hardcode_minus_L_CXX" != no; then
19760     # Linking always hardcodes the temporary library directory.
19761     hardcode_action_CXX=relink
19762   else
19763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19764     hardcode_action_CXX=immediate
19765   fi
19766 else
19767   # We cannot hardcode anything, or else we can only hardcode existing
19768   # directories.
19769   hardcode_action_CXX=unsupported
19770 fi
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19772 $as_echo "$hardcode_action_CXX" >&6; }
19773
19774 if test "$hardcode_action_CXX" = relink ||
19775    test "$inherit_rpath_CXX" = yes; then
19776   # Fast installation is not supported
19777   enable_fast_install=no
19778 elif test "$shlibpath_overrides_runpath" = yes ||
19779      test "$enable_shared" = no; then
19780   # Fast installation is not necessary
19781   enable_fast_install=needless
19782 fi
19783
19784
19785
19786
19787
19788
19789
19790   fi # test -n "$compiler"
19791
19792   CC=$lt_save_CC
19793   CFLAGS=$lt_save_CFLAGS
19794   LDCXX=$LD
19795   LD=$lt_save_LD
19796   GCC=$lt_save_GCC
19797   with_gnu_ld=$lt_save_with_gnu_ld
19798   lt_cv_path_LDCXX=$lt_cv_path_LD
19799   lt_cv_path_LD=$lt_save_path_LD
19800   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19801   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19802 fi # test "$_lt_caught_CXX_error" != yes
19803
19804 ac_ext=c
19805 ac_cpp='$CPP $CPPFLAGS'
19806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822         ac_config_commands="$ac_config_commands libtool"
19823
19824
19825
19826
19827 # Only expand once:
19828
19829
19830
19831
19832
19833 # Configure libltdl
19834
19835
19836
19837
19838
19839
19840
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19842 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19843 if ${libltdl_cv_shlibext+:} false; then :
19844   $as_echo_n "(cached) " >&6
19845 else
19846
19847 module=yes
19848 eval libltdl_cv_shlibext=$shrext_cmds
19849
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19852 $as_echo "$libltdl_cv_shlibext" >&6; }
19853 if test -n "$libltdl_cv_shlibext"; then
19854
19855 cat >>confdefs.h <<_ACEOF
19856 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19857 _ACEOF
19858
19859 fi
19860
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19862 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19863 if ${lt_cv_module_path_var+:} false; then :
19864   $as_echo_n "(cached) " >&6
19865 else
19866   lt_cv_module_path_var="$shlibpath_var"
19867 fi
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19869 $as_echo "$lt_cv_module_path_var" >&6; }
19870 if test -n "$lt_cv_module_path_var"; then
19871
19872 cat >>confdefs.h <<_ACEOF
19873 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19874 _ACEOF
19875
19876 fi
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19879 $as_echo_n "checking for the default library search path... " >&6; }
19880 if ${lt_cv_sys_dlsearch_path+:} false; then :
19881   $as_echo_n "(cached) " >&6
19882 else
19883   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19886 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19887 if test -n "$lt_cv_sys_dlsearch_path"; then
19888   sys_dlsearch_path=
19889   for dir in $lt_cv_sys_dlsearch_path; do
19890     if test -z "$sys_dlsearch_path"; then
19891       sys_dlsearch_path="$dir"
19892     else
19893       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19894     fi
19895   done
19896
19897 cat >>confdefs.h <<_ACEOF
19898 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19899 _ACEOF
19900
19901 fi
19902
19903
19904 LT_DLLOADERS=
19905
19906
19907 ac_ext=c
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19912
19913
19914 LIBADD_DLOPEN=
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19916 $as_echo_n "checking for library containing dlopen... " >&6; }
19917 if ${ac_cv_search_dlopen+:} false; then :
19918   $as_echo_n "(cached) " >&6
19919 else
19920   ac_func_search_save_LIBS=$LIBS
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h.  */
19923
19924 /* Override any GCC internal prototype to avoid an error.
19925    Use char because int might match the return type of a GCC
19926    builtin and then its argument prototype would still apply.  */
19927 #ifdef __cplusplus
19928 extern "C"
19929 #endif
19930 char dlopen ();
19931 int
19932 main ()
19933 {
19934 return dlopen ();
19935   ;
19936   return 0;
19937 }
19938 _ACEOF
19939 for ac_lib in '' dl; do
19940   if test -z "$ac_lib"; then
19941     ac_res="none required"
19942   else
19943     ac_res=-l$ac_lib
19944     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19945   fi
19946   if ac_fn_c_try_link "$LINENO"; then :
19947   ac_cv_search_dlopen=$ac_res
19948 fi
19949 rm -f core conftest.err conftest.$ac_objext \
19950     conftest$ac_exeext
19951   if ${ac_cv_search_dlopen+:} false; then :
19952   break
19953 fi
19954 done
19955 if ${ac_cv_search_dlopen+:} false; then :
19956
19957 else
19958   ac_cv_search_dlopen=no
19959 fi
19960 rm conftest.$ac_ext
19961 LIBS=$ac_func_search_save_LIBS
19962 fi
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19964 $as_echo "$ac_cv_search_dlopen" >&6; }
19965 ac_res=$ac_cv_search_dlopen
19966 if test "$ac_res" != no; then :
19967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19968
19969 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19970
19971         if test "$ac_cv_search_dlopen" != "none required" ; then
19972           LIBADD_DLOPEN="-ldl"
19973         fi
19974         libltdl_cv_lib_dl_dlopen="yes"
19975         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19976 else
19977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h.  */
19979 #if HAVE_DLFCN_H
19980 #  include <dlfcn.h>
19981 #endif
19982
19983 int
19984 main ()
19985 {
19986 dlopen(0, 0);
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 if ac_fn_c_try_link "$LINENO"; then :
19992
19993 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19994
19995             libltdl_cv_func_dlopen="yes"
19996             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19997 else
19998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19999 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20000 if ${ac_cv_lib_svld_dlopen+:} false; then :
20001   $as_echo_n "(cached) " >&6
20002 else
20003   ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-lsvld  $LIBS"
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h.  */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009    Use char because int might match the return type of a GCC
20010    builtin and then its argument prototype would still apply.  */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char dlopen ();
20015 int
20016 main ()
20017 {
20018 return dlopen ();
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 if ac_fn_c_try_link "$LINENO"; then :
20024   ac_cv_lib_svld_dlopen=yes
20025 else
20026   ac_cv_lib_svld_dlopen=no
20027 fi
20028 rm -f core conftest.err conftest.$ac_objext \
20029     conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20031 fi
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20034 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20035
20036 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20037
20038                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20039                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20040 fi
20041
20042 fi
20043 rm -f core conftest.err conftest.$ac_objext \
20044     conftest$ac_exeext conftest.$ac_ext
20045 fi
20046
20047 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20048 then
20049   lt_save_LIBS="$LIBS"
20050   LIBS="$LIBS $LIBADD_DLOPEN"
20051   for ac_func in dlerror
20052 do :
20053   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20054 if test "x$ac_cv_func_dlerror" = xyes; then :
20055   cat >>confdefs.h <<_ACEOF
20056 #define HAVE_DLERROR 1
20057 _ACEOF
20058
20059 fi
20060 done
20061
20062   LIBS="$lt_save_LIBS"
20063 fi
20064
20065
20066 LIBADD_SHL_LOAD=
20067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20068 if test "x$ac_cv_func_shl_load" = xyes; then :
20069
20070 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20071
20072         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20073 else
20074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20075 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20076 if ${ac_cv_lib_dld_shl_load+:} false; then :
20077   $as_echo_n "(cached) " >&6
20078 else
20079   ac_check_lib_save_LIBS=$LIBS
20080 LIBS="-ldld  $LIBS"
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h.  */
20083
20084 /* Override any GCC internal prototype to avoid an error.
20085    Use char because int might match the return type of a GCC
20086    builtin and then its argument prototype would still apply.  */
20087 #ifdef __cplusplus
20088 extern "C"
20089 #endif
20090 char shl_load ();
20091 int
20092 main ()
20093 {
20094 return shl_load ();
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 if ac_fn_c_try_link "$LINENO"; then :
20100   ac_cv_lib_dld_shl_load=yes
20101 else
20102   ac_cv_lib_dld_shl_load=no
20103 fi
20104 rm -f core conftest.err conftest.$ac_objext \
20105     conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20107 fi
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20109 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20110 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20111
20112 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20113
20114             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20115             LIBADD_SHL_LOAD="-ldld"
20116 fi
20117
20118 fi
20119
20120
20121
20122 case $host_os in
20123 darwin[1567].*)
20124 # We only want this for pre-Mac OS X 10.4.
20125   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20126 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20127
20128 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20129
20130         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20131 fi
20132
20133   ;;
20134 beos*)
20135   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20136   ;;
20137 cygwin* | mingw* | os2* | pw32*)
20138   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20139 "
20140 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20141   ac_have_decl=1
20142 else
20143   ac_have_decl=0
20144 fi
20145
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20148 _ACEOF
20149
20150   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20151   ;;
20152 esac
20153
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20156 if ${ac_cv_lib_dld_dld_link+:} false; then :
20157   $as_echo_n "(cached) " >&6
20158 else
20159   ac_check_lib_save_LIBS=$LIBS
20160 LIBS="-ldld  $LIBS"
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h.  */
20163
20164 /* Override any GCC internal prototype to avoid an error.
20165    Use char because int might match the return type of a GCC
20166    builtin and then its argument prototype would still apply.  */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char dld_link ();
20171 int
20172 main ()
20173 {
20174 return dld_link ();
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 if ac_fn_c_try_link "$LINENO"; then :
20180   ac_cv_lib_dld_dld_link=yes
20181 else
20182   ac_cv_lib_dld_dld_link=no
20183 fi
20184 rm -f core conftest.err conftest.$ac_objext \
20185     conftest$ac_exeext conftest.$ac_ext
20186 LIBS=$ac_check_lib_save_LIBS
20187 fi
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20190 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20191
20192 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20193
20194                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20195 fi
20196
20197
20198
20199
20200 LT_DLPREOPEN=
20201 if test -n "$LT_DLLOADERS"
20202 then
20203   for lt_loader in $LT_DLLOADERS; do
20204     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20205   done
20206
20207 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20208
20209 fi
20210
20211
20212 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20213
20214
20215 ac_ext=c
20216 ac_cpp='$CPP $CPPFLAGS'
20217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20220
20221
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20223 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20224 if ${lt_cv_sys_symbol_underscore+:} false; then :
20225   $as_echo_n "(cached) " >&6
20226 else
20227   lt_cv_sys_symbol_underscore=no
20228   cat > conftest.$ac_ext <<_LT_EOF
20229 void nm_test_func(){}
20230 int main(){nm_test_func;return 0;}
20231 _LT_EOF
20232   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20233   (eval $ac_compile) 2>&5
20234   ac_status=$?
20235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20236   test $ac_status = 0; }; then
20237     # Now try to grab the symbols.
20238     ac_nlist=conftest.nm
20239     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20240   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20241   ac_status=$?
20242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243   test $ac_status = 0; } && test -s "$ac_nlist"; then
20244       # See whether the symbols have a leading underscore.
20245       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20246         lt_cv_sys_symbol_underscore=yes
20247       else
20248         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20249           :
20250         else
20251           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20252         fi
20253       fi
20254     else
20255       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20256     fi
20257   else
20258     echo "configure: failed program was:" >&5
20259     cat conftest.c >&5
20260   fi
20261   rm -rf conftest*
20262
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20265 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20266   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20267
20268
20269 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20270   if test x"$libltdl_cv_func_dlopen" = xyes ||
20271      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20272         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20273 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20274 if ${libltdl_cv_need_uscore+:} false; then :
20275   $as_echo_n "(cached) " >&6
20276 else
20277   libltdl_cv_need_uscore=unknown
20278           save_LIBS="$LIBS"
20279           LIBS="$LIBS $LIBADD_DLOPEN"
20280           if test "$cross_compiling" = yes; then :
20281   libltdl_cv_need_uscore=cross
20282 else
20283   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20284   lt_status=$lt_dlunknown
20285   cat > conftest.$ac_ext <<_LT_EOF
20286 #line $LINENO "configure"
20287 #include "confdefs.h"
20288
20289 #if HAVE_DLFCN_H
20290 #include <dlfcn.h>
20291 #endif
20292
20293 #include <stdio.h>
20294
20295 #ifdef RTLD_GLOBAL
20296 #  define LT_DLGLOBAL           RTLD_GLOBAL
20297 #else
20298 #  ifdef DL_GLOBAL
20299 #    define LT_DLGLOBAL         DL_GLOBAL
20300 #  else
20301 #    define LT_DLGLOBAL         0
20302 #  endif
20303 #endif
20304
20305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20306    find out it does not work in some platform. */
20307 #ifndef LT_DLLAZY_OR_NOW
20308 #  ifdef RTLD_LAZY
20309 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20310 #  else
20311 #    ifdef DL_LAZY
20312 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20313 #    else
20314 #      ifdef RTLD_NOW
20315 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20316 #      else
20317 #        ifdef DL_NOW
20318 #          define LT_DLLAZY_OR_NOW      DL_NOW
20319 #        else
20320 #          define LT_DLLAZY_OR_NOW      0
20321 #        endif
20322 #      endif
20323 #    endif
20324 #  endif
20325 #endif
20326
20327 /* When -fvisbility=hidden is used, assume the code has been annotated
20328    correspondingly for the symbols needed.  */
20329 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20330 int fnord () __attribute__((visibility("default")));
20331 #endif
20332
20333 int fnord () { return 42; }
20334 int main ()
20335 {
20336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20337   int status = $lt_dlunknown;
20338
20339   if (self)
20340     {
20341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20342       else
20343         {
20344           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20345           else puts (dlerror ());
20346         }
20347       /* dlclose (self); */
20348     }
20349   else
20350     puts (dlerror ());
20351
20352   return status;
20353 }
20354 _LT_EOF
20355   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20356   (eval $ac_link) 2>&5
20357   ac_status=$?
20358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20360     (./conftest; exit; ) >&5 2>/dev/null
20361     lt_status=$?
20362     case x$lt_status in
20363       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20364       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20365       x$lt_dlunknown|x*)  ;;
20366     esac
20367   else :
20368     # compilation failed
20369
20370   fi
20371 fi
20372 rm -fr conftest*
20373
20374           LIBS="$save_LIBS"
20375
20376 fi
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20378 $as_echo "$libltdl_cv_need_uscore" >&6; }
20379   fi
20380 fi
20381
20382 if test x"$libltdl_cv_need_uscore" = xyes; then
20383
20384 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20385
20386 fi
20387
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20389 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20390 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20391   $as_echo_n "(cached) " >&6
20392 else
20393   # PORTME does your system automatically load deplibs for dlopen?
20394   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20395   # For now, we just catch OSes we know something about -- in the
20396   # future, we'll try test this programmatically.
20397   lt_cv_sys_dlopen_deplibs=unknown
20398   case $host_os in
20399   aix3*|aix4.1.*|aix4.2.*)
20400     # Unknown whether this is true for these versions of AIX, but
20401     # we want this `case' here to explicitly catch those versions.
20402     lt_cv_sys_dlopen_deplibs=unknown
20403     ;;
20404   aix[4-9]*)
20405     lt_cv_sys_dlopen_deplibs=yes
20406     ;;
20407   amigaos*)
20408     case $host_cpu in
20409     powerpc)
20410       lt_cv_sys_dlopen_deplibs=no
20411       ;;
20412     esac
20413     ;;
20414   darwin*)
20415     # Assuming the user has installed a libdl from somewhere, this is true
20416     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20417     lt_cv_sys_dlopen_deplibs=yes
20418     ;;
20419   freebsd* | dragonfly*)
20420     lt_cv_sys_dlopen_deplibs=yes
20421     ;;
20422   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20423     # GNU and its variants, using gnu ld.so (Glibc)
20424     lt_cv_sys_dlopen_deplibs=yes
20425     ;;
20426   hpux10*|hpux11*)
20427     lt_cv_sys_dlopen_deplibs=yes
20428     ;;
20429   interix*)
20430     lt_cv_sys_dlopen_deplibs=yes
20431     ;;
20432   irix[12345]*|irix6.[01]*)
20433     # Catch all versions of IRIX before 6.2, and indicate that we don't
20434     # know how it worked for any of those versions.
20435     lt_cv_sys_dlopen_deplibs=unknown
20436     ;;
20437   irix*)
20438     # The case above catches anything before 6.2, and it's known that
20439     # at 6.2 and later dlopen does load deplibs.
20440     lt_cv_sys_dlopen_deplibs=yes
20441     ;;
20442   netbsd*)
20443     lt_cv_sys_dlopen_deplibs=yes
20444     ;;
20445   openbsd*)
20446     lt_cv_sys_dlopen_deplibs=yes
20447     ;;
20448   osf[1234]*)
20449     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20450     # it did *not* use an RPATH in a shared library to find objects the
20451     # library depends on, so we explicitly say `no'.
20452     lt_cv_sys_dlopen_deplibs=no
20453     ;;
20454   osf5.0|osf5.0a|osf5.1)
20455     # dlopen *does* load deplibs and with the right loader patch applied
20456     # it even uses RPATH in a shared library to search for shared objects
20457     # that the library depends on, but there's no easy way to know if that
20458     # patch is installed.  Since this is the case, all we can really
20459     # say is unknown -- it depends on the patch being installed.  If
20460     # it is, this changes to `yes'.  Without it, it would be `no'.
20461     lt_cv_sys_dlopen_deplibs=unknown
20462     ;;
20463   osf*)
20464     # the two cases above should catch all versions of osf <= 5.1.  Read
20465     # the comments above for what we know about them.
20466     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20467     # is used to find them so we can finally say `yes'.
20468     lt_cv_sys_dlopen_deplibs=yes
20469     ;;
20470   qnx*)
20471     lt_cv_sys_dlopen_deplibs=yes
20472     ;;
20473   solaris*)
20474     lt_cv_sys_dlopen_deplibs=yes
20475     ;;
20476   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20477     libltdl_cv_sys_dlopen_deplibs=yes
20478     ;;
20479   esac
20480
20481 fi
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20483 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20484 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20485
20486 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20487
20488 fi
20489
20490 :
20491
20492 for ac_header in argz.h
20493 do :
20494   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20495 "
20496 if test "x$ac_cv_header_argz_h" = xyes; then :
20497   cat >>confdefs.h <<_ACEOF
20498 #define HAVE_ARGZ_H 1
20499 _ACEOF
20500
20501 fi
20502
20503 done
20504
20505
20506 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20507 #  include <argz.h>
20508 #endif
20509 "
20510 if test "x$ac_cv_type_error_t" = xyes; then :
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_ERROR_T 1
20514 _ACEOF
20515
20516
20517 else
20518
20519 $as_echo "#define error_t int" >>confdefs.h
20520
20521
20522 $as_echo "#define __error_t_defined 1" >>confdefs.h
20523
20524 fi
20525
20526
20527 ARGZ_H=
20528 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20529         argz_next argz_stringify
20530 do :
20531   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20533 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20534   cat >>confdefs.h <<_ACEOF
20535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20536 _ACEOF
20537
20538 else
20539   ARGZ_H=argz.h;
20540
20541   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20542
20543 fi
20544 done
20545
20546
20547 if test -z "$ARGZ_H"; then :
20548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20549 $as_echo_n "checking if argz actually works... " >&6; }
20550 if ${lt_cv_sys_argz_works+:} false; then :
20551   $as_echo_n "(cached) " >&6
20552 else
20553   case $host_os in #(
20554          *cygwin*)
20555            lt_cv_sys_argz_works=no
20556            if test "$cross_compiling" != no; then
20557              lt_cv_sys_argz_works="guessing no"
20558            else
20559              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20560              save_IFS=$IFS
20561              IFS=-.
20562              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20563              IFS=$save_IFS
20564              lt_os_major=${2-0}
20565              lt_os_minor=${3-0}
20566              lt_os_micro=${4-0}
20567              if test "$lt_os_major" -gt 1 \
20568                 || { test "$lt_os_major" -eq 1 \
20569                   && { test "$lt_os_minor" -gt 5 \
20570                     || { test "$lt_os_minor" -eq 5 \
20571                       && test "$lt_os_micro" -gt 24; }; }; }; then
20572                lt_cv_sys_argz_works=yes
20573              fi
20574            fi
20575            ;; #(
20576          *) lt_cv_sys_argz_works=yes ;;
20577          esac
20578 fi
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20580 $as_echo "$lt_cv_sys_argz_works" >&6; }
20581      if test "$lt_cv_sys_argz_works" = yes; then :
20582
20583 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20584
20585 else
20586   ARGZ_H=argz.h
20587
20588
20589   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20590
20591 fi
20592 fi
20593
20594
20595
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20597 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20598 if ${libltdl_cv_preloaded_symbols+:} false; then :
20599   $as_echo_n "(cached) " >&6
20600 else
20601   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20602     libltdl_cv_preloaded_symbols=yes
20603   else
20604     libltdl_cv_preloaded_symbols=no
20605   fi
20606
20607 fi
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20609 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20610 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20611
20612 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20613
20614 fi
20615
20616 # Set options
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628 # Check whether --with-included_ltdl was given.
20629 if test "${with_included_ltdl+set}" = set; then :
20630   withval=$with_included_ltdl;
20631 fi
20632
20633
20634 if test "x$with_included_ltdl" != xyes; then
20635   # We are not being forced to use the included libltdl sources, so
20636   # decide whether there is a useful installed version we can use.
20637   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20638
20639 "
20640 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20641   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20642             #include <ltdl.h>
20643 "
20644 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20646 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20647 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20648   $as_echo_n "(cached) " >&6
20649 else
20650   ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lltdl  $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 lt_dladvise_preload ();
20662 int
20663 main ()
20664 {
20665 return lt_dladvise_preload ();
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 if ac_fn_c_try_link "$LINENO"; then :
20671   ac_cv_lib_ltdl_lt_dladvise_preload=yes
20672 else
20673   ac_cv_lib_ltdl_lt_dladvise_preload=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_ltdl_lt_dladvise_preload" >&5
20680 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20681 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20682   with_included_ltdl=no
20683 else
20684   with_included_ltdl=yes
20685 fi
20686
20687 else
20688   with_included_ltdl=yes
20689 fi
20690
20691 else
20692   with_included_ltdl=yes
20693 fi
20694
20695
20696 fi
20697
20698
20699
20700
20701 # Check whether --with-ltdl_include was given.
20702 if test "${with_ltdl_include+set}" = set; then :
20703   withval=$with_ltdl_include;
20704 fi
20705
20706
20707 if test -n "$with_ltdl_include"; then
20708   if test -f "$with_ltdl_include/ltdl.h"; then :
20709   else
20710     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20711   fi
20712 else
20713   with_ltdl_include=no
20714 fi
20715
20716
20717 # Check whether --with-ltdl_lib was given.
20718 if test "${with_ltdl_lib+set}" = set; then :
20719   withval=$with_ltdl_lib;
20720 fi
20721
20722
20723 if test -n "$with_ltdl_lib"; then
20724   if test -f "$with_ltdl_lib/libltdl.la"; then :
20725   else
20726     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20727   fi
20728 else
20729   with_ltdl_lib=no
20730 fi
20731
20732 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20733   ,yes,no,no,)
20734         case $enable_ltdl_convenience in
20735   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20736   "") enable_ltdl_convenience=yes
20737       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20738 esac
20739 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20740 LTDLDEPS=$LIBLTDL
20741 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20742
20743
20744
20745
20746
20747 # For backwards non-gettext consistent compatibility...
20748 INCLTDL="$LTDLINCL"
20749
20750
20751         ;;
20752   ,no,no,no,)
20753         # If the included ltdl is not to be used, then use the
20754         # preinstalled libltdl we found.
20755
20756 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20757
20758         LIBLTDL=-lltdl
20759         LTDLDEPS=
20760         LTDLINCL=
20761         ;;
20762   ,no*,no,*)
20763         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20764         ;;
20765   *)    with_included_ltdl=no
20766         LIBLTDL="-L$with_ltdl_lib -lltdl"
20767         LTDLDEPS=
20768         LTDLINCL="-I$with_ltdl_include"
20769         ;;
20770 esac
20771 INCLTDL="$LTDLINCL"
20772
20773 # Report our decision...
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20775 $as_echo_n "checking where to find libltdl headers... " >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20777 $as_echo "$LTDLINCL" >&6; }
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20779 $as_echo_n "checking where to find libltdl library... " >&6; }
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20781 $as_echo "$LIBLTDL" >&6; }
20782
20783
20784
20785 # Check whether --enable-ltdl-install was given.
20786 if test "${enable_ltdl_install+set}" = set; then :
20787   enableval=$enable_ltdl_install;
20788 fi
20789
20790
20791 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20792   *yes*) ;;
20793   *) enable_ltdl_convenience=yes ;;
20794 esac
20795
20796  if test x"${enable_ltdl_install-no}" != xno; then
20797   INSTALL_LTDL_TRUE=
20798   INSTALL_LTDL_FALSE='#'
20799 else
20800   INSTALL_LTDL_TRUE='#'
20801   INSTALL_LTDL_FALSE=
20802 fi
20803
20804   if test x"${enable_ltdl_convenience-no}" != xno; then
20805   CONVENIENCE_LTDL_TRUE=
20806   CONVENIENCE_LTDL_FALSE='#'
20807 else
20808   CONVENIENCE_LTDL_TRUE='#'
20809   CONVENIENCE_LTDL_FALSE=
20810 fi
20811
20812
20813
20814
20815
20816
20817 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20818 # the user used.  This is so that ltdl.h can pick up the parent projects
20819 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20820 # definitions required by ltdl.c.
20821 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20822
20823
20824
20825 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20826 do :
20827   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20829 "
20830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20831   cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833 _ACEOF
20834
20835 fi
20836
20837 done
20838
20839
20840 for ac_func in closedir opendir readdir
20841 do :
20842   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20844 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20845   cat >>confdefs.h <<_ACEOF
20846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20847 _ACEOF
20848
20849 else
20850
20851
20852   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20853
20854 fi
20855 done
20856
20857 for ac_func in strlcat strlcpy
20858 do :
20859   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20862   cat >>confdefs.h <<_ACEOF
20863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20864 _ACEOF
20865
20866 else
20867
20868
20869   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20870
20871 fi
20872 done
20873
20874
20875
20876 cat >>confdefs.h <<_ACEOF
20877 #define LT_LIBEXT "$libext"
20878 _ACEOF
20879
20880
20881 name=
20882 eval "lt_libprefix=\"$libname_spec\""
20883
20884 cat >>confdefs.h <<_ACEOF
20885 #define LT_LIBPREFIX "$lt_libprefix"
20886 _ACEOF
20887
20888
20889 name=ltdl
20890 eval "LTDLOPEN=\"$libname_spec\""
20891
20892
20893
20894
20895
20896
20897
20898
20899 # Only expand once:
20900
20901
20902
20903 # Check to see if building shared libraries
20904 libtool_build_shared_libs='no'
20905 if test "$enable_shared" = 'yes'; then
20906     libtool_build_shared_libs='yes'
20907 fi
20908
20909 # Check to see if building static libraries
20910 libtool_build_static_libs='no'
20911 if test "$enable_static" = 'yes'; then
20912     libtool_build_static_libs='yes'
20913 fi
20914
20915  if test "${libtool_build_shared_libs}" = 'yes'; then
20916   WITH_SHARED_LIBS_TRUE=
20917   WITH_SHARED_LIBS_FALSE='#'
20918 else
20919   WITH_SHARED_LIBS_TRUE='#'
20920   WITH_SHARED_LIBS_FALSE=
20921 fi
20922
20923 #
20924 # Enable support for building loadable modules
20925 #
20926
20927 # Check whether --with-modules was given.
20928 if test "${with_modules+set}" = set; then :
20929   withval=$with_modules; with_modules=$withval
20930 else
20931   with_modules='no'
20932 fi
20933
20934
20935 # Only allow building loadable modules if we are building shared libraries
20936 if test "$with_modules" != 'no' ; then
20937     if test "$libtool_build_shared_libs" = 'no'; then
20938         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20939 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20940         with_modules='no'
20941     fi
20942 fi
20943 if test "$with_modules" != 'no'; then
20944
20945 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20946
20947 fi
20948  if test "$with_modules" != 'no'; then
20949   WITH_MODULES_TRUE=
20950   WITH_MODULES_FALSE='#'
20951 else
20952   WITH_MODULES_TRUE='#'
20953   WITH_MODULES_FALSE=
20954 fi
20955
20956
20957 # Enable building/use of libltdl if we are building shared libraries regardless
20958 # of whether modules are built or not.
20959 with_ltdl='no'
20960 if test "$libtool_build_shared_libs" != 'no'; then
20961     with_ltdl='yes'
20962 fi
20963
20964  if test "$with_ltdl" != 'no'; then
20965   WITH_LTDL_TRUE=
20966   WITH_LTDL_FALSE='#'
20967 else
20968   WITH_LTDL_TRUE='#'
20969   WITH_LTDL_FALSE=
20970 fi
20971
20972 if test "$with_ltdl" != 'no'; then
20973
20974 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20975
20976
20977     # Set DLLDFLAGS
20978     if test X"$enable_shared" = Xyes; then
20979         DLLDFLAGS=-export-dynamic
20980
20981     fi
20982 fi
20983
20984 # Enable build using delegate libraries built in subdirectories rather than installed
20985 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20986 # Check whether --enable-delegate-build was given.
20987 if test "${enable_delegate_build+set}" = set; then :
20988   enableval=$enable_delegate_build; enable_delegate_build=$enableval
20989 else
20990   enable_delegate_build='no'
20991 fi
20992
20993
20994 # Check whether --enable-deprecated was given.
20995 if test "${enable_deprecated+set}" = set; then :
20996   enableval=$enable_deprecated; enable_deprecated=$enableval
20997 else
20998   enable_deprecated='no'
20999 fi
21000
21001
21002 if test "$enable_deprecated" = 'yes'; then
21003
21004 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21005
21006 else
21007   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21008 fi
21009
21010 # Build a version of ImageMagick which operates uninstalled.
21011 # Used to build distributions located via MAGICK_HOME / executable path
21012 # Check whether --enable-installed was given.
21013 if test "${enable_installed+set}" = set; then :
21014   enableval=$enable_installed; enable_installed=$enableval
21015 else
21016   enable_installed='yes'
21017 fi
21018
21019
21020 if test "$enable_installed" = 'yes'; then
21021
21022 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21023
21024 else
21025     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21026 fi
21027
21028 # Permit enciphering and deciphering image pixels.
21029 # Check whether --enable-cipher was given.
21030 if test "${enable_cipher+set}" = set; then :
21031   enableval=$enable_cipher; enable_cipher=$enableval
21032 else
21033   enable_cipher='yes'
21034 fi
21035
21036
21037 if test "$enable_cipher" = 'yes'; then
21038
21039 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21040
21041 fi
21042
21043 # Build an embeddable version of ImageMagick.
21044 # Check whether --enable-embeddable was given.
21045 if test "${enable_embeddable+set}" = set; then :
21046   enableval=$enable_embeddable; enable_embeddable=$enableval
21047 else
21048   enable_embeddable='no'
21049 fi
21050
21051
21052 if test "$enable_embeddable" = 'yes'; then
21053
21054 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
21055
21056 fi
21057
21058 # Build a high dynamic range version of ImageMagick.
21059 # Check whether --enable-hdri was given.
21060 if test "${enable_hdri+set}" = set; then :
21061   enableval=$enable_hdri; enable_hdri=$enableval
21062 else
21063   enable_hdri='no'
21064 fi
21065
21066
21067 MAGICK_HDRI=""
21068 if test "$enable_hdri" = 'yes'; then
21069     MAGICK_HDRI="HDRI"
21070
21071 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21072
21073     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21074 fi
21075
21076 # Build a version of ImageMagick with assert statements.
21077 # Check whether --enable-assert was given.
21078 if test "${enable_assert+set}" = set; then :
21079   enableval=$enable_assert; enable_assert=$enableval
21080 else
21081   enable_assert='yes'
21082 fi
21083
21084
21085 if test "$enable_assert" = 'no'; then
21086
21087 $as_echo "#define NDEBUG 1" >>confdefs.h
21088
21089 fi
21090
21091 # Add configure option --enable-maintainer-mode which enables dependency
21092 # checking and generation useful to package maintainers.  This is made an
21093 # option to avoid confusing end users.
21094
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21096 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21097     # Check whether --enable-maintainer-mode was given.
21098 if test "${enable_maintainer_mode+set}" = set; then :
21099   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21100 else
21101   USE_MAINTAINER_MODE=no
21102 fi
21103
21104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21105 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21106    if test $USE_MAINTAINER_MODE = yes; then
21107   MAINTAINER_MODE_TRUE=
21108   MAINTAINER_MODE_FALSE='#'
21109 else
21110   MAINTAINER_MODE_TRUE='#'
21111   MAINTAINER_MODE_FALSE=
21112 fi
21113
21114   MAINT=$MAINTAINER_MODE_TRUE
21115
21116
21117
21118
21119 # Enable ccmalloc memory debugging support
21120 # Check whether --enable-ccmalloc was given.
21121 if test "${enable_ccmalloc+set}" = set; then :
21122   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21123 else
21124   enable_ccmalloc='no'
21125 fi
21126
21127
21128 # Enable Electric Fence memory debugging support
21129 # Check whether --enable-efence was given.
21130 if test "${enable_efence+set}" = set; then :
21131   enableval=$enable_efence; enable_efence=$enableval
21132 else
21133   enable_efence='no'
21134 fi
21135
21136
21137 # Enable prof-based profiling support
21138 # Check whether --enable-prof was given.
21139 if test "${enable_prof+set}" = set; then :
21140   enableval=$enable_prof; enable_prof=$enableval
21141 else
21142   enable_prof='no'
21143 fi
21144
21145
21146 # Enable gprof-based profiling support
21147 # Check whether --enable-gprof was given.
21148 if test "${enable_gprof+set}" = set; then :
21149   enableval=$enable_gprof; enable_gprof=$enableval
21150 else
21151   enable_gprof='no'
21152 fi
21153
21154
21155 # Enable gcov-based profiling support
21156 # Check whether --enable-gcov was given.
21157 if test "${enable_gcov+set}" = set; then :
21158   enableval=$enable_gcov; enable_gcov=$enableval
21159 else
21160   enable_gcov='no'
21161 fi
21162
21163
21164 enable_profiling='no'
21165 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21166     enable_profiling='yes'
21167     if test "$libtool_build_shared_libs" = 'yes'; then
21168         echo "Warning: Can not profile code using shared libraries"
21169     fi
21170 fi
21171
21172 # Magick API method prefix
21173
21174 # Check whether --with-method-prefix was given.
21175 if test "${with_method_prefix+set}" = set; then :
21176   withval=$with_method_prefix; with_method_prefix=$enableval
21177 else
21178   with_method_prefix=''
21179 fi
21180
21181
21182 if test "$with_method_prefix" != ''; then
21183
21184 cat >>confdefs.h <<_ACEOF
21185 #define NAMESPACE_PREFIX $with_method_prefix
21186 _ACEOF
21187
21188 fi
21189
21190 # Number of bits in a Quantum
21191
21192 # Check whether --with-quantum-depth was given.
21193 if test "${with_quantum_depth+set}" = set; then :
21194   withval=$with_quantum_depth; with_quantum_depth=$withval
21195 else
21196   with_quantum_depth=16
21197 fi
21198
21199
21200 if test "$with_quantum_depth" != '8'; then
21201     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21202 fi
21203
21204 case "${with_quantum_depth}" in
21205     8 ) ;;
21206     16 ) ;;
21207     32 ) ;;
21208     64 ) ;;
21209     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21210 esac
21211 QUANTUM_DEPTH="$with_quantum_depth"
21212
21213 cat >>confdefs.h <<_ACEOF
21214 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21215 _ACEOF
21216
21217
21218 # Set pixel cache threshold
21219
21220 # Check whether --with-cache was given.
21221 if test "${with_cache+set}" = set; then :
21222   withval=$with_cache; with_cache=$withval
21223 else
21224   with_cache=''
21225 fi
21226
21227
21228 if test "$with_cache" != ''; then
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define PixelCacheThreshold $with_cache
21232 _ACEOF
21233
21234     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21235 fi
21236
21237 # Disable/Enable support for full delegate paths
21238
21239 # Check whether --with-frozenpaths was given.
21240 if test "${with_frozenpaths+set}" = set; then :
21241   withval=$with_frozenpaths; with_frozenpaths=$withval
21242 else
21243   with_frozenpaths='no'
21244 fi
21245
21246
21247 # Enable build/install of Magick++
21248
21249 # Check whether --with-magick-plus-plus was given.
21250 if test "${with_magick_plus_plus+set}" = set; then :
21251   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21252 else
21253   with_magick_plus_plus='yes'
21254 fi
21255
21256
21257 # Disable build/install of PerlMagick.
21258
21259 # Check whether --with-perl was given.
21260 if test "${with_perl+set}" = set; then :
21261   withval=$with_perl; with_perl=$withval
21262 else
21263   with_perl='no'
21264 fi
21265
21266
21267 # Options to pass when configuring PerlMagick
21268
21269 # Check whether --with-perl-options was given.
21270 if test "${with_perl_options+set}" = set; then :
21271   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21272 fi
21273
21274
21275
21276 # Enable umem, object-caching memory allocation library.
21277
21278 # Check whether --with-umem was given.
21279 if test "${with_umem+set}" = set; then :
21280   withval=$with_umem; with_umem=$withval
21281 else
21282   with_umem='no'
21283 fi
21284
21285 if test "$with_umem" != 'yes' ; then
21286     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21287 fi
21288
21289 #
21290 # Specify path to shared libstdc++ if not in normal location
21291 #
21292
21293 # Check whether --with-libstdc was given.
21294 if test "${with_libstdc+set}" = set; then :
21295   withval=$with_libstdc; with_libstdc=$withval
21296 else
21297   with_libstdc=''
21298 fi
21299
21300
21301 if test "$with_libstdc" != ''; then
21302     if test -d "$with_libstdc"; then
21303         LIBSTDCLDFLAGS="-L$with_libstdc"
21304     fi
21305 fi
21306
21307
21308 # Does gcc required -traditional?
21309 if test $ac_cv_c_compiler_gnu = yes; then
21310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21311 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21312 if ${ac_cv_prog_gcc_traditional+:} false; then :
21313   $as_echo_n "(cached) " >&6
21314 else
21315     ac_pattern="Autoconf.*'x'"
21316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h.  */
21318 #include <sgtty.h>
21319 Autoconf TIOCGETP
21320 _ACEOF
21321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21322   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21323   ac_cv_prog_gcc_traditional=yes
21324 else
21325   ac_cv_prog_gcc_traditional=no
21326 fi
21327 rm -f conftest*
21328
21329
21330   if test $ac_cv_prog_gcc_traditional = no; then
21331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h.  */
21333 #include <termio.h>
21334 Autoconf TCGETA
21335 _ACEOF
21336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21337   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21338   ac_cv_prog_gcc_traditional=yes
21339 fi
21340 rm -f conftest*
21341
21342   fi
21343 fi
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21345 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21346   if test $ac_cv_prog_gcc_traditional = yes; then
21347     CC="$CC -traditional"
21348   fi
21349 fi
21350
21351
21352 ########
21353 #
21354 # Set defines required to build DLLs and modules using MinGW
21355 #
21356 ########
21357 # These options are set for multi-thread DLL module build
21358 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21359 #  module:              _DLL
21360 #  executable/Magick++: _DLL _MAGICKMOD_
21361 MODULE_EXTRA_CPPFLAGS=''
21362 LIBRARY_EXTRA_CPPFLAGS=''
21363 if test "${native_win32_build}" = 'yes'; then
21364     if test "${libtool_build_shared_libs}" = 'yes'; then
21365         CPPFLAGS="$CPPFLAGS -D_DLL"
21366         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21367         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21368         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21369         if test "$with_modules" = 'yes'; then
21370             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21371         else
21372             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21373         fi
21374     else
21375         CPPFLAGS="$CPPFLAGS -D_LIB"
21376         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21377         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21378     fi
21379     if test "$with_threads" = 'yes'; then
21380          CPPFLAGS="$CPPFLAGS -D_MT"
21381          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21382          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21383     fi
21384 fi
21385
21386
21387
21388 # Check standard headers
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21390 $as_echo_n "checking for ANSI C header files... " >&6; }
21391 if ${ac_cv_header_stdc+:} false; then :
21392   $as_echo_n "(cached) " >&6
21393 else
21394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h.  */
21396 #include <stdlib.h>
21397 #include <stdarg.h>
21398 #include <string.h>
21399 #include <float.h>
21400
21401 int
21402 main ()
21403 {
21404
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 if ac_fn_c_try_compile "$LINENO"; then :
21410   ac_cv_header_stdc=yes
21411 else
21412   ac_cv_header_stdc=no
21413 fi
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415
21416 if test $ac_cv_header_stdc = yes; then
21417   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h.  */
21420 #include <string.h>
21421
21422 _ACEOF
21423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424   $EGREP "memchr" >/dev/null 2>&1; then :
21425
21426 else
21427   ac_cv_header_stdc=no
21428 fi
21429 rm -f conftest*
21430
21431 fi
21432
21433 if test $ac_cv_header_stdc = yes; then
21434   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h.  */
21437 #include <stdlib.h>
21438
21439 _ACEOF
21440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21441   $EGREP "free" >/dev/null 2>&1; then :
21442
21443 else
21444   ac_cv_header_stdc=no
21445 fi
21446 rm -f conftest*
21447
21448 fi
21449
21450 if test $ac_cv_header_stdc = yes; then
21451   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21452   if test "$cross_compiling" = yes; then :
21453   :
21454 else
21455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h.  */
21457 #include <ctype.h>
21458 #include <stdlib.h>
21459 #if ((' ' & 0x0FF) == 0x020)
21460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21462 #else
21463 # define ISLOWER(c) \
21464                    (('a' <= (c) && (c) <= 'i') \
21465                      || ('j' <= (c) && (c) <= 'r') \
21466                      || ('s' <= (c) && (c) <= 'z'))
21467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21468 #endif
21469
21470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21471 int
21472 main ()
21473 {
21474   int i;
21475   for (i = 0; i < 256; i++)
21476     if (XOR (islower (i), ISLOWER (i))
21477         || toupper (i) != TOUPPER (i))
21478       return 2;
21479   return 0;
21480 }
21481 _ACEOF
21482 if ac_fn_c_try_run "$LINENO"; then :
21483
21484 else
21485   ac_cv_header_stdc=no
21486 fi
21487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21488   conftest.$ac_objext conftest.beam conftest.$ac_ext
21489 fi
21490
21491 fi
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21494 $as_echo "$ac_cv_header_stdc" >&6; }
21495 if test $ac_cv_header_stdc = yes; then
21496
21497 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21498
21499 fi
21500
21501 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21502     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21503     header files.  Compilation cannot proceed.  Please install the ANSI C
21504     headers and rerun this script." >&5
21505 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21506     header files.  Compilation cannot proceed.  Please install the ANSI C
21507     headers and rerun this script." >&2;};
21508 fi
21509
21510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21511 $as_echo_n "checking whether to enable assertions... " >&6; }
21512   # Check whether --enable-assert was given.
21513 if test "${enable_assert+set}" = set; then :
21514   enableval=$enable_assert; ac_enable_assert=$enableval
21515      if       test "x$enableval" = xno; then :
21516
21517 $as_echo "#define NDEBUG 1" >>confdefs.h
21518
21519 elif test "x$enableval" != xyes; then :
21520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21521 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21522         ac_enable_assert=yes
21523 fi
21524 else
21525   ac_enable_assert=yes
21526 fi
21527
21528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21529 $as_echo "$ac_enable_assert" >&6; }
21530
21531 ac_header_dirent=no
21532 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21533   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21535 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21536 if eval \${$as_ac_Header+:} false; then :
21537   $as_echo_n "(cached) " >&6
21538 else
21539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h.  */
21541 #include <sys/types.h>
21542 #include <$ac_hdr>
21543
21544 int
21545 main ()
21546 {
21547 if ((DIR *) 0)
21548 return 0;
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 if ac_fn_c_try_compile "$LINENO"; then :
21554   eval "$as_ac_Header=yes"
21555 else
21556   eval "$as_ac_Header=no"
21557 fi
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 fi
21560 eval ac_res=\$$as_ac_Header
21561                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21562 $as_echo "$ac_res" >&6; }
21563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21564   cat >>confdefs.h <<_ACEOF
21565 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21566 _ACEOF
21567
21568 ac_header_dirent=$ac_hdr; break
21569 fi
21570
21571 done
21572 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21573 if test $ac_header_dirent = dirent.h; then
21574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21575 $as_echo_n "checking for library containing opendir... " >&6; }
21576 if ${ac_cv_search_opendir+:} false; then :
21577   $as_echo_n "(cached) " >&6
21578 else
21579   ac_func_search_save_LIBS=$LIBS
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h.  */
21582
21583 /* Override any GCC internal prototype to avoid an error.
21584    Use char because int might match the return type of a GCC
21585    builtin and then its argument prototype would still apply.  */
21586 #ifdef __cplusplus
21587 extern "C"
21588 #endif
21589 char opendir ();
21590 int
21591 main ()
21592 {
21593 return opendir ();
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 for ac_lib in '' dir; do
21599   if test -z "$ac_lib"; then
21600     ac_res="none required"
21601   else
21602     ac_res=-l$ac_lib
21603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21604   fi
21605   if ac_fn_c_try_link "$LINENO"; then :
21606   ac_cv_search_opendir=$ac_res
21607 fi
21608 rm -f core conftest.err conftest.$ac_objext \
21609     conftest$ac_exeext
21610   if ${ac_cv_search_opendir+:} false; then :
21611   break
21612 fi
21613 done
21614 if ${ac_cv_search_opendir+:} false; then :
21615
21616 else
21617   ac_cv_search_opendir=no
21618 fi
21619 rm conftest.$ac_ext
21620 LIBS=$ac_func_search_save_LIBS
21621 fi
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21623 $as_echo "$ac_cv_search_opendir" >&6; }
21624 ac_res=$ac_cv_search_opendir
21625 if test "$ac_res" != no; then :
21626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21627
21628 fi
21629
21630 else
21631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21632 $as_echo_n "checking for library containing opendir... " >&6; }
21633 if ${ac_cv_search_opendir+:} false; then :
21634   $as_echo_n "(cached) " >&6
21635 else
21636   ac_func_search_save_LIBS=$LIBS
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h.  */
21639
21640 /* Override any GCC internal prototype to avoid an error.
21641    Use char because int might match the return type of a GCC
21642    builtin and then its argument prototype would still apply.  */
21643 #ifdef __cplusplus
21644 extern "C"
21645 #endif
21646 char opendir ();
21647 int
21648 main ()
21649 {
21650 return opendir ();
21651   ;
21652   return 0;
21653 }
21654 _ACEOF
21655 for ac_lib in '' x; do
21656   if test -z "$ac_lib"; then
21657     ac_res="none required"
21658   else
21659     ac_res=-l$ac_lib
21660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21661   fi
21662   if ac_fn_c_try_link "$LINENO"; then :
21663   ac_cv_search_opendir=$ac_res
21664 fi
21665 rm -f core conftest.err conftest.$ac_objext \
21666     conftest$ac_exeext
21667   if ${ac_cv_search_opendir+:} false; then :
21668   break
21669 fi
21670 done
21671 if ${ac_cv_search_opendir+:} false; then :
21672
21673 else
21674   ac_cv_search_opendir=no
21675 fi
21676 rm conftest.$ac_ext
21677 LIBS=$ac_func_search_save_LIBS
21678 fi
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21680 $as_echo "$ac_cv_search_opendir" >&6; }
21681 ac_res=$ac_cv_search_opendir
21682 if test "$ac_res" != no; then :
21683   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21684
21685 fi
21686
21687 fi
21688
21689
21690 # Check additional headers
21691 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
21692 do :
21693   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21694 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21696   cat >>confdefs.h <<_ACEOF
21697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21698 _ACEOF
21699
21700 fi
21701
21702 done
21703
21704
21705 ########
21706 #
21707 # Checks for typedefs, structures, and compiler characteristics.
21708 #
21709 ########
21710
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21712 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21713 if ${ac_cv_header_stdbool_h+:} false; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h.  */
21718
21719 #include <stdbool.h>
21720 #ifndef bool
21721  "error: bool is not defined"
21722 #endif
21723 #ifndef false
21724  "error: false is not defined"
21725 #endif
21726 #if false
21727  "error: false is not 0"
21728 #endif
21729 #ifndef true
21730  "error: true is not defined"
21731 #endif
21732 #if true != 1
21733  "error: true is not 1"
21734 #endif
21735 #ifndef __bool_true_false_are_defined
21736  "error: __bool_true_false_are_defined is not defined"
21737 #endif
21738
21739         struct s { _Bool s: 1; _Bool t; } s;
21740
21741         char a[true == 1 ? 1 : -1];
21742         char b[false == 0 ? 1 : -1];
21743         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21744         char d[(bool) 0.5 == true ? 1 : -1];
21745         /* See body of main program for 'e'.  */
21746         char f[(_Bool) 0.0 == false ? 1 : -1];
21747         char g[true];
21748         char h[sizeof (_Bool)];
21749         char i[sizeof s.t];
21750         enum { j = false, k = true, l = false * true, m = true * 256 };
21751         /* The following fails for
21752            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21753         _Bool n[m];
21754         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21755         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21756         /* Catch a bug in an HP-UX C compiler.  See
21757            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21758            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21759          */
21760         _Bool q = true;
21761         _Bool *pq = &q;
21762
21763 int
21764 main ()
21765 {
21766
21767         bool e = &s;
21768         *pq |= q;
21769         *pq |= ! q;
21770         /* Refer to every declared value, to avoid compiler optimizations.  */
21771         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21772                 + !m + !n + !o + !p + !q + !pq);
21773
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 if ac_fn_c_try_compile "$LINENO"; then :
21779   ac_cv_header_stdbool_h=yes
21780 else
21781   ac_cv_header_stdbool_h=no
21782 fi
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 fi
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21786 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21787 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21788 if test "x$ac_cv_type__Bool" = xyes; then :
21789
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE__BOOL 1
21792 _ACEOF
21793
21794
21795 fi
21796
21797 if test $ac_cv_header_stdbool_h = yes; then
21798
21799 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21800
21801 fi
21802
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21804 $as_echo_n "checking for working volatile... " >&6; }
21805 if ${ac_cv_c_volatile+:} false; then :
21806   $as_echo_n "(cached) " >&6
21807 else
21808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h.  */
21810
21811 int
21812 main ()
21813 {
21814
21815 volatile int x;
21816 int * volatile y = (int *) 0;
21817 return !x && !y;
21818   ;
21819   return 0;
21820 }
21821 _ACEOF
21822 if ac_fn_c_try_compile "$LINENO"; then :
21823   ac_cv_c_volatile=yes
21824 else
21825   ac_cv_c_volatile=no
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 fi
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21830 $as_echo "$ac_cv_c_volatile" >&6; }
21831 if test $ac_cv_c_volatile = no; then
21832
21833 $as_echo "#define volatile /**/" >>confdefs.h
21834
21835 fi
21836
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21838 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21839 if ${ac_cv_c_stringize+:} false; then :
21840   $as_echo_n "(cached) " >&6
21841 else
21842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h.  */
21844 #define x(y) #y
21845
21846 char *s = x(teststring);
21847 _ACEOF
21848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21849   $EGREP "#teststring" >/dev/null 2>&1; then :
21850   ac_cv_c_stringize=no
21851 else
21852   ac_cv_c_stringize=yes
21853 fi
21854 rm -f conftest*
21855
21856 fi
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21858 $as_echo "$ac_cv_c_stringize" >&6; }
21859 if test $ac_cv_c_stringize = yes; then
21860
21861 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21862
21863 fi
21864
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21866 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21867 if ${ac_cv_header_stat_broken+:} false; then :
21868   $as_echo_n "(cached) " >&6
21869 else
21870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h.  */
21872 #include <sys/types.h>
21873 #include <sys/stat.h>
21874
21875 #if defined S_ISBLK && defined S_IFDIR
21876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21877 #endif
21878
21879 #if defined S_ISBLK && defined S_IFCHR
21880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21881 #endif
21882
21883 #if defined S_ISLNK && defined S_IFREG
21884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21885 #endif
21886
21887 #if defined S_ISSOCK && defined S_IFREG
21888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21889 #endif
21890
21891 _ACEOF
21892 if ac_fn_c_try_compile "$LINENO"; then :
21893   ac_cv_header_stat_broken=no
21894 else
21895   ac_cv_header_stat_broken=yes
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21900 $as_echo "$ac_cv_header_stat_broken" >&6; }
21901 if test $ac_cv_header_stat_broken = yes; then
21902
21903 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21904
21905 fi
21906
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21908 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21909 if ${ac_cv_header_time+:} false; then :
21910   $as_echo_n "(cached) " >&6
21911 else
21912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h.  */
21914 #include <sys/types.h>
21915 #include <sys/time.h>
21916 #include <time.h>
21917
21918 int
21919 main ()
21920 {
21921 if ((struct tm *) 0)
21922 return 0;
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 if ac_fn_c_try_compile "$LINENO"; then :
21928   ac_cv_header_time=yes
21929 else
21930   ac_cv_header_time=no
21931 fi
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 fi
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21935 $as_echo "$ac_cv_header_time" >&6; }
21936 if test $ac_cv_header_time = yes; then
21937
21938 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21939
21940 fi
21941
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21943 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21944 if ${ac_cv_struct_tm+:} false; then :
21945   $as_echo_n "(cached) " >&6
21946 else
21947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h.  */
21949 #include <sys/types.h>
21950 #include <time.h>
21951
21952 int
21953 main ()
21954 {
21955 struct tm tm;
21956                                      int *p = &tm.tm_sec;
21957                                      return !p;
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 if ac_fn_c_try_compile "$LINENO"; then :
21963   ac_cv_struct_tm=time.h
21964 else
21965   ac_cv_struct_tm=sys/time.h
21966 fi
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 fi
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21970 $as_echo "$ac_cv_struct_tm" >&6; }
21971 if test $ac_cv_struct_tm = sys/time.h; then
21972
21973 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21974
21975 fi
21976
21977 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21978 #include <$ac_cv_struct_tm>
21979
21980 "
21981 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21982
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_STRUCT_TM_TM_ZONE 1
21985 _ACEOF
21986
21987
21988 fi
21989
21990 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21991
21992 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21993
21994 else
21995   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21996 "
21997 if test "x$ac_cv_have_decl_tzname" = xyes; then :
21998   ac_have_decl=1
21999 else
22000   ac_have_decl=0
22001 fi
22002
22003 cat >>confdefs.h <<_ACEOF
22004 #define HAVE_DECL_TZNAME $ac_have_decl
22005 _ACEOF
22006
22007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22008 $as_echo_n "checking for tzname... " >&6; }
22009 if ${ac_cv_var_tzname+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013 /* end confdefs.h.  */
22014 #include <time.h>
22015 #if !HAVE_DECL_TZNAME
22016 extern char *tzname[];
22017 #endif
22018
22019 int
22020 main ()
22021 {
22022 return tzname[0][0];
22023   ;
22024   return 0;
22025 }
22026 _ACEOF
22027 if ac_fn_c_try_link "$LINENO"; then :
22028   ac_cv_var_tzname=yes
22029 else
22030   ac_cv_var_tzname=no
22031 fi
22032 rm -f core conftest.err conftest.$ac_objext \
22033     conftest$ac_exeext conftest.$ac_ext
22034 fi
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22036 $as_echo "$ac_cv_var_tzname" >&6; }
22037   if test $ac_cv_var_tzname = yes; then
22038
22039 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22040
22041   fi
22042 fi
22043
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22045 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22046 if ${ac_cv_sys_interpreter+:} false; then :
22047   $as_echo_n "(cached) " >&6
22048 else
22049   echo '#! /bin/cat
22050 exit 69
22051 ' >conftest
22052 chmod u+x conftest
22053 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22054 if test $? -ne 69; then
22055    ac_cv_sys_interpreter=yes
22056 else
22057    ac_cv_sys_interpreter=no
22058 fi
22059 rm -f conftest
22060 fi
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22062 $as_echo "$ac_cv_sys_interpreter" >&6; }
22063 interpval=$ac_cv_sys_interpreter
22064
22065
22066 # If the C compiler supports the keyword inline, do nothing. Otherwise
22067 # define inline to __inline__ or __inline if it accepts one of those,
22068 # otherwise define inline to be empty.
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22070 $as_echo_n "checking for inline... " >&6; }
22071 if ${ac_cv_c_inline+:} false; then :
22072   $as_echo_n "(cached) " >&6
22073 else
22074   ac_cv_c_inline=no
22075 for ac_kw in inline __inline__ __inline; do
22076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h.  */
22078 #ifndef __cplusplus
22079 typedef int foo_t;
22080 static $ac_kw foo_t static_foo () {return 0; }
22081 $ac_kw foo_t foo () {return 0; }
22082 #endif
22083
22084 _ACEOF
22085 if ac_fn_c_try_compile "$LINENO"; then :
22086   ac_cv_c_inline=$ac_kw
22087 fi
22088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089   test "$ac_cv_c_inline" != no && break
22090 done
22091
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22094 $as_echo "$ac_cv_c_inline" >&6; }
22095
22096 case $ac_cv_c_inline in
22097   inline | yes) ;;
22098   *)
22099     case $ac_cv_c_inline in
22100       no) ac_val=;;
22101       *) ac_val=$ac_cv_c_inline;;
22102     esac
22103     cat >>confdefs.h <<_ACEOF
22104 #ifndef __cplusplus
22105 #define inline $ac_val
22106 #endif
22107 _ACEOF
22108     ;;
22109 esac
22110
22111
22112 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22113 # define restrict to __restrict__ or __restrict if it accepts one of those,
22114 # otherwise define restrict to be empty.
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22116 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22117 if ${ac_cv_c_restrict+:} false; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   ac_cv_c_restrict=no
22121    # The order here caters to the fact that C++ does not require restrict.
22122    for ac_kw in __restrict __restrict__ _Restrict restrict; do
22123      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125 typedef int * int_ptr;
22126         int foo (int_ptr $ac_kw ip) {
22127         return ip[0];
22128        }
22129 int
22130 main ()
22131 {
22132 int s[1];
22133         int * $ac_kw t = s;
22134         t[0] = 0;
22135         return foo(t)
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 if ac_fn_c_try_compile "$LINENO"; then :
22141   ac_cv_c_restrict=$ac_kw
22142 fi
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144      test "$ac_cv_c_restrict" != no && break
22145    done
22146
22147 fi
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22149 $as_echo "$ac_cv_c_restrict" >&6; }
22150
22151  case $ac_cv_c_restrict in
22152    restrict) ;;
22153    no) $as_echo "#define restrict /**/" >>confdefs.h
22154  ;;
22155    *)  cat >>confdefs.h <<_ACEOF
22156 #define restrict $ac_cv_c_restrict
22157 _ACEOF
22158  ;;
22159  esac
22160
22161
22162 # If words are stored with the most significant byte first (like
22163 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22165 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22166 if ${ac_cv_c_bigendian+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169   ac_cv_c_bigendian=unknown
22170     # See if we're dealing with a universal compiler.
22171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h.  */
22173 #ifndef __APPLE_CC__
22174                not a universal capable compiler
22175              #endif
22176              typedef int dummy;
22177
22178 _ACEOF
22179 if ac_fn_c_try_compile "$LINENO"; then :
22180
22181         # Check for potential -arch flags.  It is not universal unless
22182         # there are at least two -arch flags with different values.
22183         ac_arch=
22184         ac_prev=
22185         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22186          if test -n "$ac_prev"; then
22187            case $ac_word in
22188              i?86 | x86_64 | ppc | ppc64)
22189                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22190                  ac_arch=$ac_word
22191                else
22192                  ac_cv_c_bigendian=universal
22193                  break
22194                fi
22195                ;;
22196            esac
22197            ac_prev=
22198          elif test "x$ac_word" = "x-arch"; then
22199            ac_prev=arch
22200          fi
22201        done
22202 fi
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204     if test $ac_cv_c_bigendian = unknown; then
22205       # See if sys/param.h defines the BYTE_ORDER macro.
22206       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208 #include <sys/types.h>
22209              #include <sys/param.h>
22210
22211 int
22212 main ()
22213 {
22214 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22215                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22216                      && LITTLE_ENDIAN)
22217               bogus endian macros
22218              #endif
22219
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 if ac_fn_c_try_compile "$LINENO"; then :
22225   # It does; now see whether it defined to BIG_ENDIAN or not.
22226          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h.  */
22228 #include <sys/types.h>
22229                 #include <sys/param.h>
22230
22231 int
22232 main ()
22233 {
22234 #if BYTE_ORDER != BIG_ENDIAN
22235                  not big endian
22236                 #endif
22237
22238   ;
22239   return 0;
22240 }
22241 _ACEOF
22242 if ac_fn_c_try_compile "$LINENO"; then :
22243   ac_cv_c_bigendian=yes
22244 else
22245   ac_cv_c_bigendian=no
22246 fi
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 fi
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250     fi
22251     if test $ac_cv_c_bigendian = unknown; then
22252       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h.  */
22255 #include <limits.h>
22256
22257 int
22258 main ()
22259 {
22260 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22261               bogus endian macros
22262              #endif
22263
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 if ac_fn_c_try_compile "$LINENO"; then :
22269   # It does; now see whether it defined to _BIG_ENDIAN or not.
22270          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h.  */
22272 #include <limits.h>
22273
22274 int
22275 main ()
22276 {
22277 #ifndef _BIG_ENDIAN
22278                  not big endian
22279                 #endif
22280
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 if ac_fn_c_try_compile "$LINENO"; then :
22286   ac_cv_c_bigendian=yes
22287 else
22288   ac_cv_c_bigendian=no
22289 fi
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 fi
22292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293     fi
22294     if test $ac_cv_c_bigendian = unknown; then
22295       # Compile a test program.
22296       if test "$cross_compiling" = yes; then :
22297   # Try to guess by grepping values from an object file.
22298          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h.  */
22300 short int ascii_mm[] =
22301                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22302                 short int ascii_ii[] =
22303                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22304                 int use_ascii (int i) {
22305                   return ascii_mm[i] + ascii_ii[i];
22306                 }
22307                 short int ebcdic_ii[] =
22308                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22309                 short int ebcdic_mm[] =
22310                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22311                 int use_ebcdic (int i) {
22312                   return ebcdic_mm[i] + ebcdic_ii[i];
22313                 }
22314                 extern int foo;
22315
22316 int
22317 main ()
22318 {
22319 return use_ascii (foo) == use_ebcdic (foo);
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 if ac_fn_c_try_compile "$LINENO"; then :
22325   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22326               ac_cv_c_bigendian=yes
22327             fi
22328             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22329               if test "$ac_cv_c_bigendian" = unknown; then
22330                 ac_cv_c_bigendian=no
22331               else
22332                 # finding both strings is unlikely to happen, but who knows?
22333                 ac_cv_c_bigendian=unknown
22334               fi
22335             fi
22336 fi
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 else
22339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h.  */
22341 $ac_includes_default
22342 int
22343 main ()
22344 {
22345
22346              /* Are we little or big endian?  From Harbison&Steele.  */
22347              union
22348              {
22349                long int l;
22350                char c[sizeof (long int)];
22351              } u;
22352              u.l = 1;
22353              return u.c[sizeof (long int) - 1] == 1;
22354
22355   ;
22356   return 0;
22357 }
22358 _ACEOF
22359 if ac_fn_c_try_run "$LINENO"; then :
22360   ac_cv_c_bigendian=no
22361 else
22362   ac_cv_c_bigendian=yes
22363 fi
22364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22365   conftest.$ac_objext conftest.beam conftest.$ac_ext
22366 fi
22367
22368     fi
22369 fi
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22371 $as_echo "$ac_cv_c_bigendian" >&6; }
22372  case $ac_cv_c_bigendian in #(
22373    yes)
22374      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22375 ;; #(
22376    no)
22377       ;; #(
22378    universal)
22379
22380 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22381
22382      ;; #(
22383    *)
22384      as_fn_error $? "unknown endianness
22385  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22386  esac
22387
22388
22389 # Define to a suitable type, if standard headers do not define it.
22390 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22391 case $ac_cv_c_int8_t in #(
22392   no|yes) ;; #(
22393   *)
22394
22395 cat >>confdefs.h <<_ACEOF
22396 #define int8_t $ac_cv_c_int8_t
22397 _ACEOF
22398 ;;
22399 esac
22400
22401 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22402 case $ac_cv_c_int16_t in #(
22403   no|yes) ;; #(
22404   *)
22405
22406 cat >>confdefs.h <<_ACEOF
22407 #define int16_t $ac_cv_c_int16_t
22408 _ACEOF
22409 ;;
22410 esac
22411
22412 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22413 case $ac_cv_c_int32_t in #(
22414   no|yes) ;; #(
22415   *)
22416
22417 cat >>confdefs.h <<_ACEOF
22418 #define int32_t $ac_cv_c_int32_t
22419 _ACEOF
22420 ;;
22421 esac
22422
22423 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22424 case $ac_cv_c_int64_t in #(
22425   no|yes) ;; #(
22426   *)
22427
22428 cat >>confdefs.h <<_ACEOF
22429 #define int64_t $ac_cv_c_int64_t
22430 _ACEOF
22431 ;;
22432 esac
22433
22434
22435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22436 $as_echo_n "checking for long long int... " >&6; }
22437 if ${ac_cv_type_long_long_int+:} false; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22441 /* end confdefs.h.  */
22442
22443   /* For now, do not test the preprocessor; as of 2007 there are too many
22444          implementations with broken preprocessors.  Perhaps this can
22445          be revisited in 2012.  In the meantime, code should not expect
22446          #if to work with literals wider than 32 bits.  */
22447       /* Test literals.  */
22448       long long int ll = 9223372036854775807ll;
22449       long long int nll = -9223372036854775807LL;
22450       unsigned long long int ull = 18446744073709551615ULL;
22451       /* Test constant expressions.   */
22452       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22453                      ? 1 : -1)];
22454       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22455                      ? 1 : -1)];
22456       int i = 63;
22457 int
22458 main ()
22459 {
22460 /* Test availability of runtime routines for shift and division.  */
22461       long long int llmax = 9223372036854775807ll;
22462       unsigned long long int ullmax = 18446744073709551615ull;
22463       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22464               | (llmax / ll) | (llmax % ll)
22465               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22466               | (ullmax / ull) | (ullmax % ull));
22467   ;
22468   return 0;
22469 }
22470
22471 _ACEOF
22472 if ac_fn_c_try_link "$LINENO"; then :
22473                           if test "$cross_compiling" = yes; then :
22474   ac_cv_type_long_long_int=yes
22475 else
22476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477 /* end confdefs.h.  */
22478 #include <limits.h>
22479                #ifndef LLONG_MAX
22480                # define HALF \
22481                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22482                # define LLONG_MAX (HALF - 1 + HALF)
22483                #endif
22484 int
22485 main ()
22486 {
22487 long long int n = 1;
22488                int i;
22489                for (i = 0; ; i++)
22490                  {
22491                    long long int m = n << i;
22492                    if (m >> i != n)
22493                      return 1;
22494                    if (LLONG_MAX / 2 < m)
22495                      break;
22496                  }
22497                return 0;
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_run "$LINENO"; then :
22503   ac_cv_type_long_long_int=yes
22504 else
22505   ac_cv_type_long_long_int=no
22506 fi
22507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508   conftest.$ac_objext conftest.beam conftest.$ac_ext
22509 fi
22510
22511 else
22512   ac_cv_type_long_long_int=no
22513 fi
22514 rm -f core conftest.err conftest.$ac_objext \
22515     conftest$ac_exeext conftest.$ac_ext
22516 fi
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22518 $as_echo "$ac_cv_type_long_long_int" >&6; }
22519   if test $ac_cv_type_long_long_int = yes; then
22520
22521 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22522
22523   fi
22524
22525
22526
22527   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22528 if test "x$ac_cv_type_intmax_t" = xyes; then :
22529
22530 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22531
22532 else
22533   test $ac_cv_type_long_long_int = yes \
22534        && ac_type='long long int' \
22535        || ac_type='long int'
22536
22537 cat >>confdefs.h <<_ACEOF
22538 #define intmax_t $ac_type
22539 _ACEOF
22540
22541 fi
22542
22543
22544
22545   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22546 if test "x$ac_cv_type_intptr_t" = xyes; then :
22547
22548 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22549
22550 else
22551   for ac_type in 'int' 'long int' 'long long int'; do
22552        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h.  */
22554 $ac_includes_default
22555 int
22556 main ()
22557 {
22558 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22559 test_array [0] = 0
22560
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 if ac_fn_c_try_compile "$LINENO"; then :
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define intptr_t $ac_type
22569 _ACEOF
22570
22571           ac_type=
22572 fi
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574        test -z "$ac_type" && break
22575      done
22576 fi
22577
22578
22579
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22581 $as_echo_n "checking for long double... " >&6; }
22582 if ${ac_cv_type_long_double+:} false; then :
22583   $as_echo_n "(cached) " >&6
22584 else
22585   if test "$GCC" = yes; then
22586        ac_cv_type_long_double=yes
22587      else
22588        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h.  */
22590 /* The Stardent Vistra knows sizeof (long double), but does
22591                  not support it.  */
22592               long double foo = 0.0L;
22593 int
22594 main ()
22595 {
22596 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22597               sizeof (double) <= sizeof (long double))];
22598 test_array [0] = 0
22599
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 if ac_fn_c_try_compile "$LINENO"; then :
22605   ac_cv_type_long_double=yes
22606 else
22607   ac_cv_type_long_double=no
22608 fi
22609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610      fi
22611 fi
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22613 $as_echo "$ac_cv_type_long_double" >&6; }
22614   if test $ac_cv_type_long_double = yes; then
22615
22616 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22617
22618   fi
22619
22620
22621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22622 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22623 if ${ac_cv_type_long_double_wider+:} false; then :
22624   $as_echo_n "(cached) " >&6
22625 else
22626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h.  */
22628 #include <float.h>
22629             long double const a[] =
22630               {
22631                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22632                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22633               };
22634             long double
22635             f (long double x)
22636             {
22637                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22638                         + (x ? f (x) : 'c'));
22639             }
22640
22641 int
22642 main ()
22643 {
22644 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22645                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
22646                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
22647                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22648             && (int) LDBL_EPSILON == 0
22649           )];
22650 test_array [0] = 0
22651
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 if ac_fn_c_try_compile "$LINENO"; then :
22657   ac_cv_type_long_double_wider=yes
22658 else
22659   ac_cv_type_long_double_wider=no
22660 fi
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 fi
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22664 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22665   if test $ac_cv_type_long_double_wider = yes; then
22666
22667 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22668
22669   fi
22670
22671
22672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22673 $as_echo_n "checking for long long int... " >&6; }
22674 if ${ac_cv_type_long_long_int+:} false; then :
22675   $as_echo_n "(cached) " >&6
22676 else
22677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h.  */
22679
22680   /* For now, do not test the preprocessor; as of 2007 there are too many
22681          implementations with broken preprocessors.  Perhaps this can
22682          be revisited in 2012.  In the meantime, code should not expect
22683          #if to work with literals wider than 32 bits.  */
22684       /* Test literals.  */
22685       long long int ll = 9223372036854775807ll;
22686       long long int nll = -9223372036854775807LL;
22687       unsigned long long int ull = 18446744073709551615ULL;
22688       /* Test constant expressions.   */
22689       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22690                      ? 1 : -1)];
22691       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22692                      ? 1 : -1)];
22693       int i = 63;
22694 int
22695 main ()
22696 {
22697 /* Test availability of runtime routines for shift and division.  */
22698       long long int llmax = 9223372036854775807ll;
22699       unsigned long long int ullmax = 18446744073709551615ull;
22700       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22701               | (llmax / ll) | (llmax % ll)
22702               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22703               | (ullmax / ull) | (ullmax % ull));
22704   ;
22705   return 0;
22706 }
22707
22708 _ACEOF
22709 if ac_fn_c_try_link "$LINENO"; then :
22710                           if test "$cross_compiling" = yes; then :
22711   ac_cv_type_long_long_int=yes
22712 else
22713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h.  */
22715 #include <limits.h>
22716                #ifndef LLONG_MAX
22717                # define HALF \
22718                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22719                # define LLONG_MAX (HALF - 1 + HALF)
22720                #endif
22721 int
22722 main ()
22723 {
22724 long long int n = 1;
22725                int i;
22726                for (i = 0; ; i++)
22727                  {
22728                    long long int m = n << i;
22729                    if (m >> i != n)
22730                      return 1;
22731                    if (LLONG_MAX / 2 < m)
22732                      break;
22733                  }
22734                return 0;
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 if ac_fn_c_try_run "$LINENO"; then :
22740   ac_cv_type_long_long_int=yes
22741 else
22742   ac_cv_type_long_long_int=no
22743 fi
22744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22745   conftest.$ac_objext conftest.beam conftest.$ac_ext
22746 fi
22747
22748 else
22749   ac_cv_type_long_long_int=no
22750 fi
22751 rm -f core conftest.err conftest.$ac_objext \
22752     conftest$ac_exeext conftest.$ac_ext
22753 fi
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22755 $as_echo "$ac_cv_type_long_long_int" >&6; }
22756   if test $ac_cv_type_long_long_int = yes; then
22757
22758 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22759
22760   fi
22761
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22763 $as_echo_n "checking for mbstate_t... " >&6; }
22764 if ${ac_cv_type_mbstate_t+:} false; then :
22765   $as_echo_n "(cached) " >&6
22766 else
22767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h.  */
22769 $ac_includes_default
22770 #           include <wchar.h>
22771 int
22772 main ()
22773 {
22774 mbstate_t x; return sizeof x;
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 if ac_fn_c_try_compile "$LINENO"; then :
22780   ac_cv_type_mbstate_t=yes
22781 else
22782   ac_cv_type_mbstate_t=no
22783 fi
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 fi
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22787 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22788    if test $ac_cv_type_mbstate_t = yes; then
22789
22790 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22791
22792    else
22793
22794 $as_echo "#define mbstate_t int" >>confdefs.h
22795
22796    fi
22797 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22798 if test "x$ac_cv_type_mode_t" = xyes; then :
22799
22800 else
22801
22802 cat >>confdefs.h <<_ACEOF
22803 #define mode_t int
22804 _ACEOF
22805
22806 fi
22807
22808 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22809 if test "x$ac_cv_type_off_t" = xyes; then :
22810
22811 else
22812
22813 cat >>confdefs.h <<_ACEOF
22814 #define off_t long int
22815 _ACEOF
22816
22817 fi
22818
22819 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22820 if test "x$ac_cv_type_pid_t" = xyes; then :
22821
22822 else
22823
22824 cat >>confdefs.h <<_ACEOF
22825 #define pid_t int
22826 _ACEOF
22827
22828 fi
22829
22830 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22831 if test "x$ac_cv_type_size_t" = xyes; then :
22832
22833 else
22834
22835 cat >>confdefs.h <<_ACEOF
22836 #define size_t unsigned int
22837 _ACEOF
22838
22839 fi
22840
22841 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22842 if test "x$ac_cv_type_ssize_t" = xyes; then :
22843
22844 else
22845
22846 cat >>confdefs.h <<_ACEOF
22847 #define ssize_t int
22848 _ACEOF
22849
22850 fi
22851
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22853 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22854 if ${ac_cv_type_uid_t+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h.  */
22859 #include <sys/types.h>
22860
22861 _ACEOF
22862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22863   $EGREP "uid_t" >/dev/null 2>&1; then :
22864   ac_cv_type_uid_t=yes
22865 else
22866   ac_cv_type_uid_t=no
22867 fi
22868 rm -f conftest*
22869
22870 fi
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22872 $as_echo "$ac_cv_type_uid_t" >&6; }
22873 if test $ac_cv_type_uid_t = no; then
22874
22875 $as_echo "#define uid_t int" >>confdefs.h
22876
22877
22878 $as_echo "#define gid_t int" >>confdefs.h
22879
22880 fi
22881
22882 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22883 case $ac_cv_c_uint8_t in #(
22884   no|yes) ;; #(
22885   *)
22886
22887 $as_echo "#define _UINT8_T 1" >>confdefs.h
22888
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define uint8_t $ac_cv_c_uint8_t
22892 _ACEOF
22893 ;;
22894   esac
22895
22896 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22897 case $ac_cv_c_uint16_t in #(
22898   no|yes) ;; #(
22899   *)
22900
22901
22902 cat >>confdefs.h <<_ACEOF
22903 #define uint16_t $ac_cv_c_uint16_t
22904 _ACEOF
22905 ;;
22906   esac
22907
22908 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22909 case $ac_cv_c_uint32_t in #(
22910   no|yes) ;; #(
22911   *)
22912
22913 $as_echo "#define _UINT32_T 1" >>confdefs.h
22914
22915
22916 cat >>confdefs.h <<_ACEOF
22917 #define uint32_t $ac_cv_c_uint32_t
22918 _ACEOF
22919 ;;
22920   esac
22921
22922 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22923 case $ac_cv_c_uint64_t in #(
22924   no|yes) ;; #(
22925   *)
22926
22927 $as_echo "#define _UINT64_T 1" >>confdefs.h
22928
22929
22930 cat >>confdefs.h <<_ACEOF
22931 #define uint64_t $ac_cv_c_uint64_t
22932 _ACEOF
22933 ;;
22934   esac
22935
22936
22937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22938 $as_echo_n "checking for unsigned long long int... " >&6; }
22939 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943 /* end confdefs.h.  */
22944
22945   /* For now, do not test the preprocessor; as of 2007 there are too many
22946          implementations with broken preprocessors.  Perhaps this can
22947          be revisited in 2012.  In the meantime, code should not expect
22948          #if to work with literals wider than 32 bits.  */
22949       /* Test literals.  */
22950       long long int ll = 9223372036854775807ll;
22951       long long int nll = -9223372036854775807LL;
22952       unsigned long long int ull = 18446744073709551615ULL;
22953       /* Test constant expressions.   */
22954       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22955                      ? 1 : -1)];
22956       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22957                      ? 1 : -1)];
22958       int i = 63;
22959 int
22960 main ()
22961 {
22962 /* Test availability of runtime routines for shift and division.  */
22963       long long int llmax = 9223372036854775807ll;
22964       unsigned long long int ullmax = 18446744073709551615ull;
22965       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22966               | (llmax / ll) | (llmax % ll)
22967               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22968               | (ullmax / ull) | (ullmax % ull));
22969   ;
22970   return 0;
22971 }
22972
22973 _ACEOF
22974 if ac_fn_c_try_link "$LINENO"; then :
22975   ac_cv_type_unsigned_long_long_int=yes
22976 else
22977   ac_cv_type_unsigned_long_long_int=no
22978 fi
22979 rm -f core conftest.err conftest.$ac_objext \
22980     conftest$ac_exeext conftest.$ac_ext
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22983 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22984   if test $ac_cv_type_unsigned_long_long_int = yes; then
22985
22986 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22987
22988   fi
22989
22990
22991
22992   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22993 if test "x$ac_cv_type_uintmax_t" = xyes; then :
22994
22995 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22996
22997 else
22998   test $ac_cv_type_unsigned_long_long_int = yes \
22999        && ac_type='unsigned long long int' \
23000        || ac_type='unsigned long int'
23001
23002 cat >>confdefs.h <<_ACEOF
23003 #define uintmax_t $ac_type
23004 _ACEOF
23005
23006 fi
23007
23008
23009
23010   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23011 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23012
23013 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23014
23015 else
23016   for ac_type in 'unsigned int' 'unsigned long int' \
23017         'unsigned long long int'; do
23018        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h.  */
23020 $ac_includes_default
23021 int
23022 main ()
23023 {
23024 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23025 test_array [0] = 0
23026
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 if ac_fn_c_try_compile "$LINENO"; then :
23032
23033 cat >>confdefs.h <<_ACEOF
23034 #define uintptr_t $ac_type
23035 _ACEOF
23036
23037           ac_type=
23038 fi
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040        test -z "$ac_type" && break
23041      done
23042 fi
23043
23044
23045
23046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23047 $as_echo_n "checking for unsigned long long int... " >&6; }
23048 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23049   $as_echo_n "(cached) " >&6
23050 else
23051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h.  */
23053
23054   /* For now, do not test the preprocessor; as of 2007 there are too many
23055          implementations with broken preprocessors.  Perhaps this can
23056          be revisited in 2012.  In the meantime, code should not expect
23057          #if to work with literals wider than 32 bits.  */
23058       /* Test literals.  */
23059       long long int ll = 9223372036854775807ll;
23060       long long int nll = -9223372036854775807LL;
23061       unsigned long long int ull = 18446744073709551615ULL;
23062       /* Test constant expressions.   */
23063       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23064                      ? 1 : -1)];
23065       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23066                      ? 1 : -1)];
23067       int i = 63;
23068 int
23069 main ()
23070 {
23071 /* Test availability of runtime routines for shift and division.  */
23072       long long int llmax = 9223372036854775807ll;
23073       unsigned long long int ullmax = 18446744073709551615ull;
23074       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23075               | (llmax / ll) | (llmax % ll)
23076               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23077               | (ullmax / ull) | (ullmax % ull));
23078   ;
23079   return 0;
23080 }
23081
23082 _ACEOF
23083 if ac_fn_c_try_link "$LINENO"; then :
23084   ac_cv_type_unsigned_long_long_int=yes
23085 else
23086   ac_cv_type_unsigned_long_long_int=no
23087 fi
23088 rm -f core conftest.err conftest.$ac_objext \
23089     conftest$ac_exeext conftest.$ac_ext
23090 fi
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23092 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23093   if test $ac_cv_type_unsigned_long_long_int = yes; then
23094
23095 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23096
23097   fi
23098
23099
23100 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23101 # C compiler predefines it.
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23103 $as_echo_n "checking whether char is unsigned... " >&6; }
23104 if ${ac_cv_c_char_unsigned+:} false; then :
23105   $as_echo_n "(cached) " >&6
23106 else
23107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23108 /* end confdefs.h.  */
23109 $ac_includes_default
23110 int
23111 main ()
23112 {
23113 static int test_array [1 - 2 * !(((char) -1) < 0)];
23114 test_array [0] = 0
23115
23116   ;
23117   return 0;
23118 }
23119 _ACEOF
23120 if ac_fn_c_try_compile "$LINENO"; then :
23121   ac_cv_c_char_unsigned=no
23122 else
23123   ac_cv_c_char_unsigned=yes
23124 fi
23125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126 fi
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23128 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23129 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23130   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23131
23132 fi
23133
23134
23135 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23136 # The cast to long int works around a bug in the HP C Compiler
23137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23139 # This bug is HP SR number 8606223364.
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23141 $as_echo_n "checking size of signed short... " >&6; }
23142 if ${ac_cv_sizeof_signed_short+:} false; then :
23143   $as_echo_n "(cached) " >&6
23144 else
23145   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23146
23147 else
23148   if test "$ac_cv_type_signed_short" = yes; then
23149      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23151 as_fn_error 77 "cannot compute sizeof (signed short)
23152 See \`config.log' for more details" "$LINENO" 5; }
23153    else
23154      ac_cv_sizeof_signed_short=0
23155    fi
23156 fi
23157
23158 fi
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23160 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23161
23162
23163
23164 cat >>confdefs.h <<_ACEOF
23165 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23166 _ACEOF
23167
23168
23169
23170 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23171 # The cast to long int works around a bug in the HP C Compiler
23172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174 # This bug is HP SR number 8606223364.
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23176 $as_echo_n "checking size of unsigned short... " >&6; }
23177 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23178   $as_echo_n "(cached) " >&6
23179 else
23180   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23181
23182 else
23183   if test "$ac_cv_type_unsigned_short" = yes; then
23184      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23186 as_fn_error 77 "cannot compute sizeof (unsigned short)
23187 See \`config.log' for more details" "$LINENO" 5; }
23188    else
23189      ac_cv_sizeof_unsigned_short=0
23190    fi
23191 fi
23192
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23195 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23196
23197
23198
23199 cat >>confdefs.h <<_ACEOF
23200 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23201 _ACEOF
23202
23203
23204
23205 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23206 # The cast to long int works around a bug in the HP C Compiler
23207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23209 # This bug is HP SR number 8606223364.
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23211 $as_echo_n "checking size of signed int... " >&6; }
23212 if ${ac_cv_sizeof_signed_int+:} false; then :
23213   $as_echo_n "(cached) " >&6
23214 else
23215   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23216
23217 else
23218   if test "$ac_cv_type_signed_int" = yes; then
23219      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23221 as_fn_error 77 "cannot compute sizeof (signed int)
23222 See \`config.log' for more details" "$LINENO" 5; }
23223    else
23224      ac_cv_sizeof_signed_int=0
23225    fi
23226 fi
23227
23228 fi
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23230 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23231
23232
23233
23234 cat >>confdefs.h <<_ACEOF
23235 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23236 _ACEOF
23237
23238
23239
23240 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23241 # The cast to long int works around a bug in the HP C Compiler
23242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244 # This bug is HP SR number 8606223364.
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23246 $as_echo_n "checking size of unsigned int... " >&6; }
23247 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23248   $as_echo_n "(cached) " >&6
23249 else
23250   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23251
23252 else
23253   if test "$ac_cv_type_unsigned_int" = yes; then
23254      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23256 as_fn_error 77 "cannot compute sizeof (unsigned int)
23257 See \`config.log' for more details" "$LINENO" 5; }
23258    else
23259      ac_cv_sizeof_unsigned_int=0
23260    fi
23261 fi
23262
23263 fi
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23265 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23266
23267
23268
23269 cat >>confdefs.h <<_ACEOF
23270 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23271 _ACEOF
23272
23273
23274
23275 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23276 # The cast to long int works around a bug in the HP C Compiler
23277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23279 # This bug is HP SR number 8606223364.
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23281 $as_echo_n "checking size of signed long... " >&6; }
23282 if ${ac_cv_sizeof_signed_long+:} false; then :
23283   $as_echo_n "(cached) " >&6
23284 else
23285   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23286
23287 else
23288   if test "$ac_cv_type_signed_long" = yes; then
23289      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23291 as_fn_error 77 "cannot compute sizeof (signed long)
23292 See \`config.log' for more details" "$LINENO" 5; }
23293    else
23294      ac_cv_sizeof_signed_long=0
23295    fi
23296 fi
23297
23298 fi
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23300 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23301
23302
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23306 _ACEOF
23307
23308
23309
23310 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23311 # The cast to long int works around a bug in the HP C Compiler
23312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23314 # This bug is HP SR number 8606223364.
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23316 $as_echo_n "checking size of unsigned long... " >&6; }
23317 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23318   $as_echo_n "(cached) " >&6
23319 else
23320   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23321
23322 else
23323   if test "$ac_cv_type_unsigned_long" = yes; then
23324      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23326 as_fn_error 77 "cannot compute sizeof (unsigned long)
23327 See \`config.log' for more details" "$LINENO" 5; }
23328    else
23329      ac_cv_sizeof_unsigned_long=0
23330    fi
23331 fi
23332
23333 fi
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23335 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23336
23337
23338
23339 cat >>confdefs.h <<_ACEOF
23340 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23341 _ACEOF
23342
23343
23344
23345 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23346 # 'signed long long' is not supported then the value defined is zero.
23347 # The cast to long int works around a bug in the HP C Compiler
23348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23350 # This bug is HP SR number 8606223364.
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23352 $as_echo_n "checking size of signed long long... " >&6; }
23353 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23354   $as_echo_n "(cached) " >&6
23355 else
23356   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23357
23358 else
23359   if test "$ac_cv_type_signed_long_long" = yes; then
23360      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23362 as_fn_error 77 "cannot compute sizeof (signed long long)
23363 See \`config.log' for more details" "$LINENO" 5; }
23364    else
23365      ac_cv_sizeof_signed_long_long=0
23366    fi
23367 fi
23368
23369 fi
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23371 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23372
23373
23374
23375 cat >>confdefs.h <<_ACEOF
23376 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23377 _ACEOF
23378
23379
23380
23381 # Obtain size of a 'unsigned long long' and define as
23382 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23383 # supported then the value defined is zero.
23384 # The cast to long int works around a bug in the HP C Compiler
23385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387 # This bug is HP SR number 8606223364.
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23389 $as_echo_n "checking size of unsigned long long... " >&6; }
23390 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23391   $as_echo_n "(cached) " >&6
23392 else
23393   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
23394
23395 else
23396   if test "$ac_cv_type_unsigned_long_long" = yes; then
23397      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23399 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23400 See \`config.log' for more details" "$LINENO" 5; }
23401    else
23402      ac_cv_sizeof_unsigned_long_long=0
23403    fi
23404 fi
23405
23406 fi
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23408 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23409
23410
23411
23412 cat >>confdefs.h <<_ACEOF
23413 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23414 _ACEOF
23415
23416
23417
23418 # Obtain size of off_t and define as SIZEOF_OFF_T
23419 # The cast to long int works around a bug in the HP C Compiler
23420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422 # This bug is HP SR number 8606223364.
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23424 $as_echo_n "checking size of off_t... " >&6; }
23425 if ${ac_cv_sizeof_off_t+:} false; then :
23426   $as_echo_n "(cached) " >&6
23427 else
23428   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23429
23430 else
23431   if test "$ac_cv_type_off_t" = yes; then
23432      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23434 as_fn_error 77 "cannot compute sizeof (off_t)
23435 See \`config.log' for more details" "$LINENO" 5; }
23436    else
23437      ac_cv_sizeof_off_t=0
23438    fi
23439 fi
23440
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23443 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23444
23445
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23449 _ACEOF
23450
23451
23452
23453 # Obtain size of size_t and define as SIZEOF_SIZE_T
23454 # The cast to long int works around a bug in the HP C Compiler
23455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457 # This bug is HP SR number 8606223364.
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23459 $as_echo_n "checking size of size_t... " >&6; }
23460 if ${ac_cv_sizeof_size_t+:} false; then :
23461   $as_echo_n "(cached) " >&6
23462 else
23463   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23464
23465 else
23466   if test "$ac_cv_type_size_t" = yes; then
23467      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23469 as_fn_error 77 "cannot compute sizeof (size_t)
23470 See \`config.log' for more details" "$LINENO" 5; }
23471    else
23472      ac_cv_sizeof_size_t=0
23473    fi
23474 fi
23475
23476 fi
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23478 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23479
23480
23481
23482 cat >>confdefs.h <<_ACEOF
23483 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23484 _ACEOF
23485
23486
23487
23488 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23489 # The cast to long int works around a bug in the HP C Compiler
23490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492 # This bug is HP SR number 8606223364.
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23494 $as_echo_n "checking size of ssize_t... " >&6; }
23495 if ${ac_cv_sizeof_ssize_t+:} false; then :
23496   $as_echo_n "(cached) " >&6
23497 else
23498   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
23499
23500 else
23501   if test "$ac_cv_type_ssize_t" = yes; then
23502      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23504 as_fn_error 77 "cannot compute sizeof (ssize_t)
23505 See \`config.log' for more details" "$LINENO" 5; }
23506    else
23507      ac_cv_sizeof_ssize_t=0
23508    fi
23509 fi
23510
23511 fi
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23513 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23514
23515
23516
23517 cat >>confdefs.h <<_ACEOF
23518 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23519 _ACEOF
23520
23521
23522
23523 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23524 # The cast to long int works around a bug in the HP C Compiler
23525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527 # This bug is HP SR number 8606223364.
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23529 $as_echo_n "checking size of unsigned int*... " >&6; }
23530 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23531   $as_echo_n "(cached) " >&6
23532 else
23533   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
23534
23535 else
23536   if test "$ac_cv_type_unsigned_intp" = yes; then
23537      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23539 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23540 See \`config.log' for more details" "$LINENO" 5; }
23541    else
23542      ac_cv_sizeof_unsigned_intp=0
23543    fi
23544 fi
23545
23546 fi
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23548 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23549
23550
23551
23552 cat >>confdefs.h <<_ACEOF
23553 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23554 _ACEOF
23555
23556
23557
23558 #
23559 # Compute sized types for current CPU and compiler options.
23560 #
23561
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23563 $as_echo_n "checking for signed 8-bit type... " >&6; }
23564 INT8_T='signed char'
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23566 $as_echo "$INT8_T" >&6; }
23567
23568
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23570 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23571 UINT8_T='unsigned char'
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23573 $as_echo "$UINT8_T" >&6; }
23574
23575
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23577 $as_echo_n "checking for signed 16-bit type... " >&6; }
23578 INT16_T='signed short'
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23580 $as_echo "$INT16_T" >&6; }
23581
23582
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23584 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23585 UINT16_T='unsigned short'
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23587 $as_echo "$UINT16_T" >&6; }
23588
23589
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23591 $as_echo_n "checking for signed 32-bit type... " >&6; }
23592 INT32_T='none'
23593 INT32_F='none'
23594 if test $ac_cv_sizeof_signed_int -eq 4; then
23595   INT32_T='signed int'
23596   INT32_F='""'
23597 elif test $ac_cv_sizeof_signed_long -eq 4; then
23598   INT32_T='signed long'
23599   INT32_F='"l"'
23600 fi
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23602 $as_echo "$INT32_T" >&6; }
23603
23604
23605
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23607 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23608 UINT32_T='none'
23609 UINT32_F='none'
23610 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23611   UINT32_T='unsigned int'
23612   UINT32_F='""'
23613 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23614   UINT32_T='unsigned long'
23615   UINT32_F='"l"'
23616 fi
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23618 $as_echo "$UINT32_T" >&6; }
23619
23620
23621
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23623 $as_echo_n "checking for signed 64-bit type... " >&6; }
23624 INT64_T='none'
23625 INT64_F='none'
23626 if test $ac_cv_sizeof_signed_long -eq 8; then
23627   INT64_T='signed long'
23628   INT64_F='"l"'
23629 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23630   INT64_T='signed long long'
23631   INT64_F='"ll"'
23632 fi
23633 case "${build_os}" in
23634   mingw* )
23635     INT64_F='"I64"'
23636     ;;
23637 esac
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23639 $as_echo "$INT64_T" >&6; }
23640
23641
23642
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23644 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23645 UINT64_T='none'
23646 UINT64_F='none'
23647 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23648   UINT64_T='unsigned long'
23649   UINT64_F='"l"'
23650 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23651   UINT64_T='unsigned long long'
23652   UINT64_F='"ll"'
23653 fi
23654 case "${build_os}" in
23655   mingw* )
23656     UINT64_F='"I64"'
23657     ;;
23658 esac
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23660 $as_echo "$UINT64_T" >&6; }
23661
23662
23663
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23665 $as_echo_n "checking for unsigned maximum type... " >&6; }
23666 UINTMAX_T='none'
23667 UINTMAX_F='none'
23668 if test "$UINT64_T" != 'none'; then
23669   UINTMAX_T=$UINT64_T
23670   UINTMAX_F=$UINT64_F
23671 elif test "$UINT32_T" != 'none'; then
23672   UINTMAX_T=$UINT32_T
23673   UINTMAX_F=$UINT32_F
23674 fi
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23676 $as_echo "$UINTMAX_T" >&6; }
23677
23678
23679
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23681 $as_echo_n "checking for pointer difference type... " >&6; }
23682 UINTPTR_T='none'
23683 UINTPTR_F='none'
23684 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23685   UINTPTR_T='unsigned long'
23686   UINTPTR_F='"l"'
23687 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23688   UINTPTR_T='unsigned long long'
23689   UINTPTR_F='"ll"'
23690 fi
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23692 $as_echo "$UINTPTR_T" >&6; }
23693
23694
23695
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23697 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h.  */
23700
23701 int
23702 main ()
23703 {
23704 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 if ac_fn_c_try_compile "$LINENO"; then :
23710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23712 else
23713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23716 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h.  */
23719
23720 int
23721 main ()
23722 {
23723 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 if ac_fn_c_try_compile "$LINENO"; then :
23729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23730 $as_echo "yes" >&6; }
23731
23732 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23733
23734 else
23735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23736 $as_echo "no" >&6; }
23737
23738 $as_echo "#define __func__ __FILE__" >>confdefs.h
23739
23740 fi
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 fi
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744
23745 ########
23746 #
23747 # Check for functions
23748 #
23749 ########
23750 for ac_header in stdlib.h unistd.h
23751 do :
23752   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23755   cat >>confdefs.h <<_ACEOF
23756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23757 _ACEOF
23758
23759 fi
23760
23761 done
23762
23763 for ac_func in getpagesize
23764 do :
23765   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23766 if test "x$ac_cv_func_getpagesize" = xyes; then :
23767   cat >>confdefs.h <<_ACEOF
23768 #define HAVE_GETPAGESIZE 1
23769 _ACEOF
23770
23771 fi
23772 done
23773
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23775 $as_echo_n "checking for working mmap file i/o... " >&6; }
23776 if ${magick_cv_func_mmap_fileio+:} false; then :
23777   $as_echo_n "(cached) " >&6
23778 else
23779   if test "$cross_compiling" = yes; then :
23780   magick_cv_func_mmap_fileio=no
23781 else
23782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783 /* end confdefs.h.  */
23784 $ac_includes_default
23785 /* malloc might have been renamed as rpl_malloc. */
23786 #undef malloc
23787
23788 /*
23789    This test is derived from GNU Autoconf's similar macro.
23790    The purpose of this test is to verify that files may be memory
23791    mapped, and that memory mapping and file I/O are coherent.
23792
23793    The test creates a test file, memory maps the file, updates
23794    the file using the memory map, and then reads the file using
23795    file I/O to verify that the file contains the updates.
23796 */
23797
23798 #include <fcntl.h>
23799 #include <sys/mman.h>
23800
23801 #if !STDC_HEADERS && !HAVE_STDLIB_H
23802 char *malloc ();
23803 #endif
23804
23805 /* This mess was copied from the GNU getpagesize.h.  */
23806 #if !HAVE_GETPAGESIZE
23807 /* Assume that all systems that can run configure have sys/param.h.  */
23808 # if !HAVE_SYS_PARAM_H
23809 #  define HAVE_SYS_PARAM_H 1
23810 # endif
23811
23812 # ifdef _SC_PAGESIZE
23813 #  define getpagesize() sysconf(_SC_PAGESIZE)
23814 # else /* no _SC_PAGESIZE */
23815 #  if HAVE_SYS_PARAM_H
23816 #   include <sys/param.h>
23817 #   ifdef EXEC_PAGESIZE
23818 #    define getpagesize() EXEC_PAGESIZE
23819 #   else /* no EXEC_PAGESIZE */
23820 #    ifdef NBPG
23821 #     define getpagesize() NBPG * CLSIZE
23822 #     ifndef CLSIZE
23823 #      define CLSIZE 1
23824 #     endif /* no CLSIZE */
23825 #    else /* no NBPG */
23826 #     ifdef NBPC
23827 #      define getpagesize() NBPC
23828 #     else /* no NBPC */
23829 #      ifdef PAGESIZE
23830 #       define getpagesize() PAGESIZE
23831 #      endif /* PAGESIZE */
23832 #     endif /* no NBPC */
23833 #    endif /* no NBPG */
23834 #   endif /* no EXEC_PAGESIZE */
23835 #  else /* no HAVE_SYS_PARAM_H */
23836 #   define getpagesize() 8192   /* punt totally */
23837 #  endif /* no HAVE_SYS_PARAM_H */
23838 # endif /* no _SC_PAGESIZE */
23839
23840 #endif /* no HAVE_GETPAGESIZE */
23841
23842 int
23843 main ()
23844 {
23845   char *data, *data2, *data3;
23846   int i, pagesize;
23847   int fd;
23848
23849   pagesize = getpagesize ();
23850
23851   /* First, make a file with some known garbage in it. */
23852   data = (char *) malloc (pagesize);
23853   if (!data)
23854     exit (1);
23855   for (i = 0; i < pagesize; ++i)
23856     *(data + i) = rand ();
23857   umask (0);
23858   fd = creat ("conftest.mmap", 0600);
23859   if (fd < 0)
23860     exit (1);
23861   if (write (fd, data, pagesize) != pagesize)
23862     exit (1);
23863   close (fd);
23864
23865   /* Mmap the file as read/write/shared and verify that we see the
23866   same garbage. */
23867   fd = open ("conftest.mmap", O_RDWR);
23868   if (fd < 0)
23869     exit (1);
23870   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23871   if (data2 == 0)
23872     exit (1);
23873   for (i = 0; i < pagesize; ++i)
23874     if (*(data + i) != *(data2 + i))
23875       exit (1);
23876
23877   /* Finally, make sure that changes to the mapped area
23878      percolate back to the file as seen by read().  */
23879   for (i = 0; i < pagesize; ++i)
23880     *(data2 + i) = *(data2 + i) + 1;
23881   data3 = (char *) malloc (pagesize);
23882   if (!data3)
23883     exit (1);
23884   if (read (fd, data3, pagesize) != pagesize)
23885     exit (1);
23886   for (i = 0; i < pagesize; ++i)
23887     if (*(data2 + i) != *(data3 + i))
23888       exit (1);
23889   close (fd);
23890   exit (0);
23891 }
23892 _ACEOF
23893 if ac_fn_c_try_run "$LINENO"; then :
23894   magick_cv_func_mmap_fileio=yes
23895 else
23896   magick_cv_func_mmap_fileio=no
23897 fi
23898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23899   conftest.$ac_objext conftest.beam conftest.$ac_ext
23900 fi
23901
23902 fi
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23904 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23905 if test $magick_cv_func_mmap_fileio = yes; then
23906
23907 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23908
23909 fi
23910 rm -f conftest.mmap
23911
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23913 $as_echo_n "checking whether closedir returns void... " >&6; }
23914 if ${ac_cv_func_closedir_void+:} false; then :
23915   $as_echo_n "(cached) " >&6
23916 else
23917   if test "$cross_compiling" = yes; then :
23918   ac_cv_func_closedir_void=yes
23919 else
23920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h.  */
23922 $ac_includes_default
23923 #include <$ac_header_dirent>
23924 #ifndef __cplusplus
23925 int closedir ();
23926 #endif
23927
23928 int
23929 main ()
23930 {
23931 return closedir (opendir (".")) != 0;
23932   ;
23933   return 0;
23934 }
23935 _ACEOF
23936 if ac_fn_c_try_run "$LINENO"; then :
23937   ac_cv_func_closedir_void=no
23938 else
23939   ac_cv_func_closedir_void=yes
23940 fi
23941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23942   conftest.$ac_objext conftest.beam conftest.$ac_ext
23943 fi
23944
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23947 $as_echo "$ac_cv_func_closedir_void" >&6; }
23948 if test $ac_cv_func_closedir_void = yes; then
23949
23950 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23951
23952 fi
23953
23954
23955
23956
23957   for ac_header in $ac_header_list
23958 do :
23959   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23961 "
23962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23963   cat >>confdefs.h <<_ACEOF
23964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23965 _ACEOF
23966
23967 fi
23968
23969 done
23970
23971
23972
23973
23974
23975
23976
23977
23978 for ac_func in getpagesize
23979 do :
23980   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23981 if test "x$ac_cv_func_getpagesize" = xyes; then :
23982   cat >>confdefs.h <<_ACEOF
23983 #define HAVE_GETPAGESIZE 1
23984 _ACEOF
23985
23986 fi
23987 done
23988
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23990 $as_echo_n "checking for working mmap... " >&6; }
23991 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23992   $as_echo_n "(cached) " >&6
23993 else
23994   if test "$cross_compiling" = yes; then :
23995   ac_cv_func_mmap_fixed_mapped=no
23996 else
23997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h.  */
23999 $ac_includes_default
24000 /* malloc might have been renamed as rpl_malloc. */
24001 #undef malloc
24002
24003 /* Thanks to Mike Haertel and Jim Avera for this test.
24004    Here is a matrix of mmap possibilities:
24005         mmap private not fixed
24006         mmap private fixed at somewhere currently unmapped
24007         mmap private fixed at somewhere already mapped
24008         mmap shared not fixed
24009         mmap shared fixed at somewhere currently unmapped
24010         mmap shared fixed at somewhere already mapped
24011    For private mappings, we should verify that changes cannot be read()
24012    back from the file, nor mmap's back from the file at a different
24013    address.  (There have been systems where private was not correctly
24014    implemented like the infamous i386 svr4.0, and systems where the
24015    VM page cache was not coherent with the file system buffer cache
24016    like early versions of FreeBSD and possibly contemporary NetBSD.)
24017    For shared mappings, we should conversely verify that changes get
24018    propagated back to all the places they're supposed to be.
24019
24020    Grep wants private fixed already mapped.
24021    The main things grep needs to know about mmap are:
24022    * does it exist and is it safe to write into the mmap'd area
24023    * how to use it (BSD variants)  */
24024
24025 #include <fcntl.h>
24026 #include <sys/mman.h>
24027
24028 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24029 char *malloc ();
24030 #endif
24031
24032 /* This mess was copied from the GNU getpagesize.h.  */
24033 #ifndef HAVE_GETPAGESIZE
24034 # ifdef _SC_PAGESIZE
24035 #  define getpagesize() sysconf(_SC_PAGESIZE)
24036 # else /* no _SC_PAGESIZE */
24037 #  ifdef HAVE_SYS_PARAM_H
24038 #   include <sys/param.h>
24039 #   ifdef EXEC_PAGESIZE
24040 #    define getpagesize() EXEC_PAGESIZE
24041 #   else /* no EXEC_PAGESIZE */
24042 #    ifdef NBPG
24043 #     define getpagesize() NBPG * CLSIZE
24044 #     ifndef CLSIZE
24045 #      define CLSIZE 1
24046 #     endif /* no CLSIZE */
24047 #    else /* no NBPG */
24048 #     ifdef NBPC
24049 #      define getpagesize() NBPC
24050 #     else /* no NBPC */
24051 #      ifdef PAGESIZE
24052 #       define getpagesize() PAGESIZE
24053 #      endif /* PAGESIZE */
24054 #     endif /* no NBPC */
24055 #    endif /* no NBPG */
24056 #   endif /* no EXEC_PAGESIZE */
24057 #  else /* no HAVE_SYS_PARAM_H */
24058 #   define getpagesize() 8192   /* punt totally */
24059 #  endif /* no HAVE_SYS_PARAM_H */
24060 # endif /* no _SC_PAGESIZE */
24061
24062 #endif /* no HAVE_GETPAGESIZE */
24063
24064 int
24065 main ()
24066 {
24067   char *data, *data2, *data3;
24068   const char *cdata2;
24069   int i, pagesize;
24070   int fd, fd2;
24071
24072   pagesize = getpagesize ();
24073
24074   /* First, make a file with some known garbage in it. */
24075   data = (char *) malloc (pagesize);
24076   if (!data)
24077     return 1;
24078   for (i = 0; i < pagesize; ++i)
24079     *(data + i) = rand ();
24080   umask (0);
24081   fd = creat ("conftest.mmap", 0600);
24082   if (fd < 0)
24083     return 2;
24084   if (write (fd, data, pagesize) != pagesize)
24085     return 3;
24086   close (fd);
24087
24088   /* Next, check that the tail of a page is zero-filled.  File must have
24089      non-zero length, otherwise we risk SIGBUS for entire page.  */
24090   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24091   if (fd2 < 0)
24092     return 4;
24093   cdata2 = "";
24094   if (write (fd2, cdata2, 1) != 1)
24095     return 5;
24096   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24097   if (data2 == MAP_FAILED)
24098     return 6;
24099   for (i = 0; i < pagesize; ++i)
24100     if (*(data2 + i))
24101       return 7;
24102   close (fd2);
24103   if (munmap (data2, pagesize))
24104     return 8;
24105
24106   /* Next, try to mmap the file at a fixed address which already has
24107      something else allocated at it.  If we can, also make sure that
24108      we see the same garbage.  */
24109   fd = open ("conftest.mmap", O_RDWR);
24110   if (fd < 0)
24111     return 9;
24112   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24113                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24114     return 10;
24115   for (i = 0; i < pagesize; ++i)
24116     if (*(data + i) != *(data2 + i))
24117       return 11;
24118
24119   /* Finally, make sure that changes to the mapped area do not
24120      percolate back to the file as seen by read().  (This is a bug on
24121      some variants of i386 svr4.0.)  */
24122   for (i = 0; i < pagesize; ++i)
24123     *(data2 + i) = *(data2 + i) + 1;
24124   data3 = (char *) malloc (pagesize);
24125   if (!data3)
24126     return 12;
24127   if (read (fd, data3, pagesize) != pagesize)
24128     return 13;
24129   for (i = 0; i < pagesize; ++i)
24130     if (*(data + i) != *(data3 + i))
24131       return 14;
24132   close (fd);
24133   return 0;
24134 }
24135 _ACEOF
24136 if ac_fn_c_try_run "$LINENO"; then :
24137   ac_cv_func_mmap_fixed_mapped=yes
24138 else
24139   ac_cv_func_mmap_fixed_mapped=no
24140 fi
24141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24142   conftest.$ac_objext conftest.beam conftest.$ac_ext
24143 fi
24144
24145 fi
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24147 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24148 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24149
24150 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24151
24152 fi
24153 rm -f conftest.mmap conftest.txt
24154
24155 for ac_header in vfork.h
24156 do :
24157   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24158 if test "x$ac_cv_header_vfork_h" = xyes; then :
24159   cat >>confdefs.h <<_ACEOF
24160 #define HAVE_VFORK_H 1
24161 _ACEOF
24162
24163 fi
24164
24165 done
24166
24167 for ac_func in fork vfork
24168 do :
24169   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24172   cat >>confdefs.h <<_ACEOF
24173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24174 _ACEOF
24175
24176 fi
24177 done
24178
24179 if test "x$ac_cv_func_fork" = xyes; then
24180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24181 $as_echo_n "checking for working fork... " >&6; }
24182 if ${ac_cv_func_fork_works+:} false; then :
24183   $as_echo_n "(cached) " >&6
24184 else
24185   if test "$cross_compiling" = yes; then :
24186   ac_cv_func_fork_works=cross
24187 else
24188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189 /* end confdefs.h.  */
24190 $ac_includes_default
24191 int
24192 main ()
24193 {
24194
24195           /* By Ruediger Kuhlmann. */
24196           return fork () < 0;
24197
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 if ac_fn_c_try_run "$LINENO"; then :
24203   ac_cv_func_fork_works=yes
24204 else
24205   ac_cv_func_fork_works=no
24206 fi
24207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24208   conftest.$ac_objext conftest.beam conftest.$ac_ext
24209 fi
24210
24211 fi
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24213 $as_echo "$ac_cv_func_fork_works" >&6; }
24214
24215 else
24216   ac_cv_func_fork_works=$ac_cv_func_fork
24217 fi
24218 if test "x$ac_cv_func_fork_works" = xcross; then
24219   case $host in
24220     *-*-amigaos* | *-*-msdosdjgpp*)
24221       # Override, as these systems have only a dummy fork() stub
24222       ac_cv_func_fork_works=no
24223       ;;
24224     *)
24225       ac_cv_func_fork_works=yes
24226       ;;
24227   esac
24228   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24229 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24230 fi
24231 ac_cv_func_vfork_works=$ac_cv_func_vfork
24232 if test "x$ac_cv_func_vfork" = xyes; then
24233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24234 $as_echo_n "checking for working vfork... " >&6; }
24235 if ${ac_cv_func_vfork_works+:} false; then :
24236   $as_echo_n "(cached) " >&6
24237 else
24238   if test "$cross_compiling" = yes; then :
24239   ac_cv_func_vfork_works=cross
24240 else
24241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242 /* end confdefs.h.  */
24243 /* Thanks to Paul Eggert for this test.  */
24244 $ac_includes_default
24245 #include <sys/wait.h>
24246 #ifdef HAVE_VFORK_H
24247 # include <vfork.h>
24248 #endif
24249 /* On some sparc systems, changes by the child to local and incoming
24250    argument registers are propagated back to the parent.  The compiler
24251    is told about this with #include <vfork.h>, but some compilers
24252    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24253    static variable whose address is put into a register that is
24254    clobbered by the vfork.  */
24255 static void
24256 #ifdef __cplusplus
24257 sparc_address_test (int arg)
24258 # else
24259 sparc_address_test (arg) int arg;
24260 #endif
24261 {
24262   static pid_t child;
24263   if (!child) {
24264     child = vfork ();
24265     if (child < 0) {
24266       perror ("vfork");
24267       _exit(2);
24268     }
24269     if (!child) {
24270       arg = getpid();
24271       write(-1, "", 0);
24272       _exit (arg);
24273     }
24274   }
24275 }
24276
24277 int
24278 main ()
24279 {
24280   pid_t parent = getpid ();
24281   pid_t child;
24282
24283   sparc_address_test (0);
24284
24285   child = vfork ();
24286
24287   if (child == 0) {
24288     /* Here is another test for sparc vfork register problems.  This
24289        test uses lots of local variables, at least as many local
24290        variables as main has allocated so far including compiler
24291        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24292        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24293        reuse the register of parent for one of the local variables,
24294        since it will think that parent can't possibly be used any more
24295        in this routine.  Assigning to the local variable will thus
24296        munge parent in the parent process.  */
24297     pid_t
24298       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24299       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24300     /* Convince the compiler that p..p7 are live; otherwise, it might
24301        use the same hardware register for all 8 local variables.  */
24302     if (p != p1 || p != p2 || p != p3 || p != p4
24303         || p != p5 || p != p6 || p != p7)
24304       _exit(1);
24305
24306     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24307        from child file descriptors.  If the child closes a descriptor
24308        before it execs or exits, this munges the parent's descriptor
24309        as well.  Test for this by closing stdout in the child.  */
24310     _exit(close(fileno(stdout)) != 0);
24311   } else {
24312     int status;
24313     struct stat st;
24314
24315     while (wait(&status) != child)
24316       ;
24317     return (
24318          /* Was there some problem with vforking?  */
24319          child < 0
24320
24321          /* Did the child fail?  (This shouldn't happen.)  */
24322          || status
24323
24324          /* Did the vfork/compiler bug occur?  */
24325          || parent != getpid()
24326
24327          /* Did the file descriptor bug occur?  */
24328          || fstat(fileno(stdout), &st) != 0
24329          );
24330   }
24331 }
24332 _ACEOF
24333 if ac_fn_c_try_run "$LINENO"; then :
24334   ac_cv_func_vfork_works=yes
24335 else
24336   ac_cv_func_vfork_works=no
24337 fi
24338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24339   conftest.$ac_objext conftest.beam conftest.$ac_ext
24340 fi
24341
24342 fi
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24344 $as_echo "$ac_cv_func_vfork_works" >&6; }
24345
24346 fi;
24347 if test "x$ac_cv_func_fork_works" = xcross; then
24348   ac_cv_func_vfork_works=$ac_cv_func_vfork
24349   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24350 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24351 fi
24352
24353 if test "x$ac_cv_func_vfork_works" = xyes; then
24354
24355 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24356
24357 else
24358
24359 $as_echo "#define vfork fork" >>confdefs.h
24360
24361 fi
24362 if test "x$ac_cv_func_fork_works" = xyes; then
24363
24364 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24365
24366 fi
24367
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24369 $as_echo_n "checking for working memcmp... " >&6; }
24370 if ${ac_cv_func_memcmp_working+:} false; then :
24371   $as_echo_n "(cached) " >&6
24372 else
24373   if test "$cross_compiling" = yes; then :
24374   ac_cv_func_memcmp_working=no
24375 else
24376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h.  */
24378 $ac_includes_default
24379 int
24380 main ()
24381 {
24382
24383   /* Some versions of memcmp are not 8-bit clean.  */
24384   char c0 = '\100', c1 = '\200', c2 = '\201';
24385   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24386     return 1;
24387
24388   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24389      or more and with at least one buffer not starting on a 4-byte boundary.
24390      William Lewis provided this test program.   */
24391   {
24392     char foo[21];
24393     char bar[21];
24394     int i;
24395     for (i = 0; i < 4; i++)
24396       {
24397         char *a = foo + i;
24398         char *b = bar + i;
24399         strcpy (a, "--------01111111");
24400         strcpy (b, "--------10000000");
24401         if (memcmp (a, b, 16) >= 0)
24402           return 1;
24403       }
24404     return 0;
24405   }
24406
24407   ;
24408   return 0;
24409 }
24410 _ACEOF
24411 if ac_fn_c_try_run "$LINENO"; then :
24412   ac_cv_func_memcmp_working=yes
24413 else
24414   ac_cv_func_memcmp_working=no
24415 fi
24416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24417   conftest.$ac_objext conftest.beam conftest.$ac_ext
24418 fi
24419
24420 fi
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24422 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24423 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24424   *" memcmp.$ac_objext "* ) ;;
24425   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24426  ;;
24427 esac
24428
24429
24430 for ac_header in sys/select.h sys/socket.h
24431 do :
24432   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24435   cat >>confdefs.h <<_ACEOF
24436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24437 _ACEOF
24438
24439 fi
24440
24441 done
24442
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24444 $as_echo_n "checking types of arguments for select... " >&6; }
24445 if ${ac_cv_func_select_args+:} false; then :
24446   $as_echo_n "(cached) " >&6
24447 else
24448   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24449  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24450   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24452 /* end confdefs.h.  */
24453 $ac_includes_default
24454 #ifdef HAVE_SYS_SELECT_H
24455 # include <sys/select.h>
24456 #endif
24457 #ifdef HAVE_SYS_SOCKET_H
24458 # include <sys/socket.h>
24459 #endif
24460
24461 int
24462 main ()
24463 {
24464 extern int select ($ac_arg1,
24465                                             $ac_arg234, $ac_arg234, $ac_arg234,
24466                                             $ac_arg5);
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 if ac_fn_c_try_compile "$LINENO"; then :
24472   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24473 fi
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24475   done
24476  done
24477 done
24478 # Provide a safe default value.
24479 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24480
24481 fi
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24483 $as_echo "$ac_cv_func_select_args" >&6; }
24484 ac_save_IFS=$IFS; IFS=','
24485 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24486 IFS=$ac_save_IFS
24487 shift
24488
24489 cat >>confdefs.h <<_ACEOF
24490 #define SELECT_TYPE_ARG1 $1
24491 _ACEOF
24492
24493
24494 cat >>confdefs.h <<_ACEOF
24495 #define SELECT_TYPE_ARG234 ($2)
24496 _ACEOF
24497
24498
24499 cat >>confdefs.h <<_ACEOF
24500 #define SELECT_TYPE_ARG5 ($3)
24501 _ACEOF
24502
24503 rm -f conftest*
24504
24505 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24506   $as_echo_n "(cached) " >&6
24507 else
24508   ac_cv_func_setvbuf_reversed=no
24509 fi
24510
24511
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24513 $as_echo_n "checking return type of signal handlers... " >&6; }
24514 if ${ac_cv_type_signal+:} false; then :
24515   $as_echo_n "(cached) " >&6
24516 else
24517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h.  */
24519 #include <sys/types.h>
24520 #include <signal.h>
24521
24522 int
24523 main ()
24524 {
24525 return *(signal (0, 0)) (0) == 1;
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 if ac_fn_c_try_compile "$LINENO"; then :
24531   ac_cv_type_signal=int
24532 else
24533   ac_cv_type_signal=void
24534 fi
24535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536 fi
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24538 $as_echo "$ac_cv_type_signal" >&6; }
24539
24540 cat >>confdefs.h <<_ACEOF
24541 #define RETSIGTYPE $ac_cv_type_signal
24542 _ACEOF
24543
24544
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24546 $as_echo_n "checking for working strtod... " >&6; }
24547 if ${ac_cv_func_strtod+:} false; then :
24548   $as_echo_n "(cached) " >&6
24549 else
24550   if test "$cross_compiling" = yes; then :
24551   ac_cv_func_strtod=no
24552 else
24553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h.  */
24555
24556 $ac_includes_default
24557 #ifndef strtod
24558 double strtod ();
24559 #endif
24560 int
24561 main()
24562 {
24563   {
24564     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
24565     char *string = " +69";
24566     char *term;
24567     double value;
24568     value = strtod (string, &term);
24569     if (value != 69 || term != (string + 4))
24570       return 1;
24571   }
24572
24573   {
24574     /* Under Solaris 2.4, strtod returns the wrong value for the
24575        terminating character under some conditions.  */
24576     char *string = "NaN";
24577     char *term;
24578     strtod (string, &term);
24579     if (term != string && *(term - 1) == 0)
24580       return 1;
24581   }
24582   return 0;
24583 }
24584
24585 _ACEOF
24586 if ac_fn_c_try_run "$LINENO"; then :
24587   ac_cv_func_strtod=yes
24588 else
24589   ac_cv_func_strtod=no
24590 fi
24591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592   conftest.$ac_objext conftest.beam conftest.$ac_ext
24593 fi
24594
24595 fi
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24597 $as_echo "$ac_cv_func_strtod" >&6; }
24598 if test $ac_cv_func_strtod = no; then
24599   case " $LIBOBJS " in
24600   *" strtod.$ac_objext "* ) ;;
24601   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24602  ;;
24603 esac
24604
24605 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24606 if test "x$ac_cv_func_pow" = xyes; then :
24607
24608 fi
24609
24610 if test $ac_cv_func_pow = no; then
24611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24612 $as_echo_n "checking for pow in -lm... " >&6; }
24613 if ${ac_cv_lib_m_pow+:} false; then :
24614   $as_echo_n "(cached) " >&6
24615 else
24616   ac_check_lib_save_LIBS=$LIBS
24617 LIBS="-lm  $LIBS"
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h.  */
24620
24621 /* Override any GCC internal prototype to avoid an error.
24622    Use char because int might match the return type of a GCC
24623    builtin and then its argument prototype would still apply.  */
24624 #ifdef __cplusplus
24625 extern "C"
24626 #endif
24627 char pow ();
24628 int
24629 main ()
24630 {
24631 return pow ();
24632   ;
24633   return 0;
24634 }
24635 _ACEOF
24636 if ac_fn_c_try_link "$LINENO"; then :
24637   ac_cv_lib_m_pow=yes
24638 else
24639   ac_cv_lib_m_pow=no
24640 fi
24641 rm -f core conftest.err conftest.$ac_objext \
24642     conftest$ac_exeext conftest.$ac_ext
24643 LIBS=$ac_check_lib_save_LIBS
24644 fi
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24646 $as_echo "$ac_cv_lib_m_pow" >&6; }
24647 if test "x$ac_cv_lib_m_pow" = xyes; then :
24648   POW_LIB=-lm
24649 else
24650   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24651 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24652 fi
24653
24654 fi
24655
24656 fi
24657
24658 for ac_func in vprintf
24659 do :
24660   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24661 if test "x$ac_cv_func_vprintf" = xyes; then :
24662   cat >>confdefs.h <<_ACEOF
24663 #define HAVE_VPRINTF 1
24664 _ACEOF
24665
24666 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24667 if test "x$ac_cv_func__doprnt" = xyes; then :
24668
24669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24670
24671 fi
24672
24673 fi
24674 done
24675
24676
24677
24678 #
24679 # Find math library
24680 #
24681 MATH_LIBS=''
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24683 $as_echo_n "checking for sqrt in -lm... " >&6; }
24684 if ${ac_cv_lib_m_sqrt+:} false; then :
24685   $as_echo_n "(cached) " >&6
24686 else
24687   ac_check_lib_save_LIBS=$LIBS
24688 LIBS="-lm  $LIBS"
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h.  */
24691
24692 /* Override any GCC internal prototype to avoid an error.
24693    Use char because int might match the return type of a GCC
24694    builtin and then its argument prototype would still apply.  */
24695 #ifdef __cplusplus
24696 extern "C"
24697 #endif
24698 char sqrt ();
24699 int
24700 main ()
24701 {
24702 return sqrt ();
24703   ;
24704   return 0;
24705 }
24706 _ACEOF
24707 if ac_fn_c_try_link "$LINENO"; then :
24708   ac_cv_lib_m_sqrt=yes
24709 else
24710   ac_cv_lib_m_sqrt=no
24711 fi
24712 rm -f core conftest.err conftest.$ac_objext \
24713     conftest$ac_exeext conftest.$ac_ext
24714 LIBS=$ac_check_lib_save_LIBS
24715 fi
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24717 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24718 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24719   MATH_LIBS="-lm"
24720 fi
24721
24722 LIBS="$MATH_LIBS $LIBS"
24723
24724
24725 for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
24726 do :
24727   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24729 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24730   cat >>confdefs.h <<_ACEOF
24731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24732 _ACEOF
24733
24734 fi
24735 done
24736
24737
24738 #
24739 # Check for clock_gettime().
24740 #
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24742 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24743 if ${ac_cv_search_clock_gettime+:} false; then :
24744   $as_echo_n "(cached) " >&6
24745 else
24746   ac_func_search_save_LIBS=$LIBS
24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24748 /* end confdefs.h.  */
24749
24750 /* Override any GCC internal prototype to avoid an error.
24751    Use char because int might match the return type of a GCC
24752    builtin and then its argument prototype would still apply.  */
24753 #ifdef __cplusplus
24754 extern "C"
24755 #endif
24756 char clock_gettime ();
24757 int
24758 main ()
24759 {
24760 return clock_gettime ();
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 for ac_lib in '' rt; do
24766   if test -z "$ac_lib"; then
24767     ac_res="none required"
24768   else
24769     ac_res=-l$ac_lib
24770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24771   fi
24772   if ac_fn_c_try_link "$LINENO"; then :
24773   ac_cv_search_clock_gettime=$ac_res
24774 fi
24775 rm -f core conftest.err conftest.$ac_objext \
24776     conftest$ac_exeext
24777   if ${ac_cv_search_clock_gettime+:} false; then :
24778   break
24779 fi
24780 done
24781 if ${ac_cv_search_clock_gettime+:} false; then :
24782
24783 else
24784   ac_cv_search_clock_gettime=no
24785 fi
24786 rm conftest.$ac_ext
24787 LIBS=$ac_func_search_save_LIBS
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24790 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24791 ac_res=$ac_cv_search_clock_gettime
24792 if test "$ac_res" != no; then :
24793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24794
24795
24796 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24797
24798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24799 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h.  */
24802
24803     #include <time.h>
24804 int
24805 main ()
24806 {
24807 clockid_t clockType = CLOCK_REALTIME;
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 if ac_fn_c_try_compile "$LINENO"; then :
24813
24814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24815 $as_echo "yes" >&6; }
24816
24817 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24818
24819
24820 else
24821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24822 $as_echo "no" >&6; }
24823
24824 fi
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826
24827 else
24828
24829     for ac_func in gettimeofday ftime
24830 do :
24831   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24834   cat >>confdefs.h <<_ACEOF
24835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24836 _ACEOF
24837  break
24838 fi
24839 done
24840
24841
24842
24843 fi
24844
24845
24846 ########
24847 #
24848 # Check for function prototypes
24849 #
24850 ########
24851
24852 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24853 #include <unistd.h>
24854 "
24855 if test "x$ac_cv_have_decl_pread" = xyes; then :
24856   ac_have_decl=1
24857 else
24858   ac_have_decl=0
24859 fi
24860
24861 cat >>confdefs.h <<_ACEOF
24862 #define HAVE_DECL_PREAD $ac_have_decl
24863 _ACEOF
24864 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24865 #include <unistd.h>
24866 "
24867 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24868   ac_have_decl=1
24869 else
24870   ac_have_decl=0
24871 fi
24872
24873 cat >>confdefs.h <<_ACEOF
24874 #define HAVE_DECL_PWRITE $ac_have_decl
24875 _ACEOF
24876
24877
24878 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24879 #include <strings.h>
24880 "
24881 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24882   ac_have_decl=1
24883 else
24884   ac_have_decl=0
24885 fi
24886
24887 cat >>confdefs.h <<_ACEOF
24888 #define HAVE_DECL_STRLCPY $ac_have_decl
24889 _ACEOF
24890
24891
24892 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24893 #include <stdio.h>
24894 #include <stdarg.h>
24895 "
24896 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24897   ac_have_decl=1
24898 else
24899   ac_have_decl=0
24900 fi
24901
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24904 _ACEOF
24905
24906
24907 ########
24908 #
24909 # C++ Support Tests (For Magick++)
24910 #
24911 ########
24912 have_magick_plus_plus='no'
24913 if test "$with_magick_plus_plus" = 'yes'; then
24914     OLIBS="$LIBS"
24915     LIBS=''
24916     ac_ext=cpp
24917 ac_cpp='$CXXCPP $CPPFLAGS'
24918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24921
24922
24923     # Full set of headers used...
24924     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24925     # functional iomanip iosfwd iostream iterator list string strstream utility
24926     ac_ext=cpp
24927 ac_cpp='$CXXCPP $CPPFLAGS'
24928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24931
24932     ac_ext=cpp
24933 ac_cpp='$CXXCPP $CPPFLAGS'
24934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24937 if test -z "$CXX"; then
24938   if test -n "$CCC"; then
24939     CXX=$CCC
24940   else
24941     if test -n "$ac_tool_prefix"; then
24942   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24943   do
24944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24947 $as_echo_n "checking for $ac_word... " >&6; }
24948 if ${ac_cv_prog_CXX+:} false; then :
24949   $as_echo_n "(cached) " >&6
24950 else
24951   if test -n "$CXX"; then
24952   ac_cv_prog_CXX="$CXX" # Let the user override the test.
24953 else
24954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24955 for as_dir in $PATH
24956 do
24957   IFS=$as_save_IFS
24958   test -z "$as_dir" && as_dir=.
24959     for ac_exec_ext in '' $ac_executable_extensions; do
24960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24961     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24963     break 2
24964   fi
24965 done
24966   done
24967 IFS=$as_save_IFS
24968
24969 fi
24970 fi
24971 CXX=$ac_cv_prog_CXX
24972 if test -n "$CXX"; then
24973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24974 $as_echo "$CXX" >&6; }
24975 else
24976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24977 $as_echo "no" >&6; }
24978 fi
24979
24980
24981     test -n "$CXX" && break
24982   done
24983 fi
24984 if test -z "$CXX"; then
24985   ac_ct_CXX=$CXX
24986   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24987 do
24988   # Extract the first word of "$ac_prog", so it can be a program name with args.
24989 set dummy $ac_prog; ac_word=$2
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24991 $as_echo_n "checking for $ac_word... " >&6; }
24992 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24993   $as_echo_n "(cached) " >&6
24994 else
24995   if test -n "$ac_ct_CXX"; then
24996   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24997 else
24998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24999 for as_dir in $PATH
25000 do
25001   IFS=$as_save_IFS
25002   test -z "$as_dir" && as_dir=.
25003     for ac_exec_ext in '' $ac_executable_extensions; do
25004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25005     ac_cv_prog_ac_ct_CXX="$ac_prog"
25006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25007     break 2
25008   fi
25009 done
25010   done
25011 IFS=$as_save_IFS
25012
25013 fi
25014 fi
25015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25016 if test -n "$ac_ct_CXX"; then
25017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25018 $as_echo "$ac_ct_CXX" >&6; }
25019 else
25020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25022 fi
25023
25024
25025   test -n "$ac_ct_CXX" && break
25026 done
25027
25028   if test "x$ac_ct_CXX" = x; then
25029     CXX="g++"
25030   else
25031     case $cross_compiling:$ac_tool_warned in
25032 yes:)
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25035 ac_tool_warned=yes ;;
25036 esac
25037     CXX=$ac_ct_CXX
25038   fi
25039 fi
25040
25041   fi
25042 fi
25043 # Provide some information about the compiler.
25044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25045 set X $ac_compile
25046 ac_compiler=$2
25047 for ac_option in --version -v -V -qversion; do
25048   { { ac_try="$ac_compiler $ac_option >&5"
25049 case "(($ac_try" in
25050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051   *) ac_try_echo=$ac_try;;
25052 esac
25053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25054 $as_echo "$ac_try_echo"; } >&5
25055   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25056   ac_status=$?
25057   if test -s conftest.err; then
25058     sed '10a\
25059 ... rest of stderr output deleted ...
25060          10q' conftest.err >conftest.er1
25061     cat conftest.er1 >&5
25062   fi
25063   rm -f conftest.er1 conftest.err
25064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065   test $ac_status = 0; }
25066 done
25067
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25069 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25070 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25071   $as_echo_n "(cached) " >&6
25072 else
25073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h.  */
25075
25076 int
25077 main ()
25078 {
25079 #ifndef __GNUC__
25080        choke me
25081 #endif
25082
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 if ac_fn_cxx_try_compile "$LINENO"; then :
25088   ac_compiler_gnu=yes
25089 else
25090   ac_compiler_gnu=no
25091 fi
25092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25094
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25097 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25098 if test $ac_compiler_gnu = yes; then
25099   GXX=yes
25100 else
25101   GXX=
25102 fi
25103 ac_test_CXXFLAGS=${CXXFLAGS+set}
25104 ac_save_CXXFLAGS=$CXXFLAGS
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25106 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25107 if ${ac_cv_prog_cxx_g+:} false; then :
25108   $as_echo_n "(cached) " >&6
25109 else
25110   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25111    ac_cxx_werror_flag=yes
25112    ac_cv_prog_cxx_g=no
25113    CXXFLAGS="-g"
25114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h.  */
25116
25117 int
25118 main ()
25119 {
25120
25121   ;
25122   return 0;
25123 }
25124 _ACEOF
25125 if ac_fn_cxx_try_compile "$LINENO"; then :
25126   ac_cv_prog_cxx_g=yes
25127 else
25128   CXXFLAGS=""
25129       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25130 /* end confdefs.h.  */
25131
25132 int
25133 main ()
25134 {
25135
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 if ac_fn_cxx_try_compile "$LINENO"; then :
25141
25142 else
25143   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25144          CXXFLAGS="-g"
25145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146 /* end confdefs.h.  */
25147
25148 int
25149 main ()
25150 {
25151
25152   ;
25153   return 0;
25154 }
25155 _ACEOF
25156 if ac_fn_cxx_try_compile "$LINENO"; then :
25157   ac_cv_prog_cxx_g=yes
25158 fi
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160 fi
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 fi
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25165 fi
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25167 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25168 if test "$ac_test_CXXFLAGS" = set; then
25169   CXXFLAGS=$ac_save_CXXFLAGS
25170 elif test $ac_cv_prog_cxx_g = yes; then
25171   if test "$GXX" = yes; then
25172     CXXFLAGS="-g -O2"
25173   else
25174     CXXFLAGS="-g"
25175   fi
25176 else
25177   if test "$GXX" = yes; then
25178     CXXFLAGS="-O2"
25179   else
25180     CXXFLAGS=
25181   fi
25182 fi
25183 ac_ext=cpp
25184 ac_cpp='$CXXCPP $CPPFLAGS'
25185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25188
25189 depcc="$CXX"  am_compiler_list=
25190
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25192 $as_echo_n "checking dependency style of $depcc... " >&6; }
25193 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25194   $as_echo_n "(cached) " >&6
25195 else
25196   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25197   # We make a subdir and do the tests there.  Otherwise we can end up
25198   # making bogus files that we don't know about and never remove.  For
25199   # instance it was reported that on HP-UX the gcc test will end up
25200   # making a dummy file named `D' -- because `-MD' means `put the output
25201   # in D'.
25202   mkdir conftest.dir
25203   # Copy depcomp to subdir because otherwise we won't find it if we're
25204   # using a relative directory.
25205   cp "$am_depcomp" conftest.dir
25206   cd conftest.dir
25207   # We will build objects and dependencies in a subdirectory because
25208   # it helps to detect inapplicable dependency modes.  For instance
25209   # both Tru64's cc and ICC support -MD to output dependencies as a
25210   # side effect of compilation, but ICC will put the dependencies in
25211   # the current directory while Tru64 will put them in the object
25212   # directory.
25213   mkdir sub
25214
25215   am_cv_CXX_dependencies_compiler_type=none
25216   if test "$am_compiler_list" = ""; then
25217      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25218   fi
25219   am__universal=false
25220   case " $depcc " in #(
25221      *\ -arch\ *\ -arch\ *) am__universal=true ;;
25222      esac
25223
25224   for depmode in $am_compiler_list; do
25225     # Setup a source with many dependencies, because some compilers
25226     # like to wrap large dependency lists on column 80 (with \), and
25227     # we should not choose a depcomp mode which is confused by this.
25228     #
25229     # We need to recreate these files for each test, as the compiler may
25230     # overwrite some of them when testing with obscure command lines.
25231     # This happens at least with the AIX C compiler.
25232     : > sub/conftest.c
25233     for i in 1 2 3 4 5 6; do
25234       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25235       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25236       # Solaris 8's {/usr,}/bin/sh.
25237       touch sub/conftst$i.h
25238     done
25239     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25240
25241     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25242     # mode.  It turns out that the SunPro C++ compiler does not properly
25243     # handle `-M -o', and we need to detect this.  Also, some Intel
25244     # versions had trouble with output in subdirs
25245     am__obj=sub/conftest.${OBJEXT-o}
25246     am__minus_obj="-o $am__obj"
25247     case $depmode in
25248     gcc)
25249       # This depmode causes a compiler race in universal mode.
25250       test "$am__universal" = false || continue
25251       ;;
25252     nosideeffect)
25253       # after this tag, mechanisms are not by side-effect, so they'll
25254       # only be used when explicitly requested
25255       if test "x$enable_dependency_tracking" = xyes; then
25256         continue
25257       else
25258         break
25259       fi
25260       ;;
25261     msvisualcpp | msvcmsys)
25262       # This compiler won't grok `-c -o', but also, the minuso test has
25263       # not run yet.  These depmodes are late enough in the game, and
25264       # so weak that their functioning should not be impacted.
25265       am__obj=conftest.${OBJEXT-o}
25266       am__minus_obj=
25267       ;;
25268     none) break ;;
25269     esac
25270     if depmode=$depmode \
25271        source=sub/conftest.c object=$am__obj \
25272        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25273        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25274          >/dev/null 2>conftest.err &&
25275        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25276        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25277        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25278        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25279       # icc doesn't choke on unknown options, it will just issue warnings
25280       # or remarks (even with -Werror).  So we grep stderr for any message
25281       # that says an option was ignored or not supported.
25282       # When given -MP, icc 7.0 and 7.1 complain thusly:
25283       #   icc: Command line warning: ignoring option '-M'; no argument required
25284       # The diagnosis changed in icc 8.0:
25285       #   icc: Command line remark: option '-MP' not supported
25286       if (grep 'ignoring option' conftest.err ||
25287           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25288         am_cv_CXX_dependencies_compiler_type=$depmode
25289         break
25290       fi
25291     fi
25292   done
25293
25294   cd ..
25295   rm -rf conftest.dir
25296 else
25297   am_cv_CXX_dependencies_compiler_type=none
25298 fi
25299
25300 fi
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25302 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25303 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25304
25305  if
25306   test "x$enable_dependency_tracking" != xno \
25307   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25308   am__fastdepCXX_TRUE=
25309   am__fastdepCXX_FALSE='#'
25310 else
25311   am__fastdepCXX_TRUE='#'
25312   am__fastdepCXX_FALSE=
25313 fi
25314
25315
25316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25317 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25318 if ${ax_cv_cxx_bool+:} false; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321
25322  ac_ext=cpp
25323 ac_cpp='$CXXCPP $CPPFLAGS'
25324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25327
25328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329 /* end confdefs.h.  */
25330
25331 int f(int  x){return 1;}
25332 int f(char x){return 1;}
25333 int f(bool x){return 1;}
25334
25335 int
25336 main ()
25337 {
25338 bool b = true; return f(b);
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 if ac_fn_cxx_try_compile "$LINENO"; then :
25344   ax_cv_cxx_bool=yes
25345 else
25346   ax_cv_cxx_bool=no
25347 fi
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349  ac_ext=cpp
25350 ac_cpp='$CXXCPP $CPPFLAGS'
25351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25354
25355
25356 fi
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25358 $as_echo "$ax_cv_cxx_bool" >&6; }
25359 if test "$ax_cv_cxx_bool" = yes; then
25360
25361 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25362
25363 fi
25364
25365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25366 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25367 if ${ax_cv_cxx_namespaces+:} false; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370
25371  ac_ext=cpp
25372 ac_cpp='$CXXCPP $CPPFLAGS'
25373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25376
25377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h.  */
25379 namespace Outer { namespace Inner { int i = 0; }}
25380 int
25381 main ()
25382 {
25383 using namespace Outer::Inner; return i;
25384   ;
25385   return 0;
25386 }
25387 _ACEOF
25388 if ac_fn_cxx_try_compile "$LINENO"; then :
25389   ax_cv_cxx_namespaces=yes
25390 else
25391   ax_cv_cxx_namespaces=no
25392 fi
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394  ac_ext=cpp
25395 ac_cpp='$CXXCPP $CPPFLAGS'
25396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25399
25400
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25403 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25404 if test "$ax_cv_cxx_namespaces" = yes; then
25405
25406 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25407
25408 fi
25409
25410
25411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25412 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25413 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25414   $as_echo_n "(cached) " >&6
25415 else
25416
25417   ac_ext=cpp
25418 ac_cpp='$CXXCPP $CPPFLAGS'
25419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422
25423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h.  */
25425 #include <iostream>
25426                   std::istream& is = std::cin;
25427 int
25428 main ()
25429 {
25430
25431   ;
25432   return 0;
25433 }
25434 _ACEOF
25435 if ac_fn_cxx_try_compile "$LINENO"; then :
25436   ax_cv_cxx_have_std_namespace=yes
25437 else
25438   ax_cv_cxx_have_std_namespace=no
25439 fi
25440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441   ac_ext=cpp
25442 ac_cpp='$CXXCPP $CPPFLAGS'
25443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25446
25447
25448 fi
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25450 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25451   if test "$ax_cv_cxx_have_std_namespace" = yes; then
25452
25453 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25454
25455   fi
25456
25457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25458 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25459 if ${ac_cv_cxx_have_std_libs+:} false; then :
25460   $as_echo_n "(cached) " >&6
25461 else
25462
25463
25464  ac_ext=cpp
25465 ac_cpp='$CXXCPP $CPPFLAGS'
25466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25469
25470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h.  */
25472 #include <iostream>
25473 #include <map>
25474 #include <iomanip>
25475 #include <cmath>
25476 #ifdef HAVE_NAMESPACES
25477 using namespace std;
25478 #endif
25479 int
25480 main ()
25481 {
25482 return 0;
25483   ;
25484   return 0;
25485 }
25486 _ACEOF
25487 if ac_fn_cxx_try_compile "$LINENO"; then :
25488   ac_cv_cxx_have_std_libs=yes
25489 else
25490   ac_cv_cxx_have_std_libs=no
25491 fi
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493  ac_ext=cpp
25494 ac_cpp='$CXXCPP $CPPFLAGS'
25495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25498
25499
25500 fi
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25502 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25503 if test "$ac_cv_cxx_have_std_libs" = yes; then
25504
25505 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25506
25507 fi
25508
25509
25510   OPENMP_CXXFLAGS=
25511   # Check whether --enable-openmp was given.
25512 if test "${enable_openmp+set}" = set; then :
25513   enableval=$enable_openmp;
25514 fi
25515
25516   if test "$enable_openmp" != no; then
25517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25518 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25519 if ${ac_cv_prog_cxx_openmp+:} false; then :
25520   $as_echo_n "(cached) " >&6
25521 else
25522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h.  */
25524
25525 #ifndef _OPENMP
25526  choke me
25527 #endif
25528 #include <omp.h>
25529 int main () { return omp_get_num_threads (); }
25530
25531 _ACEOF
25532 if ac_fn_cxx_try_link "$LINENO"; then :
25533   ac_cv_prog_cxx_openmp='none needed'
25534 else
25535   ac_cv_prog_cxx_openmp='unsupported'
25536                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25537             ac_save_CXXFLAGS=$CXXFLAGS
25538             CXXFLAGS="$CXXFLAGS $ac_option"
25539             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25540 /* end confdefs.h.  */
25541
25542 #ifndef _OPENMP
25543  choke me
25544 #endif
25545 #include <omp.h>
25546 int main () { return omp_get_num_threads (); }
25547
25548 _ACEOF
25549 if ac_fn_cxx_try_link "$LINENO"; then :
25550   ac_cv_prog_cxx_openmp=$ac_option
25551 fi
25552 rm -f core conftest.err conftest.$ac_objext \
25553     conftest$ac_exeext conftest.$ac_ext
25554             CXXFLAGS=$ac_save_CXXFLAGS
25555             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25556               break
25557             fi
25558           done
25559 fi
25560 rm -f core conftest.err conftest.$ac_objext \
25561     conftest$ac_exeext conftest.$ac_ext
25562 fi
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25564 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25565     case $ac_cv_prog_cxx_openmp in #(
25566       "none needed" | unsupported)
25567         ;; #(
25568       *)
25569         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25570     esac
25571   fi
25572
25573
25574     ac_ext=c
25575 ac_cpp='$CPP $CPPFLAGS'
25576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25579
25580
25581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25582 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25583     if \
25584         test $ax_cv_cxx_bool = 'yes' && \
25585         test $ax_cv_cxx_namespaces = 'yes' && \
25586         test $ac_cv_cxx_have_std_libs = 'yes' && \
25587         test $ax_cv_cxx_have_std_namespace = 'yes'; then
25588         have_magick_plus_plus='yes'
25589     else
25590         have_magick_plus_plus='no (failed tests)'
25591     fi
25592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25593 $as_echo "$have_magick_plus_plus" >&6; }
25594     LIBS="$OLIBS"
25595 fi
25596  if test "$have_magick_plus_plus" = 'yes'; then
25597   WITH_MAGICK_PLUS_PLUS_TRUE=
25598   WITH_MAGICK_PLUS_PLUS_FALSE='#'
25599 else
25600   WITH_MAGICK_PLUS_PLUS_TRUE='#'
25601   WITH_MAGICK_PLUS_PLUS_FALSE=
25602 fi
25603
25604
25605 # Only check for delegate libraries in subdirectories if requested.
25606 if test "$enable_delegate_build" != 'no'; then
25607     # Check for delegate sub-directories and add -I & -L options as required.
25608     # This presumes that delegates are installed as detailed in the ImageMagick
25609     # README. If delegates are installed in a standard location where the
25610     # compiler will automatically find them then these options should not be
25611     # required.
25612
25613     #
25614     # Most delegates have includes in the same directory as the library, but not all...
25615     #
25616     # Includes
25617     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
25618         if test -d "$builddir/$dir"; then
25619             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25620         else
25621             if test -d "$srcdirfull/$dir"; then
25622                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25623             fi
25624         fi
25625     done
25626
25627     # Libraries
25628     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
25629     if test -d "$builddir/$dir/.libs"; then
25630         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25631     else
25632         if test -d "$srcdirfull/$dir/.libs"; then
25633             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25634         fi
25635     fi
25636     if test -d "$builddir/$dir"; then
25637         LDFLAGS="$LDFLAGS -L$builddir/$dir"
25638     else
25639         if test -d "$srcdirfull/$dir"; then
25640             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25641         fi
25642     fi
25643   done
25644 fi
25645
25646 # Assume that delegate headers reside under same directory as ImageMagick
25647 # installation prefix.
25648 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25649
25650 #
25651 # Find the X11 RGB database
25652 #
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25654 $as_echo_n "checking for X11 configure files... " >&6; }
25655 if ${im_cv_x_configure+:} false; then :
25656   $as_echo_n "(cached) " >&6
25657 else
25658   # Look for the header file in a standard set of common directories.
25659 # Check X11 before X11Rn because it is often a symlink to the current release.
25660     for ac_dir in          \
25661     /lib/usr/lib/X11       \
25662     /usr/X11/lib           \
25663     /usr/X11R4/lib         \
25664     /usr/X11R5/lib         \
25665     /usr/X11R6/lib         \
25666     /usr/X11R7/lib         \
25667     /usr/X386/lib          \
25668     /usr/XFree86/lib/X11   \
25669     /usr/athena/lib        \
25670     /usr/lib               \
25671     /usr/lib/X11           \
25672     /usr/lib/X11R4         \
25673     /usr/lib/X11R5         \
25674     /usr/lib/X11R6         \
25675     /usr/lib/X11R7         \
25676     /usr/local/X11/lib     \
25677     /usr/local/X11R4/lib   \
25678     /usr/local/X11R5/lib   \
25679     /usr/local/X11R6/lib   \
25680     /usr/local/lib         \
25681     /usr/local/lib/X11     \
25682     /usr/local/lib/X11R4   \
25683     /usr/local/lib/X11R5   \
25684     /usr/local/lib/X11R6   \
25685     /usr/local/lib/X11R7   \
25686     /usr/local/x11r5/lib   \
25687     /usr/lpp/Xamples/lib   \
25688     /usr/openwin/lib       \
25689     /usr/openwin/share/lib \
25690     /usr/unsupported/lib   \
25691     /usr/x386/lib          \
25692     ; do
25693     if test -f "$ac_dir/X11/rgb.txt"; then
25694       im_cv_x_configure="$ac_dir/X11/"
25695       break
25696     elif test -f "$ac_dir/rgb.txt"; then
25697       im_cv_x_configure="$ac_dir/"
25698       break
25699     fi
25700
25701   done
25702 fi
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25704 $as_echo "$im_cv_x_configure" >&6; }
25705 X11_CONFIGURE_PATH="$im_cv_x_configure"
25706 case "${build_os}" in
25707   mingw* )
25708     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25709   ;;
25710 esac
25711
25712 cat >>confdefs.h <<_ACEOF
25713 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25714 _ACEOF
25715
25716
25717 #
25718 # Find OpenMP library
25719 #
25720 GOMP_LIBS=''
25721 if test "$enable_openmp" != 'no'; then
25722   if test "${GCC}" = "yes"; then
25723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25724 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25725 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25726   $as_echo_n "(cached) " >&6
25727 else
25728   ac_check_lib_save_LIBS=$LIBS
25729 LIBS="-lgomp  $LIBS"
25730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731 /* end confdefs.h.  */
25732
25733 /* Override any GCC internal prototype to avoid an error.
25734    Use char because int might match the return type of a GCC
25735    builtin and then its argument prototype would still apply.  */
25736 #ifdef __cplusplus
25737 extern "C"
25738 #endif
25739 char GOMP_parallel_start ();
25740 int
25741 main ()
25742 {
25743 return GOMP_parallel_start ();
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 if ac_fn_c_try_link "$LINENO"; then :
25749   ac_cv_lib_gomp_GOMP_parallel_start=yes
25750 else
25751   ac_cv_lib_gomp_GOMP_parallel_start=no
25752 fi
25753 rm -f core conftest.err conftest.$ac_objext \
25754     conftest$ac_exeext conftest.$ac_ext
25755 LIBS=$ac_check_lib_save_LIBS
25756 fi
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25758 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25759 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25760   GOMP_LIBS="-lgomp"
25761 fi
25762   # gcc
25763   else
25764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25765 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25766 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25767   $as_echo_n "(cached) " >&6
25768 else
25769   ac_check_lib_save_LIBS=$LIBS
25770 LIBS="-lmtsk  $LIBS"
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h.  */
25773
25774 /* Override any GCC internal prototype to avoid an error.
25775    Use char because int might match the return type of a GCC
25776    builtin and then its argument prototype would still apply.  */
25777 #ifdef __cplusplus
25778 extern "C"
25779 #endif
25780 char sunw_mp_register_warn ();
25781 int
25782 main ()
25783 {
25784 return sunw_mp_register_warn ();
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 if ac_fn_c_try_link "$LINENO"; then :
25790   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25791 else
25792   ac_cv_lib_mtsk_sunw_mp_register_warn=no
25793 fi
25794 rm -f core conftest.err conftest.$ac_objext \
25795     conftest$ac_exeext conftest.$ac_ext
25796 LIBS=$ac_check_lib_save_LIBS
25797 fi
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25799 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25800 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25801   GOMP_LIBS="-lmtsk"
25802 fi
25803   # solaris cc
25804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25805 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25806 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25807   $as_echo_n "(cached) " >&6
25808 else
25809   ac_check_lib_save_LIBS=$LIBS
25810 LIBS="-lxlsmp  $LIBS"
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h.  */
25813
25814 /* Override any GCC internal prototype to avoid an error.
25815    Use char because int might match the return type of a GCC
25816    builtin and then its argument prototype would still apply.  */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char _xlsmpFlush ();
25821 int
25822 main ()
25823 {
25824 return _xlsmpFlush ();
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 if ac_fn_c_try_link "$LINENO"; then :
25830   ac_cv_lib_xlsmp__xlsmpFlush=yes
25831 else
25832   ac_cv_lib_xlsmp__xlsmpFlush=no
25833 fi
25834 rm -f core conftest.err conftest.$ac_objext \
25835     conftest$ac_exeext conftest.$ac_ext
25836 LIBS=$ac_check_lib_save_LIBS
25837 fi
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25839 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25840 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25841   GOMP_LIBS="-lxlsmp"
25842 fi
25843   # AIX xlc
25844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25845 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25846 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25847   $as_echo_n "(cached) " >&6
25848 else
25849   ac_check_lib_save_LIBS=$LIBS
25850 LIBS="-lmp  $LIBS"
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h.  */
25853
25854 /* Override any GCC internal prototype to avoid an error.
25855    Use char because int might match the return type of a GCC
25856    builtin and then its argument prototype would still apply.  */
25857 #ifdef __cplusplus
25858 extern "C"
25859 #endif
25860 char mp_destroy ();
25861 int
25862 main ()
25863 {
25864 return mp_destroy ();
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 if ac_fn_c_try_link "$LINENO"; then :
25870   ac_cv_lib_mp_mp_destroy=yes
25871 else
25872   ac_cv_lib_mp_mp_destroy=no
25873 fi
25874 rm -f core conftest.err conftest.$ac_objext \
25875     conftest$ac_exeext conftest.$ac_ext
25876 LIBS=$ac_check_lib_save_LIBS
25877 fi
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25879 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25880 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25881   GOMP_LIBS="-lmp"
25882 fi
25883   # SGI IRIX 6.5 MIPSpro C/C++
25884   fi
25885   LIBS="$GOMP_LIBS $LIBS"
25886 fi
25887
25888
25889 #
25890 # Find Posix threads library
25891 #
25892 THREAD_LIBS=''
25893 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25894
25895     if test "x$PTHREAD_LIBS" = "x"; then
25896     case "${host_cpu}-${host_os}" in
25897       *-freebsd*)
25898
25899
25900
25901 ac_ext=c
25902 ac_cpp='$CPP $CPPFLAGS'
25903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25906
25907 magick_pthread_lib_ok=no
25908
25909 LIB=-lc_r
25910 save_LIBS="$LIBS"
25911 LIBS="$LIBS $LIB"
25912
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25914 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h.  */
25917 #include <pthread.h>
25918 int
25919 main ()
25920 {
25921   pthread_t th;
25922   pthread_join(th, 0);
25923   pthread_attr_init(0);
25924   pthread_cleanup_push(0, 0);
25925   pthread_create(0,0,0,0);
25926   pthread_cleanup_pop(0);
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 if ac_fn_c_try_link "$LINENO"; then :
25932   magick_pthread_lib_ok=yes
25933 fi
25934 rm -f core conftest.err conftest.$ac_objext \
25935     conftest$ac_exeext conftest.$ac_ext
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25938 $as_echo "${magick_pthread_lib_ok}" >&6; }
25939 if test "$magick_pthread_lib_ok" = yes
25940 then
25941   PTHREAD_LIBS=-lc_r
25942   :
25943 else
25944
25945   :
25946 fi
25947
25948 LIBS="$save_LIBS"
25949
25950 ac_ext=c
25951 ac_cpp='$CPP $CPPFLAGS'
25952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25955
25956  ;;
25957     esac
25958     fi
25959
25960     for lib in pthread pthreads; do
25961         if test "x$PTHREAD_LIBS" = "x"; then
25962
25963
25964
25965 ac_ext=c
25966 ac_cpp='$CPP $CPPFLAGS'
25967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25970
25971 magick_pthread_lib_ok=no
25972
25973 LIB=-l$lib
25974 save_LIBS="$LIBS"
25975 LIBS="$LIBS $LIB"
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25978 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h.  */
25981 #include <pthread.h>
25982 int
25983 main ()
25984 {
25985   pthread_t th;
25986   pthread_join(th, 0);
25987   pthread_attr_init(0);
25988   pthread_cleanup_push(0, 0);
25989   pthread_create(0,0,0,0);
25990   pthread_cleanup_pop(0);
25991   ;
25992   return 0;
25993 }
25994 _ACEOF
25995 if ac_fn_c_try_link "$LINENO"; then :
25996   magick_pthread_lib_ok=yes
25997 fi
25998 rm -f core conftest.err conftest.$ac_objext \
25999     conftest$ac_exeext conftest.$ac_ext
26000
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26002 $as_echo "${magick_pthread_lib_ok}" >&6; }
26003 if test "$magick_pthread_lib_ok" = yes
26004 then
26005   PTHREAD_LIBS=-l$lib
26006   :
26007 else
26008
26009   :
26010 fi
26011
26012 LIBS="$save_LIBS"
26013
26014 ac_ext=c
26015 ac_cpp='$CPP $CPPFLAGS'
26016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26019
26020
26021         fi
26022     done
26023
26024     THREAD_LIBS="$PTHREAD_LIBS"
26025     LIBS="$LIBS $THREAD_LIBS"
26026 fi
26027
26028
26029 #
26030 # Check for umem.
26031 #
26032 have_umem='no'
26033 UMEM_LIBS=''
26034 if test "$with_umem" != 'no'; then
26035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26036 $as_echo_n "checking for UMEM support ... " >&6; }
26037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26038 $as_echo "" >&6; }
26039   failed=0
26040   passed=0
26041   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26042 if test "x$ac_cv_header_umem_h" = xyes; then :
26043   passed=`expr $passed + 1`
26044 else
26045   failed=`expr $failed + 1`
26046 fi
26047
26048
26049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26050 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26051 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26052   $as_echo_n "(cached) " >&6
26053 else
26054   ac_check_lib_save_LIBS=$LIBS
26055 LIBS="-lumem  $LIBS"
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h.  */
26058
26059 /* Override any GCC internal prototype to avoid an error.
26060    Use char because int might match the return type of a GCC
26061    builtin and then its argument prototype would still apply.  */
26062 #ifdef __cplusplus
26063 extern "C"
26064 #endif
26065 char umem_alloc ();
26066 int
26067 main ()
26068 {
26069 return umem_alloc ();
26070   ;
26071   return 0;
26072 }
26073 _ACEOF
26074 if ac_fn_c_try_link "$LINENO"; then :
26075   ac_cv_lib_umem_umem_alloc=yes
26076 else
26077   ac_cv_lib_umem_umem_alloc=no
26078 fi
26079 rm -f core conftest.err conftest.$ac_objext \
26080     conftest$ac_exeext conftest.$ac_ext
26081 LIBS=$ac_check_lib_save_LIBS
26082 fi
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26084 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26085 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26086   passed=`expr $passed + 1`
26087 else
26088   failed=`expr $failed + 1`
26089 fi
26090
26091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26092 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26093 if ${ac_cv_lib_umem_umem_free+:} false; then :
26094   $as_echo_n "(cached) " >&6
26095 else
26096   ac_check_lib_save_LIBS=$LIBS
26097 LIBS="-lumem  $LIBS"
26098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h.  */
26100
26101 /* Override any GCC internal prototype to avoid an error.
26102    Use char because int might match the return type of a GCC
26103    builtin and then its argument prototype would still apply.  */
26104 #ifdef __cplusplus
26105 extern "C"
26106 #endif
26107 char umem_free ();
26108 int
26109 main ()
26110 {
26111 return umem_free ();
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 if ac_fn_c_try_link "$LINENO"; then :
26117   ac_cv_lib_umem_umem_free=yes
26118 else
26119   ac_cv_lib_umem_umem_free=no
26120 fi
26121 rm -f core conftest.err conftest.$ac_objext \
26122     conftest$ac_exeext conftest.$ac_ext
26123 LIBS=$ac_check_lib_save_LIBS
26124 fi
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26126 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26127 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26128   passed=`expr $passed + 1`
26129 else
26130   failed=`expr $failed + 1`
26131 fi
26132
26133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26134 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26135   if test $passed -gt 0; then
26136     if test $failed -gt 0; then
26137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26138 $as_echo "no -- some components failed test" >&6; }
26139       have_umem='no (failed tests)'
26140     else
26141       UMEM_LIBS='-lumem'
26142       LIBS="$UMEM_LIBS $LIBS"
26143
26144 $as_echo "#define HasUMEM 1" >>confdefs.h
26145
26146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26147 $as_echo "yes" >&6; }
26148       have_umem='yes'
26149     fi
26150   else
26151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26152 $as_echo "no" >&6; }
26153   fi
26154 fi
26155  if test "$have_umem" = 'yes'; then
26156   HasUMEM_TRUE=
26157   HasUMEM_FALSE='#'
26158 else
26159   HasUMEM_TRUE='#'
26160   HasUMEM_FALSE=
26161 fi
26162
26163
26164
26165 #
26166 # Add support for ccmalloc memory debugging library if requested
26167 #
26168 have_ccmalloc='no'
26169 CCMALLOC_LIBS=''
26170 if test "$enable_ccmalloc" = 'yes'; then
26171     # Extract the first word of "ccmalloc", so it can be a program name with args.
26172 set dummy ccmalloc; ac_word=$2
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26174 $as_echo_n "checking for $ac_word... " >&6; }
26175 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26176   $as_echo_n "(cached) " >&6
26177 else
26178   case $CCMALLOCDelegate in
26179   [\\/]* | ?:[\\/]*)
26180   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26181   ;;
26182   *)
26183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184 for as_dir in $PATH
26185 do
26186   IFS=$as_save_IFS
26187   test -z "$as_dir" && as_dir=.
26188     for ac_exec_ext in '' $ac_executable_extensions; do
26189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26190     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26192     break 2
26193   fi
26194 done
26195   done
26196 IFS=$as_save_IFS
26197
26198   ;;
26199 esac
26200 fi
26201 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26202 if test -n "$CCMALLOCDelegate"; then
26203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26204 $as_echo "$CCMALLOCDelegate" >&6; }
26205 else
26206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26207 $as_echo "no" >&6; }
26208 fi
26209
26210
26211     if test -n "$CCMALLOCDelegate"; then
26212         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26213         OLIBS="$LIBS"
26214         # Assume that gcc is used with ccmalloc.
26215         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26216        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26217 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26218 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26219   $as_echo_n "(cached) " >&6
26220 else
26221   ac_check_lib_save_LIBS=$LIBS
26222 LIBS="-lccmalloc -ldl $LIBS"
26223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26224 /* end confdefs.h.  */
26225
26226 /* Override any GCC internal prototype to avoid an error.
26227    Use char because int might match the return type of a GCC
26228    builtin and then its argument prototype would still apply.  */
26229 #ifdef __cplusplus
26230 extern "C"
26231 #endif
26232 char ccmalloc_malloc ();
26233 int
26234 main ()
26235 {
26236 return ccmalloc_malloc ();
26237   ;
26238   return 0;
26239 }
26240 _ACEOF
26241 if ac_fn_c_try_link "$LINENO"; then :
26242   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26243 else
26244   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26245 fi
26246 rm -f core conftest.err conftest.$ac_objext \
26247     conftest$ac_exeext conftest.$ac_ext
26248 LIBS=$ac_check_lib_save_LIBS
26249 fi
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26251 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26252 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26253   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26254 fi
26255
26256         if test -n "$CCMALLOC_LIBS"; then
26257             LIBS="$OLIBS"
26258             LIBS="$LIBS $CCMALLOC_LIBS"
26259             have_ccmalloc='yes'
26260         else
26261             LIBS="$OLIBS"
26262         fi
26263     fi
26264 fi
26265
26266 #
26267 # Add support for efence memory debugging library if requested
26268 #
26269 if test "$enable_efence" = 'yes'; then
26270     EFENCE_LIBS='-lefence'
26271     LIBS="$EFENCE_LIBS $LIBS"
26272 fi
26273
26274
26275 #
26276 # Check for BZLIB
26277 #
26278
26279
26280 # Check whether --with-bzlib was given.
26281 if test "${with_bzlib+set}" = set; then :
26282   withval=$with_bzlib; with_bzlib=$withval
26283 else
26284   with_bzlib='yes'
26285 fi
26286
26287
26288 if test "$with_bzlib" != 'yes'; then
26289     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26290 fi
26291
26292 have_bzlib='no'
26293 if test "$with_bzlib" != 'no'; then
26294     BZLIB_LIBS=''
26295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26296 $as_echo "-------------------------------------------------------------" >&6; }
26297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26298 $as_echo_n "checking for BZLIB... " >&6; }
26299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26300 $as_echo "" >&6; }
26301     failed=0
26302     passed=0
26303     found_libbz=0
26304     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26305 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26306   passed=`expr $passed + 1`
26307 else
26308   failed=`expr $failed + 1`
26309 fi
26310
26311
26312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26313 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26314 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26315   $as_echo_n "(cached) " >&6
26316 else
26317   ac_check_lib_save_LIBS=$LIBS
26318 LIBS="-lbz2  $LIBS"
26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320 /* end confdefs.h.  */
26321
26322 /* Override any GCC internal prototype to avoid an error.
26323    Use char because int might match the return type of a GCC
26324    builtin and then its argument prototype would still apply.  */
26325 #ifdef __cplusplus
26326 extern "C"
26327 #endif
26328 char BZ2_bzDecompress ();
26329 int
26330 main ()
26331 {
26332 return BZ2_bzDecompress ();
26333   ;
26334   return 0;
26335 }
26336 _ACEOF
26337 if ac_fn_c_try_link "$LINENO"; then :
26338   ac_cv_lib_bz2_BZ2_bzDecompress=yes
26339 else
26340   ac_cv_lib_bz2_BZ2_bzDecompress=no
26341 fi
26342 rm -f core conftest.err conftest.$ac_objext \
26343     conftest$ac_exeext conftest.$ac_ext
26344 LIBS=$ac_check_lib_save_LIBS
26345 fi
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26347 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26348 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26349   found_libbz=`expr $found_libbz + 1`
26350 fi
26351
26352     if test "$native_win32_build" = 'yes'; then
26353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26354 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26355 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26356   $as_echo_n "(cached) " >&6
26357 else
26358   ac_check_lib_save_LIBS=$LIBS
26359 LIBS="-lbz2  $LIBS"
26360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26361 /* end confdefs.h.  */
26362
26363 /* Override any GCC internal prototype to avoid an error.
26364    Use char because int might match the return type of a GCC
26365    builtin and then its argument prototype would still apply.  */
26366 #ifdef __cplusplus
26367 extern "C"
26368 #endif
26369 char _imp__BZ2_decompress ();
26370 int
26371 main ()
26372 {
26373 return _imp__BZ2_decompress ();
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 if ac_fn_c_try_link "$LINENO"; then :
26379   ac_cv_lib_bz2__imp__BZ2_decompress=yes
26380 else
26381   ac_cv_lib_bz2__imp__BZ2_decompress=no
26382 fi
26383 rm -f core conftest.err conftest.$ac_objext \
26384     conftest$ac_exeext conftest.$ac_ext
26385 LIBS=$ac_check_lib_save_LIBS
26386 fi
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26388 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26389 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26390   found_libbz=`expr $found_libbz + 1`
26391 fi
26392
26393     fi
26394     if test $found_libbz -gt 0; then
26395       passed=`expr $passed + 1`
26396     else
26397       failed=`expr $failed + 1`
26398     fi
26399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26400 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26401     if test $passed -gt 0; then
26402       if test $failed -gt 0; then
26403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26404 $as_echo "no -- some components failed test" >&6; }
26405         have_bzlib='no (failed tests)'
26406       else
26407         BZLIB_LIBS='-lbz2'
26408         LIBS="$BZLIB_LIBS $LIBS"
26409
26410 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26411
26412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26413 $as_echo "yes" >&6; }
26414         have_bzlib='yes'
26415       fi
26416     else
26417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26418 $as_echo "no" >&6; }
26419     fi
26420 fi
26421  if test "$have_bzlib" = 'yes'; then
26422   BZLIB_DELEGATE_TRUE=
26423   BZLIB_DELEGATE_FALSE='#'
26424 else
26425   BZLIB_DELEGATE_TRUE='#'
26426   BZLIB_DELEGATE_FALSE=
26427 fi
26428
26429
26430
26431 #
26432 # Find the X11 include and library directories.
26433 #
26434 IPC_LIBS=''
26435 X11_LIBS=''
26436 XEXT_LIBS=''
26437 XT_LIBS=''
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26439 $as_echo_n "checking for X... " >&6; }
26440
26441
26442 # Check whether --with-x was given.
26443 if test "${with_x+set}" = set; then :
26444   withval=$with_x;
26445 fi
26446
26447 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26448 if test "x$with_x" = xno; then
26449   # The user explicitly disabled X.
26450   have_x=disabled
26451 else
26452   case $x_includes,$x_libraries in #(
26453     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26454     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26455   $as_echo_n "(cached) " >&6
26456 else
26457   # One or both of the vars are not set, and there is no cached value.
26458 ac_x_includes=no ac_x_libraries=no
26459 rm -f -r conftest.dir
26460 if mkdir conftest.dir; then
26461   cd conftest.dir
26462   cat >Imakefile <<'_ACEOF'
26463 incroot:
26464         @echo incroot='${INCROOT}'
26465 usrlibdir:
26466         @echo usrlibdir='${USRLIBDIR}'
26467 libdir:
26468         @echo libdir='${LIBDIR}'
26469 _ACEOF
26470   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26471     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26472     for ac_var in incroot usrlibdir libdir; do
26473       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26474     done
26475     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26476     for ac_extension in a so sl dylib la dll; do
26477       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26478          test -f "$ac_im_libdir/libX11.$ac_extension"; then
26479         ac_im_usrlibdir=$ac_im_libdir; break
26480       fi
26481     done
26482     # Screen out bogus values from the imake configuration.  They are
26483     # bogus both because they are the default anyway, and because
26484     # using them would break gcc on systems where it needs fixed includes.
26485     case $ac_im_incroot in
26486         /usr/include) ac_x_includes= ;;
26487         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26488     esac
26489     case $ac_im_usrlibdir in
26490         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26491         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26492     esac
26493   fi
26494   cd ..
26495   rm -f -r conftest.dir
26496 fi
26497
26498 # Standard set of common directories for X headers.
26499 # Check X11 before X11Rn because it is often a symlink to the current release.
26500 ac_x_header_dirs='
26501 /usr/X11/include
26502 /usr/X11R7/include
26503 /usr/X11R6/include
26504 /usr/X11R5/include
26505 /usr/X11R4/include
26506
26507 /usr/include/X11
26508 /usr/include/X11R7
26509 /usr/include/X11R6
26510 /usr/include/X11R5
26511 /usr/include/X11R4
26512
26513 /usr/local/X11/include
26514 /usr/local/X11R7/include
26515 /usr/local/X11R6/include
26516 /usr/local/X11R5/include
26517 /usr/local/X11R4/include
26518
26519 /usr/local/include/X11
26520 /usr/local/include/X11R7
26521 /usr/local/include/X11R6
26522 /usr/local/include/X11R5
26523 /usr/local/include/X11R4
26524
26525 /usr/X386/include
26526 /usr/x386/include
26527 /usr/XFree86/include/X11
26528
26529 /usr/include
26530 /usr/local/include
26531 /usr/unsupported/include
26532 /usr/athena/include
26533 /usr/local/x11r5/include
26534 /usr/lpp/Xamples/include
26535
26536 /usr/openwin/include
26537 /usr/openwin/share/include'
26538
26539 if test "$ac_x_includes" = no; then
26540   # Guess where to find include files, by looking for Xlib.h.
26541   # First, try using that file with no special directory specified.
26542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h.  */
26544 #include <X11/Xlib.h>
26545 _ACEOF
26546 if ac_fn_c_try_cpp "$LINENO"; then :
26547   # We can compile using X headers with no special include directory.
26548 ac_x_includes=
26549 else
26550   for ac_dir in $ac_x_header_dirs; do
26551   if test -r "$ac_dir/X11/Xlib.h"; then
26552     ac_x_includes=$ac_dir
26553     break
26554   fi
26555 done
26556 fi
26557 rm -f conftest.err conftest.i conftest.$ac_ext
26558 fi # $ac_x_includes = no
26559
26560 if test "$ac_x_libraries" = no; then
26561   # Check for the libraries.
26562   # See if we find them without any special options.
26563   # Don't add to $LIBS permanently.
26564   ac_save_LIBS=$LIBS
26565   LIBS="-lX11 $LIBS"
26566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h.  */
26568 #include <X11/Xlib.h>
26569 int
26570 main ()
26571 {
26572 XrmInitialize ()
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 if ac_fn_c_try_link "$LINENO"; then :
26578   LIBS=$ac_save_LIBS
26579 # We can link X programs with no special library path.
26580 ac_x_libraries=
26581 else
26582   LIBS=$ac_save_LIBS
26583 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26584 do
26585   # Don't even attempt the hair of trying to link an X program!
26586   for ac_extension in a so sl dylib la dll; do
26587     if test -r "$ac_dir/libX11.$ac_extension"; then
26588       ac_x_libraries=$ac_dir
26589       break 2
26590     fi
26591   done
26592 done
26593 fi
26594 rm -f core conftest.err conftest.$ac_objext \
26595     conftest$ac_exeext conftest.$ac_ext
26596 fi # $ac_x_libraries = no
26597
26598 case $ac_x_includes,$ac_x_libraries in #(
26599   no,* | *,no | *\'*)
26600     # Didn't find X, or a directory has "'" in its name.
26601     ac_cv_have_x="have_x=no";; #(
26602   *)
26603     # Record where we found X for the cache.
26604     ac_cv_have_x="have_x=yes\
26605         ac_x_includes='$ac_x_includes'\
26606         ac_x_libraries='$ac_x_libraries'"
26607 esac
26608 fi
26609 ;; #(
26610     *) have_x=yes;;
26611   esac
26612   eval "$ac_cv_have_x"
26613 fi # $with_x != no
26614
26615 if test "$have_x" != yes; then
26616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26617 $as_echo "$have_x" >&6; }
26618   no_x=yes
26619 else
26620   # If each of the values was on the command line, it overrides each guess.
26621   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26622   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26623   # Update the cache value to reflect the command line values.
26624   ac_cv_have_x="have_x=yes\
26625         ac_x_includes='$x_includes'\
26626         ac_x_libraries='$x_libraries'"
26627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26628 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26629 fi
26630
26631 if test "$no_x" = yes; then
26632   # Not all programs may use this symbol, but it does not hurt to define it.
26633
26634 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26635
26636   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26637 else
26638   if test -n "$x_includes"; then
26639     X_CFLAGS="$X_CFLAGS -I$x_includes"
26640   fi
26641
26642   # It would also be nice to do this for all -L options, not just this one.
26643   if test -n "$x_libraries"; then
26644     X_LIBS="$X_LIBS -L$x_libraries"
26645     # For Solaris; some versions of Sun CC require a space after -R and
26646     # others require no space.  Words are not sufficient . . . .
26647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26648 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26649     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26650     ac_xsave_c_werror_flag=$ac_c_werror_flag
26651     ac_c_werror_flag=yes
26652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26653 /* end confdefs.h.  */
26654
26655 int
26656 main ()
26657 {
26658
26659   ;
26660   return 0;
26661 }
26662 _ACEOF
26663 if ac_fn_c_try_link "$LINENO"; then :
26664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26665 $as_echo "no" >&6; }
26666        X_LIBS="$X_LIBS -R$x_libraries"
26667 else
26668   LIBS="$ac_xsave_LIBS -R $x_libraries"
26669        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26670 /* end confdefs.h.  */
26671
26672 int
26673 main ()
26674 {
26675
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 if ac_fn_c_try_link "$LINENO"; then :
26681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26682 $as_echo "yes" >&6; }
26683           X_LIBS="$X_LIBS -R $x_libraries"
26684 else
26685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26686 $as_echo "neither works" >&6; }
26687 fi
26688 rm -f core conftest.err conftest.$ac_objext \
26689     conftest$ac_exeext conftest.$ac_ext
26690 fi
26691 rm -f core conftest.err conftest.$ac_objext \
26692     conftest$ac_exeext conftest.$ac_ext
26693     ac_c_werror_flag=$ac_xsave_c_werror_flag
26694     LIBS=$ac_xsave_LIBS
26695   fi
26696
26697   # Check for system-dependent libraries X programs must link with.
26698   # Do this before checking for the system-independent R6 libraries
26699   # (-lICE), since we may need -lsocket or whatever for X linking.
26700
26701   if test "$ISC" = yes; then
26702     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26703   else
26704     # Martyn Johnson says this is needed for Ultrix, if the X
26705     # libraries were built with DECnet support.  And Karl Berry says
26706     # the Alpha needs dnet_stub (dnet does not exist).
26707     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h.  */
26710
26711 /* Override any GCC internal prototype to avoid an error.
26712    Use char because int might match the return type of a GCC
26713    builtin and then its argument prototype would still apply.  */
26714 #ifdef __cplusplus
26715 extern "C"
26716 #endif
26717 char XOpenDisplay ();
26718 int
26719 main ()
26720 {
26721 return XOpenDisplay ();
26722   ;
26723   return 0;
26724 }
26725 _ACEOF
26726 if ac_fn_c_try_link "$LINENO"; then :
26727
26728 else
26729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26730 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26731 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26732   $as_echo_n "(cached) " >&6
26733 else
26734   ac_check_lib_save_LIBS=$LIBS
26735 LIBS="-ldnet  $LIBS"
26736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h.  */
26738
26739 /* Override any GCC internal prototype to avoid an error.
26740    Use char because int might match the return type of a GCC
26741    builtin and then its argument prototype would still apply.  */
26742 #ifdef __cplusplus
26743 extern "C"
26744 #endif
26745 char dnet_ntoa ();
26746 int
26747 main ()
26748 {
26749 return dnet_ntoa ();
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 if ac_fn_c_try_link "$LINENO"; then :
26755   ac_cv_lib_dnet_dnet_ntoa=yes
26756 else
26757   ac_cv_lib_dnet_dnet_ntoa=no
26758 fi
26759 rm -f core conftest.err conftest.$ac_objext \
26760     conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26762 fi
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26764 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26765 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26766   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26767 fi
26768
26769     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26770       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26771 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26772 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26773   $as_echo_n "(cached) " >&6
26774 else
26775   ac_check_lib_save_LIBS=$LIBS
26776 LIBS="-ldnet_stub  $LIBS"
26777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h.  */
26779
26780 /* Override any GCC internal prototype to avoid an error.
26781    Use char because int might match the return type of a GCC
26782    builtin and then its argument prototype would still apply.  */
26783 #ifdef __cplusplus
26784 extern "C"
26785 #endif
26786 char dnet_ntoa ();
26787 int
26788 main ()
26789 {
26790 return dnet_ntoa ();
26791   ;
26792   return 0;
26793 }
26794 _ACEOF
26795 if ac_fn_c_try_link "$LINENO"; then :
26796   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26797 else
26798   ac_cv_lib_dnet_stub_dnet_ntoa=no
26799 fi
26800 rm -f core conftest.err conftest.$ac_objext \
26801     conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26803 fi
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26805 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26806 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26807   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26808 fi
26809
26810     fi
26811 fi
26812 rm -f core conftest.err conftest.$ac_objext \
26813     conftest$ac_exeext conftest.$ac_ext
26814     LIBS="$ac_xsave_LIBS"
26815
26816     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26817     # to get the SysV transport functions.
26818     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26819     # needs -lnsl.
26820     # The nsl library prevents programs from opening the X display
26821     # on Irix 5.2, according to T.E. Dickey.
26822     # The functions gethostbyname, getservbyname, and inet_addr are
26823     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26824     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26825 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26826
26827 fi
26828
26829     if test $ac_cv_func_gethostbyname = no; then
26830       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26831 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26832 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26833   $as_echo_n "(cached) " >&6
26834 else
26835   ac_check_lib_save_LIBS=$LIBS
26836 LIBS="-lnsl  $LIBS"
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h.  */
26839
26840 /* Override any GCC internal prototype to avoid an error.
26841    Use char because int might match the return type of a GCC
26842    builtin and then its argument prototype would still apply.  */
26843 #ifdef __cplusplus
26844 extern "C"
26845 #endif
26846 char gethostbyname ();
26847 int
26848 main ()
26849 {
26850 return gethostbyname ();
26851   ;
26852   return 0;
26853 }
26854 _ACEOF
26855 if ac_fn_c_try_link "$LINENO"; then :
26856   ac_cv_lib_nsl_gethostbyname=yes
26857 else
26858   ac_cv_lib_nsl_gethostbyname=no
26859 fi
26860 rm -f core conftest.err conftest.$ac_objext \
26861     conftest$ac_exeext conftest.$ac_ext
26862 LIBS=$ac_check_lib_save_LIBS
26863 fi
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26865 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26866 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26868 fi
26869
26870       if test $ac_cv_lib_nsl_gethostbyname = no; then
26871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26872 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26873 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26874   $as_echo_n "(cached) " >&6
26875 else
26876   ac_check_lib_save_LIBS=$LIBS
26877 LIBS="-lbsd  $LIBS"
26878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h.  */
26880
26881 /* Override any GCC internal prototype to avoid an error.
26882    Use char because int might match the return type of a GCC
26883    builtin and then its argument prototype would still apply.  */
26884 #ifdef __cplusplus
26885 extern "C"
26886 #endif
26887 char gethostbyname ();
26888 int
26889 main ()
26890 {
26891 return gethostbyname ();
26892   ;
26893   return 0;
26894 }
26895 _ACEOF
26896 if ac_fn_c_try_link "$LINENO"; then :
26897   ac_cv_lib_bsd_gethostbyname=yes
26898 else
26899   ac_cv_lib_bsd_gethostbyname=no
26900 fi
26901 rm -f core conftest.err conftest.$ac_objext \
26902     conftest$ac_exeext conftest.$ac_ext
26903 LIBS=$ac_check_lib_save_LIBS
26904 fi
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26906 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26907 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26908   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26909 fi
26910
26911       fi
26912     fi
26913
26914     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26915     # socket/setsockopt and other routines are undefined under SCO ODT
26916     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26917     # on later versions), says Simon Leinen: it contains gethostby*
26918     # variants that don't use the name server (or something).  -lsocket
26919     # must be given before -lnsl if both are needed.  We assume that
26920     # if connect needs -lnsl, so does gethostbyname.
26921     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26922 if test "x$ac_cv_func_connect" = xyes; then :
26923
26924 fi
26925
26926     if test $ac_cv_func_connect = no; then
26927       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26928 $as_echo_n "checking for connect in -lsocket... " >&6; }
26929 if ${ac_cv_lib_socket_connect+:} false; then :
26930   $as_echo_n "(cached) " >&6
26931 else
26932   ac_check_lib_save_LIBS=$LIBS
26933 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26935 /* end confdefs.h.  */
26936
26937 /* Override any GCC internal prototype to avoid an error.
26938    Use char because int might match the return type of a GCC
26939    builtin and then its argument prototype would still apply.  */
26940 #ifdef __cplusplus
26941 extern "C"
26942 #endif
26943 char connect ();
26944 int
26945 main ()
26946 {
26947 return connect ();
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 if ac_fn_c_try_link "$LINENO"; then :
26953   ac_cv_lib_socket_connect=yes
26954 else
26955   ac_cv_lib_socket_connect=no
26956 fi
26957 rm -f core conftest.err conftest.$ac_objext \
26958     conftest$ac_exeext conftest.$ac_ext
26959 LIBS=$ac_check_lib_save_LIBS
26960 fi
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26962 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26963 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26964   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26965 fi
26966
26967     fi
26968
26969     # Guillermo Gomez says -lposix is necessary on A/UX.
26970     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26971 if test "x$ac_cv_func_remove" = xyes; then :
26972
26973 fi
26974
26975     if test $ac_cv_func_remove = no; then
26976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26977 $as_echo_n "checking for remove in -lposix... " >&6; }
26978 if ${ac_cv_lib_posix_remove+:} false; then :
26979   $as_echo_n "(cached) " >&6
26980 else
26981   ac_check_lib_save_LIBS=$LIBS
26982 LIBS="-lposix  $LIBS"
26983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26984 /* end confdefs.h.  */
26985
26986 /* Override any GCC internal prototype to avoid an error.
26987    Use char because int might match the return type of a GCC
26988    builtin and then its argument prototype would still apply.  */
26989 #ifdef __cplusplus
26990 extern "C"
26991 #endif
26992 char remove ();
26993 int
26994 main ()
26995 {
26996 return remove ();
26997   ;
26998   return 0;
26999 }
27000 _ACEOF
27001 if ac_fn_c_try_link "$LINENO"; then :
27002   ac_cv_lib_posix_remove=yes
27003 else
27004   ac_cv_lib_posix_remove=no
27005 fi
27006 rm -f core conftest.err conftest.$ac_objext \
27007     conftest$ac_exeext conftest.$ac_ext
27008 LIBS=$ac_check_lib_save_LIBS
27009 fi
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27011 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27012 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27013   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27014 fi
27015
27016     fi
27017
27018     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27019     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27020 if test "x$ac_cv_func_shmat" = xyes; then :
27021
27022 fi
27023
27024     if test $ac_cv_func_shmat = no; then
27025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27026 $as_echo_n "checking for shmat in -lipc... " >&6; }
27027 if ${ac_cv_lib_ipc_shmat+:} false; then :
27028   $as_echo_n "(cached) " >&6
27029 else
27030   ac_check_lib_save_LIBS=$LIBS
27031 LIBS="-lipc  $LIBS"
27032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h.  */
27034
27035 /* Override any GCC internal prototype to avoid an error.
27036    Use char because int might match the return type of a GCC
27037    builtin and then its argument prototype would still apply.  */
27038 #ifdef __cplusplus
27039 extern "C"
27040 #endif
27041 char shmat ();
27042 int
27043 main ()
27044 {
27045 return shmat ();
27046   ;
27047   return 0;
27048 }
27049 _ACEOF
27050 if ac_fn_c_try_link "$LINENO"; then :
27051   ac_cv_lib_ipc_shmat=yes
27052 else
27053   ac_cv_lib_ipc_shmat=no
27054 fi
27055 rm -f core conftest.err conftest.$ac_objext \
27056     conftest$ac_exeext conftest.$ac_ext
27057 LIBS=$ac_check_lib_save_LIBS
27058 fi
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27060 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27061 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27062   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27063 fi
27064
27065     fi
27066   fi
27067
27068   # Check for libraries that X11R6 Xt/Xaw programs need.
27069   ac_save_LDFLAGS=$LDFLAGS
27070   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27071   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27072   # check for ICE first), but we must link in the order -lSM -lICE or
27073   # we get undefined symbols.  So assume we have SM if we have ICE.
27074   # These have to be linked with before -lX11, unlike the other
27075   # libraries we check for below, so use a different variable.
27076   # John Interrante, Karl Berry
27077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27078 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27079 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27080   $as_echo_n "(cached) " >&6
27081 else
27082   ac_check_lib_save_LIBS=$LIBS
27083 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h.  */
27086
27087 /* Override any GCC internal prototype to avoid an error.
27088    Use char because int might match the return type of a GCC
27089    builtin and then its argument prototype would still apply.  */
27090 #ifdef __cplusplus
27091 extern "C"
27092 #endif
27093 char IceConnectionNumber ();
27094 int
27095 main ()
27096 {
27097 return IceConnectionNumber ();
27098   ;
27099   return 0;
27100 }
27101 _ACEOF
27102 if ac_fn_c_try_link "$LINENO"; then :
27103   ac_cv_lib_ICE_IceConnectionNumber=yes
27104 else
27105   ac_cv_lib_ICE_IceConnectionNumber=no
27106 fi
27107 rm -f core conftest.err conftest.$ac_objext \
27108     conftest$ac_exeext conftest.$ac_ext
27109 LIBS=$ac_check_lib_save_LIBS
27110 fi
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27112 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27113 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27114   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27115 fi
27116
27117   LDFLAGS=$ac_save_LDFLAGS
27118
27119 fi
27120
27121 if test "$no_x" != 'yes'; then
27122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27123 $as_echo "-------------------------------------------------------------" >&6; }
27124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27125 $as_echo_n "checking for X11... " >&6; }
27126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27127 $as_echo "" >&6; }
27128     LDFLAGS="$LDFLAGS $X_LIBS"
27129     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27130     LIBS="$X11_LIBS $LIBS"
27131     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27132
27133
27134 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27135
27136     #
27137     # Check for X11 shared memory extension
27138     #
27139     # shmctl is required to support the shared memory extension
27140     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27141 if test "x$ac_cv_func_shmctl" = xyes; then :
27142   have_shmctl='yes'
27143 fi
27144
27145     if test "$have_shmctl" != 'yes'; then
27146         PERSIST_LIBS=$LIBS
27147         LIBS="$LIBS -lcygipc"
27148         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27149 /* end confdefs.h.  */
27150
27151 /* Override any GCC internal prototype to avoid an error.
27152    Use char because int might match the return type of a GCC
27153    builtin and then its argument prototype would still apply.  */
27154 #ifdef __cplusplus
27155 extern "C"
27156 #endif
27157 char shmctl ();
27158 int
27159 main ()
27160 {
27161 return shmctl ();
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 if ac_fn_c_try_link "$LINENO"; then :
27167   have_shmctl='yes'; IPC_LIBS='-lcygipc'
27168 fi
27169 rm -f core conftest.err conftest.$ac_objext \
27170     conftest$ac_exeext conftest.$ac_ext
27171         LIBS=$PERSIST_LIBS
27172     fi
27173
27174     if test "$have_shmctl" = 'yes'; then
27175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27176 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27177 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27178   $as_echo_n "(cached) " >&6
27179 else
27180   ac_check_lib_save_LIBS=$LIBS
27181 LIBS="-lXext  $LIBS"
27182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27183 /* end confdefs.h.  */
27184
27185 /* Override any GCC internal prototype to avoid an error.
27186    Use char because int might match the return type of a GCC
27187    builtin and then its argument prototype would still apply.  */
27188 #ifdef __cplusplus
27189 extern "C"
27190 #endif
27191 char XShmAttach ();
27192 int
27193 main ()
27194 {
27195 return XShmAttach ();
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 if ac_fn_c_try_link "$LINENO"; then :
27201   ac_cv_lib_Xext_XShmAttach=yes
27202 else
27203   ac_cv_lib_Xext_XShmAttach=no
27204 fi
27205 rm -f core conftest.err conftest.$ac_objext \
27206     conftest$ac_exeext conftest.$ac_ext
27207 LIBS=$ac_check_lib_save_LIBS
27208 fi
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27210 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27211 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27212   XEXT_LIBS='-lXext' ;
27213 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27214
27215 fi
27216
27217     fi
27218
27219     #
27220     # Check for X11 shape extension
27221     #
27222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27223 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27224 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27225   $as_echo_n "(cached) " >&6
27226 else
27227   ac_check_lib_save_LIBS=$LIBS
27228 LIBS="-lXext  $LIBS"
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h.  */
27231
27232 /* Override any GCC internal prototype to avoid an error.
27233    Use char because int might match the return type of a GCC
27234    builtin and then its argument prototype would still apply.  */
27235 #ifdef __cplusplus
27236 extern "C"
27237 #endif
27238 char XShapeCombineMask ();
27239 int
27240 main ()
27241 {
27242 return XShapeCombineMask ();
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 if ac_fn_c_try_link "$LINENO"; then :
27248   ac_cv_lib_Xext_XShapeCombineMask=yes
27249 else
27250   ac_cv_lib_Xext_XShapeCombineMask=no
27251 fi
27252 rm -f core conftest.err conftest.$ac_objext \
27253     conftest$ac_exeext conftest.$ac_ext
27254 LIBS=$ac_check_lib_save_LIBS
27255 fi
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27257 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27258 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27259   XEXT_LIBS='-lXext' ;
27260 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27261
27262 fi
27263
27264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27265 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27266 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27267   $as_echo_n "(cached) " >&6
27268 else
27269   ac_check_lib_save_LIBS=$LIBS
27270 LIBS="-lXt  $LIBS"
27271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272 /* end confdefs.h.  */
27273
27274 /* Override any GCC internal prototype to avoid an error.
27275    Use char because int might match the return type of a GCC
27276    builtin and then its argument prototype would still apply.  */
27277 #ifdef __cplusplus
27278 extern "C"
27279 #endif
27280 char XtSetEventDispatcher ();
27281 int
27282 main ()
27283 {
27284 return XtSetEventDispatcher ();
27285   ;
27286   return 0;
27287 }
27288 _ACEOF
27289 if ac_fn_c_try_link "$LINENO"; then :
27290   ac_cv_lib_Xt_XtSetEventDispatcher=yes
27291 else
27292   ac_cv_lib_Xt_XtSetEventDispatcher=no
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext \
27295     conftest$ac_exeext conftest.$ac_ext
27296 LIBS=$ac_check_lib_save_LIBS
27297 fi
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27299 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27300 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27301   XT_LIBS='-lXt'
27302 fi
27303
27304     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27305 fi
27306 if test "$no_x" != 'yes'; then
27307   have_x='yes'
27308 else
27309   have_x='no'
27310 fi
27311  if test "$have_x" = 'yes'; then
27312   X11_DELEGATE_TRUE=
27313   X11_DELEGATE_FALSE='#'
27314 else
27315   X11_DELEGATE_TRUE='#'
27316   X11_DELEGATE_FALSE=
27317 fi
27318
27319
27320
27321
27322
27323 #
27324 # Check for ZLIB
27325 #
27326
27327 # Check whether --with-zlib was given.
27328 if test "${with_zlib+set}" = set; then :
27329   withval=$with_zlib; with_zlib=$withval
27330 else
27331   with_zlib='yes'
27332 fi
27333
27334
27335 if test "$with_zlib" != 'yes'; then
27336     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27337 fi
27338
27339 have_zlib='no'
27340 ZLIB_LIBS=''
27341 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27343 $as_echo "-------------------------------------------------------------" >&6; }
27344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27345 $as_echo_n "checking for ZLIB... " >&6; }
27346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27347 $as_echo "" >&6; }
27348     ZLIB_LIBS=''
27349     failed=0
27350     passed=0
27351     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27352 if test "x$ac_cv_header_zconf_h" = xyes; then :
27353   passed=`expr $passed + 1`
27354 else
27355   failed=`expr $failed + 1`
27356 fi
27357
27358
27359     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27360 if test "x$ac_cv_header_zlib_h" = xyes; then :
27361   passed=`expr $passed + 1`
27362 else
27363   failed=`expr $failed + 1`
27364 fi
27365
27366
27367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27368 $as_echo_n "checking for compress in -lz... " >&6; }
27369 if ${ac_cv_lib_z_compress+:} false; then :
27370   $as_echo_n "(cached) " >&6
27371 else
27372   ac_check_lib_save_LIBS=$LIBS
27373 LIBS="-lz  $LIBS"
27374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h.  */
27376
27377 /* Override any GCC internal prototype to avoid an error.
27378    Use char because int might match the return type of a GCC
27379    builtin and then its argument prototype would still apply.  */
27380 #ifdef __cplusplus
27381 extern "C"
27382 #endif
27383 char compress ();
27384 int
27385 main ()
27386 {
27387 return compress ();
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 if ac_fn_c_try_link "$LINENO"; then :
27393   ac_cv_lib_z_compress=yes
27394 else
27395   ac_cv_lib_z_compress=no
27396 fi
27397 rm -f core conftest.err conftest.$ac_objext \
27398     conftest$ac_exeext conftest.$ac_ext
27399 LIBS=$ac_check_lib_save_LIBS
27400 fi
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27402 $as_echo "$ac_cv_lib_z_compress" >&6; }
27403 if test "x$ac_cv_lib_z_compress" = xyes; then :
27404   passed=`expr $passed + 1`
27405 else
27406   failed=`expr $failed + 1`
27407 fi
27408
27409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27410 $as_echo_n "checking for uncompress in -lz... " >&6; }
27411 if ${ac_cv_lib_z_uncompress+:} false; then :
27412   $as_echo_n "(cached) " >&6
27413 else
27414   ac_check_lib_save_LIBS=$LIBS
27415 LIBS="-lz  $LIBS"
27416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h.  */
27418
27419 /* Override any GCC internal prototype to avoid an error.
27420    Use char because int might match the return type of a GCC
27421    builtin and then its argument prototype would still apply.  */
27422 #ifdef __cplusplus
27423 extern "C"
27424 #endif
27425 char uncompress ();
27426 int
27427 main ()
27428 {
27429 return uncompress ();
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 if ac_fn_c_try_link "$LINENO"; then :
27435   ac_cv_lib_z_uncompress=yes
27436 else
27437   ac_cv_lib_z_uncompress=no
27438 fi
27439 rm -f core conftest.err conftest.$ac_objext \
27440     conftest$ac_exeext conftest.$ac_ext
27441 LIBS=$ac_check_lib_save_LIBS
27442 fi
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27444 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27445 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27446   passed=`expr $passed + 1`
27447 else
27448   failed=`expr $failed + 1`
27449 fi
27450
27451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27452 $as_echo_n "checking for deflate in -lz... " >&6; }
27453 if ${ac_cv_lib_z_deflate+:} false; then :
27454   $as_echo_n "(cached) " >&6
27455 else
27456   ac_check_lib_save_LIBS=$LIBS
27457 LIBS="-lz  $LIBS"
27458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h.  */
27460
27461 /* Override any GCC internal prototype to avoid an error.
27462    Use char because int might match the return type of a GCC
27463    builtin and then its argument prototype would still apply.  */
27464 #ifdef __cplusplus
27465 extern "C"
27466 #endif
27467 char deflate ();
27468 int
27469 main ()
27470 {
27471 return deflate ();
27472   ;
27473   return 0;
27474 }
27475 _ACEOF
27476 if ac_fn_c_try_link "$LINENO"; then :
27477   ac_cv_lib_z_deflate=yes
27478 else
27479   ac_cv_lib_z_deflate=no
27480 fi
27481 rm -f core conftest.err conftest.$ac_objext \
27482     conftest$ac_exeext conftest.$ac_ext
27483 LIBS=$ac_check_lib_save_LIBS
27484 fi
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27486 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27487 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27488   passed=`expr $passed + 1`
27489 else
27490   failed=`expr $failed + 1`
27491 fi
27492
27493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27494 $as_echo_n "checking for inflate in -lz... " >&6; }
27495 if ${ac_cv_lib_z_inflate+:} false; then :
27496   $as_echo_n "(cached) " >&6
27497 else
27498   ac_check_lib_save_LIBS=$LIBS
27499 LIBS="-lz  $LIBS"
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h.  */
27502
27503 /* Override any GCC internal prototype to avoid an error.
27504    Use char because int might match the return type of a GCC
27505    builtin and then its argument prototype would still apply.  */
27506 #ifdef __cplusplus
27507 extern "C"
27508 #endif
27509 char inflate ();
27510 int
27511 main ()
27512 {
27513 return inflate ();
27514   ;
27515   return 0;
27516 }
27517 _ACEOF
27518 if ac_fn_c_try_link "$LINENO"; then :
27519   ac_cv_lib_z_inflate=yes
27520 else
27521   ac_cv_lib_z_inflate=no
27522 fi
27523 rm -f core conftest.err conftest.$ac_objext \
27524     conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27526 fi
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27528 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27529 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27530   passed=`expr $passed + 1`
27531 else
27532   failed=`expr $failed + 1`
27533 fi
27534
27535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27536 $as_echo_n "checking for gzseek in -lz... " >&6; }
27537 if ${ac_cv_lib_z_gzseek+:} false; then :
27538   $as_echo_n "(cached) " >&6
27539 else
27540   ac_check_lib_save_LIBS=$LIBS
27541 LIBS="-lz  $LIBS"
27542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27543 /* end confdefs.h.  */
27544
27545 /* Override any GCC internal prototype to avoid an error.
27546    Use char because int might match the return type of a GCC
27547    builtin and then its argument prototype would still apply.  */
27548 #ifdef __cplusplus
27549 extern "C"
27550 #endif
27551 char gzseek ();
27552 int
27553 main ()
27554 {
27555 return gzseek ();
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 if ac_fn_c_try_link "$LINENO"; then :
27561   ac_cv_lib_z_gzseek=yes
27562 else
27563   ac_cv_lib_z_gzseek=no
27564 fi
27565 rm -f core conftest.err conftest.$ac_objext \
27566     conftest$ac_exeext conftest.$ac_ext
27567 LIBS=$ac_check_lib_save_LIBS
27568 fi
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27570 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27571 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27572   passed=`expr $passed + 1`
27573 else
27574   failed=`expr $failed + 1`
27575 fi
27576
27577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27578 $as_echo_n "checking for gztell in -lz... " >&6; }
27579 if ${ac_cv_lib_z_gztell+:} false; then :
27580   $as_echo_n "(cached) " >&6
27581 else
27582   ac_check_lib_save_LIBS=$LIBS
27583 LIBS="-lz  $LIBS"
27584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h.  */
27586
27587 /* Override any GCC internal prototype to avoid an error.
27588    Use char because int might match the return type of a GCC
27589    builtin and then its argument prototype would still apply.  */
27590 #ifdef __cplusplus
27591 extern "C"
27592 #endif
27593 char gztell ();
27594 int
27595 main ()
27596 {
27597 return gztell ();
27598   ;
27599   return 0;
27600 }
27601 _ACEOF
27602 if ac_fn_c_try_link "$LINENO"; then :
27603   ac_cv_lib_z_gztell=yes
27604 else
27605   ac_cv_lib_z_gztell=no
27606 fi
27607 rm -f core conftest.err conftest.$ac_objext \
27608     conftest$ac_exeext conftest.$ac_ext
27609 LIBS=$ac_check_lib_save_LIBS
27610 fi
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27612 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27613 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27614   passed=`expr $passed + 1`
27615 else
27616   failed=`expr $failed + 1`
27617 fi
27618
27619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27620 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27621     if test $passed -gt 0; then
27622         if test $failed -gt 0; then
27623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27624 $as_echo "no -- some components failed test" >&6; }
27625             have_zlib='no (failed tests)'
27626         else
27627             ZLIB_LIBS='-lz'
27628             LIBS="$ZLIB_LIBS $LIBS"
27629
27630 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27631
27632             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27633 $as_echo "yes" >&6; }
27634             have_zlib='yes'
27635         fi
27636     else
27637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27638 $as_echo "no" >&6; }
27639     fi
27640 fi
27641  if test "$have_zlib" = 'yes'; then
27642   ZLIB_DELEGATE_TRUE=
27643   ZLIB_DELEGATE_FALSE='#'
27644 else
27645   ZLIB_DELEGATE_TRUE='#'
27646   ZLIB_DELEGATE_FALSE=
27647 fi
27648
27649
27650
27651 #
27652 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27653 #
27654 LIB_DL=''
27655 if test "$enable_profiling" = 'yes'; then
27656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27658 if ${ac_cv_lib_dl_dlopen+:} false; then :
27659   $as_echo_n "(cached) " >&6
27660 else
27661   ac_check_lib_save_LIBS=$LIBS
27662 LIBS="-ldl  $LIBS"
27663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27664 /* end confdefs.h.  */
27665
27666 /* Override any GCC internal prototype to avoid an error.
27667    Use char because int might match the return type of a GCC
27668    builtin and then its argument prototype would still apply.  */
27669 #ifdef __cplusplus
27670 extern "C"
27671 #endif
27672 char dlopen ();
27673 int
27674 main ()
27675 {
27676 return dlopen ();
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 if ac_fn_c_try_link "$LINENO"; then :
27682   ac_cv_lib_dl_dlopen=yes
27683 else
27684   ac_cv_lib_dl_dlopen=no
27685 fi
27686 rm -f core conftest.err conftest.$ac_objext \
27687     conftest$ac_exeext conftest.$ac_ext
27688 LIBS=$ac_check_lib_save_LIBS
27689 fi
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27693   LIB_DL='-ldl'
27694 fi
27695
27696     LIBS="$LIB_DL $LIBS"
27697 fi
27698
27699
27700
27701 #
27702 # Check for Autotrace delegate library.
27703 #
27704
27705 # Check whether --with-autotrace was given.
27706 if test "${with_autotrace+set}" = set; then :
27707   withval=$with_autotrace; with_autotrace=$withval
27708 else
27709   with_autotrace='no'
27710 fi
27711
27712
27713 if test "$with_autotrace" != 'yes'; then
27714     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27715 fi
27716
27717 have_autotrace='no'
27718 AUTOTRACE_CFLAGS=""
27719 AUTOTRACE_LIBS=""
27720 AUTOTRACE_PKG=""
27721 if test "x$with_autotrace" = "xyes"; then
27722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27723 $as_echo "-------------------------------------------------------------" >&6; }
27724
27725 pkg_failed=no
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27727 $as_echo_n "checking for AUTOTRACE... " >&6; }
27728
27729 if test -n "$AUTOTRACE_CFLAGS"; then
27730     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27731  elif test -n "$PKG_CONFIG"; then
27732     if test -n "$PKG_CONFIG" && \
27733     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27734   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27735   ac_status=$?
27736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737   test $ac_status = 0; }; then
27738   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27739 else
27740   pkg_failed=yes
27741 fi
27742  else
27743     pkg_failed=untried
27744 fi
27745 if test -n "$AUTOTRACE_LIBS"; then
27746     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27747  elif test -n "$PKG_CONFIG"; then
27748     if test -n "$PKG_CONFIG" && \
27749     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27750   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27751   ac_status=$?
27752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753   test $ac_status = 0; }; then
27754   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27755 else
27756   pkg_failed=yes
27757 fi
27758  else
27759     pkg_failed=untried
27760 fi
27761
27762
27763
27764 if test $pkg_failed = yes; then
27765
27766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27767         _pkg_short_errors_supported=yes
27768 else
27769         _pkg_short_errors_supported=no
27770 fi
27771         if test $_pkg_short_errors_supported = yes; then
27772                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27773         else
27774                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27775         fi
27776         # Put the nasty error message in config.log where it belongs
27777         echo "$AUTOTRACE_PKG_ERRORS" >&5
27778
27779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780 $as_echo "no" >&6; }
27781                 have_autotrace=no
27782 elif test $pkg_failed = untried; then
27783         have_autotrace=no
27784 else
27785         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27786         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27788 $as_echo "yes" >&6; }
27789         have_autotrace=yes
27790 fi
27791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27792 $as_echo "" >&6; }
27793 fi
27794
27795 if test "$have_autotrace" = 'yes'; then
27796     failed=0
27797
27798 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27799
27800     if test "$with_modules" = 'no'; then
27801     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27802     fi
27803 fi
27804
27805  if test "$have_autotrace" = 'yes'; then
27806   AUTOTRACE_DELEGATE_TRUE=
27807   AUTOTRACE_DELEGATE_FALSE='#'
27808 else
27809   AUTOTRACE_DELEGATE_TRUE='#'
27810   AUTOTRACE_DELEGATE_FALSE=
27811 fi
27812
27813
27814
27815
27816
27817 #
27818 # Check for Display Postscript delegate library.
27819 #
27820
27821 # Check whether --with-dps was given.
27822 if test "${with_dps+set}" = set; then :
27823   withval=$with_dps; with_dps=$withval
27824 else
27825   with_dps='yes'
27826 fi
27827
27828
27829 if test "$with_dps" != 'yes'; then
27830     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27831 fi
27832
27833 have_dps='no'
27834 DPS_LIBS=''
27835 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27837 $as_echo "-------------------------------------------------------------" >&6; }
27838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27839 $as_echo_n "checking for DPS... " >&6; }
27840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27841 $as_echo "" >&6; }
27842     failed=0
27843     passed=0
27844     PERSIST_CPPFLAGS="$CPPFLAGS"
27845     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27846     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27847 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27848   passed=`expr $passed + 1`
27849 else
27850   failed=`expr $failed + 1`
27851 fi
27852
27853
27854     # DPS issues:
27855     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27856     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27857     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27858     # ImageMagick itself doesn't use -lXt.
27859     have_libdps='no'
27860     LIBDPS_XT=''
27861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27862 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27863 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27864   $as_echo_n "(cached) " >&6
27865 else
27866   ac_check_lib_save_LIBS=$LIBS
27867 LIBS="-ldps  $LIBS"
27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869 /* end confdefs.h.  */
27870
27871 /* Override any GCC internal prototype to avoid an error.
27872    Use char because int might match the return type of a GCC
27873    builtin and then its argument prototype would still apply.  */
27874 #ifdef __cplusplus
27875 extern "C"
27876 #endif
27877 char DPSInitialize ();
27878 int
27879 main ()
27880 {
27881 return DPSInitialize ();
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 if ac_fn_c_try_link "$LINENO"; then :
27887   ac_cv_lib_dps_DPSInitialize=yes
27888 else
27889   ac_cv_lib_dps_DPSInitialize=no
27890 fi
27891 rm -f core conftest.err conftest.$ac_objext \
27892     conftest$ac_exeext conftest.$ac_ext
27893 LIBS=$ac_check_lib_save_LIBS
27894 fi
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27896 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27897 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27898   have_libdps='yes'
27899 else
27900   have_libdps='no'
27901 fi
27902
27903     if test "$have_libdps" != 'yes'; then
27904         # Unset cache variable so we can try again.
27905         unset ac_cv_lib_dps_DPSInitialize
27906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27907 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27908 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27909   $as_echo_n "(cached) " >&6
27910 else
27911   ac_check_lib_save_LIBS=$LIBS
27912 LIBS="-ldps -lXt $LIBS"
27913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27914 /* end confdefs.h.  */
27915
27916 /* Override any GCC internal prototype to avoid an error.
27917    Use char because int might match the return type of a GCC
27918    builtin and then its argument prototype would still apply.  */
27919 #ifdef __cplusplus
27920 extern "C"
27921 #endif
27922 char DPSInitialize ();
27923 int
27924 main ()
27925 {
27926 return DPSInitialize ();
27927   ;
27928   return 0;
27929 }
27930 _ACEOF
27931 if ac_fn_c_try_link "$LINENO"; then :
27932   ac_cv_lib_dps_DPSInitialize=yes
27933 else
27934   ac_cv_lib_dps_DPSInitialize=no
27935 fi
27936 rm -f core conftest.err conftest.$ac_objext \
27937     conftest$ac_exeext conftest.$ac_ext
27938 LIBS=$ac_check_lib_save_LIBS
27939 fi
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27941 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27942 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27943   have_libdps='yes'
27944 else
27945   have_libdps='no'
27946 fi
27947
27948         if test "$have_libdps" = 'yes'; then
27949             LIBDPS_XT='-lXt'
27950         fi
27951     fi
27952     if test "$have_libdps" = 'yes'; then
27953         passed=`expr $passed + 1`
27954     else
27955         failed=`expr $failed + 1`
27956     fi
27957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27958 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27959 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27960   $as_echo_n "(cached) " >&6
27961 else
27962   ac_check_lib_save_LIBS=$LIBS
27963 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h.  */
27966
27967 /* Override any GCC internal prototype to avoid an error.
27968    Use char because int might match the return type of a GCC
27969    builtin and then its argument prototype would still apply.  */
27970 #ifdef __cplusplus
27971 extern "C"
27972 #endif
27973 char XDPSPixelsPerPoint ();
27974 int
27975 main ()
27976 {
27977 return XDPSPixelsPerPoint ();
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 if ac_fn_c_try_link "$LINENO"; then :
27983   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27984 else
27985   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27986 fi
27987 rm -f core conftest.err conftest.$ac_objext \
27988     conftest$ac_exeext conftest.$ac_ext
27989 LIBS=$ac_check_lib_save_LIBS
27990 fi
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27992 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27993 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27994   passed=`expr $passed + 1`
27995 else
27996   failed=`expr $failed + 1`
27997 fi
27998
27999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28000 $as_echo_n "checking if DPS package is complete... " >&6; }
28001     if test $passed -gt 0; then
28002         if test $failed -gt 0; then
28003             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28004 $as_echo "no -- some components failed test" >&6; }
28005             have_dps='no (failed tests)'
28006             CPPFLAGS="$PERSIST_CPPFLAGS"
28007         else
28008             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28009             LIBS="$DPS_LIBS $LIBS"
28010
28011 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28012
28013             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28014 $as_echo "yes" >&6; }
28015             have_dps='yes'
28016         fi
28017     else
28018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28019 $as_echo "no" >&6; }
28020         CPPFLAGS=$PERSIST_CPPFLAGS
28021     fi
28022 fi
28023  if test "$have_dps" = 'yes'; then
28024   DPS_DELEGATE_TRUE=
28025   DPS_DELEGATE_FALSE='#'
28026 else
28027   DPS_DELEGATE_TRUE='#'
28028   DPS_DELEGATE_FALSE=
28029 fi
28030
28031
28032
28033
28034 #
28035 # Check for DJVU delegate library.
28036 #
28037
28038 # Check whether --with-djvu was given.
28039 if test "${with_djvu+set}" = set; then :
28040   withval=$with_djvu; with_djvu=$withval
28041 else
28042   with_djvu='yes'
28043 fi
28044
28045
28046 if test "$with_djvu" != 'yes'; then
28047     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28048 fi
28049
28050 have_djvu='no'
28051 DJVU_LIBS=''
28052 if test "$with_djvu" != 'no'; then
28053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28054 $as_echo "-------------------------------------------------------------" >&6; }
28055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28056 $as_echo_n "checking for DJVU... " >&6; }
28057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28058 $as_echo "" >&6; }
28059     failed=0
28060     passed=0
28061     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28062 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28063   passed=`expr $passed + 1`
28064 else
28065   failed=`expr $failed + 1`
28066 fi
28067
28068
28069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28070 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28071 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28072   $as_echo_n "(cached) " >&6
28073 else
28074   ac_check_lib_save_LIBS=$LIBS
28075 LIBS="-ldjvulibre  $LIBS"
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h.  */
28078
28079 /* Override any GCC internal prototype to avoid an error.
28080    Use char because int might match the return type of a GCC
28081    builtin and then its argument prototype would still apply.  */
28082 #ifdef __cplusplus
28083 extern "C"
28084 #endif
28085 char ddjvu_context_create ();
28086 int
28087 main ()
28088 {
28089 return ddjvu_context_create ();
28090   ;
28091   return 0;
28092 }
28093 _ACEOF
28094 if ac_fn_c_try_link "$LINENO"; then :
28095   ac_cv_lib_djvulibre_ddjvu_context_create=yes
28096 else
28097   ac_cv_lib_djvulibre_ddjvu_context_create=no
28098 fi
28099 rm -f core conftest.err conftest.$ac_objext \
28100     conftest$ac_exeext conftest.$ac_ext
28101 LIBS=$ac_check_lib_save_LIBS
28102 fi
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28104 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28105 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28106   passed=`expr $passed + 1`
28107 else
28108   failed=`expr $failed + 1`
28109 fi
28110
28111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28112 $as_echo_n "checking if DJVU package is complete... " >&6; }
28113     if test $passed -gt 0; then
28114         if test $failed -gt 0; then
28115             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28116 $as_echo "no -- some components failed test" >&6; }
28117             have_djvu='no (failed tests)'
28118         else
28119             DJVU_LIBS='-ldjvulibre'
28120             LIBS="$DJVU_LIBS $LIBS"
28121
28122 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28123
28124             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125 $as_echo "yes" >&6; }
28126             have_djvu='yes'
28127         fi
28128     else
28129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }
28131     fi
28132 fi
28133  if test "$have_djvu" = 'yes'; then
28134   DJVU_DELEGATE_TRUE=
28135   DJVU_DELEGATE_FALSE='#'
28136 else
28137   DJVU_DELEGATE_TRUE='#'
28138   DJVU_DELEGATE_FALSE=
28139 fi
28140
28141
28142
28143
28144 #
28145 # Set DejaVu font directory.
28146 #
28147
28148 # Check whether --with-dejavu-font-dir was given.
28149 if test "${with_dejavu_font_dir+set}" = set; then :
28150   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28151 else
28152   with_dejavu_font_dir='default'
28153 fi
28154
28155
28156 if test "$with_dejavu_font_dir" != 'default'; then
28157     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28158 fi
28159
28160
28161 #
28162 # Check for FFTW delegate library.
28163 #
28164
28165 # Check whether --with-fftw was given.
28166 if test "${with_fftw+set}" = set; then :
28167   withval=$with_fftw; with_fftw=$withval
28168 else
28169   with_fftw='yes'
28170 fi
28171
28172
28173 if test "$with_fftw" != 'yes'; then
28174     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28175 fi
28176
28177 have_fftw='no'
28178 FFTW_LIBS=''
28179 if test "$with_fftw" != 'no'; then
28180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28181 $as_echo "-------------------------------------------------------------" >&6; }
28182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28183 $as_echo_n "checking for FFTW... " >&6; }
28184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28185 $as_echo "" >&6; }
28186     failed=0
28187     passed=0
28188     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28189 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28190   passed=`expr $passed + 1`
28191 else
28192   failed=`expr $failed + 1`
28193 fi
28194
28195
28196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28197 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28198 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28199   $as_echo_n "(cached) " >&6
28200 else
28201   ac_check_lib_save_LIBS=$LIBS
28202 LIBS="-lfftw3  $LIBS"
28203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28204 /* end confdefs.h.  */
28205
28206 /* Override any GCC internal prototype to avoid an error.
28207    Use char because int might match the return type of a GCC
28208    builtin and then its argument prototype would still apply.  */
28209 #ifdef __cplusplus
28210 extern "C"
28211 #endif
28212 char fftw_execute ();
28213 int
28214 main ()
28215 {
28216 return fftw_execute ();
28217   ;
28218   return 0;
28219 }
28220 _ACEOF
28221 if ac_fn_c_try_link "$LINENO"; then :
28222   ac_cv_lib_fftw3_fftw_execute=yes
28223 else
28224   ac_cv_lib_fftw3_fftw_execute=no
28225 fi
28226 rm -f core conftest.err conftest.$ac_objext \
28227     conftest$ac_exeext conftest.$ac_ext
28228 LIBS=$ac_check_lib_save_LIBS
28229 fi
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28231 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28232 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28233   passed=`expr $passed + 1`
28234 else
28235   failed=`expr $failed + 1`
28236 fi
28237
28238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28239 $as_echo_n "checking if FFTW package is complete... " >&6; }
28240     if test $passed -gt 0; then
28241         if test $failed -gt 0; then
28242             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28243 $as_echo "no -- some components failed test" >&6; }
28244             have_fftw='no (failed tests)'
28245         else
28246             FFTW_LIBS='-lfftw3'
28247             LIBS="$FFTW_LIBS $LIBS"
28248
28249 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28250
28251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28252 $as_echo "yes" >&6; }
28253             have_fftw='yes'
28254         fi
28255     else
28256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28257 $as_echo "no" >&6; }
28258     fi
28259 fi
28260  if test "$have_fftw" = 'yes'; then
28261   FFTW_DELEGATE_TRUE=
28262   FFTW_DELEGATE_FALSE='#'
28263 else
28264   FFTW_DELEGATE_TRUE='#'
28265   FFTW_DELEGATE_FALSE=
28266 fi
28267
28268
28269
28270
28271 #
28272 # Check for FlashPIX delegate library.
28273 #
28274
28275 # Check whether --with-fpx was given.
28276 if test "${with_fpx+set}" = set; then :
28277   withval=$with_fpx; with_fpx=$withval
28278 else
28279   with_fpx='yes'
28280 fi
28281
28282
28283 if test "$with_fpx" != 'yes'; then
28284     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28285 fi
28286
28287 have_fpx='no'
28288 FPX_LIBS=''
28289 if test "$with_fpx" != 'no'; then
28290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28291 $as_echo "-------------------------------------------------------------" >&6; }
28292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28293 $as_echo_n "checking for FlashPIX... " >&6; }
28294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28295 $as_echo "" >&6; }
28296     failed=0
28297     passed=0
28298     ac_ext=cpp
28299 ac_cpp='$CXXCPP $CPPFLAGS'
28300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28303
28304
28305 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28306 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28307   passed=`expr $passed + 1`
28308 else
28309   failed=`expr $failed + 1`
28310 fi
28311
28312
28313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28314 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28315 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28316   $as_echo_n "(cached) " >&6
28317 else
28318   ac_check_lib_save_LIBS=$LIBS
28319 LIBS="-lfpx  $LIBS"
28320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321 /* end confdefs.h.  */
28322
28323 /* Override any GCC internal prototype to avoid an error.
28324    Use char because int might match the return type of a GCC
28325    builtin and then its argument prototype would still apply.  */
28326 #ifdef __cplusplus
28327 extern "C"
28328 #endif
28329 char FPX_OpenImageByFilename ();
28330 int
28331 main ()
28332 {
28333 return FPX_OpenImageByFilename ();
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 if ac_fn_cxx_try_link "$LINENO"; then :
28339   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28340 else
28341   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28342 fi
28343 rm -f core conftest.err conftest.$ac_objext \
28344     conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28346 fi
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28348 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28349 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28350   passed=`expr $passed + 1`
28351 else
28352   failed=`expr $failed + 1`
28353 fi
28354
28355     ac_ext=c
28356 ac_cpp='$CPP $CPPFLAGS'
28357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28360
28361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28362 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28363     if test $passed -gt 0; then
28364         if test $failed -gt 0; then
28365             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28366 $as_echo "no -- some components failed test" >&6; }
28367             have_fpx='no (failed tests)'
28368         else
28369             FPX_LIBS='-lfpx'
28370
28371 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28372
28373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28374 $as_echo "yes" >&6; }
28375             have_fpx='yes'
28376             PERLMAINCC="$CXX"
28377         fi
28378     else
28379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28380 $as_echo "no" >&6; }
28381     fi
28382 fi
28383  if test "$have_fpx" = 'yes'; then
28384   FPX_DELEGATE_TRUE=
28385   FPX_DELEGATE_FALSE='#'
28386 else
28387   FPX_DELEGATE_TRUE='#'
28388   FPX_DELEGATE_FALSE=
28389 fi
28390
28391
28392
28393
28394 #
28395 # Check for fontconfig delegate library.
28396 #
28397
28398 # Check whether --with-fontconfig was given.
28399 if test "${with_fontconfig+set}" = set; then :
28400   withval=$with_fontconfig; with_fontconfig=$withval
28401 else
28402   with_fontconfig=$have_x
28403 fi
28404
28405
28406 if test "$with_fontconfig" != 'yes'; then
28407     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28408 fi
28409
28410 have_fontconfig='no'
28411 FONTCONFIG_CFLAGS=""
28412 FONTCONFIG_LIBS=""
28413 FONTCONFIG_PKG=""
28414 if test "x$with_fontconfig" = "xyes"; then
28415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28416 $as_echo "-------------------------------------------------------------" >&6; }
28417
28418 pkg_failed=no
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28420 $as_echo_n "checking for FONTCONFIG... " >&6; }
28421
28422 if test -n "$FONTCONFIG_CFLAGS"; then
28423     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28424  elif test -n "$PKG_CONFIG"; then
28425     if test -n "$PKG_CONFIG" && \
28426     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28427   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28428   ac_status=$?
28429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28430   test $ac_status = 0; }; then
28431   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28432 else
28433   pkg_failed=yes
28434 fi
28435  else
28436     pkg_failed=untried
28437 fi
28438 if test -n "$FONTCONFIG_LIBS"; then
28439     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28440  elif test -n "$PKG_CONFIG"; then
28441     if test -n "$PKG_CONFIG" && \
28442     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28443   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28444   ac_status=$?
28445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28446   test $ac_status = 0; }; then
28447   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28448 else
28449   pkg_failed=yes
28450 fi
28451  else
28452     pkg_failed=untried
28453 fi
28454
28455
28456
28457 if test $pkg_failed = yes; then
28458
28459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28460         _pkg_short_errors_supported=yes
28461 else
28462         _pkg_short_errors_supported=no
28463 fi
28464         if test $_pkg_short_errors_supported = yes; then
28465                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28466         else
28467                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28468         fi
28469         # Put the nasty error message in config.log where it belongs
28470         echo "$FONTCONFIG_PKG_ERRORS" >&5
28471
28472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28473 $as_echo "no" >&6; }
28474                 have_fontconfig=no
28475 elif test $pkg_failed = untried; then
28476         have_fontconfig=no
28477 else
28478         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28479         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28481 $as_echo "yes" >&6; }
28482         have_fontconfig=yes
28483 fi
28484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28485 $as_echo "" >&6; }
28486 fi
28487
28488 if test "$have_fontconfig" = 'yes'; then
28489
28490 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28491
28492   if test "$with_modules" = 'no'; then
28493     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28494   fi
28495 fi
28496
28497  if test "$have_fontconfig" = 'yes'; then
28498   FONTCONFIG_DELEGATE_TRUE=
28499   FONTCONFIG_DELEGATE_FALSE='#'
28500 else
28501   FONTCONFIG_DELEGATE_TRUE='#'
28502   FONTCONFIG_DELEGATE_FALSE=
28503 fi
28504
28505
28506
28507
28508
28509 #
28510 # Check for freetype delegate library.
28511 #
28512
28513 # Check whether --with-freetype was given.
28514 if test "${with_freetype+set}" = set; then :
28515   withval=$with_freetype; with_freetype=$withval
28516 else
28517   with_freetype='yes'
28518 fi
28519
28520
28521
28522 if test "$with_freetype" != 'yes'; then
28523     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28524 fi
28525
28526 have_freetype='no'
28527 FREETYPE_LIBS=''
28528 if test "$with_freetype" != 'no'; then
28529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28530 $as_echo "-------------------------------------------------------------" >&6; }
28531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
28532 $as_echo_n "checking for FreeType 2.0... " >&6; }
28533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28534 $as_echo "" >&6; }
28535     failed=0
28536     passed=0
28537     PERSIST_LIBS="$LIBS"
28538     PERSIST_CPPFLAGS="$CPPFLAGS"
28539     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28540         :
28541     else
28542         freetype_config=''
28543         for ac_prog in freetype-config
28544 do
28545   # Extract the first word of "$ac_prog", so it can be a program name with args.
28546 set dummy $ac_prog; ac_word=$2
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28548 $as_echo_n "checking for $ac_word... " >&6; }
28549 if ${ac_cv_prog_freetype_config+:} false; then :
28550   $as_echo_n "(cached) " >&6
28551 else
28552   if test -n "$freetype_config"; then
28553   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28554 else
28555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28556 for as_dir in $PATH
28557 do
28558   IFS=$as_save_IFS
28559   test -z "$as_dir" && as_dir=.
28560     for ac_exec_ext in '' $ac_executable_extensions; do
28561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28562     ac_cv_prog_freetype_config="$ac_prog"
28563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28564     break 2
28565   fi
28566 done
28567   done
28568 IFS=$as_save_IFS
28569
28570 fi
28571 fi
28572 freetype_config=$ac_cv_prog_freetype_config
28573 if test -n "$freetype_config"; then
28574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28575 $as_echo "$freetype_config" >&6; }
28576 else
28577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28579 fi
28580
28581
28582   test -n "$freetype_config" && break
28583 done
28584         if test -n "$freetype_config"; then
28585             freetype_cflags=`$freetype_config --cflags`
28586             freetype_libs=`$freetype_config --libs`
28587             LIBS="$LIBS $freetype_libs"
28588             CPPFLAGS="$freetype_cflags $CPPFLAGS"
28589         fi
28590     fi
28591
28592     if test "$FREETYPE_LIBS" = ''; then
28593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28594 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28595 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28596   $as_echo_n "(cached) " >&6
28597 else
28598   ac_check_lib_save_LIBS=$LIBS
28599 LIBS="-lfreetype  $LIBS"
28600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601 /* end confdefs.h.  */
28602
28603 /* Override any GCC internal prototype to avoid an error.
28604    Use char because int might match the return type of a GCC
28605    builtin and then its argument prototype would still apply.  */
28606 #ifdef __cplusplus
28607 extern "C"
28608 #endif
28609 char FT_Init_FreeType ();
28610 int
28611 main ()
28612 {
28613 return FT_Init_FreeType ();
28614   ;
28615   return 0;
28616 }
28617 _ACEOF
28618 if ac_fn_c_try_link "$LINENO"; then :
28619   ac_cv_lib_freetype_FT_Init_FreeType=yes
28620 else
28621   ac_cv_lib_freetype_FT_Init_FreeType=no
28622 fi
28623 rm -f core conftest.err conftest.$ac_objext \
28624     conftest$ac_exeext conftest.$ac_ext
28625 LIBS=$ac_check_lib_save_LIBS
28626 fi
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28628 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28629 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28630   FREETYPE_LIBS='-lfreetype'
28631 fi
28632
28633         if test "$FREETYPE_LIBS" != ''; then
28634             passed=`expr $passed + 1`
28635         else
28636             failed=`expr $failed + 1`
28637             LIBS="$PERSIST_LIBS"
28638         fi
28639     fi
28640
28641     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28642 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28643   FT2BUILD_H='#include <ft2build.h>'
28644 else
28645   ft2build=''
28646 fi
28647
28648
28649     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28650 "
28651 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28652   have_freetype_h='yes'
28653 else
28654   have_freetype_h='no'
28655 fi
28656
28657
28658     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28659         passed=`expr $passed + 1`
28660     else
28661         failed=`expr $failed + 1`
28662         CPPFLAGS="$PERSIST_CPPFLAGS"
28663     fi
28664
28665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28666 $as_echo_n "checking if FreeType package is complete... " >&6; }
28667     if test $passed -gt 0; then
28668         if test $failed -gt 0; then
28669             FREETYPE_LIBS=''
28670             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28671 $as_echo "no -- some components failed test" >&6; }
28672             have_freetype='no (failed tests)'
28673         else
28674             LIBS="$FREETYPE_LIBS $LIBS"
28675
28676 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28677
28678             if test "$ac_cv_header_ft2build_h" = 'yes'; then
28679
28680 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28681
28682             fi
28683             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28684 $as_echo "yes" >&6; }
28685             have_freetype='yes'
28686         fi
28687     else
28688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28689 $as_echo "no" >&6; }
28690     fi
28691 fi
28692  if test "$have_freetype" = 'yes'; then
28693   FREETYPE_DELEGATE_TRUE=
28694   FREETYPE_DELEGATE_FALSE='#'
28695 else
28696   FREETYPE_DELEGATE_TRUE='#'
28697   FREETYPE_DELEGATE_FALSE=
28698 fi
28699
28700
28701
28702
28703
28704 #
28705 # Check for Ghostscript library or framework.
28706 #
28707 # Test for iapi.h & test for gsapi_new_instance in -lgs
28708 # or -framework Ghostscript
28709
28710
28711 # Check whether --with-gslib was given.
28712 if test "${with_gslib+set}" = set; then :
28713   withval=$with_gslib; with_gslib=$withval
28714 else
28715   with_gslib='no'
28716 fi
28717
28718
28719 gslib_framework='no'
28720 if test "$with_gslib" != 'yes'; then
28721     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28722 fi
28723
28724 have_gslib='no'
28725 GS_LIBS=''
28726 if test "$with_gslib" != 'no'; then
28727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28728 $as_echo "-------------------------------------------------------------" >&6; }
28729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28730 $as_echo_n "checking for Ghostscript... " >&6; }
28731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28732 $as_echo "" >&6; }
28733     framework=0
28734     failed=0
28735     passed=0
28736     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28737 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28738   passed=`expr $passed + 1`
28739 else
28740   failed=`expr $failed + 1`
28741 fi
28742
28743
28744     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28745 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28746   passed=`expr $passed + 1`
28747 else
28748   failed=`expr $failed + 1`
28749 fi
28750
28751
28752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28753 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28754 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28755   $as_echo_n "(cached) " >&6
28756 else
28757   ac_check_framework_save_LIBS=$LIBS
28758 LIBS="-framework Ghostscript  $LIBS"
28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760 /* end confdefs.h.  */
28761
28762 /* Override any GCC internal prototype to avoid an error.
28763    Use char because int might match the return type of a GCC
28764    builtin and then its argument prototype would still apply.  */
28765 #ifdef __cplusplus
28766 extern "C"
28767 #endif
28768 char gsapi_new_instance ();
28769 int
28770 main ()
28771 {
28772 return gsapi_new_instance ();
28773   ;
28774   return 0;
28775 }
28776 _ACEOF
28777 if ac_fn_c_try_link "$LINENO"; then :
28778   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28779 else
28780   ac_cv_framework_Ghostscript_gsapi_new_instance=no
28781 fi
28782 rm -f core conftest.err conftest.$ac_objext \
28783     conftest$ac_exeext conftest.$ac_ext
28784 LIBS=$ac_check_framework_save_LIBS
28785 fi
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28787 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28788 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28789   framework=`expr $framework + 1`
28790 else
28791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28792 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28793 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28794   $as_echo_n "(cached) " >&6
28795 else
28796   ac_check_lib_save_LIBS=$LIBS
28797 LIBS="-lgs  $LIBS"
28798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799 /* end confdefs.h.  */
28800
28801 /* Override any GCC internal prototype to avoid an error.
28802    Use char because int might match the return type of a GCC
28803    builtin and then its argument prototype would still apply.  */
28804 #ifdef __cplusplus
28805 extern "C"
28806 #endif
28807 char gsapi_new_instance ();
28808 int
28809 main ()
28810 {
28811 return gsapi_new_instance ();
28812   ;
28813   return 0;
28814 }
28815 _ACEOF
28816 if ac_fn_c_try_link "$LINENO"; then :
28817   ac_cv_lib_gs_gsapi_new_instance=yes
28818 else
28819   ac_cv_lib_gs_gsapi_new_instance=no
28820 fi
28821 rm -f core conftest.err conftest.$ac_objext \
28822     conftest$ac_exeext conftest.$ac_ext
28823 LIBS=$ac_check_lib_save_LIBS
28824 fi
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28826 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28827 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28828   passed=`expr $passed + 1`
28829 else
28830   failed=`expr $failed + 1`
28831 fi
28832
28833 fi
28834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28835 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28836     if test $passed -gt 0; then
28837         if test $failed -gt 0; then
28838             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28839 $as_echo "no -- some components failed test" >&6; }
28840             have_gslib='no (failed tests)'
28841         else
28842             if test $framework -gt 0; then
28843                 GS_LIBS='-framework Ghostscript'
28844                 gslib_framework='yes'
28845                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28846 $as_echo "yes, using framework." >&6; }
28847             else
28848                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28849 $as_echo "yes, using library." >&6; }
28850                 GS_LIBS='-lgs'
28851             fi
28852             LIBS="$GS_LIBS $LIBS"
28853
28854 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28855
28856             have_gslib='yes'
28857         fi
28858     else
28859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28860 $as_echo "no" >&6; }
28861     fi
28862 fi
28863  if test "$have_gslib" = 'yes'; then
28864   GS_DELEGATE_TRUE=
28865   GS_DELEGATE_FALSE='#'
28866 else
28867   GS_DELEGATE_TRUE='#'
28868   GS_DELEGATE_FALSE=
28869 fi
28870
28871
28872
28873 # Set default font search path
28874
28875 # Check whether --with-fontpath was given.
28876 if test "${with_fontpath+set}" = set; then :
28877   withval=$with_fontpath; with_fontpath=$withval
28878 else
28879   with_fontpath=''
28880 fi
28881
28882
28883 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28884     with_fontpath=''
28885 else
28886
28887 cat >>confdefs.h <<_ACEOF
28888 #define MAGICK_FONT_PATH "$with_fontpath"
28889 _ACEOF
28890
28891 fi
28892 if test "$with_fontpath=" != ''; then
28893     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28894 fi
28895
28896 # Set Ghostscript font directory
28897
28898 # Check whether --with-gs-font-dir was given.
28899 if test "${with_gs_font_dir+set}" = set; then :
28900   withval=$with_gs_font_dir; with_gs_font_dir=$withval
28901 else
28902   with_gs_font_dir='default'
28903 fi
28904
28905
28906 if test "$with_gs_font_dir" != 'default'; then
28907     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28908 fi
28909
28910
28911 #
28912 # Check for GVC delegate library.
28913 #
28914
28915 # Check whether --with-gvc was given.
28916 if test "${with_gvc+set}" = set; then :
28917   withval=$with_gvc; with_gvc=$withval
28918 else
28919   with_gvc='yes'
28920 fi
28921
28922
28923 if test "$with_gvc" != 'yes'; then
28924     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28925 fi
28926
28927 GVC_PKG=""
28928 if test "x$with_gvc" = "xyes"; then
28929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28930 $as_echo "-------------------------------------------------------------" >&6; }
28931
28932 pkg_failed=no
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28934 $as_echo_n "checking for GVC... " >&6; }
28935
28936 if test -n "$GVC_CFLAGS"; then
28937     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28938  elif test -n "$PKG_CONFIG"; then
28939     if test -n "$PKG_CONFIG" && \
28940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28941   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28942   ac_status=$?
28943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28944   test $ac_status = 0; }; then
28945   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28946 else
28947   pkg_failed=yes
28948 fi
28949  else
28950     pkg_failed=untried
28951 fi
28952 if test -n "$GVC_LIBS"; then
28953     pkg_cv_GVC_LIBS="$GVC_LIBS"
28954  elif test -n "$PKG_CONFIG"; then
28955     if test -n "$PKG_CONFIG" && \
28956     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28957   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28958   ac_status=$?
28959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960   test $ac_status = 0; }; then
28961   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28962 else
28963   pkg_failed=yes
28964 fi
28965  else
28966     pkg_failed=untried
28967 fi
28968
28969
28970
28971 if test $pkg_failed = yes; then
28972
28973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28974         _pkg_short_errors_supported=yes
28975 else
28976         _pkg_short_errors_supported=no
28977 fi
28978         if test $_pkg_short_errors_supported = yes; then
28979                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28980         else
28981                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28982         fi
28983         # Put the nasty error message in config.log where it belongs
28984         echo "$GVC_PKG_ERRORS" >&5
28985
28986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28987 $as_echo "no" >&6; }
28988                 have_gvc=no
28989 elif test $pkg_failed = untried; then
28990         have_gvc=no
28991 else
28992         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28993         GVC_LIBS=$pkg_cv_GVC_LIBS
28994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28995 $as_echo "yes" >&6; }
28996         have_gvc=yes
28997 fi
28998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28999 $as_echo "" >&6; }
29000 fi
29001
29002 if test "$have_gvc" = 'yes'; then
29003
29004 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29005
29006     if test "$with_modules" = 'no'; then
29007         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29008     fi
29009 fi
29010
29011  if test "$have_gvc" = 'yes'; then
29012   GVC_DELEGATE_TRUE=
29013   GVC_DELEGATE_FALSE='#'
29014 else
29015   GVC_DELEGATE_TRUE='#'
29016   GVC_DELEGATE_FALSE=
29017 fi
29018
29019
29020
29021
29022
29023 #
29024 # Check for JBIG delegate library.
29025 #
29026
29027
29028 # Check whether --with-jbig was given.
29029 if test "${with_jbig+set}" = set; then :
29030   withval=$with_jbig; with_jbig=$withval
29031 else
29032   with_jbig='yes'
29033 fi
29034
29035
29036 have_jbig='no'
29037 JBIG_LIBS=''
29038 if test "$with_jbig" != 'no'; then
29039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29040 $as_echo "-------------------------------------------------------------" >&6; }
29041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29042 $as_echo_n "checking for JBIG... " >&6; }
29043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29044 $as_echo "" >&6; }
29045     failed=0
29046     passed=0
29047     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29048 if test "x$ac_cv_header_jbig_h" = xyes; then :
29049   passed=`expr $passed + 1`
29050 else
29051   failed=`expr $failed + 1`
29052 fi
29053
29054
29055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29056 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29057 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29058   $as_echo_n "(cached) " >&6
29059 else
29060   ac_check_lib_save_LIBS=$LIBS
29061 LIBS="-ljbig  $LIBS"
29062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29063 /* end confdefs.h.  */
29064
29065 /* Override any GCC internal prototype to avoid an error.
29066    Use char because int might match the return type of a GCC
29067    builtin and then its argument prototype would still apply.  */
29068 #ifdef __cplusplus
29069 extern "C"
29070 #endif
29071 char jbg_dec_init ();
29072 int
29073 main ()
29074 {
29075 return jbg_dec_init ();
29076   ;
29077   return 0;
29078 }
29079 _ACEOF
29080 if ac_fn_c_try_link "$LINENO"; then :
29081   ac_cv_lib_jbig_jbg_dec_init=yes
29082 else
29083   ac_cv_lib_jbig_jbg_dec_init=no
29084 fi
29085 rm -f core conftest.err conftest.$ac_objext \
29086     conftest$ac_exeext conftest.$ac_ext
29087 LIBS=$ac_check_lib_save_LIBS
29088 fi
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29090 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29091 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29092   passed=`expr $passed + 1`
29093 else
29094   failed=`expr $failed + 1`
29095 fi
29096
29097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29098 $as_echo_n "checking if JBIG package is complete... " >&6; }
29099     if test $passed -gt 0; then
29100         if test $failed -gt 0; then
29101             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29102 $as_echo "no -- some components failed test" >&6; }
29103             have_jbig='no (failed tests)'
29104         else
29105             JBIG_LIBS='-ljbig'
29106             LIBS="$JBIG_LIBS $LIBS"
29107
29108 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29109
29110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29111 $as_echo "yes" >&6; }
29112             have_jbig='yes'
29113         fi
29114     else
29115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29116 $as_echo "no" >&6; }
29117     fi
29118 fi
29119  if test "$have_jbig" = 'yes'; then
29120   JBIG_DELEGATE_TRUE=
29121   JBIG_DELEGATE_FALSE='#'
29122 else
29123   JBIG_DELEGATE_TRUE='#'
29124   JBIG_DELEGATE_FALSE=
29125 fi
29126
29127
29128
29129
29130 #
29131 # Check for JPEG delegate library.
29132 #
29133
29134 # Check whether --with-jpeg was given.
29135 if test "${with_jpeg+set}" = set; then :
29136   withval=$with_jpeg; with_jpeg=$withval
29137 else
29138   with_jpeg='yes'
29139 fi
29140
29141
29142 if test "$with_jpeg" != 'yes'; then
29143     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29144 fi
29145
29146 have_jpeg='no'
29147 JPEG_LIBS=''
29148 if test "$with_jpeg" != 'no'; then
29149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150 $as_echo "-------------------------------------------------------------" >&6; }
29151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29152 $as_echo_n "checking for JPEG... " >&6; }
29153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29154 $as_echo "" >&6; }
29155     failed=0
29156     passed=0
29157     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29158 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29159   passed=`expr $passed + 1`
29160 else
29161   failed=`expr $failed + 1`
29162 fi
29163
29164
29165     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29166 if test "x$ac_cv_header_jerror_h" = xyes; then :
29167   passed=`expr $passed + 1`
29168 else
29169   failed=`expr $failed + 1`
29170 fi
29171
29172
29173     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29174 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29175   passed=`expr $passed + 1`
29176 else
29177   failed=`expr $failed + 1`
29178 fi
29179
29180
29181     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29182 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29183   passed=`expr $passed + 1`
29184 else
29185   failed=`expr $failed + 1`
29186 fi
29187
29188
29189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29190 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29191 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29192   $as_echo_n "(cached) " >&6
29193 else
29194   ac_check_lib_save_LIBS=$LIBS
29195 LIBS="-ljpeg  $LIBS"
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h.  */
29198
29199 /* Override any GCC internal prototype to avoid an error.
29200    Use char because int might match the return type of a GCC
29201    builtin and then its argument prototype would still apply.  */
29202 #ifdef __cplusplus
29203 extern "C"
29204 #endif
29205 char jpeg_read_header ();
29206 int
29207 main ()
29208 {
29209 return jpeg_read_header ();
29210   ;
29211   return 0;
29212 }
29213 _ACEOF
29214 if ac_fn_c_try_link "$LINENO"; then :
29215   ac_cv_lib_jpeg_jpeg_read_header=yes
29216 else
29217   ac_cv_lib_jpeg_jpeg_read_header=no
29218 fi
29219 rm -f core conftest.err conftest.$ac_objext \
29220     conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29222 fi
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29224 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29225 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29226   passed=`expr $passed + 1`
29227 else
29228   failed=`expr $failed + 1`
29229 fi
29230
29231
29232 # Test for compatible JPEG library
29233 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29235 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29236 if ${ac_cv_jpeg_version_ok+:} false; then :
29237   $as_echo_n "(cached) " >&6
29238 else
29239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h.  */
29241 #include <stdio.h>
29242 #include <stdlib.h>
29243 #include <jpeglib.h>
29244
29245 int
29246 main ()
29247 {
29248
29249 #if JPEG_LIB_VERSION < 62
29250 #error IJG JPEG library must be version 6b or newer!
29251 #endif
29252 return 0;
29253
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 if ac_fn_c_try_compile "$LINENO"; then :
29259   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29260 else
29261   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29262 fi
29263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29264 fi
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29266 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29267 fi
29268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29269 $as_echo_n "checking if JPEG package is complete... " >&6; }
29270     if test $passed -gt 0; then
29271         if test $failed -gt 0; then
29272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29273 $as_echo "no -- some components failed test" >&6; }
29274             have_jpeg='no (failed tests)'
29275         else
29276             JPEG_LIBS='-ljpeg'
29277             LIBS="$JPEG_LIBS $LIBS"
29278
29279 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29280
29281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29283             have_jpeg='yes'
29284         fi
29285     else
29286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29288     fi
29289 fi
29290  if test "$have_jpeg" = 'yes'; then
29291   JPEG_DELEGATE_TRUE=
29292   JPEG_DELEGATE_FALSE='#'
29293 else
29294   JPEG_DELEGATE_TRUE='#'
29295   JPEG_DELEGATE_FALSE=
29296 fi
29297
29298
29299
29300
29301 #
29302 # Check for JPEG Version 2 delegate library.
29303 #
29304
29305 # Check whether --with-jp2 was given.
29306 if test "${with_jp2+set}" = set; then :
29307   withval=$with_jp2; with_jp2=$withval
29308 else
29309   with_jp2='yes'
29310 fi
29311
29312
29313 if test "$with_jp2" != 'yes'; then
29314     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29315 fi
29316
29317 have_jp2='no'
29318 JP2_LIBS=''
29319 if test "$with_jp2" != 'no'; then
29320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29321 $as_echo "-------------------------------------------------------------" >&6; }
29322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29323 $as_echo_n "checking for JPEG Version 2... " >&6; }
29324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29325 $as_echo "" >&6; }
29326     failed=0
29327     passed=0
29328     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29329 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29330   passed=`expr $passed + 1`
29331 else
29332   failed=`expr $failed + 1`
29333 fi
29334
29335
29336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29337 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29338 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29339   $as_echo_n "(cached) " >&6
29340 else
29341   ac_check_lib_save_LIBS=$LIBS
29342 LIBS="-ljasper  $LIBS"
29343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29344 /* end confdefs.h.  */
29345
29346 /* Override any GCC internal prototype to avoid an error.
29347    Use char because int might match the return type of a GCC
29348    builtin and then its argument prototype would still apply.  */
29349 #ifdef __cplusplus
29350 extern "C"
29351 #endif
29352 char jas_stream_fopen ();
29353 int
29354 main ()
29355 {
29356 return jas_stream_fopen ();
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 if ac_fn_c_try_link "$LINENO"; then :
29362   ac_cv_lib_jasper_jas_stream_fopen=yes
29363 else
29364   ac_cv_lib_jasper_jas_stream_fopen=no
29365 fi
29366 rm -f core conftest.err conftest.$ac_objext \
29367     conftest$ac_exeext conftest.$ac_ext
29368 LIBS=$ac_check_lib_save_LIBS
29369 fi
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29371 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29372 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29373   passed=`expr $passed + 1`
29374 else
29375   failed=`expr $failed + 1`
29376 fi
29377
29378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29379 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29380     if test $passed -gt 0; then
29381         if test $failed -gt 0; then
29382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29383 $as_echo "no -- some components failed test" >&6; }
29384             have_jp2='no (failed tests)'
29385         else
29386             JP2_LIBS='-ljasper'
29387             LIBS="$JP2_LIBS $LIBS"
29388
29389 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29390
29391             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29392 $as_echo "yes" >&6; }
29393             have_jp2='yes'
29394         fi
29395     else
29396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29397 $as_echo "no" >&6; }
29398     fi
29399 fi
29400  if test "$have_jp2" = 'yes'; then
29401   JP2_DELEGATE_TRUE=
29402   JP2_DELEGATE_FALSE='#'
29403 else
29404   JP2_DELEGATE_TRUE='#'
29405   JP2_DELEGATE_FALSE=
29406 fi
29407
29408
29409
29410
29411 #
29412 # Check for LCMS delegate library.
29413 #
29414 # Disable LCMS.
29415
29416 # Check whether --with-lcms was given.
29417 if test "${with_lcms+set}" = set; then :
29418   withval=$with_lcms; with_lcms=$withval
29419 else
29420   with_lcms='yes'
29421 fi
29422
29423 if test "$with_lcms" != 'yes' ; then
29424     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29425 fi
29426
29427 # Disable LCMS2.
29428
29429 # Check whether --with-lcms2 was given.
29430 if test "${with_lcms2+set}" = set; then :
29431   withval=$with_lcms2; with_lcms2=$withval
29432 else
29433   with_lcms2='yes'
29434 fi
29435
29436 if test "$with_lcms2" != 'yes' ; then
29437     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29438 fi
29439
29440 have_lcms2='no'
29441 LCMS_LIBS=''
29442 if test "$with_lcms2" != 'no'; then
29443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29444 $as_echo "-------------------------------------------------------------" >&6; }
29445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29446 $as_echo_n "checking for LCMS v2... " >&6; }
29447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29448 $as_echo "" >&6; }
29449     failed=0
29450     passed=0
29451     have_lcms_header='no'
29452
29453     # Check for <lcms2.h>
29454     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29455 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29456   have_lcms_header='yes'
29457 fi
29458
29459
29460     if test "$have_lcms_header" = 'yes'; then
29461
29462 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29463
29464        passed=`expr $passed + 1`
29465     fi
29466
29467     # Check for <lcms2/lcms2.h)
29468     if test "$have_lcms_header" != 'yes'; then
29469       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29470 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29471   have_lcms_header='yes'
29472 fi
29473
29474
29475       if test "$have_lcms_header" = 'yes'; then
29476         passed=`expr $passed + 1`
29477
29478 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29479
29480       fi
29481     fi
29482
29483     # Failed to find lcms header?
29484     if test "$have_lcms_header" != 'yes'; then
29485       failed=`expr $failed + 1`
29486     fi
29487
29488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29489 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29490 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29491   $as_echo_n "(cached) " >&6
29492 else
29493   ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-llcms2  $LIBS"
29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h.  */
29497
29498 /* Override any GCC internal prototype to avoid an error.
29499    Use char because int might match the return type of a GCC
29500    builtin and then its argument prototype would still apply.  */
29501 #ifdef __cplusplus
29502 extern "C"
29503 #endif
29504 char cmsSetLogErrorHandler ();
29505 int
29506 main ()
29507 {
29508 return cmsSetLogErrorHandler ();
29509   ;
29510   return 0;
29511 }
29512 _ACEOF
29513 if ac_fn_c_try_link "$LINENO"; then :
29514   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29515 else
29516   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29517 fi
29518 rm -f core conftest.err conftest.$ac_objext \
29519     conftest$ac_exeext conftest.$ac_ext
29520 LIBS=$ac_check_lib_save_LIBS
29521 fi
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29523 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29524 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29525   passed=`expr $passed + 1`
29526 else
29527   failed=`expr $failed + 1`
29528 fi
29529
29530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29531 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29532     if test $passed -gt 0; then
29533       if test $failed -gt 0; then
29534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29535 $as_echo "no -- some components failed test" >&6; }
29536         have_lcms2='no (failed tests)'
29537       else
29538         LCMS_LIBS='-llcms2'
29539         LIBS="$LCMS_LIBS $LIBS"
29540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29541 $as_echo "yes" >&6; }
29542         have_lcms2='yes'
29543       fi
29544     else
29545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29547     fi
29548 fi
29549
29550 #
29551 # Check for LCMS v1 (1.11 or later)
29552 #
29553 if test $have_lcms2 = 'yes'; then
29554   with_lcms='no'
29555 fi
29556
29557 have_lcms='no'
29558 if test "$with_lcms" != 'no'; then
29559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29560 $as_echo "-------------------------------------------------------------" >&6; }
29561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29562 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29564 $as_echo "" >&6; }
29565     failed=0
29566     passed=0
29567     have_lcms_header='no'
29568
29569     # Check for <lcms.h>
29570     if test "$have_lcms_header" != 'yes'; then
29571       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29572 if test "x$ac_cv_header_lcms_h" = xyes; then :
29573   have_lcms_header='yes'
29574 fi
29575
29576
29577       if test "$have_lcms_header" = 'yes'; then
29578         passed=`expr $passed + 1`
29579
29580 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29581
29582       fi
29583     fi
29584
29585     # Check for <lcms/lcms.h>
29586     if test "$have_lcms_header" != 'yes'; then
29587       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29588 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29589   have_lcms_header='yes'
29590 fi
29591
29592
29593       if test "$have_lcms_header" = 'yes'; then
29594         passed=`expr $passed + 1`
29595
29596 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29597
29598       fi
29599     fi
29600
29601     # Failed to find lcms header?
29602     if test "$have_lcms_header" != 'yes'; then
29603       failed=`expr $failed + 1`
29604     fi
29605
29606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29607 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29608 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29609   $as_echo_n "(cached) " >&6
29610 else
29611   ac_check_lib_save_LIBS=$LIBS
29612 LIBS="-llcms  $LIBS"
29613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29614 /* end confdefs.h.  */
29615
29616 /* Override any GCC internal prototype to avoid an error.
29617    Use char because int might match the return type of a GCC
29618    builtin and then its argument prototype would still apply.  */
29619 #ifdef __cplusplus
29620 extern "C"
29621 #endif
29622 char cmsSetErrorHandler ();
29623 int
29624 main ()
29625 {
29626 return cmsSetErrorHandler ();
29627   ;
29628   return 0;
29629 }
29630 _ACEOF
29631 if ac_fn_c_try_link "$LINENO"; then :
29632   ac_cv_lib_lcms_cmsSetErrorHandler=yes
29633 else
29634   ac_cv_lib_lcms_cmsSetErrorHandler=no
29635 fi
29636 rm -f core conftest.err conftest.$ac_objext \
29637     conftest$ac_exeext conftest.$ac_ext
29638 LIBS=$ac_check_lib_save_LIBS
29639 fi
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29641 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29642 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29643   passed=`expr $passed + 1`
29644 else
29645   failed=`expr $failed + 1`
29646 fi
29647
29648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29649 $as_echo_n "checking if LCMS package is complete... " >&6; }
29650     if test $passed -gt 0; then
29651       if test $failed -gt 0; then
29652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29653 $as_echo "no -- some components failed test" >&6; }
29654         have_lcms='no (failed tests)'
29655       else
29656         LCMS_LIBS='-llcms'
29657         LIBS="$LCMS_LIBS $LIBS"
29658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29659 $as_echo "yes" >&6; }
29660         have_lcms='yes'
29661       fi
29662     else
29663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29664 $as_echo "no" >&6; }
29665     fi
29666 fi
29667
29668  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29669   LCMS_DELEGATE_TRUE=
29670   LCMS_DELEGATE_FALSE='#'
29671 else
29672   LCMS_DELEGATE_TRUE='#'
29673   LCMS_DELEGATE_FALSE=
29674 fi
29675
29676 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29677
29678 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29679
29680 fi
29681
29682
29683
29684
29685 #
29686 # Check for the LQR (Liquid Rescale) delegate library.
29687 #
29688
29689 # Check whether --with-lqr was given.
29690 if test "${with_lqr+set}" = set; then :
29691   withval=$with_lqr; with_lqr=$withval
29692 else
29693   with_lqr='yes'
29694 fi
29695
29696
29697 if test "$with_lqr" != 'yes'; then
29698     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29699 fi
29700
29701 have_lqr='no'
29702 LQR_CFLAGS=""
29703 LQR_LIBS=""
29704 LQR_PKG=""
29705 if test "x$with_lqr" = "xyes"; then
29706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29707 $as_echo "-------------------------------------------------------------" >&6; }
29708
29709 pkg_failed=no
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29711 $as_echo_n "checking for LQR... " >&6; }
29712
29713 if test -n "$LQR_CFLAGS"; then
29714     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29715  elif test -n "$PKG_CONFIG"; then
29716     if test -n "$PKG_CONFIG" && \
29717     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29718   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29719   ac_status=$?
29720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29721   test $ac_status = 0; }; then
29722   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29723 else
29724   pkg_failed=yes
29725 fi
29726  else
29727     pkg_failed=untried
29728 fi
29729 if test -n "$LQR_LIBS"; then
29730     pkg_cv_LQR_LIBS="$LQR_LIBS"
29731  elif test -n "$PKG_CONFIG"; then
29732     if test -n "$PKG_CONFIG" && \
29733     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29734   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29735   ac_status=$?
29736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737   test $ac_status = 0; }; then
29738   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29739 else
29740   pkg_failed=yes
29741 fi
29742  else
29743     pkg_failed=untried
29744 fi
29745
29746
29747
29748 if test $pkg_failed = yes; then
29749
29750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29751         _pkg_short_errors_supported=yes
29752 else
29753         _pkg_short_errors_supported=no
29754 fi
29755         if test $_pkg_short_errors_supported = yes; then
29756                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29757         else
29758                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29759         fi
29760         # Put the nasty error message in config.log where it belongs
29761         echo "$LQR_PKG_ERRORS" >&5
29762
29763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764 $as_echo "no" >&6; }
29765                 have_lqr=no
29766 elif test $pkg_failed = untried; then
29767         have_lqr=no
29768 else
29769         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29770         LQR_LIBS=$pkg_cv_LQR_LIBS
29771         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29772 $as_echo "yes" >&6; }
29773         have_lqr=yes
29774 fi
29775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29776 $as_echo "" >&6; }
29777 fi
29778
29779 if test "$have_lqr" = 'yes'; then
29780
29781 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29782
29783     CFLAGS="$LQR_CFLAGS $CFLAGS"
29784 fi
29785
29786  if test "$have_lqr" = 'yes'; then
29787   LQR_DELEGATE_TRUE=
29788   LQR_DELEGATE_FALSE='#'
29789 else
29790   LQR_DELEGATE_TRUE='#'
29791   LQR_DELEGATE_FALSE=
29792 fi
29793
29794
29795
29796
29797
29798 # Disable LZMA (lzma library)
29799
29800 # Check whether --with-lzma was given.
29801 if test "${with_lzma+set}" = set; then :
29802   withval=$with_lzma; with_lzma=$withval
29803 else
29804   with_lzma='yes'
29805 fi
29806
29807 if test "$with_lzma" != 'yes' ; then
29808     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29809 fi
29810
29811 #
29812 # Check for LZMA
29813 #
29814 have_lzma='no'
29815 LZMA_LIBS=''
29816 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29818 $as_echo "-------------------------------------------------------------" >&6; }
29819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29820 $as_echo_n "checking for LZMA... " >&6; }
29821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29822 $as_echo "" >&6; }
29823   failed=0
29824   passed=0
29825   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29826 if test "x$ac_cv_header_lzma_h" = xyes; then :
29827   passed=`expr $passed + 1`
29828 else
29829   failed=`expr $failed + 1`
29830 fi
29831
29832
29833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29834 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29835 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29836   $as_echo_n "(cached) " >&6
29837 else
29838   ac_check_lib_save_LIBS=$LIBS
29839 LIBS="-llzma  $LIBS"
29840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29841 /* end confdefs.h.  */
29842
29843 /* Override any GCC internal prototype to avoid an error.
29844    Use char because int might match the return type of a GCC
29845    builtin and then its argument prototype would still apply.  */
29846 #ifdef __cplusplus
29847 extern "C"
29848 #endif
29849 char lzma_code ();
29850 int
29851 main ()
29852 {
29853 return lzma_code ();
29854   ;
29855   return 0;
29856 }
29857 _ACEOF
29858 if ac_fn_c_try_link "$LINENO"; then :
29859   ac_cv_lib_lzma_lzma_code=yes
29860 else
29861   ac_cv_lib_lzma_lzma_code=no
29862 fi
29863 rm -f core conftest.err conftest.$ac_objext \
29864     conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29866 fi
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29868 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29869 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29870   passed=`expr $passed + 1`
29871 else
29872   failed=`expr $failed + 1`
29873 fi
29874
29875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29876 $as_echo_n "checking if LZMA package is complete... " >&6; }
29877   if test $passed -gt 0; then
29878     if test $failed -gt 0; then
29879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29880 $as_echo "no -- some components failed test" >&6; }
29881       have_lzma='no (failed tests)'
29882     else
29883       LZMA_LIBS='-llzma'
29884       LIBS="$LZMA_LIBS $LIBS"
29885
29886 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29887
29888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889 $as_echo "yes" >&6; }
29890       have_lzma='yes'
29891     fi
29892   else
29893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29895   fi
29896 fi
29897  if test "$have_lzma" = 'yes'; then
29898   LZMA_DELEGATE_TRUE=
29899   LZMA_DELEGATE_FALSE='#'
29900 else
29901   LZMA_DELEGATE_TRUE='#'
29902   LZMA_DELEGATE_FALSE=
29903 fi
29904
29905
29906
29907
29908 #
29909 # Check for the OpenEXR delegate library.
29910 #
29911
29912 # Check whether --with-openexr was given.
29913 if test "${with_openexr+set}" = set; then :
29914   withval=$with_openexr; with_openexr=$withval
29915 else
29916   with_openexr='yes'
29917 fi
29918
29919
29920 if test "$with_openexr" != 'yes'; then
29921     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29922 fi
29923
29924 have_openexr='no'
29925 OPENEXR_CFLAGS=""
29926 OPENEXR_LIBS=""
29927 OPENEXR_PKG=""
29928 if test "x$with_openexr" = "xyes"; then
29929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29930 $as_echo "-------------------------------------------------------------" >&6; }
29931
29932 pkg_failed=no
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29934 $as_echo_n "checking for OPENEXR... " >&6; }
29935
29936 if test -n "$OPENEXR_CFLAGS"; then
29937     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29938  elif test -n "$PKG_CONFIG"; then
29939     if test -n "$PKG_CONFIG" && \
29940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29941   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29942   ac_status=$?
29943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944   test $ac_status = 0; }; then
29945   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29946 else
29947   pkg_failed=yes
29948 fi
29949  else
29950     pkg_failed=untried
29951 fi
29952 if test -n "$OPENEXR_LIBS"; then
29953     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29954  elif test -n "$PKG_CONFIG"; then
29955     if test -n "$PKG_CONFIG" && \
29956     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29957   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29958   ac_status=$?
29959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29960   test $ac_status = 0; }; then
29961   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29962 else
29963   pkg_failed=yes
29964 fi
29965  else
29966     pkg_failed=untried
29967 fi
29968
29969
29970
29971 if test $pkg_failed = yes; then
29972
29973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29974         _pkg_short_errors_supported=yes
29975 else
29976         _pkg_short_errors_supported=no
29977 fi
29978         if test $_pkg_short_errors_supported = yes; then
29979                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29980         else
29981                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29982         fi
29983         # Put the nasty error message in config.log where it belongs
29984         echo "$OPENEXR_PKG_ERRORS" >&5
29985
29986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987 $as_echo "no" >&6; }
29988                 have_openexr=no
29989 elif test $pkg_failed = untried; then
29990         have_openexr=no
29991 else
29992         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29993         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995 $as_echo "yes" >&6; }
29996         have_openexr=yes
29997 fi
29998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29999 $as_echo "" >&6; }
30000 fi
30001
30002 if test "$have_openexr" = 'yes'; then
30003
30004 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30005
30006     if test "$with_modules" = 'no'; then
30007         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30008     fi
30009 fi
30010
30011  if test "$have_openexr" = 'yes'; then
30012   OPENEXR_DELEGATE_TRUE=
30013   OPENEXR_DELEGATE_FALSE='#'
30014 else
30015   OPENEXR_DELEGATE_TRUE='#'
30016   OPENEXR_DELEGATE_FALSE=
30017 fi
30018
30019
30020
30021
30022
30023 if test "$have_zlib" == 'yes'; then
30024 #
30025 # Check for PNG delegate library.
30026 #
30027
30028 # Check whether --with-png was given.
30029 if test "${with_png+set}" = set; then :
30030   withval=$with_png; with_png=$withval
30031 else
30032   with_png='yes'
30033 fi
30034
30035
30036 if test "$with_png" != 'yes'; then
30037     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30038 fi
30039
30040 have_png='no'
30041 PNG_LIBS=''
30042
30043 if test "$with_png" != 'no'
30044 then
30045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30046 $as_echo "-------------------------------------------------------------" >&6; }
30047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30048 $as_echo_n "checking for PNG support ... " >&6; }
30049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30050 $as_echo "" >&6; }
30051   failed=0
30052   passed=0
30053   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30054 if test "x$ac_cv_header_png_h" = xyes; then :
30055   passed=`expr $passed + 1`
30056 else
30057   failed=`expr $failed + 1`
30058 fi
30059
30060
30061
30062   if test $passed -gt 0; then
30063     for var in 5 4 2 '' ; do
30064       if test "x${var}" == 'x' ; then
30065         pnglib='png'
30066       else
30067         pnglib="png1${var}"
30068       fi
30069       if test "$have_png" == 'no' ; then
30070
30071 #       Test for compatible LIBPNG library
30072         failed=0
30073         passed=0
30074         if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30075           if test "${pnglib}" != 'png' ; then
30076             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30077 $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30078             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079 /* end confdefs.h.  */
30080 #include <stdio.h>
30081 #include <stdlib.h>
30082 #include <png.h>
30083
30084 int
30085 main ()
30086 {
30087
30088 #if PNG_LIBPNG_VER_MINOR != ${var}
30089 #error LIBPNG library must be version 1${var}!
30090 Kaboom, Kaboom
30091 #endif
30092 return 0;
30093
30094   ;
30095   return 0;
30096 }
30097 _ACEOF
30098 if ac_fn_c_try_compile "$LINENO"; then :
30099               ac_cv_libpng_ok='yes'
30100 else
30101   ac_cv_libpng_ok='no'
30102 fi
30103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30104             if test "$ac_cv_libpng_ok" = 'yes' ; then
30105               passed=`expr $passed + 1`
30106               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30107 $as_echo "yes" >&6; }
30108             else
30109               failed=`expr $failed + 1`
30110               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30111 $as_echo "no" >&6; }
30112             fi
30113           else
30114             passed=`expr $passed + 1`
30115             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30116 $as_echo "yes" >&6; }
30117           fi
30118         fi
30119
30120         if test $passed -gt 0 -a $failed -le 0
30121         then
30122           if test "1${var}" = '15' ; then
30123             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30124 $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30125 if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30126   $as_echo_n "(cached) " >&6
30127 else
30128   ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lpng15  $LIBS"
30130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30131 /* end confdefs.h.  */
30132
30133 /* Override any GCC internal prototype to avoid an error.
30134    Use char because int might match the return type of a GCC
30135    builtin and then its argument prototype would still apply.  */
30136 #ifdef __cplusplus
30137 extern "C"
30138 #endif
30139 char png_get_io_ptr ();
30140 int
30141 main ()
30142 {
30143 return png_get_io_ptr ();
30144   ;
30145   return 0;
30146 }
30147 _ACEOF
30148 if ac_fn_c_try_link "$LINENO"; then :
30149   ac_cv_lib_png15_png_get_io_ptr=yes
30150 else
30151   ac_cv_lib_png15_png_get_io_ptr=no
30152 fi
30153 rm -f core conftest.err conftest.$ac_objext \
30154     conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30156 fi
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30158 $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30159 if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30160   passed=`expr $passed + 1`
30161 else
30162   failed=`expr $failed + 1`
30163 fi
30164
30165             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30166 $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30167 if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30168   $as_echo_n "(cached) " >&6
30169 else
30170   ac_check_lib_save_LIBS=$LIBS
30171 LIBS="-lpng15  $LIBS"
30172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30173 /* end confdefs.h.  */
30174
30175 /* Override any GCC internal prototype to avoid an error.
30176    Use char because int might match the return type of a GCC
30177    builtin and then its argument prototype would still apply.  */
30178 #ifdef __cplusplus
30179 extern "C"
30180 #endif
30181 char png_longjmp ();
30182 int
30183 main ()
30184 {
30185 return png_longjmp ();
30186   ;
30187   return 0;
30188 }
30189 _ACEOF
30190 if ac_fn_c_try_link "$LINENO"; then :
30191   ac_cv_lib_png15_png_longjmp=yes
30192 else
30193   ac_cv_lib_png15_png_longjmp=no
30194 fi
30195 rm -f core conftest.err conftest.$ac_objext \
30196     conftest$ac_exeext conftest.$ac_ext
30197 LIBS=$ac_check_lib_save_LIBS
30198 fi
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30200 $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30201 if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30202   passed=`expr $passed + 1`
30203 else
30204   failed=`expr $failed + 1`
30205 fi
30206
30207           fi
30208           if test "1${var}" = '14' ; then
30209             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30210 $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30211 if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30212   $as_echo_n "(cached) " >&6
30213 else
30214   ac_check_lib_save_LIBS=$LIBS
30215 LIBS="-lpng14  $LIBS"
30216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30217 /* end confdefs.h.  */
30218
30219 /* Override any GCC internal prototype to avoid an error.
30220    Use char because int might match the return type of a GCC
30221    builtin and then its argument prototype would still apply.  */
30222 #ifdef __cplusplus
30223 extern "C"
30224 #endif
30225 char png_get_io_ptr ();
30226 int
30227 main ()
30228 {
30229 return png_get_io_ptr ();
30230   ;
30231   return 0;
30232 }
30233 _ACEOF
30234 if ac_fn_c_try_link "$LINENO"; then :
30235   ac_cv_lib_png14_png_get_io_ptr=yes
30236 else
30237   ac_cv_lib_png14_png_get_io_ptr=no
30238 fi
30239 rm -f core conftest.err conftest.$ac_objext \
30240     conftest$ac_exeext conftest.$ac_ext
30241 LIBS=$ac_check_lib_save_LIBS
30242 fi
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30244 $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30245 if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30246   passed=`expr $passed + 1`
30247 else
30248   failed=`expr $failed + 1`
30249 fi
30250
30251             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30252 $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30253 if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30254   $as_echo_n "(cached) " >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lpng14  $LIBS"
30258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30259 /* end confdefs.h.  */
30260
30261 /* Override any GCC internal prototype to avoid an error.
30262    Use char because int might match the return type of a GCC
30263    builtin and then its argument prototype would still apply.  */
30264 #ifdef __cplusplus
30265 extern "C"
30266 #endif
30267 char png_get_io_state ();
30268 int
30269 main ()
30270 {
30271 return png_get_io_state ();
30272   ;
30273   return 0;
30274 }
30275 _ACEOF
30276 if ac_fn_c_try_link "$LINENO"; then :
30277   ac_cv_lib_png14_png_get_io_state=yes
30278 else
30279   ac_cv_lib_png14_png_get_io_state=no
30280 fi
30281 rm -f core conftest.err conftest.$ac_objext \
30282     conftest$ac_exeext conftest.$ac_ext
30283 LIBS=$ac_check_lib_save_LIBS
30284 fi
30285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30286 $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30287 if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30288   passed=`expr $passed + 1`
30289 else
30290   failed=`expr $failed + 1`
30291 fi
30292
30293           fi
30294           if test "1${var}" = '12' ; then
30295             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30296 $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30297 if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30298   $as_echo_n "(cached) " >&6
30299 else
30300   ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lpng12  $LIBS"
30302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303 /* end confdefs.h.  */
30304
30305 /* Override any GCC internal prototype to avoid an error.
30306    Use char because int might match the return type of a GCC
30307    builtin and then its argument prototype would still apply.  */
30308 #ifdef __cplusplus
30309 extern "C"
30310 #endif
30311 char png_get_io_ptr ();
30312 int
30313 main ()
30314 {
30315 return png_get_io_ptr ();
30316   ;
30317   return 0;
30318 }
30319 _ACEOF
30320 if ac_fn_c_try_link "$LINENO"; then :
30321   ac_cv_lib_png12_png_get_io_ptr=yes
30322 else
30323   ac_cv_lib_png12_png_get_io_ptr=no
30324 fi
30325 rm -f core conftest.err conftest.$ac_objext \
30326     conftest$ac_exeext conftest.$ac_ext
30327 LIBS=$ac_check_lib_save_LIBS
30328 fi
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30330 $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30331 if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30332   passed=`expr $passed + 1`
30333 else
30334   failed=`expr $failed + 1`
30335 fi
30336
30337           fi
30338           if test "1${var}" = '1' ; then
30339               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30340 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30341 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30342   $as_echo_n "(cached) " >&6
30343 else
30344   ac_check_lib_save_LIBS=$LIBS
30345 LIBS="-lpng  $LIBS"
30346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30347 /* end confdefs.h.  */
30348
30349 /* Override any GCC internal prototype to avoid an error.
30350    Use char because int might match the return type of a GCC
30351    builtin and then its argument prototype would still apply.  */
30352 #ifdef __cplusplus
30353 extern "C"
30354 #endif
30355 char png_get_io_ptr ();
30356 int
30357 main ()
30358 {
30359 return png_get_io_ptr ();
30360   ;
30361   return 0;
30362 }
30363 _ACEOF
30364 if ac_fn_c_try_link "$LINENO"; then :
30365   ac_cv_lib_png_png_get_io_ptr=yes
30366 else
30367   ac_cv_lib_png_png_get_io_ptr=no
30368 fi
30369 rm -f core conftest.err conftest.$ac_objext \
30370     conftest$ac_exeext conftest.$ac_ext
30371 LIBS=$ac_check_lib_save_LIBS
30372 fi
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30374 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30375 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30376   passed=`expr $passed + 1`
30377 else
30378   failed=`expr $failed + 1`
30379 fi
30380
30381           fi
30382           if test $passed -gt 0 -a $failed -le 0 ; then
30383             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30384 $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30385             if test $passed -gt 0 ; then
30386               if test $failed -gt 0 ; then
30387                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30388 $as_echo "no -- some components failed test" >&6; }
30389                 have_png='no (failed tests)'
30390               else
30391                 PNG_LIBS="-l${pnglib}"
30392                 LIBS="$PNG_LIBS $LIBS"
30393
30394 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30395
30396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397 $as_echo "yes" >&6; }
30398                 have_png='yes'
30399               fi
30400             fi
30401           fi
30402         fi
30403       fi
30404     done
30405   fi
30406 fi
30407
30408  if test "$have_png" = 'yes'; then
30409   PNG_DELEGATE_TRUE=
30410   PNG_DELEGATE_FALSE='#'
30411 else
30412   PNG_DELEGATE_TRUE='#'
30413   PNG_DELEGATE_FALSE=
30414 fi
30415
30416
30417 else
30418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG requires zlib support" >&5
30419 $as_echo "PNG requires zlib support" >&6; }
30420 fi
30421
30422
30423 #
30424 # Check for RSVG delegate library.
30425 #
30426
30427 # Check whether --with-rsvg was given.
30428 if test "${with_rsvg+set}" = set; then :
30429   withval=$with_rsvg; with_rsvg=$withval
30430 else
30431   with_rsvg=$have_x
30432 fi
30433
30434
30435 if test "$with_rsvg" != 'yes'; then
30436     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30437 fi
30438
30439 have_rsvg='no'
30440 have_cairo='no'
30441 RSVG_CFLAGS=""
30442 RSVG_LIBS=""
30443 RSVG_PKG=""
30444 if test "x$with_rsvg" = "xyes"; then
30445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30446 $as_echo "-------------------------------------------------------------" >&6; }
30447
30448 pkg_failed=no
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30450 $as_echo_n "checking for RSVG... " >&6; }
30451
30452 if test -n "$RSVG_CFLAGS"; then
30453     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30454  elif test -n "$PKG_CONFIG"; then
30455     if test -n "$PKG_CONFIG" && \
30456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30457   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30458   ac_status=$?
30459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30460   test $ac_status = 0; }; then
30461   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30462 else
30463   pkg_failed=yes
30464 fi
30465  else
30466     pkg_failed=untried
30467 fi
30468 if test -n "$RSVG_LIBS"; then
30469     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30470  elif test -n "$PKG_CONFIG"; then
30471     if test -n "$PKG_CONFIG" && \
30472     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30473   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30474   ac_status=$?
30475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476   test $ac_status = 0; }; then
30477   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30478 else
30479   pkg_failed=yes
30480 fi
30481  else
30482     pkg_failed=untried
30483 fi
30484
30485
30486
30487 if test $pkg_failed = yes; then
30488
30489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30490         _pkg_short_errors_supported=yes
30491 else
30492         _pkg_short_errors_supported=no
30493 fi
30494         if test $_pkg_short_errors_supported = yes; then
30495                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30496         else
30497                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30498         fi
30499         # Put the nasty error message in config.log where it belongs
30500         echo "$RSVG_PKG_ERRORS" >&5
30501
30502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30503 $as_echo "no" >&6; }
30504                 have_rsvg=no
30505 elif test $pkg_failed = untried; then
30506         have_rsvg=no
30507 else
30508         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30509         RSVG_LIBS=$pkg_cv_RSVG_LIBS
30510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30511 $as_echo "yes" >&6; }
30512         have_rsvg=yes
30513 fi
30514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30515 $as_echo "" >&6; }
30516
30517 pkg_failed=no
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30519 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30520
30521 if test -n "$CAIRO_SVG_CFLAGS"; then
30522     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30523  elif test -n "$PKG_CONFIG"; then
30524     if test -n "$PKG_CONFIG" && \
30525     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30526   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30527   ac_status=$?
30528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30529   test $ac_status = 0; }; then
30530   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30531 else
30532   pkg_failed=yes
30533 fi
30534  else
30535     pkg_failed=untried
30536 fi
30537 if test -n "$CAIRO_SVG_LIBS"; then
30538     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30539  elif test -n "$PKG_CONFIG"; then
30540     if test -n "$PKG_CONFIG" && \
30541     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30542   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30543   ac_status=$?
30544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545   test $ac_status = 0; }; then
30546   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30547 else
30548   pkg_failed=yes
30549 fi
30550  else
30551     pkg_failed=untried
30552 fi
30553
30554
30555
30556 if test $pkg_failed = yes; then
30557
30558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30559         _pkg_short_errors_supported=yes
30560 else
30561         _pkg_short_errors_supported=no
30562 fi
30563         if test $_pkg_short_errors_supported = yes; then
30564                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30565         else
30566                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30567         fi
30568         # Put the nasty error message in config.log where it belongs
30569         echo "$CAIRO_SVG_PKG_ERRORS" >&5
30570
30571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572 $as_echo "no" >&6; }
30573                 have_cairo=no
30574 elif test $pkg_failed = untried; then
30575         have_cairo=no
30576 else
30577         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30578         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30579         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30580 $as_echo "yes" >&6; }
30581         have_cairo=yes
30582 fi
30583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30584 $as_echo "" >&6; }
30585 fi
30586
30587 if test "$have_rsvg" = 'yes'; then
30588
30589 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
30590
30591     if test "$with_modules" = 'no'; then
30592         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30593     fi
30594 fi
30595
30596 if test "$have_cairo" = 'yes'; then
30597
30598 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
30599
30600     if test "$with_modules" = 'no'; then
30601         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30602     fi
30603 fi
30604
30605  if test "$have_rsvg" = 'yes'; then
30606   RSVG_DELEGATE_TRUE=
30607   RSVG_DELEGATE_FALSE='#'
30608 else
30609   RSVG_DELEGATE_TRUE='#'
30610   RSVG_DELEGATE_FALSE=
30611 fi
30612
30613  if test "$have_cairo" = 'yes'; then
30614   CAIRO_DELEGATE_TRUE=
30615   CAIRO_DELEGATE_FALSE='#'
30616 else
30617   CAIRO_DELEGATE_TRUE='#'
30618   CAIRO_DELEGATE_FALSE=
30619 fi
30620
30621
30622
30623
30624
30625 #
30626 # Check for TIFF delegate library.
30627 #
30628
30629 # Check whether --with-tiff was given.
30630 if test "${with_tiff+set}" = set; then :
30631   withval=$with_tiff; with_tiff=$withval
30632 else
30633   with_tiff='yes'
30634 fi
30635
30636
30637 if test "$with_tiff" != 'yes'; then
30638     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30639 fi
30640
30641 have_tiff='no'
30642 TIFF_LIBS=''
30643 if test "$with_tiff" != 'no'; then
30644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30645 $as_echo "-------------------------------------------------------------" >&6; }
30646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
30647 $as_echo_n "checking for TIFF... " >&6; }
30648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30649 $as_echo "" >&6; }
30650     failed=0
30651     passed=0
30652     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
30653 if test "x$ac_cv_header_tiff_h" = xyes; then :
30654   passed=`expr $passed + 1`
30655 else
30656   failed=`expr $failed + 1`
30657 fi
30658
30659
30660     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
30661 if test "x$ac_cv_header_tiffio_h" = xyes; then :
30662   passed=`expr $passed + 1`
30663 else
30664   failed=`expr $failed + 1`
30665 fi
30666
30667
30668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
30669 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
30670 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
30671   $as_echo_n "(cached) " >&6
30672 else
30673   ac_check_lib_save_LIBS=$LIBS
30674 LIBS="-ltiff  $LIBS"
30675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30676 /* end confdefs.h.  */
30677
30678 /* Override any GCC internal prototype to avoid an error.
30679    Use char because int might match the return type of a GCC
30680    builtin and then its argument prototype would still apply.  */
30681 #ifdef __cplusplus
30682 extern "C"
30683 #endif
30684 char TIFFOpen ();
30685 int
30686 main ()
30687 {
30688 return TIFFOpen ();
30689   ;
30690   return 0;
30691 }
30692 _ACEOF
30693 if ac_fn_c_try_link "$LINENO"; then :
30694   ac_cv_lib_tiff_TIFFOpen=yes
30695 else
30696   ac_cv_lib_tiff_TIFFOpen=no
30697 fi
30698 rm -f core conftest.err conftest.$ac_objext \
30699     conftest$ac_exeext conftest.$ac_ext
30700 LIBS=$ac_check_lib_save_LIBS
30701 fi
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30703 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
30704 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
30705   passed=`expr $passed + 1`
30706 else
30707   failed=`expr $failed + 1`
30708 fi
30709
30710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
30711 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
30712 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
30713   $as_echo_n "(cached) " >&6
30714 else
30715   ac_check_lib_save_LIBS=$LIBS
30716 LIBS="-ltiff  $LIBS"
30717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30718 /* end confdefs.h.  */
30719
30720 /* Override any GCC internal prototype to avoid an error.
30721    Use char because int might match the return type of a GCC
30722    builtin and then its argument prototype would still apply.  */
30723 #ifdef __cplusplus
30724 extern "C"
30725 #endif
30726 char TIFFClientOpen ();
30727 int
30728 main ()
30729 {
30730 return TIFFClientOpen ();
30731   ;
30732   return 0;
30733 }
30734 _ACEOF
30735 if ac_fn_c_try_link "$LINENO"; then :
30736   ac_cv_lib_tiff_TIFFClientOpen=yes
30737 else
30738   ac_cv_lib_tiff_TIFFClientOpen=no
30739 fi
30740 rm -f core conftest.err conftest.$ac_objext \
30741     conftest$ac_exeext conftest.$ac_ext
30742 LIBS=$ac_check_lib_save_LIBS
30743 fi
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
30745 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
30746 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
30747   passed=`expr $passed + 1`
30748 else
30749   failed=`expr $failed + 1`
30750 fi
30751
30752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30753 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
30754 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
30755   $as_echo_n "(cached) " >&6
30756 else
30757   ac_check_lib_save_LIBS=$LIBS
30758 LIBS="-ltiff  $LIBS"
30759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30760 /* end confdefs.h.  */
30761
30762 /* Override any GCC internal prototype to avoid an error.
30763    Use char because int might match the return type of a GCC
30764    builtin and then its argument prototype would still apply.  */
30765 #ifdef __cplusplus
30766 extern "C"
30767 #endif
30768 char TIFFIsBigEndian ();
30769 int
30770 main ()
30771 {
30772 return TIFFIsBigEndian ();
30773   ;
30774   return 0;
30775 }
30776 _ACEOF
30777 if ac_fn_c_try_link "$LINENO"; then :
30778   ac_cv_lib_tiff_TIFFIsBigEndian=yes
30779 else
30780   ac_cv_lib_tiff_TIFFIsBigEndian=no
30781 fi
30782 rm -f core conftest.err conftest.$ac_objext \
30783     conftest$ac_exeext conftest.$ac_ext
30784 LIBS=$ac_check_lib_save_LIBS
30785 fi
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30787 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
30788 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
30789   passed=`expr $passed + 1`
30790 else
30791   failed=`expr $failed + 1`
30792 fi
30793
30794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
30795 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
30796 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
30797   $as_echo_n "(cached) " >&6
30798 else
30799   ac_check_lib_save_LIBS=$LIBS
30800 LIBS="-ltiff  $LIBS"
30801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802 /* end confdefs.h.  */
30803
30804 /* Override any GCC internal prototype to avoid an error.
30805    Use char because int might match the return type of a GCC
30806    builtin and then its argument prototype would still apply.  */
30807 #ifdef __cplusplus
30808 extern "C"
30809 #endif
30810 char TIFFIsByteSwapped ();
30811 int
30812 main ()
30813 {
30814 return TIFFIsByteSwapped ();
30815   ;
30816   return 0;
30817 }
30818 _ACEOF
30819 if ac_fn_c_try_link "$LINENO"; then :
30820   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30821 else
30822   ac_cv_lib_tiff_TIFFIsByteSwapped=no
30823 fi
30824 rm -f core conftest.err conftest.$ac_objext \
30825     conftest$ac_exeext conftest.$ac_ext
30826 LIBS=$ac_check_lib_save_LIBS
30827 fi
30828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
30829 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
30830 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
30831   passed=`expr $passed + 1`
30832 else
30833   failed=`expr $failed + 1`
30834 fi
30835
30836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
30837 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
30838 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
30839   $as_echo_n "(cached) " >&6
30840 else
30841   ac_check_lib_save_LIBS=$LIBS
30842 LIBS="-ltiff  $LIBS"
30843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30844 /* end confdefs.h.  */
30845
30846 /* Override any GCC internal prototype to avoid an error.
30847    Use char because int might match the return type of a GCC
30848    builtin and then its argument prototype would still apply.  */
30849 #ifdef __cplusplus
30850 extern "C"
30851 #endif
30852 char TIFFReadRGBATile ();
30853 int
30854 main ()
30855 {
30856 return TIFFReadRGBATile ();
30857   ;
30858   return 0;
30859 }
30860 _ACEOF
30861 if ac_fn_c_try_link "$LINENO"; then :
30862   ac_cv_lib_tiff_TIFFReadRGBATile=yes
30863 else
30864   ac_cv_lib_tiff_TIFFReadRGBATile=no
30865 fi
30866 rm -f core conftest.err conftest.$ac_objext \
30867     conftest$ac_exeext conftest.$ac_ext
30868 LIBS=$ac_check_lib_save_LIBS
30869 fi
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
30871 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
30872 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
30873   passed=`expr $passed + 1`
30874 else
30875   failed=`expr $failed + 1`
30876 fi
30877
30878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
30879 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
30880 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
30881   $as_echo_n "(cached) " >&6
30882 else
30883   ac_check_lib_save_LIBS=$LIBS
30884 LIBS="-ltiff  $LIBS"
30885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30886 /* end confdefs.h.  */
30887
30888 /* Override any GCC internal prototype to avoid an error.
30889    Use char because int might match the return type of a GCC
30890    builtin and then its argument prototype would still apply.  */
30891 #ifdef __cplusplus
30892 extern "C"
30893 #endif
30894 char TIFFReadRGBAStrip ();
30895 int
30896 main ()
30897 {
30898 return TIFFReadRGBAStrip ();
30899   ;
30900   return 0;
30901 }
30902 _ACEOF
30903 if ac_fn_c_try_link "$LINENO"; then :
30904   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30905 else
30906   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
30907 fi
30908 rm -f core conftest.err conftest.$ac_objext \
30909     conftest$ac_exeext conftest.$ac_ext
30910 LIBS=$ac_check_lib_save_LIBS
30911 fi
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
30913 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
30914 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
30915   passed=`expr $passed + 1`
30916 else
30917   failed=`expr $failed + 1`
30918 fi
30919
30920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
30921 $as_echo_n "checking if TIFF package is complete... " >&6; }
30922     if test $passed -gt 0; then
30923         if test $failed -gt 0; then
30924             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30925 $as_echo "no -- some components failed test" >&6; }
30926             have_tiff='no (failed tests)'
30927         else
30928             TIFF_LIBS='-ltiff'
30929             LIBS="$TIFF_LIBS $LIBS"
30930
30931 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
30932
30933             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30934 $as_echo "yes" >&6; }
30935             have_tiff='yes'
30936             for ac_header in tiffconf.h
30937 do :
30938   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
30939 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
30940   cat >>confdefs.h <<_ACEOF
30941 #define HAVE_TIFFCONF_H 1
30942 _ACEOF
30943
30944 fi
30945
30946 done
30947
30948             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
30949               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30950               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
30951 do :
30952   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30955   cat >>confdefs.h <<_ACEOF
30956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30957 _ACEOF
30958
30959 fi
30960 done
30961
30962         fi
30963     else
30964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30965 $as_echo "no" >&6; }
30966     fi
30967 fi
30968  if test "$have_tiff" = 'yes'; then
30969   TIFF_DELEGATE_TRUE=
30970   TIFF_DELEGATE_FALSE='#'
30971 else
30972   TIFF_DELEGATE_TRUE='#'
30973   TIFF_DELEGATE_FALSE=
30974 fi
30975
30976
30977
30978
30979 #
30980 # Check for WEBP delegate library.
30981 #
30982
30983 # Check whether --with-webp was given.
30984 if test "${with_webp+set}" = set; then :
30985   withval=$with_webp; with_webp=$withval
30986 else
30987   with_webp='yes'
30988 fi
30989
30990
30991 if test "$with_webp" != 'yes'; then
30992     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30993 fi
30994
30995 have_webp='no'
30996 WEBP_LIBS=''
30997 if test "$with_webp" != 'no'; then
30998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30999 $as_echo "-------------------------------------------------------------" >&6; }
31000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31001 $as_echo_n "checking for WEBP... " >&6; }
31002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31003 $as_echo "" >&6; }
31004     failed=0
31005     passed=0
31006     ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31007 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31008   passed=`expr $passed + 1`
31009 else
31010   failed=`expr $failed + 1`
31011 fi
31012
31013
31014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31015 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31016 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31017   $as_echo_n "(cached) " >&6
31018 else
31019   ac_check_lib_save_LIBS=$LIBS
31020 LIBS="-lwebp  $LIBS"
31021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31022 /* end confdefs.h.  */
31023
31024 /* Override any GCC internal prototype to avoid an error.
31025    Use char because int might match the return type of a GCC
31026    builtin and then its argument prototype would still apply.  */
31027 #ifdef __cplusplus
31028 extern "C"
31029 #endif
31030 char WebPDecodeRGB ();
31031 int
31032 main ()
31033 {
31034 return WebPDecodeRGB ();
31035   ;
31036   return 0;
31037 }
31038 _ACEOF
31039 if ac_fn_c_try_link "$LINENO"; then :
31040   ac_cv_lib_webp_WebPDecodeRGB=yes
31041 else
31042   ac_cv_lib_webp_WebPDecodeRGB=no
31043 fi
31044 rm -f core conftest.err conftest.$ac_objext \
31045     conftest$ac_exeext conftest.$ac_ext
31046 LIBS=$ac_check_lib_save_LIBS
31047 fi
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31049 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31050 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31051   passed=`expr $passed + 1`
31052 else
31053   failed=`expr $failed + 1`
31054 fi
31055
31056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31057 $as_echo_n "checking if WEBP package is complete... " >&6; }
31058     if test $passed -gt 0; then
31059         if test $failed -gt 0; then
31060             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31061 $as_echo "no -- some components failed test" >&6; }
31062             have_webp='no (failed tests)'
31063         else
31064             WEBP_LIBS='-lwebp'
31065             LIBS="$WEBP_LIBS $LIBS"
31066
31067 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31068
31069             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31070 $as_echo "yes" >&6; }
31071             have_webp='yes'
31072         fi
31073     else
31074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31075 $as_echo "no" >&6; }
31076     fi
31077 fi
31078  if test "$have_webp" = 'yes'; then
31079   WEBP_DELEGATE_TRUE=
31080   WEBP_DELEGATE_FALSE='#'
31081 else
31082   WEBP_DELEGATE_TRUE='#'
31083   WEBP_DELEGATE_FALSE=
31084 fi
31085
31086
31087
31088
31089 #
31090 # Set Windows font directory.
31091 #
31092
31093 # Check whether --with-windows-font-dir was given.
31094 if test "${with_windows_font_dir+set}" = set; then :
31095   withval=$with_windows_font_dir; with_windows_font_dir=$withval
31096 else
31097   with_windows_font_dir=''
31098 fi
31099
31100 if test "$with_windows_font_dir" != '' ; then
31101     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31102 fi
31103
31104
31105 #
31106 # Check for WMF delegate library.
31107 #
31108
31109 # Check whether --with-wmf was given.
31110 if test "${with_wmf+set}" = set; then :
31111   withval=$with_wmf; with_wmf=$withval
31112 else
31113   with_wmf='yes'
31114 fi
31115
31116
31117 if test "$with_wmf" != 'yes'; then
31118     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31119 fi
31120
31121 have_wmf='no'
31122 WMF_LIBS=''
31123 if test "$with_wmf" != 'no'; then
31124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31125 $as_echo "-------------------------------------------------------------" >&6; }
31126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31127 $as_echo_n "checking for WMF... " >&6; }
31128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31129 $as_echo "" >&6; }
31130     failed=0
31131     passed=0
31132     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31133 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31134   passed=`expr $passed + 1`
31135 else
31136   failed=`expr $failed + 1`
31137 fi
31138
31139
31140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31141 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31142 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
31143   $as_echo_n "(cached) " >&6
31144 else
31145   ac_check_lib_save_LIBS=$LIBS
31146 LIBS="-lwmf "-lwmflite" $LIBS"
31147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31148 /* end confdefs.h.  */
31149
31150 /* Override any GCC internal prototype to avoid an error.
31151    Use char because int might match the return type of a GCC
31152    builtin and then its argument prototype would still apply.  */
31153 #ifdef __cplusplus
31154 extern "C"
31155 #endif
31156 char wmf_eps_function ();
31157 int
31158 main ()
31159 {
31160 return wmf_eps_function ();
31161   ;
31162   return 0;
31163 }
31164 _ACEOF
31165 if ac_fn_c_try_link "$LINENO"; then :
31166   ac_cv_lib_wmf_wmf_eps_function=yes
31167 else
31168   ac_cv_lib_wmf_wmf_eps_function=no
31169 fi
31170 rm -f core conftest.err conftest.$ac_objext \
31171     conftest$ac_exeext conftest.$ac_ext
31172 LIBS=$ac_check_lib_save_LIBS
31173 fi
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31175 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31176 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31177   passed=`expr $passed + 1`
31178 else
31179   failed=`expr $failed + 1`
31180 fi
31181
31182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31183 $as_echo_n "checking if WMF package is complete... " >&6; }
31184     if test $passed -gt 0; then
31185         if test $failed -gt 0; then
31186             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31187 $as_echo "no -- some components failed test" >&6; }
31188             have_wmf='no (failed tests)'
31189         else
31190             WMF_LIBS='-lwmf -lwmflite'
31191             LIBS="$WMF_LIBS $LIBS"
31192
31193 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
31194
31195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196 $as_echo "yes" >&6; }
31197             have_wmf='yes'
31198         fi
31199     else
31200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31201 $as_echo "no" >&6; }
31202     fi
31203 fi
31204  if test "$have_wmf" = 'yes'; then
31205   WMF_DELEGATE_TRUE=
31206   WMF_DELEGATE_FALSE='#'
31207 else
31208   WMF_DELEGATE_TRUE='#'
31209   WMF_DELEGATE_FALSE=
31210 fi
31211
31212
31213
31214
31215
31216
31217 #
31218 # Check for XML delegate library.
31219 #
31220
31221 # Check whether --with-xml was given.
31222 if test "${with_xml+set}" = set; then :
31223   withval=$with_xml; with_xml=$withval
31224 else
31225   with_xml=$have_x
31226 fi
31227
31228
31229 if test "$with_xml" != 'yes' ; then
31230     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31231 fi
31232
31233 have_xml='no'
31234 XML_LIBS=''
31235 if test "$with_xml" != 'no'; then
31236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31237 $as_echo "-------------------------------------------------------------" >&6; }
31238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31239 $as_echo_n "checking for XML... " >&6; }
31240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31241 $as_echo "" >&6; }
31242     PERSIST_LDFLAGS=$LDFLAGS
31243     PERSIST_CPPFLAGS=$CPPFLAGS
31244     xml2_config=''
31245     for ac_prog in xml2-config
31246 do
31247   # Extract the first word of "$ac_prog", so it can be a program name with args.
31248 set dummy $ac_prog; ac_word=$2
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31250 $as_echo_n "checking for $ac_word... " >&6; }
31251 if ${ac_cv_prog_xml2_config+:} false; then :
31252   $as_echo_n "(cached) " >&6
31253 else
31254   if test -n "$xml2_config"; then
31255   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
31256 else
31257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31258 for as_dir in $PATH
31259 do
31260   IFS=$as_save_IFS
31261   test -z "$as_dir" && as_dir=.
31262     for ac_exec_ext in '' $ac_executable_extensions; do
31263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31264     ac_cv_prog_xml2_config="$ac_prog"
31265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31266     break 2
31267   fi
31268 done
31269   done
31270 IFS=$as_save_IFS
31271
31272 fi
31273 fi
31274 xml2_config=$ac_cv_prog_xml2_config
31275 if test -n "$xml2_config"; then
31276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31277 $as_echo "$xml2_config" >&6; }
31278 else
31279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31280 $as_echo "no" >&6; }
31281 fi
31282
31283
31284   test -n "$xml2_config" && break
31285 done
31286     if test -n "$xml2_config"; then
31287         # Debian installs libxml headers under /usr/include/libxml2/libxml with
31288         # the shared library installed under /usr/lib, whereas the package
31289         # installs itself under $prefix/libxml and $prefix/lib.
31290         xml2_prefix=`xml2-config --prefix`
31291         if test -d "${xml2_prefix}/include/libxml2"; then
31292             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31293         fi
31294         if test "${xml2_prefix}" != '/usr'; then
31295             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31296         fi
31297     fi
31298     failed=0
31299     passed=0
31300     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31301 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31302   passed=`expr $passed + 1`
31303 else
31304   failed=`expr $failed + 1`
31305 fi
31306
31307
31308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
31309 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
31310 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
31311   $as_echo_n "(cached) " >&6
31312 else
31313   ac_check_lib_save_LIBS=$LIBS
31314 LIBS="-lxml2  $LIBS"
31315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31316 /* end confdefs.h.  */
31317
31318 /* Override any GCC internal prototype to avoid an error.
31319    Use char because int might match the return type of a GCC
31320    builtin and then its argument prototype would still apply.  */
31321 #ifdef __cplusplus
31322 extern "C"
31323 #endif
31324 char xmlParseExternalEntity ();
31325 int
31326 main ()
31327 {
31328 return xmlParseExternalEntity ();
31329   ;
31330   return 0;
31331 }
31332 _ACEOF
31333 if ac_fn_c_try_link "$LINENO"; then :
31334   ac_cv_lib_xml2_xmlParseExternalEntity=yes
31335 else
31336   ac_cv_lib_xml2_xmlParseExternalEntity=no
31337 fi
31338 rm -f core conftest.err conftest.$ac_objext \
31339     conftest$ac_exeext conftest.$ac_ext
31340 LIBS=$ac_check_lib_save_LIBS
31341 fi
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
31343 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
31344 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
31345   passed=`expr $passed + 1`
31346 else
31347   failed=`expr $failed + 1`
31348 fi
31349
31350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31351 $as_echo_n "checking if XML package is complete... " >&6; }
31352     if test $passed -gt 0; then
31353         if test $failed -gt 0; then
31354             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31355 $as_echo "no -- some components failed test" >&6; }
31356             have_xml='no (failed tests)'
31357             LDFLAGS="$PERSIST_LDFLAGS"
31358             CPPFLAGS="$PERSIST_CPPFLAGS"
31359         else
31360             XML_LIBS='-lxml2'
31361             LIBS="$XML_LIBS $LIBS"
31362
31363 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31364
31365             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31366 $as_echo "yes" >&6; }
31367             have_xml='yes'
31368         fi
31369     else
31370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371 $as_echo "no" >&6; }
31372     fi
31373 fi
31374  if test "$have_xml" = 'yes'; then
31375   XML_DELEGATE_TRUE=
31376   XML_DELEGATE_FALSE='#'
31377 else
31378   XML_DELEGATE_TRUE='#'
31379   XML_DELEGATE_FALSE=
31380 fi
31381
31382
31383
31384
31385 # Substitute compiler name to build/link PerlMagick
31386 #
31387
31388
31389 #
31390 # Configure install Paths
31391 #
31392
31393 # Subdirectory under lib to place ImageMagick lib files
31394 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31395
31396 cat >>confdefs.h <<_ACEOF
31397 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31398 _ACEOF
31399
31400
31401 # Path to ImageMagick bin directory
31402 EXECUTABLE_PATH="${BIN_DIR}"
31403 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31404 case "${build_os}" in
31405   mingw* )
31406     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31407     ;;
31408 esac
31409
31410 cat >>confdefs.h <<_ACEOF
31411 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31412 _ACEOF
31413
31414
31415
31416 # Path to ImageMagick lib
31417 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31418 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31419 case "${build_os}" in
31420   mingw* )
31421     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31422     ;;
31423 esac
31424
31425 cat >>confdefs.h <<_ACEOF
31426 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31427 _ACEOF
31428
31429
31430
31431 #
31432 # Subdirectory under lib to place ImageMagick coder module files
31433 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31434
31435 cat >>confdefs.h <<_ACEOF
31436 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31437 _ACEOF
31438
31439 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31440 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31441 case "${build_os}" in
31442   mingw* )
31443     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31444     ;;
31445 esac
31446
31447 cat >>confdefs.h <<_ACEOF
31448 #define CODER_PATH "$DEFINE_CODER_PATH"
31449 _ACEOF
31450
31451
31452
31453 #
31454 # Subdirectory under lib to place ImageMagick filter module files
31455 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31456
31457 cat >>confdefs.h <<_ACEOF
31458 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31459 _ACEOF
31460
31461 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31462 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31463 case "${build_os}" in
31464   mingw* )
31465     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31466     ;;
31467 esac
31468
31469 cat >>confdefs.h <<_ACEOF
31470 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31471 _ACEOF
31472
31473
31474
31475 #
31476 # Path to ImageMagick documentation files
31477 DOCUMENTATION_RELATIVE_PATH=""
31478 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31479 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31480 case "${build_os}" in
31481   mingw* )
31482     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31483     ;;
31484 esac
31485
31486 cat >>confdefs.h <<_ACEOF
31487 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31488 _ACEOF
31489
31490
31491
31492 # Subdirectory to place ImageMagick configuration files
31493 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
31494
31495 cat >>confdefs.h <<_ACEOF
31496 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31497 _ACEOF
31498
31499 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31500 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31501 case "${build_os}" in
31502   mingw* )
31503     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31504     ;;
31505 esac
31506
31507 cat >>confdefs.h <<_ACEOF
31508 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31509 _ACEOF
31510
31511
31512
31513 # Subdirectory to place ImageMagick configuration files
31514 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
31515
31516 cat >>confdefs.h <<_ACEOF
31517 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
31518 _ACEOF
31519
31520 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31521 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
31522 case "${build_os}" in
31523   mingw* )
31524     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
31525     ;;
31526 esac
31527
31528 cat >>confdefs.h <<_ACEOF
31529 #define SHARE_PATH "$DEFINE_SHARE_PATH"
31530 _ACEOF
31531
31532
31533
31534 #
31535 # program_transform_name is formed for use in a Makefile, so create a
31536 # modified version for use in a shell script.
31537 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31538
31539 # Default delegate definitions
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31541 $as_echo "-------------------------------------------------------------" >&6; }
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
31543 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31545 $as_echo "" >&6; }
31546 AutotraceDecodeDelegateDefault='autotrace'
31547 BlenderDecodeDelegateDefault='blender'
31548 BZIPDelegateDefault='bzip2'
31549 BrowseDelegateDefault='xdg-open'
31550 CGMDecodeDelegateDefault='ralcgm'
31551 CatDelegateDefault='cat'
31552 DNGDecodeDelegateDefault='ufraw-batch'
31553 GVCDecodeDelegateDefault='dot'
31554 DVIDecodeDelegateDefault='dvips'
31555 EchoDelegateDefault='echo'
31556 EditorDelegateDefault='xterm'
31557 FIGDecodeDelegateDefault='fig2dev'
31558 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31559 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31560 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31561 GnuplotDecodeDelegateDefault='gnuplot'
31562 HPGLDecodeDelegateDefault='hp2xx'
31563 HTMLDecodeDelegateDefault='html2ps'
31564 ILBMDecodeDelegateDefault='ilbmtoppm'
31565 ILBMEncodeDelegateDefault='ppmtoilbm'
31566 LPDelegateDefault='lp'
31567 LPRDelegateDefault='lpr'
31568 LZWDecodeDelegateDefault='uncompress'
31569 LZWEncodeDelegateDefault='compress'
31570 LaunchDelegateDefault='gimp'
31571 MANDelegateDefault='groff'
31572 MPEGDecodeDelegateDefault='ffmpeg'
31573 MPEGEncodeDelegateDefault='ffmpeg'
31574 MrSIDDecodeDelegateDefault='mrsidgeodecode'
31575 MVDelegateDefault='mv'
31576 PCLDelegateDefault='pcl6'
31577 PGPDecodeDelegateDefault='pgpv'
31578 POVDelegateDefault='povray'
31579 if test "$native_win32_build" = 'yes'; then
31580     PSDelegateDefault='gswin32c'
31581 elif test "$gslib_framework" = 'yes'; then
31582     PSDelegateDefault='gsc'
31583 else
31584     PSDelegateDefault='gs'
31585 fi
31586 RLEEncodeDelegateDefault='rawtorle'
31587 RMDelegateDefault='rm'
31588 RSVGDecodeDelegateDefault='rsvg'
31589 SCANDecodeDelegateDefault='scanimage'
31590 TXTDelegateDefault='enscript'
31591 UniconvertorDelegateDefault='uniconvertor'
31592 WMFDecodeDelegateDefault='wmf2eps'
31593 WWWDecodeDelegateDefault='curl'
31594 XPSDelegateDefault='gxps'
31595 ZipDelegateDefault='gzip'
31596
31597 # Search for delegates
31598 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31599 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31601 $as_echo_n "checking for $ac_word... " >&6; }
31602 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
31603   $as_echo_n "(cached) " >&6
31604 else
31605   case $AutotraceDecodeDelegate in
31606   [\\/]* | ?:[\\/]*)
31607   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31608   ;;
31609   *)
31610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31611 for as_dir in $PATH
31612 do
31613   IFS=$as_save_IFS
31614   test -z "$as_dir" && as_dir=.
31615     for ac_exec_ext in '' $ac_executable_extensions; do
31616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31617     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31619     break 2
31620   fi
31621 done
31622   done
31623 IFS=$as_save_IFS
31624
31625   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31626   ;;
31627 esac
31628 fi
31629 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31630 if test -n "$AutotraceDecodeDelegate"; then
31631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
31632 $as_echo "$AutotraceDecodeDelegate" >&6; }
31633 else
31634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31635 $as_echo "no" >&6; }
31636 fi
31637
31638
31639 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31640 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31642 $as_echo_n "checking for $ac_word... " >&6; }
31643 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
31644   $as_echo_n "(cached) " >&6
31645 else
31646   case $BlenderDecodeDelegate in
31647   [\\/]* | ?:[\\/]*)
31648   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31649   ;;
31650   *)
31651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31652 for as_dir in $PATH
31653 do
31654   IFS=$as_save_IFS
31655   test -z "$as_dir" && as_dir=.
31656     for ac_exec_ext in '' $ac_executable_extensions; do
31657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31658     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31660     break 2
31661   fi
31662 done
31663   done
31664 IFS=$as_save_IFS
31665
31666   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31667   ;;
31668 esac
31669 fi
31670 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31671 if test -n "$BlenderDecodeDelegate"; then
31672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
31673 $as_echo "$BlenderDecodeDelegate" >&6; }
31674 else
31675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31676 $as_echo "no" >&6; }
31677 fi
31678
31679
31680 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31681 set dummy "$BZIPDelegateDefault"; ac_word=$2
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31683 $as_echo_n "checking for $ac_word... " >&6; }
31684 if ${ac_cv_path_BZIPDelegate+:} false; then :
31685   $as_echo_n "(cached) " >&6
31686 else
31687   case $BZIPDelegate in
31688   [\\/]* | ?:[\\/]*)
31689   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31690   ;;
31691   *)
31692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693 for as_dir in $PATH
31694 do
31695   IFS=$as_save_IFS
31696   test -z "$as_dir" && as_dir=.
31697     for ac_exec_ext in '' $ac_executable_extensions; do
31698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31699     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
31700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31701     break 2
31702   fi
31703 done
31704   done
31705 IFS=$as_save_IFS
31706
31707   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31708   ;;
31709 esac
31710 fi
31711 BZIPDelegate=$ac_cv_path_BZIPDelegate
31712 if test -n "$BZIPDelegate"; then
31713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
31714 $as_echo "$BZIPDelegate" >&6; }
31715 else
31716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31717 $as_echo "no" >&6; }
31718 fi
31719
31720
31721 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31722 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31724 $as_echo_n "checking for $ac_word... " >&6; }
31725 if ${ac_cv_path_BrowseDelegate+:} false; then :
31726   $as_echo_n "(cached) " >&6
31727 else
31728   case $BrowseDelegate in
31729   [\\/]* | ?:[\\/]*)
31730   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31731   ;;
31732   *)
31733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31734 for as_dir in $PATH
31735 do
31736   IFS=$as_save_IFS
31737   test -z "$as_dir" && as_dir=.
31738     for ac_exec_ext in '' $ac_executable_extensions; do
31739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31740     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
31741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31742     break 2
31743   fi
31744 done
31745   done
31746 IFS=$as_save_IFS
31747
31748   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31749   ;;
31750 esac
31751 fi
31752 BrowseDelegate=$ac_cv_path_BrowseDelegate
31753 if test -n "$BrowseDelegate"; then
31754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
31755 $as_echo "$BrowseDelegate" >&6; }
31756 else
31757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31758 $as_echo "no" >&6; }
31759 fi
31760
31761
31762 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31763 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31765 $as_echo_n "checking for $ac_word... " >&6; }
31766 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
31767   $as_echo_n "(cached) " >&6
31768 else
31769   case $CGMDecodeDelegate in
31770   [\\/]* | ?:[\\/]*)
31771   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31772   ;;
31773   *)
31774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31775 for as_dir in $PATH
31776 do
31777   IFS=$as_save_IFS
31778   test -z "$as_dir" && as_dir=.
31779     for ac_exec_ext in '' $ac_executable_extensions; do
31780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31781     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31783     break 2
31784   fi
31785 done
31786   done
31787 IFS=$as_save_IFS
31788
31789   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31790   ;;
31791 esac
31792 fi
31793 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31794 if test -n "$CGMDecodeDelegate"; then
31795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
31796 $as_echo "$CGMDecodeDelegate" >&6; }
31797 else
31798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31799 $as_echo "no" >&6; }
31800 fi
31801
31802
31803 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31804 set dummy "$CatDelegateDefault"; ac_word=$2
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31806 $as_echo_n "checking for $ac_word... " >&6; }
31807 if ${ac_cv_path_CatDelegate+:} false; then :
31808   $as_echo_n "(cached) " >&6
31809 else
31810   case $CatDelegate in
31811   [\\/]* | ?:[\\/]*)
31812   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31813   ;;
31814   *)
31815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31816 for as_dir in $PATH
31817 do
31818   IFS=$as_save_IFS
31819   test -z "$as_dir" && as_dir=.
31820     for ac_exec_ext in '' $ac_executable_extensions; do
31821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31822     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
31823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31824     break 2
31825   fi
31826 done
31827   done
31828 IFS=$as_save_IFS
31829
31830   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31831   ;;
31832 esac
31833 fi
31834 CatDelegate=$ac_cv_path_CatDelegate
31835 if test -n "$CatDelegate"; then
31836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
31837 $as_echo "$CatDelegate" >&6; }
31838 else
31839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31840 $as_echo "no" >&6; }
31841 fi
31842
31843
31844 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31845 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31847 $as_echo_n "checking for $ac_word... " >&6; }
31848 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
31849   $as_echo_n "(cached) " >&6
31850 else
31851   case $DNGDecodeDelegate in
31852   [\\/]* | ?:[\\/]*)
31853   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31854   ;;
31855   *)
31856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31857 for as_dir in $PATH
31858 do
31859   IFS=$as_save_IFS
31860   test -z "$as_dir" && as_dir=.
31861     for ac_exec_ext in '' $ac_executable_extensions; do
31862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31863     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31865     break 2
31866   fi
31867 done
31868   done
31869 IFS=$as_save_IFS
31870
31871   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31872   ;;
31873 esac
31874 fi
31875 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31876 if test -n "$DNGDecodeDelegate"; then
31877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
31878 $as_echo "$DNGDecodeDelegate" >&6; }
31879 else
31880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 $as_echo "no" >&6; }
31882 fi
31883
31884
31885 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31886 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31888 $as_echo_n "checking for $ac_word... " >&6; }
31889 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
31890   $as_echo_n "(cached) " >&6
31891 else
31892   case $GVCDecodeDelegate in
31893   [\\/]* | ?:[\\/]*)
31894   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31895   ;;
31896   *)
31897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31898 for as_dir in $PATH
31899 do
31900   IFS=$as_save_IFS
31901   test -z "$as_dir" && as_dir=.
31902     for ac_exec_ext in '' $ac_executable_extensions; do
31903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31904     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31906     break 2
31907   fi
31908 done
31909   done
31910 IFS=$as_save_IFS
31911
31912   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31913   ;;
31914 esac
31915 fi
31916 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31917 if test -n "$GVCDecodeDelegate"; then
31918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
31919 $as_echo "$GVCDecodeDelegate" >&6; }
31920 else
31921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31922 $as_echo "no" >&6; }
31923 fi
31924
31925
31926 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31927 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31929 $as_echo_n "checking for $ac_word... " >&6; }
31930 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
31931   $as_echo_n "(cached) " >&6
31932 else
31933   case $DVIDecodeDelegate in
31934   [\\/]* | ?:[\\/]*)
31935   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31936   ;;
31937   *)
31938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31939 for as_dir in $PATH
31940 do
31941   IFS=$as_save_IFS
31942   test -z "$as_dir" && as_dir=.
31943     for ac_exec_ext in '' $ac_executable_extensions; do
31944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31945     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31947     break 2
31948   fi
31949 done
31950   done
31951 IFS=$as_save_IFS
31952
31953   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31954   ;;
31955 esac
31956 fi
31957 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31958 if test -n "$DVIDecodeDelegate"; then
31959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
31960 $as_echo "$DVIDecodeDelegate" >&6; }
31961 else
31962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31963 $as_echo "no" >&6; }
31964 fi
31965
31966
31967 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31968 set dummy "$EchoDelegateDefault"; ac_word=$2
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31970 $as_echo_n "checking for $ac_word... " >&6; }
31971 if ${ac_cv_path_EchoDelegate+:} false; then :
31972   $as_echo_n "(cached) " >&6
31973 else
31974   case $EchoDelegate in
31975   [\\/]* | ?:[\\/]*)
31976   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31977   ;;
31978   *)
31979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31980 for as_dir in $PATH
31981 do
31982   IFS=$as_save_IFS
31983   test -z "$as_dir" && as_dir=.
31984     for ac_exec_ext in '' $ac_executable_extensions; do
31985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31986     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
31987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31988     break 2
31989   fi
31990 done
31991   done
31992 IFS=$as_save_IFS
31993
31994   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31995   ;;
31996 esac
31997 fi
31998 EchoDelegate=$ac_cv_path_EchoDelegate
31999 if test -n "$EchoDelegate"; then
32000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32001 $as_echo "$EchoDelegate" >&6; }
32002 else
32003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32004 $as_echo "no" >&6; }
32005 fi
32006
32007
32008 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32009 set dummy "$EditorDelegateDefault"; ac_word=$2
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32011 $as_echo_n "checking for $ac_word... " >&6; }
32012 if ${ac_cv_path_EditorDelegate+:} false; then :
32013   $as_echo_n "(cached) " >&6
32014 else
32015   case $EditorDelegate in
32016   [\\/]* | ?:[\\/]*)
32017   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32018   ;;
32019   *)
32020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32021 for as_dir in $PATH
32022 do
32023   IFS=$as_save_IFS
32024   test -z "$as_dir" && as_dir=.
32025     for ac_exec_ext in '' $ac_executable_extensions; do
32026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32027     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32029     break 2
32030   fi
32031 done
32032   done
32033 IFS=$as_save_IFS
32034
32035   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32036   ;;
32037 esac
32038 fi
32039 EditorDelegate=$ac_cv_path_EditorDelegate
32040 if test -n "$EditorDelegate"; then
32041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32042 $as_echo "$EditorDelegate" >&6; }
32043 else
32044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32045 $as_echo "no" >&6; }
32046 fi
32047
32048
32049 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32050 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32052 $as_echo_n "checking for $ac_word... " >&6; }
32053 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
32054   $as_echo_n "(cached) " >&6
32055 else
32056   case $FIGDecodeDelegate in
32057   [\\/]* | ?:[\\/]*)
32058   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32059   ;;
32060   *)
32061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32063 do
32064   IFS=$as_save_IFS
32065   test -z "$as_dir" && as_dir=.
32066     for ac_exec_ext in '' $ac_executable_extensions; do
32067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32068     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32070     break 2
32071   fi
32072 done
32073   done
32074 IFS=$as_save_IFS
32075
32076   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32077   ;;
32078 esac
32079 fi
32080 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32081 if test -n "$FIGDecodeDelegate"; then
32082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
32083 $as_echo "$FIGDecodeDelegate" >&6; }
32084 else
32085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086 $as_echo "no" >&6; }
32087 fi
32088
32089
32090 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32091 set dummy "$ConvertDelegateDefault"; ac_word=$2
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32093 $as_echo_n "checking for $ac_word... " >&6; }
32094 if ${ac_cv_path_ConvertDelegate+:} false; then :
32095   $as_echo_n "(cached) " >&6
32096 else
32097   case $ConvertDelegate in
32098   [\\/]* | ?:[\\/]*)
32099   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32100   ;;
32101   *)
32102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32103 for as_dir in $PATH
32104 do
32105   IFS=$as_save_IFS
32106   test -z "$as_dir" && as_dir=.
32107     for ac_exec_ext in '' $ac_executable_extensions; do
32108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32109     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
32110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32111     break 2
32112   fi
32113 done
32114   done
32115 IFS=$as_save_IFS
32116
32117   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32118   ;;
32119 esac
32120 fi
32121 ConvertDelegate=$ac_cv_path_ConvertDelegate
32122 if test -n "$ConvertDelegate"; then
32123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
32124 $as_echo "$ConvertDelegate" >&6; }
32125 else
32126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32127 $as_echo "no" >&6; }
32128 fi
32129
32130
32131 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32132 set dummy "$DisplayDelegateDefault"; ac_word=$2
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32134 $as_echo_n "checking for $ac_word... " >&6; }
32135 if ${ac_cv_path_DisplayDelegate+:} false; then :
32136   $as_echo_n "(cached) " >&6
32137 else
32138   case $DisplayDelegate in
32139   [\\/]* | ?:[\\/]*)
32140   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32141   ;;
32142   *)
32143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32144 for as_dir in $PATH
32145 do
32146   IFS=$as_save_IFS
32147   test -z "$as_dir" && as_dir=.
32148     for ac_exec_ext in '' $ac_executable_extensions; do
32149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32150     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
32151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32152     break 2
32153   fi
32154 done
32155   done
32156 IFS=$as_save_IFS
32157
32158   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32159   ;;
32160 esac
32161 fi
32162 DisplayDelegate=$ac_cv_path_DisplayDelegate
32163 if test -n "$DisplayDelegate"; then
32164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
32165 $as_echo "$DisplayDelegate" >&6; }
32166 else
32167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168 $as_echo "no" >&6; }
32169 fi
32170
32171
32172 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32173 set dummy "$MogrifyDelegateDefault"; ac_word=$2
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32175 $as_echo_n "checking for $ac_word... " >&6; }
32176 if ${ac_cv_path_MogrifyDelegate+:} false; then :
32177   $as_echo_n "(cached) " >&6
32178 else
32179   case $MogrifyDelegate in
32180   [\\/]* | ?:[\\/]*)
32181   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32182   ;;
32183   *)
32184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32185 for as_dir in $PATH
32186 do
32187   IFS=$as_save_IFS
32188   test -z "$as_dir" && as_dir=.
32189     for ac_exec_ext in '' $ac_executable_extensions; do
32190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32191     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
32192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32193     break 2
32194   fi
32195 done
32196   done
32197 IFS=$as_save_IFS
32198
32199   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32200   ;;
32201 esac
32202 fi
32203 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32204 if test -n "$MogrifyDelegate"; then
32205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
32206 $as_echo "$MogrifyDelegate" >&6; }
32207 else
32208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209 $as_echo "no" >&6; }
32210 fi
32211
32212
32213 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32214 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
32215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32216 $as_echo_n "checking for $ac_word... " >&6; }
32217 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
32218   $as_echo_n "(cached) " >&6
32219 else
32220   case $GnuplotDecodeDelegate in
32221   [\\/]* | ?:[\\/]*)
32222   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32223   ;;
32224   *)
32225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32226 for as_dir in $PATH
32227 do
32228   IFS=$as_save_IFS
32229   test -z "$as_dir" && as_dir=.
32230     for ac_exec_ext in '' $ac_executable_extensions; do
32231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32232     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32234     break 2
32235   fi
32236 done
32237   done
32238 IFS=$as_save_IFS
32239
32240   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32241   ;;
32242 esac
32243 fi
32244 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32245 if test -n "$GnuplotDecodeDelegate"; then
32246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
32247 $as_echo "$GnuplotDecodeDelegate" >&6; }
32248 else
32249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250 $as_echo "no" >&6; }
32251 fi
32252
32253
32254 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32255 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32257 $as_echo_n "checking for $ac_word... " >&6; }
32258 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
32259   $as_echo_n "(cached) " >&6
32260 else
32261   case $HPGLDecodeDelegate in
32262   [\\/]* | ?:[\\/]*)
32263   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32264   ;;
32265   *)
32266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32267 for as_dir in $PATH
32268 do
32269   IFS=$as_save_IFS
32270   test -z "$as_dir" && as_dir=.
32271     for ac_exec_ext in '' $ac_executable_extensions; do
32272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32273     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32275     break 2
32276   fi
32277 done
32278   done
32279 IFS=$as_save_IFS
32280
32281   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32282   ;;
32283 esac
32284 fi
32285 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32286 if test -n "$HPGLDecodeDelegate"; then
32287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
32288 $as_echo "$HPGLDecodeDelegate" >&6; }
32289 else
32290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32291 $as_echo "no" >&6; }
32292 fi
32293
32294
32295 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32296 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32298 $as_echo_n "checking for $ac_word... " >&6; }
32299 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32300   $as_echo_n "(cached) " >&6
32301 else
32302   case $HTMLDecodeDelegate in
32303   [\\/]* | ?:[\\/]*)
32304   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32305   ;;
32306   *)
32307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32308 for as_dir in $PATH
32309 do
32310   IFS=$as_save_IFS
32311   test -z "$as_dir" && as_dir=.
32312     for ac_exec_ext in '' $ac_executable_extensions; do
32313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32314     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32316     break 2
32317   fi
32318 done
32319   done
32320 IFS=$as_save_IFS
32321
32322   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32323   ;;
32324 esac
32325 fi
32326 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32327 if test -n "$HTMLDecodeDelegate"; then
32328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32329 $as_echo "$HTMLDecodeDelegate" >&6; }
32330 else
32331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32332 $as_echo "no" >&6; }
32333 fi
32334
32335
32336 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32337 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32339 $as_echo_n "checking for $ac_word... " >&6; }
32340 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32341   $as_echo_n "(cached) " >&6
32342 else
32343   case $ILBMDecodeDelegate in
32344   [\\/]* | ?:[\\/]*)
32345   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32346   ;;
32347   *)
32348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32349 for as_dir in $PATH
32350 do
32351   IFS=$as_save_IFS
32352   test -z "$as_dir" && as_dir=.
32353     for ac_exec_ext in '' $ac_executable_extensions; do
32354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32355     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32357     break 2
32358   fi
32359 done
32360   done
32361 IFS=$as_save_IFS
32362
32363   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32364   ;;
32365 esac
32366 fi
32367 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32368 if test -n "$ILBMDecodeDelegate"; then
32369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32370 $as_echo "$ILBMDecodeDelegate" >&6; }
32371 else
32372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32373 $as_echo "no" >&6; }
32374 fi
32375
32376
32377 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32378 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32380 $as_echo_n "checking for $ac_word... " >&6; }
32381 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32382   $as_echo_n "(cached) " >&6
32383 else
32384   case $ILBMEncodeDelegate in
32385   [\\/]* | ?:[\\/]*)
32386   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32387   ;;
32388   *)
32389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32390 for as_dir in $PATH
32391 do
32392   IFS=$as_save_IFS
32393   test -z "$as_dir" && as_dir=.
32394     for ac_exec_ext in '' $ac_executable_extensions; do
32395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32396     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32398     break 2
32399   fi
32400 done
32401   done
32402 IFS=$as_save_IFS
32403
32404   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32405   ;;
32406 esac
32407 fi
32408 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32409 if test -n "$ILBMEncodeDelegate"; then
32410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32411 $as_echo "$ILBMEncodeDelegate" >&6; }
32412 else
32413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32414 $as_echo "no" >&6; }
32415 fi
32416
32417
32418 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32419 set dummy "$LPDelegateDefault"; ac_word=$2
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32421 $as_echo_n "checking for $ac_word... " >&6; }
32422 if ${ac_cv_path_LPDelegate+:} false; then :
32423   $as_echo_n "(cached) " >&6
32424 else
32425   case $LPDelegate in
32426   [\\/]* | ?:[\\/]*)
32427   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32428   ;;
32429   *)
32430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32431 for as_dir in $PATH
32432 do
32433   IFS=$as_save_IFS
32434   test -z "$as_dir" && as_dir=.
32435     for ac_exec_ext in '' $ac_executable_extensions; do
32436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32437     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32439     break 2
32440   fi
32441 done
32442   done
32443 IFS=$as_save_IFS
32444
32445   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32446   ;;
32447 esac
32448 fi
32449 LPDelegate=$ac_cv_path_LPDelegate
32450 if test -n "$LPDelegate"; then
32451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32452 $as_echo "$LPDelegate" >&6; }
32453 else
32454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32456 fi
32457
32458
32459 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32460 set dummy "$LPRDelegateDefault"; ac_word=$2
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32462 $as_echo_n "checking for $ac_word... " >&6; }
32463 if ${ac_cv_path_LPRDelegate+:} false; then :
32464   $as_echo_n "(cached) " >&6
32465 else
32466   case $LPRDelegate in
32467   [\\/]* | ?:[\\/]*)
32468   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32469   ;;
32470   *)
32471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32472 for as_dir in $PATH
32473 do
32474   IFS=$as_save_IFS
32475   test -z "$as_dir" && as_dir=.
32476     for ac_exec_ext in '' $ac_executable_extensions; do
32477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32478     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32480     break 2
32481   fi
32482 done
32483   done
32484 IFS=$as_save_IFS
32485
32486   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32487   ;;
32488 esac
32489 fi
32490 LPRDelegate=$ac_cv_path_LPRDelegate
32491 if test -n "$LPRDelegate"; then
32492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
32493 $as_echo "$LPRDelegate" >&6; }
32494 else
32495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32496 $as_echo "no" >&6; }
32497 fi
32498
32499
32500 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32501 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
32502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32503 $as_echo_n "checking for $ac_word... " >&6; }
32504 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
32505   $as_echo_n "(cached) " >&6
32506 else
32507   case $LZWDecodeDelegate in
32508   [\\/]* | ?:[\\/]*)
32509   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32510   ;;
32511   *)
32512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32513 for as_dir in $PATH
32514 do
32515   IFS=$as_save_IFS
32516   test -z "$as_dir" && as_dir=.
32517     for ac_exec_ext in '' $ac_executable_extensions; do
32518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32519     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32521     break 2
32522   fi
32523 done
32524   done
32525 IFS=$as_save_IFS
32526
32527   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32528   ;;
32529 esac
32530 fi
32531 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32532 if test -n "$LZWDecodeDelegate"; then
32533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
32534 $as_echo "$LZWDecodeDelegate" >&6; }
32535 else
32536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32537 $as_echo "no" >&6; }
32538 fi
32539
32540
32541 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32542 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32544 $as_echo_n "checking for $ac_word... " >&6; }
32545 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
32546   $as_echo_n "(cached) " >&6
32547 else
32548   case $LZWEncodeDelegate in
32549   [\\/]* | ?:[\\/]*)
32550   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32551   ;;
32552   *)
32553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32554 for as_dir in $PATH
32555 do
32556   IFS=$as_save_IFS
32557   test -z "$as_dir" && as_dir=.
32558     for ac_exec_ext in '' $ac_executable_extensions; do
32559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32560     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32562     break 2
32563   fi
32564 done
32565   done
32566 IFS=$as_save_IFS
32567
32568   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32569   ;;
32570 esac
32571 fi
32572 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32573 if test -n "$LZWEncodeDelegate"; then
32574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
32575 $as_echo "$LZWEncodeDelegate" >&6; }
32576 else
32577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32578 $as_echo "no" >&6; }
32579 fi
32580
32581
32582 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32583 set dummy "$LaunchDelegateDefault"; ac_word=$2
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32585 $as_echo_n "checking for $ac_word... " >&6; }
32586 if ${ac_cv_path_LaunchDelegate+:} false; then :
32587   $as_echo_n "(cached) " >&6
32588 else
32589   case $LaunchDelegate in
32590   [\\/]* | ?:[\\/]*)
32591   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32592   ;;
32593   *)
32594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32595 for as_dir in $PATH
32596 do
32597   IFS=$as_save_IFS
32598   test -z "$as_dir" && as_dir=.
32599     for ac_exec_ext in '' $ac_executable_extensions; do
32600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32601     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
32602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32603     break 2
32604   fi
32605 done
32606   done
32607 IFS=$as_save_IFS
32608
32609   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32610   ;;
32611 esac
32612 fi
32613 LaunchDelegate=$ac_cv_path_LaunchDelegate
32614 if test -n "$LaunchDelegate"; then
32615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
32616 $as_echo "$LaunchDelegate" >&6; }
32617 else
32618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32619 $as_echo "no" >&6; }
32620 fi
32621
32622
32623 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32624 set dummy "$MANDelegateDefault"; ac_word=$2
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32626 $as_echo_n "checking for $ac_word... " >&6; }
32627 if ${ac_cv_path_MANDelegate+:} false; then :
32628   $as_echo_n "(cached) " >&6
32629 else
32630   case $MANDelegate in
32631   [\\/]* | ?:[\\/]*)
32632   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32633   ;;
32634   *)
32635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32636 for as_dir in $PATH
32637 do
32638   IFS=$as_save_IFS
32639   test -z "$as_dir" && as_dir=.
32640     for ac_exec_ext in '' $ac_executable_extensions; do
32641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32642     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
32643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32644     break 2
32645   fi
32646 done
32647   done
32648 IFS=$as_save_IFS
32649
32650   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32651   ;;
32652 esac
32653 fi
32654 MANDelegate=$ac_cv_path_MANDelegate
32655 if test -n "$MANDelegate"; then
32656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
32657 $as_echo "$MANDelegate" >&6; }
32658 else
32659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32660 $as_echo "no" >&6; }
32661 fi
32662
32663
32664 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32665 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32667 $as_echo_n "checking for $ac_word... " >&6; }
32668 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
32669   $as_echo_n "(cached) " >&6
32670 else
32671   case $MPEGDecodeDelegate in
32672   [\\/]* | ?:[\\/]*)
32673   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32674   ;;
32675   *)
32676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32677 for as_dir in $PATH
32678 do
32679   IFS=$as_save_IFS
32680   test -z "$as_dir" && as_dir=.
32681     for ac_exec_ext in '' $ac_executable_extensions; do
32682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32683     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32685     break 2
32686   fi
32687 done
32688   done
32689 IFS=$as_save_IFS
32690
32691   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32692   ;;
32693 esac
32694 fi
32695 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32696 if test -n "$MPEGDecodeDelegate"; then
32697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
32698 $as_echo "$MPEGDecodeDelegate" >&6; }
32699 else
32700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32701 $as_echo "no" >&6; }
32702 fi
32703
32704
32705 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32706 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
32707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32708 $as_echo_n "checking for $ac_word... " >&6; }
32709 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
32710   $as_echo_n "(cached) " >&6
32711 else
32712   case $MPEGEncodeDelegate in
32713   [\\/]* | ?:[\\/]*)
32714   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32715   ;;
32716   *)
32717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32718 for as_dir in $PATH
32719 do
32720   IFS=$as_save_IFS
32721   test -z "$as_dir" && as_dir=.
32722     for ac_exec_ext in '' $ac_executable_extensions; do
32723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32724     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32726     break 2
32727   fi
32728 done
32729   done
32730 IFS=$as_save_IFS
32731
32732   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32733   ;;
32734 esac
32735 fi
32736 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32737 if test -n "$MPEGEncodeDelegate"; then
32738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
32739 $as_echo "$MPEGEncodeDelegate" >&6; }
32740 else
32741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32742 $as_echo "no" >&6; }
32743 fi
32744
32745
32746 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32747 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32749 $as_echo_n "checking for $ac_word... " >&6; }
32750 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
32751   $as_echo_n "(cached) " >&6
32752 else
32753   case $MrSIDDecodeDelegate in
32754   [\\/]* | ?:[\\/]*)
32755   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32756   ;;
32757   *)
32758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32759 for as_dir in $PATH
32760 do
32761   IFS=$as_save_IFS
32762   test -z "$as_dir" && as_dir=.
32763     for ac_exec_ext in '' $ac_executable_extensions; do
32764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32765     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32767     break 2
32768   fi
32769 done
32770   done
32771 IFS=$as_save_IFS
32772
32773   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32774   ;;
32775 esac
32776 fi
32777 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32778 if test -n "$MrSIDDecodeDelegate"; then
32779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32780 $as_echo "$MrSIDDecodeDelegate" >&6; }
32781 else
32782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32783 $as_echo "no" >&6; }
32784 fi
32785
32786
32787 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32788 set dummy "$MVDelegateDefault"; ac_word=$2
32789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32790 $as_echo_n "checking for $ac_word... " >&6; }
32791 if ${ac_cv_path_MVDelegate+:} false; then :
32792   $as_echo_n "(cached) " >&6
32793 else
32794   case $MVDelegate in
32795   [\\/]* | ?:[\\/]*)
32796   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32797   ;;
32798   *)
32799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32800 for as_dir in $PATH
32801 do
32802   IFS=$as_save_IFS
32803   test -z "$as_dir" && as_dir=.
32804     for ac_exec_ext in '' $ac_executable_extensions; do
32805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32806     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
32807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32808     break 2
32809   fi
32810 done
32811   done
32812 IFS=$as_save_IFS
32813
32814   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32815   ;;
32816 esac
32817 fi
32818 MVDelegate=$ac_cv_path_MVDelegate
32819 if test -n "$MVDelegate"; then
32820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
32821 $as_echo "$MVDelegate" >&6; }
32822 else
32823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32824 $as_echo "no" >&6; }
32825 fi
32826
32827
32828 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32829 set dummy "$PCLDelegateDefault"; ac_word=$2
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32831 $as_echo_n "checking for $ac_word... " >&6; }
32832 if ${ac_cv_path_PCLDelegate+:} false; then :
32833   $as_echo_n "(cached) " >&6
32834 else
32835   case $PCLDelegate in
32836   [\\/]* | ?:[\\/]*)
32837   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32838   ;;
32839   *)
32840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32841 for as_dir in $PATH
32842 do
32843   IFS=$as_save_IFS
32844   test -z "$as_dir" && as_dir=.
32845     for ac_exec_ext in '' $ac_executable_extensions; do
32846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32847     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
32848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32849     break 2
32850   fi
32851 done
32852   done
32853 IFS=$as_save_IFS
32854
32855   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32856   ;;
32857 esac
32858 fi
32859 PCLDelegate=$ac_cv_path_PCLDelegate
32860 if test -n "$PCLDelegate"; then
32861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
32862 $as_echo "$PCLDelegate" >&6; }
32863 else
32864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32865 $as_echo "no" >&6; }
32866 fi
32867
32868
32869 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32870 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32872 $as_echo_n "checking for $ac_word... " >&6; }
32873 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
32874   $as_echo_n "(cached) " >&6
32875 else
32876   case $PGPDecodeDelegate in
32877   [\\/]* | ?:[\\/]*)
32878   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32879   ;;
32880   *)
32881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32882 for as_dir in $PATH
32883 do
32884   IFS=$as_save_IFS
32885   test -z "$as_dir" && as_dir=.
32886     for ac_exec_ext in '' $ac_executable_extensions; do
32887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32888     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32890     break 2
32891   fi
32892 done
32893   done
32894 IFS=$as_save_IFS
32895
32896   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32897   ;;
32898 esac
32899 fi
32900 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32901 if test -n "$PGPDecodeDelegate"; then
32902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
32903 $as_echo "$PGPDecodeDelegate" >&6; }
32904 else
32905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32907 fi
32908
32909
32910 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32911 set dummy "$POVDelegateDefault"; ac_word=$2
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32913 $as_echo_n "checking for $ac_word... " >&6; }
32914 if ${ac_cv_path_POVDelegate+:} false; then :
32915   $as_echo_n "(cached) " >&6
32916 else
32917   case $POVDelegate in
32918   [\\/]* | ?:[\\/]*)
32919   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32920   ;;
32921   *)
32922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32923 for as_dir in $PATH
32924 do
32925   IFS=$as_save_IFS
32926   test -z "$as_dir" && as_dir=.
32927     for ac_exec_ext in '' $ac_executable_extensions; do
32928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32929     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
32930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32931     break 2
32932   fi
32933 done
32934   done
32935 IFS=$as_save_IFS
32936
32937   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32938   ;;
32939 esac
32940 fi
32941 POVDelegate=$ac_cv_path_POVDelegate
32942 if test -n "$POVDelegate"; then
32943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
32944 $as_echo "$POVDelegate" >&6; }
32945 else
32946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947 $as_echo "no" >&6; }
32948 fi
32949
32950
32951 for ac_prog in gsx gsc "$PSDelegateDefault"
32952 do
32953   # Extract the first word of "$ac_prog", so it can be a program name with args.
32954 set dummy $ac_prog; ac_word=$2
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32956 $as_echo_n "checking for $ac_word... " >&6; }
32957 if ${ac_cv_path_PSDelegate+:} false; then :
32958   $as_echo_n "(cached) " >&6
32959 else
32960   case $PSDelegate in
32961   [\\/]* | ?:[\\/]*)
32962   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32963   ;;
32964   *)
32965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32966 for as_dir in $PATH
32967 do
32968   IFS=$as_save_IFS
32969   test -z "$as_dir" && as_dir=.
32970     for ac_exec_ext in '' $ac_executable_extensions; do
32971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32972     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
32973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32974     break 2
32975   fi
32976 done
32977   done
32978 IFS=$as_save_IFS
32979
32980   ;;
32981 esac
32982 fi
32983 PSDelegate=$ac_cv_path_PSDelegate
32984 if test -n "$PSDelegate"; then
32985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
32986 $as_echo "$PSDelegate" >&6; }
32987 else
32988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32989 $as_echo "no" >&6; }
32990 fi
32991
32992
32993   test -n "$PSDelegate" && break
32994 done
32995 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32996
32997 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32998 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33000 $as_echo_n "checking for $ac_word... " >&6; }
33001 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
33002   $as_echo_n "(cached) " >&6
33003 else
33004   case $RLEEncodeDelegate in
33005   [\\/]* | ?:[\\/]*)
33006   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33007   ;;
33008   *)
33009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010 for as_dir in $PATH
33011 do
33012   IFS=$as_save_IFS
33013   test -z "$as_dir" && as_dir=.
33014     for ac_exec_ext in '' $ac_executable_extensions; do
33015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33016     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33018     break 2
33019   fi
33020 done
33021   done
33022 IFS=$as_save_IFS
33023
33024   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33025   ;;
33026 esac
33027 fi
33028 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33029 if test -n "$RLEEncodeDelegate"; then
33030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
33031 $as_echo "$RLEEncodeDelegate" >&6; }
33032 else
33033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33035 fi
33036
33037
33038 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33039 set dummy "$RMDelegateDefault"; ac_word=$2
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33041 $as_echo_n "checking for $ac_word... " >&6; }
33042 if ${ac_cv_path_RMDelegate+:} false; then :
33043   $as_echo_n "(cached) " >&6
33044 else
33045   case $RMDelegate in
33046   [\\/]* | ?:[\\/]*)
33047   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33048   ;;
33049   *)
33050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33051 for as_dir in $PATH
33052 do
33053   IFS=$as_save_IFS
33054   test -z "$as_dir" && as_dir=.
33055     for ac_exec_ext in '' $ac_executable_extensions; do
33056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33057     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
33058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33059     break 2
33060   fi
33061 done
33062   done
33063 IFS=$as_save_IFS
33064
33065   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33066   ;;
33067 esac
33068 fi
33069 RMDelegate=$ac_cv_path_RMDelegate
33070 if test -n "$RMDelegate"; then
33071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
33072 $as_echo "$RMDelegate" >&6; }
33073 else
33074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33075 $as_echo "no" >&6; }
33076 fi
33077
33078
33079 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33080 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33082 $as_echo_n "checking for $ac_word... " >&6; }
33083 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
33084   $as_echo_n "(cached) " >&6
33085 else
33086   case $RSVGDecodeDelegate in
33087   [\\/]* | ?:[\\/]*)
33088   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33089   ;;
33090   *)
33091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33092 for as_dir in $PATH
33093 do
33094   IFS=$as_save_IFS
33095   test -z "$as_dir" && as_dir=.
33096     for ac_exec_ext in '' $ac_executable_extensions; do
33097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33098     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33100     break 2
33101   fi
33102 done
33103   done
33104 IFS=$as_save_IFS
33105
33106   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33107   ;;
33108 esac
33109 fi
33110 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33111 if test -n "$RSVGDecodeDelegate"; then
33112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33113 $as_echo "$RSVGDecodeDelegate" >&6; }
33114 else
33115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33116 $as_echo "no" >&6; }
33117 fi
33118
33119
33120 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33121 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33123 $as_echo_n "checking for $ac_word... " >&6; }
33124 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
33125   $as_echo_n "(cached) " >&6
33126 else
33127   case $SCANDecodeDelegate in
33128   [\\/]* | ?:[\\/]*)
33129   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33130   ;;
33131   *)
33132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133 for as_dir in $PATH
33134 do
33135   IFS=$as_save_IFS
33136   test -z "$as_dir" && as_dir=.
33137     for ac_exec_ext in '' $ac_executable_extensions; do
33138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33139     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33141     break 2
33142   fi
33143 done
33144   done
33145 IFS=$as_save_IFS
33146
33147   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33148   ;;
33149 esac
33150 fi
33151 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33152 if test -n "$SCANDecodeDelegate"; then
33153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
33154 $as_echo "$SCANDecodeDelegate" >&6; }
33155 else
33156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33157 $as_echo "no" >&6; }
33158 fi
33159
33160
33161 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33162 set dummy "$TXTDelegateDefault"; ac_word=$2
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33164 $as_echo_n "checking for $ac_word... " >&6; }
33165 if ${ac_cv_path_TXTDelegate+:} false; then :
33166   $as_echo_n "(cached) " >&6
33167 else
33168   case $TXTDelegate in
33169   [\\/]* | ?:[\\/]*)
33170   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33171   ;;
33172   *)
33173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33174 for as_dir in $PATH
33175 do
33176   IFS=$as_save_IFS
33177   test -z "$as_dir" && as_dir=.
33178     for ac_exec_ext in '' $ac_executable_extensions; do
33179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33180     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
33181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33182     break 2
33183   fi
33184 done
33185   done
33186 IFS=$as_save_IFS
33187
33188   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33189   ;;
33190 esac
33191 fi
33192 TXTDelegate=$ac_cv_path_TXTDelegate
33193 if test -n "$TXTDelegate"; then
33194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
33195 $as_echo "$TXTDelegate" >&6; }
33196 else
33197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33198 $as_echo "no" >&6; }
33199 fi
33200
33201
33202 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33203 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33205 $as_echo_n "checking for $ac_word... " >&6; }
33206 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
33207   $as_echo_n "(cached) " >&6
33208 else
33209   case $UniconvertorDelegate in
33210   [\\/]* | ?:[\\/]*)
33211   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33212   ;;
33213   *)
33214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33215 for as_dir in $PATH
33216 do
33217   IFS=$as_save_IFS
33218   test -z "$as_dir" && as_dir=.
33219     for ac_exec_ext in '' $ac_executable_extensions; do
33220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33221     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33223     break 2
33224   fi
33225 done
33226   done
33227 IFS=$as_save_IFS
33228
33229   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33230   ;;
33231 esac
33232 fi
33233 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33234 if test -n "$UniconvertorDelegate"; then
33235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33236 $as_echo "$UniconvertorDelegate" >&6; }
33237 else
33238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33239 $as_echo "no" >&6; }
33240 fi
33241
33242
33243 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33244 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33246 $as_echo_n "checking for $ac_word... " >&6; }
33247 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
33248   $as_echo_n "(cached) " >&6
33249 else
33250   case $WMFDecodeDelegate in
33251   [\\/]* | ?:[\\/]*)
33252   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33253   ;;
33254   *)
33255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33256 for as_dir in $PATH
33257 do
33258   IFS=$as_save_IFS
33259   test -z "$as_dir" && as_dir=.
33260     for ac_exec_ext in '' $ac_executable_extensions; do
33261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33262     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33264     break 2
33265   fi
33266 done
33267   done
33268 IFS=$as_save_IFS
33269
33270   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33271   ;;
33272 esac
33273 fi
33274 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33275 if test -n "$WMFDecodeDelegate"; then
33276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
33277 $as_echo "$WMFDecodeDelegate" >&6; }
33278 else
33279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33280 $as_echo "no" >&6; }
33281 fi
33282
33283
33284 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33285 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
33286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33287 $as_echo_n "checking for $ac_word... " >&6; }
33288 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
33289   $as_echo_n "(cached) " >&6
33290 else
33291   case $WWWDecodeDelegate in
33292   [\\/]* | ?:[\\/]*)
33293   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33294   ;;
33295   *)
33296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33297 for as_dir in $PATH
33298 do
33299   IFS=$as_save_IFS
33300   test -z "$as_dir" && as_dir=.
33301     for ac_exec_ext in '' $ac_executable_extensions; do
33302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33303     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33305     break 2
33306   fi
33307 done
33308   done
33309 IFS=$as_save_IFS
33310
33311   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33312   ;;
33313 esac
33314 fi
33315 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33316 if test -n "$WWWDecodeDelegate"; then
33317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33318 $as_echo "$WWWDecodeDelegate" >&6; }
33319 else
33320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33322 fi
33323
33324
33325 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33326 set dummy "$XPSDelegateDefault"; ac_word=$2
33327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33328 $as_echo_n "checking for $ac_word... " >&6; }
33329 if ${ac_cv_path_XPSDelegate+:} false; then :
33330   $as_echo_n "(cached) " >&6
33331 else
33332   case $XPSDelegate in
33333   [\\/]* | ?:[\\/]*)
33334   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33335   ;;
33336   *)
33337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33338 for as_dir in $PATH
33339 do
33340   IFS=$as_save_IFS
33341   test -z "$as_dir" && as_dir=.
33342     for ac_exec_ext in '' $ac_executable_extensions; do
33343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33344     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33346     break 2
33347   fi
33348 done
33349   done
33350 IFS=$as_save_IFS
33351
33352   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33353   ;;
33354 esac
33355 fi
33356 XPSDelegate=$ac_cv_path_XPSDelegate
33357 if test -n "$XPSDelegate"; then
33358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33359 $as_echo "$XPSDelegate" >&6; }
33360 else
33361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33362 $as_echo "no" >&6; }
33363 fi
33364
33365
33366 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33367 set dummy "$ZipDelegateDefault"; ac_word=$2
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33369 $as_echo_n "checking for $ac_word... " >&6; }
33370 if ${ac_cv_path_ZipDelegate+:} false; then :
33371   $as_echo_n "(cached) " >&6
33372 else
33373   case $ZipDelegate in
33374   [\\/]* | ?:[\\/]*)
33375   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33376   ;;
33377   *)
33378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33379 for as_dir in $PATH
33380 do
33381   IFS=$as_save_IFS
33382   test -z "$as_dir" && as_dir=.
33383     for ac_exec_ext in '' $ac_executable_extensions; do
33384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33385     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33387     break 2
33388   fi
33389 done
33390   done
33391 IFS=$as_save_IFS
33392
33393   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33394   ;;
33395 esac
33396 fi
33397 ZipDelegate=$ac_cv_path_ZipDelegate
33398 if test -n "$ZipDelegate"; then
33399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33400 $as_echo "$ZipDelegate" >&6; }
33401 else
33402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33403 $as_echo "no" >&6; }
33404 fi
33405
33406
33407
33408 # Prefer lpr to lp; lp needs options tacked on.
33409 if test "$LPRDelegate" != no; then
33410     PrintDelegate="$LPRDelegate"
33411 else
33412     PrintDelegate="$LPDelegate -c -s"
33413 fi
33414
33415
33416 # Installed ImageMagick utiltity paths
33417 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33418 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33419 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33420
33421 # Set delegate booleans
33422 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33423 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33424 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33425 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33426 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33427 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33428 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33429 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33430 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33431 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33432
33433 #
33434 # Test for font directories
33435 #
33436 type_include_files=''
33437
33438 # Dejavu fonts.
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33440 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33441 dejavu_font_dir=''
33442 if test "${with_dejavu_font_dir}" != 'default'; then
33443   dejavu_font_dir="${with_dejavu_font_dir}/"
33444 else
33445   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33446     if test -f "${font_dir}DejaVuSerif.ttf"; then
33447       dejavu_font_dir="${font_dir}"
33448       break 1
33449     fi
33450   done
33451 fi
33452 if test "${dejavu_font_dir}x" != 'x'; then
33453   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33455 $as_echo "$dejavu_font_dir" >&6; }
33456 else
33457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33458 $as_echo "not found!" >&6; };
33459 fi
33460
33461
33462 # Windows
33463 windows_font_dir=''
33464 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33465    windows_font_dir="${with_windows_font_dir}/"
33466 fi
33467 if test "${windows_font_dir}x" != 'x'; then
33468     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33469       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33470     fi
33471     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33472       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33473     fi
33474     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33475       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33476     fi
33477 fi
33478 if test "${windows_font_dir}x" != 'x'; then
33479   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33480 fi
33481
33482
33483 # Ghostscript
33484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
33485 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33486 ghostscript_font_dir=''
33487 if test "${with_gs_font_dir}" != 'default'; then
33488   ghostscript_font_dir="${with_gs_font_dir}/"
33489 else
33490   if test "${native_win32_build}" = 'yes'; then
33491     # Native Windows Build
33492     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33493       if test -f "${font_dir}a010013l.pfb"; then
33494         ghostscript_font_dir="$font_dir"
33495         break 1
33496       fi
33497     done
33498     if test "${PSDelegate}" != 'gswin32c'; then
33499       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33500     fi
33501   else
33502     # Linux / Mac OS X / Unix Build
33503     for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
33504       if test -f "${font_dir}a010013l.pfb"; then
33505         ghostscript_font_dir="${font_dir}"
33506         break 1
33507       fi
33508     done
33509     if test "${ghostscript_font_dir}x" = 'x'; then
33510       if test "$PSDelegate" != 'gs'; then
33511         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33512       fi
33513     fi
33514   fi
33515 fi
33516 if test "${ghostscript_font_dir}x" != 'x'; then
33517   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
33518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33519 $as_echo "$ghostscript_font_dir" >&6; }
33520 else
33521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33522 $as_echo "not found!" >&6; };
33523 fi
33524
33525 case "${build_os}" in
33526   mingw* )
33527     PSDelegate=`$WinPathScript "$PSDelegate" 1`
33528     ;;
33529 esac
33530
33531
33532
33533 #
33534 # Handle case where user doesn't want frozen paths
33535 #
33536 if test "$with_frozenpaths" != 'yes'; then
33537   # Re-set delegate definitions to default (no paths)
33538   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
33539   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33540   BZIPDelegate="$BZIPDelegateDefault"
33541   BrowseDelegate="$BrowseDelegateDefault"
33542   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33543   CatDelegate="$CatDelegateDefault"
33544   ConvertDelegate="$ConvertDelegateDefault"
33545   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33546   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33547   EchoDelegate="$EchoDelegateDefault"
33548   EditorDelegate="$EditorDelegateDefault"
33549   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33550   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33551   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33552   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33553   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33554   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33555   LPDelegate="$LPDelegateDefault"
33556   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33557   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33558   LaunchDelegate="$LaunchDelegateDefault"
33559   MANDelegate="$MANDelegateDefault"
33560   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33561   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
33562   MogrifyDelegate="$MogrifyDelegateDefault"
33563   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33564   MVDelegate="$MVDelegateDefault"
33565   PCLDelegate="$PCLDelegateDefault"
33566   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33567   POVDelegate="$POVDelegateDefault"
33568   PSDelegate="$PSDelegateDefault"
33569   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33570   RMDelegate="$RMDelegateDefault"
33571   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
33572   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33573   ShowImageDelegate="$ShowImageDelegateDefault"
33574   TXTDelegate="$TXTDelegateDefault"
33575   UniconvertorDelegate="$UniconvertorDelegateDefault"
33576   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33577   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33578   XPSDelegate="$XPSDelegateDefault"
33579   ZipDelegate="$ZipDelegateDefault"
33580 fi
33581
33582 # Delegate substitutions
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625 #
33626 # RPM support.
33627 #
33628 RPM=''
33629 for ac_prog in gnutar gtar tar
33630 do
33631   # Extract the first word of "$ac_prog", so it can be a program name with args.
33632 set dummy $ac_prog; ac_word=$2
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33634 $as_echo_n "checking for $ac_word... " >&6; }
33635 if ${ac_cv_prog_TAR+:} false; then :
33636   $as_echo_n "(cached) " >&6
33637 else
33638   if test -n "$TAR"; then
33639   ac_cv_prog_TAR="$TAR" # Let the user override the test.
33640 else
33641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642 for as_dir in $PATH
33643 do
33644   IFS=$as_save_IFS
33645   test -z "$as_dir" && as_dir=.
33646     for ac_exec_ext in '' $ac_executable_extensions; do
33647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33648     ac_cv_prog_TAR="$ac_prog"
33649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33650     break 2
33651   fi
33652 done
33653   done
33654 IFS=$as_save_IFS
33655
33656 fi
33657 fi
33658 TAR=$ac_cv_prog_TAR
33659 if test -n "$TAR"; then
33660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
33661 $as_echo "$TAR" >&6; }
33662 else
33663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33664 $as_echo "no" >&6; }
33665 fi
33666
33667
33668   test -n "$TAR" && break
33669 done
33670
33671 for ac_prog in perl
33672 do
33673   # Extract the first word of "$ac_prog", so it can be a program name with args.
33674 set dummy $ac_prog; ac_word=$2
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33676 $as_echo_n "checking for $ac_word... " >&6; }
33677 if ${ac_cv_prog_PERL+:} false; then :
33678   $as_echo_n "(cached) " >&6
33679 else
33680   if test -n "$PERL"; then
33681   ac_cv_prog_PERL="$PERL" # Let the user override the test.
33682 else
33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684 for as_dir in $PATH
33685 do
33686   IFS=$as_save_IFS
33687   test -z "$as_dir" && as_dir=.
33688     for ac_exec_ext in '' $ac_executable_extensions; do
33689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33690     ac_cv_prog_PERL="$ac_prog"
33691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33692     break 2
33693   fi
33694 done
33695   done
33696 IFS=$as_save_IFS
33697
33698 fi
33699 fi
33700 PERL=$ac_cv_prog_PERL
33701 if test -n "$PERL"; then
33702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33703 $as_echo "$PERL" >&6; }
33704 else
33705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33706 $as_echo "no" >&6; }
33707 fi
33708
33709
33710   test -n "$PERL" && break
33711 done
33712
33713 for ac_prog in rpmbuild rpm
33714 do
33715   # Extract the first word of "$ac_prog", so it can be a program name with args.
33716 set dummy $ac_prog; ac_word=$2
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33718 $as_echo_n "checking for $ac_word... " >&6; }
33719 if ${ac_cv_prog_RPM+:} false; then :
33720   $as_echo_n "(cached) " >&6
33721 else
33722   if test -n "$RPM"; then
33723   ac_cv_prog_RPM="$RPM" # Let the user override the test.
33724 else
33725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33726 for as_dir in $PATH
33727 do
33728   IFS=$as_save_IFS
33729   test -z "$as_dir" && as_dir=.
33730     for ac_exec_ext in '' $ac_executable_extensions; do
33731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33732     ac_cv_prog_RPM="$ac_prog"
33733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33734     break 2
33735   fi
33736 done
33737   done
33738 IFS=$as_save_IFS
33739
33740 fi
33741 fi
33742 RPM=$ac_cv_prog_RPM
33743 if test -n "$RPM"; then
33744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
33745 $as_echo "$RPM" >&6; }
33746 else
33747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748 $as_echo "no" >&6; }
33749 fi
33750
33751
33752   test -n "$RPM" && break
33753 done
33754
33755
33756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33757
33758
33759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33760
33761
33762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33763
33764
33765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33766
33767
33768  if test "x$RPM" != "x" ; then
33769   RPM_DELEGATE_TRUE=
33770   RPM_DELEGATE_FALSE='#'
33771 else
33772   RPM_DELEGATE_TRUE='#'
33773   RPM_DELEGATE_FALSE=
33774 fi
33775
33776
33777 #
33778 # 7ZIP support (http://p7zip.sourceforge.net/)
33779 #
33780 P7ZIP=''
33781 for ac_prog in 7za
33782 do
33783   # Extract the first word of "$ac_prog", so it can be a program name with args.
33784 set dummy $ac_prog; ac_word=$2
33785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33786 $as_echo_n "checking for $ac_word... " >&6; }
33787 if ${ac_cv_prog_P7ZIP+:} false; then :
33788   $as_echo_n "(cached) " >&6
33789 else
33790   if test -n "$P7ZIP"; then
33791   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33792 else
33793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794 for as_dir in $PATH
33795 do
33796   IFS=$as_save_IFS
33797   test -z "$as_dir" && as_dir=.
33798     for ac_exec_ext in '' $ac_executable_extensions; do
33799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33800     ac_cv_prog_P7ZIP="$ac_prog"
33801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33802     break 2
33803   fi
33804 done
33805   done
33806 IFS=$as_save_IFS
33807
33808 fi
33809 fi
33810 P7ZIP=$ac_cv_prog_P7ZIP
33811 if test -n "$P7ZIP"; then
33812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
33813 $as_echo "$P7ZIP" >&6; }
33814 else
33815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816 $as_echo "no" >&6; }
33817 fi
33818
33819
33820   test -n "$P7ZIP" && break
33821 done
33822
33823
33824  if test "x$P7ZIP" != "x" ; then
33825   P7ZIP_DELEGATE_TRUE=
33826   P7ZIP_DELEGATE_FALSE='#'
33827 else
33828   P7ZIP_DELEGATE_TRUE='#'
33829   P7ZIP_DELEGATE_FALSE=
33830 fi
33831
33832
33833 #
33834 # ZIP support (http://www.info-zip.org/Zip.html)
33835 #
33836 ZIP=''
33837 for ac_prog in zip
33838 do
33839   # Extract the first word of "$ac_prog", so it can be a program name with args.
33840 set dummy $ac_prog; ac_word=$2
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33842 $as_echo_n "checking for $ac_word... " >&6; }
33843 if ${ac_cv_prog_ZIP+:} false; then :
33844   $as_echo_n "(cached) " >&6
33845 else
33846   if test -n "$ZIP"; then
33847   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33848 else
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850 for as_dir in $PATH
33851 do
33852   IFS=$as_save_IFS
33853   test -z "$as_dir" && as_dir=.
33854     for ac_exec_ext in '' $ac_executable_extensions; do
33855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33856     ac_cv_prog_ZIP="$ac_prog"
33857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33858     break 2
33859   fi
33860 done
33861   done
33862 IFS=$as_save_IFS
33863
33864 fi
33865 fi
33866 ZIP=$ac_cv_prog_ZIP
33867 if test -n "$ZIP"; then
33868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
33869 $as_echo "$ZIP" >&6; }
33870 else
33871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33872 $as_echo "no" >&6; }
33873 fi
33874
33875
33876   test -n "$ZIP" && break
33877 done
33878
33879
33880  if test "x$ZIP" != "x" ; then
33881   ZIP_DELEGATE_TRUE=
33882   ZIP_DELEGATE_FALSE='#'
33883 else
33884   ZIP_DELEGATE_TRUE='#'
33885   ZIP_DELEGATE_FALSE=
33886 fi
33887
33888
33889 #
33890 # GhostPCL related configuration.
33891 #
33892 PCLColorDevice=ppmraw
33893 PCLCMYKDevice=bmpsep8
33894 PCLMonoDevice=pbmraw
33895 if test -z "$PCLVersion"; then
33896     PCLVersion='unknown'
33897 fi
33898 if test $have_pcl = 'yes'; then
33899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33900 $as_echo "-------------------------------------------------------------" >&6; }
33901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
33902 $as_echo_n "checking for PCL... " >&6; }
33903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33904 $as_echo "" >&6; }
33905     # PCLColorDevice
33906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
33907 $as_echo_n "checking for pcl color device... " >&6; }
33908     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33909         :
33910     else
33911         PCLColorDevice=ppmraw
33912     fi
33913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
33914 $as_echo "$PCLColorDevice" >&6; }
33915
33916     # PCLCMYKDevice
33917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
33918 $as_echo_n "checking for pcl CMYK device... " >&6; }
33919     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33920         :
33921     else
33922         PCLCMYKDevice=$PCLColorDevice
33923     fi
33924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
33925 $as_echo "$PCLCMYKDevice" >&6; }
33926
33927     # PCLMonoDevice
33928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
33929 $as_echo_n "checking for pcl mono device... " >&6; }
33930     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33931         :
33932     else
33933         PCLMonoDevice=$PCLColorDevice
33934     fi
33935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
33936 $as_echo "$PCLMonoDevice" >&6; }
33937 fi
33938
33939
33940
33941
33942
33943
33944 #
33945 # GhostXPS related configuration.
33946 #
33947 XPSColorDevice=ppmraw
33948 XPSCMYKDevice=bmpsep8
33949 XPSMonoDevice=pbmraw
33950 if test -z "$XPSVersion"; then
33951     XPSVersion='unknown'
33952 fi
33953 if test $have_xps = 'yes'; then
33954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33955 $as_echo "-------------------------------------------------------------" >&6; }
33956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
33957 $as_echo_n "checking for XPS... " >&6; }
33958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33959 $as_echo "" >&6; }
33960     # XPSColorDevice
33961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
33962 $as_echo_n "checking for xps color device... " >&6; }
33963     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33964         :
33965     else
33966         XPSColorDevice=ppmraw
33967     fi
33968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
33969 $as_echo "$XPSColorDevice" >&6; }
33970
33971     # XPSCMYKDevice
33972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
33973 $as_echo_n "checking for xps CMYK device... " >&6; }
33974     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33975         :
33976     else
33977         XPSCMYKDevice=$XPSColorDevice
33978     fi
33979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
33980 $as_echo "$XPSCMYKDevice" >&6; }
33981
33982     # XPSMonoDevice
33983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
33984 $as_echo_n "checking for xps mono device... " >&6; }
33985     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33986         :
33987     else
33988         XPSMonoDevice=$XPSColorDevice
33989     fi
33990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
33991 $as_echo "$XPSMonoDevice" >&6; }
33992 fi
33993
33994
33995
33996
33997
33998
33999 #
34000 # Ghostscript related configuration.
34001 #
34002 GSAlphaDevice=pngalpha
34003 GSColorDevice=pnmraw
34004 GSCMYKDevice=pam
34005 GSMonoDevice=pbmraw
34006 GSPDFDevice=pdfwrite
34007 GSPSDevice=pswrite
34008 GSEPSDevice=epswrite
34009 GSVersion='unknown'
34010 if test $have_gs = 'yes'; then
34011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34012 $as_echo "-------------------------------------------------------------" >&6; }
34013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
34014 $as_echo_n "checking for Ghostscript... " >&6; }
34015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34016 $as_echo "" >&6; }
34017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
34018 $as_echo_n "checking for Ghostscript version... " >&6; }
34019     if GSVersion=`$PSDelegate --version`; then
34020         :
34021     else
34022         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34023     fi
34024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34025 $as_echo "$GSVersion" >&6; }
34026
34027     # GSAlphaDevice
34028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
34029 $as_echo_n "checking for gs alpha device... " >&6; }
34030     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34031         :
34032     else
34033         GSAlphaDevice=pnmraw
34034     fi
34035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34036 $as_echo "$GSAlphaDevice" >&6; }
34037
34038     # GSColorDevice
34039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
34040 $as_echo_n "checking for gs color device... " >&6; }
34041     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34042         :
34043     else
34044         GSColorDevice=pnmraw
34045     fi
34046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34047 $as_echo "$GSColorDevice" >&6; }
34048
34049     # GSCMYKDevice
34050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
34051 $as_echo_n "checking for gs CMYK device... " >&6; }
34052     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34053         :
34054     else
34055         GSCMYKDevice=bmpsep8
34056     fi
34057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34058 $as_echo "$GSCMYKDevice" >&6; }
34059
34060     # GSMonoDevice
34061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
34062 $as_echo_n "checking for gs mono device... " >&6; }
34063     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34064         :
34065     else
34066         GSMonoDevice=$GSColorDevice
34067     fi
34068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34069 $as_echo "$GSMonoDevice" >&6; }
34070
34071     # GSPDFDevice
34072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
34073 $as_echo_n "checking for gs PDF writing device... " >&6; }
34074     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34075         :
34076     else
34077         GSPDFDevice=nodevice
34078     fi
34079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34080 $as_echo "$GSPDFDevice" >&6; }
34081
34082     # GSPSDevice
34083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
34084 $as_echo_n "checking for gs PS writing device... " >&6; }
34085     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34086         :
34087     else
34088         GSPSDevice=nodevice
34089     fi
34090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34091 $as_echo "$GSPSDevice" >&6; }
34092
34093     # GSEPSDevice
34094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
34095 $as_echo_n "checking for gs EPS writing device... " >&6; }
34096     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34097         :
34098     else
34099         GSEPSDevice=nodevice
34100     fi
34101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34102 $as_echo "$GSEPSDevice" >&6; }
34103 fi
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114 #
34115 # PerlMagick-related configuration
34116 #
34117
34118 # Look for PERL if PerlMagick requested
34119 # If name/path of desired PERL interpreter is specified, look for that one first
34120 have_perl='no'
34121 if test "$with_perl" != 'no'; then
34122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34123 $as_echo "-------------------------------------------------------------" >&6; }
34124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
34125 $as_echo_n "checking for Perl... " >&6; }
34126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34127 $as_echo "" >&6; }
34128     if test "$with_perl" != 'yes'; then
34129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
34130 $as_echo_n "checking for perl... " >&6; }
34131 if ${ac_cv_path_PERL+:} false; then :
34132   $as_echo_n "(cached) " >&6
34133 else
34134   ac_cv_path_PERL="$with_perl"
34135 fi
34136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
34137 $as_echo "$ac_cv_path_PERL" >&6; };
34138         PERL=$ac_cv_path_PERL
34139                 have_perl="$ac_cv_path_PERL"
34140     else
34141         for ac_prog in perl perl5
34142 do
34143   # Extract the first word of "$ac_prog", so it can be a program name with args.
34144 set dummy $ac_prog; ac_word=$2
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34146 $as_echo_n "checking for $ac_word... " >&6; }
34147 if ${ac_cv_path_PERL+:} false; then :
34148   $as_echo_n "(cached) " >&6
34149 else
34150   case $PERL in
34151   [\\/]* | ?:[\\/]*)
34152   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34153   ;;
34154   *)
34155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34156 for as_dir in $PATH
34157 do
34158   IFS=$as_save_IFS
34159   test -z "$as_dir" && as_dir=.
34160     for ac_exec_ext in '' $ac_executable_extensions; do
34161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34162     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34164     break 2
34165   fi
34166 done
34167   done
34168 IFS=$as_save_IFS
34169
34170   ;;
34171 esac
34172 fi
34173 PERL=$ac_cv_path_PERL
34174 if test -n "$PERL"; then
34175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34176 $as_echo "$PERL" >&6; }
34177 else
34178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34179 $as_echo "no" >&6; }
34180 fi
34181
34182
34183   test -n "$PERL" && break
34184 done
34185         if test "$ac_cv_path_PERL"; then
34186             have_perl="$ac_cv_path_PERL"
34187         fi
34188     fi
34189 fi
34190
34191 if test "$with_perl" != 'yes' ; then
34192     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34193 fi
34194
34195 PERL_SUPPORTS_DESTDIR='no'
34196
34197 with_perl_static='no'
34198 with_perl_dynamic='no'
34199 if test "$have_perl" != 'no'; then
34200     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34201         with_perl_static='yes'
34202     fi
34203     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34204         with_perl_dynamic='yes'
34205     fi
34206     # Is PERL's MakeMaker new enough to support DESTDIR?
34207
34208
34209
34210
34211     if test -n "$PERL"; then :
34212
34213         ax_perl_version="5.8.1"
34214
34215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34216 $as_echo_n "checking for perl version... " >&6; }
34217
34218         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34219
34220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34221 $as_echo "$perl_version" >&6; }
34222
34223         PERL_VERSION=$perl_version
34224
34225
34226
34227
34228
34229   # Used to indicate true or false condition
34230   ax_compare_version=false
34231
34232   # Convert the two version strings to be compared into a format that
34233   # allows a simple string comparison.  The end result is that a version
34234   # string of the form 1.12.5-r617 will be converted to the form
34235   # 0001001200050617.  In other words, each number is zero padded to four
34236   # digits, and non digits are removed.
34237
34238   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34239                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34240                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34241                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34242                      -e 's/[^0-9]//g'`
34243
34244
34245   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34246                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34247                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34248                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34249                      -e 's/[^0-9]//g'`
34250
34251
34252     ax_compare_version=`echo "x$ax_compare_version_A
34253 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34254
34255
34256
34257     if test "$ax_compare_version" = "true" ; then
34258
34259             :
34260             PERL_SUPPORTS_DESTDIR='yes'
34261
34262     else
34263             :
34264             PERL_SUPPORTS_DESTDIR='no'
34265
34266   fi
34267
34268
34269 else
34270
34271         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34272 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34273         PERL_SUPPORTS_DESTDIR='no'
34274
34275 fi
34276
34277 fi
34278  if test "$have_perl" != 'no'; then
34279   WITH_PERL_TRUE=
34280   WITH_PERL_FALSE='#'
34281 else
34282   WITH_PERL_TRUE='#'
34283   WITH_PERL_FALSE=
34284 fi
34285
34286  if test $with_perl_static = 'yes'; then
34287   WITH_PERL_STATIC_TRUE=
34288   WITH_PERL_STATIC_FALSE='#'
34289 else
34290   WITH_PERL_STATIC_TRUE='#'
34291   WITH_PERL_STATIC_FALSE=
34292 fi
34293
34294  if test $with_perl_dynamic = 'yes'; then
34295   WITH_PERL_DYNAMIC_TRUE=
34296   WITH_PERL_DYNAMIC_FALSE='#'
34297 else
34298   WITH_PERL_DYNAMIC_TRUE='#'
34299   WITH_PERL_DYNAMIC_FALSE=
34300 fi
34301
34302
34303
34304 # Determine path to pick up MagickCore library from for use with building PerlMagick
34305 MAGICKCORE_PATH="${LIB_DIR}"
34306 if test $with_perl_static = 'yes'; then
34307     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34308     libtool_objdir=$objdir
34309
34310     # Linker search path to library, followed by -lMagickCore
34311     MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34312 fi
34313
34314
34315 # Create a simple string containing format names for all delegate libraries
34316 DELEGATES=''
34317 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34318 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34319 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34320 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34321 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34322 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34323 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34324 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34325 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34326 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34327 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34328 if test "$have_jpeg"       = 'yes'; then
34329   DELEGATES="$DELEGATES jpeg";
34330   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34331 fi
34332 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34333 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34334 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34335 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34336 if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34337 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34338 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34339 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
34340 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34341 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34342 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34343 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34344 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34345 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34346
34347
34348
34349 #
34350 # Handle special compiler flags
34351 #
34352
34353 # Add '-p' if prof source profiling support enabled
34354 if test "$enable_prof" = 'yes'; then
34355     CFLAGS="-p $CFLAGS"
34356     CXXFLAGS="-p $CXXFLAGS"
34357     LDFLAGS="-p $LDFLAGS"
34358 fi
34359
34360 # Add '-pg' if gprof source profiling support enabled
34361 if test "$enable_gprof" = 'yes'; then
34362     CFLAGS="-pg $CFLAGS"
34363     CXXFLAGS="-pg $CXXFLAGS"
34364     LDFLAGS="-pg $LDFLAGS"
34365 fi
34366
34367 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34368 # This is a gcc-specific feature
34369 if test "$enable_gcov" = 'yes'; then
34370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34371 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34372 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34373   $as_echo_n "(cached) " >&6
34374 else
34375   ac_check_lib_save_LIBS=$LIBS
34376 LIBS="-lgcov  $LIBS"
34377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34378 /* end confdefs.h.  */
34379
34380 /* Override any GCC internal prototype to avoid an error.
34381    Use char because int might match the return type of a GCC
34382    builtin and then its argument prototype would still apply.  */
34383 #ifdef __cplusplus
34384 extern "C"
34385 #endif
34386 char _gcov_init ();
34387 int
34388 main ()
34389 {
34390 return _gcov_init ();
34391   ;
34392   return 0;
34393 }
34394 _ACEOF
34395 if ac_fn_c_try_link "$LINENO"; then :
34396   ac_cv_lib_gcov__gcov_init=yes
34397 else
34398   ac_cv_lib_gcov__gcov_init=no
34399 fi
34400 rm -f core conftest.err conftest.$ac_objext \
34401     conftest$ac_exeext conftest.$ac_ext
34402 LIBS=$ac_check_lib_save_LIBS
34403 fi
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34405 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34406 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34407   cat >>confdefs.h <<_ACEOF
34408 #define HAVE_LIBGCOV 1
34409 _ACEOF
34410
34411   LIBS="-lgcov $LIBS"
34412
34413 fi
34414
34415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34416 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34417 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34418   $as_echo_n "(cached) " >&6
34419 else
34420   ac_check_lib_save_LIBS=$LIBS
34421 LIBS="-lgcov  $LIBS"
34422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34423 /* end confdefs.h.  */
34424
34425 /* Override any GCC internal prototype to avoid an error.
34426    Use char because int might match the return type of a GCC
34427    builtin and then its argument prototype would still apply.  */
34428 #ifdef __cplusplus
34429 extern "C"
34430 #endif
34431 char __gcov_init ();
34432 int
34433 main ()
34434 {
34435 return __gcov_init ();
34436   ;
34437   return 0;
34438 }
34439 _ACEOF
34440 if ac_fn_c_try_link "$LINENO"; then :
34441   ac_cv_lib_gcov___gcov_init=yes
34442 else
34443   ac_cv_lib_gcov___gcov_init=no
34444 fi
34445 rm -f core conftest.err conftest.$ac_objext \
34446     conftest$ac_exeext conftest.$ac_ext
34447 LIBS=$ac_check_lib_save_LIBS
34448 fi
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34450 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34451 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34452   cat >>confdefs.h <<_ACEOF
34453 #define HAVE_LIBGCOV 1
34454 _ACEOF
34455
34456   LIBS="-lgcov $LIBS"
34457
34458 fi
34459
34460     case "$target_os" in
34461         darwin*)
34462             OSX_GCOV_LDFLAG="-Wl,-single_module"
34463         ;;
34464         *)
34465             OSX_GCOV_LDFLAG=""
34466         ;;
34467     esac
34468
34469     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
34470     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
34471     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34472 fi
34473
34474 #
34475 # Build library dependency list for libMagickCore
34476 #
34477
34478 MAGICK_LIBLTDL='' # Libltdl for build
34479 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
34480 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
34481 if test "$with_ltdl" != 'no'
34482 then
34483   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34484     MAGICK_API_LIBLTDL='-lltdl'
34485   fi
34486   MAGICK_LIBLTDL=${LIBLTDL}
34487   MAGICK_LTDLDEPS=${LTDLDEPS}
34488 fi
34489
34490
34491
34492 if test "$with_modules" != 'no'; then
34493     MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
34494 else
34495     MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
34496 fi
34497
34498
34499 #
34500 # Remove extraneous spaces from output variables (asthetic)
34501 #
34502 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
34503 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
34504 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
34505 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
34506
34507 CC=`echo $CC | sed -e 's/  */ /g'`
34508 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
34509 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
34510 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
34511 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34512 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
34513 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
34514 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
34515 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
34516 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
34517
34518 # Pass only user-provided LIBS as "global" libraries
34519 LIBS=$USER_LIBS
34520
34521 #AC_SUBST(CPPFLAGS)
34522
34523 #AC_SUBST(LDFLAGS)
34524 #AC_SUBST(X_PRE_LIBS)
34525 #AC_SUBST(X_LIBS)
34526 #AC_SUBST(X_EXTRA_LIBS)
34527
34528 MAGICK_CFLAGS=$CFLAGS
34529 MAGICK_CXXFLAGS="$CXXFLAGS"
34530 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
34531 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
34532 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34533 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543 # Set configured scripts to executable.
34544 ac_config_commands="$ac_config_commands default"
34545
34546 ac_config_commands="$ac_config_commands MagickCore-config.in"
34547
34548 ac_config_commands="$ac_config_commands Magick-config.in"
34549
34550 ac_config_commands="$ac_config_commands MagickWand-config.in"
34551
34552 ac_config_commands="$ac_config_commands Wand-config.in"
34553
34554 ac_config_commands="$ac_config_commands Magick++-config.in"
34555
34556 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34557
34558
34559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34560 $as_echo "-------------------------------------------------------------" >&6; }
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
34562 $as_echo "Update ImageMagick configuration" >&6; }
34563 cat >confcache <<\_ACEOF
34564 # This file is a shell script that caches the results of configure
34565 # tests run on this system so they can be shared between configure
34566 # scripts and configure runs, see configure's option --config-cache.
34567 # It is not useful on other systems.  If it contains results you don't
34568 # want to keep, you may remove or edit it.
34569 #
34570 # config.status only pays attention to the cache file if you give it
34571 # the --recheck option to rerun configure.
34572 #
34573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34575 # following values.
34576
34577 _ACEOF
34578
34579 # The following way of writing the cache mishandles newlines in values,
34580 # but we know of no workaround that is simple, portable, and efficient.
34581 # So, we kill variables containing newlines.
34582 # Ultrix sh set writes to stderr and can't be redirected directly,
34583 # and sets the high bit in the cache file unless we assign to the vars.
34584 (
34585   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34586     eval ac_val=\$$ac_var
34587     case $ac_val in #(
34588     *${as_nl}*)
34589       case $ac_var in #(
34590       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34592       esac
34593       case $ac_var in #(
34594       _ | IFS | as_nl) ;; #(
34595       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34596       *) { eval $ac_var=; unset $ac_var;} ;;
34597       esac ;;
34598     esac
34599   done
34600
34601   (set) 2>&1 |
34602     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34603     *${as_nl}ac_space=\ *)
34604       # `set' does not quote correctly, so add quotes: double-quote
34605       # substitution turns \\\\ into \\, and sed turns \\ into \.
34606       sed -n \
34607         "s/'/'\\\\''/g;
34608           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34609       ;; #(
34610     *)
34611       # `set' quotes correctly as required by POSIX, so do not add quotes.
34612       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34613       ;;
34614     esac |
34615     sort
34616 ) |
34617   sed '
34618      /^ac_cv_env_/b end
34619      t clear
34620      :clear
34621      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34622      t end
34623      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34624      :end' >>confcache
34625 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34626   if test -w "$cache_file"; then
34627     if test "x$cache_file" != "x/dev/null"; then
34628       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34629 $as_echo "$as_me: updating cache $cache_file" >&6;}
34630       if test ! -f "$cache_file" || test -h "$cache_file"; then
34631         cat confcache >"$cache_file"
34632       else
34633         case $cache_file in #(
34634         */* | ?:*)
34635           mv -f confcache "$cache_file"$$ &&
34636           mv -f "$cache_file"$$ "$cache_file" ;; #(
34637         *)
34638           mv -f confcache "$cache_file" ;;
34639         esac
34640       fi
34641     fi
34642   else
34643     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34644 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34645   fi
34646 fi
34647 rm -f confcache
34648
34649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34650 # Let make expand exec_prefix.
34651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34652
34653 DEFS=-DHAVE_CONFIG_H
34654
34655 ac_libobjs=
34656 ac_ltlibobjs=
34657 U=
34658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34659   # 1. Remove the extension, and $U if already installed.
34660   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34661   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34662   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34663   #    will be set to the directory where LIBOBJS objects are built.
34664   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34665   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34666 done
34667 LIBOBJS=$ac_libobjs
34668
34669 LTLIBOBJS=$ac_ltlibobjs
34670
34671
34672  if test -n "$EXEEXT"; then
34673   am__EXEEXT_TRUE=
34674   am__EXEEXT_FALSE='#'
34675 else
34676   am__EXEEXT_TRUE='#'
34677   am__EXEEXT_FALSE=
34678 fi
34679
34680 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34681   as_fn_error $? "conditional \"AMDEP\" was never defined.
34682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34683 fi
34684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34685   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34687 fi
34688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34689   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34691 fi
34692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34693   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34695 fi
34696 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
34697   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
34698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34699 fi
34700 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
34701   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
34702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34703 fi
34704 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
34705   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
34706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34707 fi
34708 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
34709   as_fn_error $? "conditional \"USING_CL\" was never defined.
34710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34711 fi
34712 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34713   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
34714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34715 fi
34716 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34717   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
34718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34719 fi
34720 LT_CONFIG_H=config/config.h
34721
34722     _ltdl_libobjs=
34723     _ltdl_ltlibobjs=
34724     if test -n "$_LT_LIBOBJS"; then
34725       # Remove the extension.
34726       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34727       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34728         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34729         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34730       done
34731     fi
34732     ltdl_LIBOBJS=$_ltdl_libobjs
34733
34734     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34735
34736
34737 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
34738   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
34739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34740 fi
34741 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
34742   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
34743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34744 fi
34745 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
34746   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
34747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34748 fi
34749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34750   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34752 fi
34753
34754 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34755   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34757 fi
34758 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
34759   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
34760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34761 fi
34762 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
34763   as_fn_error $? "conditional \"HasUMEM\" was never defined.
34764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34765 fi
34766 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
34767   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
34768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34769 fi
34770 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
34771   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
34772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34773 fi
34774 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
34775   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
34776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34777 fi
34778 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
34779   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
34780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34781 fi
34782 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
34783   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
34784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34785 fi
34786 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
34787   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
34788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34789 fi
34790 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
34791   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
34792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34793 fi
34794 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
34795   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
34796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34797 fi
34798 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
34799   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
34800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34801 fi
34802 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
34803   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
34804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34805 fi
34806 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
34807   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
34808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34809 fi
34810 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
34811   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
34812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34813 fi
34814 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
34815   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
34816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34817 fi
34818 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
34819   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
34820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34821 fi
34822 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
34823   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
34824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34825 fi
34826 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
34827   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
34828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34829 fi
34830 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
34831   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
34832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34833 fi
34834 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34835   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34837 fi
34838 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
34839   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
34840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34841 fi
34842 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
34843   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
34844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34845 fi
34846 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
34847   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
34848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34849 fi
34850 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
34851   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
34852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34853 fi
34854 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
34855   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
34856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34857 fi
34858 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34859   as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34861 fi
34862 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
34863   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
34864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34865 fi
34866 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
34867   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
34868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34869 fi
34870 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
34871   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
34872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34873 fi
34874 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
34875   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
34876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34877 fi
34878 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
34879   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
34880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34881 fi
34882 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
34883   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
34884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34885 fi
34886 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
34887   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
34888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34889 fi
34890 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
34891   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
34892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34893 fi
34894
34895 : "${CONFIG_STATUS=./config.status}"
34896 ac_write_fail=0
34897 ac_clean_files_save=$ac_clean_files
34898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34901 as_write_fail=0
34902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34903 #! $SHELL
34904 # Generated by $as_me.
34905 # Run this file to recreate the current configuration.
34906 # Compiler output produced by configure, useful for debugging
34907 # configure, is in config.log if it exists.
34908
34909 debug=false
34910 ac_cs_recheck=false
34911 ac_cs_silent=false
34912
34913 SHELL=\${CONFIG_SHELL-$SHELL}
34914 export SHELL
34915 _ASEOF
34916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34917 ## -------------------- ##
34918 ## M4sh Initialization. ##
34919 ## -------------------- ##
34920
34921 # Be more Bourne compatible
34922 DUALCASE=1; export DUALCASE # for MKS sh
34923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34924   emulate sh
34925   NULLCMD=:
34926   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34927   # is contrary to our usage.  Disable this feature.
34928   alias -g '${1+"$@"}'='"$@"'
34929   setopt NO_GLOB_SUBST
34930 else
34931   case `(set -o) 2>/dev/null` in #(
34932   *posix*) :
34933     set -o posix ;; #(
34934   *) :
34935      ;;
34936 esac
34937 fi
34938
34939
34940 as_nl='
34941 '
34942 export as_nl
34943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34944 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34947 # Prefer a ksh shell builtin over an external printf program on Solaris,
34948 # but without wasting forks for bash or zsh.
34949 if test -z "$BASH_VERSION$ZSH_VERSION" \
34950     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34951   as_echo='print -r --'
34952   as_echo_n='print -rn --'
34953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34954   as_echo='printf %s\n'
34955   as_echo_n='printf %s'
34956 else
34957   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34958     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34959     as_echo_n='/usr/ucb/echo -n'
34960   else
34961     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34962     as_echo_n_body='eval
34963       arg=$1;
34964       case $arg in #(
34965       *"$as_nl"*)
34966         expr "X$arg" : "X\\(.*\\)$as_nl";
34967         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34968       esac;
34969       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34970     '
34971     export as_echo_n_body
34972     as_echo_n='sh -c $as_echo_n_body as_echo'
34973   fi
34974   export as_echo_body
34975   as_echo='sh -c $as_echo_body as_echo'
34976 fi
34977
34978 # The user is always right.
34979 if test "${PATH_SEPARATOR+set}" != set; then
34980   PATH_SEPARATOR=:
34981   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34982     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34983       PATH_SEPARATOR=';'
34984   }
34985 fi
34986
34987
34988 # IFS
34989 # We need space, tab and new line, in precisely that order.  Quoting is
34990 # there to prevent editors from complaining about space-tab.
34991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34992 # splitting by setting IFS to empty value.)
34993 IFS=" ""        $as_nl"
34994
34995 # Find who we are.  Look in the path if we contain no directory separator.
34996 as_myself=
34997 case $0 in #((
34998   *[\\/]* ) as_myself=$0 ;;
34999   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35000 for as_dir in $PATH
35001 do
35002   IFS=$as_save_IFS
35003   test -z "$as_dir" && as_dir=.
35004     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35005   done
35006 IFS=$as_save_IFS
35007
35008      ;;
35009 esac
35010 # We did not find ourselves, most probably we were run as `sh COMMAND'
35011 # in which case we are not to be found in the path.
35012 if test "x$as_myself" = x; then
35013   as_myself=$0
35014 fi
35015 if test ! -f "$as_myself"; then
35016   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35017   exit 1
35018 fi
35019
35020 # Unset variables that we do not need and which cause bugs (e.g. in
35021 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35022 # suppresses any "Segmentation fault" message there.  '((' could
35023 # trigger a bug in pdksh 5.2.14.
35024 for as_var in BASH_ENV ENV MAIL MAILPATH
35025 do eval test x\${$as_var+set} = xset \
35026   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35027 done
35028 PS1='$ '
35029 PS2='> '
35030 PS4='+ '
35031
35032 # NLS nuisances.
35033 LC_ALL=C
35034 export LC_ALL
35035 LANGUAGE=C
35036 export LANGUAGE
35037
35038 # CDPATH.
35039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35040
35041
35042 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35043 # ----------------------------------------
35044 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35045 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35046 # script with STATUS, using 1 if that was 0.
35047 as_fn_error ()
35048 {
35049   as_status=$1; test $as_status -eq 0 && as_status=1
35050   if test "$4"; then
35051     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35052     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35053   fi
35054   $as_echo "$as_me: error: $2" >&2
35055   as_fn_exit $as_status
35056 } # as_fn_error
35057
35058
35059 # as_fn_set_status STATUS
35060 # -----------------------
35061 # Set $? to STATUS, without forking.
35062 as_fn_set_status ()
35063 {
35064   return $1
35065 } # as_fn_set_status
35066
35067 # as_fn_exit STATUS
35068 # -----------------
35069 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35070 as_fn_exit ()
35071 {
35072   set +e
35073   as_fn_set_status $1
35074   exit $1
35075 } # as_fn_exit
35076
35077 # as_fn_unset VAR
35078 # ---------------
35079 # Portably unset VAR.
35080 as_fn_unset ()
35081 {
35082   { eval $1=; unset $1;}
35083 }
35084 as_unset=as_fn_unset
35085 # as_fn_append VAR VALUE
35086 # ----------------------
35087 # Append the text in VALUE to the end of the definition contained in VAR. Take
35088 # advantage of any shell optimizations that allow amortized linear growth over
35089 # repeated appends, instead of the typical quadratic growth present in naive
35090 # implementations.
35091 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35092   eval 'as_fn_append ()
35093   {
35094     eval $1+=\$2
35095   }'
35096 else
35097   as_fn_append ()
35098   {
35099     eval $1=\$$1\$2
35100   }
35101 fi # as_fn_append
35102
35103 # as_fn_arith ARG...
35104 # ------------------
35105 # Perform arithmetic evaluation on the ARGs, and store the result in the
35106 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35107 # must be portable across $(()) and expr.
35108 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35109   eval 'as_fn_arith ()
35110   {
35111     as_val=$(( $* ))
35112   }'
35113 else
35114   as_fn_arith ()
35115   {
35116     as_val=`expr "$@" || test $? -eq 1`
35117   }
35118 fi # as_fn_arith
35119
35120
35121 if expr a : '\(a\)' >/dev/null 2>&1 &&
35122    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35123   as_expr=expr
35124 else
35125   as_expr=false
35126 fi
35127
35128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35129   as_basename=basename
35130 else
35131   as_basename=false
35132 fi
35133
35134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35135   as_dirname=dirname
35136 else
35137   as_dirname=false
35138 fi
35139
35140 as_me=`$as_basename -- "$0" ||
35141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35142          X"$0" : 'X\(//\)$' \| \
35143          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35144 $as_echo X/"$0" |
35145     sed '/^.*\/\([^/][^/]*\)\/*$/{
35146             s//\1/
35147             q
35148           }
35149           /^X\/\(\/\/\)$/{
35150             s//\1/
35151             q
35152           }
35153           /^X\/\(\/\).*/{
35154             s//\1/
35155             q
35156           }
35157           s/.*/./; q'`
35158
35159 # Avoid depending upon Character Ranges.
35160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35163 as_cr_digits='0123456789'
35164 as_cr_alnum=$as_cr_Letters$as_cr_digits
35165
35166 ECHO_C= ECHO_N= ECHO_T=
35167 case `echo -n x` in #(((((
35168 -n*)
35169   case `echo 'xy\c'` in
35170   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35171   xy)  ECHO_C='\c';;
35172   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35173        ECHO_T=' ';;
35174   esac;;
35175 *)
35176   ECHO_N='-n';;
35177 esac
35178
35179 rm -f conf$$ conf$$.exe conf$$.file
35180 if test -d conf$$.dir; then
35181   rm -f conf$$.dir/conf$$.file
35182 else
35183   rm -f conf$$.dir
35184   mkdir conf$$.dir 2>/dev/null
35185 fi
35186 if (echo >conf$$.file) 2>/dev/null; then
35187   if ln -s conf$$.file conf$$ 2>/dev/null; then
35188     as_ln_s='ln -s'
35189     # ... but there are two gotchas:
35190     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35191     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35192     # In both cases, we have to default to `cp -p'.
35193     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35194       as_ln_s='cp -p'
35195   elif ln conf$$.file conf$$ 2>/dev/null; then
35196     as_ln_s=ln
35197   else
35198     as_ln_s='cp -p'
35199   fi
35200 else
35201   as_ln_s='cp -p'
35202 fi
35203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35204 rmdir conf$$.dir 2>/dev/null
35205
35206
35207 # as_fn_mkdir_p
35208 # -------------
35209 # Create "$as_dir" as a directory, including parents if necessary.
35210 as_fn_mkdir_p ()
35211 {
35212
35213   case $as_dir in #(
35214   -*) as_dir=./$as_dir;;
35215   esac
35216   test -d "$as_dir" || eval $as_mkdir_p || {
35217     as_dirs=
35218     while :; do
35219       case $as_dir in #(
35220       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35221       *) as_qdir=$as_dir;;
35222       esac
35223       as_dirs="'$as_qdir' $as_dirs"
35224       as_dir=`$as_dirname -- "$as_dir" ||
35225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35226          X"$as_dir" : 'X\(//\)[^/]' \| \
35227          X"$as_dir" : 'X\(//\)$' \| \
35228          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35229 $as_echo X"$as_dir" |
35230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35231             s//\1/
35232             q
35233           }
35234           /^X\(\/\/\)[^/].*/{
35235             s//\1/
35236             q
35237           }
35238           /^X\(\/\/\)$/{
35239             s//\1/
35240             q
35241           }
35242           /^X\(\/\).*/{
35243             s//\1/
35244             q
35245           }
35246           s/.*/./; q'`
35247       test -d "$as_dir" && break
35248     done
35249     test -z "$as_dirs" || eval "mkdir $as_dirs"
35250   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35251
35252
35253 } # as_fn_mkdir_p
35254 if mkdir -p . 2>/dev/null; then
35255   as_mkdir_p='mkdir -p "$as_dir"'
35256 else
35257   test -d ./-p && rmdir ./-p
35258   as_mkdir_p=false
35259 fi
35260
35261 if test -x / >/dev/null 2>&1; then
35262   as_test_x='test -x'
35263 else
35264   if ls -dL / >/dev/null 2>&1; then
35265     as_ls_L_option=L
35266   else
35267     as_ls_L_option=
35268   fi
35269   as_test_x='
35270     eval sh -c '\''
35271       if test -d "$1"; then
35272         test -d "$1/.";
35273       else
35274         case $1 in #(
35275         -*)set "./$1";;
35276         esac;
35277         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35278         ???[sx]*):;;*)false;;esac;fi
35279     '\'' sh
35280   '
35281 fi
35282 as_executable_p=$as_test_x
35283
35284 # Sed expression to map a string onto a valid CPP name.
35285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35286
35287 # Sed expression to map a string onto a valid variable name.
35288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35289
35290
35291 exec 6>&1
35292 ## ----------------------------------- ##
35293 ## Main body of $CONFIG_STATUS script. ##
35294 ## ----------------------------------- ##
35295 _ASEOF
35296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35297
35298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35299 # Save the log message, to keep $0 and so on meaningful, and to
35300 # report actual input values of CONFIG_FILES etc. instead of their
35301 # values after options handling.
35302 ac_log="
35303 This file was extended by ImageMagick $as_me 7.0.0, which was
35304 generated by GNU Autoconf 2.68.  Invocation command line was
35305
35306   CONFIG_FILES    = $CONFIG_FILES
35307   CONFIG_HEADERS  = $CONFIG_HEADERS
35308   CONFIG_LINKS    = $CONFIG_LINKS
35309   CONFIG_COMMANDS = $CONFIG_COMMANDS
35310   $ $0 $@
35311
35312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35313 "
35314
35315 _ACEOF
35316
35317 case $ac_config_files in *"
35318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35319 esac
35320
35321 case $ac_config_headers in *"
35322 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35323 esac
35324
35325
35326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35327 # Files that config.status was made for.
35328 config_files="$ac_config_files"
35329 config_headers="$ac_config_headers"
35330 config_commands="$ac_config_commands"
35331
35332 _ACEOF
35333
35334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35335 ac_cs_usage="\
35336 \`$as_me' instantiates files and other configuration actions
35337 from templates according to the current configuration.  Unless the files
35338 and actions are specified as TAGs, all are instantiated by default.
35339
35340 Usage: $0 [OPTION]... [TAG]...
35341
35342   -h, --help       print this help, then exit
35343   -V, --version    print version number and configuration settings, then exit
35344       --config     print configuration, then exit
35345   -q, --quiet, --silent
35346                    do not print progress messages
35347   -d, --debug      don't remove temporary files
35348       --recheck    update $as_me by reconfiguring in the same conditions
35349       --file=FILE[:TEMPLATE]
35350                    instantiate the configuration file FILE
35351       --header=FILE[:TEMPLATE]
35352                    instantiate the configuration header FILE
35353
35354 Configuration files:
35355 $config_files
35356
35357 Configuration headers:
35358 $config_headers
35359
35360 Configuration commands:
35361 $config_commands
35362
35363 Report bugs to <http://www.imagemagick.org>."
35364
35365 _ACEOF
35366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35368 ac_cs_version="\\
35369 ImageMagick config.status 7.0.0
35370 configured by $0, generated by GNU Autoconf 2.68,
35371   with options \\"\$ac_cs_config\\"
35372
35373 Copyright (C) 2010 Free Software Foundation, Inc.
35374 This config.status script is free software; the Free Software Foundation
35375 gives unlimited permission to copy, distribute and modify it."
35376
35377 ac_pwd='$ac_pwd'
35378 srcdir='$srcdir'
35379 INSTALL='$INSTALL'
35380 MKDIR_P='$MKDIR_P'
35381 AWK='$AWK'
35382 test -n "\$AWK" || AWK=awk
35383 _ACEOF
35384
35385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35386 # The default lists apply if the user does not specify any file.
35387 ac_need_defaults=:
35388 while test $# != 0
35389 do
35390   case $1 in
35391   --*=?*)
35392     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35393     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35394     ac_shift=:
35395     ;;
35396   --*=)
35397     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35398     ac_optarg=
35399     ac_shift=:
35400     ;;
35401   *)
35402     ac_option=$1
35403     ac_optarg=$2
35404     ac_shift=shift
35405     ;;
35406   esac
35407
35408   case $ac_option in
35409   # Handling of the options.
35410   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35411     ac_cs_recheck=: ;;
35412   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35413     $as_echo "$ac_cs_version"; exit ;;
35414   --config | --confi | --conf | --con | --co | --c )
35415     $as_echo "$ac_cs_config"; exit ;;
35416   --debug | --debu | --deb | --de | --d | -d )
35417     debug=: ;;
35418   --file | --fil | --fi | --f )
35419     $ac_shift
35420     case $ac_optarg in
35421     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35422     '') as_fn_error $? "missing file argument" ;;
35423     esac
35424     as_fn_append CONFIG_FILES " '$ac_optarg'"
35425     ac_need_defaults=false;;
35426   --header | --heade | --head | --hea )
35427     $ac_shift
35428     case $ac_optarg in
35429     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35430     esac
35431     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35432     ac_need_defaults=false;;
35433   --he | --h)
35434     # Conflict between --help and --header
35435     as_fn_error $? "ambiguous option: \`$1'
35436 Try \`$0 --help' for more information.";;
35437   --help | --hel | -h )
35438     $as_echo "$ac_cs_usage"; exit ;;
35439   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35440   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35441     ac_cs_silent=: ;;
35442
35443   # This is an error.
35444   -*) as_fn_error $? "unrecognized option: \`$1'
35445 Try \`$0 --help' for more information." ;;
35446
35447   *) as_fn_append ac_config_targets " $1"
35448      ac_need_defaults=false ;;
35449
35450   esac
35451   shift
35452 done
35453
35454 ac_configure_extra_args=
35455
35456 if $ac_cs_silent; then
35457   exec 6>/dev/null
35458   ac_configure_extra_args="$ac_configure_extra_args --silent"
35459 fi
35460
35461 _ACEOF
35462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35463 if \$ac_cs_recheck; then
35464   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35465   shift
35466   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35467   CONFIG_SHELL='$SHELL'
35468   export CONFIG_SHELL
35469   exec "\$@"
35470 fi
35471
35472 _ACEOF
35473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35474 exec 5>>config.log
35475 {
35476   echo
35477   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35478 ## Running $as_me. ##
35479 _ASBOX
35480   $as_echo "$ac_log"
35481 } >&5
35482
35483 _ACEOF
35484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35485 #
35486 # INIT-COMMANDS
35487 #
35488 PACKAGE="$PACKAGE"
35489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35490
35491
35492 # The HP-UX ksh and POSIX shell print the target directory to stdout
35493 # if CDPATH is set.
35494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35495
35496 sed_quote_subst='$sed_quote_subst'
35497 double_quote_subst='$double_quote_subst'
35498 delay_variable_subst='$delay_variable_subst'
35499 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35500 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35501 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35502 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35503 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35507 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35508 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35509 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35510 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35513 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35514 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35515 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35516 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35517 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35518 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35519 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35520 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35521 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35534 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35535 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35536 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35537 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35538 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35539 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35540 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35541 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35542 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35543 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35544 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35545 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35546 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35547 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35548 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35549 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35550 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35551 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35552 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35553 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35554 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
35556 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35557 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35558 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35559 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35560 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35561 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35562 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35563 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35564 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35565 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35566 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35567 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35568 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35569 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35570 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35571 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35572 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35573 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35574 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35575 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35576 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35577 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35578 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35579 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35580 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35581 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35582 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35583 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35584 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35585 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35586 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35587 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35588 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35589 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35590 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35591 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35592 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35593 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35594 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35595 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35596 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35597 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35598 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35599 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35600 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35601 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35602 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35603 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35604 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35605 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35606 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35607 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35608 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35609 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35610 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35611 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35612 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35613 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35614 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35615 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35616 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35617 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35618 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35619 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35620 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35621 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35622 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35623 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35624 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35625 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35626 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35627 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35628 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35629 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35630 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35631 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35632 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35633 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35634 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35635 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35636 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35637 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35638 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35639 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35640 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35641 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35642 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35643 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35644 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35645 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35646 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35647 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35648 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35649 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35650 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35651 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35652 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35653 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35654 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35655 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35656 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35657 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35658 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35659 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35660 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35661 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35662 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35663 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35664 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35665 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35666 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35667 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35668 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35669 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35670 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35671 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35672 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35673 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35674 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35675 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35676 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35677 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35678 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35679 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35680 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35681 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35682 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35683 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35684 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35685
35686 LTCC='$LTCC'
35687 LTCFLAGS='$LTCFLAGS'
35688 compiler='$compiler_DEFAULT'
35689
35690 # A function that is used when there is no print builtin or printf.
35691 func_fallback_echo ()
35692 {
35693   eval 'cat <<_LTECHO_EOF
35694 \$1
35695 _LTECHO_EOF'
35696 }
35697
35698 # Quote evaled strings.
35699 for var in SED \
35700 GREP \
35701 EGREP \
35702 FGREP \
35703 SHELL \
35704 ECHO \
35705 LD \
35706 AS \
35707 DLLTOOL \
35708 OBJDUMP \
35709 NM \
35710 LN_S \
35711 lt_SP2NL \
35712 lt_NL2SP \
35713 reload_flag \
35714 deplibs_check_method \
35715 file_magic_cmd \
35716 file_magic_glob \
35717 want_nocaseglob \
35718 sharedlib_from_linklib_cmd \
35719 AR \
35720 AR_FLAGS \
35721 archiver_list_spec \
35722 STRIP \
35723 RANLIB \
35724 CC \
35725 CFLAGS \
35726 compiler \
35727 lt_cv_sys_global_symbol_pipe \
35728 lt_cv_sys_global_symbol_to_cdecl \
35729 lt_cv_sys_global_symbol_to_c_name_address \
35730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35731 nm_file_list_spec \
35732 lt_prog_compiler_no_builtin_flag \
35733 lt_prog_compiler_pic \
35734 lt_prog_compiler_wl \
35735 lt_prog_compiler_static \
35736 lt_cv_prog_compiler_c_o \
35737 need_locks \
35738 MANIFEST_TOOL \
35739 DSYMUTIL \
35740 NMEDIT \
35741 LIPO \
35742 OTOOL \
35743 OTOOL64 \
35744 shrext_cmds \
35745 export_dynamic_flag_spec \
35746 whole_archive_flag_spec \
35747 compiler_needs_object \
35748 with_gnu_ld \
35749 allow_undefined_flag \
35750 no_undefined_flag \
35751 hardcode_libdir_flag_spec \
35752 hardcode_libdir_flag_spec_ld \
35753 hardcode_libdir_separator \
35754 exclude_expsyms \
35755 include_expsyms \
35756 file_list_spec \
35757 variables_saved_for_relink \
35758 libname_spec \
35759 library_names_spec \
35760 soname_spec \
35761 install_override_mode \
35762 finish_eval \
35763 old_striplib \
35764 striplib \
35765 compiler_lib_search_dirs \
35766 predep_objects \
35767 postdep_objects \
35768 predeps \
35769 postdeps \
35770 compiler_lib_search_path \
35771 LD_CXX \
35772 reload_flag_CXX \
35773 compiler_CXX \
35774 lt_prog_compiler_no_builtin_flag_CXX \
35775 lt_prog_compiler_pic_CXX \
35776 lt_prog_compiler_wl_CXX \
35777 lt_prog_compiler_static_CXX \
35778 lt_cv_prog_compiler_c_o_CXX \
35779 export_dynamic_flag_spec_CXX \
35780 whole_archive_flag_spec_CXX \
35781 compiler_needs_object_CXX \
35782 with_gnu_ld_CXX \
35783 allow_undefined_flag_CXX \
35784 no_undefined_flag_CXX \
35785 hardcode_libdir_flag_spec_CXX \
35786 hardcode_libdir_flag_spec_ld_CXX \
35787 hardcode_libdir_separator_CXX \
35788 exclude_expsyms_CXX \
35789 include_expsyms_CXX \
35790 file_list_spec_CXX \
35791 compiler_lib_search_dirs_CXX \
35792 predep_objects_CXX \
35793 postdep_objects_CXX \
35794 predeps_CXX \
35795 postdeps_CXX \
35796 compiler_lib_search_path_CXX; do
35797     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35798     *[\\\\\\\`\\"\\\$]*)
35799       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35800       ;;
35801     *)
35802       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35803       ;;
35804     esac
35805 done
35806
35807 # Double-quote double-evaled strings.
35808 for var in reload_cmds \
35809 old_postinstall_cmds \
35810 old_postuninstall_cmds \
35811 old_archive_cmds \
35812 extract_expsyms_cmds \
35813 old_archive_from_new_cmds \
35814 old_archive_from_expsyms_cmds \
35815 archive_cmds \
35816 archive_expsym_cmds \
35817 module_cmds \
35818 module_expsym_cmds \
35819 export_symbols_cmds \
35820 prelink_cmds \
35821 postlink_cmds \
35822 postinstall_cmds \
35823 postuninstall_cmds \
35824 finish_cmds \
35825 sys_lib_search_path_spec \
35826 sys_lib_dlsearch_path_spec \
35827 reload_cmds_CXX \
35828 old_archive_cmds_CXX \
35829 old_archive_from_new_cmds_CXX \
35830 old_archive_from_expsyms_cmds_CXX \
35831 archive_cmds_CXX \
35832 archive_expsym_cmds_CXX \
35833 module_cmds_CXX \
35834 module_expsym_cmds_CXX \
35835 export_symbols_cmds_CXX \
35836 prelink_cmds_CXX \
35837 postlink_cmds_CXX; do
35838     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35839     *[\\\\\\\`\\"\\\$]*)
35840       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35841       ;;
35842     *)
35843       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35844       ;;
35845     esac
35846 done
35847
35848 ac_aux_dir='$ac_aux_dir'
35849 xsi_shell='$xsi_shell'
35850 lt_shell_append='$lt_shell_append'
35851
35852 # See if we are running on zsh, and set the options which allow our
35853 # commands through without removal of \ escapes INIT.
35854 if test -n "\${ZSH_VERSION+set}" ; then
35855    setopt NO_GLOB_SUBST
35856 fi
35857
35858
35859     PACKAGE='$PACKAGE'
35860     VERSION='$VERSION'
35861     TIMESTAMP='$TIMESTAMP'
35862     RM='$RM'
35863     ofile='$ofile'
35864
35865
35866
35867
35868
35869
35870 _ACEOF
35871
35872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35873
35874 # Handling of arguments.
35875 for ac_config_target in $ac_config_targets
35876 do
35877   case $ac_config_target in
35878     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
35879     "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
35880     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35881     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35882     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35883     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35884     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
35885     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
35886     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35887     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35888     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35889     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35890     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35891     "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
35892     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35893     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35894     "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35895     "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35896     "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
35897     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35898     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35899     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35900     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35901     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35902     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35903     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35904     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35905     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35906     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35907     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35908     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35909     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35910     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35911     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35912     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35913     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35914     "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35915     "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
35916     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35917     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35918     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35919     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35920     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35921     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35922     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35923     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35924     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35925
35926   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35927   esac
35928 done
35929
35930
35931 # If the user did not use the arguments to specify the items to instantiate,
35932 # then the envvar interface is used.  Set only those that are not.
35933 # We use the long form for the default assignment because of an extremely
35934 # bizarre bug on SunOS 4.1.3.
35935 if $ac_need_defaults; then
35936   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35937   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35938   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35939 fi
35940
35941 # Have a temporary directory for convenience.  Make it in the build tree
35942 # simply because there is no reason against having it here, and in addition,
35943 # creating and moving files from /tmp can sometimes cause problems.
35944 # Hook for its removal unless debugging.
35945 # Note that there is a small window in which the directory will not be cleaned:
35946 # after its creation but before its name has been assigned to `$tmp'.
35947 $debug ||
35948 {
35949   tmp= ac_tmp=
35950   trap 'exit_status=$?
35951   : "${ac_tmp:=$tmp}"
35952   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35953 ' 0
35954   trap 'as_fn_exit 1' 1 2 13 15
35955 }
35956 # Create a (secure) tmp directory for tmp files.
35957
35958 {
35959   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35960   test -d "$tmp"
35961 }  ||
35962 {
35963   tmp=./conf$$-$RANDOM
35964   (umask 077 && mkdir "$tmp")
35965 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35966 ac_tmp=$tmp
35967
35968 # Set up the scripts for CONFIG_FILES section.
35969 # No need to generate them if there are no CONFIG_FILES.
35970 # This happens for instance with `./config.status config.h'.
35971 if test -n "$CONFIG_FILES"; then
35972
35973
35974 ac_cr=`echo X | tr X '\015'`
35975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35976 # But we know of no other shell where ac_cr would be empty at this
35977 # point, so we can use a bashism as a fallback.
35978 if test "x$ac_cr" = x; then
35979   eval ac_cr=\$\'\\r\'
35980 fi
35981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35983   ac_cs_awk_cr='\\r'
35984 else
35985   ac_cs_awk_cr=$ac_cr
35986 fi
35987
35988 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35989 _ACEOF
35990
35991
35992 {
35993   echo "cat >conf$$subs.awk <<_ACEOF" &&
35994   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35995   echo "_ACEOF"
35996 } >conf$$subs.sh ||
35997   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35998 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35999 ac_delim='%!_!# '
36000 for ac_last_try in false false false false false :; do
36001   . ./conf$$subs.sh ||
36002     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36003
36004   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36005   if test $ac_delim_n = $ac_delim_num; then
36006     break
36007   elif $ac_last_try; then
36008     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36009   else
36010     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36011   fi
36012 done
36013 rm -f conf$$subs.sh
36014
36015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36016 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36017 _ACEOF
36018 sed -n '
36019 h
36020 s/^/S["/; s/!.*/"]=/
36021 p
36022 g
36023 s/^[^!]*!//
36024 :repl
36025 t repl
36026 s/'"$ac_delim"'$//
36027 t delim
36028 :nl
36029 h
36030 s/\(.\{148\}\)..*/\1/
36031 t more1
36032 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36033 p
36034 n
36035 b repl
36036 :more1
36037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36038 p
36039 g
36040 s/.\{148\}//
36041 t nl
36042 :delim
36043 h
36044 s/\(.\{148\}\)..*/\1/
36045 t more2
36046 s/["\\]/\\&/g; s/^/"/; s/$/"/
36047 p
36048 b
36049 :more2
36050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36051 p
36052 g
36053 s/.\{148\}//
36054 t delim
36055 ' <conf$$subs.awk | sed '
36056 /^[^""]/{
36057   N
36058   s/\n//
36059 }
36060 ' >>$CONFIG_STATUS || ac_write_fail=1
36061 rm -f conf$$subs.awk
36062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36063 _ACAWK
36064 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36065   for (key in S) S_is_set[key] = 1
36066   FS = "\a"
36067
36068 }
36069 {
36070   line = $ 0
36071   nfields = split(line, field, "@")
36072   substed = 0
36073   len = length(field[1])
36074   for (i = 2; i < nfields; i++) {
36075     key = field[i]
36076     keylen = length(key)
36077     if (S_is_set[key]) {
36078       value = S[key]
36079       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36080       len += length(value) + length(field[++i])
36081       substed = 1
36082     } else
36083       len += 1 + keylen
36084   }
36085
36086   print line
36087 }
36088
36089 _ACAWK
36090 _ACEOF
36091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36093   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36094 else
36095   cat
36096 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36097   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36098 _ACEOF
36099
36100 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36101 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36102 # trailing colons and then remove the whole line if VPATH becomes empty
36103 # (actually we leave an empty line to preserve line numbers).
36104 if test "x$srcdir" = x.; then
36105   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
36106 h
36107 s///
36108 s/^/:/
36109 s/[      ]*$/:/
36110 s/:\$(srcdir):/:/g
36111 s/:\${srcdir}:/:/g
36112 s/:@srcdir@:/:/g
36113 s/^:*//
36114 s/:*$//
36115 x
36116 s/\(=[   ]*\).*/\1/
36117 G
36118 s/\n//
36119 s/^[^=]*=[       ]*$//
36120 }'
36121 fi
36122
36123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36124 fi # test -n "$CONFIG_FILES"
36125
36126 # Set up the scripts for CONFIG_HEADERS section.
36127 # No need to generate them if there are no CONFIG_HEADERS.
36128 # This happens for instance with `./config.status Makefile'.
36129 if test -n "$CONFIG_HEADERS"; then
36130 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36131 BEGIN {
36132 _ACEOF
36133
36134 # Transform confdefs.h into an awk script `defines.awk', embedded as
36135 # here-document in config.status, that substitutes the proper values into
36136 # config.h.in to produce config.h.
36137
36138 # Create a delimiter string that does not exist in confdefs.h, to ease
36139 # handling of long lines.
36140 ac_delim='%!_!# '
36141 for ac_last_try in false false :; do
36142   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36143   if test -z "$ac_tt"; then
36144     break
36145   elif $ac_last_try; then
36146     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36147   else
36148     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36149   fi
36150 done
36151
36152 # For the awk script, D is an array of macro values keyed by name,
36153 # likewise P contains macro parameters if any.  Preserve backslash
36154 # newline sequences.
36155
36156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36157 sed -n '
36158 s/.\{148\}/&'"$ac_delim"'/g
36159 t rset
36160 :rset
36161 s/^[     ]*#[    ]*define[       ][      ]*/ /
36162 t def
36163 d
36164 :def
36165 s/\\$//
36166 t bsnl
36167 s/["\\]/\\&/g
36168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36169 D["\1"]=" \3"/p
36170 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36171 d
36172 :bsnl
36173 s/["\\]/\\&/g
36174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36175 D["\1"]=" \3\\\\\\n"\\/p
36176 t cont
36177 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36178 t cont
36179 d
36180 :cont
36181 n
36182 s/.\{148\}/&'"$ac_delim"'/g
36183 t clear
36184 :clear
36185 s/\\$//
36186 t bsnlc
36187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36188 d
36189 :bsnlc
36190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36191 b cont
36192 ' <confdefs.h | sed '
36193 s/'"$ac_delim"'/"\\\
36194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36195
36196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36197   for (key in D) D_is_set[key] = 1
36198   FS = "\a"
36199 }
36200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36201   line = \$ 0
36202   split(line, arg, " ")
36203   if (arg[1] == "#") {
36204     defundef = arg[2]
36205     mac1 = arg[3]
36206   } else {
36207     defundef = substr(arg[1], 2)
36208     mac1 = arg[2]
36209   }
36210   split(mac1, mac2, "(") #)
36211   macro = mac2[1]
36212   prefix = substr(line, 1, index(line, defundef) - 1)
36213   if (D_is_set[macro]) {
36214     # Preserve the white space surrounding the "#".
36215     print prefix "define", macro P[macro] D[macro]
36216     next
36217   } else {
36218     # Replace #undef with comments.  This is necessary, for example,
36219     # in the case of _POSIX_SOURCE, which is predefined and required
36220     # on some systems where configure will not decide to define it.
36221     if (defundef == "undef") {
36222       print "/*", prefix defundef, macro, "*/"
36223       next
36224     }
36225   }
36226 }
36227 { print }
36228 _ACAWK
36229 _ACEOF
36230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36231   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36232 fi # test -n "$CONFIG_HEADERS"
36233
36234
36235 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36236 shift
36237 for ac_tag
36238 do
36239   case $ac_tag in
36240   :[FHLC]) ac_mode=$ac_tag; continue;;
36241   esac
36242   case $ac_mode$ac_tag in
36243   :[FHL]*:*);;
36244   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36245   :[FH]-) ac_tag=-:-;;
36246   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36247   esac
36248   ac_save_IFS=$IFS
36249   IFS=:
36250   set x $ac_tag
36251   IFS=$ac_save_IFS
36252   shift
36253   ac_file=$1
36254   shift
36255
36256   case $ac_mode in
36257   :L) ac_source=$1;;
36258   :[FH])
36259     ac_file_inputs=
36260     for ac_f
36261     do
36262       case $ac_f in
36263       -) ac_f="$ac_tmp/stdin";;
36264       *) # Look for the file first in the build tree, then in the source tree
36265          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36266          # because $ac_f cannot contain `:'.
36267          test -f "$ac_f" ||
36268            case $ac_f in
36269            [\\/$]*) false;;
36270            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36271            esac ||
36272            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36273       esac
36274       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36275       as_fn_append ac_file_inputs " '$ac_f'"
36276     done
36277
36278     # Let's still pretend it is `configure' which instantiates (i.e., don't
36279     # use $as_me), people would be surprised to read:
36280     #    /* config.h.  Generated by config.status.  */
36281     configure_input='Generated from '`
36282           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36283         `' by configure.'
36284     if test x"$ac_file" != x-; then
36285       configure_input="$ac_file.  $configure_input"
36286       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36287 $as_echo "$as_me: creating $ac_file" >&6;}
36288     fi
36289     # Neutralize special characters interpreted by sed in replacement strings.
36290     case $configure_input in #(
36291     *\&* | *\|* | *\\* )
36292        ac_sed_conf_input=`$as_echo "$configure_input" |
36293        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36294     *) ac_sed_conf_input=$configure_input;;
36295     esac
36296
36297     case $ac_tag in
36298     *:-:* | *:-) cat >"$ac_tmp/stdin" \
36299       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36300     esac
36301     ;;
36302   esac
36303
36304   ac_dir=`$as_dirname -- "$ac_file" ||
36305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36306          X"$ac_file" : 'X\(//\)[^/]' \| \
36307          X"$ac_file" : 'X\(//\)$' \| \
36308          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36309 $as_echo X"$ac_file" |
36310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36311             s//\1/
36312             q
36313           }
36314           /^X\(\/\/\)[^/].*/{
36315             s//\1/
36316             q
36317           }
36318           /^X\(\/\/\)$/{
36319             s//\1/
36320             q
36321           }
36322           /^X\(\/\).*/{
36323             s//\1/
36324             q
36325           }
36326           s/.*/./; q'`
36327   as_dir="$ac_dir"; as_fn_mkdir_p
36328   ac_builddir=.
36329
36330 case "$ac_dir" in
36331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36332 *)
36333   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36334   # A ".." for each directory in $ac_dir_suffix.
36335   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36336   case $ac_top_builddir_sub in
36337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36339   esac ;;
36340 esac
36341 ac_abs_top_builddir=$ac_pwd
36342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36343 # for backward compatibility:
36344 ac_top_builddir=$ac_top_build_prefix
36345
36346 case $srcdir in
36347   .)  # We are building in place.
36348     ac_srcdir=.
36349     ac_top_srcdir=$ac_top_builddir_sub
36350     ac_abs_top_srcdir=$ac_pwd ;;
36351   [\\/]* | ?:[\\/]* )  # Absolute name.
36352     ac_srcdir=$srcdir$ac_dir_suffix;
36353     ac_top_srcdir=$srcdir
36354     ac_abs_top_srcdir=$srcdir ;;
36355   *) # Relative name.
36356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36357     ac_top_srcdir=$ac_top_build_prefix$srcdir
36358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36359 esac
36360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36361
36362
36363   case $ac_mode in
36364   :F)
36365   #
36366   # CONFIG_FILE
36367   #
36368
36369   case $INSTALL in
36370   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36371   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36372   esac
36373   ac_MKDIR_P=$MKDIR_P
36374   case $MKDIR_P in
36375   [\\/$]* | ?:[\\/]* ) ;;
36376   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36377   esac
36378 _ACEOF
36379
36380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36381 # If the template does not know about datarootdir, expand it.
36382 # FIXME: This hack should be removed a few years after 2.60.
36383 ac_datarootdir_hack=; ac_datarootdir_seen=
36384 ac_sed_dataroot='
36385 /datarootdir/ {
36386   p
36387   q
36388 }
36389 /@datadir@/p
36390 /@docdir@/p
36391 /@infodir@/p
36392 /@localedir@/p
36393 /@mandir@/p'
36394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36395 *datarootdir*) ac_datarootdir_seen=yes;;
36396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36397   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36399 _ACEOF
36400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36401   ac_datarootdir_hack='
36402   s&@datadir@&$datadir&g
36403   s&@docdir@&$docdir&g
36404   s&@infodir@&$infodir&g
36405   s&@localedir@&$localedir&g
36406   s&@mandir@&$mandir&g
36407   s&\\\${datarootdir}&$datarootdir&g' ;;
36408 esac
36409 _ACEOF
36410
36411 # Neutralize VPATH when `$srcdir' = `.'.
36412 # Shell code in configure.ac might set extrasub.
36413 # FIXME: do we really want to maintain this feature?
36414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36415 ac_sed_extra="$ac_vpsub
36416 $extrasub
36417 _ACEOF
36418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36419 :t
36420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36421 s|@configure_input@|$ac_sed_conf_input|;t t
36422 s&@top_builddir@&$ac_top_builddir_sub&;t t
36423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36424 s&@srcdir@&$ac_srcdir&;t t
36425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36426 s&@top_srcdir@&$ac_top_srcdir&;t t
36427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36428 s&@builddir@&$ac_builddir&;t t
36429 s&@abs_builddir@&$ac_abs_builddir&;t t
36430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36431 s&@INSTALL@&$ac_INSTALL&;t t
36432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36433 $ac_datarootdir_hack
36434 "
36435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36436   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36437
36438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36439   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36440   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
36441       "$ac_tmp/out"`; test -z "$ac_out"; } &&
36442   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36443 which seems to be undefined.  Please make sure it is defined" >&5
36444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36445 which seems to be undefined.  Please make sure it is defined" >&2;}
36446
36447   rm -f "$ac_tmp/stdin"
36448   case $ac_file in
36449   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36450   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36451   esac \
36452   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36453  ;;
36454   :H)
36455   #
36456   # CONFIG_HEADER
36457   #
36458   if test x"$ac_file" != x-; then
36459     {
36460       $as_echo "/* $configure_input  */" \
36461       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36462     } >"$ac_tmp/config.h" \
36463       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36464     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36465       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36466 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36467     else
36468       rm -f "$ac_file"
36469       mv "$ac_tmp/config.h" "$ac_file" \
36470         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36471     fi
36472   else
36473     $as_echo "/* $configure_input  */" \
36474       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36475       || as_fn_error $? "could not create -" "$LINENO" 5
36476   fi
36477 # Compute "$ac_file"'s index in $config_headers.
36478 _am_arg="$ac_file"
36479 _am_stamp_count=1
36480 for _am_header in $config_headers :; do
36481   case $_am_header in
36482     $_am_arg | $_am_arg:* )
36483       break ;;
36484     * )
36485       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36486   esac
36487 done
36488 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36489 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36490          X"$_am_arg" : 'X\(//\)[^/]' \| \
36491          X"$_am_arg" : 'X\(//\)$' \| \
36492          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36493 $as_echo X"$_am_arg" |
36494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36495             s//\1/
36496             q
36497           }
36498           /^X\(\/\/\)[^/].*/{
36499             s//\1/
36500             q
36501           }
36502           /^X\(\/\/\)$/{
36503             s//\1/
36504             q
36505           }
36506           /^X\(\/\).*/{
36507             s//\1/
36508             q
36509           }
36510           s/.*/./; q'`/stamp-h$_am_stamp_count
36511  ;;
36512
36513   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36514 $as_echo "$as_me: executing $ac_file commands" >&6;}
36515  ;;
36516   esac
36517
36518
36519   case $ac_file$ac_mode in
36520     "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
36521 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36522 ac_prefix_conf_PKG=`echo MagickCore`
36523 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36524 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
36525 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36526 if test ".$ac_prefix_conf_INP" = "."; then
36527    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36528      case "$ac_file" in
36529         *.h) ac_prefix_conf_INP=$ac_file ;;
36530         *)
36531      esac
36532      test ".$ac_prefix_conf_INP" != "." && break
36533    done
36534 fi
36535 if test ".$ac_prefix_conf_INP" = "."; then
36536    case "$ac_prefix_conf_OUT" in
36537       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36538       ;;
36539       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36540       ;;
36541       *) ac_prefix_conf_INP=config.h
36542       ;;
36543    esac
36544 fi
36545 if test -z "$ac_prefix_conf_PKG" ; then
36546    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
36547 else
36548   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36549      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36550   fi fi
36551   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36552 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36553   if test -f $ac_prefix_conf_INP ; then
36554     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36555     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36556     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36557     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36558     $as_echo "#endif/" >> conftest.prefix
36559     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36560     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36561     $as_echo "#endif/" >> conftest.prefix
36562     # now executing _script on _DEF input to create _OUT output file
36563     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
36564     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36565     echo ' ' >>$tmp/pconfig.h
36566     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36567
36568     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36569     echo ' ' >>$tmp/pconfig.h
36570     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36571     echo "#endif" >>$tmp/pconfig.h
36572     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36573       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36574 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36575     else
36576       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36577 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36578          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36579          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36580          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36581 $as_echo X"$ac_prefix_conf_OUT" |
36582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36583             s//\1/
36584             q
36585           }
36586           /^X\(\/\/\)[^/].*/{
36587             s//\1/
36588             q
36589           }
36590           /^X\(\/\/\)$/{
36591             s//\1/
36592             q
36593           }
36594           /^X\(\/\).*/{
36595             s//\1/
36596             q
36597           }
36598           s/.*/./; q'`
36599       as_dir="$ac_dir"; as_fn_mkdir_p
36600       rm -f "$ac_prefix_conf_OUT"
36601       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36602     fi
36603     cp conftest.prefix _configs.sed
36604   else
36605     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
36606   fi
36607   rm -f conftest.*
36608 fi
36609  ;;
36610     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36611   # Autoconf 2.62 quotes --file arguments for eval, but not when files
36612   # are listed without --file.  Let's play safe and only enable the eval
36613   # if we detect the quoting.
36614   case $CONFIG_FILES in
36615   *\'*) eval set x "$CONFIG_FILES" ;;
36616   *)   set x $CONFIG_FILES ;;
36617   esac
36618   shift
36619   for mf
36620   do
36621     # Strip MF so we end up with the name of the file.
36622     mf=`echo "$mf" | sed -e 's/:.*$//'`
36623     # Check whether this is an Automake generated Makefile or not.
36624     # We used to match only the files named `Makefile.in', but
36625     # some people rename them; so instead we look at the file content.
36626     # Grep'ing the first line is not enough: some people post-process
36627     # each Makefile.in and add a new line on top of each file to say so.
36628     # Grep'ing the whole file is not good either: AIX grep has a line
36629     # limit of 2048, but all sed's we know have understand at least 4000.
36630     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36631       dirpart=`$as_dirname -- "$mf" ||
36632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36633          X"$mf" : 'X\(//\)[^/]' \| \
36634          X"$mf" : 'X\(//\)$' \| \
36635          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36636 $as_echo X"$mf" |
36637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36638             s//\1/
36639             q
36640           }
36641           /^X\(\/\/\)[^/].*/{
36642             s//\1/
36643             q
36644           }
36645           /^X\(\/\/\)$/{
36646             s//\1/
36647             q
36648           }
36649           /^X\(\/\).*/{
36650             s//\1/
36651             q
36652           }
36653           s/.*/./; q'`
36654     else
36655       continue
36656     fi
36657     # Extract the definition of DEPDIR, am__include, and am__quote
36658     # from the Makefile without running `make'.
36659     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36660     test -z "$DEPDIR" && continue
36661     am__include=`sed -n 's/^am__include = //p' < "$mf"`
36662     test -z "am__include" && continue
36663     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36664     # When using ansi2knr, U may be empty or an underscore; expand it
36665     U=`sed -n 's/^U = //p' < "$mf"`
36666     # Find all dependency output files, they are included files with
36667     # $(DEPDIR) in their names.  We invoke sed twice because it is the
36668     # simplest approach to changing $(DEPDIR) to its actual value in the
36669     # expansion.
36670     for file in `sed -n "
36671       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36672          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36673       # Make sure the directory exists.
36674       test -f "$dirpart/$file" && continue
36675       fdir=`$as_dirname -- "$file" ||
36676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36677          X"$file" : 'X\(//\)[^/]' \| \
36678          X"$file" : 'X\(//\)$' \| \
36679          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36680 $as_echo X"$file" |
36681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36682             s//\1/
36683             q
36684           }
36685           /^X\(\/\/\)[^/].*/{
36686             s//\1/
36687             q
36688           }
36689           /^X\(\/\/\)$/{
36690             s//\1/
36691             q
36692           }
36693           /^X\(\/\).*/{
36694             s//\1/
36695             q
36696           }
36697           s/.*/./; q'`
36698       as_dir=$dirpart/$fdir; as_fn_mkdir_p
36699       # echo "creating $dirpart/$file"
36700       echo '# dummy' > "$dirpart/$file"
36701     done
36702   done
36703 }
36704  ;;
36705     "libtool":C)
36706
36707     # See if we are running on zsh, and set the options which allow our
36708     # commands through without removal of \ escapes.
36709     if test -n "${ZSH_VERSION+set}" ; then
36710       setopt NO_GLOB_SUBST
36711     fi
36712
36713     cfgfile="${ofile}T"
36714     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36715     $RM "$cfgfile"
36716
36717     cat <<_LT_EOF >> "$cfgfile"
36718 #! $SHELL
36719
36720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36724 #
36725 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36726 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36727 #                 Inc.
36728 #   Written by Gordon Matzigkeit, 1996
36729 #
36730 #   This file is part of GNU Libtool.
36731 #
36732 # GNU Libtool is free software; you can redistribute it and/or
36733 # modify it under the terms of the GNU General Public License as
36734 # published by the Free Software Foundation; either version 2 of
36735 # the License, or (at your option) any later version.
36736 #
36737 # As a special exception to the GNU General Public License,
36738 # if you distribute this file as part of a program or library that
36739 # is built using GNU Libtool, you may include this file under the
36740 # same distribution terms that you use for the rest of that program.
36741 #
36742 # GNU Libtool is distributed in the hope that it will be useful,
36743 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36745 # GNU General Public License for more details.
36746 #
36747 # You should have received a copy of the GNU General Public License
36748 # along with GNU Libtool; see the file COPYING.  If not, a copy
36749 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36750 # obtained by writing to the Free Software Foundation, Inc.,
36751 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36752
36753
36754 # The names of the tagged configurations supported by this script.
36755 available_tags="CXX "
36756
36757 # ### BEGIN LIBTOOL CONFIG
36758
36759 # A sed program that does not truncate output.
36760 SED=$lt_SED
36761
36762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36763 Xsed="\$SED -e 1s/^X//"
36764
36765 # A grep program that handles long lines.
36766 GREP=$lt_GREP
36767
36768 # An ERE matcher.
36769 EGREP=$lt_EGREP
36770
36771 # A literal string matcher.
36772 FGREP=$lt_FGREP
36773
36774 # Shell to use when invoking shell scripts.
36775 SHELL=$lt_SHELL
36776
36777 # An echo program that protects backslashes.
36778 ECHO=$lt_ECHO
36779
36780 # Which release of libtool.m4 was used?
36781 macro_version=$macro_version
36782 macro_revision=$macro_revision
36783
36784 # Assembler program.
36785 AS=$lt_AS
36786
36787 # DLL creation program.
36788 DLLTOOL=$lt_DLLTOOL
36789
36790 # Object dumper program.
36791 OBJDUMP=$lt_OBJDUMP
36792
36793 # Whether or not to build shared libraries.
36794 build_libtool_libs=$enable_shared
36795
36796 # Whether or not to build static libraries.
36797 build_old_libs=$enable_static
36798
36799 # What type of objects to build.
36800 pic_mode=$pic_mode
36801
36802 # Whether or not to optimize for fast installation.
36803 fast_install=$enable_fast_install
36804
36805 # The host system.
36806 host_alias=$host_alias
36807 host=$host
36808 host_os=$host_os
36809
36810 # The build system.
36811 build_alias=$build_alias
36812 build=$build
36813 build_os=$build_os
36814
36815 # A BSD- or MS-compatible name lister.
36816 NM=$lt_NM
36817
36818 # Whether we need soft or hard links.
36819 LN_S=$lt_LN_S
36820
36821 # What is the maximum length of a command?
36822 max_cmd_len=$max_cmd_len
36823
36824 # Object file suffix (normally "o").
36825 objext=$ac_objext
36826
36827 # Executable file suffix (normally "").
36828 exeext=$exeext
36829
36830 # whether the shell understands "unset".
36831 lt_unset=$lt_unset
36832
36833 # turn spaces into newlines.
36834 SP2NL=$lt_lt_SP2NL
36835
36836 # turn newlines into spaces.
36837 NL2SP=$lt_lt_NL2SP
36838
36839 # convert \$build file names to \$host format.
36840 to_host_file_cmd=$lt_cv_to_host_file_cmd
36841
36842 # convert \$build files to toolchain format.
36843 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36844
36845 # Method to check whether dependent libraries are shared objects.
36846 deplibs_check_method=$lt_deplibs_check_method
36847
36848 # Command to use when deplibs_check_method = "file_magic".
36849 file_magic_cmd=$lt_file_magic_cmd
36850
36851 # How to find potential files when deplibs_check_method = "file_magic".
36852 file_magic_glob=$lt_file_magic_glob
36853
36854 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36855 want_nocaseglob=$lt_want_nocaseglob
36856
36857 # Command to associate shared and link libraries.
36858 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36859
36860 # The archiver.
36861 AR=$lt_AR
36862
36863 # Flags to create an archive.
36864 AR_FLAGS=$lt_AR_FLAGS
36865
36866 # How to feed a file listing to the archiver.
36867 archiver_list_spec=$lt_archiver_list_spec
36868
36869 # A symbol stripping program.
36870 STRIP=$lt_STRIP
36871
36872 # Commands used to install an old-style archive.
36873 RANLIB=$lt_RANLIB
36874 old_postinstall_cmds=$lt_old_postinstall_cmds
36875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36876
36877 # Whether to use a lock for old archive extraction.
36878 lock_old_archive_extraction=$lock_old_archive_extraction
36879
36880 # A C compiler.
36881 LTCC=$lt_CC
36882
36883 # LTCC compiler flags.
36884 LTCFLAGS=$lt_CFLAGS
36885
36886 # Take the output of nm and produce a listing of raw symbols and C names.
36887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36888
36889 # Transform the output of nm in a proper C declaration.
36890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36891
36892 # Transform the output of nm in a C name address pair.
36893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36894
36895 # Transform the output of nm in a C name address pair when lib prefix is needed.
36896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36897
36898 # Specify filename containing input files for \$NM.
36899 nm_file_list_spec=$lt_nm_file_list_spec
36900
36901 # The root where to search for dependent libraries,and in which our libraries should be installed.
36902 lt_sysroot=$lt_sysroot
36903
36904 # The name of the directory that contains temporary libtool files.
36905 objdir=$objdir
36906
36907 # Used to examine libraries when file_magic_cmd begins with "file".
36908 MAGIC_CMD=$MAGIC_CMD
36909
36910 # Must we lock files when doing compilation?
36911 need_locks=$lt_need_locks
36912
36913 # Manifest tool.
36914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36915
36916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36917 DSYMUTIL=$lt_DSYMUTIL
36918
36919 # Tool to change global to local symbols on Mac OS X.
36920 NMEDIT=$lt_NMEDIT
36921
36922 # Tool to manipulate fat objects and archives on Mac OS X.
36923 LIPO=$lt_LIPO
36924
36925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36926 OTOOL=$lt_OTOOL
36927
36928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36929 OTOOL64=$lt_OTOOL64
36930
36931 # Old archive suffix (normally "a").
36932 libext=$libext
36933
36934 # Shared library suffix (normally ".so").
36935 shrext_cmds=$lt_shrext_cmds
36936
36937 # The commands to extract the exported symbol list from a shared archive.
36938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36939
36940 # Variables whose values should be saved in libtool wrapper scripts and
36941 # restored at link time.
36942 variables_saved_for_relink=$lt_variables_saved_for_relink
36943
36944 # Do we need the "lib" prefix for modules?
36945 need_lib_prefix=$need_lib_prefix
36946
36947 # Do we need a version for libraries?
36948 need_version=$need_version
36949
36950 # Library versioning type.
36951 version_type=$version_type
36952
36953 # Shared library runtime path variable.
36954 runpath_var=$runpath_var
36955
36956 # Shared library path variable.
36957 shlibpath_var=$shlibpath_var
36958
36959 # Is shlibpath searched before the hard-coded library search path?
36960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36961
36962 # Format of library name prefix.
36963 libname_spec=$lt_libname_spec
36964
36965 # List of archive names.  First name is the real one, the rest are links.
36966 # The last name is the one that the linker finds with -lNAME
36967 library_names_spec=$lt_library_names_spec
36968
36969 # The coded name of the library, if different from the real name.
36970 soname_spec=$lt_soname_spec
36971
36972 # Permission mode override for installation of shared libraries.
36973 install_override_mode=$lt_install_override_mode
36974
36975 # Command to use after installation of a shared archive.
36976 postinstall_cmds=$lt_postinstall_cmds
36977
36978 # Command to use after uninstallation of a shared archive.
36979 postuninstall_cmds=$lt_postuninstall_cmds
36980
36981 # Commands used to finish a libtool library installation in a directory.
36982 finish_cmds=$lt_finish_cmds
36983
36984 # As "finish_cmds", except a single script fragment to be evaled but
36985 # not shown.
36986 finish_eval=$lt_finish_eval
36987
36988 # Whether we should hardcode library paths into libraries.
36989 hardcode_into_libs=$hardcode_into_libs
36990
36991 # Compile-time system search path for libraries.
36992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36993
36994 # Run-time system search path for libraries.
36995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36996
36997 # Whether dlopen is supported.
36998 dlopen_support=$enable_dlopen
36999
37000 # Whether dlopen of programs is supported.
37001 dlopen_self=$enable_dlopen_self
37002
37003 # Whether dlopen of statically linked programs is supported.
37004 dlopen_self_static=$enable_dlopen_self_static
37005
37006 # Commands to strip libraries.
37007 old_striplib=$lt_old_striplib
37008 striplib=$lt_striplib
37009
37010
37011 # The linker used to build libraries.
37012 LD=$lt_LD
37013
37014 # How to create reloadable object files.
37015 reload_flag=$lt_reload_flag
37016 reload_cmds=$lt_reload_cmds
37017
37018 # Commands used to build an old-style archive.
37019 old_archive_cmds=$lt_old_archive_cmds
37020
37021 # A language specific compiler.
37022 CC=$lt_compiler
37023
37024 # Is the compiler the GNU compiler?
37025 with_gcc=$GCC
37026
37027 # Compiler flag to turn off builtin functions.
37028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37029
37030 # Additional compiler flags for building library objects.
37031 pic_flag=$lt_lt_prog_compiler_pic
37032
37033 # How to pass a linker flag through the compiler.
37034 wl=$lt_lt_prog_compiler_wl
37035
37036 # Compiler flag to prevent dynamic linking.
37037 link_static_flag=$lt_lt_prog_compiler_static
37038
37039 # Does compiler simultaneously support -c and -o options?
37040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37041
37042 # Whether or not to add -lc for building shared libraries.
37043 build_libtool_need_lc=$archive_cmds_need_lc
37044
37045 # Whether or not to disallow shared libs when runtime libs are static.
37046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37047
37048 # Compiler flag to allow reflexive dlopens.
37049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37050
37051 # Compiler flag to generate shared objects directly from archives.
37052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37053
37054 # Whether the compiler copes with passing no objects directly.
37055 compiler_needs_object=$lt_compiler_needs_object
37056
37057 # Create an old-style archive from a shared archive.
37058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37059
37060 # Create a temporary old-style archive to link instead of a shared archive.
37061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37062
37063 # Commands used to build a shared archive.
37064 archive_cmds=$lt_archive_cmds
37065 archive_expsym_cmds=$lt_archive_expsym_cmds
37066
37067 # Commands used to build a loadable module if different from building
37068 # a shared archive.
37069 module_cmds=$lt_module_cmds
37070 module_expsym_cmds=$lt_module_expsym_cmds
37071
37072 # Whether we are building with GNU ld or not.
37073 with_gnu_ld=$lt_with_gnu_ld
37074
37075 # Flag that allows shared libraries with undefined symbols to be built.
37076 allow_undefined_flag=$lt_allow_undefined_flag
37077
37078 # Flag that enforces no undefined symbols.
37079 no_undefined_flag=$lt_no_undefined_flag
37080
37081 # Flag to hardcode \$libdir into a binary during linking.
37082 # This must work even if \$libdir does not exist
37083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37084
37085 # If ld is used when linking, flag to hardcode \$libdir into a binary
37086 # during linking.  This must work even if \$libdir does not exist.
37087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37088
37089 # Whether we need a single "-rpath" flag with a separated argument.
37090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37091
37092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37093 # DIR into the resulting binary.
37094 hardcode_direct=$hardcode_direct
37095
37096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37097 # DIR into the resulting binary and the resulting library dependency is
37098 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37099 # library is relocated.
37100 hardcode_direct_absolute=$hardcode_direct_absolute
37101
37102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37103 # into the resulting binary.
37104 hardcode_minus_L=$hardcode_minus_L
37105
37106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37107 # into the resulting binary.
37108 hardcode_shlibpath_var=$hardcode_shlibpath_var
37109
37110 # Set to "yes" if building a shared library automatically hardcodes DIR
37111 # into the library and all subsequent libraries and executables linked
37112 # against it.
37113 hardcode_automatic=$hardcode_automatic
37114
37115 # Set to yes if linker adds runtime paths of dependent libraries
37116 # to runtime path list.
37117 inherit_rpath=$inherit_rpath
37118
37119 # Whether libtool must link a program against all its dependency libraries.
37120 link_all_deplibs=$link_all_deplibs
37121
37122 # Set to "yes" if exported symbols are required.
37123 always_export_symbols=$always_export_symbols
37124
37125 # The commands to list exported symbols.
37126 export_symbols_cmds=$lt_export_symbols_cmds
37127
37128 # Symbols that should not be listed in the preloaded symbols.
37129 exclude_expsyms=$lt_exclude_expsyms
37130
37131 # Symbols that must always be exported.
37132 include_expsyms=$lt_include_expsyms
37133
37134 # Commands necessary for linking programs (against libraries) with templates.
37135 prelink_cmds=$lt_prelink_cmds
37136
37137 # Commands necessary for finishing linking programs.
37138 postlink_cmds=$lt_postlink_cmds
37139
37140 # Specify filename containing input files.
37141 file_list_spec=$lt_file_list_spec
37142
37143 # How to hardcode a shared library path into an executable.
37144 hardcode_action=$hardcode_action
37145
37146 # The directories searched by this compiler when creating a shared library.
37147 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37148
37149 # Dependencies to place before and after the objects being linked to
37150 # create a shared library.
37151 predep_objects=$lt_predep_objects
37152 postdep_objects=$lt_postdep_objects
37153 predeps=$lt_predeps
37154 postdeps=$lt_postdeps
37155
37156 # The library search path used internally by the compiler when linking
37157 # a shared library.
37158 compiler_lib_search_path=$lt_compiler_lib_search_path
37159
37160 # ### END LIBTOOL CONFIG
37161
37162 _LT_EOF
37163
37164   case $host_os in
37165   aix3*)
37166     cat <<\_LT_EOF >> "$cfgfile"
37167 # AIX sometimes has problems with the GCC collect2 program.  For some
37168 # reason, if we set the COLLECT_NAMES environment variable, the problems
37169 # vanish in a puff of smoke.
37170 if test "X${COLLECT_NAMES+set}" != Xset; then
37171   COLLECT_NAMES=
37172   export COLLECT_NAMES
37173 fi
37174 _LT_EOF
37175     ;;
37176   esac
37177
37178
37179 ltmain="$ac_aux_dir/ltmain.sh"
37180
37181
37182   # We use sed instead of cat because bash on DJGPP gets confused if
37183   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37184   # text mode, it properly converts lines to CR/LF.  This bash problem
37185   # is reportedly fixed, but why not run on old versions too?
37186   sed '$q' "$ltmain" >> "$cfgfile" \
37187      || (rm -f "$cfgfile"; exit 1)
37188
37189   if test x"$xsi_shell" = xyes; then
37190   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37191 func_dirname ()\
37192 {\
37193 \    case ${1} in\
37194 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37195 \      *  ) func_dirname_result="${3}" ;;\
37196 \    esac\
37197 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37198   && mv -f "$cfgfile.tmp" "$cfgfile" \
37199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37200 test 0 -eq $? || _lt_function_replace_fail=:
37201
37202
37203   sed -e '/^func_basename ()$/,/^} # func_basename /c\
37204 func_basename ()\
37205 {\
37206 \    func_basename_result="${1##*/}"\
37207 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37208   && mv -f "$cfgfile.tmp" "$cfgfile" \
37209     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37210 test 0 -eq $? || _lt_function_replace_fail=:
37211
37212
37213   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37214 func_dirname_and_basename ()\
37215 {\
37216 \    case ${1} in\
37217 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37218 \      *  ) func_dirname_result="${3}" ;;\
37219 \    esac\
37220 \    func_basename_result="${1##*/}"\
37221 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37222   && mv -f "$cfgfile.tmp" "$cfgfile" \
37223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37224 test 0 -eq $? || _lt_function_replace_fail=:
37225
37226
37227   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37228 func_stripname ()\
37229 {\
37230 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37231 \    # positional parameters, so assign one to ordinary parameter first.\
37232 \    func_stripname_result=${3}\
37233 \    func_stripname_result=${func_stripname_result#"${1}"}\
37234 \    func_stripname_result=${func_stripname_result%"${2}"}\
37235 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37236   && mv -f "$cfgfile.tmp" "$cfgfile" \
37237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37238 test 0 -eq $? || _lt_function_replace_fail=:
37239
37240
37241   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37242 func_split_long_opt ()\
37243 {\
37244 \    func_split_long_opt_name=${1%%=*}\
37245 \    func_split_long_opt_arg=${1#*=}\
37246 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37247   && mv -f "$cfgfile.tmp" "$cfgfile" \
37248     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37249 test 0 -eq $? || _lt_function_replace_fail=:
37250
37251
37252   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37253 func_split_short_opt ()\
37254 {\
37255 \    func_split_short_opt_arg=${1#??}\
37256 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37257 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37258   && mv -f "$cfgfile.tmp" "$cfgfile" \
37259     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37260 test 0 -eq $? || _lt_function_replace_fail=:
37261
37262
37263   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37264 func_lo2o ()\
37265 {\
37266 \    case ${1} in\
37267 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37268 \      *)    func_lo2o_result=${1} ;;\
37269 \    esac\
37270 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37271   && mv -f "$cfgfile.tmp" "$cfgfile" \
37272     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37273 test 0 -eq $? || _lt_function_replace_fail=:
37274
37275
37276   sed -e '/^func_xform ()$/,/^} # func_xform /c\
37277 func_xform ()\
37278 {\
37279     func_xform_result=${1%.*}.lo\
37280 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37281   && mv -f "$cfgfile.tmp" "$cfgfile" \
37282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37283 test 0 -eq $? || _lt_function_replace_fail=:
37284
37285
37286   sed -e '/^func_arith ()$/,/^} # func_arith /c\
37287 func_arith ()\
37288 {\
37289     func_arith_result=$(( $* ))\
37290 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37291   && mv -f "$cfgfile.tmp" "$cfgfile" \
37292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37293 test 0 -eq $? || _lt_function_replace_fail=:
37294
37295
37296   sed -e '/^func_len ()$/,/^} # func_len /c\
37297 func_len ()\
37298 {\
37299     func_len_result=${#1}\
37300 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37301   && mv -f "$cfgfile.tmp" "$cfgfile" \
37302     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37303 test 0 -eq $? || _lt_function_replace_fail=:
37304
37305 fi
37306
37307 if test x"$lt_shell_append" = xyes; then
37308   sed -e '/^func_append ()$/,/^} # func_append /c\
37309 func_append ()\
37310 {\
37311     eval "${1}+=\\${2}"\
37312 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37313   && mv -f "$cfgfile.tmp" "$cfgfile" \
37314     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37315 test 0 -eq $? || _lt_function_replace_fail=:
37316
37317
37318   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37319 func_append_quoted ()\
37320 {\
37321 \    func_quote_for_eval "${2}"\
37322 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37323 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37324   && mv -f "$cfgfile.tmp" "$cfgfile" \
37325     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37326 test 0 -eq $? || _lt_function_replace_fail=:
37327
37328
37329   # Save a `func_append' function call where possible by direct use of '+='
37330   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37331     && mv -f "$cfgfile.tmp" "$cfgfile" \
37332       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37333   test 0 -eq $? || _lt_function_replace_fail=:
37334 else
37335   # Save a `func_append' function call even when '+=' is not available
37336   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37337     && mv -f "$cfgfile.tmp" "$cfgfile" \
37338       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37339   test 0 -eq $? || _lt_function_replace_fail=:
37340 fi
37341
37342 if test x"$_lt_function_replace_fail" = x":"; then
37343   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37344 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37345 fi
37346
37347
37348    mv -f "$cfgfile" "$ofile" ||
37349     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37350   chmod +x "$ofile"
37351
37352
37353     cat <<_LT_EOF >> "$ofile"
37354
37355 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37356
37357 # The linker used to build libraries.
37358 LD=$lt_LD_CXX
37359
37360 # How to create reloadable object files.
37361 reload_flag=$lt_reload_flag_CXX
37362 reload_cmds=$lt_reload_cmds_CXX
37363
37364 # Commands used to build an old-style archive.
37365 old_archive_cmds=$lt_old_archive_cmds_CXX
37366
37367 # A language specific compiler.
37368 CC=$lt_compiler_CXX
37369
37370 # Is the compiler the GNU compiler?
37371 with_gcc=$GCC_CXX
37372
37373 # Compiler flag to turn off builtin functions.
37374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37375
37376 # Additional compiler flags for building library objects.
37377 pic_flag=$lt_lt_prog_compiler_pic_CXX
37378
37379 # How to pass a linker flag through the compiler.
37380 wl=$lt_lt_prog_compiler_wl_CXX
37381
37382 # Compiler flag to prevent dynamic linking.
37383 link_static_flag=$lt_lt_prog_compiler_static_CXX
37384
37385 # Does compiler simultaneously support -c and -o options?
37386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37387
37388 # Whether or not to add -lc for building shared libraries.
37389 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37390
37391 # Whether or not to disallow shared libs when runtime libs are static.
37392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37393
37394 # Compiler flag to allow reflexive dlopens.
37395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37396
37397 # Compiler flag to generate shared objects directly from archives.
37398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37399
37400 # Whether the compiler copes with passing no objects directly.
37401 compiler_needs_object=$lt_compiler_needs_object_CXX
37402
37403 # Create an old-style archive from a shared archive.
37404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37405
37406 # Create a temporary old-style archive to link instead of a shared archive.
37407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37408
37409 # Commands used to build a shared archive.
37410 archive_cmds=$lt_archive_cmds_CXX
37411 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37412
37413 # Commands used to build a loadable module if different from building
37414 # a shared archive.
37415 module_cmds=$lt_module_cmds_CXX
37416 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37417
37418 # Whether we are building with GNU ld or not.
37419 with_gnu_ld=$lt_with_gnu_ld_CXX
37420
37421 # Flag that allows shared libraries with undefined symbols to be built.
37422 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37423
37424 # Flag that enforces no undefined symbols.
37425 no_undefined_flag=$lt_no_undefined_flag_CXX
37426
37427 # Flag to hardcode \$libdir into a binary during linking.
37428 # This must work even if \$libdir does not exist
37429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37430
37431 # If ld is used when linking, flag to hardcode \$libdir into a binary
37432 # during linking.  This must work even if \$libdir does not exist.
37433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37434
37435 # Whether we need a single "-rpath" flag with a separated argument.
37436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37437
37438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37439 # DIR into the resulting binary.
37440 hardcode_direct=$hardcode_direct_CXX
37441
37442 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37443 # DIR into the resulting binary and the resulting library dependency is
37444 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37445 # library is relocated.
37446 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37447
37448 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37449 # into the resulting binary.
37450 hardcode_minus_L=$hardcode_minus_L_CXX
37451
37452 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37453 # into the resulting binary.
37454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37455
37456 # Set to "yes" if building a shared library automatically hardcodes DIR
37457 # into the library and all subsequent libraries and executables linked
37458 # against it.
37459 hardcode_automatic=$hardcode_automatic_CXX
37460
37461 # Set to yes if linker adds runtime paths of dependent libraries
37462 # to runtime path list.
37463 inherit_rpath=$inherit_rpath_CXX
37464
37465 # Whether libtool must link a program against all its dependency libraries.
37466 link_all_deplibs=$link_all_deplibs_CXX
37467
37468 # Set to "yes" if exported symbols are required.
37469 always_export_symbols=$always_export_symbols_CXX
37470
37471 # The commands to list exported symbols.
37472 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37473
37474 # Symbols that should not be listed in the preloaded symbols.
37475 exclude_expsyms=$lt_exclude_expsyms_CXX
37476
37477 # Symbols that must always be exported.
37478 include_expsyms=$lt_include_expsyms_CXX
37479
37480 # Commands necessary for linking programs (against libraries) with templates.
37481 prelink_cmds=$lt_prelink_cmds_CXX
37482
37483 # Commands necessary for finishing linking programs.
37484 postlink_cmds=$lt_postlink_cmds_CXX
37485
37486 # Specify filename containing input files.
37487 file_list_spec=$lt_file_list_spec_CXX
37488
37489 # How to hardcode a shared library path into an executable.
37490 hardcode_action=$hardcode_action_CXX
37491
37492 # The directories searched by this compiler when creating a shared library.
37493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37494
37495 # Dependencies to place before and after the objects being linked to
37496 # create a shared library.
37497 predep_objects=$lt_predep_objects_CXX
37498 postdep_objects=$lt_postdep_objects_CXX
37499 predeps=$lt_predeps_CXX
37500 postdeps=$lt_postdeps_CXX
37501
37502 # The library search path used internally by the compiler when linking
37503 # a shared library.
37504 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37505
37506 # ### END LIBTOOL TAG CONFIG: CXX
37507 _LT_EOF
37508
37509  ;;
37510     "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37511     "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37512     "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37513     "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
37514     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37515     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37516
37517   esac
37518 done # for ac_tag
37519
37520
37521 as_fn_exit 0
37522 _ACEOF
37523 ac_clean_files=$ac_clean_files_save
37524
37525 test $ac_write_fail = 0 ||
37526   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37527
37528
37529 # configure is writing to config.log, and then calls config.status.
37530 # config.status does its own redirection, appending to config.log.
37531 # Unfortunately, on DOS this fails, as config.log is still kept open
37532 # by configure, so config.status won't be able to write to it; its
37533 # output is simply discarded.  So we exec the FD to /dev/null,
37534 # effectively closing config.log, so it can be properly (re)opened and
37535 # appended to by config.status.  When coming back to configure, we
37536 # need to make the FD available again.
37537 if test "$no_create" != yes; then
37538   ac_cs_success=:
37539   ac_config_status_args=
37540   test "$silent" = yes &&
37541     ac_config_status_args="$ac_config_status_args --quiet"
37542   exec 5>/dev/null
37543   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37544   exec 5>>config.log
37545   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37546   # would make configure fail if this is the last instruction.
37547   $ac_cs_success || as_fn_exit 1
37548 fi
37549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37550   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37552 fi
37553
37554
37555 rm -f magick-version
37556
37557 result_dejavu_font_dir='none'
37558 if test "${dejavu_font_dir}x" != 'x'; then
37559     result_dejavu_font_dir=$dejavu_font_dir
37560 fi
37561
37562 result_ghostscript_font_dir='none'
37563 if test "${ghostscript_font_dir}x" != 'x'; then
37564     result_ghostscript_font_dir=$ghostscript_font_dir
37565 fi
37566
37567 result_windows_font_dir='none'
37568 if test "${windows_font_dir}x" != 'x'; then
37569     result_windows_font_dir=${windows_font_dir}
37570 fi
37571
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
37573 ImageMagick is configured as follows. Please verify that this configuration
37574 matches your expectations.
37575
37576 Host system type: $host
37577 Build system type: $build
37578
37579                   Option                        Value
37580 -------------------------------------------------------------------------------
37581 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
37582 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
37583 Module support    --with-modules=$with_modules          $with_modules
37584 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
37585 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
37586 High Dynamic Range Imagery
37587                   --enable-hdri=$enable_hdri            $enable_hdri
37588
37589 Delegate Configuration:
37590 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
37591 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
37592 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
37593 DJVU              --with-djvu=$with_djvu                $have_djvu
37594 DPS               --with-dps=$with_dps          $have_dps
37595 FFTW              --with-fftw=$with_fftw                $have_fftw
37596 FlashPIX          --with-fpx=$with_fpx          $have_fpx
37597 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
37598 FreeType          --with-freetype=$with_freetype                $have_freetype
37599 GhostPCL          None                          $PCLDelegate ($PCLVersion)
37600 GhostXPS          None                          $XPSDelegate ($XPSVersion)
37601 Ghostscript       None                          $PSDelegate ($GSVersion)
37602 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
37603 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
37604 Graphviz          --with-gvc=$with_gvc          $have_gvc
37605 JBIG              --with-jbig=$with_jbig                $have_jbig
37606 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
37607 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
37608 LCMS v1           --with-lcms=$with_lcms                $have_lcms
37609 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
37610 LQR               --with-lqr=$with_lqr          $have_lqr
37611 LZMA              --with-lzma=$with_lzma                $have_lzma
37612 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
37613 OpenEXR           --with-openexr=$with_openexr          $have_openexr
37614 PERL              --with-perl=$with_perl                $have_perl
37615 PNG               --with-png=$with_png          $have_png
37616 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
37617 TIFF              --with-tiff=$with_tiff                $have_tiff
37618 WEBP              --with-webp=$with_webp                $have_webp
37619 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
37620 WMF               --with-wmf=$with_wmf          $have_wmf
37621 X11               --with-x=$with_x                      $have_x
37622 XML               --with-xml=$with_xml          $have_xml
37623 ZLIB              --with-zlib=$with_zlib                $have_zlib
37624
37625 X11 Configuration:
37626       X_CFLAGS        = $X_CFLAGS
37627       X_PRE_LIBS      = $X_PRE_LIBS
37628       X_LIBS          = $X_LIBS
37629       X_EXTRA_LIBS    = $X_EXTRA_LIBS
37630
37631 Options used to compile and link:
37632   PREFIX          = $PREFIX_DIR
37633   EXEC-PREFIX     = $EXEC_PREFIX_DIR
37634   VERSION         = $PACKAGE_VERSION
37635   CC              = $CC
37636   CFLAGS          = $CFLAGS
37637   CPPFLAGS        = $MAGICK_CPPFLAGS
37638   PCFLAGS         = $MAGICK_PCFLAGS
37639   DEFS            = $DEFS
37640   LDFLAGS         = $LDFLAGS
37641   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
37642   LIBS            = $MAGICK_LIBS
37643   CXX             = $CXX
37644   CXXFLAGS        = $CXXFLAGS
37645   FEATURES        = $MAGICK_FEATURES
37646 " >&5
37647 $as_echo "
37648 ImageMagick is configured as follows. Please verify that this configuration
37649 matches your expectations.
37650
37651 Host system type: $host
37652 Build system type: $build
37653
37654                   Option                        Value
37655 -------------------------------------------------------------------------------
37656 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
37657 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
37658 Module support    --with-modules=$with_modules          $with_modules
37659 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
37660 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
37661 High Dynamic Range Imagery
37662                   --enable-hdri=$enable_hdri            $enable_hdri
37663
37664 Delegate Configuration:
37665 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
37666 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
37667 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
37668 DJVU              --with-djvu=$with_djvu                $have_djvu
37669 DPS               --with-dps=$with_dps          $have_dps
37670 FFTW              --with-fftw=$with_fftw                $have_fftw
37671 FlashPIX          --with-fpx=$with_fpx          $have_fpx
37672 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
37673 FreeType          --with-freetype=$with_freetype                $have_freetype
37674 GhostPCL          None                          $PCLDelegate ($PCLVersion)
37675 GhostXPS          None                          $XPSDelegate ($XPSVersion)
37676 Ghostscript       None                          $PSDelegate ($GSVersion)
37677 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
37678 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
37679 Graphviz          --with-gvc=$with_gvc          $have_gvc
37680 JBIG              --with-jbig=$with_jbig                $have_jbig
37681 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
37682 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
37683 LCMS v1           --with-lcms=$with_lcms                $have_lcms
37684 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
37685 LQR               --with-lqr=$with_lqr          $have_lqr
37686 LZMA              --with-lzma=$with_lzma                $have_lzma
37687 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
37688 OpenEXR           --with-openexr=$with_openexr          $have_openexr
37689 PERL              --with-perl=$with_perl                $have_perl
37690 PNG               --with-png=$with_png          $have_png
37691 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
37692 TIFF              --with-tiff=$with_tiff                $have_tiff
37693 WEBP              --with-webp=$with_webp                $have_webp
37694 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
37695 WMF               --with-wmf=$with_wmf          $have_wmf
37696 X11               --with-x=$with_x                      $have_x
37697 XML               --with-xml=$with_xml          $have_xml
37698 ZLIB              --with-zlib=$with_zlib                $have_zlib
37699
37700 X11 Configuration:
37701       X_CFLAGS        = $X_CFLAGS
37702       X_PRE_LIBS      = $X_PRE_LIBS
37703       X_LIBS          = $X_LIBS
37704       X_EXTRA_LIBS    = $X_EXTRA_LIBS
37705
37706 Options used to compile and link:
37707   PREFIX          = $PREFIX_DIR
37708   EXEC-PREFIX     = $EXEC_PREFIX_DIR
37709   VERSION         = $PACKAGE_VERSION
37710   CC              = $CC
37711   CFLAGS          = $CFLAGS
37712   CPPFLAGS        = $MAGICK_CPPFLAGS
37713   PCFLAGS         = $MAGICK_PCFLAGS
37714   DEFS            = $DEFS
37715   LDFLAGS         = $LDFLAGS
37716   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
37717   LIBS            = $MAGICK_LIBS
37718   CXX             = $CXX
37719   CXXFLAGS        = $CXXFLAGS
37720   FEATURES        = $MAGICK_FEATURES
37721 " >&6; }