]> granicus.if.org Git - imagemagick/blob - configure
(no commit message)
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
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 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 lt_ltdl_dir='ltdl'
682
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
685 test -n "$DJDIR" || exec 7<&0 </dev/null
686 exec 6>&1
687
688 # Name of the host.
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693 #
694 # Initializations.
695 #
696 ac_default_prefix=/usr/local
697 ac_clean_files=
698 ac_config_libobj_dir=.
699 LIBOBJS=
700 cross_compiling=no
701 subdirs=
702 MFLAGS=
703 MAKEFLAGS=
704
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.6.2'
709 PACKAGE_STRING='ImageMagick 6.6.2'
710 PACKAGE_BUGREPORT='http://www.imagemagick.org'
711 PACKAGE_URL=''
712
713 ac_unique_file="magick/MagickCore.h"
714 ac_config_libobj_dir=ltdl
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='ltdl_LTLIBOBJS
753 ltdl_LIBOBJS
754 am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 MAGICK_LIBS
758 MAGICK_LDFLAGS
759 MAGICK_PCFLAGS
760 MAGICK_CPPFLAGS
761 MAGICK_CXXFLAGS
762 MAGICK_CFLAGS
763 MAGICK_DEP_LIBS
764 MAGICK_LTDLDEPS
765 MAGICK_LIBLTDL
766 OSX_GCOV_LDFLAG
767 DELEGATES
768 MAGICKCORE_PATH
769 PERL_SUPPORTS_DESTDIR
770 WITH_PERL_DYNAMIC_FALSE
771 WITH_PERL_DYNAMIC_TRUE
772 WITH_PERL_STATIC_FALSE
773 WITH_PERL_STATIC_TRUE
774 WITH_PERL_FALSE
775 WITH_PERL_TRUE
776 PERL_VERSION
777 GSVersion
778 GSPSDevice
779 GSPDFDevice
780 GSMonoDevice
781 GSEPSDevice
782 GSColorDevice
783 GSCMYKDevice
784 GSAlphaDevice
785 XPSVersion
786 XPSCMYKDevice
787 XPSColorDevice
788 XPSMonoDevice
789 PCLVersion
790 PCLCMYKDevice
791 PCLColorDevice
792 PCLMonoDevice
793 ZIP_DELEGATE_FALSE
794 ZIP_DELEGATE_TRUE
795 ZIP
796 P7ZIP_DELEGATE_FALSE
797 P7ZIP_DELEGATE_TRUE
798 P7ZIP
799 RPM_DELEGATE_FALSE
800 RPM_DELEGATE_TRUE
801 RPM
802 PERL
803 TAR
804 ShowImageDelegate
805 type_include_files
806 ghostscript_font_dir
807 windows_font_dir
808 dejavu_font_dir
809 PrintDelegate
810 ZipDelegate
811 XPSDelegate
812 WWWDecodeDelegate
813 WMFDecodeDelegate
814 TXTDelegate
815 SCANDecodeDelegate
816 RSVGDecodeDelegate
817 RMDelegate
818 RLEEncodeDelegate
819 PSDelegate
820 POVDelegate
821 PGPDecodeDelegate
822 PCLDelegate
823 MVDelegate
824 MrSIDDecodeDelegate
825 MPEGEncodeDelegate
826 MPEGDecodeDelegate
827 MANDelegate
828 LaunchDelegate
829 LZWEncodeDelegate
830 LZWDecodeDelegate
831 LPRDelegate
832 LPDelegate
833 ILBMEncodeDelegate
834 ILBMDecodeDelegate
835 HTMLDecodeDelegate
836 HPGLDecodeDelegate
837 HDRDecodeDelegate
838 GnuplotDecodeDelegate
839 MogrifyDelegate
840 DisplayDelegate
841 ConvertDelegate
842 FIGDecodeDelegate
843 EditorDelegate
844 EchoDelegate
845 DVIDecodeDelegate
846 GVCDecodeDelegate
847 DNGDecodeDelegate
848 CatDelegate
849 CGMDecodeDelegate
850 BrowseDelegate
851 BZIPDelegate
852 BlenderDecodeDelegate
853 AVIDecodeDelegate
854 AutotraceDecodeDelegate
855 SHARE_CONFIGURE_PATH
856 SHARE_PATH
857 DOCUMENTATION_PATH
858 FILTER_PATH
859 CODER_PATH
860 CONFIGURE_PATH
861 LIBRARY_PATH
862 EXECUTABLE_PATH
863 PERLMAINCC
864 XML_LIBS
865 XML_DELEGATE_FALSE
866 XML_DELEGATE_TRUE
867 xml2_config
868 WMF_LIBS
869 WMF_DELEGATE_FALSE
870 WMF_DELEGATE_TRUE
871 TIFF_LIBS
872 TIFF_DELEGATE_FALSE
873 TIFF_DELEGATE_TRUE
874 CAIRO_DELEGATE_FALSE
875 CAIRO_DELEGATE_TRUE
876 RSVG_DELEGATE_FALSE
877 RSVG_DELEGATE_TRUE
878 CAIRO_SVG_LIBS
879 CAIRO_SVG_CFLAGS
880 RSVG_LIBS
881 RSVG_CFLAGS
882 PNG_LIBS
883 PNG_DELEGATE_FALSE
884 PNG_DELEGATE_TRUE
885 OPENEXR_DELEGATE_FALSE
886 OPENEXR_DELEGATE_TRUE
887 OPENEXR_LIBS
888 OPENEXR_CFLAGS
889 LQR_DELEGATE_FALSE
890 LQR_DELEGATE_TRUE
891 LQR_LIBS
892 LQR_CFLAGS
893 LCMS_LIBS
894 LCMS_DELEGATE_FALSE
895 LCMS_DELEGATE_TRUE
896 JP2_LIBS
897 JP2_DELEGATE_FALSE
898 JP2_DELEGATE_TRUE
899 JPEG_LIBS
900 JPEG_DELEGATE_FALSE
901 JPEG_DELEGATE_TRUE
902 JBIG_LIBS
903 JBIG_DELEGATE_FALSE
904 JBIG_DELEGATE_TRUE
905 GVC_DELEGATE_FALSE
906 GVC_DELEGATE_TRUE
907 GVC_LIBS
908 GVC_CFLAGS
909 GS_LIBS
910 GS_DELEGATE_FALSE
911 GS_DELEGATE_TRUE
912 FREETYPE_LIBS
913 FREETYPE_DELEGATE_FALSE
914 FREETYPE_DELEGATE_TRUE
915 freetype_config
916 FONTCONFIG_DELEGATE_FALSE
917 FONTCONFIG_DELEGATE_TRUE
918 FONTCONFIG_LIBS
919 FONTCONFIG_CFLAGS
920 FPX_LIBS
921 FPX_DELEGATE_FALSE
922 FPX_DELEGATE_TRUE
923 FFTW_LIBS
924 FFTW_DELEGATE_FALSE
925 FFTW_DELEGATE_TRUE
926 DJVU_LIBS
927 DJVU_DELEGATE_FALSE
928 DJVU_DELEGATE_TRUE
929 DPS_LIBS
930 DPS_DELEGATE_FALSE
931 DPS_DELEGATE_TRUE
932 AUTOTRACE_DELEGATE_FALSE
933 AUTOTRACE_DELEGATE_TRUE
934 AUTOTRACE_LIBS
935 AUTOTRACE_CFLAGS
936 LIB_DL
937 ZLIB_LIBS
938 ZLIB_DELEGATE_FALSE
939 ZLIB_DELEGATE_TRUE
940 XEXT_LIBS
941 X11_LIBS
942 X11_DELEGATE_FALSE
943 X11_DELEGATE_TRUE
944 X_EXTRA_LIBS
945 X_LIBS
946 X_PRE_LIBS
947 X_CFLAGS
948 XMKMF
949 BZLIB_LIBS
950 BZLIB_DELEGATE_FALSE
951 BZLIB_DELEGATE_TRUE
952 CCMALLOCDelegate
953 UMEM_LIBS
954 HasUMEM_FALSE
955 HasUMEM_TRUE
956 THREAD_LIBS
957 GOMP_LIBS
958 WITH_MAGICK_PLUS_PLUS_FALSE
959 WITH_MAGICK_PLUS_PLUS_TRUE
960 OPENMP_CXXFLAGS
961 MATH_LIBS
962 POW_LIB
963 LIBOBJS
964 UINTPTR_T
965 UINTMAX_T
966 UINT64_T
967 INT64_T
968 UINT32_T
969 INT32_T
970 UINT16_T
971 INT16_T
972 UINT8_T
973 INT8_T
974 LIBRARY_EXTRA_CPPFLAGS
975 MODULE_EXTRA_CPPFLAGS
976 LIBSTDCLDFLAGS
977 PERL_MAKE_OPTIONS
978 QUANTUM_DEPTH
979 MAINT
980 MAINTAINER_MODE_FALSE
981 MAINTAINER_MODE_TRUE
982 MAGICK_HDRI
983 DLLDFLAGS
984 WITH_LTDL_FALSE
985 WITH_LTDL_TRUE
986 WITH_MODULES_FALSE
987 WITH_MODULES_TRUE
988 WITH_SHARED_LIBS_FALSE
989 WITH_SHARED_LIBS_TRUE
990 LTDLOPEN
991 LT_CONFIG_H
992 CONVENIENCE_LTDL_FALSE
993 CONVENIENCE_LTDL_TRUE
994 INSTALL_LTDL_FALSE
995 INSTALL_LTDL_TRUE
996 ARGZ_H
997 sys_symbol_underscore
998 LIBADD_DL
999 LT_DLPREOPEN
1000 LIBADD_DLD_LINK
1001 LIBADD_SHL_LOAD
1002 LIBADD_DLOPEN
1003 LT_DLLOADERS
1004 INCLTDL
1005 LTDLINCL
1006 LTDLDEPS
1007 LIBLTDL
1008 LIBTOOL_DEPS
1009 CXXCPP
1010 OTOOL64
1011 OTOOL
1012 LIPO
1013 NMEDIT
1014 DSYMUTIL
1015 lt_ECHO
1016 RANLIB
1017 AR
1018 NM
1019 ac_ct_DUMPBIN
1020 DUMPBIN
1021 LIBTOOL
1022 OBJDUMP
1023 DLLTOOL
1024 AS
1025 LFS_CPPFLAGS
1026 CL_LIBS
1027 CL_CFLAGS
1028 OPENMP_CFLAGS
1029 PTHREAD_CFLAGS
1030 PTHREAD_LIBS
1031 PTHREAD_CC
1032 ax_pthread_config
1033 WinPathScript
1034 USING_CL_FALSE
1035 USING_CL_TRUE
1036 CYGWIN_BUILD_FALSE
1037 CYGWIN_BUILD_TRUE
1038 WIN32_NATIVE_BUILD_FALSE
1039 WIN32_NATIVE_BUILD_TRUE
1040 WINGDI32_DELEGATE_FALSE
1041 WINGDI32_DELEGATE_TRUE
1042 GDI32_LIBS
1043 PKG_CONFIG
1044 LN_S
1045 LD
1046 FGREP
1047 SED
1048 am__fastdepCXX_FALSE
1049 am__fastdepCXX_TRUE
1050 CXXDEPMODE
1051 ac_ct_CXX
1052 CXXFLAGS
1053 CXX
1054 EGREP
1055 GREP
1056 CPP
1057 am__fastdepCC_FALSE
1058 am__fastdepCC_TRUE
1059 CCDEPMODE
1060 AMDEPBACKSLASH
1061 AMDEP_FALSE
1062 AMDEP_TRUE
1063 am__quote
1064 am__include
1065 DEPDIR
1066 OBJEXT
1067 EXEEXT
1068 ac_ct_CC
1069 CPPFLAGS
1070 LDFLAGS
1071 CFLAGS
1072 CC
1073 DIRSEP
1074 MAGICK_FILTER_MODULE_PATH
1075 MAGICK_CONFIGURE_BUILD_PATH
1076 MAGICK_CONFIGURE_SRC_PATH
1077 MAGICK_CODER_MODULE_PATH
1078 MAN_DIR
1079 INFO_DIR
1080 PERSISTINCLUDE_DIR
1081 INCLUDE_DIR
1082 LIB_DIR
1083 LOCALSTATE_DIR
1084 SHAREDSTATE_DIR
1085 SYSCONF_DIR
1086 DATA_DIR
1087 LIBEXEC_DIR
1088 SBIN_DIR
1089 BIN_DIR
1090 EXEC_PREFIX_DIR
1091 PREFIX_DIR
1092 CONFIG_STATUS_DEPENDENCIES
1093 MAGICK_LIB_VERSION_NUMBER
1094 MAGICK_LIB_VERSION_TEXT
1095 MAGICK_LIB_VERSION
1096 AM_BACKSLASH
1097 AM_DEFAULT_VERBOSITY
1098 am__untar
1099 am__tar
1100 AMTAR
1101 am__leading_dot
1102 SET_MAKE
1103 AWK
1104 mkdir_p
1105 MKDIR_P
1106 INSTALL_STRIP_PROGRAM
1107 STRIP
1108 install_sh
1109 MAKEINFO
1110 AUTOHEADER
1111 AUTOMAKE
1112 AUTOCONF
1113 ACLOCAL
1114 VERSION
1115 PACKAGE
1116 CYGPATH_W
1117 am__isrc
1118 INSTALL_DATA
1119 INSTALL_SCRIPT
1120 INSTALL_PROGRAM
1121 PACKAGE_VERSION_ADDENDUM
1122 PACKAGE_RELEASE_DATE
1123 PACKAGE_LIB_VERSION_NUMBER
1124 PACKAGE_LIB_VERSION
1125 PACKAGE_CHANGE_DATE
1126 PACKAGE_RELEASE
1127 MAGICK_LIBRARY_VERSION_INFO
1128 MAGICK_LIBRARY_CURRENT_MIN
1129 MAGICK_LIBRARY_AGE
1130 MAGICK_LIBRARY_REVISION
1131 MAGICK_LIBRARY_CURRENT
1132 MAGICK_TARGET_OS
1133 MAGICK_TARGET_VENDOR
1134 MAGICK_TARGET_CPU
1135 target_os
1136 target_vendor
1137 target_cpu
1138 target
1139 host_os
1140 host_vendor
1141 host_cpu
1142 host
1143 build_os
1144 build_vendor
1145 build_cpu
1146 build
1147 CONFIGURE_ARGS
1148 DISTCHECK_CONFIG_FLAGS
1149 target_alias
1150 host_alias
1151 build_alias
1152 LIBS
1153 ECHO_T
1154 ECHO_N
1155 ECHO_C
1156 DEFS
1157 mandir
1158 localedir
1159 libdir
1160 psdir
1161 pdfdir
1162 dvidir
1163 htmldir
1164 infodir
1165 docdir
1166 oldincludedir
1167 includedir
1168 localstatedir
1169 sharedstatedir
1170 sysconfdir
1171 datadir
1172 datarootdir
1173 libexecdir
1174 sbindir
1175 bindir
1176 program_transform_name
1177 prefix
1178 exec_prefix
1179 PACKAGE_URL
1180 PACKAGE_BUGREPORT
1181 PACKAGE_STRING
1182 PACKAGE_VERSION
1183 PACKAGE_TARNAME
1184 PACKAGE_NAME
1185 PATH_SEPARATOR
1186 SHELL'
1187 ac_subst_files=''
1188 ac_user_opts='
1189 enable_option_checking
1190 enable_silent_rules
1191 enable_dependency_tracking
1192 with_gnu_ld
1193 with_dmalloc
1194 enable_bounds_checking
1195 enable_osx_universal_binary
1196 with_threads
1197 enable_openmp
1198 enable_opencl
1199 enable_largefile
1200 enable_shared
1201 enable_static
1202 with_pic
1203 enable_fast_install
1204 enable_libtool_lock
1205 with_included_ltdl
1206 with_ltdl_include
1207 with_ltdl_lib
1208 enable_ltdl_install
1209 with_modules
1210 enable_delegate_build
1211 enable_deprecated
1212 enable_installed
1213 enable_cipher
1214 enable_embeddable
1215 enable_hdri
1216 enable_assert
1217 enable_maintainer_mode
1218 enable_ccmalloc
1219 enable_efence
1220 enable_prof
1221 enable_gprof
1222 enable_gcov
1223 with_method_prefix
1224 with_quantum_depth
1225 with_cache
1226 with_frozenpaths
1227 with_magick_plus_plus
1228 with_perl
1229 with_perl_options
1230 with_umem
1231 with_libstdc
1232 with_bzlib
1233 with_x
1234 with_zlib
1235 with_autotrace
1236 with_dps
1237 with_djvu
1238 with_dejavu_font_dir
1239 with_fftw
1240 with_fpx
1241 with_fontconfig
1242 with_freetype
1243 with_gslib
1244 with_fontpath
1245 with_gs_font_dir
1246 with_gvc
1247 with_jbig
1248 with_jpeg
1249 with_jp2
1250 with_lcms
1251 with_lcms2
1252 with_lqr
1253 with_openexr
1254 with_png
1255 with_rsvg
1256 with_tiff
1257 with_windows_font_dir
1258 with_wmf
1259 with_xml
1260 '
1261       ac_precious_vars='build_alias
1262 host_alias
1263 target_alias
1264 CC
1265 CFLAGS
1266 LDFLAGS
1267 LIBS
1268 CPPFLAGS
1269 CPP
1270 CXX
1271 CXXFLAGS
1272 CCC
1273 PKG_CONFIG
1274 CXXCPP
1275 XMKMF
1276 AUTOTRACE_CFLAGS
1277 AUTOTRACE_LIBS
1278 FONTCONFIG_CFLAGS
1279 FONTCONFIG_LIBS
1280 GVC_CFLAGS
1281 GVC_LIBS
1282 LQR_CFLAGS
1283 LQR_LIBS
1284 OPENEXR_CFLAGS
1285 OPENEXR_LIBS
1286 RSVG_CFLAGS
1287 RSVG_LIBS
1288 CAIRO_SVG_CFLAGS
1289 CAIRO_SVG_LIBS'
1290
1291
1292 # Initialize some variables set by options.
1293 ac_init_help=
1294 ac_init_version=false
1295 ac_unrecognized_opts=
1296 ac_unrecognized_sep=
1297 # The variables have the same names as the options, with
1298 # dashes changed to underlines.
1299 cache_file=/dev/null
1300 exec_prefix=NONE
1301 no_create=
1302 no_recursion=
1303 prefix=NONE
1304 program_prefix=NONE
1305 program_suffix=NONE
1306 program_transform_name=s,x,x,
1307 silent=
1308 site=
1309 srcdir=
1310 verbose=
1311 x_includes=NONE
1312 x_libraries=NONE
1313
1314 # Installation directory options.
1315 # These are left unexpanded so users can "make install exec_prefix=/foo"
1316 # and all the variables that are supposed to be based on exec_prefix
1317 # by default will actually change.
1318 # Use braces instead of parens because sh, perl, etc. also accept them.
1319 # (The list follows the same order as the GNU Coding Standards.)
1320 bindir='${exec_prefix}/bin'
1321 sbindir='${exec_prefix}/sbin'
1322 libexecdir='${exec_prefix}/libexec'
1323 datarootdir='${prefix}/share'
1324 datadir='${datarootdir}'
1325 sysconfdir='${prefix}/etc'
1326 sharedstatedir='${prefix}/com'
1327 localstatedir='${prefix}/var'
1328 includedir='${prefix}/include'
1329 oldincludedir='/usr/include'
1330 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1331 infodir='${datarootdir}/info'
1332 htmldir='${docdir}'
1333 dvidir='${docdir}'
1334 pdfdir='${docdir}'
1335 psdir='${docdir}'
1336 libdir='${exec_prefix}/lib'
1337 localedir='${datarootdir}/locale'
1338 mandir='${datarootdir}/man'
1339
1340 ac_prev=
1341 ac_dashdash=
1342 for ac_option
1343 do
1344   # If the previous option needs an argument, assign it.
1345   if test -n "$ac_prev"; then
1346     eval $ac_prev=\$ac_option
1347     ac_prev=
1348     continue
1349   fi
1350
1351   case $ac_option in
1352   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1353   *)    ac_optarg=yes ;;
1354   esac
1355
1356   # Accept the important Cygnus configure options, so we can diagnose typos.
1357
1358   case $ac_dashdash$ac_option in
1359   --)
1360     ac_dashdash=yes ;;
1361
1362   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1363     ac_prev=bindir ;;
1364   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1365     bindir=$ac_optarg ;;
1366
1367   -build | --build | --buil | --bui | --bu)
1368     ac_prev=build_alias ;;
1369   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1370     build_alias=$ac_optarg ;;
1371
1372   -cache-file | --cache-file | --cache-fil | --cache-fi \
1373   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1374     ac_prev=cache_file ;;
1375   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1376   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1377     cache_file=$ac_optarg ;;
1378
1379   --config-cache | -C)
1380     cache_file=config.cache ;;
1381
1382   -datadir | --datadir | --datadi | --datad)
1383     ac_prev=datadir ;;
1384   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1385     datadir=$ac_optarg ;;
1386
1387   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1388   | --dataroo | --dataro | --datar)
1389     ac_prev=datarootdir ;;
1390   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1391   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1392     datarootdir=$ac_optarg ;;
1393
1394   -disable-* | --disable-*)
1395     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1396     # Reject names that are not valid shell variable names.
1397     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398       as_fn_error "invalid feature name: $ac_useropt"
1399     ac_useropt_orig=$ac_useropt
1400     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401     case $ac_user_opts in
1402       *"
1403 "enable_$ac_useropt"
1404 "*) ;;
1405       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1406          ac_unrecognized_sep=', ';;
1407     esac
1408     eval enable_$ac_useropt=no ;;
1409
1410   -docdir | --docdir | --docdi | --doc | --do)
1411     ac_prev=docdir ;;
1412   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1413     docdir=$ac_optarg ;;
1414
1415   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1416     ac_prev=dvidir ;;
1417   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1418     dvidir=$ac_optarg ;;
1419
1420   -enable-* | --enable-*)
1421     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1422     # Reject names that are not valid shell variable names.
1423     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424       as_fn_error "invalid feature name: $ac_useropt"
1425     ac_useropt_orig=$ac_useropt
1426     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427     case $ac_user_opts in
1428       *"
1429 "enable_$ac_useropt"
1430 "*) ;;
1431       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1432          ac_unrecognized_sep=', ';;
1433     esac
1434     eval enable_$ac_useropt=\$ac_optarg ;;
1435
1436   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1437   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1438   | --exec | --exe | --ex)
1439     ac_prev=exec_prefix ;;
1440   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1441   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1442   | --exec=* | --exe=* | --ex=*)
1443     exec_prefix=$ac_optarg ;;
1444
1445   -gas | --gas | --ga | --g)
1446     # Obsolete; use --with-gas.
1447     with_gas=yes ;;
1448
1449   -help | --help | --hel | --he | -h)
1450     ac_init_help=long ;;
1451   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1452     ac_init_help=recursive ;;
1453   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1454     ac_init_help=short ;;
1455
1456   -host | --host | --hos | --ho)
1457     ac_prev=host_alias ;;
1458   -host=* | --host=* | --hos=* | --ho=*)
1459     host_alias=$ac_optarg ;;
1460
1461   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1462     ac_prev=htmldir ;;
1463   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1464   | --ht=*)
1465     htmldir=$ac_optarg ;;
1466
1467   -includedir | --includedir | --includedi | --included | --include \
1468   | --includ | --inclu | --incl | --inc)
1469     ac_prev=includedir ;;
1470   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1471   | --includ=* | --inclu=* | --incl=* | --inc=*)
1472     includedir=$ac_optarg ;;
1473
1474   -infodir | --infodir | --infodi | --infod | --info | --inf)
1475     ac_prev=infodir ;;
1476   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1477     infodir=$ac_optarg ;;
1478
1479   -libdir | --libdir | --libdi | --libd)
1480     ac_prev=libdir ;;
1481   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1482     libdir=$ac_optarg ;;
1483
1484   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1485   | --libexe | --libex | --libe)
1486     ac_prev=libexecdir ;;
1487   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1488   | --libexe=* | --libex=* | --libe=*)
1489     libexecdir=$ac_optarg ;;
1490
1491   -localedir | --localedir | --localedi | --localed | --locale)
1492     ac_prev=localedir ;;
1493   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1494     localedir=$ac_optarg ;;
1495
1496   -localstatedir | --localstatedir | --localstatedi | --localstated \
1497   | --localstate | --localstat | --localsta | --localst | --locals)
1498     ac_prev=localstatedir ;;
1499   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1500   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1501     localstatedir=$ac_optarg ;;
1502
1503   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1504     ac_prev=mandir ;;
1505   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1506     mandir=$ac_optarg ;;
1507
1508   -nfp | --nfp | --nf)
1509     # Obsolete; use --without-fp.
1510     with_fp=no ;;
1511
1512   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1513   | --no-cr | --no-c | -n)
1514     no_create=yes ;;
1515
1516   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1517   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1518     no_recursion=yes ;;
1519
1520   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1521   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1522   | --oldin | --oldi | --old | --ol | --o)
1523     ac_prev=oldincludedir ;;
1524   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1525   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1526   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1527     oldincludedir=$ac_optarg ;;
1528
1529   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1530     ac_prev=prefix ;;
1531   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1532     prefix=$ac_optarg ;;
1533
1534   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1535   | --program-pre | --program-pr | --program-p)
1536     ac_prev=program_prefix ;;
1537   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1538   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1539     program_prefix=$ac_optarg ;;
1540
1541   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1542   | --program-suf | --program-su | --program-s)
1543     ac_prev=program_suffix ;;
1544   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1545   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1546     program_suffix=$ac_optarg ;;
1547
1548   -program-transform-name | --program-transform-name \
1549   | --program-transform-nam | --program-transform-na \
1550   | --program-transform-n | --program-transform- \
1551   | --program-transform | --program-transfor \
1552   | --program-transfo | --program-transf \
1553   | --program-trans | --program-tran \
1554   | --progr-tra | --program-tr | --program-t)
1555     ac_prev=program_transform_name ;;
1556   -program-transform-name=* | --program-transform-name=* \
1557   | --program-transform-nam=* | --program-transform-na=* \
1558   | --program-transform-n=* | --program-transform-=* \
1559   | --program-transform=* | --program-transfor=* \
1560   | --program-transfo=* | --program-transf=* \
1561   | --program-trans=* | --program-tran=* \
1562   | --progr-tra=* | --program-tr=* | --program-t=*)
1563     program_transform_name=$ac_optarg ;;
1564
1565   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1566     ac_prev=pdfdir ;;
1567   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1568     pdfdir=$ac_optarg ;;
1569
1570   -psdir | --psdir | --psdi | --psd | --ps)
1571     ac_prev=psdir ;;
1572   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1573     psdir=$ac_optarg ;;
1574
1575   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1576   | -silent | --silent | --silen | --sile | --sil)
1577     silent=yes ;;
1578
1579   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1580     ac_prev=sbindir ;;
1581   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1582   | --sbi=* | --sb=*)
1583     sbindir=$ac_optarg ;;
1584
1585   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1586   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1587   | --sharedst | --shareds | --shared | --share | --shar \
1588   | --sha | --sh)
1589     ac_prev=sharedstatedir ;;
1590   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1591   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1592   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1593   | --sha=* | --sh=*)
1594     sharedstatedir=$ac_optarg ;;
1595
1596   -site | --site | --sit)
1597     ac_prev=site ;;
1598   -site=* | --site=* | --sit=*)
1599     site=$ac_optarg ;;
1600
1601   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1602     ac_prev=srcdir ;;
1603   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1604     srcdir=$ac_optarg ;;
1605
1606   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1607   | --syscon | --sysco | --sysc | --sys | --sy)
1608     ac_prev=sysconfdir ;;
1609   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1610   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1611     sysconfdir=$ac_optarg ;;
1612
1613   -target | --target | --targe | --targ | --tar | --ta | --t)
1614     ac_prev=target_alias ;;
1615   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1616     target_alias=$ac_optarg ;;
1617
1618   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1619     verbose=yes ;;
1620
1621   -version | --version | --versio | --versi | --vers | -V)
1622     ac_init_version=: ;;
1623
1624   -with-* | --with-*)
1625     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1626     # Reject names that are not valid shell variable names.
1627     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1628       as_fn_error "invalid package name: $ac_useropt"
1629     ac_useropt_orig=$ac_useropt
1630     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1631     case $ac_user_opts in
1632       *"
1633 "with_$ac_useropt"
1634 "*) ;;
1635       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1636          ac_unrecognized_sep=', ';;
1637     esac
1638     eval with_$ac_useropt=\$ac_optarg ;;
1639
1640   -without-* | --without-*)
1641     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1642     # Reject names that are not valid shell variable names.
1643     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1644       as_fn_error "invalid package name: $ac_useropt"
1645     ac_useropt_orig=$ac_useropt
1646     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1647     case $ac_user_opts in
1648       *"
1649 "with_$ac_useropt"
1650 "*) ;;
1651       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1652          ac_unrecognized_sep=', ';;
1653     esac
1654     eval with_$ac_useropt=no ;;
1655
1656   --x)
1657     # Obsolete; use --with-x.
1658     with_x=yes ;;
1659
1660   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1661   | --x-incl | --x-inc | --x-in | --x-i)
1662     ac_prev=x_includes ;;
1663   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1664   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1665     x_includes=$ac_optarg ;;
1666
1667   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1668   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1669     ac_prev=x_libraries ;;
1670   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1671   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1672     x_libraries=$ac_optarg ;;
1673
1674   -*) as_fn_error "unrecognized option: \`$ac_option'
1675 Try \`$0 --help' for more information."
1676     ;;
1677
1678   *=*)
1679     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1680     # Reject names that are not valid shell variable names.
1681     case $ac_envvar in #(
1682       '' | [0-9]* | *[!_$as_cr_alnum]* )
1683       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1684     esac
1685     eval $ac_envvar=\$ac_optarg
1686     export $ac_envvar ;;
1687
1688   *)
1689     # FIXME: should be removed in autoconf 3.0.
1690     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1691     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1692       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1693     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1694     ;;
1695
1696   esac
1697 done
1698
1699 if test -n "$ac_prev"; then
1700   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1701   as_fn_error "missing argument to $ac_option"
1702 fi
1703
1704 if test -n "$ac_unrecognized_opts"; then
1705   case $enable_option_checking in
1706     no) ;;
1707     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1708     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1709   esac
1710 fi
1711
1712 # Check all directory arguments for consistency.
1713 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1714                 datadir sysconfdir sharedstatedir localstatedir includedir \
1715                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1716                 libdir localedir mandir
1717 do
1718   eval ac_val=\$$ac_var
1719   # Remove trailing slashes.
1720   case $ac_val in
1721     */ )
1722       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1723       eval $ac_var=\$ac_val;;
1724   esac
1725   # Be sure to have absolute directory names.
1726   case $ac_val in
1727     [\\/$]* | ?:[\\/]* )  continue;;
1728     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1729   esac
1730   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1731 done
1732
1733 # There might be people who depend on the old broken behavior: `$host'
1734 # used to hold the argument of --host etc.
1735 # FIXME: To remove some day.
1736 build=$build_alias
1737 host=$host_alias
1738 target=$target_alias
1739
1740 # FIXME: To remove some day.
1741 if test "x$host_alias" != x; then
1742   if test "x$build_alias" = x; then
1743     cross_compiling=maybe
1744     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1745     If a cross compiler is detected then cross compile mode will be used." >&2
1746   elif test "x$build_alias" != "x$host_alias"; then
1747     cross_compiling=yes
1748   fi
1749 fi
1750
1751 ac_tool_prefix=
1752 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1753
1754 test "$silent" = yes && exec 6>/dev/null
1755
1756
1757 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758 ac_ls_di=`ls -di .` &&
1759 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1760   as_fn_error "working directory cannot be determined"
1761 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1762   as_fn_error "pwd does not report name of working directory"
1763
1764
1765 # Find the source files, if location was not specified.
1766 if test -z "$srcdir"; then
1767   ac_srcdir_defaulted=yes
1768   # Try the directory containing this script, then the parent directory.
1769   ac_confdir=`$as_dirname -- "$as_myself" ||
1770 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771          X"$as_myself" : 'X\(//\)[^/]' \| \
1772          X"$as_myself" : 'X\(//\)$' \| \
1773          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774 $as_echo X"$as_myself" |
1775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1776             s//\1/
1777             q
1778           }
1779           /^X\(\/\/\)[^/].*/{
1780             s//\1/
1781             q
1782           }
1783           /^X\(\/\/\)$/{
1784             s//\1/
1785             q
1786           }
1787           /^X\(\/\).*/{
1788             s//\1/
1789             q
1790           }
1791           s/.*/./; q'`
1792   srcdir=$ac_confdir
1793   if test ! -r "$srcdir/$ac_unique_file"; then
1794     srcdir=..
1795   fi
1796 else
1797   ac_srcdir_defaulted=no
1798 fi
1799 if test ! -r "$srcdir/$ac_unique_file"; then
1800   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1801   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1802 fi
1803 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1804 ac_abs_confdir=`(
1805         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1806         pwd)`
1807 # When building in place, set srcdir=.
1808 if test "$ac_abs_confdir" = "$ac_pwd"; then
1809   srcdir=.
1810 fi
1811 # Remove unnecessary trailing slashes from srcdir.
1812 # Double slashes in file names in object file debugging info
1813 # mess up M-x gdb in Emacs.
1814 case $srcdir in
1815 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1816 esac
1817 for ac_var in $ac_precious_vars; do
1818   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819   eval ac_env_${ac_var}_value=\$${ac_var}
1820   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1822 done
1823
1824 #
1825 # Report the --help message.
1826 #
1827 if test "$ac_init_help" = "long"; then
1828   # Omit some internal or obsolete options to make the list less imposing.
1829   # This message is too long to be a string in the A/UX 3.1 sh.
1830   cat <<_ACEOF
1831 \`configure' configures ImageMagick 6.6.2 to adapt to many kinds of systems.
1832
1833 Usage: $0 [OPTION]... [VAR=VALUE]...
1834
1835 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836 VAR=VALUE.  See below for descriptions of some of the useful variables.
1837
1838 Defaults for the options are specified in brackets.
1839
1840 Configuration:
1841   -h, --help              display this help and exit
1842       --help=short        display options specific to this package
1843       --help=recursive    display the short help of all the included packages
1844   -V, --version           display version information and exit
1845   -q, --quiet, --silent   do not print \`checking...' messages
1846       --cache-file=FILE   cache test results in FILE [disabled]
1847   -C, --config-cache      alias for \`--cache-file=config.cache'
1848   -n, --no-create         do not create output files
1849       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1850
1851 Installation directories:
1852   --prefix=PREFIX         install architecture-independent files in PREFIX
1853                           [$ac_default_prefix]
1854   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1855                           [PREFIX]
1856
1857 By default, \`make install' will install all the files in
1858 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1859 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860 for instance \`--prefix=\$HOME'.
1861
1862 For better control, use the options below.
1863
1864 Fine tuning of the installation directories:
1865   --bindir=DIR            user executables [EPREFIX/bin]
1866   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1867   --libexecdir=DIR        program executables [EPREFIX/libexec]
1868   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1869   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1870   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1871   --libdir=DIR            object code libraries [EPREFIX/lib]
1872   --includedir=DIR        C header files [PREFIX/include]
1873   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1874   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1875   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1876   --infodir=DIR           info documentation [DATAROOTDIR/info]
1877   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1878   --mandir=DIR            man documentation [DATAROOTDIR/man]
1879   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1880   --htmldir=DIR           html documentation [DOCDIR]
1881   --dvidir=DIR            dvi documentation [DOCDIR]
1882   --pdfdir=DIR            pdf documentation [DOCDIR]
1883   --psdir=DIR             ps documentation [DOCDIR]
1884 _ACEOF
1885
1886   cat <<\_ACEOF
1887
1888 Program names:
1889   --program-prefix=PREFIX            prepend PREFIX to installed program names
1890   --program-suffix=SUFFIX            append SUFFIX to installed program names
1891   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1892
1893 X features:
1894   --x-includes=DIR    X include files are in DIR
1895   --x-libraries=DIR   X library files are in DIR
1896
1897 System types:
1898   --build=BUILD     configure for building on BUILD [guessed]
1899   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1900   --target=TARGET   configure for building compilers for TARGET [HOST]
1901 _ACEOF
1902 fi
1903
1904 if test -n "$ac_init_help"; then
1905   case $ac_init_help in
1906      short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
1907    esac
1908   cat <<\_ACEOF
1909
1910 Optional Features:
1911   --disable-option-checking  ignore unrecognized --enable/--with options
1912   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1913   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1914   --enable-silent-rules          less verbose build output (undo: `make V=1')
1915   --disable-silent-rules         verbose build output (undo: `make V=0')
1916   --disable-dependency-tracking  speeds up one-time build
1917   --enable-dependency-tracking   do not reject slow dependency extractors
1918   --bounds-checking       enable run-time bounds-checking
1919   --enable-osx-universal-binary
1920                           build universal binary on OS X [[default=no]]
1921   --disable-openmp        do not use OpenMP
1922   --disable-opencl        do not use OpenCL
1923   --disable-largefile     omit support for large files
1924   --enable-shared[=PKGS]  build shared libraries [default=yes]
1925   --enable-static[=PKGS]  build static libraries [default=yes]
1926   --enable-fast-install[=PKGS]
1927                           optimize for fast installation [default=yes]
1928   --disable-libtool-lock  avoid locking (might break parallel builds)
1929   --enable-ltdl-install   install libltdl
1930   --enable-delegate-build look for delegate libraries in build directory
1931   --disable-deprecated    exclude deprecated methods in MagickCore and
1932                           MagickWand API's
1933   --disable-installed     Formally install ImageMagick under PREFIX
1934   --disable-cipher        disable enciphering and deciphering image pixels
1935   --enable-embeddable     enable self-contained, embeddable,
1936                           zero-configuration ImageMagick
1937   --enable-hdri           accurately represent the wide range of intensity
1938                           levels found in real scenes
1939   --disable-assert        disable assert() statements in build
1940   --enable-maintainer-mode  enable make rules and dependencies not useful
1941                           (and sometimes confusing) to the casual installer
1942   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1943   --enable-efence         enable 'efence' memory debug support
1944   --enable-prof           enable 'prof' profiling support
1945   --enable-gprof          enable 'gprof' profiling support
1946   --enable-gcov           enable 'gcov' profiling support
1947   --disable-assert        turn off assertions
1948
1949 Optional Packages:
1950   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1951   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1952   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1953   --with-dmalloc          use dmalloc, as in
1954                           http://www.dmalloc.com/dmalloc.tar.gz
1955   --without-threads       disable threads support
1956   --with-pic              try to use only PIC/non-PIC objects [default=use
1957                           both]
1958   --with-included-ltdl    use the GNU ltdl sources included here
1959   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1961   --with-modules          enable building dynamically loadable modules
1962   --with-method-prefix=PREFIX
1963                           prefix MagickCore API methods
1964   --with-quantum-depth=DEPTH
1965                           number of bits in a pixel quantum (default 16)
1966   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1967                           memory)
1968   --with-frozenpaths      freeze delegate paths
1969   --without-magick-plus-plus
1970                           disable build/install of Magick++
1971   --with-perl             enable build/install of PerlMagick
1972   --with-perl-options=OPTIONS
1973                           options to pass on command-line when generating
1974                           PerlMagick's build file
1975   --with-umem             enable umem memory allocation library support
1976   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1977   --without-bzlib         disable BZLIB support
1978   --with-x                use the X Window System
1979   --without-zlib          disable ZLIB support
1980   --with-autotrace        enable autotrace support
1981   --without-dps           disable Display Postscript support
1982   --without-djvu          disable DjVu support
1983   --with-dejavu-font-dir=DIR
1984                           DejaVu font directory
1985   --without-fftw          disable FFTW support
1986   --without-fpx           disable FlashPIX support
1987   --without-fontconfig    disable fontconfig support
1988   --without-freetype      disable Freetype support
1989   --without-gslib         enable Ghostscript library support
1990   --with-fontpath=DIR     prepend to default font search path
1991   --with-gs-font-dir=DIR  Ghostscript font directory
1992   --without-gvc           disable GVC support
1993   --without-jbig          disable JBIG support
1994   --without-jpeg          disable JPEG support
1995   --without-jp2           disable JPEG-2000 support
1996   --without-lcms          disable lcms (v1.1X) support
1997   --without-lcms2         disable lcms (v2.X) support
1998   --without-lqr           disable Liquid Rescale support
1999   --without-openexr       disable OpenEXR support
2000   --without-png           disable PNG support
2001   --without-rsvg          disable RSVG support
2002   --without-tiff          disable TIFF support
2003   --with-windows-font-dir=DIR
2004                           directory containing MS-Windows fonts
2005   --without-wmf           disable WMF support
2006   --without-xml           disable XML support
2007
2008 Some influential environment variables:
2009   CC          C compiler command
2010   CFLAGS      C compiler flags
2011   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2012               nonstandard directory <lib dir>
2013   LIBS        libraries to pass to the linker, e.g. -l<library>
2014   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015               you have headers in a nonstandard directory <include dir>
2016   CPP         C preprocessor
2017   CXX         C++ compiler command
2018   CXXFLAGS    C++ compiler flags
2019   PKG_CONFIG  path to pkg-config utility
2020   CXXCPP      C++ preprocessor
2021   XMKMF       Path to xmkmf, Makefile generator for X Window System
2022   AUTOTRACE_CFLAGS
2023               C compiler flags for AUTOTRACE, overriding pkg-config
2024   AUTOTRACE_LIBS
2025               linker flags for AUTOTRACE, overriding pkg-config
2026   FONTCONFIG_CFLAGS
2027               C compiler flags for FONTCONFIG, overriding pkg-config
2028   FONTCONFIG_LIBS
2029               linker flags for FONTCONFIG, overriding pkg-config
2030   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2031   GVC_LIBS    linker flags for GVC, overriding pkg-config
2032   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2033   LQR_LIBS    linker flags for LQR, overriding pkg-config
2034   OPENEXR_CFLAGS
2035               C compiler flags for OPENEXR, overriding pkg-config
2036   OPENEXR_LIBS
2037               linker flags for OPENEXR, overriding pkg-config
2038   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2039   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2040   CAIRO_SVG_CFLAGS
2041               C compiler flags for CAIRO_SVG, overriding pkg-config
2042   CAIRO_SVG_LIBS
2043               linker flags for CAIRO_SVG, overriding pkg-config
2044
2045 Use these variables to override the choices made by `configure' or to help
2046 it to find libraries and programs with nonstandard names/locations.
2047
2048 Report bugs to <http://www.imagemagick.org>.
2049 _ACEOF
2050 ac_status=$?
2051 fi
2052
2053 if test "$ac_init_help" = "recursive"; then
2054   # If there are subdirs, report their specific --help.
2055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2056     test -d "$ac_dir" ||
2057       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2058       continue
2059     ac_builddir=.
2060
2061 case "$ac_dir" in
2062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 *)
2064   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2065   # A ".." for each directory in $ac_dir_suffix.
2066   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2067   case $ac_top_builddir_sub in
2068   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2070   esac ;;
2071 esac
2072 ac_abs_top_builddir=$ac_pwd
2073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2074 # for backward compatibility:
2075 ac_top_builddir=$ac_top_build_prefix
2076
2077 case $srcdir in
2078   .)  # We are building in place.
2079     ac_srcdir=.
2080     ac_top_srcdir=$ac_top_builddir_sub
2081     ac_abs_top_srcdir=$ac_pwd ;;
2082   [\\/]* | ?:[\\/]* )  # Absolute name.
2083     ac_srcdir=$srcdir$ac_dir_suffix;
2084     ac_top_srcdir=$srcdir
2085     ac_abs_top_srcdir=$srcdir ;;
2086   *) # Relative name.
2087     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2088     ac_top_srcdir=$ac_top_build_prefix$srcdir
2089     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090 esac
2091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092
2093     cd "$ac_dir" || { ac_status=$?; continue; }
2094     # Check for guested configure.
2095     if test -f "$ac_srcdir/configure.gnu"; then
2096       echo &&
2097       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2098     elif test -f "$ac_srcdir/configure"; then
2099       echo &&
2100       $SHELL "$ac_srcdir/configure" --help=recursive
2101     else
2102       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103     fi || ac_status=$?
2104     cd "$ac_pwd" || { ac_status=$?; break; }
2105   done
2106 fi
2107
2108 test -n "$ac_init_help" && exit $ac_status
2109 if $ac_init_version; then
2110   cat <<\_ACEOF
2111 ImageMagick configure 6.6.2
2112 generated by GNU Autoconf 2.65
2113
2114 Copyright (C) 2009 Free Software Foundation, Inc.
2115 This configure script is free software; the Free Software Foundation
2116 gives unlimited permission to copy, distribute and modify it.
2117 _ACEOF
2118   exit
2119 fi
2120
2121 ## ------------------------ ##
2122 ## Autoconf initialization. ##
2123 ## ------------------------ ##
2124
2125 # ac_fn_c_try_compile LINENO
2126 # --------------------------
2127 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_c_try_compile ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   rm -f conftest.$ac_objext
2132   if { { ac_try="$ac_compile"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139   (eval "$ac_compile") 2>conftest.err
2140   ac_status=$?
2141   if test -s conftest.err; then
2142     grep -v '^ *+' conftest.err >conftest.er1
2143     cat conftest.er1 >&5
2144     mv -f conftest.er1 conftest.err
2145   fi
2146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147   test $ac_status = 0; } && {
2148          test -z "$ac_c_werror_flag" ||
2149          test ! -s conftest.err
2150        } && test -s conftest.$ac_objext; then :
2151   ac_retval=0
2152 else
2153   $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155
2156         ac_retval=1
2157 fi
2158   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159   as_fn_set_status $ac_retval
2160
2161 } # ac_fn_c_try_compile
2162
2163 # ac_fn_c_try_cpp LINENO
2164 # ----------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_c_try_cpp ()
2167 {
2168   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169   if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 case "(($ac_try" in
2171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172   *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177   ac_status=$?
2178   if test -s conftest.err; then
2179     grep -v '^ *+' conftest.err >conftest.er1
2180     cat conftest.er1 >&5
2181     mv -f conftest.er1 conftest.err
2182   fi
2183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184   test $ac_status = 0; } >/dev/null && {
2185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186          test ! -s conftest.err
2187        }; then :
2188   ac_retval=0
2189 else
2190   $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193     ac_retval=1
2194 fi
2195   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196   as_fn_set_status $ac_retval
2197
2198 } # ac_fn_c_try_cpp
2199
2200 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2201 # -------------------------------------------------------
2202 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203 # the include files in INCLUDES and setting the cache variable VAR
2204 # accordingly.
2205 ac_fn_c_check_header_mongrel ()
2206 {
2207   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212   $as_echo_n "(cached) " >&6
2213 fi
2214 eval ac_res=\$$3
2215                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 else
2218   # Is the header compilable?
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220 $as_echo_n "checking $2 usability... " >&6; }
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 #include <$2>
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227   ac_header_compiler=yes
2228 else
2229   ac_header_compiler=no
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233 $as_echo "$ac_header_compiler" >&6; }
2234
2235 # Is the header present?
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237 $as_echo_n "checking $2 presence... " >&6; }
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_c_try_cpp "$LINENO"; then :
2243   ac_header_preproc=yes
2244 else
2245   ac_header_preproc=no
2246 fi
2247 rm -f conftest.err conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249 $as_echo "$ac_header_preproc" >&6; }
2250
2251 # So?  What about this header?
2252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253   yes:no: )
2254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258     ;;
2259   no:yes:* )
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2263 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2267 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2268     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270 ( cat <<\_ASBOX
2271 ## ----------------------------------------- ##
2272 ## Report this to http://www.imagemagick.org ##
2273 ## ----------------------------------------- ##
2274 _ASBOX
2275      ) | sed "s/^/$as_me: WARNING:     /" >&2
2276     ;;
2277 esac
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=\$ac_header_compiler"
2284 fi
2285 eval ac_res=\$$3
2286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 fi
2289   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290
2291 } # ac_fn_c_check_header_mongrel
2292
2293 # ac_fn_c_try_run LINENO
2294 # ----------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296 # that executables *can* be run.
2297 ac_fn_c_try_run ()
2298 {
2299   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300   if { { ac_try="$ac_link"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307   (eval "$ac_link") 2>&5
2308   ac_status=$?
2309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311   { { case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317   (eval "$ac_try") 2>&5
2318   ac_status=$?
2319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320   test $ac_status = 0; }; }; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: program exited with status $ac_status" >&5
2324        $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327        ac_retval=$ac_status
2328 fi
2329   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_c_try_run
2334
2335 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2336 # -------------------------------------------------------
2337 # Tests whether HEADER exists and can be compiled using the include files in
2338 # INCLUDES, setting the cache variable VAR accordingly.
2339 ac_fn_c_check_header_compile ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 #include <$2>
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$3=yes"
2354 else
2355   eval "$3=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 eval ac_res=\$$3
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363
2364 } # ac_fn_c_check_header_compile
2365
2366 # ac_fn_cxx_try_compile LINENO
2367 # ----------------------------
2368 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2369 ac_fn_cxx_try_compile ()
2370 {
2371   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372   rm -f conftest.$ac_objext
2373   if { { ac_try="$ac_compile"
2374 case "(($ac_try" in
2375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376   *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380   (eval "$ac_compile") 2>conftest.err
2381   ac_status=$?
2382   if test -s conftest.err; then
2383     grep -v '^ *+' conftest.err >conftest.er1
2384     cat conftest.er1 >&5
2385     mv -f conftest.er1 conftest.err
2386   fi
2387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388   test $ac_status = 0; } && {
2389          test -z "$ac_cxx_werror_flag" ||
2390          test ! -s conftest.err
2391        } && test -s conftest.$ac_objext; then :
2392   ac_retval=0
2393 else
2394   $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397         ac_retval=1
2398 fi
2399   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400   as_fn_set_status $ac_retval
2401
2402 } # ac_fn_cxx_try_compile
2403
2404 # ac_fn_c_try_link LINENO
2405 # -----------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded.
2407 ac_fn_c_try_link ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   rm -f conftest.$ac_objext conftest$ac_exeext
2411   if { { ac_try="$ac_link"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418   (eval "$ac_link") 2>conftest.err
2419   ac_status=$?
2420   if test -s conftest.err; then
2421     grep -v '^ *+' conftest.err >conftest.er1
2422     cat conftest.er1 >&5
2423     mv -f conftest.er1 conftest.err
2424   fi
2425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426   test $ac_status = 0; } && {
2427          test -z "$ac_c_werror_flag" ||
2428          test ! -s conftest.err
2429        } && test -s conftest$ac_exeext && {
2430          test "$cross_compiling" = yes ||
2431          $as_test_x conftest$ac_exeext
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   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442   # interfere with the next link command; also delete a directory that is
2443   # left behind by Apple's compiler.  We do this before executing the actions.
2444   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446   as_fn_set_status $ac_retval
2447
2448 } # ac_fn_c_try_link
2449
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2454 {
2455   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459   $as_echo_n "(cached) " >&6
2460 else
2461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h.  */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2465 #define $2 innocuous_$2
2466
2467 /* System header to define __stub macros and hopefully few prototypes,
2468     which can conflict with char $2 (); below.
2469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470     <limits.h> exists even on freestanding compilers.  */
2471
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2477
2478 #undef $2
2479
2480 /* Override any GCC internal prototype to avoid an error.
2481    Use char because int might match the return type of a GCC
2482    builtin and then its argument prototype would still apply.  */
2483 #ifdef __cplusplus
2484 extern "C"
2485 #endif
2486 char $2 ();
2487 /* The GNU C library defines this for functions which it implements
2488     to always fail with ENOSYS.  Some functions are actually named
2489     something starting with __ and the normal name is an alias.  */
2490 #if defined __stub_$2 || defined __stub___$2
2491 choke me
2492 #endif
2493
2494 int
2495 main ()
2496 {
2497 return $2 ();
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_c_try_link "$LINENO"; then :
2503   eval "$3=yes"
2504 else
2505   eval "$3=no"
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext \
2508     conftest$ac_exeext conftest.$ac_ext
2509 fi
2510 eval ac_res=\$$3
2511                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515 } # ac_fn_c_check_func
2516
2517 # ac_fn_cxx_try_cpp LINENO
2518 # ------------------------
2519 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2520 ac_fn_cxx_try_cpp ()
2521 {
2522   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523   if { { ac_try="$ac_cpp conftest.$ac_ext"
2524 case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529 $as_echo "$ac_try_echo"; } >&5
2530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2531   ac_status=$?
2532   if test -s conftest.err; then
2533     grep -v '^ *+' conftest.err >conftest.er1
2534     cat conftest.er1 >&5
2535     mv -f conftest.er1 conftest.err
2536   fi
2537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538   test $ac_status = 0; } >/dev/null && {
2539          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2540          test ! -s conftest.err
2541        }; then :
2542   ac_retval=0
2543 else
2544   $as_echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547     ac_retval=1
2548 fi
2549   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550   as_fn_set_status $ac_retval
2551
2552 } # ac_fn_cxx_try_cpp
2553
2554 # ac_fn_cxx_try_link LINENO
2555 # -------------------------
2556 # Try to link conftest.$ac_ext, and return whether this succeeded.
2557 ac_fn_cxx_try_link ()
2558 {
2559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560   rm -f conftest.$ac_objext conftest$ac_exeext
2561   if { { ac_try="$ac_link"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568   (eval "$ac_link") 2>conftest.err
2569   ac_status=$?
2570   if test -s conftest.err; then
2571     grep -v '^ *+' conftest.err >conftest.er1
2572     cat conftest.er1 >&5
2573     mv -f conftest.er1 conftest.err
2574   fi
2575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576   test $ac_status = 0; } && {
2577          test -z "$ac_cxx_werror_flag" ||
2578          test ! -s conftest.err
2579        } && test -s conftest$ac_exeext && {
2580          test "$cross_compiling" = yes ||
2581          $as_test_x conftest$ac_exeext
2582        }; then :
2583   ac_retval=0
2584 else
2585   $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588         ac_retval=1
2589 fi
2590   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2591   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2592   # interfere with the next link command; also delete a directory that is
2593   # left behind by Apple's compiler.  We do this before executing the actions.
2594   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596   as_fn_set_status $ac_retval
2597
2598 } # ac_fn_cxx_try_link
2599
2600 # ac_fn_c_check_decl LINENO SYMBOL VAR
2601 # ------------------------------------
2602 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2603 ac_fn_c_check_decl ()
2604 {
2605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2607 $as_echo_n "checking whether $2 is declared... " >&6; }
2608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h.  */
2613 $4
2614 int
2615 main ()
2616 {
2617 #ifndef $2
2618   (void) $2;
2619 #endif
2620
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626   eval "$3=yes"
2627 else
2628   eval "$3=no"
2629 fi
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 fi
2632 eval ac_res=\$$3
2633                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636
2637 } # ac_fn_c_check_decl
2638
2639 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2640 # -------------------------------------------
2641 # Tests whether TYPE exists after having included INCLUDES, setting cache
2642 # variable VAR accordingly.
2643 ac_fn_c_check_type ()
2644 {
2645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2647 $as_echo_n "checking for $2... " >&6; }
2648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   eval "$3=no"
2652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h.  */
2654 $4
2655 int
2656 main ()
2657 {
2658 if (sizeof ($2))
2659          return 0;
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 int
2669 main ()
2670 {
2671 if (sizeof (($2)))
2672             return 0;
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 if ac_fn_c_try_compile "$LINENO"; then :
2678
2679 else
2680   eval "$3=yes"
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 eval ac_res=\$$3
2687                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690
2691 } # ac_fn_c_check_type
2692
2693 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2694 # ----------------------------------------------------
2695 # Tries to find if the field MEMBER exists in type AGGR, after including
2696 # INCLUDES, setting cache variable VAR accordingly.
2697 ac_fn_c_check_member ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2701 $as_echo_n "checking for $2.$3... " >&6; }
2702 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h.  */
2707 $5
2708 int
2709 main ()
2710 {
2711 static $2 ac_aggr;
2712 if (ac_aggr.$3)
2713 return 0;
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719   eval "$4=yes"
2720 else
2721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h.  */
2723 $5
2724 int
2725 main ()
2726 {
2727 static $2 ac_aggr;
2728 if (sizeof ac_aggr.$3)
2729 return 0;
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_c_try_compile "$LINENO"; then :
2735   eval "$4=yes"
2736 else
2737   eval "$4=no"
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743 eval ac_res=\$$4
2744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2747
2748 } # ac_fn_c_check_member
2749
2750 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2751 # --------------------------------------------
2752 # Tries to find the compile-time value of EXPR in a program that includes
2753 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2754 # computed
2755 ac_fn_c_compute_int ()
2756 {
2757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758   if test "$cross_compiling" = yes; then
2759     # Depending upon the size, compute the lo and hi bounds.
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762 $4
2763 int
2764 main ()
2765 {
2766 static int test_array [1 - 2 * !(($2) >= 0)];
2767 test_array [0] = 0
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774   ac_lo=0 ac_mid=0
2775   while :; do
2776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h.  */
2778 $4
2779 int
2780 main ()
2781 {
2782 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2783 test_array [0] = 0
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 if ac_fn_c_try_compile "$LINENO"; then :
2790   ac_hi=$ac_mid; break
2791 else
2792   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2793                         if test $ac_lo -le $ac_mid; then
2794                           ac_lo= ac_hi=
2795                           break
2796                         fi
2797                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800   done
2801 else
2802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 $4
2805 int
2806 main ()
2807 {
2808 static int test_array [1 - 2 * !(($2) < 0)];
2809 test_array [0] = 0
2810
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816   ac_hi=-1 ac_mid=-1
2817   while :; do
2818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h.  */
2820 $4
2821 int
2822 main ()
2823 {
2824 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2825 test_array [0] = 0
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832   ac_lo=$ac_mid; break
2833 else
2834   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2835                         if test $ac_mid -le $ac_hi; then
2836                           ac_lo= ac_hi=
2837                           break
2838                         fi
2839                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2840 fi
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842   done
2843 else
2844   ac_lo= ac_hi=
2845 fi
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 fi
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 # Binary search between lo and hi bounds.
2850 while test "x$ac_lo" != "x$ac_hi"; do
2851   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h.  */
2854 $4
2855 int
2856 main ()
2857 {
2858 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2859 test_array [0] = 0
2860
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 if ac_fn_c_try_compile "$LINENO"; then :
2866   ac_hi=$ac_mid
2867 else
2868   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 done
2872 case $ac_lo in #((
2873 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2874 '') ac_retval=1 ;;
2875 esac
2876   else
2877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h.  */
2879 $4
2880 static long int longval () { return $2; }
2881 static unsigned long int ulongval () { return $2; }
2882 #include <stdio.h>
2883 #include <stdlib.h>
2884 int
2885 main ()
2886 {
2887
2888   FILE *f = fopen ("conftest.val", "w");
2889   if (! f)
2890     return 1;
2891   if (($2) < 0)
2892     {
2893       long int i = longval ();
2894       if (i != ($2))
2895         return 1;
2896       fprintf (f, "%ld", i);
2897     }
2898   else
2899     {
2900       unsigned long int i = ulongval ();
2901       if (i != ($2))
2902         return 1;
2903       fprintf (f, "%lu", i);
2904     }
2905   /* Do not output a trailing newline, as this causes \r\n confusion
2906      on some platforms.  */
2907   return ferror (f) || fclose (f) != 0;
2908
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 if ac_fn_c_try_run "$LINENO"; then :
2914   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2915 else
2916   ac_retval=1
2917 fi
2918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2919   conftest.$ac_objext conftest.beam conftest.$ac_ext
2920 rm -f conftest.val
2921
2922   fi
2923   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2924   as_fn_set_status $ac_retval
2925
2926 } # ac_fn_c_compute_int
2927
2928 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2929 # ---------------------------------------------------------
2930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2931 # the include files in INCLUDES and setting the cache variable VAR
2932 # accordingly.
2933 ac_fn_cxx_check_header_mongrel ()
2934 {
2935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938 $as_echo_n "checking for $2... " >&6; }
2939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2940   $as_echo_n "(cached) " >&6
2941 fi
2942 eval ac_res=\$$3
2943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2945 else
2946   # Is the header compilable?
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2948 $as_echo_n "checking $2 usability... " >&6; }
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h.  */
2951 $4
2952 #include <$2>
2953 _ACEOF
2954 if ac_fn_cxx_try_compile "$LINENO"; then :
2955   ac_header_compiler=yes
2956 else
2957   ac_header_compiler=no
2958 fi
2959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2961 $as_echo "$ac_header_compiler" >&6; }
2962
2963 # Is the header present?
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2965 $as_echo_n "checking $2 presence... " >&6; }
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h.  */
2968 #include <$2>
2969 _ACEOF
2970 if ac_fn_cxx_try_cpp "$LINENO"; then :
2971   ac_header_preproc=yes
2972 else
2973   ac_header_preproc=no
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2977 $as_echo "$ac_header_preproc" >&6; }
2978
2979 # So?  What about this header?
2980 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2981   yes:no: )
2982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2986     ;;
2987   no:yes:* )
2988     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2990     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2991 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2995 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2998 ( cat <<\_ASBOX
2999 ## ----------------------------------------- ##
3000 ## Report this to http://www.imagemagick.org ##
3001 ## ----------------------------------------- ##
3002 _ASBOX
3003      ) | sed "s/^/$as_me: WARNING:     /" >&2
3004     ;;
3005 esac
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3007 $as_echo_n "checking for $2... " >&6; }
3008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   eval "$3=\$ac_header_compiler"
3012 fi
3013 eval ac_res=\$$3
3014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3015 $as_echo "$ac_res" >&6; }
3016 fi
3017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3018
3019 } # ac_fn_cxx_check_header_mongrel
3020 cat >config.log <<_ACEOF
3021 This file contains any messages produced by compilers while
3022 running configure, to aid debugging if configure makes a mistake.
3023
3024 It was created by ImageMagick $as_me 6.6.2, which was
3025 generated by GNU Autoconf 2.65.  Invocation command line was
3026
3027   $ $0 $@
3028
3029 _ACEOF
3030 exec 5>>config.log
3031 {
3032 cat <<_ASUNAME
3033 ## --------- ##
3034 ## Platform. ##
3035 ## --------- ##
3036
3037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3042
3043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3045
3046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3053
3054 _ASUNAME
3055
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     $as_echo "PATH: $as_dir"
3062   done
3063 IFS=$as_save_IFS
3064
3065 } >&5
3066
3067 cat >&5 <<_ACEOF
3068
3069
3070 ## ----------- ##
3071 ## Core tests. ##
3072 ## ----------- ##
3073
3074 _ACEOF
3075
3076
3077 # Keep a trace of the command line.
3078 # Strip out --no-create and --no-recursion so they do not pile up.
3079 # Strip out --silent because we don't want to record it for future runs.
3080 # Also quote any args containing shell meta-characters.
3081 # Make two passes to allow for proper duplicate-argument suppression.
3082 ac_configure_args=
3083 ac_configure_args0=
3084 ac_configure_args1=
3085 ac_must_keep_next=false
3086 for ac_pass in 1 2
3087 do
3088   for ac_arg
3089   do
3090     case $ac_arg in
3091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3093     | -silent | --silent | --silen | --sile | --sil)
3094       continue ;;
3095     *\'*)
3096       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3097     esac
3098     case $ac_pass in
3099     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3100     2)
3101       as_fn_append ac_configure_args1 " '$ac_arg'"
3102       if test $ac_must_keep_next = true; then
3103         ac_must_keep_next=false # Got value, back to normal.
3104       else
3105         case $ac_arg in
3106           *=* | --config-cache | -C | -disable-* | --disable-* \
3107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3109           | -with-* | --with-* | -without-* | --without-* | --x)
3110             case "$ac_configure_args0 " in
3111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3112             esac
3113             ;;
3114           -* ) ac_must_keep_next=true ;;
3115         esac
3116       fi
3117       as_fn_append ac_configure_args " '$ac_arg'"
3118       ;;
3119     esac
3120   done
3121 done
3122 { ac_configure_args0=; unset ac_configure_args0;}
3123 { ac_configure_args1=; unset ac_configure_args1;}
3124
3125 # When interrupted or exit'd, cleanup temporary files, and complete
3126 # config.log.  We remove comments because anyway the quotes in there
3127 # would cause problems or look ugly.
3128 # WARNING: Use '\'' to represent an apostrophe within the trap.
3129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130 trap 'exit_status=$?
3131   # Save into config.log some information that might help in debugging.
3132   {
3133     echo
3134
3135     cat <<\_ASBOX
3136 ## ---------------- ##
3137 ## Cache variables. ##
3138 ## ---------------- ##
3139 _ASBOX
3140     echo
3141     # The following way of writing the cache mishandles newlines in values,
3142 (
3143   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3144     eval ac_val=\$$ac_var
3145     case $ac_val in #(
3146     *${as_nl}*)
3147       case $ac_var in #(
3148       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3150       esac
3151       case $ac_var in #(
3152       _ | IFS | as_nl) ;; #(
3153       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3154       *) { eval $ac_var=; unset $ac_var;} ;;
3155       esac ;;
3156     esac
3157   done
3158   (set) 2>&1 |
3159     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3160     *${as_nl}ac_space=\ *)
3161       sed -n \
3162         "s/'\''/'\''\\\\'\'''\''/g;
3163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3164       ;; #(
3165     *)
3166       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3167       ;;
3168     esac |
3169     sort
3170 )
3171     echo
3172
3173     cat <<\_ASBOX
3174 ## ----------------- ##
3175 ## Output variables. ##
3176 ## ----------------- ##
3177 _ASBOX
3178     echo
3179     for ac_var in $ac_subst_vars
3180     do
3181       eval ac_val=\$$ac_var
3182       case $ac_val in
3183       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3184       esac
3185       $as_echo "$ac_var='\''$ac_val'\''"
3186     done | sort
3187     echo
3188
3189     if test -n "$ac_subst_files"; then
3190       cat <<\_ASBOX
3191 ## ------------------- ##
3192 ## File substitutions. ##
3193 ## ------------------- ##
3194 _ASBOX
3195       echo
3196       for ac_var in $ac_subst_files
3197       do
3198         eval ac_val=\$$ac_var
3199         case $ac_val in
3200         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3201         esac
3202         $as_echo "$ac_var='\''$ac_val'\''"
3203       done | sort
3204       echo
3205     fi
3206
3207     if test -s confdefs.h; then
3208       cat <<\_ASBOX
3209 ## ----------- ##
3210 ## confdefs.h. ##
3211 ## ----------- ##
3212 _ASBOX
3213       echo
3214       cat confdefs.h
3215       echo
3216     fi
3217     test "$ac_signal" != 0 &&
3218       $as_echo "$as_me: caught signal $ac_signal"
3219     $as_echo "$as_me: exit $exit_status"
3220   } >&5
3221   rm -f core *.core core.conftest.* &&
3222     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3223     exit $exit_status
3224 ' 0
3225 for ac_signal in 1 2 13 15; do
3226   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3227 done
3228 ac_signal=0
3229
3230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3231 rm -f -r conftest* confdefs.h
3232
3233 $as_echo "/* confdefs.h */" > confdefs.h
3234
3235 # Predefined preprocessor variables.
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE_NAME "$PACKAGE_NAME"
3239 _ACEOF
3240
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3243 _ACEOF
3244
3245 cat >>confdefs.h <<_ACEOF
3246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3247 _ACEOF
3248
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE_STRING "$PACKAGE_STRING"
3251 _ACEOF
3252
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3255 _ACEOF
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE_URL "$PACKAGE_URL"
3259 _ACEOF
3260
3261
3262 # Let the site file select an alternate cache file if it wants to.
3263 # Prefer an explicitly selected file to automatically selected ones.
3264 ac_site_file1=NONE
3265 ac_site_file2=NONE
3266 if test -n "$CONFIG_SITE"; then
3267   ac_site_file1=$CONFIG_SITE
3268 elif test "x$prefix" != xNONE; then
3269   ac_site_file1=$prefix/share/config.site
3270   ac_site_file2=$prefix/etc/config.site
3271 else
3272   ac_site_file1=$ac_default_prefix/share/config.site
3273   ac_site_file2=$ac_default_prefix/etc/config.site
3274 fi
3275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3276 do
3277   test "x$ac_site_file" = xNONE && continue
3278   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3279     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3281     sed 's/^/| /' "$ac_site_file" >&5
3282     . "$ac_site_file"
3283   fi
3284 done
3285
3286 if test -r "$cache_file"; then
3287   # Some versions of bash will fail to source /dev/null (special files
3288   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3289   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3291 $as_echo "$as_me: loading cache $cache_file" >&6;}
3292     case $cache_file in
3293       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3294       *)                      . "./$cache_file";;
3295     esac
3296   fi
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3299 $as_echo "$as_me: creating cache $cache_file" >&6;}
3300   >$cache_file
3301 fi
3302
3303 as_fn_append ac_header_list " stdlib.h"
3304 as_fn_append ac_header_list " unistd.h"
3305 as_fn_append ac_header_list " sys/param.h"
3306 # Check that the precious variables saved in the cache have kept the same
3307 # value.
3308 ac_cache_corrupted=false
3309 for ac_var in $ac_precious_vars; do
3310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3311   eval ac_new_set=\$ac_env_${ac_var}_set
3312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3313   eval ac_new_val=\$ac_env_${ac_var}_value
3314   case $ac_old_set,$ac_new_set in
3315     set,)
3316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3318       ac_cache_corrupted=: ;;
3319     ,set)
3320       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3322       ac_cache_corrupted=: ;;
3323     ,);;
3324     *)
3325       if test "x$ac_old_val" != "x$ac_new_val"; then
3326         # differences in whitespace do not lead to failure.
3327         ac_old_val_w=`echo x $ac_old_val`
3328         ac_new_val_w=`echo x $ac_new_val`
3329         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3330           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3332           ac_cache_corrupted=:
3333         else
3334           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3336           eval $ac_var=\$ac_old_val
3337         fi
3338         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3339 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3340         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3341 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3342       fi;;
3343   esac
3344   # Pass precious variables to config.status.
3345   if test "$ac_new_set" = set; then
3346     case $ac_new_val in
3347     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3348     *) ac_arg=$ac_var=$ac_new_val ;;
3349     esac
3350     case " $ac_configure_args " in
3351       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3352       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3353     esac
3354   fi
3355 done
3356 if $ac_cache_corrupted; then
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3361   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3362 fi
3363 ## -------------------- ##
3364 ## Main body of script. ##
3365 ## -------------------- ##
3366
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372
3373
3374
3375 ac_aux_dir=
3376 for ac_dir in config "$srcdir"/config; do
3377   for ac_t in install-sh install.sh shtool; do
3378     if test -f "$ac_dir/$ac_t"; then
3379       ac_aux_dir=$ac_dir
3380       ac_install_sh="$ac_aux_dir/$ac_t -c"
3381       break 2
3382     fi
3383   done
3384 done
3385 if test -z "$ac_aux_dir"; then
3386   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3387 fi
3388
3389 # These three variables are undocumented and unsupported,
3390 # and are intended to be withdrawn in a future Autoconf release.
3391 # They can cause serious problems if a builder's source tree is in a directory
3392 # whose full name contains unusual characters.
3393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3395 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3396
3397
3398
3399
3400 ac_config_headers="$ac_config_headers config/config.h"
3401
3402 ac_config_commands="$ac_config_commands magick/magick-config.h"
3403
3404 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3405
3406
3407 #
3408 # Save initial user-tunable values
3409 #
3410 USER_LIBS=$LIBS
3411 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3412   eval isset=\${$var+set}
3413     if test "$isset" = 'set'; then
3414         eval val=$`echo $var`
3415         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3416     fi
3417 done
3418
3419
3420 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3421
3422
3423 # Source file containing package/library versioning information.
3424 . ${srcdir}/version.sh
3425
3426 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3427 # Make sure we can run config.sub.
3428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3429   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3430
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3432 $as_echo_n "checking build system type... " >&6; }
3433 if test "${ac_cv_build+set}" = set; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   ac_build_alias=$build_alias
3437 test "x$ac_build_alias" = x &&
3438   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3439 test "x$ac_build_alias" = x &&
3440   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3442   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3443
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3446 $as_echo "$ac_cv_build" >&6; }
3447 case $ac_cv_build in
3448 *-*-*) ;;
3449 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3450 esac
3451 build=$ac_cv_build
3452 ac_save_IFS=$IFS; IFS='-'
3453 set x $ac_cv_build
3454 shift
3455 build_cpu=$1
3456 build_vendor=$2
3457 shift; shift
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3460 build_os=$*
3461 IFS=$ac_save_IFS
3462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3463
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3466 $as_echo_n "checking host system type... " >&6; }
3467 if test "${ac_cv_host+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test "x$host_alias" = x; then
3471   ac_cv_host=$ac_cv_build
3472 else
3473   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3474     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3475 fi
3476
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3479 $as_echo "$ac_cv_host" >&6; }
3480 case $ac_cv_host in
3481 *-*-*) ;;
3482 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3483 esac
3484 host=$ac_cv_host
3485 ac_save_IFS=$IFS; IFS='-'
3486 set x $ac_cv_host
3487 shift
3488 host_cpu=$1
3489 host_vendor=$2
3490 shift; shift
3491 # Remember, the first character of IFS is used to create $*,
3492 # except with old shells:
3493 host_os=$*
3494 IFS=$ac_save_IFS
3495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3496
3497
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3499 $as_echo_n "checking target system type... " >&6; }
3500 if test "${ac_cv_target+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test "x$target_alias" = x; then
3504   ac_cv_target=$ac_cv_host
3505 else
3506   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3507     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3508 fi
3509
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3512 $as_echo "$ac_cv_target" >&6; }
3513 case $ac_cv_target in
3514 *-*-*) ;;
3515 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3516 esac
3517 target=$ac_cv_target
3518 ac_save_IFS=$IFS; IFS='-'
3519 set x $ac_cv_target
3520 shift
3521 target_cpu=$1
3522 target_vendor=$2
3523 shift; shift
3524 # Remember, the first character of IFS is used to create $*,
3525 # except with old shells:
3526 target_os=$*
3527 IFS=$ac_save_IFS
3528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3529
3530
3531 # The aliases save the names the user supplied, while $host etc.
3532 # will get canonicalized.
3533 test -n "$target_alias" &&
3534   test "$program_prefix$program_suffix$program_transform_name" = \
3535     NONENONEs,x,x, &&
3536   program_prefix=${target_alias}-
3537
3538
3539
3540
3541
3542 MAGICK_TARGET_CPU=$target_cpu
3543
3544
3545 MAGICK_TARGET_VENDOR=$target_vendor
3546
3547
3548 MAGICK_TARGET_OS=$target_os
3549
3550
3551 # Substitute library versioning
3552 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3553
3554 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3555
3556
3557
3558 # Ensure that make can run correctly
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3560 $as_echo_n "checking whether build environment is sane... " >&6; }
3561 # Just in case
3562 sleep 1
3563 echo timestamp > conftest.file
3564 # Reject unsafe characters in $srcdir or the absolute working directory
3565 # name.  Accept space and tab only in the latter.
3566 am_lf='
3567 '
3568 case `pwd` in
3569   *[\\\"\#\$\&\'\`$am_lf]*)
3570     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3571 esac
3572 case $srcdir in
3573   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3574     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3575 esac
3576
3577 # Do `set' in a subshell so we don't clobber the current shell's
3578 # arguments.  Must try -L first in case configure is actually a
3579 # symlink; some systems play weird games with the mod time of symlinks
3580 # (eg FreeBSD returns the mod time of the symlink's containing
3581 # directory).
3582 if (
3583    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3584    if test "$*" = "X"; then
3585       # -L didn't work.
3586       set X `ls -t "$srcdir/configure" conftest.file`
3587    fi
3588    rm -f conftest.file
3589    if test "$*" != "X $srcdir/configure conftest.file" \
3590       && test "$*" != "X conftest.file $srcdir/configure"; then
3591
3592       # If neither matched, then we have a broken ls.  This can happen
3593       # if, for instance, CONFIG_SHELL is bash and it inherits a
3594       # broken ls alias from the environment.  This has actually
3595       # happened.  Such a system could not be considered "sane".
3596       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3597 alias in your environment" "$LINENO" 5
3598    fi
3599
3600    test "$2" = conftest.file
3601    )
3602 then
3603    # Ok.
3604    :
3605 else
3606    as_fn_error "newly created file is older than distributed files!
3607 Check your system clock" "$LINENO" 5
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3610 $as_echo "yes" >&6; }
3611
3612 am__api_version='1.11'
3613
3614 # Find a good install program.  We prefer a C program (faster),
3615 # so one script is as good as another.  But avoid the broken or
3616 # incompatible versions:
3617 # SysV /etc/install, /usr/sbin/install
3618 # SunOS /usr/etc/install
3619 # IRIX /sbin/install
3620 # AIX /bin/install
3621 # AmigaOS /C/install, which installs bootblocks on floppy discs
3622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625 # OS/2's system install, which has a completely different semantic
3626 # ./install, which can be erroneously created by make from ./install.sh.
3627 # Reject install programs that cannot install multiple files.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3629 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3630 if test -z "$INSTALL"; then
3631 if test "${ac_cv_path_install+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639     # Account for people who put trailing slashes in PATH elements.
3640 case $as_dir/ in #((
3641   ./ | .// | /[cC]/* | \
3642   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3643   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3644   /usr/ucb/* ) ;;
3645   *)
3646     # OSF1 and SCO ODT 3.0 have their own names for install.
3647     # Don't use installbsd from OSF since it installs stuff as root
3648     # by default.
3649     for ac_prog in ginstall scoinst install; do
3650       for ac_exec_ext in '' $ac_executable_extensions; do
3651         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3652           if test $ac_prog = install &&
3653             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654             # AIX install.  It has an incompatible calling convention.
3655             :
3656           elif test $ac_prog = install &&
3657             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658             # program-specific install script used by HP pwplus--don't use.
3659             :
3660           else
3661             rm -rf conftest.one conftest.two conftest.dir
3662             echo one > conftest.one
3663             echo two > conftest.two
3664             mkdir conftest.dir
3665             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3666               test -s conftest.one && test -s conftest.two &&
3667               test -s conftest.dir/conftest.one &&
3668               test -s conftest.dir/conftest.two
3669             then
3670               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671               break 3
3672             fi
3673           fi
3674         fi
3675       done
3676     done
3677     ;;
3678 esac
3679
3680   done
3681 IFS=$as_save_IFS
3682
3683 rm -rf conftest.one conftest.two conftest.dir
3684
3685 fi
3686   if test "${ac_cv_path_install+set}" = set; then
3687     INSTALL=$ac_cv_path_install
3688   else
3689     # As a last resort, use the slow shell script.  Don't cache a
3690     # value for INSTALL within a source directory, because that will
3691     # break other packages using the cache if that directory is
3692     # removed, or if the value is a relative name.
3693     INSTALL=$ac_install_sh
3694   fi
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3697 $as_echo "$INSTALL" >&6; }
3698
3699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3700 # It thinks the first close brace ends the variable substitution.
3701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702
3703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704
3705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706
3707 test "$program_prefix" != NONE &&
3708   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3709 # Use a double $ so make ignores it.
3710 test "$program_suffix" != NONE &&
3711   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3712 # Double any \ or $.
3713 # By default was `s,x,x', remove it if useless.
3714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3716
3717 # expand $ac_aux_dir to an absolute path
3718 am_aux_dir=`cd $ac_aux_dir && pwd`
3719
3720 if test x"${MISSING+set}" != xset; then
3721   case $am_aux_dir in
3722   *\ * | *\     *)
3723     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3724   *)
3725     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3726   esac
3727 fi
3728 # Use eval to expand $SHELL
3729 if eval "$MISSING --run true"; then
3730   am_missing_run="$MISSING --run "
3731 else
3732   am_missing_run=
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3735 fi
3736
3737 if test x"${install_sh}" != xset; then
3738   case $am_aux_dir in
3739   *\ * | *\     *)
3740     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3741   *)
3742     install_sh="\${SHELL} $am_aux_dir/install-sh"
3743   esac
3744 fi
3745
3746 # Installed binaries are usually stripped using `strip' when the user
3747 # run `make install-strip'.  However `strip' might not be the right
3748 # tool to use in cross-compilation environments, therefore Automake
3749 # will honor the `STRIP' environment variable to overrule this program.
3750 if test "$cross_compiling" != no; then
3751   if test -n "$ac_tool_prefix"; then
3752   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}strip; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_STRIP+set}" = set; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if test -n "$STRIP"; then
3760   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774   done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 STRIP=$ac_cv_prog_STRIP
3780 if test -n "$STRIP"; then
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3782 $as_echo "$STRIP" >&6; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788
3789 fi
3790 if test -z "$ac_cv_prog_STRIP"; then
3791   ac_ct_STRIP=$STRIP
3792   # Extract the first word of "strip", so it can be a program name with args.
3793 set dummy strip; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   if test -n "$ac_ct_STRIP"; then
3800   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807     for ac_exec_ext in '' $ac_executable_extensions; do
3808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809     ac_cv_prog_ac_ct_STRIP="strip"
3810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814   done
3815 IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3820 if test -n "$ac_ct_STRIP"; then
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3822 $as_echo "$ac_ct_STRIP" >&6; }
3823 else
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828   if test "x$ac_ct_STRIP" = x; then
3829     STRIP=":"
3830   else
3831     case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837     STRIP=$ac_ct_STRIP
3838   fi
3839 else
3840   STRIP="$ac_cv_prog_STRIP"
3841 fi
3842
3843 fi
3844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3845
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3848 if test -z "$MKDIR_P"; then
3849   if test "${ac_cv_path_mkdir+set}" = set; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_prog in mkdir gmkdir; do
3858          for ac_exec_ext in '' $ac_executable_extensions; do
3859            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3860            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3861              'mkdir (GNU coreutils) '* | \
3862              'mkdir (coreutils) '* | \
3863              'mkdir (fileutils) '4.1*)
3864                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3865                break 3;;
3866            esac
3867          done
3868        done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873
3874   test -d ./--version && rmdir ./--version
3875   if test "${ac_cv_path_mkdir+set}" = set; then
3876     MKDIR_P="$ac_cv_path_mkdir -p"
3877   else
3878     # As a last resort, use the slow shell script.  Don't cache a
3879     # value for MKDIR_P within a source directory, because that will
3880     # break other packages using the cache if that directory is
3881     # removed, or if the value is a relative name.
3882     MKDIR_P="$ac_install_sh -d"
3883   fi
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3886 $as_echo "$MKDIR_P" >&6; }
3887
3888 mkdir_p="$MKDIR_P"
3889 case $mkdir_p in
3890   [\\/$]* | ?:[\\/]*) ;;
3891   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3892 esac
3893
3894 for ac_prog in gawk mawk nawk awk
3895 do
3896   # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_prog_AWK+set}" = set; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   if test -n "$AWK"; then
3904   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911     for ac_exec_ext in '' $ac_executable_extensions; do
3912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913     ac_cv_prog_AWK="$ac_prog"
3914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918   done
3919 IFS=$as_save_IFS
3920
3921 fi
3922 fi
3923 AWK=$ac_cv_prog_AWK
3924 if test -n "$AWK"; then
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3926 $as_echo "$AWK" >&6; }
3927 else
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3930 fi
3931
3932
3933   test -n "$AWK" && break
3934 done
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3938 set x ${MAKE-make}
3939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3940 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   cat >conftest.make <<\_ACEOF
3944 SHELL = /bin/sh
3945 all:
3946         @echo '@@@%%%=$(MAKE)=@@@%%%'
3947 _ACEOF
3948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3950   *@@@%%%=?*=@@@%%%*)
3951     eval ac_cv_prog_make_${ac_make}_set=yes;;
3952   *)
3953     eval ac_cv_prog_make_${ac_make}_set=no;;
3954 esac
3955 rm -f conftest.make
3956 fi
3957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959 $as_echo "yes" >&6; }
3960   SET_MAKE=
3961 else
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964   SET_MAKE="MAKE=${MAKE-make}"
3965 fi
3966
3967 rm -rf .tst 2>/dev/null
3968 mkdir .tst 2>/dev/null
3969 if test -d .tst; then
3970   am__leading_dot=.
3971 else
3972   am__leading_dot=_
3973 fi
3974 rmdir .tst 2>/dev/null
3975
3976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3977   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3978   # is not polluted with repeated "-I."
3979   am__isrc=' -I$(srcdir)'
3980   # test to see if srcdir already configured
3981   if test -f $srcdir/config.status; then
3982     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3983   fi
3984 fi
3985
3986 # test whether we have cygpath
3987 if test -z "$CYGPATH_W"; then
3988   if (cygpath --version) >/dev/null 2>/dev/null; then
3989     CYGPATH_W='cygpath -w'
3990   else
3991     CYGPATH_W=echo
3992   fi
3993 fi
3994
3995
3996 # Define the identity of the package.
3997  PACKAGE=$PACKAGE_NAME
3998  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3999
4000
4001 # Some tools Automake needs.
4002
4003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4004
4005
4006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4007
4008
4009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4010
4011
4012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4013
4014
4015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4016
4017 # We need awk for the "check" target.  The system "awk" is bad on
4018 # some platforms.
4019 # Always define AMTAR for backward compatibility.
4020
4021 AMTAR=${AMTAR-"${am_missing_run}tar"}
4022
4023 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4024
4025
4026
4027
4028
4029
4030 # Enable support for silent build rules
4031 # Check whether --enable-silent-rules was given.
4032 if test "${enable_silent_rules+set}" = set; then :
4033   enableval=$enable_silent_rules;
4034 fi
4035
4036 case $enable_silent_rules in
4037 yes) AM_DEFAULT_VERBOSITY=0;;
4038 no)  AM_DEFAULT_VERBOSITY=1;;
4039 *)   AM_DEFAULT_VERBOSITY=0;;
4040 esac
4041 AM_BACKSLASH='\'
4042
4043
4044 MAGICK_LIB_VERSION="0x"
4045 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4046   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4047 fi
4048 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4049 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4050   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4051 fi
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4053 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4054   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4055 fi
4056 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4057
4058
4059 # Definition used to define MagickLibVersionText in version.h
4060 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4061
4062
4063 # Definition used to define MagickLibVersionNumber in version.h
4064 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4065
4066
4067 # Regenerate config.status if ChangeLog or version.sh is updated.
4068 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4069
4070
4071 PERLMAINCC=$CC
4072
4073 MAGICK_CFLAGS=''
4074 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4075 MAGICK_PCFLAGS=$CPPFLAGS_USER
4076 MAGICK_LDFLAGS=''
4077 MAGICK_LIBS=''
4078
4079 #
4080 # Evaluate shell variable equivalents to Makefile directory variables
4081 #
4082 if test "x$prefix" = xNONE; then
4083     prefix=$ac_default_prefix
4084 fi
4085 # Let make expand exec_prefix.
4086 if test "x$exec_prefix" = xNONE; then
4087     exec_prefix='${prefix}'
4088 fi
4089
4090 #
4091 eval "eval PREFIX_DIR=${prefix}"
4092
4093 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4094
4095 eval "eval BIN_DIR=$bindir"
4096
4097 eval "eval SBIN_DIR=$sbindir"
4098
4099 eval "eval LIBEXEC_DIR=$libexecdir"
4100
4101 eval "eval DATA_DIR=$datadir"
4102
4103 eval "eval SYSCONF_DIR=$sysconfdir"
4104
4105 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4106
4107 eval "eval LOCALSTATE_DIR=$localstatedir"
4108
4109 eval "eval LIB_DIR=$libdir"
4110
4111 eval "eval INCLUDE_DIR=$includedir"
4112
4113 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4114
4115 eval "eval INFO_DIR=$infodir"
4116
4117 eval "eval MAN_DIR=$mandir"
4118
4119
4120 # Get full paths to source and build directories
4121 srcdirfull="`cd $srcdir && pwd`"
4122 builddir="`pwd`"
4123
4124 #
4125 # Compute variables useful for running uninstalled software.
4126 #
4127 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4128 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4129 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4130 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4131 DIRSEP=':'
4132 case "${build_os}" in
4133     mingw* )
4134         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4135         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4136         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4137         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4138         DIRSEP=';'
4139     ;;
4140 esac
4141 case "${host_os}" in
4142   mingw* )
4143     DIRSEP=';'
4144     ;;
4145 esac
4146
4147
4148
4149
4150
4151
4152
4153 #
4154 # Enable OS features.
4155 #
4156 DEPDIR="${am__leading_dot}deps"
4157
4158 ac_config_commands="$ac_config_commands depfiles"
4159
4160
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4163 am__doit:
4164         @echo this is the am__doit target
4165 .PHONY: am__doit
4166 END
4167 # If we don't find an include directive, just comment out the code.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4170 am__include="#"
4171 am__quote=
4172 _am_result=none
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # Ignore all kinds of additional output from `make'.
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4178   am__include=include
4179   am__quote=
4180   _am_result=GNU
4181   ;;
4182 esac
4183 # Now try BSD make style include.
4184 if test "$am__include" = "#"; then
4185    echo '.include "confinc"' > confmf
4186    case `$am_make -s -f confmf 2> /dev/null` in #(
4187    *the\ am__doit\ target*)
4188      am__include=.include
4189      am__quote="\""
4190      _am_result=BSD
4191      ;;
4192    esac
4193 fi
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197 $as_echo "$_am_result" >&6; }
4198 rm -f confinc confmf
4199
4200 # Check whether --enable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then :
4202   enableval=$enable_dependency_tracking;
4203 fi
4204
4205 if test "x$enable_dependency_tracking" != xno; then
4206   am_depcomp="$ac_aux_dir/depcomp"
4207   AMDEPBACKSLASH='\'
4208 fi
4209  if test "x$enable_dependency_tracking" != xno; then
4210   AMDEP_TRUE=
4211   AMDEP_FALSE='#'
4212 else
4213   AMDEP_TRUE='#'
4214   AMDEP_FALSE=
4215 fi
4216
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 if test -n "$ac_tool_prefix"; then
4224   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -n "$CC"; then
4232   ac_cv_prog_CC="$CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239     for ac_exec_ext in '' $ac_executable_extensions; do
4240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246   done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 fi
4262 if test -z "$ac_cv_prog_CC"; then
4263   ac_ct_CC=$CC
4264   # Extract the first word of "gcc", so it can be a program name with args.
4265 set dummy gcc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if test -n "$ac_ct_CC"; then
4272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281     ac_cv_prog_ac_ct_CC="gcc"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294 $as_echo "$ac_ct_CC" >&6; }
4295 else
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300   if test "x$ac_ct_CC" = x; then
4301     CC=""
4302   else
4303     case $cross_compiling:$ac_tool_warned in
4304 yes:)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned=yes ;;
4308 esac
4309     CC=$ac_ct_CC
4310   fi
4311 else
4312   CC="$ac_cv_prog_CC"
4313 fi
4314
4315 if test -z "$CC"; then
4316           if test -n "$ac_tool_prefix"; then
4317     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}cc; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_CC+set}" = set; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   if test -n "$CC"; then
4325   ac_cv_prog_CC="$CC" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334     ac_cv_prog_CC="${ac_tool_prefix}cc"
4335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339   done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 CC=$ac_cv_prog_CC
4345 if test -n "$CC"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354   fi
4355 fi
4356 if test -z "$CC"; then
4357   # Extract the first word of "cc", so it can be a program name with args.
4358 set dummy cc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test -n "$CC"; then
4365   ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367   ac_prog_rejected=no
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4376        ac_prog_rejected=yes
4377        continue
4378      fi
4379     ac_cv_prog_CC="cc"
4380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384   done
4385 IFS=$as_save_IFS
4386
4387 if test $ac_prog_rejected = yes; then
4388   # We found a bogon in the path, so make sure we never use it.
4389   set dummy $ac_cv_prog_CC
4390   shift
4391   if test $# != 0; then
4392     # We chose a different compiler from the bogus one.
4393     # However, it has the same basename, so the bogon will be chosen
4394     # first if we set CC to just the basename; use the full file name.
4395     shift
4396     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4397   fi
4398 fi
4399 fi
4400 fi
4401 CC=$ac_cv_prog_CC
4402 if test -n "$CC"; then
4403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4405 else
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411 fi
4412 if test -z "$CC"; then
4413   if test -n "$ac_tool_prefix"; then
4414   for ac_prog in cl.exe
4415   do
4416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_CC+set}" = set; then :
4421   $as_echo_n "(cached) " >&6
4422 else
4423   if test -n "$CC"; then
4424   ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431     for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438   done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453     test -n "$CC" && break
4454   done
4455 fi
4456 if test -z "$CC"; then
4457   ac_ct_CC=$CC
4458   for ac_prog in cl.exe
4459 do
4460   # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467   if test -n "$ac_ct_CC"; then
4468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475     for ac_exec_ext in '' $ac_executable_extensions; do
4476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477     ac_cv_prog_ac_ct_CC="$ac_prog"
4478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482   done
4483 IFS=$as_save_IFS
4484
4485 fi
4486 fi
4487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488 if test -n "$ac_ct_CC"; then
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4490 $as_echo "$ac_ct_CC" >&6; }
4491 else
4492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4494 fi
4495
4496
4497   test -n "$ac_ct_CC" && break
4498 done
4499
4500   if test "x$ac_ct_CC" = x; then
4501     CC=""
4502   else
4503     case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509     CC=$ac_ct_CC
4510   fi
4511 fi
4512
4513 fi
4514
4515
4516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error "no acceptable C compiler found in \$PATH
4519 See \`config.log' for more details." "$LINENO" 5; }
4520
4521 # Provide some information about the compiler.
4522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4523 set X $ac_compile
4524 ac_compiler=$2
4525 for ac_option in --version -v -V -qversion; do
4526   { { ac_try="$ac_compiler $ac_option >&5"
4527 case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4534   ac_status=$?
4535   if test -s conftest.err; then
4536     sed '10a\
4537 ... rest of stderr output deleted ...
4538          10q' conftest.err >conftest.er1
4539     cat conftest.er1 >&5
4540   fi
4541   rm -f conftest.er1 conftest.err
4542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543   test $ac_status = 0; }
4544 done
4545
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 ac_clean_files_save=$ac_clean_files
4558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4559 # Try to create an executable without -o first, disregard a.out.
4560 # It will help us diagnose broken compilers, and finding out an intuition
4561 # of exeext.
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4563 $as_echo_n "checking whether the C compiler works... " >&6; }
4564 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4565
4566 # The possible output files:
4567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4568
4569 ac_rmfiles=
4570 for ac_file in $ac_files
4571 do
4572   case $ac_file in
4573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4574     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4575   esac
4576 done
4577 rm -f $ac_rmfiles
4578
4579 if { { ac_try="$ac_link_default"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586   (eval "$ac_link_default") 2>&5
4587   ac_status=$?
4588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589   test $ac_status = 0; }; then :
4590   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4592 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4593 # so that the user can short-circuit this test for compilers unknown to
4594 # Autoconf.
4595 for ac_file in $ac_files ''
4596 do
4597   test -f "$ac_file" || continue
4598   case $ac_file in
4599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4600         ;;
4601     [ab].out )
4602         # We found the default executable, but exeext='' is most
4603         # certainly right.
4604         break;;
4605     *.* )
4606         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4607         then :; else
4608            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4609         fi
4610         # We set ac_cv_exeext here because the later test for it is not
4611         # safe: cross compilers may not add the suffix if given an `-o'
4612         # argument, so we may need to know it at that point already.
4613         # Even if this section looks crufty: it has the advantage of
4614         # actually working.
4615         break;;
4616     * )
4617         break;;
4618   esac
4619 done
4620 test "$ac_cv_exeext" = no && ac_cv_exeext=
4621
4622 else
4623   ac_file=''
4624 fi
4625 if test -z "$ac_file"; then :
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 $as_echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 { as_fn_set_status 77
4634 as_fn_error "C compiler cannot create executables
4635 See \`config.log' for more details." "$LINENO" 5; }; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 $as_echo "yes" >&6; }
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4641 $as_echo_n "checking for C compiler default output file name... " >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4643 $as_echo "$ac_file" >&6; }
4644 ac_exeext=$ac_cv_exeext
4645
4646 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4649 $as_echo_n "checking for suffix of executables... " >&6; }
4650 if { { ac_try="$ac_link"
4651 case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657   (eval "$ac_link") 2>&5
4658   ac_status=$?
4659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660   test $ac_status = 0; }; then :
4661   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4662 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4663 # work properly (i.e., refer to `conftest.exe'), while it won't with
4664 # `rm'.
4665 for ac_file in conftest.exe conftest conftest.*; do
4666   test -f "$ac_file" || continue
4667   case $ac_file in
4668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4669     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4670           break;;
4671     * ) break;;
4672   esac
4673 done
4674 else
4675   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error "cannot compute suffix of executables: cannot compile and link
4678 See \`config.log' for more details." "$LINENO" 5; }
4679 fi
4680 rm -f conftest conftest$ac_cv_exeext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4682 $as_echo "$ac_cv_exeext" >&6; }
4683
4684 rm -f conftest.$ac_ext
4685 EXEEXT=$ac_cv_exeext
4686 ac_exeext=$EXEEXT
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h.  */
4689 #include <stdio.h>
4690 int
4691 main ()
4692 {
4693 FILE *f = fopen ("conftest.out", "w");
4694  return ferror (f) || fclose (f) != 0;
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 ac_clean_files="$ac_clean_files conftest.out"
4701 # Check that the compiler produces executables we can run.  If not, either
4702 # the compiler is broken, or we cross compile.
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4704 $as_echo_n "checking whether we are cross compiling... " >&6; }
4705 if test "$cross_compiling" != yes; then
4706   { { ac_try="$ac_link"
4707 case "(($ac_try" in
4708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709   *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713   (eval "$ac_link") 2>&5
4714   ac_status=$?
4715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716   test $ac_status = 0; }
4717   if { ac_try='./conftest$ac_cv_exeext'
4718   { { case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 $as_echo "$ac_try_echo"; } >&5
4724   (eval "$ac_try") 2>&5
4725   ac_status=$?
4726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727   test $ac_status = 0; }; }; then
4728     cross_compiling=no
4729   else
4730     if test "$cross_compiling" = maybe; then
4731         cross_compiling=yes
4732     else
4733         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4735 as_fn_error "cannot run C compiled programs.
4736 If you meant to cross compile, use \`--host'.
4737 See \`config.log' for more details." "$LINENO" 5; }
4738     fi
4739   fi
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4742 $as_echo "$cross_compiling" >&6; }
4743
4744 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4745 ac_clean_files=$ac_clean_files_save
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4747 $as_echo_n "checking for suffix of object files... " >&6; }
4748 if test "${ac_cv_objext+set}" = set; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753
4754 int
4755 main ()
4756 {
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.o conftest.obj
4763 if { { ac_try="$ac_compile"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4769 $as_echo "$ac_try_echo"; } >&5
4770   (eval "$ac_compile") 2>&5
4771   ac_status=$?
4772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773   test $ac_status = 0; }; then :
4774   for ac_file in conftest.o conftest.obj conftest.*; do
4775   test -f "$ac_file" || continue;
4776   case $ac_file in
4777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4778     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4779        break;;
4780   esac
4781 done
4782 else
4783   $as_echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4788 as_fn_error "cannot compute suffix of object files: cannot compile
4789 See \`config.log' for more details." "$LINENO" 5; }
4790 fi
4791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4794 $as_echo "$ac_cv_objext" >&6; }
4795 OBJEXT=$ac_cv_objext
4796 ac_objext=$OBJEXT
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4798 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4799 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h.  */
4804
4805 int
4806 main ()
4807 {
4808 #ifndef __GNUC__
4809        choke me
4810 #endif
4811
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817   ac_compiler_gnu=yes
4818 else
4819   ac_compiler_gnu=no
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4823
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4826 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4827 if test $ac_compiler_gnu = yes; then
4828   GCC=yes
4829 else
4830   GCC=
4831 fi
4832 ac_test_CFLAGS=${CFLAGS+set}
4833 ac_save_CFLAGS=$CFLAGS
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4835 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4836 if test "${ac_cv_prog_cc_g+set}" = set; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   ac_save_c_werror_flag=$ac_c_werror_flag
4840    ac_c_werror_flag=yes
4841    ac_cv_prog_cc_g=no
4842    CFLAGS="-g"
4843    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855   ac_cv_prog_cc_g=yes
4856 else
4857   CFLAGS=""
4858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h.  */
4860
4861 int
4862 main ()
4863 {
4864
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870
4871 else
4872   ac_c_werror_flag=$ac_save_c_werror_flag
4873          CFLAGS="-g"
4874          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h.  */
4876
4877 int
4878 main ()
4879 {
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886   ac_cv_prog_cc_g=yes
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893    ac_c_werror_flag=$ac_save_c_werror_flag
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4896 $as_echo "$ac_cv_prog_cc_g" >&6; }
4897 if test "$ac_test_CFLAGS" = set; then
4898   CFLAGS=$ac_save_CFLAGS
4899 elif test $ac_cv_prog_cc_g = yes; then
4900   if test "$GCC" = yes; then
4901     CFLAGS="-g -O2"
4902   else
4903     CFLAGS="-g"
4904   fi
4905 else
4906   if test "$GCC" = yes; then
4907     CFLAGS="-O2"
4908   else
4909     CFLAGS=
4910   fi
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4914 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   ac_cv_prog_cc_c89=no
4918 ac_save_CC=$CC
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h.  */
4921 #include <stdarg.h>
4922 #include <stdio.h>
4923 #include <sys/types.h>
4924 #include <sys/stat.h>
4925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4926 struct buf { int x; };
4927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4928 static char *e (p, i)
4929      char **p;
4930      int i;
4931 {
4932   return p[i];
4933 }
4934 static char *f (char * (*g) (char **, int), char **p, ...)
4935 {
4936   char *s;
4937   va_list v;
4938   va_start (v,p);
4939   s = g (p, va_arg (v,int));
4940   va_end (v);
4941   return s;
4942 }
4943
4944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4945    function prototypes and stuff, but not '\xHH' hex character constants.
4946    These don't provoke an error unfortunately, instead are silently treated
4947    as 'x'.  The following induces an error, until -std is added to get
4948    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4949    array size at least.  It's necessary to write '\x00'==0 to get something
4950    that's true only with -std.  */
4951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4952
4953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4954    inside strings and character constants.  */
4955 #define FOO(x) 'x'
4956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4957
4958 int test (int i, double x);
4959 struct s1 {int (*f) (int a);};
4960 struct s2 {int (*f) (double a);};
4961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4962 int argc;
4963 char **argv;
4964 int
4965 main ()
4966 {
4967 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4973         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4974 do
4975   CC="$ac_save_CC $ac_arg"
4976   if ac_fn_c_try_compile "$LINENO"; then :
4977   ac_cv_prog_cc_c89=$ac_arg
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext
4980   test "x$ac_cv_prog_cc_c89" != "xno" && break
4981 done
4982 rm -f conftest.$ac_ext
4983 CC=$ac_save_CC
4984
4985 fi
4986 # AC_CACHE_VAL
4987 case "x$ac_cv_prog_cc_c89" in
4988   x)
4989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4990 $as_echo "none needed" >&6; } ;;
4991   xno)
4992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4993 $as_echo "unsupported" >&6; } ;;
4994   *)
4995     CC="$CC $ac_cv_prog_cc_c89"
4996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4998 esac
4999 if test "x$ac_cv_prog_cc_c89" != xno; then :
5000
5001 fi
5002
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009 depcc="$CC"   am_compiler_list=
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5012 $as_echo_n "checking dependency style of $depcc... " >&6; }
5013 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5017   # We make a subdir and do the tests there.  Otherwise we can end up
5018   # making bogus files that we don't know about and never remove.  For
5019   # instance it was reported that on HP-UX the gcc test will end up
5020   # making a dummy file named `D' -- because `-MD' means `put the output
5021   # in D'.
5022   mkdir conftest.dir
5023   # Copy depcomp to subdir because otherwise we won't find it if we're
5024   # using a relative directory.
5025   cp "$am_depcomp" conftest.dir
5026   cd conftest.dir
5027   # We will build objects and dependencies in a subdirectory because
5028   # it helps to detect inapplicable dependency modes.  For instance
5029   # both Tru64's cc and ICC support -MD to output dependencies as a
5030   # side effect of compilation, but ICC will put the dependencies in
5031   # the current directory while Tru64 will put them in the object
5032   # directory.
5033   mkdir sub
5034
5035   am_cv_CC_dependencies_compiler_type=none
5036   if test "$am_compiler_list" = ""; then
5037      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5038   fi
5039   am__universal=false
5040   case " $depcc " in #(
5041      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5042      esac
5043
5044   for depmode in $am_compiler_list; do
5045     # Setup a source with many dependencies, because some compilers
5046     # like to wrap large dependency lists on column 80 (with \), and
5047     # we should not choose a depcomp mode which is confused by this.
5048     #
5049     # We need to recreate these files for each test, as the compiler may
5050     # overwrite some of them when testing with obscure command lines.
5051     # This happens at least with the AIX C compiler.
5052     : > sub/conftest.c
5053     for i in 1 2 3 4 5 6; do
5054       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5055       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5056       # Solaris 8's {/usr,}/bin/sh.
5057       touch sub/conftst$i.h
5058     done
5059     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5060
5061     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5062     # mode.  It turns out that the SunPro C++ compiler does not properly
5063     # handle `-M -o', and we need to detect this.  Also, some Intel
5064     # versions had trouble with output in subdirs
5065     am__obj=sub/conftest.${OBJEXT-o}
5066     am__minus_obj="-o $am__obj"
5067     case $depmode in
5068     gcc)
5069       # This depmode causes a compiler race in universal mode.
5070       test "$am__universal" = false || continue
5071       ;;
5072     nosideeffect)
5073       # after this tag, mechanisms are not by side-effect, so they'll
5074       # only be used when explicitly requested
5075       if test "x$enable_dependency_tracking" = xyes; then
5076         continue
5077       else
5078         break
5079       fi
5080       ;;
5081     msvisualcpp | msvcmsys)
5082       # This compiler won't grok `-c -o', but also, the minuso test has
5083       # not run yet.  These depmodes are late enough in the game, and
5084       # so weak that their functioning should not be impacted.
5085       am__obj=conftest.${OBJEXT-o}
5086       am__minus_obj=
5087       ;;
5088     none) break ;;
5089     esac
5090     if depmode=$depmode \
5091        source=sub/conftest.c object=$am__obj \
5092        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5094          >/dev/null 2>conftest.err &&
5095        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5096        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5097        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5098        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5099       # icc doesn't choke on unknown options, it will just issue warnings
5100       # or remarks (even with -Werror).  So we grep stderr for any message
5101       # that says an option was ignored or not supported.
5102       # When given -MP, icc 7.0 and 7.1 complain thusly:
5103       #   icc: Command line warning: ignoring option '-M'; no argument required
5104       # The diagnosis changed in icc 8.0:
5105       #   icc: Command line remark: option '-MP' not supported
5106       if (grep 'ignoring option' conftest.err ||
5107           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5108         am_cv_CC_dependencies_compiler_type=$depmode
5109         break
5110       fi
5111     fi
5112   done
5113
5114   cd ..
5115   rm -rf conftest.dir
5116 else
5117   am_cv_CC_dependencies_compiler_type=none
5118 fi
5119
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5122 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5124
5125  if
5126   test "x$enable_dependency_tracking" != xno \
5127   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128   am__fastdepCC_TRUE=
5129   am__fastdepCC_FALSE='#'
5130 else
5131   am__fastdepCC_TRUE='#'
5132   am__fastdepCC_FALSE=
5133 fi
5134
5135
5136
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5144 # On Suns, sometimes $CPP names a directory.
5145 if test -n "$CPP" && test -d "$CPP"; then
5146   CPP=
5147 fi
5148 if test -z "$CPP"; then
5149   if test "${ac_cv_prog_CPP+set}" = set; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152       # Double quotes because CPP needs to be expanded
5153     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5154     do
5155       ac_preproc_ok=false
5156 for ac_c_preproc_warn_flag in '' yes
5157 do
5158   # Use a header file that comes with gcc, so configuring glibc
5159   # with a fresh cross-compiler works.
5160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161   # <limits.h> exists even on freestanding compilers.
5162   # On the NeXT, cc -E runs the code through the compiler's parser,
5163   # not just through cpp. "Syntax error" is here to catch this case.
5164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h.  */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171                      Syntax error
5172 _ACEOF
5173 if ac_fn_c_try_cpp "$LINENO"; then :
5174
5175 else
5176   # Broken: fails on valid input.
5177 continue
5178 fi
5179 rm -f conftest.err conftest.$ac_ext
5180
5181   # OK, works on sane cases.  Now check whether nonexistent headers
5182   # can be detected and how.
5183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h.  */
5185 #include <ac_nonexistent.h>
5186 _ACEOF
5187 if ac_fn_c_try_cpp "$LINENO"; then :
5188   # Broken: success on invalid input.
5189 continue
5190 else
5191   # Passes both tests.
5192 ac_preproc_ok=:
5193 break
5194 fi
5195 rm -f conftest.err conftest.$ac_ext
5196
5197 done
5198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199 rm -f conftest.err conftest.$ac_ext
5200 if $ac_preproc_ok; then :
5201   break
5202 fi
5203
5204     done
5205     ac_cv_prog_CPP=$CPP
5206
5207 fi
5208   CPP=$ac_cv_prog_CPP
5209 else
5210   ac_cv_prog_CPP=$CPP
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5213 $as_echo "$CPP" >&6; }
5214 ac_preproc_ok=false
5215 for ac_c_preproc_warn_flag in '' yes
5216 do
5217   # Use a header file that comes with gcc, so configuring glibc
5218   # with a fresh cross-compiler works.
5219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5220   # <limits.h> exists even on freestanding compilers.
5221   # On the NeXT, cc -E runs the code through the compiler's parser,
5222   # not just through cpp. "Syntax error" is here to catch this case.
5223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225 #ifdef __STDC__
5226 # include <limits.h>
5227 #else
5228 # include <assert.h>
5229 #endif
5230                      Syntax error
5231 _ACEOF
5232 if ac_fn_c_try_cpp "$LINENO"; then :
5233
5234 else
5235   # Broken: fails on valid input.
5236 continue
5237 fi
5238 rm -f conftest.err conftest.$ac_ext
5239
5240   # OK, works on sane cases.  Now check whether nonexistent headers
5241   # can be detected and how.
5242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h.  */
5244 #include <ac_nonexistent.h>
5245 _ACEOF
5246 if ac_fn_c_try_cpp "$LINENO"; then :
5247   # Broken: success on invalid input.
5248 continue
5249 else
5250   # Passes both tests.
5251 ac_preproc_ok=:
5252 break
5253 fi
5254 rm -f conftest.err conftest.$ac_ext
5255
5256 done
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then :
5260
5261 else
5262   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." "$LINENO" 5; }
5266 fi
5267
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5277 if test "${ac_cv_path_GREP+set}" = set; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   if test -z "$GREP"; then
5281   ac_path_GREP_found=false
5282   # Loop through the user's path and test for each of PROGNAME-LIST
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_prog in grep ggrep; do
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5291       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5292 # Check for GNU ac_path_GREP and select it if it is found.
5293   # Check for GNU $ac_path_GREP
5294 case `"$ac_path_GREP" --version 2>&1` in
5295 *GNU*)
5296   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5297 *)
5298   ac_count=0
5299   $as_echo_n 0123456789 >"conftest.in"
5300   while :
5301   do
5302     cat "conftest.in" "conftest.in" >"conftest.tmp"
5303     mv "conftest.tmp" "conftest.in"
5304     cp "conftest.in" "conftest.nl"
5305     $as_echo 'GREP' >> "conftest.nl"
5306     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308     as_fn_arith $ac_count + 1 && ac_count=$as_val
5309     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5310       # Best one so far, save it but keep looking for a better one
5311       ac_cv_path_GREP="$ac_path_GREP"
5312       ac_path_GREP_max=$ac_count
5313     fi
5314     # 10*(2^10) chars as input seems more than enough
5315     test $ac_count -gt 10 && break
5316   done
5317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318 esac
5319
5320       $ac_path_GREP_found && break 3
5321     done
5322   done
5323   done
5324 IFS=$as_save_IFS
5325   if test -z "$ac_cv_path_GREP"; then
5326     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327   fi
5328 else
5329   ac_cv_path_GREP=$GREP
5330 fi
5331
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5334 $as_echo "$ac_cv_path_GREP" >&6; }
5335  GREP="$ac_cv_path_GREP"
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5339 $as_echo_n "checking for egrep... " >&6; }
5340 if test "${ac_cv_path_EGREP+set}" = set; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5344    then ac_cv_path_EGREP="$GREP -E"
5345    else
5346      if test -z "$EGREP"; then
5347   ac_path_EGREP_found=false
5348   # Loop through the user's path and test for each of PROGNAME-LIST
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_prog in egrep; do
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5357       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5358 # Check for GNU ac_path_EGREP and select it if it is found.
5359   # Check for GNU $ac_path_EGREP
5360 case `"$ac_path_EGREP" --version 2>&1` in
5361 *GNU*)
5362   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5363 *)
5364   ac_count=0
5365   $as_echo_n 0123456789 >"conftest.in"
5366   while :
5367   do
5368     cat "conftest.in" "conftest.in" >"conftest.tmp"
5369     mv "conftest.tmp" "conftest.in"
5370     cp "conftest.in" "conftest.nl"
5371     $as_echo 'EGREP' >> "conftest.nl"
5372     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5374     as_fn_arith $ac_count + 1 && ac_count=$as_val
5375     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5376       # Best one so far, save it but keep looking for a better one
5377       ac_cv_path_EGREP="$ac_path_EGREP"
5378       ac_path_EGREP_max=$ac_count
5379     fi
5380     # 10*(2^10) chars as input seems more than enough
5381     test $ac_count -gt 10 && break
5382   done
5383   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5384 esac
5385
5386       $ac_path_EGREP_found && break 3
5387     done
5388   done
5389   done
5390 IFS=$as_save_IFS
5391   if test -z "$ac_cv_path_EGREP"; then
5392     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5393   fi
5394 else
5395   ac_cv_path_EGREP=$EGREP
5396 fi
5397
5398    fi
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5401 $as_echo "$ac_cv_path_EGREP" >&6; }
5402  EGREP="$ac_cv_path_EGREP"
5403
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5406 $as_echo_n "checking for ANSI C header files... " >&6; }
5407 if test "${ac_cv_header_stdc+set}" = set; then :
5408   $as_echo_n "(cached) " >&6
5409 else
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412 #include <stdlib.h>
5413 #include <stdarg.h>
5414 #include <string.h>
5415 #include <float.h>
5416
5417 int
5418 main ()
5419 {
5420
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426   ac_cv_header_stdc=yes
5427 else
5428   ac_cv_header_stdc=no
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431
5432 if test $ac_cv_header_stdc = yes; then
5433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h.  */
5436 #include <string.h>
5437
5438 _ACEOF
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440   $EGREP "memchr" >/dev/null 2>&1; then :
5441
5442 else
5443   ac_cv_header_stdc=no
5444 fi
5445 rm -f conftest*
5446
5447 fi
5448
5449 if test $ac_cv_header_stdc = yes; then
5450   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h.  */
5453 #include <stdlib.h>
5454
5455 _ACEOF
5456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5457   $EGREP "free" >/dev/null 2>&1; then :
5458
5459 else
5460   ac_cv_header_stdc=no
5461 fi
5462 rm -f conftest*
5463
5464 fi
5465
5466 if test $ac_cv_header_stdc = yes; then
5467   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5468   if test "$cross_compiling" = yes; then :
5469   :
5470 else
5471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h.  */
5473 #include <ctype.h>
5474 #include <stdlib.h>
5475 #if ((' ' & 0x0FF) == 0x020)
5476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5478 #else
5479 # define ISLOWER(c) \
5480                    (('a' <= (c) && (c) <= 'i') \
5481                      || ('j' <= (c) && (c) <= 'r') \
5482                      || ('s' <= (c) && (c) <= 'z'))
5483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484 #endif
5485
5486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5487 int
5488 main ()
5489 {
5490   int i;
5491   for (i = 0; i < 256; i++)
5492     if (XOR (islower (i), ISLOWER (i))
5493         || toupper (i) != TOUPPER (i))
5494       return 2;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_run "$LINENO"; then :
5499
5500 else
5501   ac_cv_header_stdc=no
5502 fi
5503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5504   conftest.$ac_objext conftest.beam conftest.$ac_ext
5505 fi
5506
5507 fi
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5510 $as_echo "$ac_cv_header_stdc" >&6; }
5511 if test $ac_cv_header_stdc = yes; then
5512
5513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5514
5515 fi
5516
5517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5519                   inttypes.h stdint.h unistd.h
5520 do :
5521   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5523 "
5524 eval as_val=\$$as_ac_Header
5525    if test "x$as_val" = x""yes; then :
5526   cat >>confdefs.h <<_ACEOF
5527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 _ACEOF
5529
5530 fi
5531
5532 done
5533
5534
5535
5536   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5537 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5538   MINIX=yes
5539 else
5540   MINIX=
5541 fi
5542
5543
5544   if test "$MINIX" = yes; then
5545
5546 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5547
5548
5549 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5550
5551
5552 $as_echo "#define _MINIX 1" >>confdefs.h
5553
5554   fi
5555
5556
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5558 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5559 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564
5565 #         define __EXTENSIONS__ 1
5566           $ac_includes_default
5567 int
5568 main ()
5569 {
5570
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576   ac_cv_safe_to_define___extensions__=yes
5577 else
5578   ac_cv_safe_to_define___extensions__=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5583 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5584   test $ac_cv_safe_to_define___extensions__ = yes &&
5585     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5586
5587   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5588
5589   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5590
5591   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5592
5593   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5594
5595
5596
5597 # Check for programs
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603 if test -n "$ac_tool_prefix"; then
5604   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_CC+set}" = set; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$CC"; then
5612   ac_cv_prog_CC="$CC" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 CC=$ac_cv_prog_CC
5632 if test -n "$CC"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5634 $as_echo "$CC" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 fi
5642 if test -z "$ac_cv_prog_CC"; then
5643   ac_ct_CC=$CC
5644   # Extract the first word of "gcc", so it can be a program name with args.
5645 set dummy gcc; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$ac_ct_CC"; then
5652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_prog_ac_ct_CC="gcc"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5672 if test -n "$ac_ct_CC"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5674 $as_echo "$ac_ct_CC" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680   if test "x$ac_ct_CC" = x; then
5681     CC=""
5682   else
5683     case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689     CC=$ac_ct_CC
5690   fi
5691 else
5692   CC="$ac_cv_prog_CC"
5693 fi
5694
5695 if test -z "$CC"; then
5696           if test -n "$ac_tool_prefix"; then
5697     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}cc; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_CC+set}" = set; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$CC"; then
5705   ac_cv_prog_CC="$CC" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_prog_CC="${ac_tool_prefix}cc"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 CC=$ac_cv_prog_CC
5725 if test -n "$CC"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727 $as_echo "$CC" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734   fi
5735 fi
5736 if test -z "$CC"; then
5737   # Extract the first word of "cc", so it can be a program name with args.
5738 set dummy cc; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_CC+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$CC"; then
5745   ac_cv_prog_CC="$CC" # Let the user override the test.
5746 else
5747   ac_prog_rejected=no
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5756        ac_prog_rejected=yes
5757        continue
5758      fi
5759     ac_cv_prog_CC="cc"
5760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764   done
5765 IFS=$as_save_IFS
5766
5767 if test $ac_prog_rejected = yes; then
5768   # We found a bogon in the path, so make sure we never use it.
5769   set dummy $ac_cv_prog_CC
5770   shift
5771   if test $# != 0; then
5772     # We chose a different compiler from the bogus one.
5773     # However, it has the same basename, so the bogon will be chosen
5774     # first if we set CC to just the basename; use the full file name.
5775     shift
5776     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5777   fi
5778 fi
5779 fi
5780 fi
5781 CC=$ac_cv_prog_CC
5782 if test -n "$CC"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5784 $as_echo "$CC" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$CC"; then
5793   if test -n "$ac_tool_prefix"; then
5794   for ac_prog in cl.exe
5795   do
5796     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_CC+set}" = set; then :
5801   $as_echo_n "(cached) " >&6
5802 else
5803   if test -n "$CC"; then
5804   ac_cv_prog_CC="$CC" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 CC=$ac_cv_prog_CC
5824 if test -n "$CC"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5826 $as_echo "$CC" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833     test -n "$CC" && break
5834   done
5835 fi
5836 if test -z "$CC"; then
5837   ac_ct_CC=$CC
5838   for ac_prog in cl.exe
5839 do
5840   # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if test -n "$ac_ct_CC"; then
5848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857     ac_cv_prog_ac_ct_CC="$ac_prog"
5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862   done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5868 if test -n "$ac_ct_CC"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5870 $as_echo "$ac_ct_CC" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876
5877   test -n "$ac_ct_CC" && break
5878 done
5879
5880   if test "x$ac_ct_CC" = x; then
5881     CC=""
5882   else
5883     case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889     CC=$ac_ct_CC
5890   fi
5891 fi
5892
5893 fi
5894
5895
5896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error "no acceptable C compiler found in \$PATH
5899 See \`config.log' for more details." "$LINENO" 5; }
5900
5901 # Provide some information about the compiler.
5902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5903 set X $ac_compile
5904 ac_compiler=$2
5905 for ac_option in --version -v -V -qversion; do
5906   { { ac_try="$ac_compiler $ac_option >&5"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5912 $as_echo "$ac_try_echo"; } >&5
5913   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5914   ac_status=$?
5915   if test -s conftest.err; then
5916     sed '10a\
5917 ... rest of stderr output deleted ...
5918          10q' conftest.err >conftest.er1
5919     cat conftest.er1 >&5
5920   fi
5921   rm -f conftest.er1 conftest.err
5922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923   test $ac_status = 0; }
5924 done
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5928 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h.  */
5933
5934 int
5935 main ()
5936 {
5937 #ifndef __GNUC__
5938        choke me
5939 #endif
5940
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946   ac_compiler_gnu=yes
5947 else
5948   ac_compiler_gnu=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5956 if test $ac_compiler_gnu = yes; then
5957   GCC=yes
5958 else
5959   GCC=
5960 fi
5961 ac_test_CFLAGS=${CFLAGS+set}
5962 ac_save_CFLAGS=$CFLAGS
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5965 if test "${ac_cv_prog_cc_g+set}" = set; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   ac_save_c_werror_flag=$ac_c_werror_flag
5969    ac_c_werror_flag=yes
5970    ac_cv_prog_cc_g=no
5971    CFLAGS="-g"
5972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h.  */
5974
5975 int
5976 main ()
5977 {
5978
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"; then :
5984   ac_cv_prog_cc_g=yes
5985 else
5986   CFLAGS=""
5987       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h.  */
5989
5990 int
5991 main ()
5992 {
5993
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999
6000 else
6001   ac_c_werror_flag=$ac_save_c_werror_flag
6002          CFLAGS="-g"
6003          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h.  */
6005
6006 int
6007 main ()
6008 {
6009
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_compile "$LINENO"; then :
6015   ac_cv_prog_cc_g=yes
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022    ac_c_werror_flag=$ac_save_c_werror_flag
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6025 $as_echo "$ac_cv_prog_cc_g" >&6; }
6026 if test "$ac_test_CFLAGS" = set; then
6027   CFLAGS=$ac_save_CFLAGS
6028 elif test $ac_cv_prog_cc_g = yes; then
6029   if test "$GCC" = yes; then
6030     CFLAGS="-g -O2"
6031   else
6032     CFLAGS="-g"
6033   fi
6034 else
6035   if test "$GCC" = yes; then
6036     CFLAGS="-O2"
6037   else
6038     CFLAGS=
6039   fi
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6043 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   ac_cv_prog_cc_c89=no
6047 ac_save_CC=$CC
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050 #include <stdarg.h>
6051 #include <stdio.h>
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6058      char **p;
6059      int i;
6060 {
6061   return p[i];
6062 }
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6064 {
6065   char *s;
6066   va_list v;
6067   va_start (v,p);
6068   s = g (p, va_arg (v,int));
6069   va_end (v);
6070   return s;
6071 }
6072
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6074    function prototypes and stuff, but not '\xHH' hex character constants.
6075    These don't provoke an error unfortunately, instead are silently treated
6076    as 'x'.  The following induces an error, until -std is added to get
6077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6078    array size at least.  It's necessary to write '\x00'==0 to get something
6079    that's true only with -std.  */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083    inside strings and character constants.  */
6084 #define FOO(x) 'x'
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091 int argc;
6092 char **argv;
6093 int
6094 main ()
6095 {
6096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103 do
6104   CC="$ac_save_CC $ac_arg"
6105   if ac_fn_c_try_compile "$LINENO"; then :
6106   ac_cv_prog_cc_c89=$ac_arg
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext
6109   test "x$ac_cv_prog_cc_c89" != "xno" && break
6110 done
6111 rm -f conftest.$ac_ext
6112 CC=$ac_save_CC
6113
6114 fi
6115 # AC_CACHE_VAL
6116 case "x$ac_cv_prog_cc_c89" in
6117   x)
6118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6119 $as_echo "none needed" >&6; } ;;
6120   xno)
6121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6122 $as_echo "unsupported" >&6; } ;;
6123   *)
6124     CC="$CC $ac_cv_prog_cc_c89"
6125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6127 esac
6128 if test "x$ac_cv_prog_cc_c89" != xno; then :
6129
6130 fi
6131
6132 ac_ext=c
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138 depcc="$CC"   am_compiler_list=
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6141 $as_echo_n "checking dependency style of $depcc... " >&6; }
6142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6146   # We make a subdir and do the tests there.  Otherwise we can end up
6147   # making bogus files that we don't know about and never remove.  For
6148   # instance it was reported that on HP-UX the gcc test will end up
6149   # making a dummy file named `D' -- because `-MD' means `put the output
6150   # in D'.
6151   mkdir conftest.dir
6152   # Copy depcomp to subdir because otherwise we won't find it if we're
6153   # using a relative directory.
6154   cp "$am_depcomp" conftest.dir
6155   cd conftest.dir
6156   # We will build objects and dependencies in a subdirectory because
6157   # it helps to detect inapplicable dependency modes.  For instance
6158   # both Tru64's cc and ICC support -MD to output dependencies as a
6159   # side effect of compilation, but ICC will put the dependencies in
6160   # the current directory while Tru64 will put them in the object
6161   # directory.
6162   mkdir sub
6163
6164   am_cv_CC_dependencies_compiler_type=none
6165   if test "$am_compiler_list" = ""; then
6166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6167   fi
6168   am__universal=false
6169   case " $depcc " in #(
6170      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6171      esac
6172
6173   for depmode in $am_compiler_list; do
6174     # Setup a source with many dependencies, because some compilers
6175     # like to wrap large dependency lists on column 80 (with \), and
6176     # we should not choose a depcomp mode which is confused by this.
6177     #
6178     # We need to recreate these files for each test, as the compiler may
6179     # overwrite some of them when testing with obscure command lines.
6180     # This happens at least with the AIX C compiler.
6181     : > sub/conftest.c
6182     for i in 1 2 3 4 5 6; do
6183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6184       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6185       # Solaris 8's {/usr,}/bin/sh.
6186       touch sub/conftst$i.h
6187     done
6188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6189
6190     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6191     # mode.  It turns out that the SunPro C++ compiler does not properly
6192     # handle `-M -o', and we need to detect this.  Also, some Intel
6193     # versions had trouble with output in subdirs
6194     am__obj=sub/conftest.${OBJEXT-o}
6195     am__minus_obj="-o $am__obj"
6196     case $depmode in
6197     gcc)
6198       # This depmode causes a compiler race in universal mode.
6199       test "$am__universal" = false || continue
6200       ;;
6201     nosideeffect)
6202       # after this tag, mechanisms are not by side-effect, so they'll
6203       # only be used when explicitly requested
6204       if test "x$enable_dependency_tracking" = xyes; then
6205         continue
6206       else
6207         break
6208       fi
6209       ;;
6210     msvisualcpp | msvcmsys)
6211       # This compiler won't grok `-c -o', but also, the minuso test has
6212       # not run yet.  These depmodes are late enough in the game, and
6213       # so weak that their functioning should not be impacted.
6214       am__obj=conftest.${OBJEXT-o}
6215       am__minus_obj=
6216       ;;
6217     none) break ;;
6218     esac
6219     if depmode=$depmode \
6220        source=sub/conftest.c object=$am__obj \
6221        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6222        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6223          >/dev/null 2>conftest.err &&
6224        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6226        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6228       # icc doesn't choke on unknown options, it will just issue warnings
6229       # or remarks (even with -Werror).  So we grep stderr for any message
6230       # that says an option was ignored or not supported.
6231       # When given -MP, icc 7.0 and 7.1 complain thusly:
6232       #   icc: Command line warning: ignoring option '-M'; no argument required
6233       # The diagnosis changed in icc 8.0:
6234       #   icc: Command line remark: option '-MP' not supported
6235       if (grep 'ignoring option' conftest.err ||
6236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6237         am_cv_CC_dependencies_compiler_type=$depmode
6238         break
6239       fi
6240     fi
6241   done
6242
6243   cd ..
6244   rm -rf conftest.dir
6245 else
6246   am_cv_CC_dependencies_compiler_type=none
6247 fi
6248
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6253
6254  if
6255   test "x$enable_dependency_tracking" != xno \
6256   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6257   am__fastdepCC_TRUE=
6258   am__fastdepCC_FALSE='#'
6259 else
6260   am__fastdepCC_TRUE='#'
6261   am__fastdepCC_FALSE=
6262 fi
6263
6264
6265 ac_ext=cpp
6266 ac_cpp='$CXXCPP $CPPFLAGS'
6267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270 if test -z "$CXX"; then
6271   if test -n "$CCC"; then
6272     CXX=$CCC
6273   else
6274     if test -n "$ac_tool_prefix"; then
6275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6276   do
6277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_CXX+set}" = set; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   if test -n "$CXX"; then
6285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292     for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299   done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 CXX=$ac_cv_prog_CXX
6305 if test -n "$CXX"; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6307 $as_echo "$CXX" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313
6314     test -n "$CXX" && break
6315   done
6316 fi
6317 if test -z "$CXX"; then
6318   ac_ct_CXX=$CXX
6319   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6320 do
6321   # Extract the first word of "$ac_prog", so it can be a program name with args.
6322 set dummy $ac_prog; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6326   $as_echo_n "(cached) " >&6
6327 else
6328   if test -n "$ac_ct_CXX"; then
6329   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336     for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_prog_ac_ct_CXX="$ac_prog"
6339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343   done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6349 if test -n "$ac_ct_CXX"; then
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6351 $as_echo "$ac_ct_CXX" >&6; }
6352 else
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358   test -n "$ac_ct_CXX" && break
6359 done
6360
6361   if test "x$ac_ct_CXX" = x; then
6362     CXX="g++"
6363   else
6364     case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370     CXX=$ac_ct_CXX
6371   fi
6372 fi
6373
6374   fi
6375 fi
6376 # Provide some information about the compiler.
6377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6378 set X $ac_compile
6379 ac_compiler=$2
6380 for ac_option in --version -v -V -qversion; do
6381   { { ac_try="$ac_compiler $ac_option >&5"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6387 $as_echo "$ac_try_echo"; } >&5
6388   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6389   ac_status=$?
6390   if test -s conftest.err; then
6391     sed '10a\
6392 ... rest of stderr output deleted ...
6393          10q' conftest.err >conftest.er1
6394     cat conftest.er1 >&5
6395   fi
6396   rm -f conftest.er1 conftest.err
6397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398   test $ac_status = 0; }
6399 done
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412 #ifndef __GNUC__
6413        choke me
6414 #endif
6415
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_cxx_try_compile "$LINENO"; then :
6421   ac_compiler_gnu=yes
6422 else
6423   ac_compiler_gnu=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6431 if test $ac_compiler_gnu = yes; then
6432   GXX=yes
6433 else
6434   GXX=
6435 fi
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444    ac_cxx_werror_flag=yes
6445    ac_cv_prog_cxx_g=no
6446    CXXFLAGS="-g"
6447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h.  */
6449
6450 int
6451 main ()
6452 {
6453
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6459   ac_cv_prog_cxx_g=yes
6460 else
6461   CXXFLAGS=""
6462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h.  */
6464
6465 int
6466 main ()
6467 {
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_cxx_try_compile "$LINENO"; then :
6474
6475 else
6476   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6477          CXXFLAGS="-g"
6478          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h.  */
6480
6481 int
6482 main ()
6483 {
6484
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 if ac_fn_cxx_try_compile "$LINENO"; then :
6490   ac_cv_prog_cxx_g=yes
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6501 if test "$ac_test_CXXFLAGS" = set; then
6502   CXXFLAGS=$ac_save_CXXFLAGS
6503 elif test $ac_cv_prog_cxx_g = yes; then
6504   if test "$GXX" = yes; then
6505     CXXFLAGS="-g -O2"
6506   else
6507     CXXFLAGS="-g"
6508   fi
6509 else
6510   if test "$GXX" = yes; then
6511     CXXFLAGS="-O2"
6512   else
6513     CXXFLAGS=
6514   fi
6515 fi
6516 ac_ext=c
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522 depcc="$CXX"  am_compiler_list=
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6525 $as_echo_n "checking dependency style of $depcc... " >&6; }
6526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6530   # We make a subdir and do the tests there.  Otherwise we can end up
6531   # making bogus files that we don't know about and never remove.  For
6532   # instance it was reported that on HP-UX the gcc test will end up
6533   # making a dummy file named `D' -- because `-MD' means `put the output
6534   # in D'.
6535   mkdir conftest.dir
6536   # Copy depcomp to subdir because otherwise we won't find it if we're
6537   # using a relative directory.
6538   cp "$am_depcomp" conftest.dir
6539   cd conftest.dir
6540   # We will build objects and dependencies in a subdirectory because
6541   # it helps to detect inapplicable dependency modes.  For instance
6542   # both Tru64's cc and ICC support -MD to output dependencies as a
6543   # side effect of compilation, but ICC will put the dependencies in
6544   # the current directory while Tru64 will put them in the object
6545   # directory.
6546   mkdir sub
6547
6548   am_cv_CXX_dependencies_compiler_type=none
6549   if test "$am_compiler_list" = ""; then
6550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6551   fi
6552   am__universal=false
6553   case " $depcc " in #(
6554      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6555      esac
6556
6557   for depmode in $am_compiler_list; do
6558     # Setup a source with many dependencies, because some compilers
6559     # like to wrap large dependency lists on column 80 (with \), and
6560     # we should not choose a depcomp mode which is confused by this.
6561     #
6562     # We need to recreate these files for each test, as the compiler may
6563     # overwrite some of them when testing with obscure command lines.
6564     # This happens at least with the AIX C compiler.
6565     : > sub/conftest.c
6566     for i in 1 2 3 4 5 6; do
6567       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6568       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6569       # Solaris 8's {/usr,}/bin/sh.
6570       touch sub/conftst$i.h
6571     done
6572     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6573
6574     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6575     # mode.  It turns out that the SunPro C++ compiler does not properly
6576     # handle `-M -o', and we need to detect this.  Also, some Intel
6577     # versions had trouble with output in subdirs
6578     am__obj=sub/conftest.${OBJEXT-o}
6579     am__minus_obj="-o $am__obj"
6580     case $depmode in
6581     gcc)
6582       # This depmode causes a compiler race in universal mode.
6583       test "$am__universal" = false || continue
6584       ;;
6585     nosideeffect)
6586       # after this tag, mechanisms are not by side-effect, so they'll
6587       # only be used when explicitly requested
6588       if test "x$enable_dependency_tracking" = xyes; then
6589         continue
6590       else
6591         break
6592       fi
6593       ;;
6594     msvisualcpp | msvcmsys)
6595       # This compiler won't grok `-c -o', but also, the minuso test has
6596       # not run yet.  These depmodes are late enough in the game, and
6597       # so weak that their functioning should not be impacted.
6598       am__obj=conftest.${OBJEXT-o}
6599       am__minus_obj=
6600       ;;
6601     none) break ;;
6602     esac
6603     if depmode=$depmode \
6604        source=sub/conftest.c object=$am__obj \
6605        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6606        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6607          >/dev/null 2>conftest.err &&
6608        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6609        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6610        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6611        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6612       # icc doesn't choke on unknown options, it will just issue warnings
6613       # or remarks (even with -Werror).  So we grep stderr for any message
6614       # that says an option was ignored or not supported.
6615       # When given -MP, icc 7.0 and 7.1 complain thusly:
6616       #   icc: Command line warning: ignoring option '-M'; no argument required
6617       # The diagnosis changed in icc 8.0:
6618       #   icc: Command line remark: option '-MP' not supported
6619       if (grep 'ignoring option' conftest.err ||
6620           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6621         am_cv_CXX_dependencies_compiler_type=$depmode
6622         break
6623       fi
6624     fi
6625   done
6626
6627   cd ..
6628   rm -rf conftest.dir
6629 else
6630   am_cv_CXX_dependencies_compiler_type=none
6631 fi
6632
6633 fi
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6635 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6636 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6637
6638  if
6639   test "x$enable_dependency_tracking" != xno \
6640   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6641   am__fastdepCXX_TRUE=
6642   am__fastdepCXX_FALSE='#'
6643 else
6644   am__fastdepCXX_TRUE='#'
6645   am__fastdepCXX_FALSE=
6646 fi
6647
6648
6649    case $ac_cv_prog_cc_stdc in #(
6650   no) :
6651     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6652   *) :
6653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6654 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6655 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   ac_cv_prog_cc_c99=no
6659 ac_save_CC=$CC
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662 #include <stdarg.h>
6663 #include <stdbool.h>
6664 #include <stdlib.h>
6665 #include <wchar.h>
6666 #include <stdio.h>
6667
6668 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6669 #define debug(...) fprintf (stderr, __VA_ARGS__)
6670 #define showlist(...) puts (#__VA_ARGS__)
6671 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6672 static void
6673 test_varargs_macros (void)
6674 {
6675   int x = 1234;
6676   int y = 5678;
6677   debug ("Flag");
6678   debug ("X = %d\n", x);
6679   showlist (The first, second, and third items.);
6680   report (x>y, "x is %d but y is %d", x, y);
6681 }
6682
6683 // Check long long types.
6684 #define BIG64 18446744073709551615ull
6685 #define BIG32 4294967295ul
6686 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6687 #if !BIG_OK
6688   your preprocessor is broken;
6689 #endif
6690 #if BIG_OK
6691 #else
6692   your preprocessor is broken;
6693 #endif
6694 static long long int bignum = -9223372036854775807LL;
6695 static unsigned long long int ubignum = BIG64;
6696
6697 struct incomplete_array
6698 {
6699   int datasize;
6700   double data[];
6701 };
6702
6703 struct named_init {
6704   int number;
6705   const wchar_t *name;
6706   double average;
6707 };
6708
6709 typedef const char *ccp;
6710
6711 static inline int
6712 test_restrict (ccp restrict text)
6713 {
6714   // See if C++-style comments work.
6715   // Iterate through items via the restricted pointer.
6716   // Also check for declarations in for loops.
6717   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6718     continue;
6719   return 0;
6720 }
6721
6722 // Check varargs and va_copy.
6723 static void
6724 test_varargs (const char *format, ...)
6725 {
6726   va_list args;
6727   va_start (args, format);
6728   va_list args_copy;
6729   va_copy (args_copy, args);
6730
6731   const char *str;
6732   int number;
6733   float fnumber;
6734
6735   while (*format)
6736     {
6737       switch (*format++)
6738         {
6739         case 's': // string
6740           str = va_arg (args_copy, const char *);
6741           break;
6742         case 'd': // int
6743           number = va_arg (args_copy, int);
6744           break;
6745         case 'f': // float
6746           fnumber = va_arg (args_copy, double);
6747           break;
6748         default:
6749           break;
6750         }
6751     }
6752   va_end (args_copy);
6753   va_end (args);
6754 }
6755
6756 int
6757 main ()
6758 {
6759
6760   // Check bool.
6761   _Bool success = false;
6762
6763   // Check restrict.
6764   if (test_restrict ("String literal") == 0)
6765     success = true;
6766   char *restrict newvar = "Another string";
6767
6768   // Check varargs.
6769   test_varargs ("s, d' f .", "string", 65, 34.234);
6770   test_varargs_macros ();
6771
6772   // Check flexible array members.
6773   struct incomplete_array *ia =
6774     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6775   ia->datasize = 10;
6776   for (int i = 0; i < ia->datasize; ++i)
6777     ia->data[i] = i * 1.234;
6778
6779   // Check named initializers.
6780   struct named_init ni = {
6781     .number = 34,
6782     .name = L"Test wide string",
6783     .average = 543.34343,
6784   };
6785
6786   ni.number = 58;
6787
6788   int dynamic_array[ni.number];
6789   dynamic_array[ni.number - 1] = 543;
6790
6791   // work around unused variable warnings
6792   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6793           || dynamic_array[ni.number - 1] != 543);
6794
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6800 do
6801   CC="$ac_save_CC $ac_arg"
6802   if ac_fn_c_try_compile "$LINENO"; then :
6803   ac_cv_prog_cc_c99=$ac_arg
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext
6806   test "x$ac_cv_prog_cc_c99" != "xno" && break
6807 done
6808 rm -f conftest.$ac_ext
6809 CC=$ac_save_CC
6810
6811 fi
6812 # AC_CACHE_VAL
6813 case "x$ac_cv_prog_cc_c99" in
6814   x)
6815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6816 $as_echo "none needed" >&6; } ;;
6817   xno)
6818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6819 $as_echo "unsupported" >&6; } ;;
6820   *)
6821     CC="$CC $ac_cv_prog_cc_c99"
6822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6823 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6824 esac
6825 if test "x$ac_cv_prog_cc_c99" != xno; then :
6826   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   ac_cv_prog_cc_c89=no
6834 ac_save_CC=$CC
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h.  */
6837 #include <stdarg.h>
6838 #include <stdio.h>
6839 #include <sys/types.h>
6840 #include <sys/stat.h>
6841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6842 struct buf { int x; };
6843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6844 static char *e (p, i)
6845      char **p;
6846      int i;
6847 {
6848   return p[i];
6849 }
6850 static char *f (char * (*g) (char **, int), char **p, ...)
6851 {
6852   char *s;
6853   va_list v;
6854   va_start (v,p);
6855   s = g (p, va_arg (v,int));
6856   va_end (v);
6857   return s;
6858 }
6859
6860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6861    function prototypes and stuff, but not '\xHH' hex character constants.
6862    These don't provoke an error unfortunately, instead are silently treated
6863    as 'x'.  The following induces an error, until -std is added to get
6864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6865    array size at least.  It's necessary to write '\x00'==0 to get something
6866    that's true only with -std.  */
6867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6868
6869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6870    inside strings and character constants.  */
6871 #define FOO(x) 'x'
6872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6873
6874 int test (int i, double x);
6875 struct s1 {int (*f) (int a);};
6876 struct s2 {int (*f) (double a);};
6877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6878 int argc;
6879 char **argv;
6880 int
6881 main ()
6882 {
6883 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6889         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6890 do
6891   CC="$ac_save_CC $ac_arg"
6892   if ac_fn_c_try_compile "$LINENO"; then :
6893   ac_cv_prog_cc_c89=$ac_arg
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext
6896   test "x$ac_cv_prog_cc_c89" != "xno" && break
6897 done
6898 rm -f conftest.$ac_ext
6899 CC=$ac_save_CC
6900
6901 fi
6902 # AC_CACHE_VAL
6903 case "x$ac_cv_prog_cc_c89" in
6904   x)
6905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6906 $as_echo "none needed" >&6; } ;;
6907   xno)
6908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6909 $as_echo "unsupported" >&6; } ;;
6910   *)
6911     CC="$CC $ac_cv_prog_cc_c89"
6912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6914 esac
6915 if test "x$ac_cv_prog_cc_c89" != xno; then :
6916   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6917 else
6918   ac_cv_prog_cc_stdc=no
6919 fi
6920
6921 fi
6922  ;;
6923 esac
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6925 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6926   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6927   $as_echo_n "(cached) " >&6
6928 fi
6929
6930   case $ac_cv_prog_cc_stdc in #(
6931   no) :
6932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933 $as_echo "unsupported" >&6; } ;; #(
6934   '') :
6935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6936 $as_echo "none needed" >&6; } ;; #(
6937   *) :
6938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6939 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6940 esac
6941
6942 ac_ext=c
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6949 # On Suns, sometimes $CPP names a directory.
6950 if test -n "$CPP" && test -d "$CPP"; then
6951   CPP=
6952 fi
6953 if test -z "$CPP"; then
6954   if test "${ac_cv_prog_CPP+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957       # Double quotes because CPP needs to be expanded
6958     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6959     do
6960       ac_preproc_ok=false
6961 for ac_c_preproc_warn_flag in '' yes
6962 do
6963   # Use a header file that comes with gcc, so configuring glibc
6964   # with a fresh cross-compiler works.
6965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966   # <limits.h> exists even on freestanding compilers.
6967   # On the NeXT, cc -E runs the code through the compiler's parser,
6968   # not just through cpp. "Syntax error" is here to catch this case.
6969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 #ifdef __STDC__
6972 # include <limits.h>
6973 #else
6974 # include <assert.h>
6975 #endif
6976                      Syntax error
6977 _ACEOF
6978 if ac_fn_c_try_cpp "$LINENO"; then :
6979
6980 else
6981   # Broken: fails on valid input.
6982 continue
6983 fi
6984 rm -f conftest.err conftest.$ac_ext
6985
6986   # OK, works on sane cases.  Now check whether nonexistent headers
6987   # can be detected and how.
6988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h.  */
6990 #include <ac_nonexistent.h>
6991 _ACEOF
6992 if ac_fn_c_try_cpp "$LINENO"; then :
6993   # Broken: success on invalid input.
6994 continue
6995 else
6996   # Passes both tests.
6997 ac_preproc_ok=:
6998 break
6999 fi
7000 rm -f conftest.err conftest.$ac_ext
7001
7002 done
7003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7004 rm -f conftest.err conftest.$ac_ext
7005 if $ac_preproc_ok; then :
7006   break
7007 fi
7008
7009     done
7010     ac_cv_prog_CPP=$CPP
7011
7012 fi
7013   CPP=$ac_cv_prog_CPP
7014 else
7015   ac_cv_prog_CPP=$CPP
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7018 $as_echo "$CPP" >&6; }
7019 ac_preproc_ok=false
7020 for ac_c_preproc_warn_flag in '' yes
7021 do
7022   # Use a header file that comes with gcc, so configuring glibc
7023   # with a fresh cross-compiler works.
7024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7025   # <limits.h> exists even on freestanding compilers.
7026   # On the NeXT, cc -E runs the code through the compiler's parser,
7027   # not just through cpp. "Syntax error" is here to catch this case.
7028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 #ifdef __STDC__
7031 # include <limits.h>
7032 #else
7033 # include <assert.h>
7034 #endif
7035                      Syntax error
7036 _ACEOF
7037 if ac_fn_c_try_cpp "$LINENO"; then :
7038
7039 else
7040   # Broken: fails on valid input.
7041 continue
7042 fi
7043 rm -f conftest.err conftest.$ac_ext
7044
7045   # OK, works on sane cases.  Now check whether nonexistent headers
7046   # can be detected and how.
7047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h.  */
7049 #include <ac_nonexistent.h>
7050 _ACEOF
7051 if ac_fn_c_try_cpp "$LINENO"; then :
7052   # Broken: success on invalid input.
7053 continue
7054 else
7055   # Passes both tests.
7056 ac_preproc_ok=:
7057 break
7058 fi
7059 rm -f conftest.err conftest.$ac_ext
7060
7061 done
7062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7063 rm -f conftest.err conftest.$ac_ext
7064 if $ac_preproc_ok; then :
7065
7066 else
7067   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7069 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7070 See \`config.log' for more details." "$LINENO" 5; }
7071 fi
7072
7073 ac_ext=c
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7080 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7081 if test "${ac_cv_path_SED+set}" = set; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7085      for ac_i in 1 2 3 4 5 6 7; do
7086        ac_script="$ac_script$as_nl$ac_script"
7087      done
7088      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7089      { ac_script=; unset ac_script;}
7090      if test -z "$SED"; then
7091   ac_path_SED_found=false
7092   # Loop through the user's path and test for each of PROGNAME-LIST
7093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_prog in sed gsed; do
7099     for ac_exec_ext in '' $ac_executable_extensions; do
7100       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7101       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7102 # Check for GNU ac_path_SED and select it if it is found.
7103   # Check for GNU $ac_path_SED
7104 case `"$ac_path_SED" --version 2>&1` in
7105 *GNU*)
7106   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7107 *)
7108   ac_count=0
7109   $as_echo_n 0123456789 >"conftest.in"
7110   while :
7111   do
7112     cat "conftest.in" "conftest.in" >"conftest.tmp"
7113     mv "conftest.tmp" "conftest.in"
7114     cp "conftest.in" "conftest.nl"
7115     $as_echo '' >> "conftest.nl"
7116     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7117     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7118     as_fn_arith $ac_count + 1 && ac_count=$as_val
7119     if test $ac_count -gt ${ac_path_SED_max-0}; then
7120       # Best one so far, save it but keep looking for a better one
7121       ac_cv_path_SED="$ac_path_SED"
7122       ac_path_SED_max=$ac_count
7123     fi
7124     # 10*(2^10) chars as input seems more than enough
7125     test $ac_count -gt 10 && break
7126   done
7127   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7128 esac
7129
7130       $ac_path_SED_found && break 3
7131     done
7132   done
7133   done
7134 IFS=$as_save_IFS
7135   if test -z "$ac_cv_path_SED"; then
7136     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7137   fi
7138 else
7139   ac_cv_path_SED=$SED
7140 fi
7141
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7144 $as_echo "$ac_cv_path_SED" >&6; }
7145  SED="$ac_cv_path_SED"
7146   rm -f conftest.sed
7147
7148 test -z "$SED" && SED=sed
7149 Xsed="$SED -e 1s/^X//"
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7162 $as_echo_n "checking for fgrep... " >&6; }
7163 if test "${ac_cv_path_FGREP+set}" = set; then :
7164   $as_echo_n "(cached) " >&6
7165 else
7166   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7167    then ac_cv_path_FGREP="$GREP -F"
7168    else
7169      if test -z "$FGREP"; then
7170   ac_path_FGREP_found=false
7171   # Loop through the user's path and test for each of PROGNAME-LIST
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_prog in fgrep; do
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7180       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7181 # Check for GNU ac_path_FGREP and select it if it is found.
7182   # Check for GNU $ac_path_FGREP
7183 case `"$ac_path_FGREP" --version 2>&1` in
7184 *GNU*)
7185   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7186 *)
7187   ac_count=0
7188   $as_echo_n 0123456789 >"conftest.in"
7189   while :
7190   do
7191     cat "conftest.in" "conftest.in" >"conftest.tmp"
7192     mv "conftest.tmp" "conftest.in"
7193     cp "conftest.in" "conftest.nl"
7194     $as_echo 'FGREP' >> "conftest.nl"
7195     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7197     as_fn_arith $ac_count + 1 && ac_count=$as_val
7198     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7199       # Best one so far, save it but keep looking for a better one
7200       ac_cv_path_FGREP="$ac_path_FGREP"
7201       ac_path_FGREP_max=$ac_count
7202     fi
7203     # 10*(2^10) chars as input seems more than enough
7204     test $ac_count -gt 10 && break
7205   done
7206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7207 esac
7208
7209       $ac_path_FGREP_found && break 3
7210     done
7211   done
7212   done
7213 IFS=$as_save_IFS
7214   if test -z "$ac_cv_path_FGREP"; then
7215     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7216   fi
7217 else
7218   ac_cv_path_FGREP=$FGREP
7219 fi
7220
7221    fi
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7224 $as_echo "$ac_cv_path_FGREP" >&6; }
7225  FGREP="$ac_cv_path_FGREP"
7226
7227
7228 test -z "$GREP" && GREP=grep
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 # Check whether --with-gnu-ld was given.
7249 if test "${with_gnu_ld+set}" = set; then :
7250   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7251 else
7252   with_gnu_ld=no
7253 fi
7254
7255 ac_prog=ld
7256 if test "$GCC" = yes; then
7257   # Check if gcc -print-prog-name=ld gives a path.
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7259 $as_echo_n "checking for ld used by $CC... " >&6; }
7260   case $host in
7261   *-*-mingw*)
7262     # gcc leaves a trailing carriage return which upsets mingw
7263     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7264   *)
7265     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7266   esac
7267   case $ac_prog in
7268     # Accept absolute paths.
7269     [\\/]* | ?:[\\/]*)
7270       re_direlt='/[^/][^/]*/\.\./'
7271       # Canonicalize the pathname of ld
7272       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7273       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7274         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7275       done
7276       test -z "$LD" && LD="$ac_prog"
7277       ;;
7278   "")
7279     # If it fails, then pretend we aren't using GCC.
7280     ac_prog=ld
7281     ;;
7282   *)
7283     # If it is relative, then search for the first ld in PATH.
7284     with_gnu_ld=unknown
7285     ;;
7286   esac
7287 elif test "$with_gnu_ld" = yes; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7289 $as_echo_n "checking for GNU ld... " >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7292 $as_echo_n "checking for non-GNU ld... " >&6; }
7293 fi
7294 if test "${lt_cv_path_LD+set}" = set; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -z "$LD"; then
7298   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7299   for ac_dir in $PATH; do
7300     IFS="$lt_save_ifs"
7301     test -z "$ac_dir" && ac_dir=.
7302     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7303       lt_cv_path_LD="$ac_dir/$ac_prog"
7304       # Check to see if the program is GNU ld.  I'd rather use --version,
7305       # but apparently some variants of GNU ld only accept -v.
7306       # Break only if it was the GNU/non-GNU ld that we prefer.
7307       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7308       *GNU* | *'with BFD'*)
7309         test "$with_gnu_ld" != no && break
7310         ;;
7311       *)
7312         test "$with_gnu_ld" != yes && break
7313         ;;
7314       esac
7315     fi
7316   done
7317   IFS="$lt_save_ifs"
7318 else
7319   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7320 fi
7321 fi
7322
7323 LD="$lt_cv_path_LD"
7324 if test -n "$LD"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7326 $as_echo "$LD" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7333 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7334 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7338 case `$LD -v 2>&1 </dev/null` in
7339 *GNU* | *'with BFD'*)
7340   lt_cv_prog_gnu_ld=yes
7341   ;;
7342 *)
7343   lt_cv_prog_gnu_ld=no
7344   ;;
7345 esac
7346 fi
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7348 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7349 with_gnu_ld=$lt_cv_prog_gnu_ld
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7361 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7362 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   ac_cv_prog_cc_c99=no
7366 ac_save_CC=$CC
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h.  */
7369 #include <stdarg.h>
7370 #include <stdbool.h>
7371 #include <stdlib.h>
7372 #include <wchar.h>
7373 #include <stdio.h>
7374
7375 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7376 #define debug(...) fprintf (stderr, __VA_ARGS__)
7377 #define showlist(...) puts (#__VA_ARGS__)
7378 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7379 static void
7380 test_varargs_macros (void)
7381 {
7382   int x = 1234;
7383   int y = 5678;
7384   debug ("Flag");
7385   debug ("X = %d\n", x);
7386   showlist (The first, second, and third items.);
7387   report (x>y, "x is %d but y is %d", x, y);
7388 }
7389
7390 // Check long long types.
7391 #define BIG64 18446744073709551615ull
7392 #define BIG32 4294967295ul
7393 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7394 #if !BIG_OK
7395   your preprocessor is broken;
7396 #endif
7397 #if BIG_OK
7398 #else
7399   your preprocessor is broken;
7400 #endif
7401 static long long int bignum = -9223372036854775807LL;
7402 static unsigned long long int ubignum = BIG64;
7403
7404 struct incomplete_array
7405 {
7406   int datasize;
7407   double data[];
7408 };
7409
7410 struct named_init {
7411   int number;
7412   const wchar_t *name;
7413   double average;
7414 };
7415
7416 typedef const char *ccp;
7417
7418 static inline int
7419 test_restrict (ccp restrict text)
7420 {
7421   // See if C++-style comments work.
7422   // Iterate through items via the restricted pointer.
7423   // Also check for declarations in for loops.
7424   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7425     continue;
7426   return 0;
7427 }
7428
7429 // Check varargs and va_copy.
7430 static void
7431 test_varargs (const char *format, ...)
7432 {
7433   va_list args;
7434   va_start (args, format);
7435   va_list args_copy;
7436   va_copy (args_copy, args);
7437
7438   const char *str;
7439   int number;
7440   float fnumber;
7441
7442   while (*format)
7443     {
7444       switch (*format++)
7445         {
7446         case 's': // string
7447           str = va_arg (args_copy, const char *);
7448           break;
7449         case 'd': // int
7450           number = va_arg (args_copy, int);
7451           break;
7452         case 'f': // float
7453           fnumber = va_arg (args_copy, double);
7454           break;
7455         default:
7456           break;
7457         }
7458     }
7459   va_end (args_copy);
7460   va_end (args);
7461 }
7462
7463 int
7464 main ()
7465 {
7466
7467   // Check bool.
7468   _Bool success = false;
7469
7470   // Check restrict.
7471   if (test_restrict ("String literal") == 0)
7472     success = true;
7473   char *restrict newvar = "Another string";
7474
7475   // Check varargs.
7476   test_varargs ("s, d' f .", "string", 65, 34.234);
7477   test_varargs_macros ();
7478
7479   // Check flexible array members.
7480   struct incomplete_array *ia =
7481     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7482   ia->datasize = 10;
7483   for (int i = 0; i < ia->datasize; ++i)
7484     ia->data[i] = i * 1.234;
7485
7486   // Check named initializers.
7487   struct named_init ni = {
7488     .number = 34,
7489     .name = L"Test wide string",
7490     .average = 543.34343,
7491   };
7492
7493   ni.number = 58;
7494
7495   int dynamic_array[ni.number];
7496   dynamic_array[ni.number - 1] = 543;
7497
7498   // work around unused variable warnings
7499   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7500           || dynamic_array[ni.number - 1] != 543);
7501
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7507 do
7508   CC="$ac_save_CC $ac_arg"
7509   if ac_fn_c_try_compile "$LINENO"; then :
7510   ac_cv_prog_cc_c99=$ac_arg
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext
7513   test "x$ac_cv_prog_cc_c99" != "xno" && break
7514 done
7515 rm -f conftest.$ac_ext
7516 CC=$ac_save_CC
7517
7518 fi
7519 # AC_CACHE_VAL
7520 case "x$ac_cv_prog_cc_c99" in
7521   x)
7522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7523 $as_echo "none needed" >&6; } ;;
7524   xno)
7525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7526 $as_echo "unsupported" >&6; } ;;
7527   *)
7528     CC="$CC $ac_cv_prog_cc_c99"
7529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7530 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7531 esac
7532 if test "x$ac_cv_prog_cc_c99" != xno; then :
7533
7534 fi
7535
7536
7537 if test "x$CC" != xcc; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7539 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7542 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7543 fi
7544 set dummy $CC; ac_cc=`$as_echo "$2" |
7545                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7546 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h.  */
7551
7552 int
7553 main ()
7554 {
7555
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 # Make sure it works both with $CC and with simple cc.
7561 # We do the test twice because some compilers refuse to overwrite an
7562 # existing .o file with -o, though they will create one.
7563 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7564 rm -f conftest2.*
7565 if { { case "(($ac_try" in
7566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567   *) ac_try_echo=$ac_try;;
7568 esac
7569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7570 $as_echo "$ac_try_echo"; } >&5
7571   (eval "$ac_try") 2>&5
7572   ac_status=$?
7573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574   test $ac_status = 0; } &&
7575    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577   *) ac_try_echo=$ac_try;;
7578 esac
7579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7580 $as_echo "$ac_try_echo"; } >&5
7581   (eval "$ac_try") 2>&5
7582   ac_status=$?
7583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584   test $ac_status = 0; };
7585 then
7586   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7587   if test "x$CC" != xcc; then
7588     # Test first that cc exists at all.
7589     if { ac_try='cc -c conftest.$ac_ext >&5'
7590   { { case "(($ac_try" in
7591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592   *) ac_try_echo=$ac_try;;
7593 esac
7594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7595 $as_echo "$ac_try_echo"; } >&5
7596   (eval "$ac_try") 2>&5
7597   ac_status=$?
7598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599   test $ac_status = 0; }; }; then
7600       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7601       rm -f conftest2.*
7602       if { { case "(($ac_try" in
7603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604   *) ac_try_echo=$ac_try;;
7605 esac
7606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7607 $as_echo "$ac_try_echo"; } >&5
7608   (eval "$ac_try") 2>&5
7609   ac_status=$?
7610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611   test $ac_status = 0; } &&
7612          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7617 $as_echo "$ac_try_echo"; } >&5
7618   (eval "$ac_try") 2>&5
7619   ac_status=$?
7620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621   test $ac_status = 0; };
7622       then
7623         # cc works too.
7624         :
7625       else
7626         # cc exists but doesn't like -o.
7627         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7628       fi
7629     fi
7630   fi
7631 else
7632   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7633 fi
7634 rm -f core conftest*
7635
7636 fi
7637 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639 $as_echo "yes" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643
7644 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7645
7646 fi
7647
7648 # FIXME: we rely on the cache variable name because
7649 # there is no other way.
7650 set dummy $CC
7651 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7652 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7653 if test "$am_t" != yes; then
7654    # Losing compiler, so override with the script.
7655    # FIXME: It is wrong to rewrite CC.
7656    # But if we don't then we get into trouble of one sort or another.
7657    # A longer-term fix would be to have automake use am__CC in this case,
7658    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7659    CC="$am_aux_dir/compile $CC"
7660 fi
7661
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7664 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7665 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   ac_cv_cflags_warn_all="no, unknown"
7669
7670  ac_ext=c
7671 ac_cpp='$CPP $CPPFLAGS'
7672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675
7676  ac_save_CFLAGS="$CFLAGS"
7677 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"    #
7678 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7679    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h.  */
7681
7682 int
7683 main ()
7684 {
7685 return 0;
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 done
7695  CFLAGS="$ac_save_CFLAGS"
7696  ac_ext=c
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7701
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7705 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7706 case ".$ac_cv_cflags_warn_all" in
7707      .ok|.ok,*)  ;;
7708    .|.no|.no,*)
7709  ;;
7710    *)
7711    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7712    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7713   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7714   ac_status=$?
7715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716   test $ac_status = 0; }
7717    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7718   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7719   ac_status=$?
7720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721   test $ac_status = 0; }
7722                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7723    fi
7724  ;;
7725 esac
7726
7727 $ac_includes_default
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7730 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7731 set x ${MAKE-make}
7732 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   cat >conftest.make <<\_ACEOF
7737 SHELL = /bin/sh
7738 all:
7739         @echo '@@@%%%=$(MAKE)=@@@%%%'
7740 _ACEOF
7741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7743   *@@@%%%=?*=@@@%%%*)
7744     eval ac_cv_prog_make_${ac_make}_set=yes;;
7745   *)
7746     eval ac_cv_prog_make_${ac_make}_set=no;;
7747 esac
7748 rm -f conftest.make
7749 fi
7750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752 $as_echo "yes" >&6; }
7753   SET_MAKE=
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757   SET_MAKE="MAKE=${MAKE-make}"
7758 fi
7759
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7761 $as_echo_n "checking whether ln -s works... " >&6; }
7762 LN_S=$as_ln_s
7763 if test "$LN_S" = "ln -s"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 $as_echo "yes" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7768 $as_echo "no, using $LN_S" >&6; }
7769 fi
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7772 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7773
7774 # Check whether --with-dmalloc was given.
7775 if test "${with_dmalloc+set}" = set; then :
7776   withval=$with_dmalloc; if test "$withval" = yes; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7778 $as_echo "yes" >&6; }
7779
7780 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7781
7782   LIBS="$LIBS -ldmalloc"
7783   LDFLAGS="$LDFLAGS -g"
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7796 $as_echo_n "checking for __attribute__... " >&6; }
7797 if test "${ax_cv___attribute__+set}" = set; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802 #include <stdlib.h>
7803           static void foo(void) __attribute__ ((unused));
7804           static void
7805           foo(void) {
7806               exit(1);
7807           }
7808
7809 int
7810 main ()
7811 {
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818   ax_cv___attribute__=yes
7819 else
7820   ax_cv___attribute__=no
7821
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7827 $as_echo "$ax_cv___attribute__" >&6; }
7828   if test "$ax_cv___attribute__" = "yes"; then
7829
7830 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7831
7832   fi
7833
7834
7835
7836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7837         if test -n "$ac_tool_prefix"; then
7838   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   case $PKG_CONFIG in
7846   [\\/]* | ?:[\\/]*)
7847   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7848   ;;
7849   *)
7850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855     for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862   done
7863 IFS=$as_save_IFS
7864
7865   ;;
7866 esac
7867 fi
7868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7869 if test -n "$PKG_CONFIG"; then
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7871 $as_echo "$PKG_CONFIG" >&6; }
7872 else
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877
7878 fi
7879 if test -z "$ac_cv_path_PKG_CONFIG"; then
7880   ac_pt_PKG_CONFIG=$PKG_CONFIG
7881   # Extract the first word of "pkg-config", so it can be a program name with args.
7882 set dummy pkg-config; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   case $ac_pt_PKG_CONFIG in
7889   [\\/]* | ?:[\\/]*)
7890   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7891   ;;
7892   *)
7893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896   IFS=$as_save_IFS
7897   test -z "$as_dir" && as_dir=.
7898     for ac_exec_ext in '' $ac_executable_extensions; do
7899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902     break 2
7903   fi
7904 done
7905   done
7906 IFS=$as_save_IFS
7907
7908   ;;
7909 esac
7910 fi
7911 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7912 if test -n "$ac_pt_PKG_CONFIG"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7914 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920   if test "x$ac_pt_PKG_CONFIG" = x; then
7921     PKG_CONFIG=""
7922   else
7923     case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929     PKG_CONFIG=$ac_pt_PKG_CONFIG
7930   fi
7931 else
7932   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7933 fi
7934
7935 fi
7936 if test -n "$PKG_CONFIG"; then
7937         _pkg_min_version=0.9.0
7938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7939 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7940         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7941                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942 $as_echo "yes" >&6; }
7943         else
7944                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946                 PKG_CONFIG=""
7947         fi
7948
7949 fi
7950
7951 #
7952 # Enable run-time checking.
7953 #
7954 # Check whether --enable-bounds-checking was given.
7955 if test "${enable_bounds_checking+set}" = set; then :
7956   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7957 else
7958   enable_bounds_checking='no'
7959 fi
7960
7961
7962 if test "$enable_bounds_checking" = yes; then
7963
7964 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7965
7966 fi
7967
7968 #
7969 # Tests for Windows
7970 #
7971
7972
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7974 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7975 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h.  */
7980
7981 int
7982 main ()
7983 {
7984 #ifndef _MSC_VER
7985        choke me
7986 #endif
7987
7988   ;
7989   return 0;
7990 }
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"; then :
7993   ax_compiler_ms=yes
7994 else
7995   ax_compiler_ms=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 ax_cv_c_compiler_ms=$ax_compiler_ms
7999
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8002 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8003
8004 GDI32_LIBS=''
8005 native_win32_build='no'
8006 cygwin_build='no'
8007 case "${host_os}" in
8008     cygwin* )
8009         cygwin_build='yes'
8010         GDI32_LIBS='-lgdi32'
8011     ;;
8012     mingw* )
8013         native_win32_build='yes'
8014         GDI32_LIBS='-lgdi32'
8015     ;;
8016 esac
8017 if test "${GDI32_LIBS}x" != 'x'; then
8018
8019 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8020
8021 fi
8022
8023  if test "${GDI32_LIBS}x" != 'x' ; then
8024   WINGDI32_DELEGATE_TRUE=
8025   WINGDI32_DELEGATE_FALSE='#'
8026 else
8027   WINGDI32_DELEGATE_TRUE='#'
8028   WINGDI32_DELEGATE_FALSE=
8029 fi
8030
8031  if test "${native_win32_build}" = 'yes' ; then
8032   WIN32_NATIVE_BUILD_TRUE=
8033   WIN32_NATIVE_BUILD_FALSE='#'
8034 else
8035   WIN32_NATIVE_BUILD_TRUE='#'
8036   WIN32_NATIVE_BUILD_FALSE=
8037 fi
8038
8039  if test "${cygwin_build}" = 'yes' ; then
8040   CYGWIN_BUILD_TRUE=
8041   CYGWIN_BUILD_FALSE='#'
8042 else
8043   CYGWIN_BUILD_TRUE='#'
8044   CYGWIN_BUILD_FALSE=
8045 fi
8046
8047  if test "x${CC}" = 'xcl.exe' ; then
8048   USING_CL_TRUE=
8049   USING_CL_FALSE='#'
8050 else
8051   USING_CL_TRUE='#'
8052   USING_CL_FALSE=
8053 fi
8054
8055
8056 WinPathScript="${srcdirfull}/winpath.sh"
8057
8058
8059 #
8060 # Compiler flags tweaks
8061 #
8062 if test "${GCC}" != "yes"; then
8063     case "${host}" in
8064         *-*-hpux* )
8065             # aCC: HP ANSI C++ B3910B A.03.34
8066             CFLAGS="${CFLAGS} -Wp,-H30000"
8067             if test -n "${CXXFLAGS}"; then
8068                 CXXFLAGS='-AA'
8069             else
8070                 CXXFLAGS="${CXXFLAGS} -AA"
8071             fi
8072         ;;
8073         *-dec-osf5.* )
8074             # Compaq alphaev68-dec-osf5.1 compiler
8075             if test -n "${CXXFLAGS}"; then
8076                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8077             else
8078                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8079             fi
8080   esac
8081 fi
8082
8083 # Check for lazy-loading.
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8085 $as_echo_n "checking for linker lazyload option... " >&6; }
8086 if test "${im_cv_ld_lazyload+set}" = set; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089
8090 im_cv_ld_lazyload='none'
8091 case "${host}" in
8092   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8093     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8094        im_cv_ld_lazyload='-Wl,-zlazyload'
8095     fi
8096     ;;
8097 esac
8098
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8101 $as_echo "$im_cv_ld_lazyload" >&6; }
8102 if test "${im_cv_ld_lazyload}" != 'none' ; then
8103   if test -z "${LDFLAGS}" ; then
8104     LDFLAGS="${im_cv_ld_lazyload}"
8105   else
8106     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8107   fi
8108 fi
8109
8110 case "$host" in
8111 *darwin* | *-macos10*)
8112     # Check whether --enable-osx-universal-binary was given.
8113 if test "${enable_osx_universal_binary+set}" = set; then :
8114   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8115 else
8116   build_osxuniversal=no
8117 fi
8118
8119
8120   if test "${build_osxuniversal}" != no ; then
8121     if test "$enable_dependency_tracking" != no ; then
8122       as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
8123 Please re-run configure with these options:
8124   --disable-dependency-tracking --enable-osx-universal-binary
8125         " "$LINENO" 5
8126     fi
8127     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8128     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8129     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8130   fi
8131   ;;
8132 esac
8133
8134 # Enable support for threads
8135
8136 # Check whether --with-threads was given.
8137 if test "${with_threads+set}" = set; then :
8138   withval=$with_threads; with_threads=$withval
8139 else
8140   with_threads='yes'
8141 fi
8142
8143
8144 have_threads=no
8145 if test "$with_threads" != 'no'; then
8146
8147
8148
8149 ac_ext=c
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155 ax_pthread_ok=no
8156
8157 # We used to check for pthread.h first, but this fails if pthread.h
8158 # requires special compiler flags (e.g. on True64 or Sequent).
8159 # It gets checked for in the link test anyway.
8160
8161 # First of all, check if the user has set any of the PTHREAD_LIBS,
8162 # etcetera environment variables, and if threads linking works using
8163 # them:
8164 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8165         save_CFLAGS="$CFLAGS"
8166         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8167         save_LIBS="$LIBS"
8168         LIBS="$PTHREAD_LIBS $LIBS"
8169         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8170 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8171         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h.  */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175    Use char because int might match the return type of a GCC
8176    builtin and then its argument prototype would still apply.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char pthread_join ();
8181 int
8182 main ()
8183 {
8184 return pthread_join ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190   ax_pthread_ok=yes
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext \
8193     conftest$ac_exeext conftest.$ac_ext
8194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8195 $as_echo "$ax_pthread_ok" >&6; }
8196         if test x"$ax_pthread_ok" = xno; then
8197                 PTHREAD_LIBS=""
8198                 PTHREAD_CFLAGS=""
8199         fi
8200         LIBS="$save_LIBS"
8201         CFLAGS="$save_CFLAGS"
8202 fi
8203
8204 # We must check for the threads library under a number of different
8205 # names; the ordering is very important because some systems
8206 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8207 # libraries is broken (non-POSIX).
8208
8209 # Create a list of thread flags to try.  Items starting with a "-" are
8210 # C compiler flags, and other items are library names, except for "none"
8211 # which indicates that we try without any flags at all, and "pthread-config"
8212 # which is a program returning the flags for the Pth emulation library.
8213
8214 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8215
8216 # The ordering *is* (sometimes) important.  Some notes on the
8217 # individual items follow:
8218
8219 # pthreads: AIX (must check this before -lpthread)
8220 # none: in case threads are in libc; should be tried before -Kthread and
8221 #       other compiler flags to prevent continual compiler warnings
8222 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8223 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8224 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8225 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8226 # -pthreads: Solaris/gcc
8227 # -mthreads: Mingw32/gcc, Lynx/gcc
8228 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8229 #      doesn't hurt to check since this sometimes defines pthreads too;
8230 #      also defines -D_REENTRANT)
8231 #      ... -mt is also the pthreads flag for HP/aCC
8232 # pthread: Linux, etcetera
8233 # --thread-safe: KAI C++
8234 # pthread-config: use pthread-config program (for GNU Pth library)
8235
8236 case "${host_cpu}-${host_os}" in
8237         *solaris*)
8238
8239         # On Solaris (at least, for some versions), libc contains stubbed
8240         # (non-functional) versions of the pthreads routines, so link-based
8241         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8242         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8243         # a function called by this macro, so we could check for that, but
8244         # who knows whether they'll stub that too in a future libc.)  So,
8245         # we'll just look for -pthreads and -lpthread first:
8246
8247         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8248         ;;
8249
8250         *-darwin*)
8251         acx_pthread_flags="-pthread $acx_pthread_flags"
8252         ;;
8253 esac
8254
8255 if test x"$ax_pthread_ok" = xno; then
8256 for flag in $ax_pthread_flags; do
8257
8258         case $flag in
8259                 none)
8260                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8261 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8262                 ;;
8263
8264                 -*)
8265                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8266 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8267                 PTHREAD_CFLAGS="$flag"
8268                 ;;
8269
8270                 pthread-config)
8271                 # Extract the first word of "pthread-config", so it can be a program name with args.
8272 set dummy pthread-config; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   if test -n "$ax_pthread_config"; then
8279   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288     ac_cv_prog_ax_pthread_config="yes"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295
8296   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8297 fi
8298 fi
8299 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8300 if test -n "$ax_pthread_config"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8302 $as_echo "$ax_pthread_config" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308
8309                 if test x"$ax_pthread_config" = xno; then continue; fi
8310                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8311                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8312                 ;;
8313
8314                 *)
8315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8316 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8317                 PTHREAD_LIBS="-l$flag"
8318                 ;;
8319         esac
8320
8321         save_LIBS="$LIBS"
8322         save_CFLAGS="$CFLAGS"
8323         LIBS="$PTHREAD_LIBS $LIBS"
8324         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8325
8326         # Check for various functions.  We must include pthread.h,
8327         # since some functions may be macros.  (On the Sequent, we
8328         # need a special flag -Kthread to make this header compile.)
8329         # We check for pthread_join because it is in -lpthread on IRIX
8330         # while pthread_create is in libc.  We check for pthread_attr_init
8331         # due to DEC craziness with -lpthreads.  We check for
8332         # pthread_cleanup_push because it is one of the few pthread
8333         # functions on Solaris that doesn't have a non-functional libc stub.
8334         # We try pthread_create on general principles.
8335         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 #include <pthread.h>
8338                      static void routine(void* a) {a=0;}
8339                      static void* start_routine(void* a) {return a;}
8340 int
8341 main ()
8342 {
8343 pthread_t th; pthread_attr_t attr;
8344                      pthread_join(th, 0);
8345                      pthread_attr_init(&attr);
8346                      pthread_cleanup_push(routine, 0);
8347                      pthread_create(&th,0,start_routine,0);
8348                      pthread_cleanup_pop(0);
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_link "$LINENO"; then :
8354   ax_pthread_ok=yes
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext \
8357     conftest$ac_exeext conftest.$ac_ext
8358
8359         LIBS="$save_LIBS"
8360         CFLAGS="$save_CFLAGS"
8361
8362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8363 $as_echo "$ax_pthread_ok" >&6; }
8364         if test "x$ax_pthread_ok" = xyes; then
8365                 break;
8366         fi
8367
8368         PTHREAD_LIBS=""
8369         PTHREAD_CFLAGS=""
8370 done
8371 fi
8372
8373 # Various other checks:
8374 if test "x$ax_pthread_ok" = xyes; then
8375         save_LIBS="$LIBS"
8376         LIBS="$PTHREAD_LIBS $LIBS"
8377         save_CFLAGS="$CFLAGS"
8378         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8379
8380         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8382 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8383         attr_name=unknown
8384         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8385             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387 #include <pthread.h>
8388 int
8389 main ()
8390 {
8391 int attr=$attr; return attr;
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"; then :
8397   attr_name=$attr; break
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400     conftest$ac_exeext conftest.$ac_ext
8401         done
8402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8403 $as_echo "$attr_name" >&6; }
8404         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8405
8406 cat >>confdefs.h <<_ACEOF
8407 #define PTHREAD_CREATE_JOINABLE $attr_name
8408 _ACEOF
8409
8410         fi
8411
8412         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8413 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8414         flag=no
8415         case "${host_cpu}-${host_os}" in
8416             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8417             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8418         esac
8419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8420 $as_echo "${flag}" >&6; }
8421         if test "x$flag" != xno; then
8422             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8423         fi
8424
8425         LIBS="$save_LIBS"
8426         CFLAGS="$save_CFLAGS"
8427
8428         # More AIX lossage: must compile with xlc_r or cc_r
8429         if test x"$GCC" != xyes; then
8430           for ac_prog in xlc_r cc_r
8431 do
8432   # Extract the first word of "$ac_prog", so it can be a program name with args.
8433 set dummy $ac_prog; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   if test -n "$PTHREAD_CC"; then
8440   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8441 else
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8444 do
8445   IFS=$as_save_IFS
8446   test -z "$as_dir" && as_dir=.
8447     for ac_exec_ext in '' $ac_executable_extensions; do
8448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449     ac_cv_prog_PTHREAD_CC="$ac_prog"
8450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451     break 2
8452   fi
8453 done
8454   done
8455 IFS=$as_save_IFS
8456
8457 fi
8458 fi
8459 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8460 if test -n "$PTHREAD_CC"; then
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8462 $as_echo "$PTHREAD_CC" >&6; }
8463 else
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8466 fi
8467
8468
8469   test -n "$PTHREAD_CC" && break
8470 done
8471 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8472
8473         else
8474           PTHREAD_CC=$CC
8475         fi
8476 else
8477         PTHREAD_CC="$CC"
8478 fi
8479
8480
8481
8482
8483
8484 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8485 if test x"$ax_pthread_ok" = xyes; then
8486
8487 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8488
8489         :
8490 else
8491         ax_pthread_ok=no
8492
8493 fi
8494 ac_ext=c
8495 ac_cpp='$CPP $CPPFLAGS'
8496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500
8501     if test "$ax_pthread_ok" = yes; then
8502         have_threads=yes
8503         DEF_THREAD="$PTHREAD_CFLAGS"
8504         CFLAGS="$CFLAGS $DEF_THREAD"
8505         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8506         if test "$CC" != "$PTHREAD_CC"; then
8507             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8508 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8509             CC="$PTHREAD_CC"
8510         fi
8511     fi
8512 fi
8513
8514 # Enable support for OpenMP
8515 if test "$have_threads" != 'yes'; then
8516   ac_cv_prog_c_openmp=unsupported
8517 fi
8518
8519   OPENMP_CFLAGS=
8520   # Check whether --enable-openmp was given.
8521 if test "${enable_openmp+set}" = set; then :
8522   enableval=$enable_openmp;
8523 fi
8524
8525   if test "$enable_openmp" != no; then
8526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8527 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8528 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8529   $as_echo_n "(cached) " >&6
8530 else
8531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h.  */
8533
8534 #ifndef _OPENMP
8535  choke me
8536 #endif
8537 #include <omp.h>
8538 int main () { return omp_get_num_threads (); }
8539
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542   ac_cv_prog_c_openmp='none needed'
8543 else
8544   ac_cv_prog_c_openmp='unsupported'
8545                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8546             ac_save_CFLAGS=$CFLAGS
8547             CFLAGS="$CFLAGS $ac_option"
8548             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h.  */
8550
8551 #ifndef _OPENMP
8552  choke me
8553 #endif
8554 #include <omp.h>
8555 int main () { return omp_get_num_threads (); }
8556
8557 _ACEOF
8558 if ac_fn_c_try_link "$LINENO"; then :
8559   ac_cv_prog_c_openmp=$ac_option
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext \
8562     conftest$ac_exeext conftest.$ac_ext
8563             CFLAGS=$ac_save_CFLAGS
8564             if test "$ac_cv_prog_c_openmp" != unsupported; then
8565               break
8566             fi
8567           done
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570     conftest$ac_exeext conftest.$ac_ext
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8573 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8574     case $ac_cv_prog_c_openmp in #(
8575       "none needed" | unsupported)
8576         ;; #(
8577       *)
8578         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8579     esac
8580   fi
8581
8582
8583 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8584 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8585
8586
8587 # Enable support for OpenCL
8588
8589
8590
8591 ac_ext=c
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597 ax_pthread_ok=no
8598
8599 # We used to check for pthread.h first, but this fails if pthread.h
8600 # requires special compiler flags (e.g. on True64 or Sequent).
8601 # It gets checked for in the link test anyway.
8602
8603 # First of all, check if the user has set any of the PTHREAD_LIBS,
8604 # etcetera environment variables, and if threads linking works using
8605 # them:
8606 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8607         save_CFLAGS="$CFLAGS"
8608         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8609         save_LIBS="$LIBS"
8610         LIBS="$PTHREAD_LIBS $LIBS"
8611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8612 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8613         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h.  */
8615
8616 /* Override any GCC internal prototype to avoid an error.
8617    Use char because int might match the return type of a GCC
8618    builtin and then its argument prototype would still apply.  */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 char pthread_join ();
8623 int
8624 main ()
8625 {
8626 return pthread_join ();
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632   ax_pthread_ok=yes
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635     conftest$ac_exeext conftest.$ac_ext
8636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8637 $as_echo "$ax_pthread_ok" >&6; }
8638         if test x"$ax_pthread_ok" = xno; then
8639                 PTHREAD_LIBS=""
8640                 PTHREAD_CFLAGS=""
8641         fi
8642         LIBS="$save_LIBS"
8643         CFLAGS="$save_CFLAGS"
8644 fi
8645
8646 # We must check for the threads library under a number of different
8647 # names; the ordering is very important because some systems
8648 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8649 # libraries is broken (non-POSIX).
8650
8651 # Create a list of thread flags to try.  Items starting with a "-" are
8652 # C compiler flags, and other items are library names, except for "none"
8653 # which indicates that we try without any flags at all, and "pthread-config"
8654 # which is a program returning the flags for the Pth emulation library.
8655
8656 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8657
8658 # The ordering *is* (sometimes) important.  Some notes on the
8659 # individual items follow:
8660
8661 # pthreads: AIX (must check this before -lpthread)
8662 # none: in case threads are in libc; should be tried before -Kthread and
8663 #       other compiler flags to prevent continual compiler warnings
8664 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8665 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8666 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8667 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8668 # -pthreads: Solaris/gcc
8669 # -mthreads: Mingw32/gcc, Lynx/gcc
8670 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8671 #      doesn't hurt to check since this sometimes defines pthreads too;
8672 #      also defines -D_REENTRANT)
8673 #      ... -mt is also the pthreads flag for HP/aCC
8674 # pthread: Linux, etcetera
8675 # --thread-safe: KAI C++
8676 # pthread-config: use pthread-config program (for GNU Pth library)
8677
8678 case "${host_cpu}-${host_os}" in
8679         *solaris*)
8680
8681         # On Solaris (at least, for some versions), libc contains stubbed
8682         # (non-functional) versions of the pthreads routines, so link-based
8683         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8684         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8685         # a function called by this macro, so we could check for that, but
8686         # who knows whether they'll stub that too in a future libc.)  So,
8687         # we'll just look for -pthreads and -lpthread first:
8688
8689         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8690         ;;
8691
8692         *-darwin*)
8693         acx_pthread_flags="-pthread $acx_pthread_flags"
8694         ;;
8695 esac
8696
8697 if test x"$ax_pthread_ok" = xno; then
8698 for flag in $ax_pthread_flags; do
8699
8700         case $flag in
8701                 none)
8702                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8703 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8704                 ;;
8705
8706                 -*)
8707                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8708 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8709                 PTHREAD_CFLAGS="$flag"
8710                 ;;
8711
8712                 pthread-config)
8713                 # Extract the first word of "pthread-config", so it can be a program name with args.
8714 set dummy pthread-config; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   if test -n "$ax_pthread_config"; then
8721   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730     ac_cv_prog_ax_pthread_config="yes"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737
8738   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8739 fi
8740 fi
8741 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8742 if test -n "$ax_pthread_config"; then
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8744 $as_echo "$ax_pthread_config" >&6; }
8745 else
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8748 fi
8749
8750
8751                 if test x"$ax_pthread_config" = xno; then continue; fi
8752                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8753                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8754                 ;;
8755
8756                 *)
8757                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8758 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8759                 PTHREAD_LIBS="-l$flag"
8760                 ;;
8761         esac
8762
8763         save_LIBS="$LIBS"
8764         save_CFLAGS="$CFLAGS"
8765         LIBS="$PTHREAD_LIBS $LIBS"
8766         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8767
8768         # Check for various functions.  We must include pthread.h,
8769         # since some functions may be macros.  (On the Sequent, we
8770         # need a special flag -Kthread to make this header compile.)
8771         # We check for pthread_join because it is in -lpthread on IRIX
8772         # while pthread_create is in libc.  We check for pthread_attr_init
8773         # due to DEC craziness with -lpthreads.  We check for
8774         # pthread_cleanup_push because it is one of the few pthread
8775         # functions on Solaris that doesn't have a non-functional libc stub.
8776         # We try pthread_create on general principles.
8777         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h.  */
8779 #include <pthread.h>
8780                      static void routine(void* a) {a=0;}
8781                      static void* start_routine(void* a) {return a;}
8782 int
8783 main ()
8784 {
8785 pthread_t th; pthread_attr_t attr;
8786                      pthread_join(th, 0);
8787                      pthread_attr_init(&attr);
8788                      pthread_cleanup_push(routine, 0);
8789                      pthread_create(&th,0,start_routine,0);
8790                      pthread_cleanup_pop(0);
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796   ax_pthread_ok=yes
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext \
8799     conftest$ac_exeext conftest.$ac_ext
8800
8801         LIBS="$save_LIBS"
8802         CFLAGS="$save_CFLAGS"
8803
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8805 $as_echo "$ax_pthread_ok" >&6; }
8806         if test "x$ax_pthread_ok" = xyes; then
8807                 break;
8808         fi
8809
8810         PTHREAD_LIBS=""
8811         PTHREAD_CFLAGS=""
8812 done
8813 fi
8814
8815 # Various other checks:
8816 if test "x$ax_pthread_ok" = xyes; then
8817         save_LIBS="$LIBS"
8818         LIBS="$PTHREAD_LIBS $LIBS"
8819         save_CFLAGS="$CFLAGS"
8820         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8821
8822         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8824 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8825         attr_name=unknown
8826         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8827             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h.  */
8829 #include <pthread.h>
8830 int
8831 main ()
8832 {
8833 int attr=$attr; return attr;
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_link "$LINENO"; then :
8839   attr_name=$attr; break
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext \
8842     conftest$ac_exeext conftest.$ac_ext
8843         done
8844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8845 $as_echo "$attr_name" >&6; }
8846         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8847
8848 cat >>confdefs.h <<_ACEOF
8849 #define PTHREAD_CREATE_JOINABLE $attr_name
8850 _ACEOF
8851
8852         fi
8853
8854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8855 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8856         flag=no
8857         case "${host_cpu}-${host_os}" in
8858             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8859             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8860         esac
8861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8862 $as_echo "${flag}" >&6; }
8863         if test "x$flag" != xno; then
8864             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8865         fi
8866
8867         LIBS="$save_LIBS"
8868         CFLAGS="$save_CFLAGS"
8869
8870         # More AIX lossage: must compile with xlc_r or cc_r
8871         if test x"$GCC" != xyes; then
8872           for ac_prog in xlc_r cc_r
8873 do
8874   # Extract the first word of "$ac_prog", so it can be a program name with args.
8875 set dummy $ac_prog; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   if test -n "$PTHREAD_CC"; then
8882   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887   IFS=$as_save_IFS
8888   test -z "$as_dir" && as_dir=.
8889     for ac_exec_ext in '' $ac_executable_extensions; do
8890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891     ac_cv_prog_PTHREAD_CC="$ac_prog"
8892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893     break 2
8894   fi
8895 done
8896   done
8897 IFS=$as_save_IFS
8898
8899 fi
8900 fi
8901 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8902 if test -n "$PTHREAD_CC"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8904 $as_echo "$PTHREAD_CC" >&6; }
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911   test -n "$PTHREAD_CC" && break
8912 done
8913 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8914
8915         else
8916           PTHREAD_CC=$CC
8917         fi
8918 else
8919         PTHREAD_CC="$CC"
8920 fi
8921
8922
8923
8924
8925
8926 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8927 if test x"$ax_pthread_ok" = xyes; then
8928
8929 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8930
8931         :
8932 else
8933         ax_pthread_ok=no
8934
8935 fi
8936 ac_ext=c
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942
8943
8944 # Check whether --enable-opencl was given.
8945 if test "${enable_opencl+set}" = set; then :
8946   enableval=$enable_opencl; disable_opencl=$enableval
8947 else
8948   disable_opencl='yes'
8949 fi
8950
8951
8952 if test "$disable_opencl" = 'yes'; then
8953   ac_ext=c
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8960 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8961 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h.  */
8966
8967 int
8968 main ()
8969 {
8970 #ifndef _MSC_VER
8971        choke me
8972 #endif
8973
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_compile "$LINENO"; then :
8979   ax_compiler_ms=yes
8980 else
8981   ax_compiler_ms=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 ax_cv_c_compiler_ms=$ax_compiler_ms
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8988 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8989   if test X$ax_compiler_ms = Xno; then :
8990   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8991 fi
8992
8993   ax_save_CPPFLAGS=$CPPFLAGS
8994   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8995   for ac_header in CL/cl.h OpenCL/cl.h
8996 do :
8997   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8999 eval as_val=\$$as_ac_Header
9000    if test "x$as_val" = x""yes; then :
9001   cat >>confdefs.h <<_ACEOF
9002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9003 _ACEOF
9004
9005 fi
9006
9007 done
9008
9009   CPPFLAGS=$ax_save_CPPFLAGS
9010
9011   for ac_header in windows.h
9012 do :
9013   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9014 if test "x$ac_cv_header_windows_h" = x""yes; then :
9015   cat >>confdefs.h <<_ACEOF
9016 #define HAVE_WINDOWS_H 1
9017 _ACEOF
9018
9019 fi
9020
9021 done
9022
9023
9024
9025
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9027 $as_echo_n "checking for OpenCL library... " >&6; }
9028 if test "${ax_cv_check_cl_libcl+set}" = set; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   ax_cv_check_cl_libcl=no
9032   case $host_cpu in
9033     x86_64) ax_check_cl_libdir=lib64 ;;
9034     *)      ax_check_cl_libdir=lib ;;
9035   esac
9036   ax_save_CPPFLAGS=$CPPFLAGS
9037   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9038   ax_save_LIBS=$LIBS
9039   LIBS=""
9040   ax_check_libs="-lOpenCL -lCL -lclparser"
9041   for ax_lib in $ax_check_libs; do
9042     if test X$ax_compiler_ms = Xyes; then :
9043   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9044 else
9045   ax_try_lib=$ax_lib
9046 fi
9047     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050
9051   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9052   #   include <windows.h>
9053   # endif
9054   # ifdef HAVE_CL_CL_H
9055   #   include <CL/cl.h>
9056   # elif defined(HAVE_OPENCL_CL_H)
9057   #   include <OpenCL/cl.h>
9058   # else
9059   #   error no CL.h
9060   # endif
9061 int
9062 main ()
9063 {
9064 clCreateContextFromType(0,0,0,0,0)
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070   ax_cv_check_cl_libcl=$ax_try_lib; break
9071 else
9072   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"
9073                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075
9076   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9077   #   include <windows.h>
9078   # endif
9079   # ifdef HAVE_CL_CL_H
9080   #   include <CL/cl.h>
9081   # elif defined(HAVE_OPENCL_CL_H)
9082   #   include <OpenCL/cl.h>
9083   # else
9084   #   error no CL.h
9085   # endif
9086 int
9087 main ()
9088 {
9089 clCreateContextFromType(0,0,0,0,0)
9090   ;
9091   return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9096 else
9097   ax_check_cl_dylib_flag='-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"
9098                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h.  */
9100
9101   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9102   #   include <windows.h>
9103   # endif
9104   # ifdef HAVE_CL_CL_H
9105   #   include <CL/cl.h>
9106   # elif defined(HAVE_OPENCL_CL_H)
9107   #   include <OpenCL/cl.h>
9108   # else
9109   #   error no CL.h
9110   # endif
9111 int
9112 main ()
9113 {
9114 clCreateContextFromType(0,0,0,0,0)
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123     conftest$ac_exeext conftest.$ac_ext
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext \
9126     conftest$ac_exeext conftest.$ac_ext
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext \
9129     conftest$ac_exeext conftest.$ac_ext
9130   done
9131
9132   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9133   LIBS='-framework OpenCL'
9134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h.  */
9136
9137   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9138   #   include <windows.h>
9139   # endif
9140   # ifdef HAVE_CL_CL_H
9141   #   include <CL/cl.h>
9142   # elif defined(HAVE_OPENCL_CL_H)
9143   #   include <OpenCL/cl.h>
9144   # else
9145   #   error no CL.h
9146   # endif
9147 int
9148 main ()
9149 {
9150 clCreateContextFromType(0,0,0,0,0)
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156   ax_cv_check_cl_libcl=$LIBS
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext \
9159     conftest$ac_exeext conftest.$ac_ext
9160 fi
9161
9162   LIBS=$ax_save_LIBS
9163   CPPFLAGS=$ax_save_CPPFLAGS
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9166 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9167
9168   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9169   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9170 else
9171   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9172 $as_echo "#define _OPENCL 1" >>confdefs.h
9173
9174 fi
9175   ac_ext=c
9176 ac_cpp='$CPP $CPPFLAGS'
9177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180
9181 fi
9182
9183
9184
9185
9186 CFLAGS="$CL_CFLAGS $CFLAGS"
9187 LIBS="$CL_LIBS $LIBS"
9188
9189
9190 ########
9191 #
9192 # Check for large file support
9193 #
9194 ########
9195 # Check whether --enable-largefile was given.
9196 if test "${enable_largefile+set}" = set; then :
9197   enableval=$enable_largefile;
9198 fi
9199
9200 if test "$enable_largefile" != no; then
9201
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9204 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   ac_cv_sys_largefile_CC=no
9208      if test "$GCC" != yes; then
9209        ac_save_CC=$CC
9210        while :; do
9211          # IRIX 6.2 and later do not support large files by default,
9212          # so use the C compiler's -n32 option if that helps.
9213          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h.  */
9215 #include <sys/types.h>
9216  /* Check that off_t can represent 2**63 - 1 correctly.
9217     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218     since some C++ compilers masquerading as C compilers
9219     incorrectly reject 9223372036854775807.  */
9220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222                        && LARGE_OFF_T % 2147483647 == 1)
9223                       ? 1 : -1];
9224 int
9225 main ()
9226 {
9227
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232          if ac_fn_c_try_compile "$LINENO"; then :
9233   break
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext
9236          CC="$CC -n32"
9237          if ac_fn_c_try_compile "$LINENO"; then :
9238   ac_cv_sys_largefile_CC=' -n32'; break
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext
9241          break
9242        done
9243        CC=$ac_save_CC
9244        rm -f conftest.$ac_ext
9245     fi
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9249   if test "$ac_cv_sys_largefile_CC" != no; then
9250     CC=$CC$ac_cv_sys_largefile_CC
9251   fi
9252
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9255 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   while :; do
9259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h.  */
9261 #include <sys/types.h>
9262  /* Check that off_t can represent 2**63 - 1 correctly.
9263     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264     since some C++ compilers masquerading as C compilers
9265     incorrectly reject 9223372036854775807.  */
9266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268                        && LARGE_OFF_T % 2147483647 == 1)
9269                       ? 1 : -1];
9270 int
9271 main ()
9272 {
9273
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279   ac_cv_sys_file_offset_bits=no; break
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h.  */
9284 #define _FILE_OFFSET_BITS 64
9285 #include <sys/types.h>
9286  /* Check that off_t can represent 2**63 - 1 correctly.
9287     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9288     since some C++ compilers masquerading as C compilers
9289     incorrectly reject 9223372036854775807.  */
9290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9291   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9292                        && LARGE_OFF_T % 2147483647 == 1)
9293                       ? 1 : -1];
9294 int
9295 main ()
9296 {
9297
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303   ac_cv_sys_file_offset_bits=64; break
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306   ac_cv_sys_file_offset_bits=unknown
9307   break
9308 done
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9312 case $ac_cv_sys_file_offset_bits in #(
9313   no | unknown) ;;
9314   *)
9315 cat >>confdefs.h <<_ACEOF
9316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9317 _ACEOF
9318 ;;
9319 esac
9320 rm -rf conftest*
9321   if test $ac_cv_sys_file_offset_bits = unknown; then
9322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9324 if test "${ac_cv_sys_large_files+set}" = set; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   while :; do
9328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h.  */
9330 #include <sys/types.h>
9331  /* Check that off_t can represent 2**63 - 1 correctly.
9332     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9333     since some C++ compilers masquerading as C compilers
9334     incorrectly reject 9223372036854775807.  */
9335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9336   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9337                        && LARGE_OFF_T % 2147483647 == 1)
9338                       ? 1 : -1];
9339 int
9340 main ()
9341 {
9342
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348   ac_cv_sys_large_files=no; break
9349 fi
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353 #define _LARGE_FILES 1
9354 #include <sys/types.h>
9355  /* Check that off_t can represent 2**63 - 1 correctly.
9356     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9357     since some C++ compilers masquerading as C compilers
9358     incorrectly reject 9223372036854775807.  */
9359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9360   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9361                        && LARGE_OFF_T % 2147483647 == 1)
9362                       ? 1 : -1];
9363 int
9364 main ()
9365 {
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"; then :
9372   ac_cv_sys_large_files=1; break
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375   ac_cv_sys_large_files=unknown
9376   break
9377 done
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9380 $as_echo "$ac_cv_sys_large_files" >&6; }
9381 case $ac_cv_sys_large_files in #(
9382   no | unknown) ;;
9383   *)
9384 cat >>confdefs.h <<_ACEOF
9385 #define _LARGE_FILES $ac_cv_sys_large_files
9386 _ACEOF
9387 ;;
9388 esac
9389 rm -rf conftest*
9390   fi
9391 fi
9392
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9394 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9395 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   while :; do
9399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401 #include <sys/types.h> /* for off_t */
9402      #include <stdio.h>
9403 int
9404 main ()
9405 {
9406 int (*fp) (FILE *, off_t, int) = fseeko;
9407      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9413   ac_cv_sys_largefile_source=no; break
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext \
9416     conftest$ac_exeext conftest.$ac_ext
9417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h.  */
9419 #define _LARGEFILE_SOURCE 1
9420 #include <sys/types.h> /* for off_t */
9421      #include <stdio.h>
9422 int
9423 main ()
9424 {
9425 int (*fp) (FILE *, off_t, int) = fseeko;
9426      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9427   ;
9428   return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432   ac_cv_sys_largefile_source=1; break
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext \
9435     conftest$ac_exeext conftest.$ac_ext
9436   ac_cv_sys_largefile_source=unknown
9437   break
9438 done
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9441 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9442 case $ac_cv_sys_largefile_source in #(
9443   no | unknown) ;;
9444   *)
9445 cat >>confdefs.h <<_ACEOF
9446 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9447 _ACEOF
9448 ;;
9449 esac
9450 rm -rf conftest*
9451
9452 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9453 # in glibc 2.1.3, but that breaks too many other things.
9454 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9455 if test $ac_cv_sys_largefile_source != unknown; then
9456
9457 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9458
9459 fi
9460
9461 LFS_CPPFLAGS=''
9462 if test "$enable_largefile" != no; then
9463     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9464         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9465     else
9466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9467 $as_echo_n "checking for native large file support... " >&6; }
9468         if test "$cross_compiling" = yes; then :
9469   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9471 as_fn_error "cannot run test program while cross compiling
9472 See \`config.log' for more details." "$LINENO" 5; }
9473 else
9474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h.  */
9476 #include <unistd.h>
9477           main () {
9478           exit(!(sizeof(off_t) == 8));
9479         }
9480 _ACEOF
9481 if ac_fn_c_try_run "$LINENO"; then :
9482   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9483
9484          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9485 $as_echo "yes" >&6; }
9486 else
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9489 fi
9490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491   conftest.$ac_objext conftest.beam conftest.$ac_ext
9492 fi
9493
9494     fi
9495     if test "$ac_cv_sys_large_files" != 'no'; then
9496         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9497     fi
9498     if test "$ac_cv_sys_largefile_source" != 'no'; then
9499         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9500     fi
9501 fi
9502
9503
9504 #
9505 # Configure libtool & libltdl
9506 #
9507 # Configure libtool
9508 enable_dlopen=yes
9509
9510
9511
9512 case `pwd` in
9513   *\ * | *\     *)
9514     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9515 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9516 esac
9517
9518
9519
9520 macro_version='2.2.6b'
9521 macro_revision='1.3017'
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535 ltmain="$ac_aux_dir/ltmain.sh"
9536
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9538 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9539 if test "${lt_cv_path_NM+set}" = set; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   if test -n "$NM"; then
9543   # Let the user override the test.
9544   lt_cv_path_NM="$NM"
9545 else
9546   lt_nm_to_check="${ac_tool_prefix}nm"
9547   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9548     lt_nm_to_check="$lt_nm_to_check nm"
9549   fi
9550   for lt_tmp_nm in $lt_nm_to_check; do
9551     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9552     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9553       IFS="$lt_save_ifs"
9554       test -z "$ac_dir" && ac_dir=.
9555       tmp_nm="$ac_dir/$lt_tmp_nm"
9556       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9557         # Check to see if the nm accepts a BSD-compat flag.
9558         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9559         #   nm: unknown option "B" ignored
9560         # Tru64's nm complains that /dev/null is an invalid object file
9561         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9562         */dev/null* | *'Invalid file or object type'*)
9563           lt_cv_path_NM="$tmp_nm -B"
9564           break
9565           ;;
9566         *)
9567           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9568           */dev/null*)
9569             lt_cv_path_NM="$tmp_nm -p"
9570             break
9571             ;;
9572           *)
9573             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9574             continue # so that we can try to find one that supports BSD flags
9575             ;;
9576           esac
9577           ;;
9578         esac
9579       fi
9580     done
9581     IFS="$lt_save_ifs"
9582   done
9583   : ${lt_cv_path_NM=no}
9584 fi
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9587 $as_echo "$lt_cv_path_NM" >&6; }
9588 if test "$lt_cv_path_NM" != "no"; then
9589   NM="$lt_cv_path_NM"
9590 else
9591   # Didn't find any BSD compatible name lister, look for dumpbin.
9592   if test -n "$ac_tool_prefix"; then
9593   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9594   do
9595     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   if test -n "$DUMPBIN"; then
9603   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9604 else
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9607 do
9608   IFS=$as_save_IFS
9609   test -z "$as_dir" && as_dir=.
9610     for ac_exec_ext in '' $ac_executable_extensions; do
9611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614     break 2
9615   fi
9616 done
9617   done
9618 IFS=$as_save_IFS
9619
9620 fi
9621 fi
9622 DUMPBIN=$ac_cv_prog_DUMPBIN
9623 if test -n "$DUMPBIN"; then
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9625 $as_echo "$DUMPBIN" >&6; }
9626 else
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9629 fi
9630
9631
9632     test -n "$DUMPBIN" && break
9633   done
9634 fi
9635 if test -z "$DUMPBIN"; then
9636   ac_ct_DUMPBIN=$DUMPBIN
9637   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9638 do
9639   # Extract the first word of "$ac_prog", so it can be a program name with args.
9640 set dummy $ac_prog; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   if test -n "$ac_ct_DUMPBIN"; then
9647   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652   IFS=$as_save_IFS
9653   test -z "$as_dir" && as_dir=.
9654     for ac_exec_ext in '' $ac_executable_extensions; do
9655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658     break 2
9659   fi
9660 done
9661   done
9662 IFS=$as_save_IFS
9663
9664 fi
9665 fi
9666 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9667 if test -n "$ac_ct_DUMPBIN"; then
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9669 $as_echo "$ac_ct_DUMPBIN" >&6; }
9670 else
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676   test -n "$ac_ct_DUMPBIN" && break
9677 done
9678
9679   if test "x$ac_ct_DUMPBIN" = x; then
9680     DUMPBIN=":"
9681   else
9682     case $cross_compiling:$ac_tool_warned in
9683 yes:)
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9686 ac_tool_warned=yes ;;
9687 esac
9688     DUMPBIN=$ac_ct_DUMPBIN
9689   fi
9690 fi
9691
9692
9693   if test "$DUMPBIN" != ":"; then
9694     NM="$DUMPBIN"
9695   fi
9696 fi
9697 test -z "$NM" && NM=nm
9698
9699
9700
9701
9702
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9705 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9706 if test "${lt_cv_nm_interface+set}" = set; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   lt_cv_nm_interface="BSD nm"
9710   echo "int some_variable = 0;" > conftest.$ac_ext
9711   (eval echo "\"\$as_me:9711: $ac_compile\"" >&5)
9712   (eval "$ac_compile" 2>conftest.err)
9713   cat conftest.err >&5
9714   (eval echo "\"\$as_me:9714: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9715   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716   cat conftest.err >&5
9717   (eval echo "\"\$as_me:9717: output\"" >&5)
9718   cat conftest.out >&5
9719   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720     lt_cv_nm_interface="MS dumpbin"
9721   fi
9722   rm -f conftest*
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9725 $as_echo "$lt_cv_nm_interface" >&6; }
9726
9727 # find the maximum length of command line arguments
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9729 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9730 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9731   $as_echo_n "(cached) " >&6
9732 else
9733     i=0
9734   teststring="ABCD"
9735
9736   case $build_os in
9737   msdosdjgpp*)
9738     # On DJGPP, this test can blow up pretty badly due to problems in libc
9739     # (any single argument exceeding 2000 bytes causes a buffer overrun
9740     # during glob expansion).  Even if it were fixed, the result of this
9741     # check would be larger than it should be.
9742     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9743     ;;
9744
9745   gnu*)
9746     # Under GNU Hurd, this test is not required because there is
9747     # no limit to the length of command line arguments.
9748     # Libtool will interpret -1 as no limit whatsoever
9749     lt_cv_sys_max_cmd_len=-1;
9750     ;;
9751
9752   cygwin* | mingw* | cegcc*)
9753     # On Win9x/ME, this test blows up -- it succeeds, but takes
9754     # about 5 minutes as the teststring grows exponentially.
9755     # Worse, since 9x/ME are not pre-emptively multitasking,
9756     # you end up with a "frozen" computer, even though with patience
9757     # the test eventually succeeds (with a max line length of 256k).
9758     # Instead, let's just punt: use the minimum linelength reported by
9759     # all of the supported platforms: 8192 (on NT/2K/XP).
9760     lt_cv_sys_max_cmd_len=8192;
9761     ;;
9762
9763   amigaos*)
9764     # On AmigaOS with pdksh, this test takes hours, literally.
9765     # So we just punt and use a minimum line length of 8192.
9766     lt_cv_sys_max_cmd_len=8192;
9767     ;;
9768
9769   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9770     # This has been around since 386BSD, at least.  Likely further.
9771     if test -x /sbin/sysctl; then
9772       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9773     elif test -x /usr/sbin/sysctl; then
9774       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9775     else
9776       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9777     fi
9778     # And add a safety zone
9779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9781     ;;
9782
9783   interix*)
9784     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9785     lt_cv_sys_max_cmd_len=196608
9786     ;;
9787
9788   osf*)
9789     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9790     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9791     # nice to cause kernel panics so lets avoid the loop below.
9792     # First set a reasonable default.
9793     lt_cv_sys_max_cmd_len=16384
9794     #
9795     if test -x /sbin/sysconfig; then
9796       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9797         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9798       esac
9799     fi
9800     ;;
9801   sco3.2v5*)
9802     lt_cv_sys_max_cmd_len=102400
9803     ;;
9804   sysv5* | sco5v6* | sysv4.2uw2*)
9805     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9806     if test -n "$kargmax"; then
9807       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9808     else
9809       lt_cv_sys_max_cmd_len=32768
9810     fi
9811     ;;
9812   *)
9813     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9814     if test -n "$lt_cv_sys_max_cmd_len"; then
9815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9817     else
9818       # Make teststring a little bigger before we do anything with it.
9819       # a 1K string should be a reasonable start.
9820       for i in 1 2 3 4 5 6 7 8 ; do
9821         teststring=$teststring$teststring
9822       done
9823       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9824       # If test is not a shell built-in, we'll probably end up computing a
9825       # maximum length that is only half of the actual maximum length, but
9826       # we can't tell.
9827       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9828                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9829               test $i != 17 # 1/2 MB should be enough
9830       do
9831         i=`expr $i + 1`
9832         teststring=$teststring$teststring
9833       done
9834       # Only check the string length outside the loop.
9835       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9836       teststring=
9837       # Add a significant safety factor because C++ compilers can tack on
9838       # massive amounts of additional arguments before passing them to the
9839       # linker.  It appears as though 1/2 is a usable value.
9840       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9841     fi
9842     ;;
9843   esac
9844
9845 fi
9846
9847 if test -n $lt_cv_sys_max_cmd_len ; then
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9850 else
9851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9852 $as_echo "none" >&6; }
9853 fi
9854 max_cmd_len=$lt_cv_sys_max_cmd_len
9855
9856
9857
9858
9859
9860
9861 : ${CP="cp -f"}
9862 : ${MV="mv -f"}
9863 : ${RM="rm -f"}
9864
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9866 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9867 # Try some XSI features
9868 xsi_shell=no
9869 ( _lt_dummy="a/b/c"
9870   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9871       = c,a/b,, \
9872     && eval 'test $(( 1 + 1 )) -eq 2 \
9873     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9874   && xsi_shell=yes
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9876 $as_echo "$xsi_shell" >&6; }
9877
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9880 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9881 lt_shell_append=no
9882 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9883     >/dev/null 2>&1 \
9884   && lt_shell_append=yes
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9886 $as_echo "$lt_shell_append" >&6; }
9887
9888
9889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9890   lt_unset=unset
9891 else
9892   lt_unset=false
9893 fi
9894
9895
9896
9897
9898
9899 # test EBCDIC or ASCII
9900 case `echo X|tr X '\101'` in
9901  A) # ASCII based system
9902     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9903   lt_SP2NL='tr \040 \012'
9904   lt_NL2SP='tr \015\012 \040\040'
9905   ;;
9906  *) # EBCDIC based system
9907   lt_SP2NL='tr \100 \n'
9908   lt_NL2SP='tr \r\n \100\100'
9909   ;;
9910 esac
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9922 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   lt_cv_ld_reload_flag='-r'
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9929 reload_flag=$lt_cv_ld_reload_flag
9930 case $reload_flag in
9931 "" | " "*) ;;
9932 *) reload_flag=" $reload_flag" ;;
9933 esac
9934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9935 case $host_os in
9936   darwin*)
9937     if test "$GCC" = yes; then
9938       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9939     else
9940       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9941     fi
9942     ;;
9943 esac
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953 if test -n "$ac_tool_prefix"; then
9954   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9959   $as_echo_n "(cached) " >&6
9960 else
9961   if test -n "$OBJDUMP"; then
9962   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9963 else
9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 for as_dir in $PATH
9966 do
9967   IFS=$as_save_IFS
9968   test -z "$as_dir" && as_dir=.
9969     for ac_exec_ext in '' $ac_executable_extensions; do
9970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973     break 2
9974   fi
9975 done
9976   done
9977 IFS=$as_save_IFS
9978
9979 fi
9980 fi
9981 OBJDUMP=$ac_cv_prog_OBJDUMP
9982 if test -n "$OBJDUMP"; then
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9984 $as_echo "$OBJDUMP" >&6; }
9985 else
9986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9988 fi
9989
9990
9991 fi
9992 if test -z "$ac_cv_prog_OBJDUMP"; then
9993   ac_ct_OBJDUMP=$OBJDUMP
9994   # Extract the first word of "objdump", so it can be a program name with args.
9995 set dummy objdump; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   if test -n "$ac_ct_OBJDUMP"; then
10002   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10003 else
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10006 do
10007   IFS=$as_save_IFS
10008   test -z "$as_dir" && as_dir=.
10009     for ac_exec_ext in '' $ac_executable_extensions; do
10010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013     break 2
10014   fi
10015 done
10016   done
10017 IFS=$as_save_IFS
10018
10019 fi
10020 fi
10021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10022 if test -n "$ac_ct_OBJDUMP"; then
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10024 $as_echo "$ac_ct_OBJDUMP" >&6; }
10025 else
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030   if test "x$ac_ct_OBJDUMP" = x; then
10031     OBJDUMP="false"
10032   else
10033     case $cross_compiling:$ac_tool_warned in
10034 yes:)
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037 ac_tool_warned=yes ;;
10038 esac
10039     OBJDUMP=$ac_ct_OBJDUMP
10040   fi
10041 else
10042   OBJDUMP="$ac_cv_prog_OBJDUMP"
10043 fi
10044
10045 test -z "$OBJDUMP" && OBJDUMP=objdump
10046
10047
10048
10049
10050
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10053 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10054 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   lt_cv_file_magic_cmd='$MAGIC_CMD'
10058 lt_cv_file_magic_test_file=
10059 lt_cv_deplibs_check_method='unknown'
10060 # Need to set the preceding variable on all platforms that support
10061 # interlibrary dependencies.
10062 # 'none' -- dependencies not supported.
10063 # `unknown' -- same as none, but documents that we really don't know.
10064 # 'pass_all' -- all dependencies passed with no checks.
10065 # 'test_compile' -- check by making test program.
10066 # 'file_magic [[regex]]' -- check by looking for files in library path
10067 # which responds to the $file_magic_cmd with a given extended regex.
10068 # If you have `file' or equivalent on your system and you're not sure
10069 # whether `pass_all' will *always* work, you probably want this one.
10070
10071 case $host_os in
10072 aix[4-9]*)
10073   lt_cv_deplibs_check_method=pass_all
10074   ;;
10075
10076 beos*)
10077   lt_cv_deplibs_check_method=pass_all
10078   ;;
10079
10080 bsdi[45]*)
10081   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10082   lt_cv_file_magic_cmd='/usr/bin/file -L'
10083   lt_cv_file_magic_test_file=/shlib/libc.so
10084   ;;
10085
10086 cygwin*)
10087   # func_win32_libid is a shell function defined in ltmain.sh
10088   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10089   lt_cv_file_magic_cmd='func_win32_libid'
10090   ;;
10091
10092 mingw* | pw32*)
10093   # Base MSYS/MinGW do not provide the 'file' command needed by
10094   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10095   # unless we find 'file', for example because we are cross-compiling.
10096   if ( file / ) >/dev/null 2>&1; then
10097     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10098     lt_cv_file_magic_cmd='func_win32_libid'
10099   else
10100     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10101     lt_cv_file_magic_cmd='$OBJDUMP -f'
10102   fi
10103   ;;
10104
10105 cegcc)
10106   # use the weaker test based on 'objdump'. See mingw*.
10107   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10108   lt_cv_file_magic_cmd='$OBJDUMP -f'
10109   ;;
10110
10111 darwin* | rhapsody*)
10112   lt_cv_deplibs_check_method=pass_all
10113   ;;
10114
10115 freebsd* | dragonfly*)
10116   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10117     case $host_cpu in
10118     i*86 )
10119       # Not sure whether the presence of OpenBSD here was a mistake.
10120       # Let's accept both of them until this is cleared up.
10121       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10122       lt_cv_file_magic_cmd=/usr/bin/file
10123       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10124       ;;
10125     esac
10126   else
10127     lt_cv_deplibs_check_method=pass_all
10128   fi
10129   ;;
10130
10131 gnu*)
10132   lt_cv_deplibs_check_method=pass_all
10133   ;;
10134
10135 hpux10.20* | hpux11*)
10136   lt_cv_file_magic_cmd=/usr/bin/file
10137   case $host_cpu in
10138   ia64*)
10139     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10140     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10141     ;;
10142   hppa*64*)
10143     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10144     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10145     ;;
10146   *)
10147     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10148     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10149     ;;
10150   esac
10151   ;;
10152
10153 interix[3-9]*)
10154   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10155   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10156   ;;
10157
10158 irix5* | irix6* | nonstopux*)
10159   case $LD in
10160   *-32|*"-32 ") libmagic=32-bit;;
10161   *-n32|*"-n32 ") libmagic=N32;;
10162   *-64|*"-64 ") libmagic=64-bit;;
10163   *) libmagic=never-match;;
10164   esac
10165   lt_cv_deplibs_check_method=pass_all
10166   ;;
10167
10168 # This must be Linux ELF.
10169 linux* | k*bsd*-gnu)
10170   lt_cv_deplibs_check_method=pass_all
10171   ;;
10172
10173 netbsd*)
10174   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10176   else
10177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10178   fi
10179   ;;
10180
10181 newos6*)
10182   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10183   lt_cv_file_magic_cmd=/usr/bin/file
10184   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10185   ;;
10186
10187 *nto* | *qnx*)
10188   lt_cv_deplibs_check_method=pass_all
10189   ;;
10190
10191 openbsd*)
10192   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10194   else
10195     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10196   fi
10197   ;;
10198
10199 osf3* | osf4* | osf5*)
10200   lt_cv_deplibs_check_method=pass_all
10201   ;;
10202
10203 rdos*)
10204   lt_cv_deplibs_check_method=pass_all
10205   ;;
10206
10207 solaris*)
10208   lt_cv_deplibs_check_method=pass_all
10209   ;;
10210
10211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10212   lt_cv_deplibs_check_method=pass_all
10213   ;;
10214
10215 sysv4 | sysv4.3*)
10216   case $host_vendor in
10217   motorola)
10218     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]'
10219     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10220     ;;
10221   ncr)
10222     lt_cv_deplibs_check_method=pass_all
10223     ;;
10224   sequent)
10225     lt_cv_file_magic_cmd='/bin/file'
10226     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10227     ;;
10228   sni)
10229     lt_cv_file_magic_cmd='/bin/file'
10230     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10231     lt_cv_file_magic_test_file=/lib/libc.so
10232     ;;
10233   siemens)
10234     lt_cv_deplibs_check_method=pass_all
10235     ;;
10236   pc)
10237     lt_cv_deplibs_check_method=pass_all
10238     ;;
10239   esac
10240   ;;
10241
10242 tpf*)
10243   lt_cv_deplibs_check_method=pass_all
10244   ;;
10245 esac
10246
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10249 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10250 file_magic_cmd=$lt_cv_file_magic_cmd
10251 deplibs_check_method=$lt_cv_deplibs_check_method
10252 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 if test -n "$ac_tool_prefix"; then
10266   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10267 set dummy ${ac_tool_prefix}ar; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if test "${ac_cv_prog_AR+set}" = set; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   if test -n "$AR"; then
10274   ac_cv_prog_AR="$AR" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279   IFS=$as_save_IFS
10280   test -z "$as_dir" && as_dir=.
10281     for ac_exec_ext in '' $ac_executable_extensions; do
10282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283     ac_cv_prog_AR="${ac_tool_prefix}ar"
10284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285     break 2
10286   fi
10287 done
10288   done
10289 IFS=$as_save_IFS
10290
10291 fi
10292 fi
10293 AR=$ac_cv_prog_AR
10294 if test -n "$AR"; then
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10296 $as_echo "$AR" >&6; }
10297 else
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 fi
10301
10302
10303 fi
10304 if test -z "$ac_cv_prog_AR"; then
10305   ac_ct_AR=$AR
10306   # Extract the first word of "ar", so it can be a program name with args.
10307 set dummy ar; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   if test -n "$ac_ct_AR"; then
10314   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319   IFS=$as_save_IFS
10320   test -z "$as_dir" && as_dir=.
10321     for ac_exec_ext in '' $ac_executable_extensions; do
10322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323     ac_cv_prog_ac_ct_AR="ar"
10324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325     break 2
10326   fi
10327 done
10328   done
10329 IFS=$as_save_IFS
10330
10331 fi
10332 fi
10333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10334 if test -n "$ac_ct_AR"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10336 $as_echo "$ac_ct_AR" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342   if test "x$ac_ct_AR" = x; then
10343     AR="false"
10344   else
10345     case $cross_compiling:$ac_tool_warned in
10346 yes:)
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349 ac_tool_warned=yes ;;
10350 esac
10351     AR=$ac_ct_AR
10352   fi
10353 else
10354   AR="$ac_cv_prog_AR"
10355 fi
10356
10357 test -z "$AR" && AR=ar
10358 test -z "$AR_FLAGS" && AR_FLAGS=cru
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370 if test -n "$ac_tool_prefix"; then
10371   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10372 set dummy ${ac_tool_prefix}strip; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_STRIP+set}" = set; then :
10376   $as_echo_n "(cached) " >&6
10377 else
10378   if test -n "$STRIP"; then
10379   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384   IFS=$as_save_IFS
10385   test -z "$as_dir" && as_dir=.
10386     for ac_exec_ext in '' $ac_executable_extensions; do
10387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390     break 2
10391   fi
10392 done
10393   done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 STRIP=$ac_cv_prog_STRIP
10399 if test -n "$STRIP"; then
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10401 $as_echo "$STRIP" >&6; }
10402 else
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408 fi
10409 if test -z "$ac_cv_prog_STRIP"; then
10410   ac_ct_STRIP=$STRIP
10411   # Extract the first word of "strip", so it can be a program name with args.
10412 set dummy strip; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   if test -n "$ac_ct_STRIP"; then
10419   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10420 else
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10423 do
10424   IFS=$as_save_IFS
10425   test -z "$as_dir" && as_dir=.
10426     for ac_exec_ext in '' $ac_executable_extensions; do
10427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428     ac_cv_prog_ac_ct_STRIP="strip"
10429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430     break 2
10431   fi
10432 done
10433   done
10434 IFS=$as_save_IFS
10435
10436 fi
10437 fi
10438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10439 if test -n "$ac_ct_STRIP"; then
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10441 $as_echo "$ac_ct_STRIP" >&6; }
10442 else
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10445 fi
10446
10447   if test "x$ac_ct_STRIP" = x; then
10448     STRIP=":"
10449   else
10450     case $cross_compiling:$ac_tool_warned in
10451 yes:)
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454 ac_tool_warned=yes ;;
10455 esac
10456     STRIP=$ac_ct_STRIP
10457   fi
10458 else
10459   STRIP="$ac_cv_prog_STRIP"
10460 fi
10461
10462 test -z "$STRIP" && STRIP=:
10463
10464
10465
10466
10467
10468
10469 if test -n "$ac_tool_prefix"; then
10470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   if test -n "$RANLIB"; then
10478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483   IFS=$as_save_IFS
10484   test -z "$as_dir" && as_dir=.
10485     for ac_exec_ext in '' $ac_executable_extensions; do
10486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489     break 2
10490   fi
10491 done
10492   done
10493 IFS=$as_save_IFS
10494
10495 fi
10496 fi
10497 RANLIB=$ac_cv_prog_RANLIB
10498 if test -n "$RANLIB"; then
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10500 $as_echo "$RANLIB" >&6; }
10501 else
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 fi
10505
10506
10507 fi
10508 if test -z "$ac_cv_prog_RANLIB"; then
10509   ac_ct_RANLIB=$RANLIB
10510   # Extract the first word of "ranlib", so it can be a program name with args.
10511 set dummy ranlib; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   if test -n "$ac_ct_RANLIB"; then
10518   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10519 else
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10522 do
10523   IFS=$as_save_IFS
10524   test -z "$as_dir" && as_dir=.
10525     for ac_exec_ext in '' $ac_executable_extensions; do
10526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527     ac_cv_prog_ac_ct_RANLIB="ranlib"
10528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529     break 2
10530   fi
10531 done
10532   done
10533 IFS=$as_save_IFS
10534
10535 fi
10536 fi
10537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10538 if test -n "$ac_ct_RANLIB"; then
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10540 $as_echo "$ac_ct_RANLIB" >&6; }
10541 else
10542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10544 fi
10545
10546   if test "x$ac_ct_RANLIB" = x; then
10547     RANLIB=":"
10548   else
10549     case $cross_compiling:$ac_tool_warned in
10550 yes:)
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10553 ac_tool_warned=yes ;;
10554 esac
10555     RANLIB=$ac_ct_RANLIB
10556   fi
10557 else
10558   RANLIB="$ac_cv_prog_RANLIB"
10559 fi
10560
10561 test -z "$RANLIB" && RANLIB=:
10562
10563
10564
10565
10566
10567
10568 # Determine commands to create old-style static archives.
10569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10570 old_postinstall_cmds='chmod 644 $oldlib'
10571 old_postuninstall_cmds=
10572
10573 if test -n "$RANLIB"; then
10574   case $host_os in
10575   openbsd*)
10576     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10577     ;;
10578   *)
10579     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10580     ;;
10581   esac
10582   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10583 fi
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618 # If no C compiler was specified, use CC.
10619 LTCC=${LTCC-"$CC"}
10620
10621 # If no C compiler flags were specified, use CFLAGS.
10622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10623
10624 # Allow CC to be a program name with arguments.
10625 compiler=$CC
10626
10627
10628 # Check for command to grab the raw symbol name followed by C symbol from nm.
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10630 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10632   $as_echo_n "(cached) " >&6
10633 else
10634
10635 # These are sane defaults that work on at least a few old systems.
10636 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10637
10638 # Character class describing NM global symbol codes.
10639 symcode='[BCDEGRST]'
10640
10641 # Regexp to match symbols that can be accessed directly from C.
10642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10643
10644 # Define system-specific variables.
10645 case $host_os in
10646 aix*)
10647   symcode='[BCDT]'
10648   ;;
10649 cygwin* | mingw* | pw32* | cegcc*)
10650   symcode='[ABCDGISTW]'
10651   ;;
10652 hpux*)
10653   if test "$host_cpu" = ia64; then
10654     symcode='[ABCDEGRST]'
10655   fi
10656   ;;
10657 irix* | nonstopux*)
10658   symcode='[BCDEGRST]'
10659   ;;
10660 osf*)
10661   symcode='[BCDEGQRST]'
10662   ;;
10663 solaris*)
10664   symcode='[BDRT]'
10665   ;;
10666 sco3.2v5*)
10667   symcode='[DT]'
10668   ;;
10669 sysv4.2uw2*)
10670   symcode='[DT]'
10671   ;;
10672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10673   symcode='[ABDT]'
10674   ;;
10675 sysv4)
10676   symcode='[DFNSTU]'
10677   ;;
10678 esac
10679
10680 # If we're using GNU nm, then use its standard symbol codes.
10681 case `$NM -V 2>&1` in
10682 *GNU* | *'with BFD'*)
10683   symcode='[ABCDGIRSTW]' ;;
10684 esac
10685
10686 # Transform an extracted symbol line into a proper C declaration.
10687 # Some systems (esp. on ia64) link data and code symbols differently,
10688 # so use this general approach.
10689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10690
10691 # Transform an extracted symbol line into symbol name and symbol address
10692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10693 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'"
10694
10695 # Handle CRLF in mingw tool chain
10696 opt_cr=
10697 case $build_os in
10698 mingw*)
10699   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10700   ;;
10701 esac
10702
10703 # Try without a prefix underscore, then with it.
10704 for ac_symprfx in "" "_"; do
10705
10706   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10707   symxfrm="\\1 $ac_symprfx\\2 \\2"
10708
10709   # Write the raw and C identifiers.
10710   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10711     # Fake it for dumpbin and say T for any non-static function
10712     # and D for any global variable.
10713     # Also find C++ and __fastcall symbols from MSVC++,
10714     # which start with @ or ?.
10715     lt_cv_sys_global_symbol_pipe="$AWK '"\
10716 "     {last_section=section; section=\$ 3};"\
10717 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10718 "     \$ 0!~/External *\|/{next};"\
10719 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10720 "     {if(hide[section]) next};"\
10721 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10722 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10723 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10724 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10725 "     ' prfx=^$ac_symprfx"
10726   else
10727     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10728   fi
10729
10730   # Check to see that the pipe works correctly.
10731   pipe_works=no
10732
10733   rm -f conftest*
10734   cat > conftest.$ac_ext <<_LT_EOF
10735 #ifdef __cplusplus
10736 extern "C" {
10737 #endif
10738 char nm_test_var;
10739 void nm_test_func(void);
10740 void nm_test_func(void){}
10741 #ifdef __cplusplus
10742 }
10743 #endif
10744 int main(){nm_test_var='a';nm_test_func();return(0);}
10745 _LT_EOF
10746
10747   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10748   (eval $ac_compile) 2>&5
10749   ac_status=$?
10750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10751   test $ac_status = 0; }; then
10752     # Now try to grab the symbols.
10753     nlist=conftest.nm
10754     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10755   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10756   ac_status=$?
10757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758   test $ac_status = 0; } && test -s "$nlist"; then
10759       # Try sorting and uniquifying the output.
10760       if sort "$nlist" | uniq > "$nlist"T; then
10761         mv -f "$nlist"T "$nlist"
10762       else
10763         rm -f "$nlist"T
10764       fi
10765
10766       # Make sure that we snagged all the symbols we need.
10767       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10768         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10769           cat <<_LT_EOF > conftest.$ac_ext
10770 #ifdef __cplusplus
10771 extern "C" {
10772 #endif
10773
10774 _LT_EOF
10775           # Now generate the symbol file.
10776           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10777
10778           cat <<_LT_EOF >> conftest.$ac_ext
10779
10780 /* The mapping between symbol names and symbols.  */
10781 const struct {
10782   const char *name;
10783   void       *address;
10784 }
10785 lt__PROGRAM__LTX_preloaded_symbols[] =
10786 {
10787   { "@PROGRAM@", (void *) 0 },
10788 _LT_EOF
10789           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10790           cat <<\_LT_EOF >> conftest.$ac_ext
10791   {0, (void *) 0}
10792 };
10793
10794 /* This works around a problem in FreeBSD linker */
10795 #ifdef FREEBSD_WORKAROUND
10796 static const void *lt_preloaded_setup() {
10797   return lt__PROGRAM__LTX_preloaded_symbols;
10798 }
10799 #endif
10800
10801 #ifdef __cplusplus
10802 }
10803 #endif
10804 _LT_EOF
10805           # Now try linking the two files.
10806           mv conftest.$ac_objext conftstm.$ac_objext
10807           lt_save_LIBS="$LIBS"
10808           lt_save_CFLAGS="$CFLAGS"
10809           LIBS="conftstm.$ac_objext"
10810           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10811           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10812   (eval $ac_link) 2>&5
10813   ac_status=$?
10814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10816             pipe_works=yes
10817           fi
10818           LIBS="$lt_save_LIBS"
10819           CFLAGS="$lt_save_CFLAGS"
10820         else
10821           echo "cannot find nm_test_func in $nlist" >&5
10822         fi
10823       else
10824         echo "cannot find nm_test_var in $nlist" >&5
10825       fi
10826     else
10827       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10828     fi
10829   else
10830     echo "$progname: failed program was:" >&5
10831     cat conftest.$ac_ext >&5
10832   fi
10833   rm -rf conftest* conftst*
10834
10835   # Do not use the global_symbol_pipe unless it works.
10836   if test "$pipe_works" = yes; then
10837     break
10838   else
10839     lt_cv_sys_global_symbol_pipe=
10840   fi
10841 done
10842
10843 fi
10844
10845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10846   lt_cv_sys_global_symbol_to_cdecl=
10847 fi
10848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10850 $as_echo "failed" >&6; }
10851 else
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10853 $as_echo "ok" >&6; }
10854 fi
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 # Check whether --enable-libtool-lock was given.
10878 if test "${enable_libtool_lock+set}" = set; then :
10879   enableval=$enable_libtool_lock;
10880 fi
10881
10882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10883
10884 # Some flags need to be propagated to the compiler or linker for good
10885 # libtool support.
10886 case $host in
10887 ia64-*-hpux*)
10888   # Find out which ABI we are using.
10889   echo 'int i;' > conftest.$ac_ext
10890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10891   (eval $ac_compile) 2>&5
10892   ac_status=$?
10893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10894   test $ac_status = 0; }; then
10895     case `/usr/bin/file conftest.$ac_objext` in
10896       *ELF-32*)
10897         HPUX_IA64_MODE="32"
10898         ;;
10899       *ELF-64*)
10900         HPUX_IA64_MODE="64"
10901         ;;
10902     esac
10903   fi
10904   rm -rf conftest*
10905   ;;
10906 *-*-irix6*)
10907   # Find out which ABI we are using.
10908   echo '#line 10908 "configure"' > conftest.$ac_ext
10909   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10910   (eval $ac_compile) 2>&5
10911   ac_status=$?
10912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10913   test $ac_status = 0; }; then
10914     if test "$lt_cv_prog_gnu_ld" = yes; then
10915       case `/usr/bin/file conftest.$ac_objext` in
10916         *32-bit*)
10917           LD="${LD-ld} -melf32bsmip"
10918           ;;
10919         *N32*)
10920           LD="${LD-ld} -melf32bmipn32"
10921           ;;
10922         *64-bit*)
10923           LD="${LD-ld} -melf64bmip"
10924         ;;
10925       esac
10926     else
10927       case `/usr/bin/file conftest.$ac_objext` in
10928         *32-bit*)
10929           LD="${LD-ld} -32"
10930           ;;
10931         *N32*)
10932           LD="${LD-ld} -n32"
10933           ;;
10934         *64-bit*)
10935           LD="${LD-ld} -64"
10936           ;;
10937       esac
10938     fi
10939   fi
10940   rm -rf conftest*
10941   ;;
10942
10943 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10944 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10945   # Find out which ABI we are using.
10946   echo 'int i;' > conftest.$ac_ext
10947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10948   (eval $ac_compile) 2>&5
10949   ac_status=$?
10950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10951   test $ac_status = 0; }; then
10952     case `/usr/bin/file conftest.o` in
10953       *32-bit*)
10954         case $host in
10955           x86_64-*kfreebsd*-gnu)
10956             LD="${LD-ld} -m elf_i386_fbsd"
10957             ;;
10958           x86_64-*linux*)
10959             LD="${LD-ld} -m elf_i386"
10960             ;;
10961           ppc64-*linux*|powerpc64-*linux*)
10962             LD="${LD-ld} -m elf32ppclinux"
10963             ;;
10964           s390x-*linux*)
10965             LD="${LD-ld} -m elf_s390"
10966             ;;
10967           sparc64-*linux*)
10968             LD="${LD-ld} -m elf32_sparc"
10969             ;;
10970         esac
10971         ;;
10972       *64-bit*)
10973         case $host in
10974           x86_64-*kfreebsd*-gnu)
10975             LD="${LD-ld} -m elf_x86_64_fbsd"
10976             ;;
10977           x86_64-*linux*)
10978             LD="${LD-ld} -m elf_x86_64"
10979             ;;
10980           ppc*-*linux*|powerpc*-*linux*)
10981             LD="${LD-ld} -m elf64ppc"
10982             ;;
10983           s390*-*linux*|s390*-*tpf*)
10984             LD="${LD-ld} -m elf64_s390"
10985             ;;
10986           sparc*-*linux*)
10987             LD="${LD-ld} -m elf64_sparc"
10988             ;;
10989         esac
10990         ;;
10991     esac
10992   fi
10993   rm -rf conftest*
10994   ;;
10995
10996 *-*-sco3.2v5*)
10997   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10998   SAVE_CFLAGS="$CFLAGS"
10999   CFLAGS="$CFLAGS -belf"
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11001 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11002 if test "${lt_cv_cc_needs_belf+set}" = set; then :
11003   $as_echo_n "(cached) " >&6
11004 else
11005   ac_ext=c
11006 ac_cpp='$CPP $CPPFLAGS'
11007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010
11011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014 int
11015 main ()
11016 {
11017
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023   lt_cv_cc_needs_belf=yes
11024 else
11025   lt_cv_cc_needs_belf=no
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028     conftest$ac_exeext conftest.$ac_ext
11029      ac_ext=c
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034
11035 fi
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11037 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11038   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11039     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11040     CFLAGS="$SAVE_CFLAGS"
11041   fi
11042   ;;
11043 sparc*-*solaris*)
11044   # Find out which ABI we are using.
11045   echo 'int i;' > conftest.$ac_ext
11046   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11047   (eval $ac_compile) 2>&5
11048   ac_status=$?
11049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050   test $ac_status = 0; }; then
11051     case `/usr/bin/file conftest.o` in
11052     *64-bit*)
11053       case $lt_cv_prog_gnu_ld in
11054       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11055       *)
11056         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11057           LD="${LD-ld} -64"
11058         fi
11059         ;;
11060       esac
11061       ;;
11062     esac
11063   fi
11064   rm -rf conftest*
11065   ;;
11066 esac
11067
11068 need_locks="$enable_libtool_lock"
11069
11070
11071   case $host_os in
11072     rhapsody* | darwin*)
11073     if test -n "$ac_tool_prefix"; then
11074   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11075 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   if test -n "$DSYMUTIL"; then
11082   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   test -z "$as_dir" && as_dir=.
11089     for ac_exec_ext in '' $ac_executable_extensions; do
11090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093     break 2
11094   fi
11095 done
11096   done
11097 IFS=$as_save_IFS
11098
11099 fi
11100 fi
11101 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11102 if test -n "$DSYMUTIL"; then
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11104 $as_echo "$DSYMUTIL" >&6; }
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 fi
11112 if test -z "$ac_cv_prog_DSYMUTIL"; then
11113   ac_ct_DSYMUTIL=$DSYMUTIL
11114   # Extract the first word of "dsymutil", so it can be a program name with args.
11115 set dummy dsymutil; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   if test -n "$ac_ct_DSYMUTIL"; then
11122   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11123 else
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11126 do
11127   IFS=$as_save_IFS
11128   test -z "$as_dir" && as_dir=.
11129     for ac_exec_ext in '' $ac_executable_extensions; do
11130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133     break 2
11134   fi
11135 done
11136   done
11137 IFS=$as_save_IFS
11138
11139 fi
11140 fi
11141 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11142 if test -n "$ac_ct_DSYMUTIL"; then
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11144 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 fi
11149
11150   if test "x$ac_ct_DSYMUTIL" = x; then
11151     DSYMUTIL=":"
11152   else
11153     case $cross_compiling:$ac_tool_warned in
11154 yes:)
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11157 ac_tool_warned=yes ;;
11158 esac
11159     DSYMUTIL=$ac_ct_DSYMUTIL
11160   fi
11161 else
11162   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11163 fi
11164
11165     if test -n "$ac_tool_prefix"; then
11166   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11167 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169 $as_echo_n "checking for $ac_word... " >&6; }
11170 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11171   $as_echo_n "(cached) " >&6
11172 else
11173   if test -n "$NMEDIT"; then
11174   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   test -z "$as_dir" && as_dir=.
11181     for ac_exec_ext in '' $ac_executable_extensions; do
11182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185     break 2
11186   fi
11187 done
11188   done
11189 IFS=$as_save_IFS
11190
11191 fi
11192 fi
11193 NMEDIT=$ac_cv_prog_NMEDIT
11194 if test -n "$NMEDIT"; then
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11196 $as_echo "$NMEDIT" >&6; }
11197 else
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201
11202
11203 fi
11204 if test -z "$ac_cv_prog_NMEDIT"; then
11205   ac_ct_NMEDIT=$NMEDIT
11206   # Extract the first word of "nmedit", so it can be a program name with args.
11207 set dummy nmedit; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   if test -n "$ac_ct_NMEDIT"; then
11214   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230
11231 fi
11232 fi
11233 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11234 if test -n "$ac_ct_NMEDIT"; then
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11236 $as_echo "$ac_ct_NMEDIT" >&6; }
11237 else
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241
11242   if test "x$ac_ct_NMEDIT" = x; then
11243     NMEDIT=":"
11244   else
11245     case $cross_compiling:$ac_tool_warned in
11246 yes:)
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11249 ac_tool_warned=yes ;;
11250 esac
11251     NMEDIT=$ac_ct_NMEDIT
11252   fi
11253 else
11254   NMEDIT="$ac_cv_prog_NMEDIT"
11255 fi
11256
11257     if test -n "$ac_tool_prefix"; then
11258   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11259 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if test "${ac_cv_prog_LIPO+set}" = set; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   if test -n "$LIPO"; then
11266   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11267 else
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11270 do
11271   IFS=$as_save_IFS
11272   test -z "$as_dir" && as_dir=.
11273     for ac_exec_ext in '' $ac_executable_extensions; do
11274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11275     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277     break 2
11278   fi
11279 done
11280   done
11281 IFS=$as_save_IFS
11282
11283 fi
11284 fi
11285 LIPO=$ac_cv_prog_LIPO
11286 if test -n "$LIPO"; then
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11288 $as_echo "$LIPO" >&6; }
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 fi
11293
11294
11295 fi
11296 if test -z "$ac_cv_prog_LIPO"; then
11297   ac_ct_LIPO=$LIPO
11298   # Extract the first word of "lipo", so it can be a program name with args.
11299 set dummy lipo; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   if test -n "$ac_ct_LIPO"; then
11306   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11307 else
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311   IFS=$as_save_IFS
11312   test -z "$as_dir" && as_dir=.
11313     for ac_exec_ext in '' $ac_executable_extensions; do
11314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315     ac_cv_prog_ac_ct_LIPO="lipo"
11316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320   done
11321 IFS=$as_save_IFS
11322
11323 fi
11324 fi
11325 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11326 if test -n "$ac_ct_LIPO"; then
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11328 $as_echo "$ac_ct_LIPO" >&6; }
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333
11334   if test "x$ac_ct_LIPO" = x; then
11335     LIPO=":"
11336   else
11337     case $cross_compiling:$ac_tool_warned in
11338 yes:)
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11341 ac_tool_warned=yes ;;
11342 esac
11343     LIPO=$ac_ct_LIPO
11344   fi
11345 else
11346   LIPO="$ac_cv_prog_LIPO"
11347 fi
11348
11349     if test -n "$ac_tool_prefix"; then
11350   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11351 set dummy ${ac_tool_prefix}otool; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11355   $as_echo_n "(cached) " >&6
11356 else
11357   if test -n "$OTOOL"; then
11358   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11362 do
11363   IFS=$as_save_IFS
11364   test -z "$as_dir" && as_dir=.
11365     for ac_exec_ext in '' $ac_executable_extensions; do
11366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11369     break 2
11370   fi
11371 done
11372   done
11373 IFS=$as_save_IFS
11374
11375 fi
11376 fi
11377 OTOOL=$ac_cv_prog_OTOOL
11378 if test -n "$OTOOL"; then
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11380 $as_echo "$OTOOL" >&6; }
11381 else
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11384 fi
11385
11386
11387 fi
11388 if test -z "$ac_cv_prog_OTOOL"; then
11389   ac_ct_OTOOL=$OTOOL
11390   # Extract the first word of "otool", so it can be a program name with args.
11391 set dummy otool; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11395   $as_echo_n "(cached) " >&6
11396 else
11397   if test -n "$ac_ct_OTOOL"; then
11398   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11399 else
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11402 do
11403   IFS=$as_save_IFS
11404   test -z "$as_dir" && as_dir=.
11405     for ac_exec_ext in '' $ac_executable_extensions; do
11406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11407     ac_cv_prog_ac_ct_OTOOL="otool"
11408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409     break 2
11410   fi
11411 done
11412   done
11413 IFS=$as_save_IFS
11414
11415 fi
11416 fi
11417 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11418 if test -n "$ac_ct_OTOOL"; then
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11420 $as_echo "$ac_ct_OTOOL" >&6; }
11421 else
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11424 fi
11425
11426   if test "x$ac_ct_OTOOL" = x; then
11427     OTOOL=":"
11428   else
11429     case $cross_compiling:$ac_tool_warned in
11430 yes:)
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11433 ac_tool_warned=yes ;;
11434 esac
11435     OTOOL=$ac_ct_OTOOL
11436   fi
11437 else
11438   OTOOL="$ac_cv_prog_OTOOL"
11439 fi
11440
11441     if test -n "$ac_tool_prefix"; then
11442   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11443 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   if test -n "$OTOOL64"; then
11450   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455   IFS=$as_save_IFS
11456   test -z "$as_dir" && as_dir=.
11457     for ac_exec_ext in '' $ac_executable_extensions; do
11458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461     break 2
11462   fi
11463 done
11464   done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 OTOOL64=$ac_cv_prog_OTOOL64
11470 if test -n "$OTOOL64"; then
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11472 $as_echo "$OTOOL64" >&6; }
11473 else
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 fi
11480 if test -z "$ac_cv_prog_OTOOL64"; then
11481   ac_ct_OTOOL64=$OTOOL64
11482   # Extract the first word of "otool64", so it can be a program name with args.
11483 set dummy otool64; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   if test -n "$ac_ct_OTOOL64"; then
11490   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11491 else
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11494 do
11495   IFS=$as_save_IFS
11496   test -z "$as_dir" && as_dir=.
11497     for ac_exec_ext in '' $ac_executable_extensions; do
11498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499     ac_cv_prog_ac_ct_OTOOL64="otool64"
11500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501     break 2
11502   fi
11503 done
11504   done
11505 IFS=$as_save_IFS
11506
11507 fi
11508 fi
11509 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11510 if test -n "$ac_ct_OTOOL64"; then
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11512 $as_echo "$ac_ct_OTOOL64" >&6; }
11513 else
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 fi
11517
11518   if test "x$ac_ct_OTOOL64" = x; then
11519     OTOOL64=":"
11520   else
11521     case $cross_compiling:$ac_tool_warned in
11522 yes:)
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525 ac_tool_warned=yes ;;
11526 esac
11527     OTOOL64=$ac_ct_OTOOL64
11528   fi
11529 else
11530   OTOOL64="$ac_cv_prog_OTOOL64"
11531 fi
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11560 $as_echo_n "checking for -single_module linker flag... " >&6; }
11561 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564   lt_cv_apple_cc_single_mod=no
11565       if test -z "${LT_MULTI_MODULE}"; then
11566         # By default we will add the -single_module flag. You can override
11567         # by either setting the environment variable LT_MULTI_MODULE
11568         # non-empty at configure time, or by adding -multi_module to the
11569         # link flags.
11570         rm -rf libconftest.dylib*
11571         echo "int foo(void){return 1;}" > conftest.c
11572         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11573 -dynamiclib -Wl,-single_module conftest.c" >&5
11574         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11575           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11576         _lt_result=$?
11577         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11578           lt_cv_apple_cc_single_mod=yes
11579         else
11580           cat conftest.err >&5
11581         fi
11582         rm -rf libconftest.dylib*
11583         rm -f conftest.*
11584       fi
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11587 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11590 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   lt_cv_ld_exported_symbols_list=no
11594       save_LDFLAGS=$LDFLAGS
11595       echo "_main" > conftest.sym
11596       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11597       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h.  */
11599
11600 int
11601 main ()
11602 {
11603
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609   lt_cv_ld_exported_symbols_list=yes
11610 else
11611   lt_cv_ld_exported_symbols_list=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614     conftest$ac_exeext conftest.$ac_ext
11615         LDFLAGS="$save_LDFLAGS"
11616
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11620     case $host_os in
11621     rhapsody* | darwin1.[012])
11622       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11623     darwin1.*)
11624       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11625     darwin*) # darwin 5.x on
11626       # if running on 10.5 or later, the deployment target defaults
11627       # to the OS version, if on x86, and 10.4, the deployment
11628       # target defaults to 10.4. Don't you love it?
11629       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11630         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11631           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11632         10.[012]*)
11633           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11634         10.*)
11635           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11636       esac
11637     ;;
11638   esac
11639     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11640       _lt_dar_single_mod='$single_module'
11641     fi
11642     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11643       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11644     else
11645       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11646     fi
11647     if test "$DSYMUTIL" != ":"; then
11648       _lt_dsymutil='~$DSYMUTIL $lib || :'
11649     else
11650       _lt_dsymutil=
11651     fi
11652     ;;
11653   esac
11654
11655 for ac_header in dlfcn.h
11656 do :
11657   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11658 "
11659 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11660   cat >>confdefs.h <<_ACEOF
11661 #define HAVE_DLFCN_H 1
11662 _ACEOF
11663
11664 fi
11665
11666 done
11667
11668
11669
11670 ac_ext=cpp
11671 ac_cpp='$CXXCPP $CPPFLAGS'
11672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11675 if test -z "$CXX"; then
11676   if test -n "$CCC"; then
11677     CXX=$CCC
11678   else
11679     if test -n "$ac_tool_prefix"; then
11680   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11681   do
11682     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_prog_CXX+set}" = set; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   if test -n "$CXX"; then
11690   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695   IFS=$as_save_IFS
11696   test -z "$as_dir" && as_dir=.
11697     for ac_exec_ext in '' $ac_executable_extensions; do
11698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701     break 2
11702   fi
11703 done
11704   done
11705 IFS=$as_save_IFS
11706
11707 fi
11708 fi
11709 CXX=$ac_cv_prog_CXX
11710 if test -n "$CXX"; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11712 $as_echo "$CXX" >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718
11719     test -n "$CXX" && break
11720   done
11721 fi
11722 if test -z "$CXX"; then
11723   ac_ct_CXX=$CXX
11724   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11725 do
11726   # Extract the first word of "$ac_prog", so it can be a program name with args.
11727 set dummy $ac_prog; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   if test -n "$ac_ct_CXX"; then
11734   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11735 else
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11738 do
11739   IFS=$as_save_IFS
11740   test -z "$as_dir" && as_dir=.
11741     for ac_exec_ext in '' $ac_executable_extensions; do
11742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743     ac_cv_prog_ac_ct_CXX="$ac_prog"
11744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745     break 2
11746   fi
11747 done
11748   done
11749 IFS=$as_save_IFS
11750
11751 fi
11752 fi
11753 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11754 if test -n "$ac_ct_CXX"; then
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11756 $as_echo "$ac_ct_CXX" >&6; }
11757 else
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760 fi
11761
11762
11763   test -n "$ac_ct_CXX" && break
11764 done
11765
11766   if test "x$ac_ct_CXX" = x; then
11767     CXX="g++"
11768   else
11769     case $cross_compiling:$ac_tool_warned in
11770 yes:)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773 ac_tool_warned=yes ;;
11774 esac
11775     CXX=$ac_ct_CXX
11776   fi
11777 fi
11778
11779   fi
11780 fi
11781 # Provide some information about the compiler.
11782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11783 set X $ac_compile
11784 ac_compiler=$2
11785 for ac_option in --version -v -V -qversion; do
11786   { { ac_try="$ac_compiler $ac_option >&5"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11792 $as_echo "$ac_try_echo"; } >&5
11793   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11794   ac_status=$?
11795   if test -s conftest.err; then
11796     sed '10a\
11797 ... rest of stderr output deleted ...
11798          10q' conftest.err >conftest.er1
11799     cat conftest.er1 >&5
11800   fi
11801   rm -f conftest.er1 conftest.err
11802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803   test $ac_status = 0; }
11804 done
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11807 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11808 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h.  */
11813
11814 int
11815 main ()
11816 {
11817 #ifndef __GNUC__
11818        choke me
11819 #endif
11820
11821   ;
11822   return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_cxx_try_compile "$LINENO"; then :
11826   ac_compiler_gnu=yes
11827 else
11828   ac_compiler_gnu=no
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11832
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11835 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11836 if test $ac_compiler_gnu = yes; then
11837   GXX=yes
11838 else
11839   GXX=
11840 fi
11841 ac_test_CXXFLAGS=${CXXFLAGS+set}
11842 ac_save_CXXFLAGS=$CXXFLAGS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11844 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11845 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11849    ac_cxx_werror_flag=yes
11850    ac_cv_prog_cxx_g=no
11851    CXXFLAGS="-g"
11852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h.  */
11854
11855 int
11856 main ()
11857 {
11858
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_cxx_try_compile "$LINENO"; then :
11864   ac_cv_prog_cxx_g=yes
11865 else
11866   CXXFLAGS=""
11867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869
11870 int
11871 main ()
11872 {
11873
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_cxx_try_compile "$LINENO"; then :
11879
11880 else
11881   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11882          CXXFLAGS="-g"
11883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885
11886 int
11887 main ()
11888 {
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_cxx_try_compile "$LINENO"; then :
11895   ac_cv_prog_cxx_g=yes
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11905 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11906 if test "$ac_test_CXXFLAGS" = set; then
11907   CXXFLAGS=$ac_save_CXXFLAGS
11908 elif test $ac_cv_prog_cxx_g = yes; then
11909   if test "$GXX" = yes; then
11910     CXXFLAGS="-g -O2"
11911   else
11912     CXXFLAGS="-g"
11913   fi
11914 else
11915   if test "$GXX" = yes; then
11916     CXXFLAGS="-O2"
11917   else
11918     CXXFLAGS=
11919   fi
11920 fi
11921 ac_ext=c
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927 depcc="$CXX"  am_compiler_list=
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11930 $as_echo_n "checking dependency style of $depcc... " >&6; }
11931 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11935   # We make a subdir and do the tests there.  Otherwise we can end up
11936   # making bogus files that we don't know about and never remove.  For
11937   # instance it was reported that on HP-UX the gcc test will end up
11938   # making a dummy file named `D' -- because `-MD' means `put the output
11939   # in D'.
11940   mkdir conftest.dir
11941   # Copy depcomp to subdir because otherwise we won't find it if we're
11942   # using a relative directory.
11943   cp "$am_depcomp" conftest.dir
11944   cd conftest.dir
11945   # We will build objects and dependencies in a subdirectory because
11946   # it helps to detect inapplicable dependency modes.  For instance
11947   # both Tru64's cc and ICC support -MD to output dependencies as a
11948   # side effect of compilation, but ICC will put the dependencies in
11949   # the current directory while Tru64 will put them in the object
11950   # directory.
11951   mkdir sub
11952
11953   am_cv_CXX_dependencies_compiler_type=none
11954   if test "$am_compiler_list" = ""; then
11955      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11956   fi
11957   am__universal=false
11958   case " $depcc " in #(
11959      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11960      esac
11961
11962   for depmode in $am_compiler_list; do
11963     # Setup a source with many dependencies, because some compilers
11964     # like to wrap large dependency lists on column 80 (with \), and
11965     # we should not choose a depcomp mode which is confused by this.
11966     #
11967     # We need to recreate these files for each test, as the compiler may
11968     # overwrite some of them when testing with obscure command lines.
11969     # This happens at least with the AIX C compiler.
11970     : > sub/conftest.c
11971     for i in 1 2 3 4 5 6; do
11972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11973       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11974       # Solaris 8's {/usr,}/bin/sh.
11975       touch sub/conftst$i.h
11976     done
11977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11978
11979     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11980     # mode.  It turns out that the SunPro C++ compiler does not properly
11981     # handle `-M -o', and we need to detect this.  Also, some Intel
11982     # versions had trouble with output in subdirs
11983     am__obj=sub/conftest.${OBJEXT-o}
11984     am__minus_obj="-o $am__obj"
11985     case $depmode in
11986     gcc)
11987       # This depmode causes a compiler race in universal mode.
11988       test "$am__universal" = false || continue
11989       ;;
11990     nosideeffect)
11991       # after this tag, mechanisms are not by side-effect, so they'll
11992       # only be used when explicitly requested
11993       if test "x$enable_dependency_tracking" = xyes; then
11994         continue
11995       else
11996         break
11997       fi
11998       ;;
11999     msvisualcpp | msvcmsys)
12000       # This compiler won't grok `-c -o', but also, the minuso test has
12001       # not run yet.  These depmodes are late enough in the game, and
12002       # so weak that their functioning should not be impacted.
12003       am__obj=conftest.${OBJEXT-o}
12004       am__minus_obj=
12005       ;;
12006     none) break ;;
12007     esac
12008     if depmode=$depmode \
12009        source=sub/conftest.c object=$am__obj \
12010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12011        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12012          >/dev/null 2>conftest.err &&
12013        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12014        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12015        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12016        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12017       # icc doesn't choke on unknown options, it will just issue warnings
12018       # or remarks (even with -Werror).  So we grep stderr for any message
12019       # that says an option was ignored or not supported.
12020       # When given -MP, icc 7.0 and 7.1 complain thusly:
12021       #   icc: Command line warning: ignoring option '-M'; no argument required
12022       # The diagnosis changed in icc 8.0:
12023       #   icc: Command line remark: option '-MP' not supported
12024       if (grep 'ignoring option' conftest.err ||
12025           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12026         am_cv_CXX_dependencies_compiler_type=$depmode
12027         break
12028       fi
12029     fi
12030   done
12031
12032   cd ..
12033   rm -rf conftest.dir
12034 else
12035   am_cv_CXX_dependencies_compiler_type=none
12036 fi
12037
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12040 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12041 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12042
12043  if
12044   test "x$enable_dependency_tracking" != xno \
12045   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12046   am__fastdepCXX_TRUE=
12047   am__fastdepCXX_FALSE='#'
12048 else
12049   am__fastdepCXX_TRUE='#'
12050   am__fastdepCXX_FALSE=
12051 fi
12052
12053
12054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12055     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12056     (test "X$CXX" != "Xg++"))) ; then
12057   ac_ext=cpp
12058 ac_cpp='$CXXCPP $CPPFLAGS'
12059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12063 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12064 if test -z "$CXXCPP"; then
12065   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068       # Double quotes because CXXCPP needs to be expanded
12069     for CXXCPP in "$CXX -E" "/lib/cpp"
12070     do
12071       ac_preproc_ok=false
12072 for ac_cxx_preproc_warn_flag in '' yes
12073 do
12074   # Use a header file that comes with gcc, so configuring glibc
12075   # with a fresh cross-compiler works.
12076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077   # <limits.h> exists even on freestanding compilers.
12078   # On the NeXT, cc -E runs the code through the compiler's parser,
12079   # not just through cpp. "Syntax error" is here to catch this case.
12080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082 #ifdef __STDC__
12083 # include <limits.h>
12084 #else
12085 # include <assert.h>
12086 #endif
12087                      Syntax error
12088 _ACEOF
12089 if ac_fn_cxx_try_cpp "$LINENO"; then :
12090
12091 else
12092   # Broken: fails on valid input.
12093 continue
12094 fi
12095 rm -f conftest.err conftest.$ac_ext
12096
12097   # OK, works on sane cases.  Now check whether nonexistent headers
12098   # can be detected and how.
12099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h.  */
12101 #include <ac_nonexistent.h>
12102 _ACEOF
12103 if ac_fn_cxx_try_cpp "$LINENO"; then :
12104   # Broken: success on invalid input.
12105 continue
12106 else
12107   # Passes both tests.
12108 ac_preproc_ok=:
12109 break
12110 fi
12111 rm -f conftest.err conftest.$ac_ext
12112
12113 done
12114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12115 rm -f conftest.err conftest.$ac_ext
12116 if $ac_preproc_ok; then :
12117   break
12118 fi
12119
12120     done
12121     ac_cv_prog_CXXCPP=$CXXCPP
12122
12123 fi
12124   CXXCPP=$ac_cv_prog_CXXCPP
12125 else
12126   ac_cv_prog_CXXCPP=$CXXCPP
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12129 $as_echo "$CXXCPP" >&6; }
12130 ac_preproc_ok=false
12131 for ac_cxx_preproc_warn_flag in '' yes
12132 do
12133   # Use a header file that comes with gcc, so configuring glibc
12134   # with a fresh cross-compiler works.
12135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136   # <limits.h> exists even on freestanding compilers.
12137   # On the NeXT, cc -E runs the code through the compiler's parser,
12138   # not just through cpp. "Syntax error" is here to catch this case.
12139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141 #ifdef __STDC__
12142 # include <limits.h>
12143 #else
12144 # include <assert.h>
12145 #endif
12146                      Syntax error
12147 _ACEOF
12148 if ac_fn_cxx_try_cpp "$LINENO"; then :
12149
12150 else
12151   # Broken: fails on valid input.
12152 continue
12153 fi
12154 rm -f conftest.err conftest.$ac_ext
12155
12156   # OK, works on sane cases.  Now check whether nonexistent headers
12157   # can be detected and how.
12158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h.  */
12160 #include <ac_nonexistent.h>
12161 _ACEOF
12162 if ac_fn_cxx_try_cpp "$LINENO"; then :
12163   # Broken: success on invalid input.
12164 continue
12165 else
12166   # Passes both tests.
12167 ac_preproc_ok=:
12168 break
12169 fi
12170 rm -f conftest.err conftest.$ac_ext
12171
12172 done
12173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12174 rm -f conftest.err conftest.$ac_ext
12175 if $ac_preproc_ok; then :
12176
12177 else
12178   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12180 _lt_caught_CXX_error=yes; }
12181 fi
12182
12183 ac_ext=c
12184 ac_cpp='$CPP $CPPFLAGS'
12185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12188
12189 else
12190   _lt_caught_CXX_error=yes
12191 fi
12192
12193
12194
12195
12196
12197 # Set options
12198 enable_win32_dll=yes
12199
12200 case $host in
12201 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12202   if test -n "$ac_tool_prefix"; then
12203   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12204 set dummy ${ac_tool_prefix}as; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_prog_AS+set}" = set; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   if test -n "$AS"; then
12211   ac_cv_prog_AS="$AS" # Let the user override the test.
12212 else
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12215 do
12216   IFS=$as_save_IFS
12217   test -z "$as_dir" && as_dir=.
12218     for ac_exec_ext in '' $ac_executable_extensions; do
12219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12220     ac_cv_prog_AS="${ac_tool_prefix}as"
12221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222     break 2
12223   fi
12224 done
12225   done
12226 IFS=$as_save_IFS
12227
12228 fi
12229 fi
12230 AS=$ac_cv_prog_AS
12231 if test -n "$AS"; then
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12233 $as_echo "$AS" >&6; }
12234 else
12235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12237 fi
12238
12239
12240 fi
12241 if test -z "$ac_cv_prog_AS"; then
12242   ac_ct_AS=$AS
12243   # Extract the first word of "as", so it can be a program name with args.
12244 set dummy as; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   if test -n "$ac_ct_AS"; then
12251   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12252 else
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256   IFS=$as_save_IFS
12257   test -z "$as_dir" && as_dir=.
12258     for ac_exec_ext in '' $ac_executable_extensions; do
12259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260     ac_cv_prog_ac_ct_AS="as"
12261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262     break 2
12263   fi
12264 done
12265   done
12266 IFS=$as_save_IFS
12267
12268 fi
12269 fi
12270 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12271 if test -n "$ac_ct_AS"; then
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12273 $as_echo "$ac_ct_AS" >&6; }
12274 else
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12277 fi
12278
12279   if test "x$ac_ct_AS" = x; then
12280     AS="false"
12281   else
12282     case $cross_compiling:$ac_tool_warned in
12283 yes:)
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12286 ac_tool_warned=yes ;;
12287 esac
12288     AS=$ac_ct_AS
12289   fi
12290 else
12291   AS="$ac_cv_prog_AS"
12292 fi
12293
12294   if test -n "$ac_tool_prefix"; then
12295   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12296 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12300   $as_echo_n "(cached) " >&6
12301 else
12302   if test -n "$DLLTOOL"; then
12303   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310     for ac_exec_ext in '' $ac_executable_extensions; do
12311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317   done
12318 IFS=$as_save_IFS
12319
12320 fi
12321 fi
12322 DLLTOOL=$ac_cv_prog_DLLTOOL
12323 if test -n "$DLLTOOL"; then
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12325 $as_echo "$DLLTOOL" >&6; }
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332 fi
12333 if test -z "$ac_cv_prog_DLLTOOL"; then
12334   ac_ct_DLLTOOL=$DLLTOOL
12335   # Extract the first word of "dlltool", so it can be a program name with args.
12336 set dummy dlltool; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   if test -n "$ac_ct_DLLTOOL"; then
12343   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12344 else
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12347 do
12348   IFS=$as_save_IFS
12349   test -z "$as_dir" && as_dir=.
12350     for ac_exec_ext in '' $ac_executable_extensions; do
12351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354     break 2
12355   fi
12356 done
12357   done
12358 IFS=$as_save_IFS
12359
12360 fi
12361 fi
12362 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12363 if test -n "$ac_ct_DLLTOOL"; then
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12365 $as_echo "$ac_ct_DLLTOOL" >&6; }
12366 else
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 fi
12370
12371   if test "x$ac_ct_DLLTOOL" = x; then
12372     DLLTOOL="false"
12373   else
12374     case $cross_compiling:$ac_tool_warned in
12375 yes:)
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378 ac_tool_warned=yes ;;
12379 esac
12380     DLLTOOL=$ac_ct_DLLTOOL
12381   fi
12382 else
12383   DLLTOOL="$ac_cv_prog_DLLTOOL"
12384 fi
12385
12386   if test -n "$ac_tool_prefix"; then
12387   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   if test -n "$OBJDUMP"; then
12395   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12396 else
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12399 do
12400   IFS=$as_save_IFS
12401   test -z "$as_dir" && as_dir=.
12402     for ac_exec_ext in '' $ac_executable_extensions; do
12403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406     break 2
12407   fi
12408 done
12409   done
12410 IFS=$as_save_IFS
12411
12412 fi
12413 fi
12414 OBJDUMP=$ac_cv_prog_OBJDUMP
12415 if test -n "$OBJDUMP"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12417 $as_echo "$OBJDUMP" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423
12424 fi
12425 if test -z "$ac_cv_prog_OBJDUMP"; then
12426   ac_ct_OBJDUMP=$OBJDUMP
12427   # Extract the first word of "objdump", so it can be a program name with args.
12428 set dummy objdump; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   if test -n "$ac_ct_OBJDUMP"; then
12435   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12436 else
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440   IFS=$as_save_IFS
12441   test -z "$as_dir" && as_dir=.
12442     for ac_exec_ext in '' $ac_executable_extensions; do
12443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446     break 2
12447   fi
12448 done
12449   done
12450 IFS=$as_save_IFS
12451
12452 fi
12453 fi
12454 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12455 if test -n "$ac_ct_OBJDUMP"; then
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12457 $as_echo "$ac_ct_OBJDUMP" >&6; }
12458 else
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461 fi
12462
12463   if test "x$ac_ct_OBJDUMP" = x; then
12464     OBJDUMP="false"
12465   else
12466     case $cross_compiling:$ac_tool_warned in
12467 yes:)
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12471 esac
12472     OBJDUMP=$ac_ct_OBJDUMP
12473   fi
12474 else
12475   OBJDUMP="$ac_cv_prog_OBJDUMP"
12476 fi
12477
12478   ;;
12479 esac
12480
12481 test -z "$AS" && AS=as
12482
12483
12484
12485
12486
12487 test -z "$DLLTOOL" && DLLTOOL=dlltool
12488
12489
12490
12491
12492
12493 test -z "$OBJDUMP" && OBJDUMP=objdump
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503             # Check whether --enable-shared was given.
12504 if test "${enable_shared+set}" = set; then :
12505   enableval=$enable_shared; p=${PACKAGE-default}
12506     case $enableval in
12507     yes) enable_shared=yes ;;
12508     no) enable_shared=no ;;
12509     *)
12510       enable_shared=no
12511       # Look at the argument we got.  We use all the common list separators.
12512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12513       for pkg in $enableval; do
12514         IFS="$lt_save_ifs"
12515         if test "X$pkg" = "X$p"; then
12516           enable_shared=yes
12517         fi
12518       done
12519       IFS="$lt_save_ifs"
12520       ;;
12521     esac
12522 else
12523   enable_shared=yes
12524 fi
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534   # Check whether --enable-static was given.
12535 if test "${enable_static+set}" = set; then :
12536   enableval=$enable_static; p=${PACKAGE-default}
12537     case $enableval in
12538     yes) enable_static=yes ;;
12539     no) enable_static=no ;;
12540     *)
12541      enable_static=no
12542       # Look at the argument we got.  We use all the common list separators.
12543       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12544       for pkg in $enableval; do
12545         IFS="$lt_save_ifs"
12546         if test "X$pkg" = "X$p"; then
12547           enable_static=yes
12548         fi
12549       done
12550       IFS="$lt_save_ifs"
12551       ;;
12552     esac
12553 else
12554   enable_static=yes
12555 fi
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 # Check whether --with-pic was given.
12567 if test "${with_pic+set}" = set; then :
12568   withval=$with_pic; pic_mode="$withval"
12569 else
12570   pic_mode=default
12571 fi
12572
12573
12574 test -z "$pic_mode" && pic_mode=default
12575
12576
12577
12578
12579
12580
12581
12582   # Check whether --enable-fast-install was given.
12583 if test "${enable_fast_install+set}" = set; then :
12584   enableval=$enable_fast_install; p=${PACKAGE-default}
12585     case $enableval in
12586     yes) enable_fast_install=yes ;;
12587     no) enable_fast_install=no ;;
12588     *)
12589       enable_fast_install=no
12590       # Look at the argument we got.  We use all the common list separators.
12591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12592       for pkg in $enableval; do
12593         IFS="$lt_save_ifs"
12594         if test "X$pkg" = "X$p"; then
12595           enable_fast_install=yes
12596         fi
12597       done
12598       IFS="$lt_save_ifs"
12599       ;;
12600     esac
12601 else
12602   enable_fast_install=yes
12603 fi
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 # This can be used to rebuild libtool when needed
12616 LIBTOOL_DEPS="$ltmain"
12617
12618 # Always use our own libtool.
12619 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 test -z "$LN_S" && LN_S="ln -s"
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660 if test -n "${ZSH_VERSION+set}" ; then
12661    setopt NO_GLOB_SUBST
12662 fi
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12665 $as_echo_n "checking for objdir... " >&6; }
12666 if test "${lt_cv_objdir+set}" = set; then :
12667   $as_echo_n "(cached) " >&6
12668 else
12669   rm -f .libs 2>/dev/null
12670 mkdir .libs 2>/dev/null
12671 if test -d .libs; then
12672   lt_cv_objdir=.libs
12673 else
12674   # MS-DOS does not allow filenames that begin with a dot.
12675   lt_cv_objdir=_libs
12676 fi
12677 rmdir .libs 2>/dev/null
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12680 $as_echo "$lt_cv_objdir" >&6; }
12681 objdir=$lt_cv_objdir
12682
12683
12684
12685
12686
12687 cat >>confdefs.h <<_ACEOF
12688 #define LT_OBJDIR "$lt_cv_objdir/"
12689 _ACEOF
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707 case $host_os in
12708 aix3*)
12709   # AIX sometimes has problems with the GCC collect2 program.  For some
12710   # reason, if we set the COLLECT_NAMES environment variable, the problems
12711   # vanish in a puff of smoke.
12712   if test "X${COLLECT_NAMES+set}" != Xset; then
12713     COLLECT_NAMES=
12714     export COLLECT_NAMES
12715   fi
12716   ;;
12717 esac
12718
12719 # Sed substitution that helps us do robust quoting.  It backslashifies
12720 # metacharacters that are still active within double-quoted strings.
12721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12722
12723 # Same as above, but do not quote variable references.
12724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12725
12726 # Sed substitution to delay expansion of an escaped shell variable in a
12727 # double_quote_subst'ed string.
12728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12729
12730 # Sed substitution to delay expansion of an escaped single quote.
12731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12732
12733 # Sed substitution to avoid accidental globbing in evaled expressions
12734 no_glob_subst='s/\*/\\\*/g'
12735
12736 # Global variables:
12737 ofile=libtool
12738 can_build_shared=yes
12739
12740 # All known linkers require a `.a' archive for static linking (except MSVC,
12741 # which needs '.lib').
12742 libext=a
12743
12744 with_gnu_ld="$lt_cv_prog_gnu_ld"
12745
12746 old_CC="$CC"
12747 old_CFLAGS="$CFLAGS"
12748
12749 # Set sane defaults for various variables
12750 test -z "$CC" && CC=cc
12751 test -z "$LTCC" && LTCC=$CC
12752 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12753 test -z "$LD" && LD=ld
12754 test -z "$ac_objext" && ac_objext=o
12755
12756 for cc_temp in $compiler""; do
12757   case $cc_temp in
12758     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12759     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12760     \-*) ;;
12761     *) break;;
12762   esac
12763 done
12764 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12765
12766
12767 # Only perform the check for file, if the check method requires it
12768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12769 case $deplibs_check_method in
12770 file_magic*)
12771   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12773 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   case $MAGIC_CMD in
12778 [\\/*] |  ?:[\\/]*)
12779   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12780   ;;
12781 *)
12782   lt_save_MAGIC_CMD="$MAGIC_CMD"
12783   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12784   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12785   for ac_dir in $ac_dummy; do
12786     IFS="$lt_save_ifs"
12787     test -z "$ac_dir" && ac_dir=.
12788     if test -f $ac_dir/${ac_tool_prefix}file; then
12789       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12790       if test -n "$file_magic_test_file"; then
12791         case $deplibs_check_method in
12792         "file_magic "*)
12793           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12794           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12795           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12796             $EGREP "$file_magic_regex" > /dev/null; then
12797             :
12798           else
12799             cat <<_LT_EOF 1>&2
12800
12801 *** Warning: the command libtool uses to detect shared libraries,
12802 *** $file_magic_cmd, produces output that libtool cannot recognize.
12803 *** The result is that libtool may fail to recognize shared libraries
12804 *** as such.  This will affect the creation of libtool libraries that
12805 *** depend on shared libraries, but programs linked with such libtool
12806 *** libraries will work regardless of this problem.  Nevertheless, you
12807 *** may want to report the problem to your system manager and/or to
12808 *** bug-libtool@gnu.org
12809
12810 _LT_EOF
12811           fi ;;
12812         esac
12813       fi
12814       break
12815     fi
12816   done
12817   IFS="$lt_save_ifs"
12818   MAGIC_CMD="$lt_save_MAGIC_CMD"
12819   ;;
12820 esac
12821 fi
12822
12823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12824 if test -n "$MAGIC_CMD"; then
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12826 $as_echo "$MAGIC_CMD" >&6; }
12827 else
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 fi
12831
12832
12833
12834
12835
12836 if test -z "$lt_cv_path_MAGIC_CMD"; then
12837   if test -n "$ac_tool_prefix"; then
12838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12839 $as_echo_n "checking for file... " >&6; }
12840 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $MAGIC_CMD in
12844 [\\/*] |  ?:[\\/]*)
12845   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12846   ;;
12847 *)
12848   lt_save_MAGIC_CMD="$MAGIC_CMD"
12849   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12851   for ac_dir in $ac_dummy; do
12852     IFS="$lt_save_ifs"
12853     test -z "$ac_dir" && ac_dir=.
12854     if test -f $ac_dir/file; then
12855       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12856       if test -n "$file_magic_test_file"; then
12857         case $deplibs_check_method in
12858         "file_magic "*)
12859           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12860           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12861           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12862             $EGREP "$file_magic_regex" > /dev/null; then
12863             :
12864           else
12865             cat <<_LT_EOF 1>&2
12866
12867 *** Warning: the command libtool uses to detect shared libraries,
12868 *** $file_magic_cmd, produces output that libtool cannot recognize.
12869 *** The result is that libtool may fail to recognize shared libraries
12870 *** as such.  This will affect the creation of libtool libraries that
12871 *** depend on shared libraries, but programs linked with such libtool
12872 *** libraries will work regardless of this problem.  Nevertheless, you
12873 *** may want to report the problem to your system manager and/or to
12874 *** bug-libtool@gnu.org
12875
12876 _LT_EOF
12877           fi ;;
12878         esac
12879       fi
12880       break
12881     fi
12882   done
12883   IFS="$lt_save_ifs"
12884   MAGIC_CMD="$lt_save_MAGIC_CMD"
12885   ;;
12886 esac
12887 fi
12888
12889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12890 if test -n "$MAGIC_CMD"; then
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12892 $as_echo "$MAGIC_CMD" >&6; }
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 fi
12897
12898
12899   else
12900     MAGIC_CMD=:
12901   fi
12902 fi
12903
12904   fi
12905   ;;
12906 esac
12907
12908 # Use C for the default configuration in the libtool script
12909
12910 lt_save_CC="$CC"
12911 ac_ext=c
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917
12918 # Source file extension for C test sources.
12919 ac_ext=c
12920
12921 # Object file extension for compiled C test sources.
12922 objext=o
12923 objext=$objext
12924
12925 # Code to be used in simple compile tests
12926 lt_simple_compile_test_code="int some_variable = 0;"
12927
12928 # Code to be used in simple link tests
12929 lt_simple_link_test_code='int main(){return(0);}'
12930
12931
12932
12933
12934
12935
12936
12937 # If no C compiler was specified, use CC.
12938 LTCC=${LTCC-"$CC"}
12939
12940 # If no C compiler flags were specified, use CFLAGS.
12941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12942
12943 # Allow CC to be a program name with arguments.
12944 compiler=$CC
12945
12946 # Save the default compiler, since it gets overwritten when the other
12947 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12948 compiler_DEFAULT=$CC
12949
12950 # save warnings/boilerplate of simple test code
12951 ac_outfile=conftest.$ac_objext
12952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12954 _lt_compiler_boilerplate=`cat conftest.err`
12955 $RM conftest*
12956
12957 ac_outfile=conftest.$ac_objext
12958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12960 _lt_linker_boilerplate=`cat conftest.err`
12961 $RM -r conftest*
12962
12963
12964 ## CAVEAT EMPTOR:
12965 ## There is no encapsulation within the following macros, do not change
12966 ## the running order or otherwise move them around unless you know exactly
12967 ## what you are doing...
12968 if test -n "$compiler"; then
12969
12970 lt_prog_compiler_no_builtin_flag=
12971
12972 if test "$GCC" = yes; then
12973   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12974
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12976 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12978   $as_echo_n "(cached) " >&6
12979 else
12980   lt_cv_prog_compiler_rtti_exceptions=no
12981    ac_outfile=conftest.$ac_objext
12982    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12983    lt_compiler_flag="-fno-rtti -fno-exceptions"
12984    # Insert the option either (1) after the last *FLAGS variable, or
12985    # (2) before a word containing "conftest.", or (3) at the end.
12986    # Note that $ac_compile itself does not contain backslashes and begins
12987    # with a dollar sign (not a hyphen), so the echo should work correctly.
12988    # The option is referenced via a variable to avoid confusing sed.
12989    lt_compile=`echo "$ac_compile" | $SED \
12990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992    -e 's:$: $lt_compiler_flag:'`
12993    (eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
12994    (eval "$lt_compile" 2>conftest.err)
12995    ac_status=$?
12996    cat conftest.err >&5
12997    echo "$as_me:12997: \$? = $ac_status" >&5
12998    if (exit $ac_status) && test -s "$ac_outfile"; then
12999      # The compiler can only warn and ignore the option if not recognized
13000      # So say no if there are warnings other than the usual output.
13001      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13002      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13003      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13004        lt_cv_prog_compiler_rtti_exceptions=yes
13005      fi
13006    fi
13007    $RM conftest*
13008
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13011 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13012
13013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13014     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13015 else
13016     :
13017 fi
13018
13019 fi
13020
13021
13022
13023
13024
13025
13026   lt_prog_compiler_wl=
13027 lt_prog_compiler_pic=
13028 lt_prog_compiler_static=
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13032
13033   if test "$GCC" = yes; then
13034     lt_prog_compiler_wl='-Wl,'
13035     lt_prog_compiler_static='-static'
13036
13037     case $host_os in
13038       aix*)
13039       # All AIX code is PIC.
13040       if test "$host_cpu" = ia64; then
13041         # AIX 5 now supports IA64 processor
13042         lt_prog_compiler_static='-Bstatic'
13043       fi
13044       ;;
13045
13046     amigaos*)
13047       case $host_cpu in
13048       powerpc)
13049             # see comment about AmigaOS4 .so support
13050             lt_prog_compiler_pic='-fPIC'
13051         ;;
13052       m68k)
13053             # FIXME: we need at least 68020 code to build shared libraries, but
13054             # adding the `-m68020' flag to GCC prevents building anything better,
13055             # like `-m68040'.
13056             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13057         ;;
13058       esac
13059       ;;
13060
13061     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062       # PIC is the default for these OSes.
13063       ;;
13064
13065     mingw* | cygwin* | pw32* | os2* | cegcc*)
13066       # This hack is so that the source file can tell whether it is being
13067       # built for inclusion in a dll (and should export symbols for example).
13068       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13069       # (--disable-auto-import) libraries
13070       lt_prog_compiler_pic='-DDLL_EXPORT'
13071       ;;
13072
13073     darwin* | rhapsody*)
13074       # PIC is the default on this platform
13075       # Common symbols not allowed in MH_DYLIB files
13076       lt_prog_compiler_pic='-fno-common'
13077       ;;
13078
13079     hpux*)
13080       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13081       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13082       # sets the default TLS model and affects inlining.
13083       case $host_cpu in
13084       hppa*64*)
13085         # +Z the default
13086         ;;
13087       *)
13088         lt_prog_compiler_pic='-fPIC'
13089         ;;
13090       esac
13091       ;;
13092
13093     interix[3-9]*)
13094       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095       # Instead, we relocate shared libraries at runtime.
13096       ;;
13097
13098     msdosdjgpp*)
13099       # Just because we use GCC doesn't mean we suddenly get shared libraries
13100       # on systems that don't support them.
13101       lt_prog_compiler_can_build_shared=no
13102       enable_shared=no
13103       ;;
13104
13105     *nto* | *qnx*)
13106       # QNX uses GNU C++, but need to define -shared option too, otherwise
13107       # it will coredump.
13108       lt_prog_compiler_pic='-fPIC -shared'
13109       ;;
13110
13111     sysv4*MP*)
13112       if test -d /usr/nec; then
13113         lt_prog_compiler_pic=-Kconform_pic
13114       fi
13115       ;;
13116
13117     *)
13118       lt_prog_compiler_pic='-fPIC'
13119       ;;
13120     esac
13121   else
13122     # PORTME Check for flag to pass linker flags through the system compiler.
13123     case $host_os in
13124     aix*)
13125       lt_prog_compiler_wl='-Wl,'
13126       if test "$host_cpu" = ia64; then
13127         # AIX 5 now supports IA64 processor
13128         lt_prog_compiler_static='-Bstatic'
13129       else
13130         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13131       fi
13132       ;;
13133
13134     mingw* | cygwin* | pw32* | os2* | cegcc*)
13135       # This hack is so that the source file can tell whether it is being
13136       # built for inclusion in a dll (and should export symbols for example).
13137       lt_prog_compiler_pic='-DDLL_EXPORT'
13138       ;;
13139
13140     hpux9* | hpux10* | hpux11*)
13141       lt_prog_compiler_wl='-Wl,'
13142       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13143       # not for PA HP-UX.
13144       case $host_cpu in
13145       hppa*64*|ia64*)
13146         # +Z the default
13147         ;;
13148       *)
13149         lt_prog_compiler_pic='+Z'
13150         ;;
13151       esac
13152       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13153       lt_prog_compiler_static='${wl}-a ${wl}archive'
13154       ;;
13155
13156     irix5* | irix6* | nonstopux*)
13157       lt_prog_compiler_wl='-Wl,'
13158       # PIC (with -KPIC) is the default.
13159       lt_prog_compiler_static='-non_shared'
13160       ;;
13161
13162     linux* | k*bsd*-gnu)
13163       case $cc_basename in
13164       # old Intel for x86_64 which still supported -KPIC.
13165       ecc*)
13166         lt_prog_compiler_wl='-Wl,'
13167         lt_prog_compiler_pic='-KPIC'
13168         lt_prog_compiler_static='-static'
13169         ;;
13170       # icc used to be incompatible with GCC.
13171       # ICC 10 doesn't accept -KPIC any more.
13172       icc* | ifort*)
13173         lt_prog_compiler_wl='-Wl,'
13174         lt_prog_compiler_pic='-fPIC'
13175         lt_prog_compiler_static='-static'
13176         ;;
13177       # Lahey Fortran 8.1.
13178       lf95*)
13179         lt_prog_compiler_wl='-Wl,'
13180         lt_prog_compiler_pic='--shared'
13181         lt_prog_compiler_static='--static'
13182         ;;
13183       pgcc* | pgf77* | pgf90* | pgf95*)
13184         # Portland Group compilers (*not* the Pentium gcc compiler,
13185         # which looks to be a dead project)
13186         lt_prog_compiler_wl='-Wl,'
13187         lt_prog_compiler_pic='-fpic'
13188         lt_prog_compiler_static='-Bstatic'
13189         ;;
13190       ccc*)
13191         lt_prog_compiler_wl='-Wl,'
13192         # All Alpha code is PIC.
13193         lt_prog_compiler_static='-non_shared'
13194         ;;
13195       xl*)
13196         # IBM XL C 8.0/Fortran 10.1 on PPC
13197         lt_prog_compiler_wl='-Wl,'
13198         lt_prog_compiler_pic='-qpic'
13199         lt_prog_compiler_static='-qstaticlink'
13200         ;;
13201       *)
13202         case `$CC -V 2>&1 | sed 5q` in
13203         *Sun\ C*)
13204           # Sun C 5.9
13205           lt_prog_compiler_pic='-KPIC'
13206           lt_prog_compiler_static='-Bstatic'
13207           lt_prog_compiler_wl='-Wl,'
13208           ;;
13209         *Sun\ F*)
13210           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13211           lt_prog_compiler_pic='-KPIC'
13212           lt_prog_compiler_static='-Bstatic'
13213           lt_prog_compiler_wl=''
13214           ;;
13215         esac
13216         ;;
13217       esac
13218       ;;
13219
13220     newsos6)
13221       lt_prog_compiler_pic='-KPIC'
13222       lt_prog_compiler_static='-Bstatic'
13223       ;;
13224
13225     *nto* | *qnx*)
13226       # QNX uses GNU C++, but need to define -shared option too, otherwise
13227       # it will coredump.
13228       lt_prog_compiler_pic='-fPIC -shared'
13229       ;;
13230
13231     osf3* | osf4* | osf5*)
13232       lt_prog_compiler_wl='-Wl,'
13233       # All OSF/1 code is PIC.
13234       lt_prog_compiler_static='-non_shared'
13235       ;;
13236
13237     rdos*)
13238       lt_prog_compiler_static='-non_shared'
13239       ;;
13240
13241     solaris*)
13242       lt_prog_compiler_pic='-KPIC'
13243       lt_prog_compiler_static='-Bstatic'
13244       case $cc_basename in
13245       f77* | f90* | f95*)
13246         lt_prog_compiler_wl='-Qoption ld ';;
13247       *)
13248         lt_prog_compiler_wl='-Wl,';;
13249       esac
13250       ;;
13251
13252     sunos4*)
13253       lt_prog_compiler_wl='-Qoption ld '
13254       lt_prog_compiler_pic='-PIC'
13255       lt_prog_compiler_static='-Bstatic'
13256       ;;
13257
13258     sysv4 | sysv4.2uw2* | sysv4.3*)
13259       lt_prog_compiler_wl='-Wl,'
13260       lt_prog_compiler_pic='-KPIC'
13261       lt_prog_compiler_static='-Bstatic'
13262       ;;
13263
13264     sysv4*MP*)
13265       if test -d /usr/nec ;then
13266         lt_prog_compiler_pic='-Kconform_pic'
13267         lt_prog_compiler_static='-Bstatic'
13268       fi
13269       ;;
13270
13271     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13272       lt_prog_compiler_wl='-Wl,'
13273       lt_prog_compiler_pic='-KPIC'
13274       lt_prog_compiler_static='-Bstatic'
13275       ;;
13276
13277     unicos*)
13278       lt_prog_compiler_wl='-Wl,'
13279       lt_prog_compiler_can_build_shared=no
13280       ;;
13281
13282     uts4*)
13283       lt_prog_compiler_pic='-pic'
13284       lt_prog_compiler_static='-Bstatic'
13285       ;;
13286
13287     *)
13288       lt_prog_compiler_can_build_shared=no
13289       ;;
13290     esac
13291   fi
13292
13293 case $host_os in
13294   # For platforms which do not support PIC, -DPIC is meaningless:
13295   *djgpp*)
13296     lt_prog_compiler_pic=
13297     ;;
13298   *)
13299     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13300     ;;
13301 esac
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13303 $as_echo "$lt_prog_compiler_pic" >&6; }
13304
13305
13306
13307
13308
13309
13310 #
13311 # Check to make sure the PIC flag actually works.
13312 #
13313 if test -n "$lt_prog_compiler_pic"; then
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13315 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13316 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319   lt_cv_prog_compiler_pic_works=no
13320    ac_outfile=conftest.$ac_objext
13321    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13322    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13323    # Insert the option either (1) after the last *FLAGS variable, or
13324    # (2) before a word containing "conftest.", or (3) at the end.
13325    # Note that $ac_compile itself does not contain backslashes and begins
13326    # with a dollar sign (not a hyphen), so the echo should work correctly.
13327    # The option is referenced via a variable to avoid confusing sed.
13328    lt_compile=`echo "$ac_compile" | $SED \
13329    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331    -e 's:$: $lt_compiler_flag:'`
13332    (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
13333    (eval "$lt_compile" 2>conftest.err)
13334    ac_status=$?
13335    cat conftest.err >&5
13336    echo "$as_me:13336: \$? = $ac_status" >&5
13337    if (exit $ac_status) && test -s "$ac_outfile"; then
13338      # The compiler can only warn and ignore the option if not recognized
13339      # So say no if there are warnings other than the usual output.
13340      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13341      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13343        lt_cv_prog_compiler_pic_works=yes
13344      fi
13345    fi
13346    $RM conftest*
13347
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13350 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13351
13352 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13353     case $lt_prog_compiler_pic in
13354      "" | " "*) ;;
13355      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13356      esac
13357 else
13358     lt_prog_compiler_pic=
13359      lt_prog_compiler_can_build_shared=no
13360 fi
13361
13362 fi
13363
13364
13365
13366
13367
13368
13369 #
13370 # Check to make sure the static flag actually works.
13371 #
13372 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13375 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13376   $as_echo_n "(cached) " >&6
13377 else
13378   lt_cv_prog_compiler_static_works=no
13379    save_LDFLAGS="$LDFLAGS"
13380    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13381    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13382    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13383      # The linker can only warn and ignore the option if not recognized
13384      # So say no if there are warnings
13385      if test -s conftest.err; then
13386        # Append any errors to the config.log.
13387        cat conftest.err 1>&5
13388        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13389        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13390        if diff conftest.exp conftest.er2 >/dev/null; then
13391          lt_cv_prog_compiler_static_works=yes
13392        fi
13393      else
13394        lt_cv_prog_compiler_static_works=yes
13395      fi
13396    fi
13397    $RM -r conftest*
13398    LDFLAGS="$save_LDFLAGS"
13399
13400 fi
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13402 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13403
13404 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13405     :
13406 else
13407     lt_prog_compiler_static=
13408 fi
13409
13410
13411
13412
13413
13414
13415
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421   lt_cv_prog_compiler_c_o=no
13422    $RM -r conftest 2>/dev/null
13423    mkdir conftest
13424    cd conftest
13425    mkdir out
13426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13427
13428    lt_compiler_flag="-o out/conftest2.$ac_objext"
13429    # Insert the option either (1) after the last *FLAGS variable, or
13430    # (2) before a word containing "conftest.", or (3) at the end.
13431    # Note that $ac_compile itself does not contain backslashes and begins
13432    # with a dollar sign (not a hyphen), so the echo should work correctly.
13433    lt_compile=`echo "$ac_compile" | $SED \
13434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436    -e 's:$: $lt_compiler_flag:'`
13437    (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
13438    (eval "$lt_compile" 2>out/conftest.err)
13439    ac_status=$?
13440    cat out/conftest.err >&5
13441    echo "$as_me:13441: \$? = $ac_status" >&5
13442    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13443    then
13444      # The compiler can only warn and ignore the option if not recognized
13445      # So say no if there are warnings
13446      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449        lt_cv_prog_compiler_c_o=yes
13450      fi
13451    fi
13452    chmod u+w . 2>&5
13453    $RM conftest*
13454    # SGI C++ compiler will create directory out/ii_files/ for
13455    # template instantiation
13456    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13457    $RM out/* && rmdir out
13458    cd ..
13459    $RM -r conftest
13460    $RM conftest*
13461
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13465
13466
13467
13468
13469
13470
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13473 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   lt_cv_prog_compiler_c_o=no
13477    $RM -r conftest 2>/dev/null
13478    mkdir conftest
13479    cd conftest
13480    mkdir out
13481    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13482
13483    lt_compiler_flag="-o out/conftest2.$ac_objext"
13484    # Insert the option either (1) after the last *FLAGS variable, or
13485    # (2) before a word containing "conftest.", or (3) at the end.
13486    # Note that $ac_compile itself does not contain backslashes and begins
13487    # with a dollar sign (not a hyphen), so the echo should work correctly.
13488    lt_compile=`echo "$ac_compile" | $SED \
13489    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13490    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13491    -e 's:$: $lt_compiler_flag:'`
13492    (eval echo "\"\$as_me:13492: $lt_compile\"" >&5)
13493    (eval "$lt_compile" 2>out/conftest.err)
13494    ac_status=$?
13495    cat out/conftest.err >&5
13496    echo "$as_me:13496: \$? = $ac_status" >&5
13497    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13498    then
13499      # The compiler can only warn and ignore the option if not recognized
13500      # So say no if there are warnings
13501      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13502      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13503      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13504        lt_cv_prog_compiler_c_o=yes
13505      fi
13506    fi
13507    chmod u+w . 2>&5
13508    $RM conftest*
13509    # SGI C++ compiler will create directory out/ii_files/ for
13510    # template instantiation
13511    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13512    $RM out/* && rmdir out
13513    cd ..
13514    $RM -r conftest
13515    $RM conftest*
13516
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13520
13521
13522
13523
13524 hard_links="nottested"
13525 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13526   # do not overwrite the value of need_locks provided by the user
13527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13528 $as_echo_n "checking if we can lock with hard links... " >&6; }
13529   hard_links=yes
13530   $RM conftest*
13531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13532   touch conftest.a
13533   ln conftest.a conftest.b 2>&5 || hard_links=no
13534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13536 $as_echo "$hard_links" >&6; }
13537   if test "$hard_links" = no; then
13538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13540     need_locks=warn
13541   fi
13542 else
13543   need_locks=no
13544 fi
13545
13546
13547
13548
13549
13550
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13552 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13553
13554   runpath_var=
13555   allow_undefined_flag=
13556   always_export_symbols=no
13557   archive_cmds=
13558   archive_expsym_cmds=
13559   compiler_needs_object=no
13560   enable_shared_with_static_runtimes=no
13561   export_dynamic_flag_spec=
13562   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13563   hardcode_automatic=no
13564   hardcode_direct=no
13565   hardcode_direct_absolute=no
13566   hardcode_libdir_flag_spec=
13567   hardcode_libdir_flag_spec_ld=
13568   hardcode_libdir_separator=
13569   hardcode_minus_L=no
13570   hardcode_shlibpath_var=unsupported
13571   inherit_rpath=no
13572   link_all_deplibs=unknown
13573   module_cmds=
13574   module_expsym_cmds=
13575   old_archive_from_new_cmds=
13576   old_archive_from_expsyms_cmds=
13577   thread_safe_flag_spec=
13578   whole_archive_flag_spec=
13579   # include_expsyms should be a list of space-separated symbols to be *always*
13580   # included in the symbol list
13581   include_expsyms=
13582   # exclude_expsyms can be an extended regexp of symbols to exclude
13583   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13584   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13585   # as well as any symbol that contains `d'.
13586   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13587   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13588   # platforms (ab)use it in PIC code, but their linkers get confused if
13589   # the symbol is explicitly referenced.  Since portable code cannot
13590   # rely on this symbol name, it's probably fine to never include it in
13591   # preloaded symbol tables.
13592   # Exclude shared library initialization/finalization symbols.
13593   extract_expsyms_cmds=
13594
13595   case $host_os in
13596   cygwin* | mingw* | pw32* | cegcc*)
13597     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13598     # When not using gcc, we currently assume that we are using
13599     # Microsoft Visual C++.
13600     if test "$GCC" != yes; then
13601       with_gnu_ld=no
13602     fi
13603     ;;
13604   interix*)
13605     # we just hope/assume this is gcc and not c89 (= MSVC++)
13606     with_gnu_ld=yes
13607     ;;
13608   openbsd*)
13609     with_gnu_ld=no
13610     ;;
13611   esac
13612
13613   ld_shlibs=yes
13614   if test "$with_gnu_ld" = yes; then
13615     # If archive_cmds runs LD, not CC, wlarc should be empty
13616     wlarc='${wl}'
13617
13618     # Set some defaults for GNU ld with shared library support. These
13619     # are reset later if shared libraries are not supported. Putting them
13620     # here allows them to be overridden if necessary.
13621     runpath_var=LD_RUN_PATH
13622     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13623     export_dynamic_flag_spec='${wl}--export-dynamic'
13624     # ancient GNU ld didn't support --whole-archive et. al.
13625     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13626       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13627     else
13628       whole_archive_flag_spec=
13629     fi
13630     supports_anon_versioning=no
13631     case `$LD -v 2>&1` in
13632       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13633       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13634       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13635       *\ 2.11.*) ;; # other 2.11 versions
13636       *) supports_anon_versioning=yes ;;
13637     esac
13638
13639     # See if GNU ld supports shared libraries.
13640     case $host_os in
13641     aix[3-9]*)
13642       # On AIX/PPC, the GNU linker is very broken
13643       if test "$host_cpu" != ia64; then
13644         ld_shlibs=no
13645         cat <<_LT_EOF 1>&2
13646
13647 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13648 *** to be unable to reliably create shared libraries on AIX.
13649 *** Therefore, libtool is disabling shared libraries support.  If you
13650 *** really care for shared libraries, you may want to modify your PATH
13651 *** so that a non-GNU linker is found, and then restart.
13652
13653 _LT_EOF
13654       fi
13655       ;;
13656
13657     amigaos*)
13658       case $host_cpu in
13659       powerpc)
13660             # see comment about AmigaOS4 .so support
13661             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662             archive_expsym_cmds=''
13663         ;;
13664       m68k)
13665             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)'
13666             hardcode_libdir_flag_spec='-L$libdir'
13667             hardcode_minus_L=yes
13668         ;;
13669       esac
13670       ;;
13671
13672     beos*)
13673       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13674         allow_undefined_flag=unsupported
13675         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13676         # support --undefined.  This deserves some investigation.  FIXME
13677         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678       else
13679         ld_shlibs=no
13680       fi
13681       ;;
13682
13683     cygwin* | mingw* | pw32* | cegcc*)
13684       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13685       # as there is no search path for DLLs.
13686       hardcode_libdir_flag_spec='-L$libdir'
13687       allow_undefined_flag=unsupported
13688       always_export_symbols=no
13689       enable_shared_with_static_runtimes=yes
13690       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13691
13692       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13693         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13694         # If the export-symbols file already is a .def file (1st line
13695         # is EXPORTS), use it as is; otherwise, prepend...
13696         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13697           cp $export_symbols $output_objdir/$soname.def;
13698         else
13699           echo EXPORTS > $output_objdir/$soname.def;
13700           cat $export_symbols >> $output_objdir/$soname.def;
13701         fi~
13702         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13703       else
13704         ld_shlibs=no
13705       fi
13706       ;;
13707
13708     interix[3-9]*)
13709       hardcode_direct=no
13710       hardcode_shlibpath_var=no
13711       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13712       export_dynamic_flag_spec='${wl}-E'
13713       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13714       # Instead, shared libraries are loaded at an image base (0x10000000 by
13715       # default) and relocated if they conflict, which is a slow very memory
13716       # consuming and fragmenting process.  To avoid this, we pick a random,
13717       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13718       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13719       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13720       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'
13721       ;;
13722
13723     gnu* | linux* | tpf* | k*bsd*-gnu)
13724       tmp_diet=no
13725       if test "$host_os" = linux-dietlibc; then
13726         case $cc_basename in
13727           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13728         esac
13729       fi
13730       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13731          && test "$tmp_diet" = no
13732       then
13733         tmp_addflag=
13734         tmp_sharedflag='-shared'
13735         case $cc_basename,$host_cpu in
13736         pgcc*)                          # Portland Group C compiler
13737           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13738           tmp_addflag=' $pic_flag'
13739           ;;
13740         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13741           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13742           tmp_addflag=' $pic_flag -Mnomain' ;;
13743         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13744           tmp_addflag=' -i_dynamic' ;;
13745         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13746           tmp_addflag=' -i_dynamic -nofor_main' ;;
13747         ifc* | ifort*)                  # Intel Fortran compiler
13748           tmp_addflag=' -nofor_main' ;;
13749         lf95*)                          # Lahey Fortran 8.1
13750           whole_archive_flag_spec=
13751           tmp_sharedflag='--shared' ;;
13752         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
13753           tmp_sharedflag='-qmkshrobj'
13754           tmp_addflag= ;;
13755         esac
13756         case `$CC -V 2>&1 | sed 5q` in
13757         *Sun\ C*)                       # Sun C 5.9
13758           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13759           compiler_needs_object=yes
13760           tmp_sharedflag='-G' ;;
13761         *Sun\ F*)                       # Sun Fortran 8.3
13762           tmp_sharedflag='-G' ;;
13763         esac
13764         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765
13766         if test "x$supports_anon_versioning" = xyes; then
13767           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13768             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13769             echo "local: *; };" >> $output_objdir/$libname.ver~
13770             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13771         fi
13772
13773         case $cc_basename in
13774         xlf*)
13775           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13776           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13777           hardcode_libdir_flag_spec=
13778           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13779           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13780           if test "x$supports_anon_versioning" = xyes; then
13781             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13782               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13783               echo "local: *; };" >> $output_objdir/$libname.ver~
13784               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13785           fi
13786           ;;
13787         esac
13788       else
13789         ld_shlibs=no
13790       fi
13791       ;;
13792
13793     netbsd*)
13794       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13795         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13796         wlarc=
13797       else
13798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13800       fi
13801       ;;
13802
13803     solaris*)
13804       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13805         ld_shlibs=no
13806         cat <<_LT_EOF 1>&2
13807
13808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13809 *** create shared libraries on Solaris systems.  Therefore, libtool
13810 *** is disabling shared libraries support.  We urge you to upgrade GNU
13811 *** binutils to release 2.9.1 or newer.  Another option is to modify
13812 *** your PATH or compiler configuration so that the native linker is
13813 *** used, and then restart.
13814
13815 _LT_EOF
13816       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13817         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13819       else
13820         ld_shlibs=no
13821       fi
13822       ;;
13823
13824     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13825       case `$LD -v 2>&1` in
13826         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13827         ld_shlibs=no
13828         cat <<_LT_EOF 1>&2
13829
13830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13831 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13832 *** is disabling shared libraries support.  We urge you to upgrade GNU
13833 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13834 *** your PATH or compiler configuration so that the native linker is
13835 *** used, and then restart.
13836
13837 _LT_EOF
13838         ;;
13839         *)
13840           # For security reasons, it is highly recommended that you always
13841           # use absolute paths for naming shared libraries, and exclude the
13842           # DT_RUNPATH tag from executables and libraries.  But doing so
13843           # requires that you compile everything twice, which is a pain.
13844           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13845             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13846             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13848           else
13849             ld_shlibs=no
13850           fi
13851         ;;
13852       esac
13853       ;;
13854
13855     sunos4*)
13856       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13857       wlarc=
13858       hardcode_direct=yes
13859       hardcode_shlibpath_var=no
13860       ;;
13861
13862     *)
13863       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13866       else
13867         ld_shlibs=no
13868       fi
13869       ;;
13870     esac
13871
13872     if test "$ld_shlibs" = no; then
13873       runpath_var=
13874       hardcode_libdir_flag_spec=
13875       export_dynamic_flag_spec=
13876       whole_archive_flag_spec=
13877     fi
13878   else
13879     # PORTME fill in a description of your system's linker (not GNU ld)
13880     case $host_os in
13881     aix3*)
13882       allow_undefined_flag=unsupported
13883       always_export_symbols=yes
13884       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'
13885       # Note: this linker hardcodes the directories in LIBPATH if there
13886       # are no directories specified by -L.
13887       hardcode_minus_L=yes
13888       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13889         # Neither direct hardcoding nor static linking is supported with a
13890         # broken collect2.
13891         hardcode_direct=unsupported
13892       fi
13893       ;;
13894
13895     aix[4-9]*)
13896       if test "$host_cpu" = ia64; then
13897         # On IA64, the linker does run time linking by default, so we don't
13898         # have to do anything special.
13899         aix_use_runtimelinking=no
13900         exp_sym_flag='-Bexport'
13901         no_entry_flag=""
13902       else
13903         # If we're using GNU nm, then we don't want the "-C" option.
13904         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13905         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13906           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13907         else
13908           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'
13909         fi
13910         aix_use_runtimelinking=no
13911
13912         # Test if we are trying to use run time linking or normal
13913         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13914         # need to do runtime linking.
13915         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13916           for ld_flag in $LDFLAGS; do
13917           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13918             aix_use_runtimelinking=yes
13919             break
13920           fi
13921           done
13922           ;;
13923         esac
13924
13925         exp_sym_flag='-bexport'
13926         no_entry_flag='-bnoentry'
13927       fi
13928
13929       # When large executables or shared objects are built, AIX ld can
13930       # have problems creating the table of contents.  If linking a library
13931       # or program results in "error TOC overflow" add -mminimal-toc to
13932       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13933       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13934
13935       archive_cmds=''
13936       hardcode_direct=yes
13937       hardcode_direct_absolute=yes
13938       hardcode_libdir_separator=':'
13939       link_all_deplibs=yes
13940       file_list_spec='${wl}-f,'
13941
13942       if test "$GCC" = yes; then
13943         case $host_os in aix4.[012]|aix4.[012].*)
13944         # We only want to do this on AIX 4.2 and lower, the check
13945         # below for broken collect2 doesn't work under 4.3+
13946           collect2name=`${CC} -print-prog-name=collect2`
13947           if test -f "$collect2name" &&
13948            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13949           then
13950           # We have reworked collect2
13951           :
13952           else
13953           # We have old collect2
13954           hardcode_direct=unsupported
13955           # It fails to find uninstalled libraries when the uninstalled
13956           # path is not listed in the libpath.  Setting hardcode_minus_L
13957           # to unsupported forces relinking
13958           hardcode_minus_L=yes
13959           hardcode_libdir_flag_spec='-L$libdir'
13960           hardcode_libdir_separator=
13961           fi
13962           ;;
13963         esac
13964         shared_flag='-shared'
13965         if test "$aix_use_runtimelinking" = yes; then
13966           shared_flag="$shared_flag "'${wl}-G'
13967         fi
13968       else
13969         # not using gcc
13970         if test "$host_cpu" = ia64; then
13971         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13972         # chokes on -Wl,-G. The following line is correct:
13973           shared_flag='-G'
13974         else
13975           if test "$aix_use_runtimelinking" = yes; then
13976             shared_flag='${wl}-G'
13977           else
13978             shared_flag='${wl}-bM:SRE'
13979           fi
13980         fi
13981       fi
13982
13983       export_dynamic_flag_spec='${wl}-bexpall'
13984       # It seems that -bexpall does not export symbols beginning with
13985       # underscore (_), so it is better to generate a list of symbols to export.
13986       always_export_symbols=yes
13987       if test "$aix_use_runtimelinking" = yes; then
13988         # Warning - without using the other runtime loading flags (-brtl),
13989         # -berok will link without error, but may produce a broken library.
13990         allow_undefined_flag='-berok'
13991         # Determine the default libpath from the value encoded in an
13992         # empty executable.
13993         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995
13996 int
13997 main ()
13998 {
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_link "$LINENO"; then :
14005
14006 lt_aix_libpath_sed='
14007     /Import File Strings/,/^$/ {
14008         /^0/ {
14009             s/^0  *\(.*\)$/\1/
14010             p
14011         }
14012     }'
14013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14014 # Check for a 64-bit object if we didn't find anything.
14015 if test -z "$aix_libpath"; then
14016   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14017 fi
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext \
14020     conftest$ac_exeext conftest.$ac_ext
14021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14022
14023         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14024         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14025       else
14026         if test "$host_cpu" = ia64; then
14027           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14028           allow_undefined_flag="-z nodefs"
14029           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"
14030         else
14031          # Determine the default libpath from the value encoded in an
14032          # empty executable.
14033          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h.  */
14035
14036 int
14037 main ()
14038 {
14039
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045
14046 lt_aix_libpath_sed='
14047     /Import File Strings/,/^$/ {
14048         /^0/ {
14049             s/^0  *\(.*\)$/\1/
14050             p
14051         }
14052     }'
14053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14054 # Check for a 64-bit object if we didn't find anything.
14055 if test -z "$aix_libpath"; then
14056   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14057 fi
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060     conftest$ac_exeext conftest.$ac_ext
14061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14062
14063          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14064           # Warning - without using the other run time loading flags,
14065           # -berok will link without error, but may produce a broken library.
14066           no_undefined_flag=' ${wl}-bernotok'
14067           allow_undefined_flag=' ${wl}-berok'
14068           # Exported symbols can be pulled into shared objects from archives
14069           whole_archive_flag_spec='$convenience'
14070           archive_cmds_need_lc=yes
14071           # This is similar to how AIX traditionally builds its shared libraries.
14072           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'
14073         fi
14074       fi
14075       ;;
14076
14077     amigaos*)
14078       case $host_cpu in
14079       powerpc)
14080             # see comment about AmigaOS4 .so support
14081             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082             archive_expsym_cmds=''
14083         ;;
14084       m68k)
14085             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)'
14086             hardcode_libdir_flag_spec='-L$libdir'
14087             hardcode_minus_L=yes
14088         ;;
14089       esac
14090       ;;
14091
14092     bsdi[45]*)
14093       export_dynamic_flag_spec=-rdynamic
14094       ;;
14095
14096     cygwin* | mingw* | pw32* | cegcc*)
14097       # When not using gcc, we currently assume that we are using
14098       # Microsoft Visual C++.
14099       # hardcode_libdir_flag_spec is actually meaningless, as there is
14100       # no search path for DLLs.
14101       hardcode_libdir_flag_spec=' '
14102       allow_undefined_flag=unsupported
14103       # Tell ltmain to make .lib files, not .a files.
14104       libext=lib
14105       # Tell ltmain to make .dll files, not .so files.
14106       shrext_cmds=".dll"
14107       # FIXME: Setting linknames here is a bad hack.
14108       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14109       # The linker will automatically build a .lib file if we build a DLL.
14110       old_archive_from_new_cmds='true'
14111       # FIXME: Should let the user specify the lib program.
14112       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14113       fix_srcfile_path='`cygpath -w "$srcfile"`'
14114       enable_shared_with_static_runtimes=yes
14115       ;;
14116
14117     darwin* | rhapsody*)
14118
14119
14120   archive_cmds_need_lc=no
14121   hardcode_direct=no
14122   hardcode_automatic=yes
14123   hardcode_shlibpath_var=unsupported
14124   whole_archive_flag_spec=''
14125   link_all_deplibs=yes
14126   allow_undefined_flag="$_lt_dar_allow_undefined"
14127   case $cc_basename in
14128      ifort*) _lt_dar_can_shared=yes ;;
14129      *) _lt_dar_can_shared=$GCC ;;
14130   esac
14131   if test "$_lt_dar_can_shared" = "yes"; then
14132     output_verbose_link_cmd=echo
14133     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14134     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14135     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}"
14136     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}"
14137
14138   else
14139   ld_shlibs=no
14140   fi
14141
14142       ;;
14143
14144     dgux*)
14145       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146       hardcode_libdir_flag_spec='-L$libdir'
14147       hardcode_shlibpath_var=no
14148       ;;
14149
14150     freebsd1*)
14151       ld_shlibs=no
14152       ;;
14153
14154     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14155     # support.  Future versions do this automatically, but an explicit c++rt0.o
14156     # does not break anything, and helps significantly (at the cost of a little
14157     # extra space).
14158     freebsd2.2*)
14159       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14160       hardcode_libdir_flag_spec='-R$libdir'
14161       hardcode_direct=yes
14162       hardcode_shlibpath_var=no
14163       ;;
14164
14165     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14166     freebsd2*)
14167       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14168       hardcode_direct=yes
14169       hardcode_minus_L=yes
14170       hardcode_shlibpath_var=no
14171       ;;
14172
14173     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14174     freebsd* | dragonfly*)
14175       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14176       hardcode_libdir_flag_spec='-R$libdir'
14177       hardcode_direct=yes
14178       hardcode_shlibpath_var=no
14179       ;;
14180
14181     hpux9*)
14182       if test "$GCC" = yes; then
14183         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14184       else
14185         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'
14186       fi
14187       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14188       hardcode_libdir_separator=:
14189       hardcode_direct=yes
14190
14191       # hardcode_minus_L: Not really in the search PATH,
14192       # but as the default location of the library.
14193       hardcode_minus_L=yes
14194       export_dynamic_flag_spec='${wl}-E'
14195       ;;
14196
14197     hpux10*)
14198       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14199         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14200       else
14201         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14202       fi
14203       if test "$with_gnu_ld" = no; then
14204         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14205         hardcode_libdir_flag_spec_ld='+b $libdir'
14206         hardcode_libdir_separator=:
14207         hardcode_direct=yes
14208         hardcode_direct_absolute=yes
14209         export_dynamic_flag_spec='${wl}-E'
14210         # hardcode_minus_L: Not really in the search PATH,
14211         # but as the default location of the library.
14212         hardcode_minus_L=yes
14213       fi
14214       ;;
14215
14216     hpux11*)
14217       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14218         case $host_cpu in
14219         hppa*64*)
14220           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221           ;;
14222         ia64*)
14223           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14224           ;;
14225         *)
14226           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14227           ;;
14228         esac
14229       else
14230         case $host_cpu in
14231         hppa*64*)
14232           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14233           ;;
14234         ia64*)
14235           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14236           ;;
14237         *)
14238           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14239           ;;
14240         esac
14241       fi
14242       if test "$with_gnu_ld" = no; then
14243         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14244         hardcode_libdir_separator=:
14245
14246         case $host_cpu in
14247         hppa*64*|ia64*)
14248           hardcode_direct=no
14249           hardcode_shlibpath_var=no
14250           ;;
14251         *)
14252           hardcode_direct=yes
14253           hardcode_direct_absolute=yes
14254           export_dynamic_flag_spec='${wl}-E'
14255
14256           # hardcode_minus_L: Not really in the search PATH,
14257           # but as the default location of the library.
14258           hardcode_minus_L=yes
14259           ;;
14260         esac
14261       fi
14262       ;;
14263
14264     irix5* | irix6* | nonstopux*)
14265       if test "$GCC" = yes; then
14266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14267         # Try to use the -exported_symbol ld option, if it does not
14268         # work, assume that -exports_file does not work either and
14269         # implicitly export all symbols.
14270         save_LDFLAGS="$LDFLAGS"
14271         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274 int foo(void) {}
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14278
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext \
14281     conftest$ac_exeext conftest.$ac_ext
14282         LDFLAGS="$save_LDFLAGS"
14283       else
14284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14285         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
14286       fi
14287       archive_cmds_need_lc='no'
14288       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14289       hardcode_libdir_separator=:
14290       inherit_rpath=yes
14291       link_all_deplibs=yes
14292       ;;
14293
14294     netbsd*)
14295       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14296         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14297       else
14298         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14299       fi
14300       hardcode_libdir_flag_spec='-R$libdir'
14301       hardcode_direct=yes
14302       hardcode_shlibpath_var=no
14303       ;;
14304
14305     newsos6)
14306       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307       hardcode_direct=yes
14308       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14309       hardcode_libdir_separator=:
14310       hardcode_shlibpath_var=no
14311       ;;
14312
14313     *nto* | *qnx*)
14314       ;;
14315
14316     openbsd*)
14317       if test -f /usr/libexec/ld.so; then
14318         hardcode_direct=yes
14319         hardcode_shlibpath_var=no
14320         hardcode_direct_absolute=yes
14321         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14322           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14323           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14324           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14325           export_dynamic_flag_spec='${wl}-E'
14326         else
14327           case $host_os in
14328            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14329              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14330              hardcode_libdir_flag_spec='-R$libdir'
14331              ;;
14332            *)
14333              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14334              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14335              ;;
14336           esac
14337         fi
14338       else
14339         ld_shlibs=no
14340       fi
14341       ;;
14342
14343     os2*)
14344       hardcode_libdir_flag_spec='-L$libdir'
14345       hardcode_minus_L=yes
14346       allow_undefined_flag=unsupported
14347       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'
14348       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14349       ;;
14350
14351     osf3*)
14352       if test "$GCC" = yes; then
14353         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14354         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14355       else
14356         allow_undefined_flag=' -expect_unresolved \*'
14357         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14358       fi
14359       archive_cmds_need_lc='no'
14360       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14361       hardcode_libdir_separator=:
14362       ;;
14363
14364     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14365       if test "$GCC" = yes; then
14366         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14367         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14368         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14369       else
14370         allow_undefined_flag=' -expect_unresolved \*'
14371         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14372         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~
14373         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
14374
14375         # Both c and cxx compiler support -rpath directly
14376         hardcode_libdir_flag_spec='-rpath $libdir'
14377       fi
14378       archive_cmds_need_lc='no'
14379       hardcode_libdir_separator=:
14380       ;;
14381
14382     solaris*)
14383       no_undefined_flag=' -z defs'
14384       if test "$GCC" = yes; then
14385         wlarc='${wl}'
14386         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14388           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14389       else
14390         case `$CC -V 2>&1` in
14391         *"Compilers 5.0"*)
14392           wlarc=''
14393           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14394           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14395           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14396           ;;
14397         *)
14398           wlarc='${wl}'
14399           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14400           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14401           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14402           ;;
14403         esac
14404       fi
14405       hardcode_libdir_flag_spec='-R$libdir'
14406       hardcode_shlibpath_var=no
14407       case $host_os in
14408       solaris2.[0-5] | solaris2.[0-5].*) ;;
14409       *)
14410         # The compiler driver will combine and reorder linker options,
14411         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14412         # but is careful enough not to reorder.
14413         # Supported since Solaris 2.6 (maybe 2.5.1?)
14414         if test "$GCC" = yes; then
14415           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14416         else
14417           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14418         fi
14419         ;;
14420       esac
14421       link_all_deplibs=yes
14422       ;;
14423
14424     sunos4*)
14425       if test "x$host_vendor" = xsequent; then
14426         # Use $CC to link under sequent, because it throws in some extra .o
14427         # files that make .init and .fini sections work.
14428         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14429       else
14430         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14431       fi
14432       hardcode_libdir_flag_spec='-L$libdir'
14433       hardcode_direct=yes
14434       hardcode_minus_L=yes
14435       hardcode_shlibpath_var=no
14436       ;;
14437
14438     sysv4)
14439       case $host_vendor in
14440         sni)
14441           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442           hardcode_direct=yes # is this really true???
14443         ;;
14444         siemens)
14445           ## LD is ld it makes a PLAMLIB
14446           ## CC just makes a GrossModule.
14447           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14448           reload_cmds='$CC -r -o $output$reload_objs'
14449           hardcode_direct=no
14450         ;;
14451         motorola)
14452           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14454         ;;
14455       esac
14456       runpath_var='LD_RUN_PATH'
14457       hardcode_shlibpath_var=no
14458       ;;
14459
14460     sysv4.3*)
14461       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462       hardcode_shlibpath_var=no
14463       export_dynamic_flag_spec='-Bexport'
14464       ;;
14465
14466     sysv4*MP*)
14467       if test -d /usr/nec; then
14468         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469         hardcode_shlibpath_var=no
14470         runpath_var=LD_RUN_PATH
14471         hardcode_runpath_var=yes
14472         ld_shlibs=yes
14473       fi
14474       ;;
14475
14476     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14477       no_undefined_flag='${wl}-z,text'
14478       archive_cmds_need_lc=no
14479       hardcode_shlibpath_var=no
14480       runpath_var='LD_RUN_PATH'
14481
14482       if test "$GCC" = yes; then
14483         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14484         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485       else
14486         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488       fi
14489       ;;
14490
14491     sysv5* | sco3.2v5* | sco5v6*)
14492       # Note: We can NOT use -z defs as we might desire, because we do not
14493       # link with -lc, and that would cause any symbols used from libc to
14494       # always be unresolved, which means just about no library would
14495       # ever link correctly.  If we're not using GNU ld we use -z text
14496       # though, which does catch some bad symbols but isn't as heavy-handed
14497       # as -z defs.
14498       no_undefined_flag='${wl}-z,text'
14499       allow_undefined_flag='${wl}-z,nodefs'
14500       archive_cmds_need_lc=no
14501       hardcode_shlibpath_var=no
14502       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14503       hardcode_libdir_separator=':'
14504       link_all_deplibs=yes
14505       export_dynamic_flag_spec='${wl}-Bexport'
14506       runpath_var='LD_RUN_PATH'
14507
14508       if test "$GCC" = yes; then
14509         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511       else
14512         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14513         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514       fi
14515       ;;
14516
14517     uts4*)
14518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519       hardcode_libdir_flag_spec='-L$libdir'
14520       hardcode_shlibpath_var=no
14521       ;;
14522
14523     *)
14524       ld_shlibs=no
14525       ;;
14526     esac
14527
14528     if test x$host_vendor = xsni; then
14529       case $host in
14530       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14531         export_dynamic_flag_spec='${wl}-Blargedynsym'
14532         ;;
14533       esac
14534     fi
14535   fi
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14538 $as_echo "$ld_shlibs" >&6; }
14539 test "$ld_shlibs" = no && can_build_shared=no
14540
14541 with_gnu_ld=$with_gnu_ld
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557 #
14558 # Do we need to explicitly link libc?
14559 #
14560 case "x$archive_cmds_need_lc" in
14561 x|xyes)
14562   # Assume -lc should be added
14563   archive_cmds_need_lc=yes
14564
14565   if test "$enable_shared" = yes && test "$GCC" = yes; then
14566     case $archive_cmds in
14567     *'~'*)
14568       # FIXME: we may have to deal with multi-command sequences.
14569       ;;
14570     '$CC '*)
14571       # Test whether the compiler implicitly links with -lc since on some
14572       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14573       # to ld, don't add -lc before -lgcc.
14574       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14576       $RM conftest*
14577       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14578
14579       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14580   (eval $ac_compile) 2>&5
14581   ac_status=$?
14582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583   test $ac_status = 0; } 2>conftest.err; then
14584         soname=conftest
14585         lib=conftest
14586         libobjs=conftest.$ac_objext
14587         deplibs=
14588         wl=$lt_prog_compiler_wl
14589         pic_flag=$lt_prog_compiler_pic
14590         compiler_flags=-v
14591         linker_flags=-v
14592         verstring=
14593         output_objdir=.
14594         libname=conftest
14595         lt_save_allow_undefined_flag=$allow_undefined_flag
14596         allow_undefined_flag=
14597         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14598   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14599   ac_status=$?
14600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601   test $ac_status = 0; }
14602         then
14603           archive_cmds_need_lc=no
14604         else
14605           archive_cmds_need_lc=yes
14606         fi
14607         allow_undefined_flag=$lt_save_allow_undefined_flag
14608       else
14609         cat conftest.err 1>&5
14610       fi
14611       $RM conftest*
14612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14613 $as_echo "$archive_cmds_need_lc" >&6; }
14614       ;;
14615     esac
14616   fi
14617   ;;
14618 esac
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14777 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14778
14779 if test "$GCC" = yes; then
14780   case $host_os in
14781     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14782     *) lt_awk_arg="/^libraries:/" ;;
14783   esac
14784   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14785   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14786     # if the path contains ";" then we assume it to be the separator
14787     # otherwise default to the standard path separator (i.e. ":") - it is
14788     # assumed that no part of a normal pathname contains ";" but that should
14789     # okay in the real world where ";" in dirpaths is itself problematic.
14790     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14791   else
14792     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14793   fi
14794   # Ok, now we have the path, separated by spaces, we can step through it
14795   # and add multilib dir if necessary.
14796   lt_tmp_lt_search_path_spec=
14797   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14798   for lt_sys_path in $lt_search_path_spec; do
14799     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14800       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14801     else
14802       test -d "$lt_sys_path" && \
14803         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14804     fi
14805   done
14806   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14807 BEGIN {RS=" "; FS="/|\n";} {
14808   lt_foo="";
14809   lt_count=0;
14810   for (lt_i = NF; lt_i > 0; lt_i--) {
14811     if ($lt_i != "" && $lt_i != ".") {
14812       if ($lt_i == "..") {
14813         lt_count++;
14814       } else {
14815         if (lt_count == 0) {
14816           lt_foo="/" $lt_i lt_foo;
14817         } else {
14818           lt_count--;
14819         }
14820       }
14821     }
14822   }
14823   if (lt_foo != "") { lt_freq[lt_foo]++; }
14824   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14825 }'`
14826   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14827 else
14828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14829 fi
14830 library_names_spec=
14831 libname_spec='lib$name'
14832 soname_spec=
14833 shrext_cmds=".so"
14834 postinstall_cmds=
14835 postuninstall_cmds=
14836 finish_cmds=
14837 finish_eval=
14838 shlibpath_var=
14839 shlibpath_overrides_runpath=unknown
14840 version_type=none
14841 dynamic_linker="$host_os ld.so"
14842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14843 need_lib_prefix=unknown
14844 hardcode_into_libs=no
14845
14846 # when you set need_version to no, make sure it does not cause -set_version
14847 # flags to be left without arguments
14848 need_version=unknown
14849
14850 case $host_os in
14851 aix3*)
14852   version_type=linux
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14854   shlibpath_var=LIBPATH
14855
14856   # AIX 3 has no versioning support, so we append a major version to the name.
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   ;;
14859
14860 aix[4-9]*)
14861   version_type=linux
14862   need_lib_prefix=no
14863   need_version=no
14864   hardcode_into_libs=yes
14865   if test "$host_cpu" = ia64; then
14866     # AIX 5 supports IA64
14867     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14868     shlibpath_var=LD_LIBRARY_PATH
14869   else
14870     # With GCC up to 2.95.x, collect2 would create an import file
14871     # for dependence libraries.  The import file would start with
14872     # the line `#! .'.  This would cause the generated library to
14873     # depend on `.', always an invalid library.  This was fixed in
14874     # development snapshots of GCC prior to 3.0.
14875     case $host_os in
14876       aix4 | aix4.[01] | aix4.[01].*)
14877       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14878            echo ' yes '
14879            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14880         :
14881       else
14882         can_build_shared=no
14883       fi
14884       ;;
14885     esac
14886     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14887     # soname into executable. Probably we can add versioning support to
14888     # collect2, so additional links can be useful in future.
14889     if test "$aix_use_runtimelinking" = yes; then
14890       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14891       # instead of lib<name>.a to let people know that these are not
14892       # typical AIX shared libraries.
14893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894     else
14895       # We preserve .a as extension for shared libraries through AIX4.2
14896       # and later when we are not doing run time linking.
14897       library_names_spec='${libname}${release}.a $libname.a'
14898       soname_spec='${libname}${release}${shared_ext}$major'
14899     fi
14900     shlibpath_var=LIBPATH
14901   fi
14902   ;;
14903
14904 amigaos*)
14905   case $host_cpu in
14906   powerpc)
14907     # Since July 2007 AmigaOS4 officially supports .so libraries.
14908     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910     ;;
14911   m68k)
14912     library_names_spec='$libname.ixlibrary $libname.a'
14913     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14914     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14915     ;;
14916   esac
14917   ;;
14918
14919 beos*)
14920   library_names_spec='${libname}${shared_ext}'
14921   dynamic_linker="$host_os ld.so"
14922   shlibpath_var=LIBRARY_PATH
14923   ;;
14924
14925 bsdi[45]*)
14926   version_type=linux
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929   soname_spec='${libname}${release}${shared_ext}$major'
14930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14934   # the default ld.so.conf also contains /usr/contrib/lib and
14935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14936   # libtool to hard-code these into programs
14937   ;;
14938
14939 cygwin* | mingw* | pw32* | cegcc*)
14940   version_type=windows
14941   shrext_cmds=".dll"
14942   need_version=no
14943   need_lib_prefix=no
14944
14945   case $GCC,$host_os in
14946   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14947     library_names_spec='$libname.dll.a'
14948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14949     postinstall_cmds='base_file=`basename \${file}`~
14950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14951       dldir=$destdir/`dirname \$dlpath`~
14952       test -d \$dldir || mkdir -p \$dldir~
14953       $install_prog $dir/$dlname \$dldir/$dlname~
14954       chmod a+x \$dldir/$dlname~
14955       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14956         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14957       fi'
14958     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14959       dlpath=$dir/\$dldll~
14960        $RM \$dlpath'
14961     shlibpath_overrides_runpath=yes
14962
14963     case $host_os in
14964     cygwin*)
14965       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14966       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14967       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14968       ;;
14969     mingw* | cegcc*)
14970       # MinGW DLLs use traditional 'lib' prefix
14971       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14972       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14973       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14974         # It is most probably a Windows format PATH printed by
14975         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14976         # path with ; separators, and with drive letters. We can handle the
14977         # drive letters (cygwin fileutils understands them), so leave them,
14978         # especially as we might pass files found there to a mingw objdump,
14979         # which wouldn't understand a cygwinified path. Ahh.
14980         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14981       else
14982         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14983       fi
14984       ;;
14985     pw32*)
14986       # pw32 DLLs use 'pw' prefix rather than 'lib'
14987       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988       ;;
14989     esac
14990     ;;
14991
14992   *)
14993     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14994     ;;
14995   esac
14996   dynamic_linker='Win32 ld.exe'
14997   # FIXME: first we should search . and the directory the executable is in
14998   shlibpath_var=PATH
14999   ;;
15000
15001 darwin* | rhapsody*)
15002   dynamic_linker="$host_os dyld"
15003   version_type=darwin
15004   need_lib_prefix=no
15005   need_version=no
15006   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15007   soname_spec='${libname}${release}${major}$shared_ext'
15008   shlibpath_overrides_runpath=yes
15009   shlibpath_var=DYLD_LIBRARY_PATH
15010   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15011
15012   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15014   ;;
15015
15016 dgux*)
15017   version_type=linux
15018   need_lib_prefix=no
15019   need_version=no
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15021   soname_spec='${libname}${release}${shared_ext}$major'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   ;;
15024
15025 freebsd1*)
15026   dynamic_linker=no
15027   ;;
15028
15029 freebsd* | dragonfly*)
15030   # DragonFly does not have aout.  When/if they implement a new
15031   # versioning mechanism, adjust this.
15032   if test -x /usr/bin/objformat; then
15033     objformat=`/usr/bin/objformat`
15034   else
15035     case $host_os in
15036     freebsd[123]*) objformat=aout ;;
15037     *) objformat=elf ;;
15038     esac
15039   fi
15040   version_type=freebsd-$objformat
15041   case $version_type in
15042     freebsd-elf*)
15043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15044       need_version=no
15045       need_lib_prefix=no
15046       ;;
15047     freebsd-*)
15048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15049       need_version=yes
15050       ;;
15051   esac
15052   shlibpath_var=LD_LIBRARY_PATH
15053   case $host_os in
15054   freebsd2*)
15055     shlibpath_overrides_runpath=yes
15056     ;;
15057   freebsd3.[01]* | freebsdelf3.[01]*)
15058     shlibpath_overrides_runpath=yes
15059     hardcode_into_libs=yes
15060     ;;
15061   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15062   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15063     shlibpath_overrides_runpath=no
15064     hardcode_into_libs=yes
15065     ;;
15066   *) # from 4.6 on, and DragonFly
15067     shlibpath_overrides_runpath=yes
15068     hardcode_into_libs=yes
15069     ;;
15070   esac
15071   ;;
15072
15073 gnu*)
15074   version_type=linux
15075   need_lib_prefix=no
15076   need_version=no
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15078   soname_spec='${libname}${release}${shared_ext}$major'
15079   shlibpath_var=LD_LIBRARY_PATH
15080   hardcode_into_libs=yes
15081   ;;
15082
15083 hpux9* | hpux10* | hpux11*)
15084   # Give a soname corresponding to the major version so that dld.sl refuses to
15085   # link against other versions.
15086   version_type=sunos
15087   need_lib_prefix=no
15088   need_version=no
15089   case $host_cpu in
15090   ia64*)
15091     shrext_cmds='.so'
15092     hardcode_into_libs=yes
15093     dynamic_linker="$host_os dld.so"
15094     shlibpath_var=LD_LIBRARY_PATH
15095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097     soname_spec='${libname}${release}${shared_ext}$major'
15098     if test "X$HPUX_IA64_MODE" = X32; then
15099       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15100     else
15101       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15102     fi
15103     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15104     ;;
15105   hppa*64*)
15106     shrext_cmds='.sl'
15107     hardcode_into_libs=yes
15108     dynamic_linker="$host_os dld.sl"
15109     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112     soname_spec='${libname}${release}${shared_ext}$major'
15113     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15115     ;;
15116   *)
15117     shrext_cmds='.sl'
15118     dynamic_linker="$host_os dld.sl"
15119     shlibpath_var=SHLIB_PATH
15120     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122     soname_spec='${libname}${release}${shared_ext}$major'
15123     ;;
15124   esac
15125   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15126   postinstall_cmds='chmod 555 $lib'
15127   ;;
15128
15129 interix[3-9]*)
15130   version_type=linux
15131   need_lib_prefix=no
15132   need_version=no
15133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134   soname_spec='${libname}${release}${shared_ext}$major'
15135   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15136   shlibpath_var=LD_LIBRARY_PATH
15137   shlibpath_overrides_runpath=no
15138   hardcode_into_libs=yes
15139   ;;
15140
15141 irix5* | irix6* | nonstopux*)
15142   case $host_os in
15143     nonstopux*) version_type=nonstopux ;;
15144     *)
15145         if test "$lt_cv_prog_gnu_ld" = yes; then
15146                 version_type=linux
15147         else
15148                 version_type=irix
15149         fi ;;
15150   esac
15151   need_lib_prefix=no
15152   need_version=no
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15155   case $host_os in
15156   irix5* | nonstopux*)
15157     libsuff= shlibsuff=
15158     ;;
15159   *)
15160     case $LD in # libtool.m4 will add one of these switches to LD
15161     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15162       libsuff= shlibsuff= libmagic=32-bit;;
15163     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15164       libsuff=32 shlibsuff=N32 libmagic=N32;;
15165     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15166       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15167     *) libsuff= shlibsuff= libmagic=never-match;;
15168     esac
15169     ;;
15170   esac
15171   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15172   shlibpath_overrides_runpath=no
15173   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15174   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15175   hardcode_into_libs=yes
15176   ;;
15177
15178 # No shared lib support for Linux oldld, aout, or coff.
15179 linux*oldld* | linux*aout* | linux*coff*)
15180   dynamic_linker=no
15181   ;;
15182
15183 # This must be Linux ELF.
15184 linux* | k*bsd*-gnu)
15185   version_type=linux
15186   need_lib_prefix=no
15187   need_version=no
15188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189   soname_spec='${libname}${release}${shared_ext}$major'
15190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15191   shlibpath_var=LD_LIBRARY_PATH
15192   shlibpath_overrides_runpath=no
15193   # Some binutils ld are patched to set DT_RUNPATH
15194   save_LDFLAGS=$LDFLAGS
15195   save_libdir=$libdir
15196   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15197        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h.  */
15200
15201 int
15202 main ()
15203 {
15204
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 if ac_fn_c_try_link "$LINENO"; then :
15210   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15211   shlibpath_overrides_runpath=yes
15212 fi
15213 fi
15214 rm -f core conftest.err conftest.$ac_objext \
15215     conftest$ac_exeext conftest.$ac_ext
15216   LDFLAGS=$save_LDFLAGS
15217   libdir=$save_libdir
15218
15219   # This implies no fast_install, which is unacceptable.
15220   # Some rework will be needed to allow for fast_install
15221   # before this can be enabled.
15222   hardcode_into_libs=yes
15223
15224   # Add ABI-specific directories to the system library path.
15225   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15226
15227   # Append ld.so.conf contents to the search path
15228   if test -f /etc/ld.so.conf; then
15229     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15230     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15231   fi
15232
15233   # We used to test for /lib/ld.so.1 and disable shared libraries on
15234   # powerpc, because MkLinux only supported shared libraries with the
15235   # GNU dynamic linker.  Since this was broken with cross compilers,
15236   # most powerpc-linux boxes support dynamic linking these days and
15237   # people can always --disable-shared, the test was removed, and we
15238   # assume the GNU/Linux dynamic linker is in use.
15239   dynamic_linker='GNU/Linux ld.so'
15240   ;;
15241
15242 netbsd*)
15243   version_type=sunos
15244   need_lib_prefix=no
15245   need_version=no
15246   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15248     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15249     dynamic_linker='NetBSD (a.out) ld.so'
15250   else
15251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252     soname_spec='${libname}${release}${shared_ext}$major'
15253     dynamic_linker='NetBSD ld.elf_so'
15254   fi
15255   shlibpath_var=LD_LIBRARY_PATH
15256   shlibpath_overrides_runpath=yes
15257   hardcode_into_libs=yes
15258   ;;
15259
15260 newsos6)
15261   version_type=linux
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   shlibpath_var=LD_LIBRARY_PATH
15264   shlibpath_overrides_runpath=yes
15265   ;;
15266
15267 *nto* | *qnx*)
15268   version_type=qnx
15269   need_lib_prefix=no
15270   need_version=no
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272   soname_spec='${libname}${release}${shared_ext}$major'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   shlibpath_overrides_runpath=no
15275   hardcode_into_libs=yes
15276   dynamic_linker='ldqnx.so'
15277   ;;
15278
15279 openbsd*)
15280   version_type=sunos
15281   sys_lib_dlsearch_path_spec="/usr/lib"
15282   need_lib_prefix=no
15283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15284   case $host_os in
15285     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15286     *)                          need_version=no  ;;
15287   esac
15288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15290   shlibpath_var=LD_LIBRARY_PATH
15291   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15292     case $host_os in
15293       openbsd2.[89] | openbsd2.[89].*)
15294         shlibpath_overrides_runpath=no
15295         ;;
15296       *)
15297         shlibpath_overrides_runpath=yes
15298         ;;
15299       esac
15300   else
15301     shlibpath_overrides_runpath=yes
15302   fi
15303   ;;
15304
15305 os2*)
15306   libname_spec='$name'
15307   shrext_cmds=".dll"
15308   need_lib_prefix=no
15309   library_names_spec='$libname${shared_ext} $libname.a'
15310   dynamic_linker='OS/2 ld.exe'
15311   shlibpath_var=LIBPATH
15312   ;;
15313
15314 osf3* | osf4* | osf5*)
15315   version_type=osf
15316   need_lib_prefix=no
15317   need_version=no
15318   soname_spec='${libname}${release}${shared_ext}$major'
15319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15323   ;;
15324
15325 rdos*)
15326   dynamic_linker=no
15327   ;;
15328
15329 solaris*)
15330   version_type=linux
15331   need_lib_prefix=no
15332   need_version=no
15333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334   soname_spec='${libname}${release}${shared_ext}$major'
15335   shlibpath_var=LD_LIBRARY_PATH
15336   shlibpath_overrides_runpath=yes
15337   hardcode_into_libs=yes
15338   # ldd complains unless libraries are executable
15339   postinstall_cmds='chmod +x $lib'
15340   ;;
15341
15342 sunos4*)
15343   version_type=sunos
15344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   shlibpath_overrides_runpath=yes
15348   if test "$with_gnu_ld" = yes; then
15349     need_lib_prefix=no
15350   fi
15351   need_version=yes
15352   ;;
15353
15354 sysv4 | sysv4.3*)
15355   version_type=linux
15356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357   soname_spec='${libname}${release}${shared_ext}$major'
15358   shlibpath_var=LD_LIBRARY_PATH
15359   case $host_vendor in
15360     sni)
15361       shlibpath_overrides_runpath=no
15362       need_lib_prefix=no
15363       runpath_var=LD_RUN_PATH
15364       ;;
15365     siemens)
15366       need_lib_prefix=no
15367       ;;
15368     motorola)
15369       need_lib_prefix=no
15370       need_version=no
15371       shlibpath_overrides_runpath=no
15372       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15373       ;;
15374   esac
15375   ;;
15376
15377 sysv4*MP*)
15378   if test -d /usr/nec ;then
15379     version_type=linux
15380     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15381     soname_spec='$libname${shared_ext}.$major'
15382     shlibpath_var=LD_LIBRARY_PATH
15383   fi
15384   ;;
15385
15386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15387   version_type=freebsd-elf
15388   need_lib_prefix=no
15389   need_version=no
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   shlibpath_overrides_runpath=yes
15394   hardcode_into_libs=yes
15395   if test "$with_gnu_ld" = yes; then
15396     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15397   else
15398     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15399     case $host_os in
15400       sco3.2v5*)
15401         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15402         ;;
15403     esac
15404   fi
15405   sys_lib_dlsearch_path_spec='/usr/lib'
15406   ;;
15407
15408 tpf*)
15409   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15410   version_type=linux
15411   need_lib_prefix=no
15412   need_version=no
15413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414   shlibpath_var=LD_LIBRARY_PATH
15415   shlibpath_overrides_runpath=no
15416   hardcode_into_libs=yes
15417   ;;
15418
15419 uts4*)
15420   version_type=linux
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 *)
15427   dynamic_linker=no
15428   ;;
15429 esac
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15431 $as_echo "$dynamic_linker" >&6; }
15432 test "$dynamic_linker" = no && can_build_shared=no
15433
15434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15435 if test "$GCC" = yes; then
15436   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15437 fi
15438
15439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15440   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15441 fi
15442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15443   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15444 fi
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15533 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15534 hardcode_action=
15535 if test -n "$hardcode_libdir_flag_spec" ||
15536    test -n "$runpath_var" ||
15537    test "X$hardcode_automatic" = "Xyes" ; then
15538
15539   # We can hardcode non-existent directories.
15540   if test "$hardcode_direct" != no &&
15541      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15542      # have to relink, otherwise we might link with an installed library
15543      # when we should be linking with a yet-to-be-installed one
15544      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15545      test "$hardcode_minus_L" != no; then
15546     # Linking always hardcodes the temporary library directory.
15547     hardcode_action=relink
15548   else
15549     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15550     hardcode_action=immediate
15551   fi
15552 else
15553   # We cannot hardcode anything, or else we can only hardcode existing
15554   # directories.
15555   hardcode_action=unsupported
15556 fi
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15558 $as_echo "$hardcode_action" >&6; }
15559
15560 if test "$hardcode_action" = relink ||
15561    test "$inherit_rpath" = yes; then
15562   # Fast installation is not supported
15563   enable_fast_install=no
15564 elif test "$shlibpath_overrides_runpath" = yes ||
15565      test "$enable_shared" = no; then
15566   # Fast installation is not necessary
15567   enable_fast_install=needless
15568 fi
15569
15570
15571
15572
15573
15574
15575   if test "x$enable_dlopen" != xyes; then
15576   enable_dlopen=unknown
15577   enable_dlopen_self=unknown
15578   enable_dlopen_self_static=unknown
15579 else
15580   lt_cv_dlopen=no
15581   lt_cv_dlopen_libs=
15582
15583   case $host_os in
15584   beos*)
15585     lt_cv_dlopen="load_add_on"
15586     lt_cv_dlopen_libs=
15587     lt_cv_dlopen_self=yes
15588     ;;
15589
15590   mingw* | pw32* | cegcc*)
15591     lt_cv_dlopen="LoadLibrary"
15592     lt_cv_dlopen_libs=
15593     ;;
15594
15595   cygwin*)
15596     lt_cv_dlopen="dlopen"
15597     lt_cv_dlopen_libs=
15598     ;;
15599
15600   darwin*)
15601   # if libdl is installed we need to link against it
15602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15605   $as_echo_n "(cached) " >&6
15606 else
15607   ac_check_lib_save_LIBS=$LIBS
15608 LIBS="-ldl  $LIBS"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611
15612 /* Override any GCC internal prototype to avoid an error.
15613    Use char because int might match the return type of a GCC
15614    builtin and then its argument prototype would still apply.  */
15615 #ifdef __cplusplus
15616 extern "C"
15617 #endif
15618 char dlopen ();
15619 int
15620 main ()
15621 {
15622 return dlopen ();
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"; then :
15628   ac_cv_lib_dl_dlopen=yes
15629 else
15630   ac_cv_lib_dl_dlopen=no
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext \
15633     conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15635 fi
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15638 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15640 else
15641
15642     lt_cv_dlopen="dyld"
15643     lt_cv_dlopen_libs=
15644     lt_cv_dlopen_self=yes
15645
15646 fi
15647
15648     ;;
15649
15650   *)
15651     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15652 if test "x$ac_cv_func_shl_load" = x""yes; then :
15653   lt_cv_dlopen="shl_load"
15654 else
15655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15656 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15658   $as_echo_n "(cached) " >&6
15659 else
15660   ac_check_lib_save_LIBS=$LIBS
15661 LIBS="-ldld  $LIBS"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h.  */
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666    Use char because int might match the return type of a GCC
15667    builtin and then its argument prototype would still apply.  */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char shl_load ();
15672 int
15673 main ()
15674 {
15675 return shl_load ();
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681   ac_cv_lib_dld_shl_load=yes
15682 else
15683   ac_cv_lib_dld_shl_load=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext \
15686     conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15690 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15691 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15692   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15693 else
15694   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15695 if test "x$ac_cv_func_dlopen" = x""yes; then :
15696   lt_cv_dlopen="dlopen"
15697 else
15698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15700 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15701   $as_echo_n "(cached) " >&6
15702 else
15703   ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-ldl  $LIBS"
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h.  */
15707
15708 /* Override any GCC internal prototype to avoid an error.
15709    Use char because int might match the return type of a GCC
15710    builtin and then its argument prototype would still apply.  */
15711 #ifdef __cplusplus
15712 extern "C"
15713 #endif
15714 char dlopen ();
15715 int
15716 main ()
15717 {
15718 return dlopen ();
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 if ac_fn_c_try_link "$LINENO"; then :
15724   ac_cv_lib_dl_dlopen=yes
15725 else
15726   ac_cv_lib_dl_dlopen=no
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext \
15729     conftest$ac_exeext conftest.$ac_ext
15730 LIBS=$ac_check_lib_save_LIBS
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15733 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15734 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15735   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15736 else
15737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15738 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15739 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15740   $as_echo_n "(cached) " >&6
15741 else
15742   ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-lsvld  $LIBS"
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h.  */
15746
15747 /* Override any GCC internal prototype to avoid an error.
15748    Use char because int might match the return type of a GCC
15749    builtin and then its argument prototype would still apply.  */
15750 #ifdef __cplusplus
15751 extern "C"
15752 #endif
15753 char dlopen ();
15754 int
15755 main ()
15756 {
15757 return dlopen ();
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 if ac_fn_c_try_link "$LINENO"; then :
15763   ac_cv_lib_svld_dlopen=yes
15764 else
15765   ac_cv_lib_svld_dlopen=no
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext \
15768     conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15772 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15773 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15775 else
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15777 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15778 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15779   $as_echo_n "(cached) " >&6
15780 else
15781   ac_check_lib_save_LIBS=$LIBS
15782 LIBS="-ldld  $LIBS"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h.  */
15785
15786 /* Override any GCC internal prototype to avoid an error.
15787    Use char because int might match the return type of a GCC
15788    builtin and then its argument prototype would still apply.  */
15789 #ifdef __cplusplus
15790 extern "C"
15791 #endif
15792 char dld_link ();
15793 int
15794 main ()
15795 {
15796 return dld_link ();
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 if ac_fn_c_try_link "$LINENO"; then :
15802   ac_cv_lib_dld_dld_link=yes
15803 else
15804   ac_cv_lib_dld_dld_link=no
15805 fi
15806 rm -f core conftest.err conftest.$ac_objext \
15807     conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15809 fi
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15811 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15812 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15813   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15814 fi
15815
15816
15817 fi
15818
15819
15820 fi
15821
15822
15823 fi
15824
15825
15826 fi
15827
15828
15829 fi
15830
15831     ;;
15832   esac
15833
15834   if test "x$lt_cv_dlopen" != xno; then
15835     enable_dlopen=yes
15836   else
15837     enable_dlopen=no
15838   fi
15839
15840   case $lt_cv_dlopen in
15841   dlopen)
15842     save_CPPFLAGS="$CPPFLAGS"
15843     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15844
15845     save_LDFLAGS="$LDFLAGS"
15846     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15847
15848     save_LIBS="$LIBS"
15849     LIBS="$lt_cv_dlopen_libs $LIBS"
15850
15851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15852 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15853 if test "${lt_cv_dlopen_self+set}" = set; then :
15854   $as_echo_n "(cached) " >&6
15855 else
15856           if test "$cross_compiling" = yes; then :
15857   lt_cv_dlopen_self=cross
15858 else
15859   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15860   lt_status=$lt_dlunknown
15861   cat > conftest.$ac_ext <<_LT_EOF
15862 #line 15862 "configure"
15863 #include "confdefs.h"
15864
15865 #if HAVE_DLFCN_H
15866 #include <dlfcn.h>
15867 #endif
15868
15869 #include <stdio.h>
15870
15871 #ifdef RTLD_GLOBAL
15872 #  define LT_DLGLOBAL           RTLD_GLOBAL
15873 #else
15874 #  ifdef DL_GLOBAL
15875 #    define LT_DLGLOBAL         DL_GLOBAL
15876 #  else
15877 #    define LT_DLGLOBAL         0
15878 #  endif
15879 #endif
15880
15881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15882    find out it does not work in some platform. */
15883 #ifndef LT_DLLAZY_OR_NOW
15884 #  ifdef RTLD_LAZY
15885 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15886 #  else
15887 #    ifdef DL_LAZY
15888 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15889 #    else
15890 #      ifdef RTLD_NOW
15891 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15892 #      else
15893 #        ifdef DL_NOW
15894 #          define LT_DLLAZY_OR_NOW      DL_NOW
15895 #        else
15896 #          define LT_DLLAZY_OR_NOW      0
15897 #        endif
15898 #      endif
15899 #    endif
15900 #  endif
15901 #endif
15902
15903 void fnord() { int i=42;}
15904 int main ()
15905 {
15906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15907   int status = $lt_dlunknown;
15908
15909   if (self)
15910     {
15911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15912       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15913       /* dlclose (self); */
15914     }
15915   else
15916     puts (dlerror ());
15917
15918   return status;
15919 }
15920 _LT_EOF
15921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15922   (eval $ac_link) 2>&5
15923   ac_status=$?
15924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15925   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15926     (./conftest; exit; ) >&5 2>/dev/null
15927     lt_status=$?
15928     case x$lt_status in
15929       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15930       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15931       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15932     esac
15933   else :
15934     # compilation failed
15935     lt_cv_dlopen_self=no
15936   fi
15937 fi
15938 rm -fr conftest*
15939
15940
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15943 $as_echo "$lt_cv_dlopen_self" >&6; }
15944
15945     if test "x$lt_cv_dlopen_self" = xyes; then
15946       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15948 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15949 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15950   $as_echo_n "(cached) " >&6
15951 else
15952           if test "$cross_compiling" = yes; then :
15953   lt_cv_dlopen_self_static=cross
15954 else
15955   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15956   lt_status=$lt_dlunknown
15957   cat > conftest.$ac_ext <<_LT_EOF
15958 #line 15958 "configure"
15959 #include "confdefs.h"
15960
15961 #if HAVE_DLFCN_H
15962 #include <dlfcn.h>
15963 #endif
15964
15965 #include <stdio.h>
15966
15967 #ifdef RTLD_GLOBAL
15968 #  define LT_DLGLOBAL           RTLD_GLOBAL
15969 #else
15970 #  ifdef DL_GLOBAL
15971 #    define LT_DLGLOBAL         DL_GLOBAL
15972 #  else
15973 #    define LT_DLGLOBAL         0
15974 #  endif
15975 #endif
15976
15977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15978    find out it does not work in some platform. */
15979 #ifndef LT_DLLAZY_OR_NOW
15980 #  ifdef RTLD_LAZY
15981 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15982 #  else
15983 #    ifdef DL_LAZY
15984 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15985 #    else
15986 #      ifdef RTLD_NOW
15987 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15988 #      else
15989 #        ifdef DL_NOW
15990 #          define LT_DLLAZY_OR_NOW      DL_NOW
15991 #        else
15992 #          define LT_DLLAZY_OR_NOW      0
15993 #        endif
15994 #      endif
15995 #    endif
15996 #  endif
15997 #endif
15998
15999 void fnord() { int i=42;}
16000 int main ()
16001 {
16002   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16003   int status = $lt_dlunknown;
16004
16005   if (self)
16006     {
16007       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16008       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16009       /* dlclose (self); */
16010     }
16011   else
16012     puts (dlerror ());
16013
16014   return status;
16015 }
16016 _LT_EOF
16017   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16018   (eval $ac_link) 2>&5
16019   ac_status=$?
16020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16021   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16022     (./conftest; exit; ) >&5 2>/dev/null
16023     lt_status=$?
16024     case x$lt_status in
16025       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16026       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16027       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16028     esac
16029   else :
16030     # compilation failed
16031     lt_cv_dlopen_self_static=no
16032   fi
16033 fi
16034 rm -fr conftest*
16035
16036
16037 fi
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16039 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16040     fi
16041
16042     CPPFLAGS="$save_CPPFLAGS"
16043     LDFLAGS="$save_LDFLAGS"
16044     LIBS="$save_LIBS"
16045     ;;
16046   esac
16047
16048   case $lt_cv_dlopen_self in
16049   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16050   *) enable_dlopen_self=unknown ;;
16051   esac
16052
16053   case $lt_cv_dlopen_self_static in
16054   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16055   *) enable_dlopen_self_static=unknown ;;
16056   esac
16057 fi
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075 striplib=
16076 old_striplib=
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16078 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16079 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16080   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16081   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083 $as_echo "yes" >&6; }
16084 else
16085 # FIXME - insert some real tests, host_os isn't really good enough
16086   case $host_os in
16087   darwin*)
16088     if test -n "$STRIP" ; then
16089       striplib="$STRIP -x"
16090       old_striplib="$STRIP -S"
16091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16092 $as_echo "yes" >&6; }
16093     else
16094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096     fi
16097     ;;
16098   *)
16099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16101     ;;
16102   esac
16103 fi
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116   # Report which library types will actually be built
16117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16118 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16120 $as_echo "$can_build_shared" >&6; }
16121
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16123 $as_echo_n "checking whether to build shared libraries... " >&6; }
16124   test "$can_build_shared" = "no" && enable_shared=no
16125
16126   # On AIX, shared libraries and static libraries use the same namespace, and
16127   # are all built from PIC.
16128   case $host_os in
16129   aix3*)
16130     test "$enable_shared" = yes && enable_static=no
16131     if test -n "$RANLIB"; then
16132       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16133       postinstall_cmds='$RANLIB $lib'
16134     fi
16135     ;;
16136
16137   aix[4-9]*)
16138     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16139       test "$enable_shared" = yes && enable_static=no
16140     fi
16141     ;;
16142   esac
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16144 $as_echo "$enable_shared" >&6; }
16145
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16147 $as_echo_n "checking whether to build static libraries... " >&6; }
16148   # Make sure either enable_shared or enable_static is yes.
16149   test "$enable_shared" = yes || enable_static=yes
16150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16151 $as_echo "$enable_static" >&6; }
16152
16153
16154
16155
16156 fi
16157 ac_ext=c
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162
16163 CC="$lt_save_CC"
16164
16165
16166 ac_ext=cpp
16167 ac_cpp='$CXXCPP $CPPFLAGS'
16168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16171
16172 archive_cmds_need_lc_CXX=no
16173 allow_undefined_flag_CXX=
16174 always_export_symbols_CXX=no
16175 archive_expsym_cmds_CXX=
16176 compiler_needs_object_CXX=no
16177 export_dynamic_flag_spec_CXX=
16178 hardcode_direct_CXX=no
16179 hardcode_direct_absolute_CXX=no
16180 hardcode_libdir_flag_spec_CXX=
16181 hardcode_libdir_flag_spec_ld_CXX=
16182 hardcode_libdir_separator_CXX=
16183 hardcode_minus_L_CXX=no
16184 hardcode_shlibpath_var_CXX=unsupported
16185 hardcode_automatic_CXX=no
16186 inherit_rpath_CXX=no
16187 module_cmds_CXX=
16188 module_expsym_cmds_CXX=
16189 link_all_deplibs_CXX=unknown
16190 old_archive_cmds_CXX=$old_archive_cmds
16191 no_undefined_flag_CXX=
16192 whole_archive_flag_spec_CXX=
16193 enable_shared_with_static_runtimes_CXX=no
16194
16195 # Source file extension for C++ test sources.
16196 ac_ext=cpp
16197
16198 # Object file extension for compiled C++ test sources.
16199 objext=o
16200 objext_CXX=$objext
16201
16202 # No sense in running all these tests if we already determined that
16203 # the CXX compiler isn't working.  Some variables (like enable_shared)
16204 # are currently assumed to apply to all compilers on this platform,
16205 # and will be corrupted by setting them based on a non-working compiler.
16206 if test "$_lt_caught_CXX_error" != yes; then
16207   # Code to be used in simple compile tests
16208   lt_simple_compile_test_code="int some_variable = 0;"
16209
16210   # Code to be used in simple link tests
16211   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16212
16213   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16214
16215
16216
16217
16218
16219
16220 # If no C compiler was specified, use CC.
16221 LTCC=${LTCC-"$CC"}
16222
16223 # If no C compiler flags were specified, use CFLAGS.
16224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16225
16226 # Allow CC to be a program name with arguments.
16227 compiler=$CC
16228
16229
16230   # save warnings/boilerplate of simple test code
16231   ac_outfile=conftest.$ac_objext
16232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16234 _lt_compiler_boilerplate=`cat conftest.err`
16235 $RM conftest*
16236
16237   ac_outfile=conftest.$ac_objext
16238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16240 _lt_linker_boilerplate=`cat conftest.err`
16241 $RM -r conftest*
16242
16243
16244   # Allow CC to be a program name with arguments.
16245   lt_save_CC=$CC
16246   lt_save_LD=$LD
16247   lt_save_GCC=$GCC
16248   GCC=$GXX
16249   lt_save_with_gnu_ld=$with_gnu_ld
16250   lt_save_path_LD=$lt_cv_path_LD
16251   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16252     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16253   else
16254     $as_unset lt_cv_prog_gnu_ld
16255   fi
16256   if test -n "${lt_cv_path_LDCXX+set}"; then
16257     lt_cv_path_LD=$lt_cv_path_LDCXX
16258   else
16259     $as_unset lt_cv_path_LD
16260   fi
16261   test -z "${LDCXX+set}" || LD=$LDCXX
16262   CC=${CXX-"c++"}
16263   compiler=$CC
16264   compiler_CXX=$CC
16265   for cc_temp in $compiler""; do
16266   case $cc_temp in
16267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16269     \-*) ;;
16270     *) break;;
16271   esac
16272 done
16273 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16274
16275
16276   if test -n "$compiler"; then
16277     # We don't want -fno-exception when compiling C++ code, so set the
16278     # no_builtin_flag separately
16279     if test "$GXX" = yes; then
16280       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16281     else
16282       lt_prog_compiler_no_builtin_flag_CXX=
16283     fi
16284
16285     if test "$GXX" = yes; then
16286       # Set up default GNU C++ configuration
16287
16288
16289
16290 # Check whether --with-gnu-ld was given.
16291 if test "${with_gnu_ld+set}" = set; then :
16292   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16293 else
16294   with_gnu_ld=no
16295 fi
16296
16297 ac_prog=ld
16298 if test "$GCC" = yes; then
16299   # Check if gcc -print-prog-name=ld gives a path.
16300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16301 $as_echo_n "checking for ld used by $CC... " >&6; }
16302   case $host in
16303   *-*-mingw*)
16304     # gcc leaves a trailing carriage return which upsets mingw
16305     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16306   *)
16307     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16308   esac
16309   case $ac_prog in
16310     # Accept absolute paths.
16311     [\\/]* | ?:[\\/]*)
16312       re_direlt='/[^/][^/]*/\.\./'
16313       # Canonicalize the pathname of ld
16314       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16315       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16316         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16317       done
16318       test -z "$LD" && LD="$ac_prog"
16319       ;;
16320   "")
16321     # If it fails, then pretend we aren't using GCC.
16322     ac_prog=ld
16323     ;;
16324   *)
16325     # If it is relative, then search for the first ld in PATH.
16326     with_gnu_ld=unknown
16327     ;;
16328   esac
16329 elif test "$with_gnu_ld" = yes; then
16330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16331 $as_echo_n "checking for GNU ld... " >&6; }
16332 else
16333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16334 $as_echo_n "checking for non-GNU ld... " >&6; }
16335 fi
16336 if test "${lt_cv_path_LD+set}" = set; then :
16337   $as_echo_n "(cached) " >&6
16338 else
16339   if test -z "$LD"; then
16340   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16341   for ac_dir in $PATH; do
16342     IFS="$lt_save_ifs"
16343     test -z "$ac_dir" && ac_dir=.
16344     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16345       lt_cv_path_LD="$ac_dir/$ac_prog"
16346       # Check to see if the program is GNU ld.  I'd rather use --version,
16347       # but apparently some variants of GNU ld only accept -v.
16348       # Break only if it was the GNU/non-GNU ld that we prefer.
16349       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16350       *GNU* | *'with BFD'*)
16351         test "$with_gnu_ld" != no && break
16352         ;;
16353       *)
16354         test "$with_gnu_ld" != yes && break
16355         ;;
16356       esac
16357     fi
16358   done
16359   IFS="$lt_save_ifs"
16360 else
16361   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16362 fi
16363 fi
16364
16365 LD="$lt_cv_path_LD"
16366 if test -n "$LD"; then
16367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16368 $as_echo "$LD" >&6; }
16369 else
16370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371 $as_echo "no" >&6; }
16372 fi
16373 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16377   $as_echo_n "(cached) " >&6
16378 else
16379   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16380 case `$LD -v 2>&1 </dev/null` in
16381 *GNU* | *'with BFD'*)
16382   lt_cv_prog_gnu_ld=yes
16383   ;;
16384 *)
16385   lt_cv_prog_gnu_ld=no
16386   ;;
16387 esac
16388 fi
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16391 with_gnu_ld=$lt_cv_prog_gnu_ld
16392
16393
16394
16395
16396
16397
16398
16399       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16400       # archiving commands below assume that GNU ld is being used.
16401       if test "$with_gnu_ld" = yes; then
16402         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16404
16405         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16406         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16407
16408         # If archive_cmds runs LD, not CC, wlarc should be empty
16409         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16410         #     investigate it a little bit more. (MM)
16411         wlarc='${wl}'
16412
16413         # ancient GNU ld didn't support --whole-archive et. al.
16414         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16415           $GREP 'no-whole-archive' > /dev/null; then
16416           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16417         else
16418           whole_archive_flag_spec_CXX=
16419         fi
16420       else
16421         with_gnu_ld=no
16422         wlarc=
16423
16424         # A generic and very simple default shared library creation
16425         # command for GNU C++ for the case where it uses the native
16426         # linker, instead of GNU ld.  If possible, this setting should
16427         # overridden to take advantage of the native linker features on
16428         # the platform it is being used on.
16429         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16430       fi
16431
16432       # Commands to make compiler produce verbose output that lists
16433       # what "hidden" libraries, object files and flags are used when
16434       # linking a shared library.
16435       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16436
16437     else
16438       GXX=no
16439       with_gnu_ld=no
16440       wlarc=
16441     fi
16442
16443     # PORTME: fill in a description of your system's C++ link characteristics
16444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16445 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16446     ld_shlibs_CXX=yes
16447     case $host_os in
16448       aix3*)
16449         # FIXME: insert proper C++ library support
16450         ld_shlibs_CXX=no
16451         ;;
16452       aix[4-9]*)
16453         if test "$host_cpu" = ia64; then
16454           # On IA64, the linker does run time linking by default, so we don't
16455           # have to do anything special.
16456           aix_use_runtimelinking=no
16457           exp_sym_flag='-Bexport'
16458           no_entry_flag=""
16459         else
16460           aix_use_runtimelinking=no
16461
16462           # Test if we are trying to use run time linking or normal
16463           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16464           # need to do runtime linking.
16465           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16466             for ld_flag in $LDFLAGS; do
16467               case $ld_flag in
16468               *-brtl*)
16469                 aix_use_runtimelinking=yes
16470                 break
16471                 ;;
16472               esac
16473             done
16474             ;;
16475           esac
16476
16477           exp_sym_flag='-bexport'
16478           no_entry_flag='-bnoentry'
16479         fi
16480
16481         # When large executables or shared objects are built, AIX ld can
16482         # have problems creating the table of contents.  If linking a library
16483         # or program results in "error TOC overflow" add -mminimal-toc to
16484         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16485         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16486
16487         archive_cmds_CXX=''
16488         hardcode_direct_CXX=yes
16489         hardcode_direct_absolute_CXX=yes
16490         hardcode_libdir_separator_CXX=':'
16491         link_all_deplibs_CXX=yes
16492         file_list_spec_CXX='${wl}-f,'
16493
16494         if test "$GXX" = yes; then
16495           case $host_os in aix4.[012]|aix4.[012].*)
16496           # We only want to do this on AIX 4.2 and lower, the check
16497           # below for broken collect2 doesn't work under 4.3+
16498           collect2name=`${CC} -print-prog-name=collect2`
16499           if test -f "$collect2name" &&
16500              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16501           then
16502             # We have reworked collect2
16503             :
16504           else
16505             # We have old collect2
16506             hardcode_direct_CXX=unsupported
16507             # It fails to find uninstalled libraries when the uninstalled
16508             # path is not listed in the libpath.  Setting hardcode_minus_L
16509             # to unsupported forces relinking
16510             hardcode_minus_L_CXX=yes
16511             hardcode_libdir_flag_spec_CXX='-L$libdir'
16512             hardcode_libdir_separator_CXX=
16513           fi
16514           esac
16515           shared_flag='-shared'
16516           if test "$aix_use_runtimelinking" = yes; then
16517             shared_flag="$shared_flag "'${wl}-G'
16518           fi
16519         else
16520           # not using gcc
16521           if test "$host_cpu" = ia64; then
16522           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16523           # chokes on -Wl,-G. The following line is correct:
16524           shared_flag='-G'
16525           else
16526             if test "$aix_use_runtimelinking" = yes; then
16527               shared_flag='${wl}-G'
16528             else
16529               shared_flag='${wl}-bM:SRE'
16530             fi
16531           fi
16532         fi
16533
16534         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16535         # It seems that -bexpall does not export symbols beginning with
16536         # underscore (_), so it is better to generate a list of symbols to
16537         # export.
16538         always_export_symbols_CXX=yes
16539         if test "$aix_use_runtimelinking" = yes; then
16540           # Warning - without using the other runtime loading flags (-brtl),
16541           # -berok will link without error, but may produce a broken library.
16542           allow_undefined_flag_CXX='-berok'
16543           # Determine the default libpath from the value encoded in an empty
16544           # executable.
16545           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h.  */
16547
16548 int
16549 main ()
16550 {
16551
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 if ac_fn_cxx_try_link "$LINENO"; then :
16557
16558 lt_aix_libpath_sed='
16559     /Import File Strings/,/^$/ {
16560         /^0/ {
16561             s/^0  *\(.*\)$/\1/
16562             p
16563         }
16564     }'
16565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 # Check for a 64-bit object if we didn't find anything.
16567 if test -z "$aix_libpath"; then
16568   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16569 fi
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext \
16572     conftest$ac_exeext conftest.$ac_ext
16573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16574
16575           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16576
16577           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16578         else
16579           if test "$host_cpu" = ia64; then
16580             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16581             allow_undefined_flag_CXX="-z nodefs"
16582             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"
16583           else
16584             # Determine the default libpath from the value encoded in an
16585             # empty executable.
16586             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h.  */
16588
16589 int
16590 main ()
16591 {
16592
16593   ;
16594   return 0;
16595 }
16596 _ACEOF
16597 if ac_fn_cxx_try_link "$LINENO"; then :
16598
16599 lt_aix_libpath_sed='
16600     /Import File Strings/,/^$/ {
16601         /^0/ {
16602             s/^0  *\(.*\)$/\1/
16603             p
16604         }
16605     }'
16606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16607 # Check for a 64-bit object if we didn't find anything.
16608 if test -z "$aix_libpath"; then
16609   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16610 fi
16611 fi
16612 rm -f core conftest.err conftest.$ac_objext \
16613     conftest$ac_exeext conftest.$ac_ext
16614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16615
16616             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16617             # Warning - without using the other run time loading flags,
16618             # -berok will link without error, but may produce a broken library.
16619             no_undefined_flag_CXX=' ${wl}-bernotok'
16620             allow_undefined_flag_CXX=' ${wl}-berok'
16621             # Exported symbols can be pulled into shared objects from archives
16622             whole_archive_flag_spec_CXX='$convenience'
16623             archive_cmds_need_lc_CXX=yes
16624             # This is similar to how AIX traditionally builds its shared
16625             # libraries.
16626             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'
16627           fi
16628         fi
16629         ;;
16630
16631       beos*)
16632         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16633           allow_undefined_flag_CXX=unsupported
16634           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16635           # support --undefined.  This deserves some investigation.  FIXME
16636           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16637         else
16638           ld_shlibs_CXX=no
16639         fi
16640         ;;
16641
16642       chorus*)
16643         case $cc_basename in
16644           *)
16645           # FIXME: insert proper C++ library support
16646           ld_shlibs_CXX=no
16647           ;;
16648         esac
16649         ;;
16650
16651       cygwin* | mingw* | pw32* | cegcc*)
16652         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16653         # as there is no search path for DLLs.
16654         hardcode_libdir_flag_spec_CXX='-L$libdir'
16655         allow_undefined_flag_CXX=unsupported
16656         always_export_symbols_CXX=no
16657         enable_shared_with_static_runtimes_CXX=yes
16658
16659         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16660           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'
16661           # If the export-symbols file already is a .def file (1st line
16662           # is EXPORTS), use it as is; otherwise, prepend...
16663           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16664             cp $export_symbols $output_objdir/$soname.def;
16665           else
16666             echo EXPORTS > $output_objdir/$soname.def;
16667             cat $export_symbols >> $output_objdir/$soname.def;
16668           fi~
16669           $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'
16670         else
16671           ld_shlibs_CXX=no
16672         fi
16673         ;;
16674       darwin* | rhapsody*)
16675
16676
16677   archive_cmds_need_lc_CXX=no
16678   hardcode_direct_CXX=no
16679   hardcode_automatic_CXX=yes
16680   hardcode_shlibpath_var_CXX=unsupported
16681   whole_archive_flag_spec_CXX=''
16682   link_all_deplibs_CXX=yes
16683   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16684   case $cc_basename in
16685      ifort*) _lt_dar_can_shared=yes ;;
16686      *) _lt_dar_can_shared=$GCC ;;
16687   esac
16688   if test "$_lt_dar_can_shared" = "yes"; then
16689     output_verbose_link_cmd=echo
16690     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}"
16691     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16692     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}"
16693     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}"
16694        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16695       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}"
16696       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}"
16697     fi
16698
16699   else
16700   ld_shlibs_CXX=no
16701   fi
16702
16703         ;;
16704
16705       dgux*)
16706         case $cc_basename in
16707           ec++*)
16708             # FIXME: insert proper C++ library support
16709             ld_shlibs_CXX=no
16710             ;;
16711           ghcx*)
16712             # Green Hills C++ Compiler
16713             # FIXME: insert proper C++ library support
16714             ld_shlibs_CXX=no
16715             ;;
16716           *)
16717             # FIXME: insert proper C++ library support
16718             ld_shlibs_CXX=no
16719             ;;
16720         esac
16721         ;;
16722
16723       freebsd[12]*)
16724         # C++ shared libraries reported to be fairly broken before
16725         # switch to ELF
16726         ld_shlibs_CXX=no
16727         ;;
16728
16729       freebsd-elf*)
16730         archive_cmds_need_lc_CXX=no
16731         ;;
16732
16733       freebsd* | dragonfly*)
16734         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16735         # conventions
16736         ld_shlibs_CXX=yes
16737         ;;
16738
16739       gnu*)
16740         ;;
16741
16742       hpux9*)
16743         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16744         hardcode_libdir_separator_CXX=:
16745         export_dynamic_flag_spec_CXX='${wl}-E'
16746         hardcode_direct_CXX=yes
16747         hardcode_minus_L_CXX=yes # Not in the search PATH,
16748                                              # but as the default
16749                                              # location of the library.
16750
16751         case $cc_basename in
16752           CC*)
16753             # FIXME: insert proper C++ library support
16754             ld_shlibs_CXX=no
16755             ;;
16756           aCC*)
16757             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'
16758             # Commands to make compiler produce verbose output that lists
16759             # what "hidden" libraries, object files and flags are used when
16760             # linking a shared library.
16761             #
16762             # There doesn't appear to be a way to prevent this compiler from
16763             # explicitly linking system object files so we need to strip them
16764             # from the output so that they don't get included in the library
16765             # dependencies.
16766             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16767             ;;
16768           *)
16769             if test "$GXX" = yes; then
16770               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16771             else
16772               # FIXME: insert proper C++ library support
16773               ld_shlibs_CXX=no
16774             fi
16775             ;;
16776         esac
16777         ;;
16778
16779       hpux10*|hpux11*)
16780         if test $with_gnu_ld = no; then
16781           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16782           hardcode_libdir_separator_CXX=:
16783
16784           case $host_cpu in
16785             hppa*64*|ia64*)
16786               ;;
16787             *)
16788               export_dynamic_flag_spec_CXX='${wl}-E'
16789               ;;
16790           esac
16791         fi
16792         case $host_cpu in
16793           hppa*64*|ia64*)
16794             hardcode_direct_CXX=no
16795             hardcode_shlibpath_var_CXX=no
16796             ;;
16797           *)
16798             hardcode_direct_CXX=yes
16799             hardcode_direct_absolute_CXX=yes
16800             hardcode_minus_L_CXX=yes # Not in the search PATH,
16801                                                  # but as the default
16802                                                  # location of the library.
16803             ;;
16804         esac
16805
16806         case $cc_basename in
16807           CC*)
16808             # FIXME: insert proper C++ library support
16809             ld_shlibs_CXX=no
16810             ;;
16811           aCC*)
16812             case $host_cpu in
16813               hppa*64*)
16814                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16815                 ;;
16816               ia64*)
16817                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16818                 ;;
16819               *)
16820                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16821                 ;;
16822             esac
16823             # Commands to make compiler produce verbose output that lists
16824             # what "hidden" libraries, object files and flags are used when
16825             # linking a shared library.
16826             #
16827             # There doesn't appear to be a way to prevent this compiler from
16828             # explicitly linking system object files so we need to strip them
16829             # from the output so that they don't get included in the library
16830             # dependencies.
16831             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16832             ;;
16833           *)
16834             if test "$GXX" = yes; then
16835               if test $with_gnu_ld = no; then
16836                 case $host_cpu in
16837                   hppa*64*)
16838                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16839                     ;;
16840                   ia64*)
16841                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16842                     ;;
16843                   *)
16844                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16845                     ;;
16846                 esac
16847               fi
16848             else
16849               # FIXME: insert proper C++ library support
16850               ld_shlibs_CXX=no
16851             fi
16852             ;;
16853         esac
16854         ;;
16855
16856       interix[3-9]*)
16857         hardcode_direct_CXX=no
16858         hardcode_shlibpath_var_CXX=no
16859         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16860         export_dynamic_flag_spec_CXX='${wl}-E'
16861         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16862         # Instead, shared libraries are loaded at an image base (0x10000000 by
16863         # default) and relocated if they conflict, which is a slow very memory
16864         # consuming and fragmenting process.  To avoid this, we pick a random,
16865         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16866         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16867         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'
16868         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'
16869         ;;
16870       irix5* | irix6*)
16871         case $cc_basename in
16872           CC*)
16873             # SGI C++
16874             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16875
16876             # Archives containing C++ object files must be created using
16877             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16878             # necessary to make sure instantiated templates are included
16879             # in the archive.
16880             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16881             ;;
16882           *)
16883             if test "$GXX" = yes; then
16884               if test "$with_gnu_ld" = no; then
16885                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16886               else
16887                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16888               fi
16889             fi
16890             link_all_deplibs_CXX=yes
16891             ;;
16892         esac
16893         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16894         hardcode_libdir_separator_CXX=:
16895         inherit_rpath_CXX=yes
16896         ;;
16897
16898       linux* | k*bsd*-gnu)
16899         case $cc_basename in
16900           KCC*)
16901             # Kuck and Associates, Inc. (KAI) C++ Compiler
16902
16903             # KCC will only create a shared library if the output file
16904             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16905             # to its proper name (with version) after linking.
16906             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'
16907             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'
16908             # Commands to make compiler produce verbose output that lists
16909             # what "hidden" libraries, object files and flags are used when
16910             # linking a shared library.
16911             #
16912             # There doesn't appear to be a way to prevent this compiler from
16913             # explicitly linking system object files so we need to strip them
16914             # from the output so that they don't get included in the library
16915             # dependencies.
16916             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16917
16918             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16919             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16920
16921             # Archives containing C++ object files must be created using
16922             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16923             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16924             ;;
16925           icpc* | ecpc* )
16926             # Intel C++
16927             with_gnu_ld=yes
16928             # version 8.0 and above of icpc choke on multiply defined symbols
16929             # if we add $predep_objects and $postdep_objects, however 7.1 and
16930             # earlier do not add the objects themselves.
16931             case `$CC -V 2>&1` in
16932               *"Version 7."*)
16933                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934                 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'
16935                 ;;
16936               *)  # Version 8.0 or newer
16937                 tmp_idyn=
16938                 case $host_cpu in
16939                   ia64*) tmp_idyn=' -i_dynamic';;
16940                 esac
16941                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942                 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'
16943                 ;;
16944             esac
16945             archive_cmds_need_lc_CXX=no
16946             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16947             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16948             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16949             ;;
16950           pgCC* | pgcpp*)
16951             # Portland Group C++ compiler
16952             case `$CC -V` in
16953             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16954               prelink_cmds_CXX='tpldir=Template.dir~
16955                 rm -rf $tpldir~
16956                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16957                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16958               old_archive_cmds_CXX='tpldir=Template.dir~
16959                 rm -rf $tpldir~
16960                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16961                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16962                 $RANLIB $oldlib'
16963               archive_cmds_CXX='tpldir=Template.dir~
16964                 rm -rf $tpldir~
16965                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16966                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16967               archive_expsym_cmds_CXX='tpldir=Template.dir~
16968                 rm -rf $tpldir~
16969                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16970                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16971               ;;
16972             *) # Version 6 will use weak symbols
16973               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16974               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'
16975               ;;
16976             esac
16977
16978             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16979             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16980             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16981             ;;
16982           cxx*)
16983             # Compaq C++
16984             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16985             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'
16986
16987             runpath_var=LD_RUN_PATH
16988             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16989             hardcode_libdir_separator_CXX=:
16990
16991             # Commands to make compiler produce verbose output that lists
16992             # what "hidden" libraries, object files and flags are used when
16993             # linking a shared library.
16994             #
16995             # There doesn't appear to be a way to prevent this compiler from
16996             # explicitly linking system object files so we need to strip them
16997             # from the output so that they don't get included in the library
16998             # dependencies.
16999             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17000             ;;
17001           xl*)
17002             # IBM XL 8.0 on PPC, with GNU ld
17003             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17004             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17005             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17006             if test "x$supports_anon_versioning" = xyes; then
17007               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17008                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17009                 echo "local: *; };" >> $output_objdir/$libname.ver~
17010                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17011             fi
17012             ;;
17013           *)
17014             case `$CC -V 2>&1 | sed 5q` in
17015             *Sun\ C*)
17016               # Sun C++ 5.9
17017               no_undefined_flag_CXX=' -zdefs'
17018               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17019               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'
17020               hardcode_libdir_flag_spec_CXX='-R$libdir'
17021               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17022               compiler_needs_object_CXX=yes
17023
17024               # Not sure whether something based on
17025               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17026               # would be better.
17027               output_verbose_link_cmd='echo'
17028
17029               # Archives containing C++ object files must be created using
17030               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17031               # necessary to make sure instantiated templates are included
17032               # in the archive.
17033               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17034               ;;
17035             esac
17036             ;;
17037         esac
17038         ;;
17039
17040       lynxos*)
17041         # FIXME: insert proper C++ library support
17042         ld_shlibs_CXX=no
17043         ;;
17044
17045       m88k*)
17046         # FIXME: insert proper C++ library support
17047         ld_shlibs_CXX=no
17048         ;;
17049
17050       mvs*)
17051         case $cc_basename in
17052           cxx*)
17053             # FIXME: insert proper C++ library support
17054             ld_shlibs_CXX=no
17055             ;;
17056           *)
17057             # FIXME: insert proper C++ library support
17058             ld_shlibs_CXX=no
17059             ;;
17060         esac
17061         ;;
17062
17063       netbsd*)
17064         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17065           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17066           wlarc=
17067           hardcode_libdir_flag_spec_CXX='-R$libdir'
17068           hardcode_direct_CXX=yes
17069           hardcode_shlibpath_var_CXX=no
17070         fi
17071         # Workaround some broken pre-1.5 toolchains
17072         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17073         ;;
17074
17075       *nto* | *qnx*)
17076         ld_shlibs_CXX=yes
17077         ;;
17078
17079       openbsd2*)
17080         # C++ shared libraries are fairly broken
17081         ld_shlibs_CXX=no
17082         ;;
17083
17084       openbsd*)
17085         if test -f /usr/libexec/ld.so; then
17086           hardcode_direct_CXX=yes
17087           hardcode_shlibpath_var_CXX=no
17088           hardcode_direct_absolute_CXX=yes
17089           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17090           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17091           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17092             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17093             export_dynamic_flag_spec_CXX='${wl}-E'
17094             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17095           fi
17096           output_verbose_link_cmd=echo
17097         else
17098           ld_shlibs_CXX=no
17099         fi
17100         ;;
17101
17102       osf3* | osf4* | osf5*)
17103         case $cc_basename in
17104           KCC*)
17105             # Kuck and Associates, Inc. (KAI) C++ Compiler
17106
17107             # KCC will only create a shared library if the output file
17108             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17109             # to its proper name (with version) after linking.
17110             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'
17111
17112             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17113             hardcode_libdir_separator_CXX=:
17114
17115             # Archives containing C++ object files must be created using
17116             # the KAI C++ compiler.
17117             case $host in
17118               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17119               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17120             esac
17121             ;;
17122           RCC*)
17123             # Rational C++ 2.4.1
17124             # FIXME: insert proper C++ library support
17125             ld_shlibs_CXX=no
17126             ;;
17127           cxx*)
17128             case $host in
17129               osf3*)
17130                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17131                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17132                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17133                 ;;
17134               *)
17135                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17136                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17137                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17138                   echo "-hidden">> $lib.exp~
17139                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
17140                   $RM $lib.exp'
17141                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17142                 ;;
17143             esac
17144
17145             hardcode_libdir_separator_CXX=:
17146
17147             # Commands to make compiler produce verbose output that lists
17148             # what "hidden" libraries, object files and flags are used when
17149             # linking a shared library.
17150             #
17151             # There doesn't appear to be a way to prevent this compiler from
17152             # explicitly linking system object files so we need to strip them
17153             # from the output so that they don't get included in the library
17154             # dependencies.
17155             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17156             ;;
17157           *)
17158             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17159               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17160               case $host in
17161                 osf3*)
17162                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17163                   ;;
17164                 *)
17165                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17166                   ;;
17167               esac
17168
17169               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17170               hardcode_libdir_separator_CXX=:
17171
17172               # Commands to make compiler produce verbose output that lists
17173               # what "hidden" libraries, object files and flags are used when
17174               # linking a shared library.
17175               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17176
17177             else
17178               # FIXME: insert proper C++ library support
17179               ld_shlibs_CXX=no
17180             fi
17181             ;;
17182         esac
17183         ;;
17184
17185       psos*)
17186         # FIXME: insert proper C++ library support
17187         ld_shlibs_CXX=no
17188         ;;
17189
17190       sunos4*)
17191         case $cc_basename in
17192           CC*)
17193             # Sun C++ 4.x
17194             # FIXME: insert proper C++ library support
17195             ld_shlibs_CXX=no
17196             ;;
17197           lcc*)
17198             # Lucid
17199             # FIXME: insert proper C++ library support
17200             ld_shlibs_CXX=no
17201             ;;
17202           *)
17203             # FIXME: insert proper C++ library support
17204             ld_shlibs_CXX=no
17205             ;;
17206         esac
17207         ;;
17208
17209       solaris*)
17210         case $cc_basename in
17211           CC*)
17212             # Sun C++ 4.2, 5.x and Centerline C++
17213             archive_cmds_need_lc_CXX=yes
17214             no_undefined_flag_CXX=' -zdefs'
17215             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17216             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17217               $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'
17218
17219             hardcode_libdir_flag_spec_CXX='-R$libdir'
17220             hardcode_shlibpath_var_CXX=no
17221             case $host_os in
17222               solaris2.[0-5] | solaris2.[0-5].*) ;;
17223               *)
17224                 # The compiler driver will combine and reorder linker options,
17225                 # but understands `-z linker_flag'.
17226                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17227                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17228                 ;;
17229             esac
17230             link_all_deplibs_CXX=yes
17231
17232             output_verbose_link_cmd='echo'
17233
17234             # Archives containing C++ object files must be created using
17235             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17236             # necessary to make sure instantiated templates are included
17237             # in the archive.
17238             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17239             ;;
17240           gcx*)
17241             # Green Hills C++ Compiler
17242             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17243
17244             # The C++ compiler must be used to create the archive.
17245             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17246             ;;
17247           *)
17248             # GNU C++ compiler with Solaris linker
17249             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17250               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17251               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17252                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17253                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17254                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17255
17256                 # Commands to make compiler produce verbose output that lists
17257                 # what "hidden" libraries, object files and flags are used when
17258                 # linking a shared library.
17259                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17260               else
17261                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17262                 # platform.
17263                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17264                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17266
17267                 # Commands to make compiler produce verbose output that lists
17268                 # what "hidden" libraries, object files and flags are used when
17269                 # linking a shared library.
17270                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17271               fi
17272
17273               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17274               case $host_os in
17275                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17276                 *)
17277                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17278                   ;;
17279               esac
17280             fi
17281             ;;
17282         esac
17283         ;;
17284
17285     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17286       no_undefined_flag_CXX='${wl}-z,text'
17287       archive_cmds_need_lc_CXX=no
17288       hardcode_shlibpath_var_CXX=no
17289       runpath_var='LD_RUN_PATH'
17290
17291       case $cc_basename in
17292         CC*)
17293           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17294           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295           ;;
17296         *)
17297           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299           ;;
17300       esac
17301       ;;
17302
17303       sysv5* | sco3.2v5* | sco5v6*)
17304         # Note: We can NOT use -z defs as we might desire, because we do not
17305         # link with -lc, and that would cause any symbols used from libc to
17306         # always be unresolved, which means just about no library would
17307         # ever link correctly.  If we're not using GNU ld we use -z text
17308         # though, which does catch some bad symbols but isn't as heavy-handed
17309         # as -z defs.
17310         no_undefined_flag_CXX='${wl}-z,text'
17311         allow_undefined_flag_CXX='${wl}-z,nodefs'
17312         archive_cmds_need_lc_CXX=no
17313         hardcode_shlibpath_var_CXX=no
17314         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17315         hardcode_libdir_separator_CXX=':'
17316         link_all_deplibs_CXX=yes
17317         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17318         runpath_var='LD_RUN_PATH'
17319
17320         case $cc_basename in
17321           CC*)
17322             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17323             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17324             ;;
17325           *)
17326             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328             ;;
17329         esac
17330       ;;
17331
17332       tandem*)
17333         case $cc_basename in
17334           NCC*)
17335             # NonStop-UX NCC 3.20
17336             # FIXME: insert proper C++ library support
17337             ld_shlibs_CXX=no
17338             ;;
17339           *)
17340             # FIXME: insert proper C++ library support
17341             ld_shlibs_CXX=no
17342             ;;
17343         esac
17344         ;;
17345
17346       vxworks*)
17347         # FIXME: insert proper C++ library support
17348         ld_shlibs_CXX=no
17349         ;;
17350
17351       *)
17352         # FIXME: insert proper C++ library support
17353         ld_shlibs_CXX=no
17354         ;;
17355     esac
17356
17357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17358 $as_echo "$ld_shlibs_CXX" >&6; }
17359     test "$ld_shlibs_CXX" = no && can_build_shared=no
17360
17361     GCC_CXX="$GXX"
17362     LD_CXX="$LD"
17363
17364     ## CAVEAT EMPTOR:
17365     ## There is no encapsulation within the following macros, do not change
17366     ## the running order or otherwise move them around unless you know exactly
17367     ## what you are doing...
17368     # Dependencies to place before and after the object being linked:
17369 predep_objects_CXX=
17370 postdep_objects_CXX=
17371 predeps_CXX=
17372 postdeps_CXX=
17373 compiler_lib_search_path_CXX=
17374
17375 cat > conftest.$ac_ext <<_LT_EOF
17376 class Foo
17377 {
17378 public:
17379   Foo (void) { a = 0; }
17380 private:
17381   int a;
17382 };
17383 _LT_EOF
17384
17385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17386   (eval $ac_compile) 2>&5
17387   ac_status=$?
17388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389   test $ac_status = 0; }; then
17390   # Parse the compiler output and extract the necessary
17391   # objects, libraries and library flags.
17392
17393   # Sentinel used to keep track of whether or not we are before
17394   # the conftest object file.
17395   pre_test_object_deps_done=no
17396
17397   for p in `eval "$output_verbose_link_cmd"`; do
17398     case $p in
17399
17400     -L* | -R* | -l*)
17401        # Some compilers place space between "-{L,R}" and the path.
17402        # Remove the space.
17403        if test $p = "-L" ||
17404           test $p = "-R"; then
17405          prev=$p
17406          continue
17407        else
17408          prev=
17409        fi
17410
17411        if test "$pre_test_object_deps_done" = no; then
17412          case $p in
17413          -L* | -R*)
17414            # Internal compiler library paths should come after those
17415            # provided the user.  The postdeps already come after the
17416            # user supplied libs so there is no need to process them.
17417            if test -z "$compiler_lib_search_path_CXX"; then
17418              compiler_lib_search_path_CXX="${prev}${p}"
17419            else
17420              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17421            fi
17422            ;;
17423          # The "-l" case would never come before the object being
17424          # linked, so don't bother handling this case.
17425          esac
17426        else
17427          if test -z "$postdeps_CXX"; then
17428            postdeps_CXX="${prev}${p}"
17429          else
17430            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17431          fi
17432        fi
17433        ;;
17434
17435     *.$objext)
17436        # This assumes that the test object file only shows up
17437        # once in the compiler output.
17438        if test "$p" = "conftest.$objext"; then
17439          pre_test_object_deps_done=yes
17440          continue
17441        fi
17442
17443        if test "$pre_test_object_deps_done" = no; then
17444          if test -z "$predep_objects_CXX"; then
17445            predep_objects_CXX="$p"
17446          else
17447            predep_objects_CXX="$predep_objects_CXX $p"
17448          fi
17449        else
17450          if test -z "$postdep_objects_CXX"; then
17451            postdep_objects_CXX="$p"
17452          else
17453            postdep_objects_CXX="$postdep_objects_CXX $p"
17454          fi
17455        fi
17456        ;;
17457
17458     *) ;; # Ignore the rest.
17459
17460     esac
17461   done
17462
17463   # Clean up.
17464   rm -f a.out a.exe
17465 else
17466   echo "libtool.m4: error: problem compiling CXX test program"
17467 fi
17468
17469 $RM -f confest.$objext
17470
17471 # PORTME: override above test on systems where it is broken
17472 case $host_os in
17473 interix[3-9]*)
17474   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17475   # hack all around it, let's just trust "g++" to DTRT.
17476   predep_objects_CXX=
17477   postdep_objects_CXX=
17478   postdeps_CXX=
17479   ;;
17480
17481 linux*)
17482   case `$CC -V 2>&1 | sed 5q` in
17483   *Sun\ C*)
17484     # Sun C++ 5.9
17485
17486     # The more standards-conforming stlport4 library is
17487     # incompatible with the Cstd library. Avoid specifying
17488     # it if it's in CXXFLAGS. Ignore libCrun as
17489     # -library=stlport4 depends on it.
17490     case " $CXX $CXXFLAGS " in
17491     *" -library=stlport4 "*)
17492       solaris_use_stlport4=yes
17493       ;;
17494     esac
17495
17496     if test "$solaris_use_stlport4" != yes; then
17497       postdeps_CXX='-library=Cstd -library=Crun'
17498     fi
17499     ;;
17500   esac
17501   ;;
17502
17503 solaris*)
17504   case $cc_basename in
17505   CC*)
17506     # The more standards-conforming stlport4 library is
17507     # incompatible with the Cstd library. Avoid specifying
17508     # it if it's in CXXFLAGS. Ignore libCrun as
17509     # -library=stlport4 depends on it.
17510     case " $CXX $CXXFLAGS " in
17511     *" -library=stlport4 "*)
17512       solaris_use_stlport4=yes
17513       ;;
17514     esac
17515
17516     # Adding this requires a known-good setup of shared libraries for
17517     # Sun compiler versions before 5.6, else PIC objects from an old
17518     # archive will be linked into the output, leading to subtle bugs.
17519     if test "$solaris_use_stlport4" != yes; then
17520       postdeps_CXX='-library=Cstd -library=Crun'
17521     fi
17522     ;;
17523   esac
17524   ;;
17525 esac
17526
17527
17528 case " $postdeps_CXX " in
17529 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17530 esac
17531  compiler_lib_search_dirs_CXX=
17532 if test -n "${compiler_lib_search_path_CXX}"; then
17533  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17534 fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566     lt_prog_compiler_wl_CXX=
17567 lt_prog_compiler_pic_CXX=
17568 lt_prog_compiler_static_CXX=
17569
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17571 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17572
17573   # C++ specific cases for pic, static, wl, etc.
17574   if test "$GXX" = yes; then
17575     lt_prog_compiler_wl_CXX='-Wl,'
17576     lt_prog_compiler_static_CXX='-static'
17577
17578     case $host_os in
17579     aix*)
17580       # All AIX code is PIC.
17581       if test "$host_cpu" = ia64; then
17582         # AIX 5 now supports IA64 processor
17583         lt_prog_compiler_static_CXX='-Bstatic'
17584       fi
17585       ;;
17586
17587     amigaos*)
17588       case $host_cpu in
17589       powerpc)
17590             # see comment about AmigaOS4 .so support
17591             lt_prog_compiler_pic_CXX='-fPIC'
17592         ;;
17593       m68k)
17594             # FIXME: we need at least 68020 code to build shared libraries, but
17595             # adding the `-m68020' flag to GCC prevents building anything better,
17596             # like `-m68040'.
17597             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17598         ;;
17599       esac
17600       ;;
17601
17602     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17603       # PIC is the default for these OSes.
17604       ;;
17605     mingw* | cygwin* | os2* | pw32* | cegcc*)
17606       # This hack is so that the source file can tell whether it is being
17607       # built for inclusion in a dll (and should export symbols for example).
17608       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17609       # (--disable-auto-import) libraries
17610       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17611       ;;
17612     darwin* | rhapsody*)
17613       # PIC is the default on this platform
17614       # Common symbols not allowed in MH_DYLIB files
17615       lt_prog_compiler_pic_CXX='-fno-common'
17616       ;;
17617     *djgpp*)
17618       # DJGPP does not support shared libraries at all
17619       lt_prog_compiler_pic_CXX=
17620       ;;
17621     interix[3-9]*)
17622       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17623       # Instead, we relocate shared libraries at runtime.
17624       ;;
17625     sysv4*MP*)
17626       if test -d /usr/nec; then
17627         lt_prog_compiler_pic_CXX=-Kconform_pic
17628       fi
17629       ;;
17630     hpux*)
17631       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17632       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17633       # sets the default TLS model and affects inlining.
17634       case $host_cpu in
17635       hppa*64*)
17636         ;;
17637       *)
17638         lt_prog_compiler_pic_CXX='-fPIC'
17639         ;;
17640       esac
17641       ;;
17642     *qnx* | *nto*)
17643       # QNX uses GNU C++, but need to define -shared option too, otherwise
17644       # it will coredump.
17645       lt_prog_compiler_pic_CXX='-fPIC -shared'
17646       ;;
17647     *)
17648       lt_prog_compiler_pic_CXX='-fPIC'
17649       ;;
17650     esac
17651   else
17652     case $host_os in
17653       aix[4-9]*)
17654         # All AIX code is PIC.
17655         if test "$host_cpu" = ia64; then
17656           # AIX 5 now supports IA64 processor
17657           lt_prog_compiler_static_CXX='-Bstatic'
17658         else
17659           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17660         fi
17661         ;;
17662       chorus*)
17663         case $cc_basename in
17664         cxch68*)
17665           # Green Hills C++ Compiler
17666           # _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"
17667           ;;
17668         esac
17669         ;;
17670       dgux*)
17671         case $cc_basename in
17672           ec++*)
17673             lt_prog_compiler_pic_CXX='-KPIC'
17674             ;;
17675           ghcx*)
17676             # Green Hills C++ Compiler
17677             lt_prog_compiler_pic_CXX='-pic'
17678             ;;
17679           *)
17680             ;;
17681         esac
17682         ;;
17683       freebsd* | dragonfly*)
17684         # FreeBSD uses GNU C++
17685         ;;
17686       hpux9* | hpux10* | hpux11*)
17687         case $cc_basename in
17688           CC*)
17689             lt_prog_compiler_wl_CXX='-Wl,'
17690             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17691             if test "$host_cpu" != ia64; then
17692               lt_prog_compiler_pic_CXX='+Z'
17693             fi
17694             ;;
17695           aCC*)
17696             lt_prog_compiler_wl_CXX='-Wl,'
17697             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17698             case $host_cpu in
17699             hppa*64*|ia64*)
17700               # +Z the default
17701               ;;
17702             *)
17703               lt_prog_compiler_pic_CXX='+Z'
17704               ;;
17705             esac
17706             ;;
17707           *)
17708             ;;
17709         esac
17710         ;;
17711       interix*)
17712         # This is c89, which is MS Visual C++ (no shared libs)
17713         # Anyone wants to do a port?
17714         ;;
17715       irix5* | irix6* | nonstopux*)
17716         case $cc_basename in
17717           CC*)
17718             lt_prog_compiler_wl_CXX='-Wl,'
17719             lt_prog_compiler_static_CXX='-non_shared'
17720             # CC pic flag -KPIC is the default.
17721             ;;
17722           *)
17723             ;;
17724         esac
17725         ;;
17726       linux* | k*bsd*-gnu)
17727         case $cc_basename in
17728           KCC*)
17729             # KAI C++ Compiler
17730             lt_prog_compiler_wl_CXX='--backend -Wl,'
17731             lt_prog_compiler_pic_CXX='-fPIC'
17732             ;;
17733           ecpc* )
17734             # old Intel C++ for x86_64 which still supported -KPIC.
17735             lt_prog_compiler_wl_CXX='-Wl,'
17736             lt_prog_compiler_pic_CXX='-KPIC'
17737             lt_prog_compiler_static_CXX='-static'
17738             ;;
17739           icpc* )
17740             # Intel C++, used to be incompatible with GCC.
17741             # ICC 10 doesn't accept -KPIC any more.
17742             lt_prog_compiler_wl_CXX='-Wl,'
17743             lt_prog_compiler_pic_CXX='-fPIC'
17744             lt_prog_compiler_static_CXX='-static'
17745             ;;
17746           pgCC* | pgcpp*)
17747             # Portland Group C++ compiler
17748             lt_prog_compiler_wl_CXX='-Wl,'
17749             lt_prog_compiler_pic_CXX='-fpic'
17750             lt_prog_compiler_static_CXX='-Bstatic'
17751             ;;
17752           cxx*)
17753             # Compaq C++
17754             # Make sure the PIC flag is empty.  It appears that all Alpha
17755             # Linux and Compaq Tru64 Unix objects are PIC.
17756             lt_prog_compiler_pic_CXX=
17757             lt_prog_compiler_static_CXX='-non_shared'
17758             ;;
17759           xlc* | xlC*)
17760             # IBM XL 8.0 on PPC
17761             lt_prog_compiler_wl_CXX='-Wl,'
17762             lt_prog_compiler_pic_CXX='-qpic'
17763             lt_prog_compiler_static_CXX='-qstaticlink'
17764             ;;
17765           *)
17766             case `$CC -V 2>&1 | sed 5q` in
17767             *Sun\ C*)
17768               # Sun C++ 5.9
17769               lt_prog_compiler_pic_CXX='-KPIC'
17770               lt_prog_compiler_static_CXX='-Bstatic'
17771               lt_prog_compiler_wl_CXX='-Qoption ld '
17772               ;;
17773             esac
17774             ;;
17775         esac
17776         ;;
17777       lynxos*)
17778         ;;
17779       m88k*)
17780         ;;
17781       mvs*)
17782         case $cc_basename in
17783           cxx*)
17784             lt_prog_compiler_pic_CXX='-W c,exportall'
17785             ;;
17786           *)
17787             ;;
17788         esac
17789         ;;
17790       netbsd*)
17791         ;;
17792       *qnx* | *nto*)
17793         # QNX uses GNU C++, but need to define -shared option too, otherwise
17794         # it will coredump.
17795         lt_prog_compiler_pic_CXX='-fPIC -shared'
17796         ;;
17797       osf3* | osf4* | osf5*)
17798         case $cc_basename in
17799           KCC*)
17800             lt_prog_compiler_wl_CXX='--backend -Wl,'
17801             ;;
17802           RCC*)
17803             # Rational C++ 2.4.1
17804             lt_prog_compiler_pic_CXX='-pic'
17805             ;;
17806           cxx*)
17807             # Digital/Compaq C++
17808             lt_prog_compiler_wl_CXX='-Wl,'
17809             # Make sure the PIC flag is empty.  It appears that all Alpha
17810             # Linux and Compaq Tru64 Unix objects are PIC.
17811             lt_prog_compiler_pic_CXX=
17812             lt_prog_compiler_static_CXX='-non_shared'
17813             ;;
17814           *)
17815             ;;
17816         esac
17817         ;;
17818       psos*)
17819         ;;
17820       solaris*)
17821         case $cc_basename in
17822           CC*)
17823             # Sun C++ 4.2, 5.x and Centerline C++
17824             lt_prog_compiler_pic_CXX='-KPIC'
17825             lt_prog_compiler_static_CXX='-Bstatic'
17826             lt_prog_compiler_wl_CXX='-Qoption ld '
17827             ;;
17828           gcx*)
17829             # Green Hills C++ Compiler
17830             lt_prog_compiler_pic_CXX='-PIC'
17831             ;;
17832           *)
17833             ;;
17834         esac
17835         ;;
17836       sunos4*)
17837         case $cc_basename in
17838           CC*)
17839             # Sun C++ 4.x
17840             lt_prog_compiler_pic_CXX='-pic'
17841             lt_prog_compiler_static_CXX='-Bstatic'
17842             ;;
17843           lcc*)
17844             # Lucid
17845             lt_prog_compiler_pic_CXX='-pic'
17846             ;;
17847           *)
17848             ;;
17849         esac
17850         ;;
17851       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17852         case $cc_basename in
17853           CC*)
17854             lt_prog_compiler_wl_CXX='-Wl,'
17855             lt_prog_compiler_pic_CXX='-KPIC'
17856             lt_prog_compiler_static_CXX='-Bstatic'
17857             ;;
17858         esac
17859         ;;
17860       tandem*)
17861         case $cc_basename in
17862           NCC*)
17863             # NonStop-UX NCC 3.20
17864             lt_prog_compiler_pic_CXX='-KPIC'
17865             ;;
17866           *)
17867             ;;
17868         esac
17869         ;;
17870       vxworks*)
17871         ;;
17872       *)
17873         lt_prog_compiler_can_build_shared_CXX=no
17874         ;;
17875     esac
17876   fi
17877
17878 case $host_os in
17879   # For platforms which do not support PIC, -DPIC is meaningless:
17880   *djgpp*)
17881     lt_prog_compiler_pic_CXX=
17882     ;;
17883   *)
17884     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17885     ;;
17886 esac
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17888 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17889
17890
17891
17892 #
17893 # Check to make sure the PIC flag actually works.
17894 #
17895 if test -n "$lt_prog_compiler_pic_CXX"; then
17896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17897 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17898 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17899   $as_echo_n "(cached) " >&6
17900 else
17901   lt_cv_prog_compiler_pic_works_CXX=no
17902    ac_outfile=conftest.$ac_objext
17903    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17904    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17905    # Insert the option either (1) after the last *FLAGS variable, or
17906    # (2) before a word containing "conftest.", or (3) at the end.
17907    # Note that $ac_compile itself does not contain backslashes and begins
17908    # with a dollar sign (not a hyphen), so the echo should work correctly.
17909    # The option is referenced via a variable to avoid confusing sed.
17910    lt_compile=`echo "$ac_compile" | $SED \
17911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17913    -e 's:$: $lt_compiler_flag:'`
17914    (eval echo "\"\$as_me:17914: $lt_compile\"" >&5)
17915    (eval "$lt_compile" 2>conftest.err)
17916    ac_status=$?
17917    cat conftest.err >&5
17918    echo "$as_me:17918: \$? = $ac_status" >&5
17919    if (exit $ac_status) && test -s "$ac_outfile"; then
17920      # The compiler can only warn and ignore the option if not recognized
17921      # So say no if there are warnings other than the usual output.
17922      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17923      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17924      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17925        lt_cv_prog_compiler_pic_works_CXX=yes
17926      fi
17927    fi
17928    $RM conftest*
17929
17930 fi
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17932 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17933
17934 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17935     case $lt_prog_compiler_pic_CXX in
17936      "" | " "*) ;;
17937      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17938      esac
17939 else
17940     lt_prog_compiler_pic_CXX=
17941      lt_prog_compiler_can_build_shared_CXX=no
17942 fi
17943
17944 fi
17945
17946
17947
17948 #
17949 # Check to make sure the static flag actually works.
17950 #
17951 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17953 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17954 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17955   $as_echo_n "(cached) " >&6
17956 else
17957   lt_cv_prog_compiler_static_works_CXX=no
17958    save_LDFLAGS="$LDFLAGS"
17959    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17960    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17961    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17962      # The linker can only warn and ignore the option if not recognized
17963      # So say no if there are warnings
17964      if test -s conftest.err; then
17965        # Append any errors to the config.log.
17966        cat conftest.err 1>&5
17967        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17968        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17969        if diff conftest.exp conftest.er2 >/dev/null; then
17970          lt_cv_prog_compiler_static_works_CXX=yes
17971        fi
17972      else
17973        lt_cv_prog_compiler_static_works_CXX=yes
17974      fi
17975    fi
17976    $RM -r conftest*
17977    LDFLAGS="$save_LDFLAGS"
17978
17979 fi
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17981 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17982
17983 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17984     :
17985 else
17986     lt_prog_compiler_static_CXX=
17987 fi
17988
17989
17990
17991
17992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17994 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17995   $as_echo_n "(cached) " >&6
17996 else
17997   lt_cv_prog_compiler_c_o_CXX=no
17998    $RM -r conftest 2>/dev/null
17999    mkdir conftest
18000    cd conftest
18001    mkdir out
18002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18003
18004    lt_compiler_flag="-o out/conftest2.$ac_objext"
18005    # Insert the option either (1) after the last *FLAGS variable, or
18006    # (2) before a word containing "conftest.", or (3) at the end.
18007    # Note that $ac_compile itself does not contain backslashes and begins
18008    # with a dollar sign (not a hyphen), so the echo should work correctly.
18009    lt_compile=`echo "$ac_compile" | $SED \
18010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18012    -e 's:$: $lt_compiler_flag:'`
18013    (eval echo "\"\$as_me:18013: $lt_compile\"" >&5)
18014    (eval "$lt_compile" 2>out/conftest.err)
18015    ac_status=$?
18016    cat out/conftest.err >&5
18017    echo "$as_me:18017: \$? = $ac_status" >&5
18018    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18019    then
18020      # The compiler can only warn and ignore the option if not recognized
18021      # So say no if there are warnings
18022      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18023      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18024      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18025        lt_cv_prog_compiler_c_o_CXX=yes
18026      fi
18027    fi
18028    chmod u+w . 2>&5
18029    $RM conftest*
18030    # SGI C++ compiler will create directory out/ii_files/ for
18031    # template instantiation
18032    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18033    $RM out/* && rmdir out
18034    cd ..
18035    $RM -r conftest
18036    $RM conftest*
18037
18038 fi
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18040 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18041
18042
18043
18044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18045 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18046 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18047   $as_echo_n "(cached) " >&6
18048 else
18049   lt_cv_prog_compiler_c_o_CXX=no
18050    $RM -r conftest 2>/dev/null
18051    mkdir conftest
18052    cd conftest
18053    mkdir out
18054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18055
18056    lt_compiler_flag="-o out/conftest2.$ac_objext"
18057    # Insert the option either (1) after the last *FLAGS variable, or
18058    # (2) before a word containing "conftest.", or (3) at the end.
18059    # Note that $ac_compile itself does not contain backslashes and begins
18060    # with a dollar sign (not a hyphen), so the echo should work correctly.
18061    lt_compile=`echo "$ac_compile" | $SED \
18062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18064    -e 's:$: $lt_compiler_flag:'`
18065    (eval echo "\"\$as_me:18065: $lt_compile\"" >&5)
18066    (eval "$lt_compile" 2>out/conftest.err)
18067    ac_status=$?
18068    cat out/conftest.err >&5
18069    echo "$as_me:18069: \$? = $ac_status" >&5
18070    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18071    then
18072      # The compiler can only warn and ignore the option if not recognized
18073      # So say no if there are warnings
18074      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18075      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18076      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18077        lt_cv_prog_compiler_c_o_CXX=yes
18078      fi
18079    fi
18080    chmod u+w . 2>&5
18081    $RM conftest*
18082    # SGI C++ compiler will create directory out/ii_files/ for
18083    # template instantiation
18084    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18085    $RM out/* && rmdir out
18086    cd ..
18087    $RM -r conftest
18088    $RM conftest*
18089
18090 fi
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18092 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18093
18094
18095
18096
18097 hard_links="nottested"
18098 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18099   # do not overwrite the value of need_locks provided by the user
18100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18101 $as_echo_n "checking if we can lock with hard links... " >&6; }
18102   hard_links=yes
18103   $RM conftest*
18104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18105   touch conftest.a
18106   ln conftest.a conftest.b 2>&5 || hard_links=no
18107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18109 $as_echo "$hard_links" >&6; }
18110   if test "$hard_links" = no; then
18111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18112 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18113     need_locks=warn
18114   fi
18115 else
18116   need_locks=no
18117 fi
18118
18119
18120
18121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18123
18124   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18125   case $host_os in
18126   aix[4-9]*)
18127     # If we're using GNU nm, then we don't want the "-C" option.
18128     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18129     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18130       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18131     else
18132       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'
18133     fi
18134     ;;
18135   pw32*)
18136     export_symbols_cmds_CXX="$ltdll_cmds"
18137   ;;
18138   cygwin* | mingw* | cegcc*)
18139     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18140   ;;
18141   *)
18142     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18143   ;;
18144   esac
18145   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18148 $as_echo "$ld_shlibs_CXX" >&6; }
18149 test "$ld_shlibs_CXX" = no && can_build_shared=no
18150
18151 with_gnu_ld_CXX=$with_gnu_ld
18152
18153
18154
18155
18156
18157
18158 #
18159 # Do we need to explicitly link libc?
18160 #
18161 case "x$archive_cmds_need_lc_CXX" in
18162 x|xyes)
18163   # Assume -lc should be added
18164   archive_cmds_need_lc_CXX=yes
18165
18166   if test "$enable_shared" = yes && test "$GCC" = yes; then
18167     case $archive_cmds_CXX in
18168     *'~'*)
18169       # FIXME: we may have to deal with multi-command sequences.
18170       ;;
18171     '$CC '*)
18172       # Test whether the compiler implicitly links with -lc since on some
18173       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18174       # to ld, don't add -lc before -lgcc.
18175       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18177       $RM conftest*
18178       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18179
18180       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18181   (eval $ac_compile) 2>&5
18182   ac_status=$?
18183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18184   test $ac_status = 0; } 2>conftest.err; then
18185         soname=conftest
18186         lib=conftest
18187         libobjs=conftest.$ac_objext
18188         deplibs=
18189         wl=$lt_prog_compiler_wl_CXX
18190         pic_flag=$lt_prog_compiler_pic_CXX
18191         compiler_flags=-v
18192         linker_flags=-v
18193         verstring=
18194         output_objdir=.
18195         libname=conftest
18196         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18197         allow_undefined_flag_CXX=
18198         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18199   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18200   ac_status=$?
18201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202   test $ac_status = 0; }
18203         then
18204           archive_cmds_need_lc_CXX=no
18205         else
18206           archive_cmds_need_lc_CXX=yes
18207         fi
18208         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18209       else
18210         cat conftest.err 1>&5
18211       fi
18212       $RM conftest*
18213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18214 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
18215       ;;
18216     esac
18217   fi
18218   ;;
18219 esac
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
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
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18285 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18286
18287 library_names_spec=
18288 libname_spec='lib$name'
18289 soname_spec=
18290 shrext_cmds=".so"
18291 postinstall_cmds=
18292 postuninstall_cmds=
18293 finish_cmds=
18294 finish_eval=
18295 shlibpath_var=
18296 shlibpath_overrides_runpath=unknown
18297 version_type=none
18298 dynamic_linker="$host_os ld.so"
18299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18300 need_lib_prefix=unknown
18301 hardcode_into_libs=no
18302
18303 # when you set need_version to no, make sure it does not cause -set_version
18304 # flags to be left without arguments
18305 need_version=unknown
18306
18307 case $host_os in
18308 aix3*)
18309   version_type=linux
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18311   shlibpath_var=LIBPATH
18312
18313   # AIX 3 has no versioning support, so we append a major version to the name.
18314   soname_spec='${libname}${release}${shared_ext}$major'
18315   ;;
18316
18317 aix[4-9]*)
18318   version_type=linux
18319   need_lib_prefix=no
18320   need_version=no
18321   hardcode_into_libs=yes
18322   if test "$host_cpu" = ia64; then
18323     # AIX 5 supports IA64
18324     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18325     shlibpath_var=LD_LIBRARY_PATH
18326   else
18327     # With GCC up to 2.95.x, collect2 would create an import file
18328     # for dependence libraries.  The import file would start with
18329     # the line `#! .'.  This would cause the generated library to
18330     # depend on `.', always an invalid library.  This was fixed in
18331     # development snapshots of GCC prior to 3.0.
18332     case $host_os in
18333       aix4 | aix4.[01] | aix4.[01].*)
18334       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18335            echo ' yes '
18336            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18337         :
18338       else
18339         can_build_shared=no
18340       fi
18341       ;;
18342     esac
18343     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18344     # soname into executable. Probably we can add versioning support to
18345     # collect2, so additional links can be useful in future.
18346     if test "$aix_use_runtimelinking" = yes; then
18347       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18348       # instead of lib<name>.a to let people know that these are not
18349       # typical AIX shared libraries.
18350       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351     else
18352       # We preserve .a as extension for shared libraries through AIX4.2
18353       # and later when we are not doing run time linking.
18354       library_names_spec='${libname}${release}.a $libname.a'
18355       soname_spec='${libname}${release}${shared_ext}$major'
18356     fi
18357     shlibpath_var=LIBPATH
18358   fi
18359   ;;
18360
18361 amigaos*)
18362   case $host_cpu in
18363   powerpc)
18364     # Since July 2007 AmigaOS4 officially supports .so libraries.
18365     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367     ;;
18368   m68k)
18369     library_names_spec='$libname.ixlibrary $libname.a'
18370     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18371     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18372     ;;
18373   esac
18374   ;;
18375
18376 beos*)
18377   library_names_spec='${libname}${shared_ext}'
18378   dynamic_linker="$host_os ld.so"
18379   shlibpath_var=LIBRARY_PATH
18380   ;;
18381
18382 bsdi[45]*)
18383   version_type=linux
18384   need_version=no
18385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386   soname_spec='${libname}${release}${shared_ext}$major'
18387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18388   shlibpath_var=LD_LIBRARY_PATH
18389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18391   # the default ld.so.conf also contains /usr/contrib/lib and
18392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18393   # libtool to hard-code these into programs
18394   ;;
18395
18396 cygwin* | mingw* | pw32* | cegcc*)
18397   version_type=windows
18398   shrext_cmds=".dll"
18399   need_version=no
18400   need_lib_prefix=no
18401
18402   case $GCC,$host_os in
18403   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18404     library_names_spec='$libname.dll.a'
18405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18406     postinstall_cmds='base_file=`basename \${file}`~
18407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18408       dldir=$destdir/`dirname \$dlpath`~
18409       test -d \$dldir || mkdir -p \$dldir~
18410       $install_prog $dir/$dlname \$dldir/$dlname~
18411       chmod a+x \$dldir/$dlname~
18412       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18413         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18414       fi'
18415     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18416       dlpath=$dir/\$dldll~
18417        $RM \$dlpath'
18418     shlibpath_overrides_runpath=yes
18419
18420     case $host_os in
18421     cygwin*)
18422       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18423       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18424       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18425       ;;
18426     mingw* | cegcc*)
18427       # MinGW DLLs use traditional 'lib' prefix
18428       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18429       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18430       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18431         # It is most probably a Windows format PATH printed by
18432         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18433         # path with ; separators, and with drive letters. We can handle the
18434         # drive letters (cygwin fileutils understands them), so leave them,
18435         # especially as we might pass files found there to a mingw objdump,
18436         # which wouldn't understand a cygwinified path. Ahh.
18437         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18438       else
18439         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18440       fi
18441       ;;
18442     pw32*)
18443       # pw32 DLLs use 'pw' prefix rather than 'lib'
18444       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445       ;;
18446     esac
18447     ;;
18448
18449   *)
18450     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18451     ;;
18452   esac
18453   dynamic_linker='Win32 ld.exe'
18454   # FIXME: first we should search . and the directory the executable is in
18455   shlibpath_var=PATH
18456   ;;
18457
18458 darwin* | rhapsody*)
18459   dynamic_linker="$host_os dyld"
18460   version_type=darwin
18461   need_lib_prefix=no
18462   need_version=no
18463   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18464   soname_spec='${libname}${release}${major}$shared_ext'
18465   shlibpath_overrides_runpath=yes
18466   shlibpath_var=DYLD_LIBRARY_PATH
18467   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18468
18469   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18470   ;;
18471
18472 dgux*)
18473   version_type=linux
18474   need_lib_prefix=no
18475   need_version=no
18476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18477   soname_spec='${libname}${release}${shared_ext}$major'
18478   shlibpath_var=LD_LIBRARY_PATH
18479   ;;
18480
18481 freebsd1*)
18482   dynamic_linker=no
18483   ;;
18484
18485 freebsd* | dragonfly*)
18486   # DragonFly does not have aout.  When/if they implement a new
18487   # versioning mechanism, adjust this.
18488   if test -x /usr/bin/objformat; then
18489     objformat=`/usr/bin/objformat`
18490   else
18491     case $host_os in
18492     freebsd[123]*) objformat=aout ;;
18493     *) objformat=elf ;;
18494     esac
18495   fi
18496   version_type=freebsd-$objformat
18497   case $version_type in
18498     freebsd-elf*)
18499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18500       need_version=no
18501       need_lib_prefix=no
18502       ;;
18503     freebsd-*)
18504       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18505       need_version=yes
18506       ;;
18507   esac
18508   shlibpath_var=LD_LIBRARY_PATH
18509   case $host_os in
18510   freebsd2*)
18511     shlibpath_overrides_runpath=yes
18512     ;;
18513   freebsd3.[01]* | freebsdelf3.[01]*)
18514     shlibpath_overrides_runpath=yes
18515     hardcode_into_libs=yes
18516     ;;
18517   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18518   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18519     shlibpath_overrides_runpath=no
18520     hardcode_into_libs=yes
18521     ;;
18522   *) # from 4.6 on, and DragonFly
18523     shlibpath_overrides_runpath=yes
18524     hardcode_into_libs=yes
18525     ;;
18526   esac
18527   ;;
18528
18529 gnu*)
18530   version_type=linux
18531   need_lib_prefix=no
18532   need_version=no
18533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18534   soname_spec='${libname}${release}${shared_ext}$major'
18535   shlibpath_var=LD_LIBRARY_PATH
18536   hardcode_into_libs=yes
18537   ;;
18538
18539 hpux9* | hpux10* | hpux11*)
18540   # Give a soname corresponding to the major version so that dld.sl refuses to
18541   # link against other versions.
18542   version_type=sunos
18543   need_lib_prefix=no
18544   need_version=no
18545   case $host_cpu in
18546   ia64*)
18547     shrext_cmds='.so'
18548     hardcode_into_libs=yes
18549     dynamic_linker="$host_os dld.so"
18550     shlibpath_var=LD_LIBRARY_PATH
18551     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18553     soname_spec='${libname}${release}${shared_ext}$major'
18554     if test "X$HPUX_IA64_MODE" = X32; then
18555       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18556     else
18557       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18558     fi
18559     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18560     ;;
18561   hppa*64*)
18562     shrext_cmds='.sl'
18563     hardcode_into_libs=yes
18564     dynamic_linker="$host_os dld.sl"
18565     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568     soname_spec='${libname}${release}${shared_ext}$major'
18569     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18571     ;;
18572   *)
18573     shrext_cmds='.sl'
18574     dynamic_linker="$host_os dld.sl"
18575     shlibpath_var=SHLIB_PATH
18576     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578     soname_spec='${libname}${release}${shared_ext}$major'
18579     ;;
18580   esac
18581   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18582   postinstall_cmds='chmod 555 $lib'
18583   ;;
18584
18585 interix[3-9]*)
18586   version_type=linux
18587   need_lib_prefix=no
18588   need_version=no
18589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590   soname_spec='${libname}${release}${shared_ext}$major'
18591   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18592   shlibpath_var=LD_LIBRARY_PATH
18593   shlibpath_overrides_runpath=no
18594   hardcode_into_libs=yes
18595   ;;
18596
18597 irix5* | irix6* | nonstopux*)
18598   case $host_os in
18599     nonstopux*) version_type=nonstopux ;;
18600     *)
18601         if test "$lt_cv_prog_gnu_ld" = yes; then
18602                 version_type=linux
18603         else
18604                 version_type=irix
18605         fi ;;
18606   esac
18607   need_lib_prefix=no
18608   need_version=no
18609   soname_spec='${libname}${release}${shared_ext}$major'
18610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18611   case $host_os in
18612   irix5* | nonstopux*)
18613     libsuff= shlibsuff=
18614     ;;
18615   *)
18616     case $LD in # libtool.m4 will add one of these switches to LD
18617     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18618       libsuff= shlibsuff= libmagic=32-bit;;
18619     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18620       libsuff=32 shlibsuff=N32 libmagic=N32;;
18621     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18622       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18623     *) libsuff= shlibsuff= libmagic=never-match;;
18624     esac
18625     ;;
18626   esac
18627   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18628   shlibpath_overrides_runpath=no
18629   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18630   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18631   hardcode_into_libs=yes
18632   ;;
18633
18634 # No shared lib support for Linux oldld, aout, or coff.
18635 linux*oldld* | linux*aout* | linux*coff*)
18636   dynamic_linker=no
18637   ;;
18638
18639 # This must be Linux ELF.
18640 linux* | k*bsd*-gnu)
18641   version_type=linux
18642   need_lib_prefix=no
18643   need_version=no
18644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645   soname_spec='${libname}${release}${shared_ext}$major'
18646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18647   shlibpath_var=LD_LIBRARY_PATH
18648   shlibpath_overrides_runpath=no
18649   # Some binutils ld are patched to set DT_RUNPATH
18650   save_LDFLAGS=$LDFLAGS
18651   save_libdir=$libdir
18652   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18653        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h.  */
18656
18657 int
18658 main ()
18659 {
18660
18661   ;
18662   return 0;
18663 }
18664 _ACEOF
18665 if ac_fn_cxx_try_link "$LINENO"; then :
18666   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18667   shlibpath_overrides_runpath=yes
18668 fi
18669 fi
18670 rm -f core conftest.err conftest.$ac_objext \
18671     conftest$ac_exeext conftest.$ac_ext
18672   LDFLAGS=$save_LDFLAGS
18673   libdir=$save_libdir
18674
18675   # This implies no fast_install, which is unacceptable.
18676   # Some rework will be needed to allow for fast_install
18677   # before this can be enabled.
18678   hardcode_into_libs=yes
18679
18680   # Add ABI-specific directories to the system library path.
18681   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18682
18683   # Append ld.so.conf contents to the search path
18684   if test -f /etc/ld.so.conf; then
18685     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18686     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18687   fi
18688
18689   # We used to test for /lib/ld.so.1 and disable shared libraries on
18690   # powerpc, because MkLinux only supported shared libraries with the
18691   # GNU dynamic linker.  Since this was broken with cross compilers,
18692   # most powerpc-linux boxes support dynamic linking these days and
18693   # people can always --disable-shared, the test was removed, and we
18694   # assume the GNU/Linux dynamic linker is in use.
18695   dynamic_linker='GNU/Linux ld.so'
18696   ;;
18697
18698 netbsd*)
18699   version_type=sunos
18700   need_lib_prefix=no
18701   need_version=no
18702   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18705     dynamic_linker='NetBSD (a.out) ld.so'
18706   else
18707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708     soname_spec='${libname}${release}${shared_ext}$major'
18709     dynamic_linker='NetBSD ld.elf_so'
18710   fi
18711   shlibpath_var=LD_LIBRARY_PATH
18712   shlibpath_overrides_runpath=yes
18713   hardcode_into_libs=yes
18714   ;;
18715
18716 newsos6)
18717   version_type=linux
18718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719   shlibpath_var=LD_LIBRARY_PATH
18720   shlibpath_overrides_runpath=yes
18721   ;;
18722
18723 *nto* | *qnx*)
18724   version_type=qnx
18725   need_lib_prefix=no
18726   need_version=no
18727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728   soname_spec='${libname}${release}${shared_ext}$major'
18729   shlibpath_var=LD_LIBRARY_PATH
18730   shlibpath_overrides_runpath=no
18731   hardcode_into_libs=yes
18732   dynamic_linker='ldqnx.so'
18733   ;;
18734
18735 openbsd*)
18736   version_type=sunos
18737   sys_lib_dlsearch_path_spec="/usr/lib"
18738   need_lib_prefix=no
18739   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18740   case $host_os in
18741     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18742     *)                          need_version=no  ;;
18743   esac
18744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18746   shlibpath_var=LD_LIBRARY_PATH
18747   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18748     case $host_os in
18749       openbsd2.[89] | openbsd2.[89].*)
18750         shlibpath_overrides_runpath=no
18751         ;;
18752       *)
18753         shlibpath_overrides_runpath=yes
18754         ;;
18755       esac
18756   else
18757     shlibpath_overrides_runpath=yes
18758   fi
18759   ;;
18760
18761 os2*)
18762   libname_spec='$name'
18763   shrext_cmds=".dll"
18764   need_lib_prefix=no
18765   library_names_spec='$libname${shared_ext} $libname.a'
18766   dynamic_linker='OS/2 ld.exe'
18767   shlibpath_var=LIBPATH
18768   ;;
18769
18770 osf3* | osf4* | osf5*)
18771   version_type=osf
18772   need_lib_prefix=no
18773   need_version=no
18774   soname_spec='${libname}${release}${shared_ext}$major'
18775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776   shlibpath_var=LD_LIBRARY_PATH
18777   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18778   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18779   ;;
18780
18781 rdos*)
18782   dynamic_linker=no
18783   ;;
18784
18785 solaris*)
18786   version_type=linux
18787   need_lib_prefix=no
18788   need_version=no
18789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790   soname_spec='${libname}${release}${shared_ext}$major'
18791   shlibpath_var=LD_LIBRARY_PATH
18792   shlibpath_overrides_runpath=yes
18793   hardcode_into_libs=yes
18794   # ldd complains unless libraries are executable
18795   postinstall_cmds='chmod +x $lib'
18796   ;;
18797
18798 sunos4*)
18799   version_type=sunos
18800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18802   shlibpath_var=LD_LIBRARY_PATH
18803   shlibpath_overrides_runpath=yes
18804   if test "$with_gnu_ld" = yes; then
18805     need_lib_prefix=no
18806   fi
18807   need_version=yes
18808   ;;
18809
18810 sysv4 | sysv4.3*)
18811   version_type=linux
18812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813   soname_spec='${libname}${release}${shared_ext}$major'
18814   shlibpath_var=LD_LIBRARY_PATH
18815   case $host_vendor in
18816     sni)
18817       shlibpath_overrides_runpath=no
18818       need_lib_prefix=no
18819       runpath_var=LD_RUN_PATH
18820       ;;
18821     siemens)
18822       need_lib_prefix=no
18823       ;;
18824     motorola)
18825       need_lib_prefix=no
18826       need_version=no
18827       shlibpath_overrides_runpath=no
18828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829       ;;
18830   esac
18831   ;;
18832
18833 sysv4*MP*)
18834   if test -d /usr/nec ;then
18835     version_type=linux
18836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837     soname_spec='$libname${shared_ext}.$major'
18838     shlibpath_var=LD_LIBRARY_PATH
18839   fi
18840   ;;
18841
18842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843   version_type=freebsd-elf
18844   need_lib_prefix=no
18845   need_version=no
18846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847   soname_spec='${libname}${release}${shared_ext}$major'
18848   shlibpath_var=LD_LIBRARY_PATH
18849   shlibpath_overrides_runpath=yes
18850   hardcode_into_libs=yes
18851   if test "$with_gnu_ld" = yes; then
18852     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18853   else
18854     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855     case $host_os in
18856       sco3.2v5*)
18857         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18858         ;;
18859     esac
18860   fi
18861   sys_lib_dlsearch_path_spec='/usr/lib'
18862   ;;
18863
18864 tpf*)
18865   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18866   version_type=linux
18867   need_lib_prefix=no
18868   need_version=no
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870   shlibpath_var=LD_LIBRARY_PATH
18871   shlibpath_overrides_runpath=no
18872   hardcode_into_libs=yes
18873   ;;
18874
18875 uts4*)
18876   version_type=linux
18877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878   soname_spec='${libname}${release}${shared_ext}$major'
18879   shlibpath_var=LD_LIBRARY_PATH
18880   ;;
18881
18882 *)
18883   dynamic_linker=no
18884   ;;
18885 esac
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18887 $as_echo "$dynamic_linker" >&6; }
18888 test "$dynamic_linker" = no && can_build_shared=no
18889
18890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18891 if test "$GCC" = yes; then
18892   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18893 fi
18894
18895 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18896   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18897 fi
18898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18900 fi
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18939 hardcode_action_CXX=
18940 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18941    test -n "$runpath_var_CXX" ||
18942    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18943
18944   # We can hardcode non-existent directories.
18945   if test "$hardcode_direct_CXX" != no &&
18946      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18947      # have to relink, otherwise we might link with an installed library
18948      # when we should be linking with a yet-to-be-installed one
18949      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18950      test "$hardcode_minus_L_CXX" != no; then
18951     # Linking always hardcodes the temporary library directory.
18952     hardcode_action_CXX=relink
18953   else
18954     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18955     hardcode_action_CXX=immediate
18956   fi
18957 else
18958   # We cannot hardcode anything, or else we can only hardcode existing
18959   # directories.
18960   hardcode_action_CXX=unsupported
18961 fi
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18963 $as_echo "$hardcode_action_CXX" >&6; }
18964
18965 if test "$hardcode_action_CXX" = relink ||
18966    test "$inherit_rpath_CXX" = yes; then
18967   # Fast installation is not supported
18968   enable_fast_install=no
18969 elif test "$shlibpath_overrides_runpath" = yes ||
18970      test "$enable_shared" = no; then
18971   # Fast installation is not necessary
18972   enable_fast_install=needless
18973 fi
18974
18975
18976
18977
18978
18979
18980
18981   fi # test -n "$compiler"
18982
18983   CC=$lt_save_CC
18984   LDCXX=$LD
18985   LD=$lt_save_LD
18986   GCC=$lt_save_GCC
18987   with_gnu_ld=$lt_save_with_gnu_ld
18988   lt_cv_path_LDCXX=$lt_cv_path_LD
18989   lt_cv_path_LD=$lt_save_path_LD
18990   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18991   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18992 fi # test "$_lt_caught_CXX_error" != yes
18993
18994 ac_ext=c
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012         ac_config_commands="$ac_config_commands libtool"
19013
19014
19015
19016
19017 # Only expand once:
19018
19019
19020
19021
19022
19023 # Configure libltdl
19024
19025
19026
19027
19028
19029
19030
19031
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19033 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19034 if test "${libltdl_cv_shlibext+set}" = set; then :
19035   $as_echo_n "(cached) " >&6
19036 else
19037
19038 module=yes
19039 eval libltdl_cv_shlibext=$shrext_cmds
19040
19041 fi
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19043 $as_echo "$libltdl_cv_shlibext" >&6; }
19044 if test -n "$libltdl_cv_shlibext"; then
19045
19046 cat >>confdefs.h <<_ACEOF
19047 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19048 _ACEOF
19049
19050 fi
19051
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19053 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19054 if test "${lt_cv_module_path_var+set}" = set; then :
19055   $as_echo_n "(cached) " >&6
19056 else
19057   lt_cv_module_path_var="$shlibpath_var"
19058 fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19060 $as_echo "$lt_cv_module_path_var" >&6; }
19061 if test -n "$lt_cv_module_path_var"; then
19062
19063 cat >>confdefs.h <<_ACEOF
19064 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19065 _ACEOF
19066
19067 fi
19068
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19070 $as_echo_n "checking for the default library search path... " >&6; }
19071 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19075 fi
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19077 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19078 if test -n "$lt_cv_sys_dlsearch_path"; then
19079   sys_dlsearch_path=
19080   for dir in $lt_cv_sys_dlsearch_path; do
19081     if test -z "$sys_dlsearch_path"; then
19082       sys_dlsearch_path="$dir"
19083     else
19084       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19085     fi
19086   done
19087
19088 cat >>confdefs.h <<_ACEOF
19089 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19090 _ACEOF
19091
19092 fi
19093
19094
19095 LT_DLLOADERS=
19096
19097
19098 ac_ext=c
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
19104
19105 LIBADD_DLOPEN=
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19107 $as_echo_n "checking for library containing dlopen... " >&6; }
19108 if test "${ac_cv_search_dlopen+set}" = set; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111   ac_func_search_save_LIBS=$LIBS
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h.  */
19114
19115 /* Override any GCC internal prototype to avoid an error.
19116    Use char because int might match the return type of a GCC
19117    builtin and then its argument prototype would still apply.  */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char dlopen ();
19122 int
19123 main ()
19124 {
19125 return dlopen ();
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 for ac_lib in '' dl; do
19131   if test -z "$ac_lib"; then
19132     ac_res="none required"
19133   else
19134     ac_res=-l$ac_lib
19135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19136   fi
19137   if ac_fn_c_try_link "$LINENO"; then :
19138   ac_cv_search_dlopen=$ac_res
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext \
19141     conftest$ac_exeext
19142   if test "${ac_cv_search_dlopen+set}" = set; then :
19143   break
19144 fi
19145 done
19146 if test "${ac_cv_search_dlopen+set}" = set; then :
19147
19148 else
19149   ac_cv_search_dlopen=no
19150 fi
19151 rm conftest.$ac_ext
19152 LIBS=$ac_func_search_save_LIBS
19153 fi
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19155 $as_echo "$ac_cv_search_dlopen" >&6; }
19156 ac_res=$ac_cv_search_dlopen
19157 if test "$ac_res" != no; then :
19158   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19159
19160 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19161
19162         if test "$ac_cv_search_dlopen" != "none required" ; then
19163           LIBADD_DLOPEN="-ldl"
19164         fi
19165         libltdl_cv_lib_dl_dlopen="yes"
19166         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19167 else
19168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h.  */
19170 #if HAVE_DLFCN_H
19171 #  include <dlfcn.h>
19172 #endif
19173
19174 int
19175 main ()
19176 {
19177 dlopen(0, 0);
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 if ac_fn_c_try_link "$LINENO"; then :
19183
19184 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19185
19186             libltdl_cv_func_dlopen="yes"
19187             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19188 else
19189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19190 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19191 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19192   $as_echo_n "(cached) " >&6
19193 else
19194   ac_check_lib_save_LIBS=$LIBS
19195 LIBS="-lsvld  $LIBS"
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h.  */
19198
19199 /* Override any GCC internal prototype to avoid an error.
19200    Use char because int might match the return type of a GCC
19201    builtin and then its argument prototype would still apply.  */
19202 #ifdef __cplusplus
19203 extern "C"
19204 #endif
19205 char dlopen ();
19206 int
19207 main ()
19208 {
19209 return dlopen ();
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 if ac_fn_c_try_link "$LINENO"; then :
19215   ac_cv_lib_svld_dlopen=yes
19216 else
19217   ac_cv_lib_svld_dlopen=no
19218 fi
19219 rm -f core conftest.err conftest.$ac_objext \
19220     conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19222 fi
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19224 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19225 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19226
19227 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19228
19229                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19230                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19231 fi
19232
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext \
19235     conftest$ac_exeext conftest.$ac_ext
19236 fi
19237
19238 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19239 then
19240   lt_save_LIBS="$LIBS"
19241   LIBS="$LIBS $LIBADD_DLOPEN"
19242   for ac_func in dlerror
19243 do :
19244   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19245 if test "x$ac_cv_func_dlerror" = x""yes; then :
19246   cat >>confdefs.h <<_ACEOF
19247 #define HAVE_DLERROR 1
19248 _ACEOF
19249
19250 fi
19251 done
19252
19253   LIBS="$lt_save_LIBS"
19254 fi
19255
19256
19257 LIBADD_SHL_LOAD=
19258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19259 if test "x$ac_cv_func_shl_load" = x""yes; then :
19260
19261 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19262
19263         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19264 else
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19266 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19268   $as_echo_n "(cached) " >&6
19269 else
19270   ac_check_lib_save_LIBS=$LIBS
19271 LIBS="-ldld  $LIBS"
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h.  */
19274
19275 /* Override any GCC internal prototype to avoid an error.
19276    Use char because int might match the return type of a GCC
19277    builtin and then its argument prototype would still apply.  */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char shl_load ();
19282 int
19283 main ()
19284 {
19285 return shl_load ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19291   ac_cv_lib_dld_shl_load=yes
19292 else
19293   ac_cv_lib_dld_shl_load=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext \
19296     conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19298 fi
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19300 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19301 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19302
19303 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19304
19305             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19306             LIBADD_SHL_LOAD="-ldld"
19307 fi
19308
19309 fi
19310
19311
19312
19313 case $host_os in
19314 darwin[1567].*)
19315 # We only want this for pre-Mac OS X 10.4.
19316   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19317 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19318
19319 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19320
19321         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19322 fi
19323
19324   ;;
19325 beos*)
19326   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19327   ;;
19328 cygwin* | mingw* | os2* | pw32*)
19329   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19330 "
19331 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19332   ac_have_decl=1
19333 else
19334   ac_have_decl=0
19335 fi
19336
19337 cat >>confdefs.h <<_ACEOF
19338 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19339 _ACEOF
19340
19341   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19342   ;;
19343 esac
19344
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19348   $as_echo_n "(cached) " >&6
19349 else
19350   ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-ldld  $LIBS"
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h.  */
19354
19355 /* Override any GCC internal prototype to avoid an error.
19356    Use char because int might match the return type of a GCC
19357    builtin and then its argument prototype would still apply.  */
19358 #ifdef __cplusplus
19359 extern "C"
19360 #endif
19361 char dld_link ();
19362 int
19363 main ()
19364 {
19365 return dld_link ();
19366   ;
19367   return 0;
19368 }
19369 _ACEOF
19370 if ac_fn_c_try_link "$LINENO"; then :
19371   ac_cv_lib_dld_dld_link=yes
19372 else
19373   ac_cv_lib_dld_dld_link=no
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext \
19376     conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19378 fi
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19380 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19381 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19382
19383 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19384
19385                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19386 fi
19387
19388
19389
19390
19391 LT_DLPREOPEN=
19392 if test -n "$LT_DLLOADERS"
19393 then
19394   for lt_loader in $LT_DLLOADERS; do
19395     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19396   done
19397
19398 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19399
19400 fi
19401
19402
19403 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19404
19405
19406 ac_ext=c
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19414 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19415 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19416   $as_echo_n "(cached) " >&6
19417 else
19418   lt_cv_sys_symbol_underscore=no
19419   cat > conftest.$ac_ext <<_LT_EOF
19420 void nm_test_func(){}
19421 int main(){nm_test_func;return 0;}
19422 _LT_EOF
19423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19424   (eval $ac_compile) 2>&5
19425   ac_status=$?
19426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19427   test $ac_status = 0; }; then
19428     # Now try to grab the symbols.
19429     ac_nlist=conftest.nm
19430     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19431   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19432   ac_status=$?
19433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19434   test $ac_status = 0; } && test -s "$ac_nlist"; then
19435       # See whether the symbols have a leading underscore.
19436       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19437         lt_cv_sys_symbol_underscore=yes
19438       else
19439         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19440           :
19441         else
19442           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19443         fi
19444       fi
19445     else
19446       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19447     fi
19448   else
19449     echo "configure: failed program was:" >&5
19450     cat conftest.c >&5
19451   fi
19452   rm -rf conftest*
19453
19454 fi
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19456 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19457   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19458
19459
19460 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19461   if test x"$libltdl_cv_func_dlopen" = xyes ||
19462      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19464 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19465 if test "${libltdl_cv_need_uscore+set}" = set; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   libltdl_cv_need_uscore=unknown
19469           save_LIBS="$LIBS"
19470           LIBS="$LIBS $LIBADD_DLOPEN"
19471           if test "$cross_compiling" = yes; then :
19472   libltdl_cv_need_uscore=cross
19473 else
19474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19475   lt_status=$lt_dlunknown
19476   cat > conftest.$ac_ext <<_LT_EOF
19477 #line 19477 "configure"
19478 #include "confdefs.h"
19479
19480 #if HAVE_DLFCN_H
19481 #include <dlfcn.h>
19482 #endif
19483
19484 #include <stdio.h>
19485
19486 #ifdef RTLD_GLOBAL
19487 #  define LT_DLGLOBAL           RTLD_GLOBAL
19488 #else
19489 #  ifdef DL_GLOBAL
19490 #    define LT_DLGLOBAL         DL_GLOBAL
19491 #  else
19492 #    define LT_DLGLOBAL         0
19493 #  endif
19494 #endif
19495
19496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19497    find out it does not work in some platform. */
19498 #ifndef LT_DLLAZY_OR_NOW
19499 #  ifdef RTLD_LAZY
19500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19501 #  else
19502 #    ifdef DL_LAZY
19503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19504 #    else
19505 #      ifdef RTLD_NOW
19506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19507 #      else
19508 #        ifdef DL_NOW
19509 #          define LT_DLLAZY_OR_NOW      DL_NOW
19510 #        else
19511 #          define LT_DLLAZY_OR_NOW      0
19512 #        endif
19513 #      endif
19514 #    endif
19515 #  endif
19516 #endif
19517
19518 void fnord() { int i=42;}
19519 int main ()
19520 {
19521   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19522   int status = $lt_dlunknown;
19523
19524   if (self)
19525     {
19526       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19527       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19528       /* dlclose (self); */
19529     }
19530   else
19531     puts (dlerror ());
19532
19533   return status;
19534 }
19535 _LT_EOF
19536   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19537   (eval $ac_link) 2>&5
19538   ac_status=$?
19539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19541     (./conftest; exit; ) >&5 2>/dev/null
19542     lt_status=$?
19543     case x$lt_status in
19544       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19545       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19546       x$lt_dlunknown|x*)  ;;
19547     esac
19548   else :
19549     # compilation failed
19550
19551   fi
19552 fi
19553 rm -fr conftest*
19554
19555           LIBS="$save_LIBS"
19556
19557 fi
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19559 $as_echo "$libltdl_cv_need_uscore" >&6; }
19560   fi
19561 fi
19562
19563 if test x"$libltdl_cv_need_uscore" = xyes; then
19564
19565 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19566
19567 fi
19568
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19570 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19571 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19572   $as_echo_n "(cached) " >&6
19573 else
19574   # PORTME does your system automatically load deplibs for dlopen?
19575   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19576   # For now, we just catch OSes we know something about -- in the
19577   # future, we'll try test this programmatically.
19578   lt_cv_sys_dlopen_deplibs=unknown
19579   case $host_os in
19580   aix3*|aix4.1.*|aix4.2.*)
19581     # Unknown whether this is true for these versions of AIX, but
19582     # we want this `case' here to explicitly catch those versions.
19583     lt_cv_sys_dlopen_deplibs=unknown
19584     ;;
19585   aix[4-9]*)
19586     lt_cv_sys_dlopen_deplibs=yes
19587     ;;
19588   amigaos*)
19589     case $host_cpu in
19590     powerpc)
19591       lt_cv_sys_dlopen_deplibs=no
19592       ;;
19593     esac
19594     ;;
19595   darwin*)
19596     # Assuming the user has installed a libdl from somewhere, this is true
19597     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19598     lt_cv_sys_dlopen_deplibs=yes
19599     ;;
19600   freebsd* | dragonfly*)
19601     lt_cv_sys_dlopen_deplibs=yes
19602     ;;
19603   gnu* | linux* | k*bsd*-gnu)
19604     # GNU and its variants, using gnu ld.so (Glibc)
19605     lt_cv_sys_dlopen_deplibs=yes
19606     ;;
19607   hpux10*|hpux11*)
19608     lt_cv_sys_dlopen_deplibs=yes
19609     ;;
19610   interix*)
19611     lt_cv_sys_dlopen_deplibs=yes
19612     ;;
19613   irix[12345]*|irix6.[01]*)
19614     # Catch all versions of IRIX before 6.2, and indicate that we don't
19615     # know how it worked for any of those versions.
19616     lt_cv_sys_dlopen_deplibs=unknown
19617     ;;
19618   irix*)
19619     # The case above catches anything before 6.2, and it's known that
19620     # at 6.2 and later dlopen does load deplibs.
19621     lt_cv_sys_dlopen_deplibs=yes
19622     ;;
19623   netbsd*)
19624     lt_cv_sys_dlopen_deplibs=yes
19625     ;;
19626   openbsd*)
19627     lt_cv_sys_dlopen_deplibs=yes
19628     ;;
19629   osf[1234]*)
19630     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19631     # it did *not* use an RPATH in a shared library to find objects the
19632     # library depends on, so we explicitly say `no'.
19633     lt_cv_sys_dlopen_deplibs=no
19634     ;;
19635   osf5.0|osf5.0a|osf5.1)
19636     # dlopen *does* load deplibs and with the right loader patch applied
19637     # it even uses RPATH in a shared library to search for shared objects
19638     # that the library depends on, but there's no easy way to know if that
19639     # patch is installed.  Since this is the case, all we can really
19640     # say is unknown -- it depends on the patch being installed.  If
19641     # it is, this changes to `yes'.  Without it, it would be `no'.
19642     lt_cv_sys_dlopen_deplibs=unknown
19643     ;;
19644   osf*)
19645     # the two cases above should catch all versions of osf <= 5.1.  Read
19646     # the comments above for what we know about them.
19647     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19648     # is used to find them so we can finally say `yes'.
19649     lt_cv_sys_dlopen_deplibs=yes
19650     ;;
19651   qnx*)
19652     lt_cv_sys_dlopen_deplibs=yes
19653     ;;
19654   solaris*)
19655     lt_cv_sys_dlopen_deplibs=yes
19656     ;;
19657   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19658     libltdl_cv_sys_dlopen_deplibs=yes
19659     ;;
19660   esac
19661
19662 fi
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19664 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19665 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19666
19667 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19668
19669 fi
19670
19671 :
19672
19673 for ac_header in argz.h
19674 do :
19675   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19676 "
19677 if test "x$ac_cv_header_argz_h" = x""yes; then :
19678   cat >>confdefs.h <<_ACEOF
19679 #define HAVE_ARGZ_H 1
19680 _ACEOF
19681
19682 fi
19683
19684 done
19685
19686
19687 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19688 #  include <argz.h>
19689 #endif
19690 "
19691 if test "x$ac_cv_type_error_t" = x""yes; then :
19692
19693 cat >>confdefs.h <<_ACEOF
19694 #define HAVE_ERROR_T 1
19695 _ACEOF
19696
19697
19698 else
19699
19700 $as_echo "#define error_t int" >>confdefs.h
19701
19702
19703 $as_echo "#define __error_t_defined 1" >>confdefs.h
19704
19705 fi
19706
19707
19708 ARGZ_H=
19709 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19710         argz_next argz_stringify
19711 do :
19712   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19714 eval as_val=\$$as_ac_var
19715    if test "x$as_val" = x""yes; then :
19716   cat >>confdefs.h <<_ACEOF
19717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19718 _ACEOF
19719
19720 else
19721   ARGZ_H=argz.h;
19722
19723   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19724
19725 fi
19726 done
19727
19728
19729 if test -z "$ARGZ_H"; then :
19730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19731 $as_echo_n "checking if argz actually works... " >&6; }
19732 if test "${lt_cv_sys_argz_works+set}" = set; then :
19733   $as_echo_n "(cached) " >&6
19734 else
19735   case $host_os in #(
19736          *cygwin*)
19737            lt_cv_sys_argz_works=no
19738            if test "$cross_compiling" != no; then
19739              lt_cv_sys_argz_works="guessing no"
19740            else
19741              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19742              save_IFS=$IFS
19743              IFS=-.
19744              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19745              IFS=$save_IFS
19746              lt_os_major=${2-0}
19747              lt_os_minor=${3-0}
19748              lt_os_micro=${4-0}
19749              if test "$lt_os_major" -gt 1 \
19750                 || { test "$lt_os_major" -eq 1 \
19751                   && { test "$lt_os_minor" -gt 5 \
19752                     || { test "$lt_os_minor" -eq 5 \
19753                       && test "$lt_os_micro" -gt 24; }; }; }; then
19754                lt_cv_sys_argz_works=yes
19755              fi
19756            fi
19757            ;; #(
19758          *) lt_cv_sys_argz_works=yes ;;
19759          esac
19760 fi
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19762 $as_echo "$lt_cv_sys_argz_works" >&6; }
19763      if test $lt_cv_sys_argz_works = yes; then :
19764
19765 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19766
19767 else
19768   ARGZ_H=argz.h
19769
19770
19771   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19772
19773 fi
19774 fi
19775
19776
19777
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19779 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19780 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19781   $as_echo_n "(cached) " >&6
19782 else
19783   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19784     libltdl_cv_preloaded_symbols=yes
19785   else
19786     libltdl_cv_preloaded_symbols=no
19787   fi
19788
19789 fi
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19791 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19792 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19793
19794 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19795
19796 fi
19797
19798 # Set options
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810 # Check whether --with-included_ltdl was given.
19811 if test "${with_included_ltdl+set}" = set; then :
19812   withval=$with_included_ltdl;
19813 fi
19814
19815
19816 if test "x$with_included_ltdl" != xyes; then
19817   # We are not being forced to use the included libltdl sources, so
19818   # decide whether there is a useful installed version we can use.
19819   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19820
19821 "
19822 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19823   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19824             #include <ltdl.h>
19825 "
19826 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19828 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19829 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19830   $as_echo_n "(cached) " >&6
19831 else
19832   ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lltdl  $LIBS"
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h.  */
19836
19837 /* Override any GCC internal prototype to avoid an error.
19838    Use char because int might match the return type of a GCC
19839    builtin and then its argument prototype would still apply.  */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char lt_dladvise_preload ();
19844 int
19845 main ()
19846 {
19847 return lt_dladvise_preload ();
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 if ac_fn_c_try_link "$LINENO"; then :
19853   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19854 else
19855   ac_cv_lib_ltdl_lt_dladvise_preload=no
19856 fi
19857 rm -f core conftest.err conftest.$ac_objext \
19858     conftest$ac_exeext conftest.$ac_ext
19859 LIBS=$ac_check_lib_save_LIBS
19860 fi
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19862 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19863 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19864   with_included_ltdl=no
19865 else
19866   with_included_ltdl=yes
19867 fi
19868
19869 else
19870   with_included_ltdl=yes
19871 fi
19872
19873 else
19874   with_included_ltdl=yes
19875 fi
19876
19877
19878 fi
19879
19880
19881
19882
19883 # Check whether --with-ltdl_include was given.
19884 if test "${with_ltdl_include+set}" = set; then :
19885   withval=$with_ltdl_include;
19886 fi
19887
19888
19889 if test -n "$with_ltdl_include"; then
19890   if test -f "$with_ltdl_include/ltdl.h"; then :
19891   else
19892     as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19893   fi
19894 else
19895   with_ltdl_include=no
19896 fi
19897
19898
19899 # Check whether --with-ltdl_lib was given.
19900 if test "${with_ltdl_lib+set}" = set; then :
19901   withval=$with_ltdl_lib;
19902 fi
19903
19904
19905 if test -n "$with_ltdl_lib"; then
19906   if test -f "$with_ltdl_lib/libltdl.la"; then :
19907   else
19908     as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19909   fi
19910 else
19911   with_ltdl_lib=no
19912 fi
19913
19914 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19915   ,yes,no,no,)
19916         case $enable_ltdl_convenience in
19917   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19918   "") enable_ltdl_convenience=yes
19919       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19920 esac
19921 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19922 LTDLDEPS=$LIBLTDL
19923 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19924
19925
19926
19927
19928
19929 # For backwards non-gettext consistent compatibility...
19930 INCLTDL="$LTDLINCL"
19931
19932
19933         ;;
19934   ,no,no,no,)
19935         # If the included ltdl is not to be used, then use the
19936         # preinstalled libltdl we found.
19937
19938 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19939
19940         LIBLTDL=-lltdl
19941         LTDLDEPS=
19942         LTDLINCL=
19943         ;;
19944   ,no*,no,*)
19945         as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19946         ;;
19947   *)    with_included_ltdl=no
19948         LIBLTDL="-L$with_ltdl_lib -lltdl"
19949         LTDLDEPS=
19950         LTDLINCL="-I$with_ltdl_include"
19951         ;;
19952 esac
19953 INCLTDL="$LTDLINCL"
19954
19955 # Report our decision...
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19957 $as_echo_n "checking where to find libltdl headers... " >&6; }
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19959 $as_echo "$LTDLINCL" >&6; }
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19961 $as_echo_n "checking where to find libltdl library... " >&6; }
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19963 $as_echo "$LIBLTDL" >&6; }
19964
19965
19966
19967 # Check whether --enable-ltdl-install was given.
19968 if test "${enable_ltdl_install+set}" = set; then :
19969   enableval=$enable_ltdl_install;
19970 fi
19971
19972
19973 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19974   *yes*) ;;
19975   *) enable_ltdl_convenience=yes ;;
19976 esac
19977
19978  if test x"${enable_ltdl_install-no}" != xno; then
19979   INSTALL_LTDL_TRUE=
19980   INSTALL_LTDL_FALSE='#'
19981 else
19982   INSTALL_LTDL_TRUE='#'
19983   INSTALL_LTDL_FALSE=
19984 fi
19985
19986   if test x"${enable_ltdl_convenience-no}" != xno; then
19987   CONVENIENCE_LTDL_TRUE=
19988   CONVENIENCE_LTDL_FALSE='#'
19989 else
19990   CONVENIENCE_LTDL_TRUE='#'
19991   CONVENIENCE_LTDL_FALSE=
19992 fi
19993
19994
19995
19996
19997
19998
19999
20000 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20001 # the user used.  This is so that ltdl.h can pick up the parent projects
20002 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20003 # definitions required by ltdl.c.
20004 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20005
20006
20007
20008 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20009 do :
20010   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20012 "
20013 eval as_val=\$$as_ac_Header
20014    if test "x$as_val" = x""yes; then :
20015   cat >>confdefs.h <<_ACEOF
20016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20017 _ACEOF
20018
20019 fi
20020
20021 done
20022
20023
20024 for ac_func in closedir opendir readdir
20025 do :
20026   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20028 eval as_val=\$$as_ac_var
20029    if test "x$as_val" = x""yes; then :
20030   cat >>confdefs.h <<_ACEOF
20031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20032 _ACEOF
20033
20034 else
20035
20036
20037   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20038
20039 fi
20040 done
20041
20042 for ac_func in strlcat strlcpy
20043 do :
20044   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20046 eval as_val=\$$as_ac_var
20047    if test "x$as_val" = x""yes; then :
20048   cat >>confdefs.h <<_ACEOF
20049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20050 _ACEOF
20051
20052 else
20053
20054
20055   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20056
20057 fi
20058 done
20059
20060
20061
20062 cat >>confdefs.h <<_ACEOF
20063 #define LT_LIBEXT "$libext"
20064 _ACEOF
20065
20066
20067 name=ltdl
20068 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20069
20070
20071
20072
20073
20074
20075
20076
20077 # Only expand once:
20078
20079
20080
20081 # Check to see if building shared libraries
20082 libtool_build_shared_libs='no'
20083 if test "$enable_shared" = 'yes'; then
20084     libtool_build_shared_libs='yes'
20085 fi
20086
20087 # Check to see if building static libraries
20088 libtool_build_static_libs='no'
20089 if test "$enable_static" = 'yes'; then
20090     libtool_build_static_libs='yes'
20091 fi
20092
20093  if test "${libtool_build_shared_libs}" = 'yes'; then
20094   WITH_SHARED_LIBS_TRUE=
20095   WITH_SHARED_LIBS_FALSE='#'
20096 else
20097   WITH_SHARED_LIBS_TRUE='#'
20098   WITH_SHARED_LIBS_FALSE=
20099 fi
20100
20101 #
20102 # Enable support for building loadable modules
20103 #
20104
20105 # Check whether --with-modules was given.
20106 if test "${with_modules+set}" = set; then :
20107   withval=$with_modules; with_modules=$withval
20108 else
20109   with_modules='no'
20110 fi
20111
20112
20113 # Only allow building loadable modules if we are building shared libraries
20114 if test "$with_modules" != 'no' ; then
20115     if test "$libtool_build_shared_libs" = 'no'; then
20116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20117 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20118         with_modules='no'
20119     fi
20120 fi
20121 if test "$with_modules" != 'no'; then
20122
20123 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20124
20125 fi
20126  if test "$with_modules" != 'no'; then
20127   WITH_MODULES_TRUE=
20128   WITH_MODULES_FALSE='#'
20129 else
20130   WITH_MODULES_TRUE='#'
20131   WITH_MODULES_FALSE=
20132 fi
20133
20134
20135 # Enable building/use of libltdl if we are building shared libraries regardless
20136 # of whether modules are built or not.
20137 with_ltdl='no'
20138 if test "$libtool_build_shared_libs" != 'no'; then
20139     with_ltdl='yes'
20140 fi
20141
20142  if test "$with_ltdl" != 'no'; then
20143   WITH_LTDL_TRUE=
20144   WITH_LTDL_FALSE='#'
20145 else
20146   WITH_LTDL_TRUE='#'
20147   WITH_LTDL_FALSE=
20148 fi
20149
20150 if test "$with_ltdl" != 'no'; then
20151
20152 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20153
20154
20155     # Set DLLDFLAGS
20156     if test X"$enable_shared" = Xyes; then
20157         DLLDFLAGS=-export-dynamic
20158
20159     fi
20160 fi
20161
20162 # Enable build using delegate libraries built in subdirectories rather than installed
20163 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
20164 # Check whether --enable-delegate-build was given.
20165 if test "${enable_delegate_build+set}" = set; then :
20166   enableval=$enable_delegate_build; enable_delegate_build=$enableval
20167 else
20168   enable_delegate_build='no'
20169 fi
20170
20171
20172 # Check whether --enable-deprecated was given.
20173 if test "${enable_deprecated+set}" = set; then :
20174   enableval=$enable_deprecated; enable_deprecated=$enableval
20175 else
20176   enable_deprecated='no'
20177 fi
20178
20179
20180 if test "$enable_deprecated" = 'yes'; then
20181
20182 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20183
20184 else
20185   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20186 fi
20187
20188 # Build a version of ImageMagick which operates uninstalled.
20189 # Used to build distributions located via MAGICK_HOME / executable path
20190 # Check whether --enable-installed was given.
20191 if test "${enable_installed+set}" = set; then :
20192   enableval=$enable_installed; enable_installed=$enableval
20193 else
20194   enable_installed='yes'
20195 fi
20196
20197
20198 if test "$enable_installed" = 'yes'; then
20199
20200 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20201
20202 else
20203     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20204 fi
20205
20206 # Permit enciphering and deciphering image pixels.
20207 # Check whether --enable-cipher was given.
20208 if test "${enable_cipher+set}" = set; then :
20209   enableval=$enable_cipher; enable_cipher=$enableval
20210 else
20211   enable_cipher='yes'
20212 fi
20213
20214
20215 if test "$enable_cipher" = 'yes'; then
20216
20217 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20218
20219 fi
20220
20221 # Build an embeddable version of ImageMagick.
20222 # Check whether --enable-embeddable was given.
20223 if test "${enable_embeddable+set}" = set; then :
20224   enableval=$enable_embeddable; enable_embeddable=$enableval
20225 else
20226   enable_embeddable='no'
20227 fi
20228
20229
20230 if test "$enable_embeddable" = 'yes'; then
20231
20232 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20233
20234 fi
20235
20236 # Build a high dynamic range version of ImageMagick.
20237 # Check whether --enable-hdri was given.
20238 if test "${enable_hdri+set}" = set; then :
20239   enableval=$enable_hdri; enable_hdri=$enableval
20240 else
20241   enable_hdri='no'
20242 fi
20243
20244
20245 MAGICK_HDRI=""
20246 if test "$enable_hdri" = 'yes'; then
20247     MAGICK_HDRI="HDRI"
20248
20249 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20250
20251 fi
20252
20253 # Build a version of ImageMagick with assert statements.
20254 # Check whether --enable-assert was given.
20255 if test "${enable_assert+set}" = set; then :
20256   enableval=$enable_assert; enable_assert=$enableval
20257 else
20258   enable_assert='yes'
20259 fi
20260
20261
20262 if test "$enable_assert" = 'no'; then
20263
20264 $as_echo "#define NDEBUG 1" >>confdefs.h
20265
20266 fi
20267
20268 # Add configure option --enable-maintainer-mode which enables dependency
20269 # checking and generation useful to package maintainers.  This is made an
20270 # option to avoid confusing end users.
20271
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20273 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20274     # Check whether --enable-maintainer-mode was given.
20275 if test "${enable_maintainer_mode+set}" = set; then :
20276   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20277 else
20278   USE_MAINTAINER_MODE=no
20279 fi
20280
20281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20282 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20283    if test $USE_MAINTAINER_MODE = yes; then
20284   MAINTAINER_MODE_TRUE=
20285   MAINTAINER_MODE_FALSE='#'
20286 else
20287   MAINTAINER_MODE_TRUE='#'
20288   MAINTAINER_MODE_FALSE=
20289 fi
20290
20291   MAINT=$MAINTAINER_MODE_TRUE
20292
20293
20294
20295
20296 # Enable ccmalloc memory debugging support
20297 # Check whether --enable-ccmalloc was given.
20298 if test "${enable_ccmalloc+set}" = set; then :
20299   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20300 else
20301   enable_ccmalloc='no'
20302 fi
20303
20304
20305 # Enable Electric Fence memory debugging support
20306 # Check whether --enable-efence was given.
20307 if test "${enable_efence+set}" = set; then :
20308   enableval=$enable_efence; enable_efence=$enableval
20309 else
20310   enable_efence='no'
20311 fi
20312
20313
20314 # Enable prof-based profiling support
20315 # Check whether --enable-prof was given.
20316 if test "${enable_prof+set}" = set; then :
20317   enableval=$enable_prof; enable_prof=$enableval
20318 else
20319   enable_prof='no'
20320 fi
20321
20322
20323 # Enable gprof-based profiling support
20324 # Check whether --enable-gprof was given.
20325 if test "${enable_gprof+set}" = set; then :
20326   enableval=$enable_gprof; enable_gprof=$enableval
20327 else
20328   enable_gprof='no'
20329 fi
20330
20331
20332 # Enable gcov-based profiling support
20333 # Check whether --enable-gcov was given.
20334 if test "${enable_gcov+set}" = set; then :
20335   enableval=$enable_gcov; enable_gcov=$enableval
20336 else
20337   enable_gcov='no'
20338 fi
20339
20340
20341 enable_profiling='no'
20342 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20343     enable_profiling='yes'
20344     if test "$libtool_build_shared_libs" = 'yes'; then
20345         echo "Warning: Can not profile code using shared libraries"
20346     fi
20347 fi
20348
20349 # Magick API method prefix
20350
20351 # Check whether --with-method-prefix was given.
20352 if test "${with_method_prefix+set}" = set; then :
20353   withval=$with_method_prefix; with_method_prefix=$enableval
20354 else
20355   with_method_prefix=''
20356 fi
20357
20358
20359 if test "$with_method_prefix" != ''; then
20360
20361 cat >>confdefs.h <<_ACEOF
20362 #define NAMESPACE_PREFIX $with_method_prefix
20363 _ACEOF
20364
20365 fi
20366
20367 # Number of bits in a Quantum
20368
20369 # Check whether --with-quantum-depth was given.
20370 if test "${with_quantum_depth+set}" = set; then :
20371   withval=$with_quantum_depth; with_quantum_depth=$withval
20372 else
20373   with_quantum_depth=16
20374 fi
20375
20376
20377 if test "$with_quantum_depth" != '8'; then
20378     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20379 fi
20380
20381 case "${with_quantum_depth}" in
20382     8 ) ;;
20383     16 ) ;;
20384     32 ) ;;
20385     64 ) ;;
20386     * ) { as_fn_set_status 16
20387 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
20388 esac
20389 QUANTUM_DEPTH="$with_quantum_depth"
20390
20391 cat >>confdefs.h <<_ACEOF
20392 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20393 _ACEOF
20394
20395
20396 # Set pixel cache threshold
20397
20398 # Check whether --with-cache was given.
20399 if test "${with_cache+set}" = set; then :
20400   withval=$with_cache; with_cache=$withval
20401 else
20402   with_cache=''
20403 fi
20404
20405
20406 if test "$with_cache" != ''; then
20407
20408 cat >>confdefs.h <<_ACEOF
20409 #define PixelCacheThreshold $with_cache
20410 _ACEOF
20411
20412     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20413 fi
20414
20415 # Disable/Enable support for full delegate paths
20416
20417 # Check whether --with-frozenpaths was given.
20418 if test "${with_frozenpaths+set}" = set; then :
20419   withval=$with_frozenpaths; with_frozenpaths=$withval
20420 else
20421   with_frozenpaths='no'
20422 fi
20423
20424
20425 # Enable build/install of Magick++
20426
20427 # Check whether --with-magick-plus-plus was given.
20428 if test "${with_magick_plus_plus+set}" = set; then :
20429   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20430 else
20431   with_magick_plus_plus='yes'
20432 fi
20433
20434
20435 # Disable build/install of PerlMagick.
20436
20437 # Check whether --with-perl was given.
20438 if test "${with_perl+set}" = set; then :
20439   withval=$with_perl; with_perl=$withval
20440 else
20441   with_perl='no'
20442 fi
20443
20444
20445 # Options to pass when configuring PerlMagick
20446
20447 # Check whether --with-perl-options was given.
20448 if test "${with_perl_options+set}" = set; then :
20449   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20450 fi
20451
20452
20453
20454 # Enable umem, object-caching memory allocation library.
20455
20456 # Check whether --with-umem was given.
20457 if test "${with_umem+set}" = set; then :
20458   withval=$with_umem; with_umem=$withval
20459 else
20460   with_umem='no'
20461 fi
20462
20463 if test "$with_umem" != 'yes' ; then
20464     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20465 fi
20466
20467 #
20468 # Specify path to shared libstdc++ if not in normal location
20469 #
20470
20471 # Check whether --with-libstdc was given.
20472 if test "${with_libstdc+set}" = set; then :
20473   withval=$with_libstdc; with_libstdc=$withval
20474 else
20475   with_libstdc=''
20476 fi
20477
20478
20479 if test "$with_libstdc" != ''; then
20480     if test -d "$with_libstdc"; then
20481         LIBSTDCLDFLAGS="-L$with_libstdc"
20482     fi
20483 fi
20484
20485
20486 # Does gcc required -traditional?
20487 if test $ac_cv_c_compiler_gnu = yes; then
20488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20489 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20490 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20491   $as_echo_n "(cached) " >&6
20492 else
20493     ac_pattern="Autoconf.*'x'"
20494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h.  */
20496 #include <sgtty.h>
20497 Autoconf TIOCGETP
20498 _ACEOF
20499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20500   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20501   ac_cv_prog_gcc_traditional=yes
20502 else
20503   ac_cv_prog_gcc_traditional=no
20504 fi
20505 rm -f conftest*
20506
20507
20508   if test $ac_cv_prog_gcc_traditional = no; then
20509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h.  */
20511 #include <termio.h>
20512 Autoconf TCGETA
20513 _ACEOF
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20516   ac_cv_prog_gcc_traditional=yes
20517 fi
20518 rm -f conftest*
20519
20520   fi
20521 fi
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20523 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20524   if test $ac_cv_prog_gcc_traditional = yes; then
20525     CC="$CC -traditional"
20526   fi
20527 fi
20528
20529
20530 ########
20531 #
20532 # Set defines required to build DLLs and modules using MinGW
20533 #
20534 ########
20535 # These options are set for multi-thread DLL module build
20536 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20537 #  module:              _DLL
20538 #  executable/Magick++: _DLL _MAGICKMOD_
20539 MODULE_EXTRA_CPPFLAGS=''
20540 LIBRARY_EXTRA_CPPFLAGS=''
20541 if test "${native_win32_build}" = 'yes'; then
20542     if test "${libtool_build_shared_libs}" = 'yes'; then
20543         CPPFLAGS="$CPPFLAGS -D_DLL"
20544         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20545         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20546         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20547         if test "$with_modules" = 'yes'; then
20548             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20549         else
20550             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20551         fi
20552     else
20553         CPPFLAGS="$CPPFLAGS -D_LIB"
20554         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20555         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20556     fi
20557     if test "$with_threads" = 'yes'; then
20558          CPPFLAGS="$CPPFLAGS -D_MT"
20559          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20560          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20561     fi
20562 fi
20563
20564
20565
20566 # Check standard headers
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20568 $as_echo_n "checking for ANSI C header files... " >&6; }
20569 if test "${ac_cv_header_stdc+set}" = set; then :
20570   $as_echo_n "(cached) " >&6
20571 else
20572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h.  */
20574 #include <stdlib.h>
20575 #include <stdarg.h>
20576 #include <string.h>
20577 #include <float.h>
20578
20579 int
20580 main ()
20581 {
20582
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 if ac_fn_c_try_compile "$LINENO"; then :
20588   ac_cv_header_stdc=yes
20589 else
20590   ac_cv_header_stdc=no
20591 fi
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593
20594 if test $ac_cv_header_stdc = yes; then
20595   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h.  */
20598 #include <string.h>
20599
20600 _ACEOF
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602   $EGREP "memchr" >/dev/null 2>&1; then :
20603
20604 else
20605   ac_cv_header_stdc=no
20606 fi
20607 rm -f conftest*
20608
20609 fi
20610
20611 if test $ac_cv_header_stdc = yes; then
20612   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h.  */
20615 #include <stdlib.h>
20616
20617 _ACEOF
20618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20619   $EGREP "free" >/dev/null 2>&1; then :
20620
20621 else
20622   ac_cv_header_stdc=no
20623 fi
20624 rm -f conftest*
20625
20626 fi
20627
20628 if test $ac_cv_header_stdc = yes; then
20629   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20630   if test "$cross_compiling" = yes; then :
20631   :
20632 else
20633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h.  */
20635 #include <ctype.h>
20636 #include <stdlib.h>
20637 #if ((' ' & 0x0FF) == 0x020)
20638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20640 #else
20641 # define ISLOWER(c) \
20642                    (('a' <= (c) && (c) <= 'i') \
20643                      || ('j' <= (c) && (c) <= 'r') \
20644                      || ('s' <= (c) && (c) <= 'z'))
20645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20646 #endif
20647
20648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20649 int
20650 main ()
20651 {
20652   int i;
20653   for (i = 0; i < 256; i++)
20654     if (XOR (islower (i), ISLOWER (i))
20655         || toupper (i) != TOUPPER (i))
20656       return 2;
20657   return 0;
20658 }
20659 _ACEOF
20660 if ac_fn_c_try_run "$LINENO"; then :
20661
20662 else
20663   ac_cv_header_stdc=no
20664 fi
20665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20666   conftest.$ac_objext conftest.beam conftest.$ac_ext
20667 fi
20668
20669 fi
20670 fi
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20672 $as_echo "$ac_cv_header_stdc" >&6; }
20673 if test $ac_cv_header_stdc = yes; then
20674
20675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20676
20677 fi
20678
20679 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20681     header files.  Compilation cannot proceed.  Please install the ANSI C
20682     headers and rerun this script." >&5
20683 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20684     header files.  Compilation cannot proceed.  Please install the ANSI C
20685     headers and rerun this script." >&2;};
20686 fi
20687
20688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20689 $as_echo_n "checking whether to enable assertions... " >&6; }
20690   # Check whether --enable-assert was given.
20691 if test "${enable_assert+set}" = set; then :
20692   enableval=$enable_assert; ac_enable_assert=$enableval
20693      if       test "x$enableval" = xno; then :
20694
20695 $as_echo "#define NDEBUG 1" >>confdefs.h
20696
20697 elif test "x$enableval" != xyes; then :
20698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20699 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20700         ac_enable_assert=yes
20701 fi
20702 else
20703   ac_enable_assert=yes
20704 fi
20705
20706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20707 $as_echo "$ac_enable_assert" >&6; }
20708
20709 ac_header_dirent=no
20710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20711   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20713 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20715   $as_echo_n "(cached) " >&6
20716 else
20717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h.  */
20719 #include <sys/types.h>
20720 #include <$ac_hdr>
20721
20722 int
20723 main ()
20724 {
20725 if ((DIR *) 0)
20726 return 0;
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 if ac_fn_c_try_compile "$LINENO"; then :
20732   eval "$as_ac_Header=yes"
20733 else
20734   eval "$as_ac_Header=no"
20735 fi
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 fi
20738 eval ac_res=\$$as_ac_Header
20739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20740 $as_echo "$ac_res" >&6; }
20741 eval as_val=\$$as_ac_Header
20742    if test "x$as_val" = x""yes; then :
20743   cat >>confdefs.h <<_ACEOF
20744 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20745 _ACEOF
20746
20747 ac_header_dirent=$ac_hdr; break
20748 fi
20749
20750 done
20751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20752 if test $ac_header_dirent = dirent.h; then
20753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20754 $as_echo_n "checking for library containing opendir... " >&6; }
20755 if test "${ac_cv_search_opendir+set}" = set; then :
20756   $as_echo_n "(cached) " >&6
20757 else
20758   ac_func_search_save_LIBS=$LIBS
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h.  */
20761
20762 /* Override any GCC internal prototype to avoid an error.
20763    Use char because int might match the return type of a GCC
20764    builtin and then its argument prototype would still apply.  */
20765 #ifdef __cplusplus
20766 extern "C"
20767 #endif
20768 char opendir ();
20769 int
20770 main ()
20771 {
20772 return opendir ();
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 for ac_lib in '' dir; do
20778   if test -z "$ac_lib"; then
20779     ac_res="none required"
20780   else
20781     ac_res=-l$ac_lib
20782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20783   fi
20784   if ac_fn_c_try_link "$LINENO"; then :
20785   ac_cv_search_opendir=$ac_res
20786 fi
20787 rm -f core conftest.err conftest.$ac_objext \
20788     conftest$ac_exeext
20789   if test "${ac_cv_search_opendir+set}" = set; then :
20790   break
20791 fi
20792 done
20793 if test "${ac_cv_search_opendir+set}" = set; then :
20794
20795 else
20796   ac_cv_search_opendir=no
20797 fi
20798 rm conftest.$ac_ext
20799 LIBS=$ac_func_search_save_LIBS
20800 fi
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20802 $as_echo "$ac_cv_search_opendir" >&6; }
20803 ac_res=$ac_cv_search_opendir
20804 if test "$ac_res" != no; then :
20805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20806
20807 fi
20808
20809 else
20810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20811 $as_echo_n "checking for library containing opendir... " >&6; }
20812 if test "${ac_cv_search_opendir+set}" = set; then :
20813   $as_echo_n "(cached) " >&6
20814 else
20815   ac_func_search_save_LIBS=$LIBS
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h.  */
20818
20819 /* Override any GCC internal prototype to avoid an error.
20820    Use char because int might match the return type of a GCC
20821    builtin and then its argument prototype would still apply.  */
20822 #ifdef __cplusplus
20823 extern "C"
20824 #endif
20825 char opendir ();
20826 int
20827 main ()
20828 {
20829 return opendir ();
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 for ac_lib in '' x; do
20835   if test -z "$ac_lib"; then
20836     ac_res="none required"
20837   else
20838     ac_res=-l$ac_lib
20839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20840   fi
20841   if ac_fn_c_try_link "$LINENO"; then :
20842   ac_cv_search_opendir=$ac_res
20843 fi
20844 rm -f core conftest.err conftest.$ac_objext \
20845     conftest$ac_exeext
20846   if test "${ac_cv_search_opendir+set}" = set; then :
20847   break
20848 fi
20849 done
20850 if test "${ac_cv_search_opendir+set}" = set; then :
20851
20852 else
20853   ac_cv_search_opendir=no
20854 fi
20855 rm conftest.$ac_ext
20856 LIBS=$ac_func_search_save_LIBS
20857 fi
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20859 $as_echo "$ac_cv_search_opendir" >&6; }
20860 ac_res=$ac_cv_search_opendir
20861 if test "$ac_res" != no; then :
20862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20863
20864 fi
20865
20866 fi
20867
20868
20869 # Check additional headers
20870 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
20871 do :
20872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20874 eval as_val=\$$as_ac_Header
20875    if test "x$as_val" = x""yes; then :
20876   cat >>confdefs.h <<_ACEOF
20877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20878 _ACEOF
20879
20880 fi
20881
20882 done
20883
20884
20885 ########
20886 #
20887 # Checks for typedefs, structures, and compiler characteristics.
20888 #
20889 ########
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20892 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20893 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20894   $as_echo_n "(cached) " >&6
20895 else
20896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h.  */
20898
20899 #include <stdbool.h>
20900 #ifndef bool
20901  "error: bool is not defined"
20902 #endif
20903 #ifndef false
20904  "error: false is not defined"
20905 #endif
20906 #if false
20907  "error: false is not 0"
20908 #endif
20909 #ifndef true
20910  "error: true is not defined"
20911 #endif
20912 #if true != 1
20913  "error: true is not 1"
20914 #endif
20915 #ifndef __bool_true_false_are_defined
20916  "error: __bool_true_false_are_defined is not defined"
20917 #endif
20918
20919         struct s { _Bool s: 1; _Bool t; } s;
20920
20921         char a[true == 1 ? 1 : -1];
20922         char b[false == 0 ? 1 : -1];
20923         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20924         char d[(bool) 0.5 == true ? 1 : -1];
20925         bool e = &s;
20926         char f[(_Bool) 0.0 == false ? 1 : -1];
20927         char g[true];
20928         char h[sizeof (_Bool)];
20929         char i[sizeof s.t];
20930         enum { j = false, k = true, l = false * true, m = true * 256 };
20931         /* The following fails for
20932            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20933         _Bool n[m];
20934         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20935         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20936 #       if defined __xlc__ || defined __GNUC__
20937          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20938             reported by James Lemley on 2005-10-05; see
20939             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20940             This test is not quite right, since xlc is allowed to
20941             reject this program, as the initializer for xlcbug is
20942             not one of the forms that C requires support for.
20943             However, doing the test right would require a runtime
20944             test, and that would make cross-compilation harder.
20945             Let us hope that IBM fixes the xlc bug, and also adds
20946             support for this kind of constant expression.  In the
20947             meantime, this test will reject xlc, which is OK, since
20948             our stdbool.h substitute should suffice.  We also test
20949             this with GCC, where it should work, to detect more
20950             quickly whether someone messes up the test in the
20951             future.  */
20952          char digs[] = "0123456789";
20953          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20954 #       endif
20955         /* Catch a bug in an HP-UX C compiler.  See
20956            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20957            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20958          */
20959         _Bool q = true;
20960         _Bool *pq = &q;
20961
20962 int
20963 main ()
20964 {
20965
20966         *pq |= q;
20967         *pq |= ! q;
20968         /* Refer to every declared value, to avoid compiler optimizations.  */
20969         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20970                 + !m + !n + !o + !p + !q + !pq);
20971
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 if ac_fn_c_try_compile "$LINENO"; then :
20977   ac_cv_header_stdbool_h=yes
20978 else
20979   ac_cv_header_stdbool_h=no
20980 fi
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 fi
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20984 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20985 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20986 if test "x$ac_cv_type__Bool" = x""yes; then :
20987
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE__BOOL 1
20990 _ACEOF
20991
20992
20993 fi
20994
20995 if test $ac_cv_header_stdbool_h = yes; then
20996
20997 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20998
20999 fi
21000
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21002 $as_echo_n "checking for working volatile... " >&6; }
21003 if test "${ac_cv_c_volatile+set}" = set; then :
21004   $as_echo_n "(cached) " >&6
21005 else
21006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h.  */
21008
21009 int
21010 main ()
21011 {
21012
21013 volatile int x;
21014 int * volatile y = (int *) 0;
21015 return !x && !y;
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 if ac_fn_c_try_compile "$LINENO"; then :
21021   ac_cv_c_volatile=yes
21022 else
21023   ac_cv_c_volatile=no
21024 fi
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 fi
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21028 $as_echo "$ac_cv_c_volatile" >&6; }
21029 if test $ac_cv_c_volatile = no; then
21030
21031 $as_echo "#define volatile /**/" >>confdefs.h
21032
21033 fi
21034
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21036 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21037 if test "${ac_cv_c_stringize+set}" = set; then :
21038   $as_echo_n "(cached) " >&6
21039 else
21040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h.  */
21042 #define x(y) #y
21043
21044 char *s = x(teststring);
21045 _ACEOF
21046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047   $EGREP "#teststring" >/dev/null 2>&1; then :
21048   ac_cv_c_stringize=no
21049 else
21050   ac_cv_c_stringize=yes
21051 fi
21052 rm -f conftest*
21053
21054 fi
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21056 $as_echo "$ac_cv_c_stringize" >&6; }
21057 if test $ac_cv_c_stringize = yes; then
21058
21059 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21060
21061 fi
21062
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21064 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21065 if test "${ac_cv_header_stat_broken+set}" = set; then :
21066   $as_echo_n "(cached) " >&6
21067 else
21068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h.  */
21070 #include <sys/types.h>
21071 #include <sys/stat.h>
21072
21073 #if defined S_ISBLK && defined S_IFDIR
21074 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21075 #endif
21076
21077 #if defined S_ISBLK && defined S_IFCHR
21078 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21079 #endif
21080
21081 #if defined S_ISLNK && defined S_IFREG
21082 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21083 #endif
21084
21085 #if defined S_ISSOCK && defined S_IFREG
21086 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21087 #endif
21088
21089 _ACEOF
21090 if ac_fn_c_try_compile "$LINENO"; then :
21091   ac_cv_header_stat_broken=no
21092 else
21093   ac_cv_header_stat_broken=yes
21094 fi
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 fi
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21098 $as_echo "$ac_cv_header_stat_broken" >&6; }
21099 if test $ac_cv_header_stat_broken = yes; then
21100
21101 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21102
21103 fi
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21106 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21107 if test "${ac_cv_header_time+set}" = set; then :
21108   $as_echo_n "(cached) " >&6
21109 else
21110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h.  */
21112 #include <sys/types.h>
21113 #include <sys/time.h>
21114 #include <time.h>
21115
21116 int
21117 main ()
21118 {
21119 if ((struct tm *) 0)
21120 return 0;
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 if ac_fn_c_try_compile "$LINENO"; then :
21126   ac_cv_header_time=yes
21127 else
21128   ac_cv_header_time=no
21129 fi
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 fi
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21133 $as_echo "$ac_cv_header_time" >&6; }
21134 if test $ac_cv_header_time = yes; then
21135
21136 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21137
21138 fi
21139
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21141 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21142 if test "${ac_cv_struct_tm+set}" = set; then :
21143   $as_echo_n "(cached) " >&6
21144 else
21145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h.  */
21147 #include <sys/types.h>
21148 #include <time.h>
21149
21150 int
21151 main ()
21152 {
21153 struct tm tm;
21154                                      int *p = &tm.tm_sec;
21155                                      return !p;
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 if ac_fn_c_try_compile "$LINENO"; then :
21161   ac_cv_struct_tm=time.h
21162 else
21163   ac_cv_struct_tm=sys/time.h
21164 fi
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 fi
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21168 $as_echo "$ac_cv_struct_tm" >&6; }
21169 if test $ac_cv_struct_tm = sys/time.h; then
21170
21171 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21172
21173 fi
21174
21175 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21176 #include <$ac_cv_struct_tm>
21177
21178 "
21179 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21180
21181 cat >>confdefs.h <<_ACEOF
21182 #define HAVE_STRUCT_TM_TM_ZONE 1
21183 _ACEOF
21184
21185
21186 fi
21187
21188 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21189
21190 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21191
21192 else
21193   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21194 "
21195 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21196   ac_have_decl=1
21197 else
21198   ac_have_decl=0
21199 fi
21200
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_DECL_TZNAME $ac_have_decl
21203 _ACEOF
21204
21205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21206 $as_echo_n "checking for tzname... " >&6; }
21207 if test "${ac_cv_var_tzname+set}" = set; then :
21208   $as_echo_n "(cached) " >&6
21209 else
21210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211 /* end confdefs.h.  */
21212 #include <time.h>
21213 #if !HAVE_DECL_TZNAME
21214 extern char *tzname[];
21215 #endif
21216
21217 int
21218 main ()
21219 {
21220 return tzname[0][0];
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 if ac_fn_c_try_link "$LINENO"; then :
21226   ac_cv_var_tzname=yes
21227 else
21228   ac_cv_var_tzname=no
21229 fi
21230 rm -f core conftest.err conftest.$ac_objext \
21231     conftest$ac_exeext conftest.$ac_ext
21232 fi
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21234 $as_echo "$ac_cv_var_tzname" >&6; }
21235   if test $ac_cv_var_tzname = yes; then
21236
21237 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21238
21239   fi
21240 fi
21241
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21243 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21244 if test "${ac_cv_sys_interpreter+set}" = set; then :
21245   $as_echo_n "(cached) " >&6
21246 else
21247   echo '#! /bin/cat
21248 exit 69
21249 ' >conftest
21250 chmod u+x conftest
21251 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21252 if test $? -ne 69; then
21253    ac_cv_sys_interpreter=yes
21254 else
21255    ac_cv_sys_interpreter=no
21256 fi
21257 rm -f conftest
21258 fi
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21260 $as_echo "$ac_cv_sys_interpreter" >&6; }
21261 interpval=$ac_cv_sys_interpreter
21262
21263
21264 # If the C compiler supports the keyword inline, do nothing. Otherwise
21265 # define inline to __inline__ or __inline if it accepts one of those,
21266 # otherwise define inline to be empty.
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21268 $as_echo_n "checking for inline... " >&6; }
21269 if test "${ac_cv_c_inline+set}" = set; then :
21270   $as_echo_n "(cached) " >&6
21271 else
21272   ac_cv_c_inline=no
21273 for ac_kw in inline __inline__ __inline; do
21274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h.  */
21276 #ifndef __cplusplus
21277 typedef int foo_t;
21278 static $ac_kw foo_t static_foo () {return 0; }
21279 $ac_kw foo_t foo () {return 0; }
21280 #endif
21281
21282 _ACEOF
21283 if ac_fn_c_try_compile "$LINENO"; then :
21284   ac_cv_c_inline=$ac_kw
21285 fi
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287   test "$ac_cv_c_inline" != no && break
21288 done
21289
21290 fi
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21292 $as_echo "$ac_cv_c_inline" >&6; }
21293
21294 case $ac_cv_c_inline in
21295   inline | yes) ;;
21296   *)
21297     case $ac_cv_c_inline in
21298       no) ac_val=;;
21299       *) ac_val=$ac_cv_c_inline;;
21300     esac
21301     cat >>confdefs.h <<_ACEOF
21302 #ifndef __cplusplus
21303 #define inline $ac_val
21304 #endif
21305 _ACEOF
21306     ;;
21307 esac
21308
21309
21310 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21311 # define restrict to __restrict__ or __restrict if it accepts one of those,
21312 # otherwise define restrict to be empty.
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21314 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21315 if test "${ac_cv_c_restrict+set}" = set; then :
21316   $as_echo_n "(cached) " >&6
21317 else
21318   ac_cv_c_restrict=no
21319    # The order here caters to the fact that C++ does not require restrict.
21320    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h.  */
21323 typedef int * int_ptr;
21324         int foo (int_ptr $ac_kw ip) {
21325         return ip[0];
21326        }
21327 int
21328 main ()
21329 {
21330 int s[1];
21331         int * $ac_kw t = s;
21332         t[0] = 0;
21333         return foo(t)
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339   ac_cv_c_restrict=$ac_kw
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342      test "$ac_cv_c_restrict" != no && break
21343    done
21344
21345 fi
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21347 $as_echo "$ac_cv_c_restrict" >&6; }
21348
21349  case $ac_cv_c_restrict in
21350    restrict) ;;
21351    no) $as_echo "#define restrict /**/" >>confdefs.h
21352  ;;
21353    *)  cat >>confdefs.h <<_ACEOF
21354 #define restrict $ac_cv_c_restrict
21355 _ACEOF
21356  ;;
21357  esac
21358
21359
21360 # If words are stored with the most significant byte first (like
21361 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21363 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21364 if test "${ac_cv_c_bigendian+set}" = set; then :
21365   $as_echo_n "(cached) " >&6
21366 else
21367   ac_cv_c_bigendian=unknown
21368     # See if we're dealing with a universal compiler.
21369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h.  */
21371 #ifndef __APPLE_CC__
21372                not a universal capable compiler
21373              #endif
21374              typedef int dummy;
21375
21376 _ACEOF
21377 if ac_fn_c_try_compile "$LINENO"; then :
21378
21379         # Check for potential -arch flags.  It is not universal unless
21380         # there are at least two -arch flags with different values.
21381         ac_arch=
21382         ac_prev=
21383         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21384          if test -n "$ac_prev"; then
21385            case $ac_word in
21386              i?86 | x86_64 | ppc | ppc64)
21387                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21388                  ac_arch=$ac_word
21389                else
21390                  ac_cv_c_bigendian=universal
21391                  break
21392                fi
21393                ;;
21394            esac
21395            ac_prev=
21396          elif test "x$ac_word" = "x-arch"; then
21397            ac_prev=arch
21398          fi
21399        done
21400 fi
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402     if test $ac_cv_c_bigendian = unknown; then
21403       # See if sys/param.h defines the BYTE_ORDER macro.
21404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h.  */
21406 #include <sys/types.h>
21407              #include <sys/param.h>
21408
21409 int
21410 main ()
21411 {
21412 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21413                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21414                      && LITTLE_ENDIAN)
21415               bogus endian macros
21416              #endif
21417
21418   ;
21419   return 0;
21420 }
21421 _ACEOF
21422 if ac_fn_c_try_compile "$LINENO"; then :
21423   # It does; now see whether it defined to BIG_ENDIAN or not.
21424          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h.  */
21426 #include <sys/types.h>
21427                 #include <sys/param.h>
21428
21429 int
21430 main ()
21431 {
21432 #if BYTE_ORDER != BIG_ENDIAN
21433                  not big endian
21434                 #endif
21435
21436   ;
21437   return 0;
21438 }
21439 _ACEOF
21440 if ac_fn_c_try_compile "$LINENO"; then :
21441   ac_cv_c_bigendian=yes
21442 else
21443   ac_cv_c_bigendian=no
21444 fi
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 fi
21447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448     fi
21449     if test $ac_cv_c_bigendian = unknown; then
21450       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21451       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h.  */
21453 #include <limits.h>
21454
21455 int
21456 main ()
21457 {
21458 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21459               bogus endian macros
21460              #endif
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 if ac_fn_c_try_compile "$LINENO"; then :
21467   # It does; now see whether it defined to _BIG_ENDIAN or not.
21468          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21469 /* end confdefs.h.  */
21470 #include <limits.h>
21471
21472 int
21473 main ()
21474 {
21475 #ifndef _BIG_ENDIAN
21476                  not big endian
21477                 #endif
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 if ac_fn_c_try_compile "$LINENO"; then :
21484   ac_cv_c_bigendian=yes
21485 else
21486   ac_cv_c_bigendian=no
21487 fi
21488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21489 fi
21490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491     fi
21492     if test $ac_cv_c_bigendian = unknown; then
21493       # Compile a test program.
21494       if test "$cross_compiling" = yes; then :
21495   # Try to guess by grepping values from an object file.
21496          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h.  */
21498 short int ascii_mm[] =
21499                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21500                 short int ascii_ii[] =
21501                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21502                 int use_ascii (int i) {
21503                   return ascii_mm[i] + ascii_ii[i];
21504                 }
21505                 short int ebcdic_ii[] =
21506                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21507                 short int ebcdic_mm[] =
21508                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21509                 int use_ebcdic (int i) {
21510                   return ebcdic_mm[i] + ebcdic_ii[i];
21511                 }
21512                 extern int foo;
21513
21514 int
21515 main ()
21516 {
21517 return use_ascii (foo) == use_ebcdic (foo);
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 if ac_fn_c_try_compile "$LINENO"; then :
21523   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21524               ac_cv_c_bigendian=yes
21525             fi
21526             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21527               if test "$ac_cv_c_bigendian" = unknown; then
21528                 ac_cv_c_bigendian=no
21529               else
21530                 # finding both strings is unlikely to happen, but who knows?
21531                 ac_cv_c_bigendian=unknown
21532               fi
21533             fi
21534 fi
21535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536 else
21537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h.  */
21539 $ac_includes_default
21540 int
21541 main ()
21542 {
21543
21544              /* Are we little or big endian?  From Harbison&Steele.  */
21545              union
21546              {
21547                long int l;
21548                char c[sizeof (long int)];
21549              } u;
21550              u.l = 1;
21551              return u.c[sizeof (long int) - 1] == 1;
21552
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_c_try_run "$LINENO"; then :
21558   ac_cv_c_bigendian=no
21559 else
21560   ac_cv_c_bigendian=yes
21561 fi
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563   conftest.$ac_objext conftest.beam conftest.$ac_ext
21564 fi
21565
21566     fi
21567 fi
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21569 $as_echo "$ac_cv_c_bigendian" >&6; }
21570  case $ac_cv_c_bigendian in #(
21571    yes)
21572      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21573 ;; #(
21574    no)
21575       ;; #(
21576    universal)
21577
21578 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21579
21580      ;; #(
21581    *)
21582      as_fn_error "unknown endianness
21583  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21584  esac
21585
21586
21587 # Define mode_t to a suitable type, if standard headers do not define it.
21588 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21589 if test "x$ac_cv_type_mode_t" = x""yes; then :
21590
21591 else
21592
21593 cat >>confdefs.h <<_ACEOF
21594 #define mode_t int
21595 _ACEOF
21596
21597 fi
21598
21599
21600 # Define off_t to a suitable type, if standard headers do not define it.
21601 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21602 if test "x$ac_cv_type_off_t" = x""yes; then :
21603
21604 else
21605
21606 cat >>confdefs.h <<_ACEOF
21607 #define off_t long int
21608 _ACEOF
21609
21610 fi
21611
21612
21613 # Define pid_t to a suitable type, if standard headers do not define it.
21614 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21615 if test "x$ac_cv_type_pid_t" = x""yes; then :
21616
21617 else
21618
21619 cat >>confdefs.h <<_ACEOF
21620 #define pid_t int
21621 _ACEOF
21622
21623 fi
21624
21625
21626 # Define size_t to a suitable type, if standard headers do not define it.
21627 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21628 if test "x$ac_cv_type_size_t" = x""yes; then :
21629
21630 else
21631
21632 cat >>confdefs.h <<_ACEOF
21633 #define size_t unsigned int
21634 _ACEOF
21635
21636 fi
21637
21638
21639 # Define ssize_t to a suitable type, if standard headers do not define it.
21640 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21641 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21642
21643 else
21644
21645 cat >>confdefs.h <<_ACEOF
21646 #define ssize_t int
21647 _ACEOF
21648
21649 fi
21650
21651
21652 # If the C compiler supports a working long double type with more range
21653 # or precision than the double type, define HAVE_LONG_DOUBLE.
21654
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21656 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21657 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21658   $as_echo_n "(cached) " >&6
21659 else
21660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h.  */
21662 #include <float.h>
21663             long double const a[] =
21664               {
21665                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21666                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21667               };
21668             long double
21669             f (long double x)
21670             {
21671                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21672                         + (x ? f (x) : 'c'));
21673             }
21674
21675 int
21676 main ()
21677 {
21678 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21679                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21680                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21681                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21682             && (int) LDBL_EPSILON == 0
21683           )];
21684 test_array [0] = 0
21685
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 if ac_fn_c_try_compile "$LINENO"; then :
21691   ac_cv_type_long_double_wider=yes
21692 else
21693   ac_cv_type_long_double_wider=no
21694 fi
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21696 fi
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21698 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21699   if test $ac_cv_type_long_double_wider = yes; then
21700
21701 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21702
21703   fi
21704
21705
21706 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21707 # C compiler predefines it.
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21709 $as_echo_n "checking whether char is unsigned... " >&6; }
21710 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21711   $as_echo_n "(cached) " >&6
21712 else
21713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h.  */
21715 $ac_includes_default
21716 int
21717 main ()
21718 {
21719 static int test_array [1 - 2 * !(((char) -1) < 0)];
21720 test_array [0] = 0
21721
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 if ac_fn_c_try_compile "$LINENO"; then :
21727   ac_cv_c_char_unsigned=no
21728 else
21729   ac_cv_c_char_unsigned=yes
21730 fi
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732 fi
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21734 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21735 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21736   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21737
21738 fi
21739
21740
21741 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21742 # The cast to long int works around a bug in the HP C Compiler
21743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21745 # This bug is HP SR number 8606223364.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21747 $as_echo_n "checking size of signed short... " >&6; }
21748 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21749   $as_echo_n "(cached) " >&6
21750 else
21751   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21752
21753 else
21754   if test "$ac_cv_type_signed_short" = yes; then
21755      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21757 { as_fn_set_status 77
21758 as_fn_error "cannot compute sizeof (signed short)
21759 See \`config.log' for more details." "$LINENO" 5; }; }
21760    else
21761      ac_cv_sizeof_signed_short=0
21762    fi
21763 fi
21764
21765 fi
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21767 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21768
21769
21770
21771 cat >>confdefs.h <<_ACEOF
21772 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21773 _ACEOF
21774
21775
21776
21777 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21778 # The cast to long int works around a bug in the HP C Compiler
21779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781 # This bug is HP SR number 8606223364.
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21783 $as_echo_n "checking size of unsigned short... " >&6; }
21784 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21785   $as_echo_n "(cached) " >&6
21786 else
21787   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21788
21789 else
21790   if test "$ac_cv_type_unsigned_short" = yes; then
21791      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21793 { as_fn_set_status 77
21794 as_fn_error "cannot compute sizeof (unsigned short)
21795 See \`config.log' for more details." "$LINENO" 5; }; }
21796    else
21797      ac_cv_sizeof_unsigned_short=0
21798    fi
21799 fi
21800
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21803 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21804
21805
21806
21807 cat >>confdefs.h <<_ACEOF
21808 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21809 _ACEOF
21810
21811
21812
21813 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21814 # The cast to long int works around a bug in the HP C Compiler
21815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817 # This bug is HP SR number 8606223364.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21819 $as_echo_n "checking size of signed int... " >&6; }
21820 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21821   $as_echo_n "(cached) " >&6
21822 else
21823   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21824
21825 else
21826   if test "$ac_cv_type_signed_int" = yes; then
21827      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21829 { as_fn_set_status 77
21830 as_fn_error "cannot compute sizeof (signed int)
21831 See \`config.log' for more details." "$LINENO" 5; }; }
21832    else
21833      ac_cv_sizeof_signed_int=0
21834    fi
21835 fi
21836
21837 fi
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21839 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21840
21841
21842
21843 cat >>confdefs.h <<_ACEOF
21844 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21845 _ACEOF
21846
21847
21848
21849 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21855 $as_echo_n "checking size of unsigned int... " >&6; }
21856 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21857   $as_echo_n "(cached) " >&6
21858 else
21859   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21860
21861 else
21862   if test "$ac_cv_type_unsigned_int" = yes; then
21863      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21865 { as_fn_set_status 77
21866 as_fn_error "cannot compute sizeof (unsigned int)
21867 See \`config.log' for more details." "$LINENO" 5; }; }
21868    else
21869      ac_cv_sizeof_unsigned_int=0
21870    fi
21871 fi
21872
21873 fi
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21875 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21876
21877
21878
21879 cat >>confdefs.h <<_ACEOF
21880 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21881 _ACEOF
21882
21883
21884
21885 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21886 # The cast to long int works around a bug in the HP C Compiler
21887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21889 # This bug is HP SR number 8606223364.
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21891 $as_echo_n "checking size of signed long... " >&6; }
21892 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21893   $as_echo_n "(cached) " >&6
21894 else
21895   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21896
21897 else
21898   if test "$ac_cv_type_signed_long" = yes; then
21899      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21901 { as_fn_set_status 77
21902 as_fn_error "cannot compute sizeof (signed long)
21903 See \`config.log' for more details." "$LINENO" 5; }; }
21904    else
21905      ac_cv_sizeof_signed_long=0
21906    fi
21907 fi
21908
21909 fi
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21911 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21912
21913
21914
21915 cat >>confdefs.h <<_ACEOF
21916 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21917 _ACEOF
21918
21919
21920
21921 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21922 # The cast to long int works around a bug in the HP C Compiler
21923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21925 # This bug is HP SR number 8606223364.
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21927 $as_echo_n "checking size of unsigned long... " >&6; }
21928 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21929   $as_echo_n "(cached) " >&6
21930 else
21931   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21932
21933 else
21934   if test "$ac_cv_type_unsigned_long" = yes; then
21935      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21937 { as_fn_set_status 77
21938 as_fn_error "cannot compute sizeof (unsigned long)
21939 See \`config.log' for more details." "$LINENO" 5; }; }
21940    else
21941      ac_cv_sizeof_unsigned_long=0
21942    fi
21943 fi
21944
21945 fi
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21947 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21948
21949
21950
21951 cat >>confdefs.h <<_ACEOF
21952 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21953 _ACEOF
21954
21955
21956
21957 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21958 # 'signed long long' is not supported then the value defined is zero.
21959 # The cast to long int works around a bug in the HP C Compiler
21960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21962 # This bug is HP SR number 8606223364.
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21964 $as_echo_n "checking size of signed long long... " >&6; }
21965 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21966   $as_echo_n "(cached) " >&6
21967 else
21968   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21969
21970 else
21971   if test "$ac_cv_type_signed_long_long" = yes; then
21972      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21974 { as_fn_set_status 77
21975 as_fn_error "cannot compute sizeof (signed long long)
21976 See \`config.log' for more details." "$LINENO" 5; }; }
21977    else
21978      ac_cv_sizeof_signed_long_long=0
21979    fi
21980 fi
21981
21982 fi
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21984 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21985
21986
21987
21988 cat >>confdefs.h <<_ACEOF
21989 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21990 _ACEOF
21991
21992
21993
21994 # Obtain size of a 'unsigned long long' and define as
21995 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
21996 # supported then the value defined is zero.
21997 # The cast to long int works around a bug in the HP C Compiler
21998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22000 # This bug is HP SR number 8606223364.
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22002 $as_echo_n "checking size of unsigned long long... " >&6; }
22003 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
22004   $as_echo_n "(cached) " >&6
22005 else
22006   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
22007
22008 else
22009   if test "$ac_cv_type_unsigned_long_long" = yes; then
22010      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22012 { as_fn_set_status 77
22013 as_fn_error "cannot compute sizeof (unsigned long long)
22014 See \`config.log' for more details." "$LINENO" 5; }; }
22015    else
22016      ac_cv_sizeof_unsigned_long_long=0
22017    fi
22018 fi
22019
22020 fi
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22022 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22023
22024
22025
22026 cat >>confdefs.h <<_ACEOF
22027 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22028 _ACEOF
22029
22030
22031
22032 # Obtain size of off_t and define as SIZEOF_OFF_T
22033 # The cast to long int works around a bug in the HP C Compiler
22034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22036 # This bug is HP SR number 8606223364.
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22038 $as_echo_n "checking size of off_t... " >&6; }
22039 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22040   $as_echo_n "(cached) " >&6
22041 else
22042   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
22043
22044 else
22045   if test "$ac_cv_type_off_t" = yes; then
22046      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22048 { as_fn_set_status 77
22049 as_fn_error "cannot compute sizeof (off_t)
22050 See \`config.log' for more details." "$LINENO" 5; }; }
22051    else
22052      ac_cv_sizeof_off_t=0
22053    fi
22054 fi
22055
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22058 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22059
22060
22061
22062 cat >>confdefs.h <<_ACEOF
22063 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22064 _ACEOF
22065
22066
22067
22068 # Obtain size of size_t and define as SIZEOF_SIZE_T
22069 # The cast to long int works around a bug in the HP C Compiler
22070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22072 # This bug is HP SR number 8606223364.
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22074 $as_echo_n "checking size of size_t... " >&6; }
22075 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22076   $as_echo_n "(cached) " >&6
22077 else
22078   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
22079
22080 else
22081   if test "$ac_cv_type_size_t" = yes; then
22082      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22084 { as_fn_set_status 77
22085 as_fn_error "cannot compute sizeof (size_t)
22086 See \`config.log' for more details." "$LINENO" 5; }; }
22087    else
22088      ac_cv_sizeof_size_t=0
22089    fi
22090 fi
22091
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22094 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22095
22096
22097
22098 cat >>confdefs.h <<_ACEOF
22099 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22100 _ACEOF
22101
22102
22103
22104 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22105 # The cast to long int works around a bug in the HP C Compiler
22106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22108 # This bug is HP SR number 8606223364.
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22110 $as_echo_n "checking size of ssize_t... " >&6; }
22111 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22112   $as_echo_n "(cached) " >&6
22113 else
22114   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
22115
22116 else
22117   if test "$ac_cv_type_ssize_t" = yes; then
22118      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22120 { as_fn_set_status 77
22121 as_fn_error "cannot compute sizeof (ssize_t)
22122 See \`config.log' for more details." "$LINENO" 5; }; }
22123    else
22124      ac_cv_sizeof_ssize_t=0
22125    fi
22126 fi
22127
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22130 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22131
22132
22133
22134 cat >>confdefs.h <<_ACEOF
22135 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22136 _ACEOF
22137
22138
22139
22140 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22141 # The cast to long int works around a bug in the HP C Compiler
22142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22144 # This bug is HP SR number 8606223364.
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22146 $as_echo_n "checking size of unsigned int*... " >&6; }
22147 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
22148   $as_echo_n "(cached) " >&6
22149 else
22150   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
22151
22152 else
22153   if test "$ac_cv_type_unsigned_intp" = yes; then
22154      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22156 { as_fn_set_status 77
22157 as_fn_error "cannot compute sizeof (unsigned int*)
22158 See \`config.log' for more details." "$LINENO" 5; }; }
22159    else
22160      ac_cv_sizeof_unsigned_intp=0
22161    fi
22162 fi
22163
22164 fi
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22166 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22167
22168
22169
22170 cat >>confdefs.h <<_ACEOF
22171 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22172 _ACEOF
22173
22174
22175
22176 #
22177 # Compute sized types for current CPU and compiler options.
22178 #
22179
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22181 $as_echo_n "checking for signed 8-bit type... " >&6; }
22182 INT8_T='signed char'
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22184 $as_echo "$INT8_T" >&6; }
22185
22186
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22188 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22189 UINT8_T='unsigned char'
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22191 $as_echo "$UINT8_T" >&6; }
22192
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22195 $as_echo_n "checking for signed 16-bit type... " >&6; }
22196 INT16_T='signed short'
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22198 $as_echo "$INT16_T" >&6; }
22199
22200
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22202 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22203 UINT16_T='unsigned short'
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22205 $as_echo "$UINT16_T" >&6; }
22206
22207
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22209 $as_echo_n "checking for signed 32-bit type... " >&6; }
22210 INT32_T='none'
22211 if test $ac_cv_sizeof_signed_int -eq 4; then
22212   INT32_T='signed int'
22213 elif test $ac_cv_sizeof_signed_long -eq 4; then
22214   INT32_T='signed long'
22215 fi
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22217 $as_echo "$INT32_T" >&6; }
22218
22219
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22221 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22222 UINT32_T='none'
22223 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22224   UINT32_T='unsigned int'
22225 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22226   UINT32_T='unsigned long'
22227 fi
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22229 $as_echo "$UINT32_T" >&6; }
22230
22231
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22233 $as_echo_n "checking for signed 64-bit type... " >&6; }
22234 INT64_T='none'
22235 if test $ac_cv_sizeof_signed_long -eq 8; then
22236   INT64_T='signed long'
22237 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22238   INT64_T='signed long long'
22239 fi
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22241 $as_echo "$INT64_T" >&6; }
22242
22243
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22245 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22246 UINT64_T='none'
22247 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22248   UINT64_T='unsigned long'
22249 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22250   UINT64_T='unsigned long long'
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22253 $as_echo "$UINT64_T" >&6; }
22254
22255
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22257 $as_echo_n "checking for unsigned maximum type... " >&6; }
22258 UINTMAX_T='none'
22259 if test "$UINT64_T" != 'none'; then
22260   UINTMAX_T=$UINT64_T
22261 elif test "$UINT32_T" != 'none'; then
22262   UINTMAX_T=$UINT32_T
22263 fi
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22265 $as_echo "$UINTMAX_T" >&6; }
22266
22267
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22269 $as_echo_n "checking for pointer difference type... " >&6; }
22270 UINTPTR_T='none'
22271 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22272   UINTPTR_T='unsigned long'
22273 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22274   UINTPTR_T='unsigned long long'
22275 fi
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22277 $as_echo "$UINTPTR_T" >&6; }
22278
22279
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22281 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h.  */
22284
22285 int
22286 main ()
22287 {
22288 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22289   ;
22290   return 0;
22291 }
22292 _ACEOF
22293 if ac_fn_c_try_compile "$LINENO"; then :
22294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22295 $as_echo "yes" >&6; }
22296 else
22297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22300 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h.  */
22303
22304 int
22305 main ()
22306 {
22307 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 if ac_fn_c_try_compile "$LINENO"; then :
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22314 $as_echo "yes" >&6; }
22315
22316 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22317
22318 else
22319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320 $as_echo "no" >&6; }
22321
22322 $as_echo "#define __func__ __FILE__" >>confdefs.h
22323
22324 fi
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 fi
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328
22329 ########
22330 #
22331 # Check for functions
22332 #
22333 ########
22334 for ac_header in stdlib.h unistd.h
22335 do :
22336   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22337 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22338 eval as_val=\$$as_ac_Header
22339    if test "x$as_val" = x""yes; then :
22340   cat >>confdefs.h <<_ACEOF
22341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22342 _ACEOF
22343
22344 fi
22345
22346 done
22347
22348 for ac_func in getpagesize
22349 do :
22350   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22351 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22352   cat >>confdefs.h <<_ACEOF
22353 #define HAVE_GETPAGESIZE 1
22354 _ACEOF
22355
22356 fi
22357 done
22358
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22360 $as_echo_n "checking for working mmap file i/o... " >&6; }
22361 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22362   $as_echo_n "(cached) " >&6
22363 else
22364   if test "$cross_compiling" = yes; then :
22365   magick_cv_func_mmap_fileio=no
22366 else
22367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h.  */
22369 $ac_includes_default
22370 /* malloc might have been renamed as rpl_malloc. */
22371 #undef malloc
22372
22373 /*
22374    This test is derived from GNU Autoconf's similar macro.
22375    The purpose of this test is to verify that files may be memory
22376    mapped, and that memory mapping and file I/O are coherent.
22377
22378    The test creates a test file, memory maps the file, updates
22379    the file using the memory map, and then reads the file using
22380    file I/O to verify that the file contains the updates.
22381 */
22382
22383 #include <fcntl.h>
22384 #include <sys/mman.h>
22385
22386 #if !STDC_HEADERS && !HAVE_STDLIB_H
22387 char *malloc ();
22388 #endif
22389
22390 /* This mess was copied from the GNU getpagesize.h.  */
22391 #if !HAVE_GETPAGESIZE
22392 /* Assume that all systems that can run configure have sys/param.h.  */
22393 # if !HAVE_SYS_PARAM_H
22394 #  define HAVE_SYS_PARAM_H 1
22395 # endif
22396
22397 # ifdef _SC_PAGESIZE
22398 #  define getpagesize() sysconf(_SC_PAGESIZE)
22399 # else /* no _SC_PAGESIZE */
22400 #  if HAVE_SYS_PARAM_H
22401 #   include <sys/param.h>
22402 #   ifdef EXEC_PAGESIZE
22403 #    define getpagesize() EXEC_PAGESIZE
22404 #   else /* no EXEC_PAGESIZE */
22405 #    ifdef NBPG
22406 #     define getpagesize() NBPG * CLSIZE
22407 #     ifndef CLSIZE
22408 #      define CLSIZE 1
22409 #     endif /* no CLSIZE */
22410 #    else /* no NBPG */
22411 #     ifdef NBPC
22412 #      define getpagesize() NBPC
22413 #     else /* no NBPC */
22414 #      ifdef PAGESIZE
22415 #       define getpagesize() PAGESIZE
22416 #      endif /* PAGESIZE */
22417 #     endif /* no NBPC */
22418 #    endif /* no NBPG */
22419 #   endif /* no EXEC_PAGESIZE */
22420 #  else /* no HAVE_SYS_PARAM_H */
22421 #   define getpagesize() 8192   /* punt totally */
22422 #  endif /* no HAVE_SYS_PARAM_H */
22423 # endif /* no _SC_PAGESIZE */
22424
22425 #endif /* no HAVE_GETPAGESIZE */
22426
22427 int
22428 main ()
22429 {
22430   char *data, *data2, *data3;
22431   int i, pagesize;
22432   int fd;
22433
22434   pagesize = getpagesize ();
22435
22436   /* First, make a file with some known garbage in it. */
22437   data = (char *) malloc (pagesize);
22438   if (!data)
22439     exit (1);
22440   for (i = 0; i < pagesize; ++i)
22441     *(data + i) = rand ();
22442   umask (0);
22443   fd = creat ("conftest.mmap", 0600);
22444   if (fd < 0)
22445     exit (1);
22446   if (write (fd, data, pagesize) != pagesize)
22447     exit (1);
22448   close (fd);
22449
22450   /* Mmap the file as read/write/shared and verify that we see the
22451   same garbage. */
22452   fd = open ("conftest.mmap", O_RDWR);
22453   if (fd < 0)
22454     exit (1);
22455   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22456   if (data2 == 0)
22457     exit (1);
22458   for (i = 0; i < pagesize; ++i)
22459     if (*(data + i) != *(data2 + i))
22460       exit (1);
22461
22462   /* Finally, make sure that changes to the mapped area
22463      percolate back to the file as seen by read().  */
22464   for (i = 0; i < pagesize; ++i)
22465     *(data2 + i) = *(data2 + i) + 1;
22466   data3 = (char *) malloc (pagesize);
22467   if (!data3)
22468     exit (1);
22469   if (read (fd, data3, pagesize) != pagesize)
22470     exit (1);
22471   for (i = 0; i < pagesize; ++i)
22472     if (*(data2 + i) != *(data3 + i))
22473       exit (1);
22474   close (fd);
22475   exit (0);
22476 }
22477 _ACEOF
22478 if ac_fn_c_try_run "$LINENO"; then :
22479   magick_cv_func_mmap_fileio=yes
22480 else
22481   magick_cv_func_mmap_fileio=no
22482 fi
22483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22484   conftest.$ac_objext conftest.beam conftest.$ac_ext
22485 fi
22486
22487 fi
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22489 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22490 if test $magick_cv_func_mmap_fileio = yes; then
22491
22492 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22493
22494 fi
22495 rm -f conftest.mmap
22496
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22498 $as_echo_n "checking whether closedir returns void... " >&6; }
22499 if test "${ac_cv_func_closedir_void+set}" = set; then :
22500   $as_echo_n "(cached) " >&6
22501 else
22502   if test "$cross_compiling" = yes; then :
22503   ac_cv_func_closedir_void=yes
22504 else
22505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h.  */
22507 $ac_includes_default
22508 #include <$ac_header_dirent>
22509 #ifndef __cplusplus
22510 int closedir ();
22511 #endif
22512
22513 int
22514 main ()
22515 {
22516 return closedir (opendir (".")) != 0;
22517   ;
22518   return 0;
22519 }
22520 _ACEOF
22521 if ac_fn_c_try_run "$LINENO"; then :
22522   ac_cv_func_closedir_void=no
22523 else
22524   ac_cv_func_closedir_void=yes
22525 fi
22526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22527   conftest.$ac_objext conftest.beam conftest.$ac_ext
22528 fi
22529
22530 fi
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22532 $as_echo "$ac_cv_func_closedir_void" >&6; }
22533 if test $ac_cv_func_closedir_void = yes; then
22534
22535 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22536
22537 fi
22538
22539
22540
22541
22542   for ac_header in $ac_header_list
22543 do :
22544   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22546 "
22547 eval as_val=\$$as_ac_Header
22548    if test "x$as_val" = x""yes; then :
22549   cat >>confdefs.h <<_ACEOF
22550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22551 _ACEOF
22552
22553 fi
22554
22555 done
22556
22557
22558
22559
22560
22561
22562
22563
22564 for ac_func in getpagesize
22565 do :
22566   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22567 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22568   cat >>confdefs.h <<_ACEOF
22569 #define HAVE_GETPAGESIZE 1
22570 _ACEOF
22571
22572 fi
22573 done
22574
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22576 $as_echo_n "checking for working mmap... " >&6; }
22577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22578   $as_echo_n "(cached) " >&6
22579 else
22580   if test "$cross_compiling" = yes; then :
22581   ac_cv_func_mmap_fixed_mapped=no
22582 else
22583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h.  */
22585 $ac_includes_default
22586 /* malloc might have been renamed as rpl_malloc. */
22587 #undef malloc
22588
22589 /* Thanks to Mike Haertel and Jim Avera for this test.
22590    Here is a matrix of mmap possibilities:
22591         mmap private not fixed
22592         mmap private fixed at somewhere currently unmapped
22593         mmap private fixed at somewhere already mapped
22594         mmap shared not fixed
22595         mmap shared fixed at somewhere currently unmapped
22596         mmap shared fixed at somewhere already mapped
22597    For private mappings, we should verify that changes cannot be read()
22598    back from the file, nor mmap's back from the file at a different
22599    address.  (There have been systems where private was not correctly
22600    implemented like the infamous i386 svr4.0, and systems where the
22601    VM page cache was not coherent with the file system buffer cache
22602    like early versions of FreeBSD and possibly contemporary NetBSD.)
22603    For shared mappings, we should conversely verify that changes get
22604    propagated back to all the places they're supposed to be.
22605
22606    Grep wants private fixed already mapped.
22607    The main things grep needs to know about mmap are:
22608    * does it exist and is it safe to write into the mmap'd area
22609    * how to use it (BSD variants)  */
22610
22611 #include <fcntl.h>
22612 #include <sys/mman.h>
22613
22614 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22615 char *malloc ();
22616 #endif
22617
22618 /* This mess was copied from the GNU getpagesize.h.  */
22619 #ifndef HAVE_GETPAGESIZE
22620 # ifdef _SC_PAGESIZE
22621 #  define getpagesize() sysconf(_SC_PAGESIZE)
22622 # else /* no _SC_PAGESIZE */
22623 #  ifdef HAVE_SYS_PARAM_H
22624 #   include <sys/param.h>
22625 #   ifdef EXEC_PAGESIZE
22626 #    define getpagesize() EXEC_PAGESIZE
22627 #   else /* no EXEC_PAGESIZE */
22628 #    ifdef NBPG
22629 #     define getpagesize() NBPG * CLSIZE
22630 #     ifndef CLSIZE
22631 #      define CLSIZE 1
22632 #     endif /* no CLSIZE */
22633 #    else /* no NBPG */
22634 #     ifdef NBPC
22635 #      define getpagesize() NBPC
22636 #     else /* no NBPC */
22637 #      ifdef PAGESIZE
22638 #       define getpagesize() PAGESIZE
22639 #      endif /* PAGESIZE */
22640 #     endif /* no NBPC */
22641 #    endif /* no NBPG */
22642 #   endif /* no EXEC_PAGESIZE */
22643 #  else /* no HAVE_SYS_PARAM_H */
22644 #   define getpagesize() 8192   /* punt totally */
22645 #  endif /* no HAVE_SYS_PARAM_H */
22646 # endif /* no _SC_PAGESIZE */
22647
22648 #endif /* no HAVE_GETPAGESIZE */
22649
22650 int
22651 main ()
22652 {
22653   char *data, *data2, *data3;
22654   const char *cdata2;
22655   int i, pagesize;
22656   int fd, fd2;
22657
22658   pagesize = getpagesize ();
22659
22660   /* First, make a file with some known garbage in it. */
22661   data = (char *) malloc (pagesize);
22662   if (!data)
22663     return 1;
22664   for (i = 0; i < pagesize; ++i)
22665     *(data + i) = rand ();
22666   umask (0);
22667   fd = creat ("conftest.mmap", 0600);
22668   if (fd < 0)
22669     return 2;
22670   if (write (fd, data, pagesize) != pagesize)
22671     return 3;
22672   close (fd);
22673
22674   /* Next, check that the tail of a page is zero-filled.  File must have
22675      non-zero length, otherwise we risk SIGBUS for entire page.  */
22676   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22677   if (fd2 < 0)
22678     return 4;
22679   cdata2 = "";
22680   if (write (fd2, cdata2, 1) != 1)
22681     return 5;
22682   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22683   if (data2 == MAP_FAILED)
22684     return 6;
22685   for (i = 0; i < pagesize; ++i)
22686     if (*(data2 + i))
22687       return 7;
22688   close (fd2);
22689   if (munmap (data2, pagesize))
22690     return 8;
22691
22692   /* Next, try to mmap the file at a fixed address which already has
22693      something else allocated at it.  If we can, also make sure that
22694      we see the same garbage.  */
22695   fd = open ("conftest.mmap", O_RDWR);
22696   if (fd < 0)
22697     return 9;
22698   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22699                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22700     return 10;
22701   for (i = 0; i < pagesize; ++i)
22702     if (*(data + i) != *(data2 + i))
22703       return 11;
22704
22705   /* Finally, make sure that changes to the mapped area do not
22706      percolate back to the file as seen by read().  (This is a bug on
22707      some variants of i386 svr4.0.)  */
22708   for (i = 0; i < pagesize; ++i)
22709     *(data2 + i) = *(data2 + i) + 1;
22710   data3 = (char *) malloc (pagesize);
22711   if (!data3)
22712     return 12;
22713   if (read (fd, data3, pagesize) != pagesize)
22714     return 13;
22715   for (i = 0; i < pagesize; ++i)
22716     if (*(data + i) != *(data3 + i))
22717       return 14;
22718   close (fd);
22719   return 0;
22720 }
22721 _ACEOF
22722 if ac_fn_c_try_run "$LINENO"; then :
22723   ac_cv_func_mmap_fixed_mapped=yes
22724 else
22725   ac_cv_func_mmap_fixed_mapped=no
22726 fi
22727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22728   conftest.$ac_objext conftest.beam conftest.$ac_ext
22729 fi
22730
22731 fi
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22733 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22735
22736 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22737
22738 fi
22739 rm -f conftest.mmap conftest.txt
22740
22741 for ac_header in vfork.h
22742 do :
22743   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22744 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22745   cat >>confdefs.h <<_ACEOF
22746 #define HAVE_VFORK_H 1
22747 _ACEOF
22748
22749 fi
22750
22751 done
22752
22753 for ac_func in fork vfork
22754 do :
22755   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22757 eval as_val=\$$as_ac_var
22758    if test "x$as_val" = x""yes; then :
22759   cat >>confdefs.h <<_ACEOF
22760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22761 _ACEOF
22762
22763 fi
22764 done
22765
22766 if test "x$ac_cv_func_fork" = xyes; then
22767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22768 $as_echo_n "checking for working fork... " >&6; }
22769 if test "${ac_cv_func_fork_works+set}" = set; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   if test "$cross_compiling" = yes; then :
22773   ac_cv_func_fork_works=cross
22774 else
22775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h.  */
22777 $ac_includes_default
22778 int
22779 main ()
22780 {
22781
22782           /* By Ruediger Kuhlmann. */
22783           return fork () < 0;
22784
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 if ac_fn_c_try_run "$LINENO"; then :
22790   ac_cv_func_fork_works=yes
22791 else
22792   ac_cv_func_fork_works=no
22793 fi
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22795   conftest.$ac_objext conftest.beam conftest.$ac_ext
22796 fi
22797
22798 fi
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22800 $as_echo "$ac_cv_func_fork_works" >&6; }
22801
22802 else
22803   ac_cv_func_fork_works=$ac_cv_func_fork
22804 fi
22805 if test "x$ac_cv_func_fork_works" = xcross; then
22806   case $host in
22807     *-*-amigaos* | *-*-msdosdjgpp*)
22808       # Override, as these systems have only a dummy fork() stub
22809       ac_cv_func_fork_works=no
22810       ;;
22811     *)
22812       ac_cv_func_fork_works=yes
22813       ;;
22814   esac
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22816 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22817 fi
22818 ac_cv_func_vfork_works=$ac_cv_func_vfork
22819 if test "x$ac_cv_func_vfork" = xyes; then
22820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22821 $as_echo_n "checking for working vfork... " >&6; }
22822 if test "${ac_cv_func_vfork_works+set}" = set; then :
22823   $as_echo_n "(cached) " >&6
22824 else
22825   if test "$cross_compiling" = yes; then :
22826   ac_cv_func_vfork_works=cross
22827 else
22828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h.  */
22830 /* Thanks to Paul Eggert for this test.  */
22831 $ac_includes_default
22832 #include <sys/wait.h>
22833 #ifdef HAVE_VFORK_H
22834 # include <vfork.h>
22835 #endif
22836 /* On some sparc systems, changes by the child to local and incoming
22837    argument registers are propagated back to the parent.  The compiler
22838    is told about this with #include <vfork.h>, but some compilers
22839    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22840    static variable whose address is put into a register that is
22841    clobbered by the vfork.  */
22842 static void
22843 #ifdef __cplusplus
22844 sparc_address_test (int arg)
22845 # else
22846 sparc_address_test (arg) int arg;
22847 #endif
22848 {
22849   static pid_t child;
22850   if (!child) {
22851     child = vfork ();
22852     if (child < 0) {
22853       perror ("vfork");
22854       _exit(2);
22855     }
22856     if (!child) {
22857       arg = getpid();
22858       write(-1, "", 0);
22859       _exit (arg);
22860     }
22861   }
22862 }
22863
22864 int
22865 main ()
22866 {
22867   pid_t parent = getpid ();
22868   pid_t child;
22869
22870   sparc_address_test (0);
22871
22872   child = vfork ();
22873
22874   if (child == 0) {
22875     /* Here is another test for sparc vfork register problems.  This
22876        test uses lots of local variables, at least as many local
22877        variables as main has allocated so far including compiler
22878        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22879        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22880        reuse the register of parent for one of the local variables,
22881        since it will think that parent can't possibly be used any more
22882        in this routine.  Assigning to the local variable will thus
22883        munge parent in the parent process.  */
22884     pid_t
22885       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22886       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22887     /* Convince the compiler that p..p7 are live; otherwise, it might
22888        use the same hardware register for all 8 local variables.  */
22889     if (p != p1 || p != p2 || p != p3 || p != p4
22890         || p != p5 || p != p6 || p != p7)
22891       _exit(1);
22892
22893     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22894        from child file descriptors.  If the child closes a descriptor
22895        before it execs or exits, this munges the parent's descriptor
22896        as well.  Test for this by closing stdout in the child.  */
22897     _exit(close(fileno(stdout)) != 0);
22898   } else {
22899     int status;
22900     struct stat st;
22901
22902     while (wait(&status) != child)
22903       ;
22904     return (
22905          /* Was there some problem with vforking?  */
22906          child < 0
22907
22908          /* Did the child fail?  (This shouldn't happen.)  */
22909          || status
22910
22911          /* Did the vfork/compiler bug occur?  */
22912          || parent != getpid()
22913
22914          /* Did the file descriptor bug occur?  */
22915          || fstat(fileno(stdout), &st) != 0
22916          );
22917   }
22918 }
22919 _ACEOF
22920 if ac_fn_c_try_run "$LINENO"; then :
22921   ac_cv_func_vfork_works=yes
22922 else
22923   ac_cv_func_vfork_works=no
22924 fi
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926   conftest.$ac_objext conftest.beam conftest.$ac_ext
22927 fi
22928
22929 fi
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22931 $as_echo "$ac_cv_func_vfork_works" >&6; }
22932
22933 fi;
22934 if test "x$ac_cv_func_fork_works" = xcross; then
22935   ac_cv_func_vfork_works=$ac_cv_func_vfork
22936   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22937 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22938 fi
22939
22940 if test "x$ac_cv_func_vfork_works" = xyes; then
22941
22942 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22943
22944 else
22945
22946 $as_echo "#define vfork fork" >>confdefs.h
22947
22948 fi
22949 if test "x$ac_cv_func_fork_works" = xyes; then
22950
22951 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22952
22953 fi
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22956 $as_echo_n "checking for working memcmp... " >&6; }
22957 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   if test "$cross_compiling" = yes; then :
22961   ac_cv_func_memcmp_working=no
22962 else
22963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h.  */
22965 $ac_includes_default
22966 int
22967 main ()
22968 {
22969
22970   /* Some versions of memcmp are not 8-bit clean.  */
22971   char c0 = '\100', c1 = '\200', c2 = '\201';
22972   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22973     return 1;
22974
22975   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22976      or more and with at least one buffer not starting on a 4-byte boundary.
22977      William Lewis provided this test program.   */
22978   {
22979     char foo[21];
22980     char bar[21];
22981     int i;
22982     for (i = 0; i < 4; i++)
22983       {
22984         char *a = foo + i;
22985         char *b = bar + i;
22986         strcpy (a, "--------01111111");
22987         strcpy (b, "--------10000000");
22988         if (memcmp (a, b, 16) >= 0)
22989           return 1;
22990       }
22991     return 0;
22992   }
22993
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 if ac_fn_c_try_run "$LINENO"; then :
22999   ac_cv_func_memcmp_working=yes
23000 else
23001   ac_cv_func_memcmp_working=no
23002 fi
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004   conftest.$ac_objext conftest.beam conftest.$ac_ext
23005 fi
23006
23007 fi
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23009 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23010 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23011   *" memcmp.$ac_objext "* ) ;;
23012   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23013  ;;
23014 esac
23015
23016
23017 for ac_header in sys/select.h sys/socket.h
23018 do :
23019   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23020 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23021 eval as_val=\$$as_ac_Header
23022    if test "x$as_val" = x""yes; then :
23023   cat >>confdefs.h <<_ACEOF
23024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23025 _ACEOF
23026
23027 fi
23028
23029 done
23030
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23032 $as_echo_n "checking types of arguments for select... " >&6; }
23033 if test "${ac_cv_func_select_args+set}" = set; then :
23034   $as_echo_n "(cached) " >&6
23035 else
23036   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23037  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23038   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040 /* end confdefs.h.  */
23041 $ac_includes_default
23042 #ifdef HAVE_SYS_SELECT_H
23043 # include <sys/select.h>
23044 #endif
23045 #ifdef HAVE_SYS_SOCKET_H
23046 # include <sys/socket.h>
23047 #endif
23048
23049 int
23050 main ()
23051 {
23052 extern int select ($ac_arg1,
23053                                             $ac_arg234, $ac_arg234, $ac_arg234,
23054                                             $ac_arg5);
23055   ;
23056   return 0;
23057 }
23058 _ACEOF
23059 if ac_fn_c_try_compile "$LINENO"; then :
23060   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23061 fi
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063   done
23064  done
23065 done
23066 # Provide a safe default value.
23067 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23068
23069 fi
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23071 $as_echo "$ac_cv_func_select_args" >&6; }
23072 ac_save_IFS=$IFS; IFS=','
23073 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23074 IFS=$ac_save_IFS
23075 shift
23076
23077 cat >>confdefs.h <<_ACEOF
23078 #define SELECT_TYPE_ARG1 $1
23079 _ACEOF
23080
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define SELECT_TYPE_ARG234 ($2)
23084 _ACEOF
23085
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define SELECT_TYPE_ARG5 ($3)
23089 _ACEOF
23090
23091 rm -f conftest*
23092
23093 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
23094   $as_echo_n "(cached) " >&6
23095 else
23096   ac_cv_func_setvbuf_reversed=no
23097 fi
23098
23099
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23101 $as_echo_n "checking return type of signal handlers... " >&6; }
23102 if test "${ac_cv_type_signal+set}" = set; then :
23103   $as_echo_n "(cached) " >&6
23104 else
23105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h.  */
23107 #include <sys/types.h>
23108 #include <signal.h>
23109
23110 int
23111 main ()
23112 {
23113 return *(signal (0, 0)) (0) == 1;
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 if ac_fn_c_try_compile "$LINENO"; then :
23119   ac_cv_type_signal=int
23120 else
23121   ac_cv_type_signal=void
23122 fi
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 fi
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23126 $as_echo "$ac_cv_type_signal" >&6; }
23127
23128 cat >>confdefs.h <<_ACEOF
23129 #define RETSIGTYPE $ac_cv_type_signal
23130 _ACEOF
23131
23132
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23134 $as_echo_n "checking for working strtod... " >&6; }
23135 if test "${ac_cv_func_strtod+set}" = set; then :
23136   $as_echo_n "(cached) " >&6
23137 else
23138   if test "$cross_compiling" = yes; then :
23139   ac_cv_func_strtod=no
23140 else
23141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h.  */
23143
23144 $ac_includes_default
23145 #ifndef strtod
23146 double strtod ();
23147 #endif
23148 int
23149 main()
23150 {
23151   {
23152     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
23153     char *string = " +69";
23154     char *term;
23155     double value;
23156     value = strtod (string, &term);
23157     if (value != 69 || term != (string + 4))
23158       return 1;
23159   }
23160
23161   {
23162     /* Under Solaris 2.4, strtod returns the wrong value for the
23163        terminating character under some conditions.  */
23164     char *string = "NaN";
23165     char *term;
23166     strtod (string, &term);
23167     if (term != string && *(term - 1) == 0)
23168       return 1;
23169   }
23170   return 0;
23171 }
23172
23173 _ACEOF
23174 if ac_fn_c_try_run "$LINENO"; then :
23175   ac_cv_func_strtod=yes
23176 else
23177   ac_cv_func_strtod=no
23178 fi
23179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23180   conftest.$ac_objext conftest.beam conftest.$ac_ext
23181 fi
23182
23183 fi
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23185 $as_echo "$ac_cv_func_strtod" >&6; }
23186 if test $ac_cv_func_strtod = no; then
23187   case " $LIBOBJS " in
23188   *" strtod.$ac_objext "* ) ;;
23189   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23190  ;;
23191 esac
23192
23193 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23194 if test "x$ac_cv_func_pow" = x""yes; then :
23195
23196 fi
23197
23198 if test $ac_cv_func_pow = no; then
23199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23200 $as_echo_n "checking for pow in -lm... " >&6; }
23201 if test "${ac_cv_lib_m_pow+set}" = set; then :
23202   $as_echo_n "(cached) " >&6
23203 else
23204   ac_check_lib_save_LIBS=$LIBS
23205 LIBS="-lm  $LIBS"
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207 /* end confdefs.h.  */
23208
23209 /* Override any GCC internal prototype to avoid an error.
23210    Use char because int might match the return type of a GCC
23211    builtin and then its argument prototype would still apply.  */
23212 #ifdef __cplusplus
23213 extern "C"
23214 #endif
23215 char pow ();
23216 int
23217 main ()
23218 {
23219 return pow ();
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 if ac_fn_c_try_link "$LINENO"; then :
23225   ac_cv_lib_m_pow=yes
23226 else
23227   ac_cv_lib_m_pow=no
23228 fi
23229 rm -f core conftest.err conftest.$ac_objext \
23230     conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_lib_save_LIBS
23232 fi
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23234 $as_echo "$ac_cv_lib_m_pow" >&6; }
23235 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23236   POW_LIB=-lm
23237 else
23238   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23239 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23240 fi
23241
23242 fi
23243
23244 fi
23245
23246 for ac_func in vprintf
23247 do :
23248   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23249 if test "x$ac_cv_func_vprintf" = x""yes; then :
23250   cat >>confdefs.h <<_ACEOF
23251 #define HAVE_VPRINTF 1
23252 _ACEOF
23253
23254 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23255 if test "x$ac_cv_func__doprnt" = x""yes; then :
23256
23257 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23258
23259 fi
23260
23261 fi
23262 done
23263
23264
23265
23266 #
23267 # Find math library
23268 #
23269 MATH_LIBS=''
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23271 $as_echo_n "checking for sqrt in -lm... " >&6; }
23272 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23273   $as_echo_n "(cached) " >&6
23274 else
23275   ac_check_lib_save_LIBS=$LIBS
23276 LIBS="-lm  $LIBS"
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h.  */
23279
23280 /* Override any GCC internal prototype to avoid an error.
23281    Use char because int might match the return type of a GCC
23282    builtin and then its argument prototype would still apply.  */
23283 #ifdef __cplusplus
23284 extern "C"
23285 #endif
23286 char sqrt ();
23287 int
23288 main ()
23289 {
23290 return sqrt ();
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 if ac_fn_c_try_link "$LINENO"; then :
23296   ac_cv_lib_m_sqrt=yes
23297 else
23298   ac_cv_lib_m_sqrt=no
23299 fi
23300 rm -f core conftest.err conftest.$ac_objext \
23301     conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23303 fi
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23305 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23306 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23307   MATH_LIBS="-lm"
23308 fi
23309
23310 LIBS="$MATH_LIBS $LIBS"
23311
23312
23313 for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23314 do :
23315   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23317 eval as_val=\$$as_ac_var
23318    if test "x$as_val" = x""yes; then :
23319   cat >>confdefs.h <<_ACEOF
23320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23321 _ACEOF
23322
23323 fi
23324 done
23325
23326
23327 #
23328 # Check for clock_gettime().
23329 #
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23331 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23332 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23333   $as_echo_n "(cached) " >&6
23334 else
23335   ac_func_search_save_LIBS=$LIBS
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h.  */
23338
23339 /* Override any GCC internal prototype to avoid an error.
23340    Use char because int might match the return type of a GCC
23341    builtin and then its argument prototype would still apply.  */
23342 #ifdef __cplusplus
23343 extern "C"
23344 #endif
23345 char clock_gettime ();
23346 int
23347 main ()
23348 {
23349 return clock_gettime ();
23350   ;
23351   return 0;
23352 }
23353 _ACEOF
23354 for ac_lib in '' rt; do
23355   if test -z "$ac_lib"; then
23356     ac_res="none required"
23357   else
23358     ac_res=-l$ac_lib
23359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23360   fi
23361   if ac_fn_c_try_link "$LINENO"; then :
23362   ac_cv_search_clock_gettime=$ac_res
23363 fi
23364 rm -f core conftest.err conftest.$ac_objext \
23365     conftest$ac_exeext
23366   if test "${ac_cv_search_clock_gettime+set}" = set; then :
23367   break
23368 fi
23369 done
23370 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23371
23372 else
23373   ac_cv_search_clock_gettime=no
23374 fi
23375 rm conftest.$ac_ext
23376 LIBS=$ac_func_search_save_LIBS
23377 fi
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23379 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23380 ac_res=$ac_cv_search_clock_gettime
23381 if test "$ac_res" != no; then :
23382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23383
23384
23385 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23386
23387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23388 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h.  */
23391 #include <time.h>
23392 int
23393 main ()
23394 {
23395 clockid_t clockType = CLOCK_REALTIME;
23396   ;
23397   return 0;
23398 }
23399 _ACEOF
23400 if ac_fn_c_try_compile "$LINENO"; then :
23401
23402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23403 $as_echo "yes" >&6; }
23404
23405 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23406
23407
23408 else
23409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411
23412 fi
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414
23415 else
23416
23417     for ac_func in gettimeofday ftime
23418 do :
23419   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23421 eval as_val=\$$as_ac_var
23422    if test "x$as_val" = x""yes; then :
23423   cat >>confdefs.h <<_ACEOF
23424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23425 _ACEOF
23426  break
23427 fi
23428 done
23429
23430
23431
23432 fi
23433
23434
23435 ########
23436 #
23437 # Check for function prototypes
23438 #
23439 ########
23440
23441 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23442 #include <unistd.h>
23443 "
23444 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23445   ac_have_decl=1
23446 else
23447   ac_have_decl=0
23448 fi
23449
23450 cat >>confdefs.h <<_ACEOF
23451 #define HAVE_DECL_PREAD $ac_have_decl
23452 _ACEOF
23453 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23454 #include <unistd.h>
23455 "
23456 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23457   ac_have_decl=1
23458 else
23459   ac_have_decl=0
23460 fi
23461
23462 cat >>confdefs.h <<_ACEOF
23463 #define HAVE_DECL_PWRITE $ac_have_decl
23464 _ACEOF
23465
23466
23467 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23468 #include <strings.h>
23469 "
23470 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23471   ac_have_decl=1
23472 else
23473   ac_have_decl=0
23474 fi
23475
23476 cat >>confdefs.h <<_ACEOF
23477 #define HAVE_DECL_STRLCPY $ac_have_decl
23478 _ACEOF
23479
23480
23481 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23482 #include <stdio.h>
23483 #include <stdarg.h>
23484 "
23485 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23486   ac_have_decl=1
23487 else
23488   ac_have_decl=0
23489 fi
23490
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23493 _ACEOF
23494
23495
23496 ########
23497 #
23498 # C++ Support Tests (For Magick++)
23499 #
23500 ########
23501 have_magick_plus_plus='no'
23502 if test "$with_magick_plus_plus" = 'yes'; then
23503     OLIBS="$LIBS"
23504     LIBS=''
23505     ac_ext=cpp
23506 ac_cpp='$CXXCPP $CPPFLAGS'
23507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23510
23511
23512     # Full set of headers used...
23513     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23514     # functional iomanip iosfwd iostream iterator list string strstream utility
23515     ac_ext=cpp
23516 ac_cpp='$CXXCPP $CPPFLAGS'
23517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23520
23521     ac_ext=cpp
23522 ac_cpp='$CXXCPP $CPPFLAGS'
23523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23526 if test -z "$CXX"; then
23527   if test -n "$CCC"; then
23528     CXX=$CCC
23529   else
23530     if test -n "$ac_tool_prefix"; then
23531   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23532   do
23533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23536 $as_echo_n "checking for $ac_word... " >&6; }
23537 if test "${ac_cv_prog_CXX+set}" = set; then :
23538   $as_echo_n "(cached) " >&6
23539 else
23540   if test -n "$CXX"; then
23541   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23542 else
23543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23544 for as_dir in $PATH
23545 do
23546   IFS=$as_save_IFS
23547   test -z "$as_dir" && as_dir=.
23548     for ac_exec_ext in '' $ac_executable_extensions; do
23549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23550     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23552     break 2
23553   fi
23554 done
23555   done
23556 IFS=$as_save_IFS
23557
23558 fi
23559 fi
23560 CXX=$ac_cv_prog_CXX
23561 if test -n "$CXX"; then
23562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23563 $as_echo "$CXX" >&6; }
23564 else
23565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23567 fi
23568
23569
23570     test -n "$CXX" && break
23571   done
23572 fi
23573 if test -z "$CXX"; then
23574   ac_ct_CXX=$CXX
23575   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23576 do
23577   # Extract the first word of "$ac_prog", so it can be a program name with args.
23578 set dummy $ac_prog; ac_word=$2
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23580 $as_echo_n "checking for $ac_word... " >&6; }
23581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23582   $as_echo_n "(cached) " >&6
23583 else
23584   if test -n "$ac_ct_CXX"; then
23585   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23586 else
23587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588 for as_dir in $PATH
23589 do
23590   IFS=$as_save_IFS
23591   test -z "$as_dir" && as_dir=.
23592     for ac_exec_ext in '' $ac_executable_extensions; do
23593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23594     ac_cv_prog_ac_ct_CXX="$ac_prog"
23595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23596     break 2
23597   fi
23598 done
23599   done
23600 IFS=$as_save_IFS
23601
23602 fi
23603 fi
23604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23605 if test -n "$ac_ct_CXX"; then
23606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23607 $as_echo "$ac_ct_CXX" >&6; }
23608 else
23609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23610 $as_echo "no" >&6; }
23611 fi
23612
23613
23614   test -n "$ac_ct_CXX" && break
23615 done
23616
23617   if test "x$ac_ct_CXX" = x; then
23618     CXX="g++"
23619   else
23620     case $cross_compiling:$ac_tool_warned in
23621 yes:)
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23624 ac_tool_warned=yes ;;
23625 esac
23626     CXX=$ac_ct_CXX
23627   fi
23628 fi
23629
23630   fi
23631 fi
23632 # Provide some information about the compiler.
23633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23634 set X $ac_compile
23635 ac_compiler=$2
23636 for ac_option in --version -v -V -qversion; do
23637   { { ac_try="$ac_compiler $ac_option >&5"
23638 case "(($ac_try" in
23639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640   *) ac_try_echo=$ac_try;;
23641 esac
23642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23643 $as_echo "$ac_try_echo"; } >&5
23644   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23645   ac_status=$?
23646   if test -s conftest.err; then
23647     sed '10a\
23648 ... rest of stderr output deleted ...
23649          10q' conftest.err >conftest.er1
23650     cat conftest.er1 >&5
23651   fi
23652   rm -f conftest.er1 conftest.err
23653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23654   test $ac_status = 0; }
23655 done
23656
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23660   $as_echo_n "(cached) " >&6
23661 else
23662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h.  */
23664
23665 int
23666 main ()
23667 {
23668 #ifndef __GNUC__
23669        choke me
23670 #endif
23671
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 if ac_fn_cxx_try_compile "$LINENO"; then :
23677   ac_compiler_gnu=yes
23678 else
23679   ac_compiler_gnu=no
23680 fi
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23683
23684 fi
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23687 if test $ac_compiler_gnu = yes; then
23688   GXX=yes
23689 else
23690   GXX=
23691 fi
23692 ac_test_CXXFLAGS=${CXXFLAGS+set}
23693 ac_save_CXXFLAGS=$CXXFLAGS
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23697   $as_echo_n "(cached) " >&6
23698 else
23699   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23700    ac_cxx_werror_flag=yes
23701    ac_cv_prog_cxx_g=no
23702    CXXFLAGS="-g"
23703    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23704 /* end confdefs.h.  */
23705
23706 int
23707 main ()
23708 {
23709
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 if ac_fn_cxx_try_compile "$LINENO"; then :
23715   ac_cv_prog_cxx_g=yes
23716 else
23717   CXXFLAGS=""
23718       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h.  */
23720
23721 int
23722 main ()
23723 {
23724
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 if ac_fn_cxx_try_compile "$LINENO"; then :
23730
23731 else
23732   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23733          CXXFLAGS="-g"
23734          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735 /* end confdefs.h.  */
23736
23737 int
23738 main ()
23739 {
23740
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_cxx_try_compile "$LINENO"; then :
23746   ac_cv_prog_cxx_g=yes
23747 fi
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749 fi
23750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 fi
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23754 fi
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23757 if test "$ac_test_CXXFLAGS" = set; then
23758   CXXFLAGS=$ac_save_CXXFLAGS
23759 elif test $ac_cv_prog_cxx_g = yes; then
23760   if test "$GXX" = yes; then
23761     CXXFLAGS="-g -O2"
23762   else
23763     CXXFLAGS="-g"
23764   fi
23765 else
23766   if test "$GXX" = yes; then
23767     CXXFLAGS="-O2"
23768   else
23769     CXXFLAGS=
23770   fi
23771 fi
23772 ac_ext=cpp
23773 ac_cpp='$CXXCPP $CPPFLAGS'
23774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23777
23778 depcc="$CXX"  am_compiler_list=
23779
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23781 $as_echo_n "checking dependency style of $depcc... " >&6; }
23782 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23786   # We make a subdir and do the tests there.  Otherwise we can end up
23787   # making bogus files that we don't know about and never remove.  For
23788   # instance it was reported that on HP-UX the gcc test will end up
23789   # making a dummy file named `D' -- because `-MD' means `put the output
23790   # in D'.
23791   mkdir conftest.dir
23792   # Copy depcomp to subdir because otherwise we won't find it if we're
23793   # using a relative directory.
23794   cp "$am_depcomp" conftest.dir
23795   cd conftest.dir
23796   # We will build objects and dependencies in a subdirectory because
23797   # it helps to detect inapplicable dependency modes.  For instance
23798   # both Tru64's cc and ICC support -MD to output dependencies as a
23799   # side effect of compilation, but ICC will put the dependencies in
23800   # the current directory while Tru64 will put them in the object
23801   # directory.
23802   mkdir sub
23803
23804   am_cv_CXX_dependencies_compiler_type=none
23805   if test "$am_compiler_list" = ""; then
23806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23807   fi
23808   am__universal=false
23809   case " $depcc " in #(
23810      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23811      esac
23812
23813   for depmode in $am_compiler_list; do
23814     # Setup a source with many dependencies, because some compilers
23815     # like to wrap large dependency lists on column 80 (with \), and
23816     # we should not choose a depcomp mode which is confused by this.
23817     #
23818     # We need to recreate these files for each test, as the compiler may
23819     # overwrite some of them when testing with obscure command lines.
23820     # This happens at least with the AIX C compiler.
23821     : > sub/conftest.c
23822     for i in 1 2 3 4 5 6; do
23823       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23824       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23825       # Solaris 8's {/usr,}/bin/sh.
23826       touch sub/conftst$i.h
23827     done
23828     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23829
23830     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23831     # mode.  It turns out that the SunPro C++ compiler does not properly
23832     # handle `-M -o', and we need to detect this.  Also, some Intel
23833     # versions had trouble with output in subdirs
23834     am__obj=sub/conftest.${OBJEXT-o}
23835     am__minus_obj="-o $am__obj"
23836     case $depmode in
23837     gcc)
23838       # This depmode causes a compiler race in universal mode.
23839       test "$am__universal" = false || continue
23840       ;;
23841     nosideeffect)
23842       # after this tag, mechanisms are not by side-effect, so they'll
23843       # only be used when explicitly requested
23844       if test "x$enable_dependency_tracking" = xyes; then
23845         continue
23846       else
23847         break
23848       fi
23849       ;;
23850     msvisualcpp | msvcmsys)
23851       # This compiler won't grok `-c -o', but also, the minuso test has
23852       # not run yet.  These depmodes are late enough in the game, and
23853       # so weak that their functioning should not be impacted.
23854       am__obj=conftest.${OBJEXT-o}
23855       am__minus_obj=
23856       ;;
23857     none) break ;;
23858     esac
23859     if depmode=$depmode \
23860        source=sub/conftest.c object=$am__obj \
23861        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23862        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23863          >/dev/null 2>conftest.err &&
23864        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23865        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23866        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23867        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23868       # icc doesn't choke on unknown options, it will just issue warnings
23869       # or remarks (even with -Werror).  So we grep stderr for any message
23870       # that says an option was ignored or not supported.
23871       # When given -MP, icc 7.0 and 7.1 complain thusly:
23872       #   icc: Command line warning: ignoring option '-M'; no argument required
23873       # The diagnosis changed in icc 8.0:
23874       #   icc: Command line remark: option '-MP' not supported
23875       if (grep 'ignoring option' conftest.err ||
23876           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23877         am_cv_CXX_dependencies_compiler_type=$depmode
23878         break
23879       fi
23880     fi
23881   done
23882
23883   cd ..
23884   rm -rf conftest.dir
23885 else
23886   am_cv_CXX_dependencies_compiler_type=none
23887 fi
23888
23889 fi
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23891 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23893
23894  if
23895   test "x$enable_dependency_tracking" != xno \
23896   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23897   am__fastdepCXX_TRUE=
23898   am__fastdepCXX_FALSE='#'
23899 else
23900   am__fastdepCXX_TRUE='#'
23901   am__fastdepCXX_FALSE=
23902 fi
23903
23904
23905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23906 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23907 if test "${ax_cv_cxx_bool+set}" = set; then :
23908   $as_echo_n "(cached) " >&6
23909 else
23910
23911  ac_ext=cpp
23912 ac_cpp='$CXXCPP $CPPFLAGS'
23913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23916
23917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23918 /* end confdefs.h.  */
23919
23920 int f(int  x){return 1;}
23921 int f(char x){return 1;}
23922 int f(bool x){return 1;}
23923
23924 int
23925 main ()
23926 {
23927 bool b = true; return f(b);
23928   ;
23929   return 0;
23930 }
23931 _ACEOF
23932 if ac_fn_cxx_try_compile "$LINENO"; then :
23933   ax_cv_cxx_bool=yes
23934 else
23935   ax_cv_cxx_bool=no
23936 fi
23937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938  ac_ext=cpp
23939 ac_cpp='$CXXCPP $CPPFLAGS'
23940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23943
23944
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23947 $as_echo "$ax_cv_cxx_bool" >&6; }
23948 if test "$ax_cv_cxx_bool" = yes; then
23949
23950 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23951
23952 fi
23953
23954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23955 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23956 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959
23960  ac_ext=cpp
23961 ac_cpp='$CXXCPP $CPPFLAGS'
23962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23965
23966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967 /* end confdefs.h.  */
23968 namespace Outer { namespace Inner { int i = 0; }}
23969 int
23970 main ()
23971 {
23972 using namespace Outer::Inner; return i;
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 if ac_fn_cxx_try_compile "$LINENO"; then :
23978   ax_cv_cxx_namespaces=yes
23979 else
23980   ax_cv_cxx_namespaces=no
23981 fi
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983  ac_ext=cpp
23984 ac_cpp='$CXXCPP $CPPFLAGS'
23985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23988
23989
23990 fi
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23992 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23993 if test "$ax_cv_cxx_namespaces" = yes; then
23994
23995 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23996
23997 fi
23998
23999
24000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24001 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24002 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24003   $as_echo_n "(cached) " >&6
24004 else
24005
24006   ac_ext=cpp
24007 ac_cpp='$CXXCPP $CPPFLAGS'
24008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24011
24012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h.  */
24014 #include <iostream>
24015                   std::istream& is = std::cin;
24016 int
24017 main ()
24018 {
24019
24020   ;
24021   return 0;
24022 }
24023 _ACEOF
24024 if ac_fn_cxx_try_compile "$LINENO"; then :
24025   ax_cv_cxx_have_std_namespace=yes
24026 else
24027   ax_cv_cxx_have_std_namespace=no
24028 fi
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030   ac_ext=cpp
24031 ac_cpp='$CXXCPP $CPPFLAGS'
24032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24035
24036
24037 fi
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24039 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24040   if test "$ax_cv_cxx_have_std_namespace" = yes; then
24041
24042 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24043
24044   fi
24045
24046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24047 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24048 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24049   $as_echo_n "(cached) " >&6
24050 else
24051
24052
24053  ac_ext=cpp
24054 ac_cpp='$CXXCPP $CPPFLAGS'
24055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24058
24059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h.  */
24061 #include <iostream>
24062 #include <map>
24063 #include <iomanip>
24064 #include <cmath>
24065 #ifdef HAVE_NAMESPACES
24066 using namespace std;
24067 #endif
24068 int
24069 main ()
24070 {
24071 return 0;
24072   ;
24073   return 0;
24074 }
24075 _ACEOF
24076 if ac_fn_cxx_try_compile "$LINENO"; then :
24077   ac_cv_cxx_have_std_libs=yes
24078 else
24079   ac_cv_cxx_have_std_libs=no
24080 fi
24081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082  ac_ext=cpp
24083 ac_cpp='$CXXCPP $CPPFLAGS'
24084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24087
24088
24089 fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24091 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24092 if test "$ac_cv_cxx_have_std_libs" = yes; then
24093
24094 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24095
24096 fi
24097
24098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24099 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24100 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24101   $as_echo_n "(cached) " >&6
24102 else
24103
24104  ac_ext=cpp
24105 ac_cpp='$CXXCPP $CPPFLAGS'
24106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24109
24110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h.  */
24112 const wchar_t* s=L"wide string";
24113 _ACEOF
24114 if ac_fn_cxx_try_compile "$LINENO"; then :
24115   ac_cv_cxx_have_lstring=yes
24116 else
24117   ac_cv_cxx_have_lstring=no
24118 fi
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120  ac_ext=cpp
24121 ac_cpp='$CXXCPP $CPPFLAGS'
24122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24125
24126
24127 fi
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24129 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
24130 if test "$ac_cv_cxx_have_lstring" = yes; then
24131
24132 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24133
24134 fi
24135
24136
24137   OPENMP_CXXFLAGS=
24138   # Check whether --enable-openmp was given.
24139 if test "${enable_openmp+set}" = set; then :
24140   enableval=$enable_openmp;
24141 fi
24142
24143   if test "$enable_openmp" != no; then
24144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24145 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24146 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
24147   $as_echo_n "(cached) " >&6
24148 else
24149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h.  */
24151
24152 #ifndef _OPENMP
24153  choke me
24154 #endif
24155 #include <omp.h>
24156 int main () { return omp_get_num_threads (); }
24157
24158 _ACEOF
24159 if ac_fn_cxx_try_link "$LINENO"; then :
24160   ac_cv_prog_cxx_openmp='none needed'
24161 else
24162   ac_cv_prog_cxx_openmp='unsupported'
24163                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24164             ac_save_CXXFLAGS=$CXXFLAGS
24165             CXXFLAGS="$CXXFLAGS $ac_option"
24166             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h.  */
24168
24169 #ifndef _OPENMP
24170  choke me
24171 #endif
24172 #include <omp.h>
24173 int main () { return omp_get_num_threads (); }
24174
24175 _ACEOF
24176 if ac_fn_cxx_try_link "$LINENO"; then :
24177   ac_cv_prog_cxx_openmp=$ac_option
24178 fi
24179 rm -f core conftest.err conftest.$ac_objext \
24180     conftest$ac_exeext conftest.$ac_ext
24181             CXXFLAGS=$ac_save_CXXFLAGS
24182             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24183               break
24184             fi
24185           done
24186 fi
24187 rm -f core conftest.err conftest.$ac_objext \
24188     conftest$ac_exeext conftest.$ac_ext
24189 fi
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24191 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24192     case $ac_cv_prog_cxx_openmp in #(
24193       "none needed" | unsupported)
24194         ;; #(
24195       *)
24196         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24197     esac
24198   fi
24199
24200
24201     ac_ext=c
24202 ac_cpp='$CPP $CPPFLAGS'
24203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24206
24207
24208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24209 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24210     if \
24211         test $ax_cv_cxx_bool = 'yes' && \
24212         test $ac_cv_cxx_have_lstring = 'yes' && \
24213         test $ax_cv_cxx_namespaces = 'yes' && \
24214         test $ac_cv_cxx_have_std_libs = 'yes' && \
24215         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24216         have_magick_plus_plus='yes'
24217     else
24218         have_magick_plus_plus='no (failed tests)'
24219     fi
24220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24221 $as_echo "$have_magick_plus_plus" >&6; }
24222     LIBS="$OLIBS"
24223 fi
24224  if test "$have_magick_plus_plus" = 'yes'; then
24225   WITH_MAGICK_PLUS_PLUS_TRUE=
24226   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24227 else
24228   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24229   WITH_MAGICK_PLUS_PLUS_FALSE=
24230 fi
24231
24232
24233 # Only check for delegate libraries in subdirectories if requested.
24234 if test "$enable_delegate_build" != 'no'; then
24235     # Check for delegate sub-directories and add -I & -L options as required.
24236     # This presumes that delegates are installed as detailed in the ImageMagick
24237     # README. If delegates are installed in a standard location where the
24238     # compiler will automatically find them then these options should not be
24239     # required.
24240
24241     #
24242     # Most delegates have includes in the same directory as the library, but not all...
24243     #
24244     # Includes
24245     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24246         if test -d "$builddir/$dir"; then
24247             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24248         else
24249             if test -d "$srcdirfull/$dir"; then
24250                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24251             fi
24252         fi
24253     done
24254
24255     # Libraries
24256     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24257     if test -d "$builddir/$dir/.libs"; then
24258         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24259     else
24260         if test -d "$srcdirfull/$dir/.libs"; then
24261             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24262         fi
24263     fi
24264     if test -d "$builddir/$dir"; then
24265         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24266     else
24267         if test -d "$srcdirfull/$dir"; then
24268             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24269         fi
24270     fi
24271   done
24272 fi
24273
24274 # Assume that delegate headers reside under same directory as ImageMagick
24275 # installation prefix.
24276 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24277
24278 #
24279 # Find the X11 RGB database
24280 #
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24282 $as_echo_n "checking for X11 configure files... " >&6; }
24283 if test "${im_cv_x_configure+set}" = set; then :
24284   $as_echo_n "(cached) " >&6
24285 else
24286   # Look for the header file in a standard set of common directories.
24287 # Check X11 before X11Rn because it is often a symlink to the current release.
24288     for ac_dir in          \
24289     /lib/usr/lib/X11       \
24290     /usr/X11/lib           \
24291     /usr/X11R4/lib         \
24292     /usr/X11R5/lib         \
24293     /usr/X11R6/lib         \
24294     /usr/X11R7/lib         \
24295     /usr/X386/lib          \
24296     /usr/XFree86/lib/X11   \
24297     /usr/athena/lib        \
24298     /usr/lib               \
24299     /usr/lib/X11           \
24300     /usr/lib/X11R4         \
24301     /usr/lib/X11R5         \
24302     /usr/lib/X11R6         \
24303     /usr/lib/X11R7         \
24304     /usr/local/X11/lib     \
24305     /usr/local/X11R4/lib   \
24306     /usr/local/X11R5/lib   \
24307     /usr/local/X11R6/lib   \
24308     /usr/local/lib         \
24309     /usr/local/lib/X11     \
24310     /usr/local/lib/X11R4   \
24311     /usr/local/lib/X11R5   \
24312     /usr/local/lib/X11R6   \
24313     /usr/local/lib/X11R7   \
24314     /usr/local/x11r5/lib   \
24315     /usr/lpp/Xamples/lib   \
24316     /usr/openwin/lib       \
24317     /usr/openwin/share/lib \
24318     /usr/unsupported/lib   \
24319     /usr/x386/lib          \
24320     ; do
24321     if test -f "$ac_dir/X11/rgb.txt"; then
24322       im_cv_x_configure="$ac_dir/X11/"
24323       break
24324     elif test -f "$ac_dir/rgb.txt"; then
24325       im_cv_x_configure="$ac_dir/"
24326       break
24327     fi
24328
24329   done
24330 fi
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24332 $as_echo "$im_cv_x_configure" >&6; }
24333 X11_CONFIGURE_PATH="$im_cv_x_configure"
24334 case "${build_os}" in
24335   mingw* )
24336     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24337   ;;
24338 esac
24339
24340 cat >>confdefs.h <<_ACEOF
24341 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24342 _ACEOF
24343
24344
24345 #
24346 # Find OpenMP library
24347 #
24348 GOMP_LIBS=''
24349 if test "$enable_openmp" != 'no'; then
24350   if test "${GCC}" = "yes"; then
24351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24352 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24353 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24354   $as_echo_n "(cached) " >&6
24355 else
24356   ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lgomp  $LIBS"
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h.  */
24360
24361 /* Override any GCC internal prototype to avoid an error.
24362    Use char because int might match the return type of a GCC
24363    builtin and then its argument prototype would still apply.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 #endif
24367 char GOMP_parallel_start ();
24368 int
24369 main ()
24370 {
24371 return GOMP_parallel_start ();
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 if ac_fn_c_try_link "$LINENO"; then :
24377   ac_cv_lib_gomp_GOMP_parallel_start=yes
24378 else
24379   ac_cv_lib_gomp_GOMP_parallel_start=no
24380 fi
24381 rm -f core conftest.err conftest.$ac_objext \
24382     conftest$ac_exeext conftest.$ac_ext
24383 LIBS=$ac_check_lib_save_LIBS
24384 fi
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24386 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24387 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24388   GOMP_LIBS="-lgomp"
24389 fi
24390   # gcc
24391   else
24392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24393 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24394 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24395   $as_echo_n "(cached) " >&6
24396 else
24397   ac_check_lib_save_LIBS=$LIBS
24398 LIBS="-lmtsk  $LIBS"
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h.  */
24401
24402 /* Override any GCC internal prototype to avoid an error.
24403    Use char because int might match the return type of a GCC
24404    builtin and then its argument prototype would still apply.  */
24405 #ifdef __cplusplus
24406 extern "C"
24407 #endif
24408 char sunw_mp_register_warn ();
24409 int
24410 main ()
24411 {
24412 return sunw_mp_register_warn ();
24413   ;
24414   return 0;
24415 }
24416 _ACEOF
24417 if ac_fn_c_try_link "$LINENO"; then :
24418   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24419 else
24420   ac_cv_lib_mtsk_sunw_mp_register_warn=no
24421 fi
24422 rm -f core conftest.err conftest.$ac_objext \
24423     conftest$ac_exeext conftest.$ac_ext
24424 LIBS=$ac_check_lib_save_LIBS
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24427 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24428 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24429   GOMP_LIBS="-lmtsk"
24430 fi
24431   # solaris cc
24432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24433 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24434 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24435   $as_echo_n "(cached) " >&6
24436 else
24437   ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-lxlsmp  $LIBS"
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h.  */
24441
24442 /* Override any GCC internal prototype to avoid an error.
24443    Use char because int might match the return type of a GCC
24444    builtin and then its argument prototype would still apply.  */
24445 #ifdef __cplusplus
24446 extern "C"
24447 #endif
24448 char _xlsmpFlush ();
24449 int
24450 main ()
24451 {
24452 return _xlsmpFlush ();
24453   ;
24454   return 0;
24455 }
24456 _ACEOF
24457 if ac_fn_c_try_link "$LINENO"; then :
24458   ac_cv_lib_xlsmp__xlsmpFlush=yes
24459 else
24460   ac_cv_lib_xlsmp__xlsmpFlush=no
24461 fi
24462 rm -f core conftest.err conftest.$ac_objext \
24463     conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24465 fi
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24467 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24468 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24469   GOMP_LIBS="-lxlsmp"
24470 fi
24471   # AIX xlc
24472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24473 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24474 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24475   $as_echo_n "(cached) " >&6
24476 else
24477   ac_check_lib_save_LIBS=$LIBS
24478 LIBS="-lmp  $LIBS"
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h.  */
24481
24482 /* Override any GCC internal prototype to avoid an error.
24483    Use char because int might match the return type of a GCC
24484    builtin and then its argument prototype would still apply.  */
24485 #ifdef __cplusplus
24486 extern "C"
24487 #endif
24488 char mp_destroy ();
24489 int
24490 main ()
24491 {
24492 return mp_destroy ();
24493   ;
24494   return 0;
24495 }
24496 _ACEOF
24497 if ac_fn_c_try_link "$LINENO"; then :
24498   ac_cv_lib_mp_mp_destroy=yes
24499 else
24500   ac_cv_lib_mp_mp_destroy=no
24501 fi
24502 rm -f core conftest.err conftest.$ac_objext \
24503     conftest$ac_exeext conftest.$ac_ext
24504 LIBS=$ac_check_lib_save_LIBS
24505 fi
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24507 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24508 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24509   GOMP_LIBS="-lmp"
24510 fi
24511   # SGI IRIX 6.5 MIPSpro C/C++
24512   fi
24513   LIBS="$GOMP_LIBS $LIBS"
24514 fi
24515
24516
24517 #
24518 # Find Posix threads library
24519 #
24520 THREAD_LIBS=''
24521 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24522
24523     if test "x$PTHREAD_LIBS" = "x"; then
24524     case "${host_cpu}-${host_os}" in
24525       *-freebsd*)
24526
24527
24528
24529 ac_ext=c
24530 ac_cpp='$CPP $CPPFLAGS'
24531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24534
24535 magick_pthread_lib_ok=no
24536
24537 LIB=-lc_r
24538 save_LIBS="$LIBS"
24539 LIBS="$LIBS $LIB"
24540
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24542 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h.  */
24545 #include <pthread.h>
24546 int
24547 main ()
24548 {
24549   pthread_t th;
24550   pthread_join(th, 0);
24551   pthread_attr_init(0);
24552   pthread_cleanup_push(0, 0);
24553   pthread_create(0,0,0,0);
24554   pthread_cleanup_pop(0);
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 if ac_fn_c_try_link "$LINENO"; then :
24560   magick_pthread_lib_ok=yes
24561 fi
24562 rm -f core conftest.err conftest.$ac_objext \
24563     conftest$ac_exeext conftest.$ac_ext
24564
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24566 $as_echo "${magick_pthread_lib_ok}" >&6; }
24567 if test "$magick_pthread_lib_ok" = yes
24568 then
24569   PTHREAD_LIBS=-lc_r
24570   :
24571 else
24572
24573   :
24574 fi
24575
24576 LIBS="$save_LIBS"
24577
24578 ac_ext=c
24579 ac_cpp='$CPP $CPPFLAGS'
24580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24583
24584  ;;
24585     esac
24586     fi
24587
24588     for lib in pthread pthreads; do
24589         if test "x$PTHREAD_LIBS" = "x"; then
24590
24591
24592
24593 ac_ext=c
24594 ac_cpp='$CPP $CPPFLAGS'
24595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24598
24599 magick_pthread_lib_ok=no
24600
24601 LIB=-l$lib
24602 save_LIBS="$LIBS"
24603 LIBS="$LIBS $LIB"
24604
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24606 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h.  */
24609 #include <pthread.h>
24610 int
24611 main ()
24612 {
24613   pthread_t th;
24614   pthread_join(th, 0);
24615   pthread_attr_init(0);
24616   pthread_cleanup_push(0, 0);
24617   pthread_create(0,0,0,0);
24618   pthread_cleanup_pop(0);
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 if ac_fn_c_try_link "$LINENO"; then :
24624   magick_pthread_lib_ok=yes
24625 fi
24626 rm -f core conftest.err conftest.$ac_objext \
24627     conftest$ac_exeext conftest.$ac_ext
24628
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24630 $as_echo "${magick_pthread_lib_ok}" >&6; }
24631 if test "$magick_pthread_lib_ok" = yes
24632 then
24633   PTHREAD_LIBS=-l$lib
24634   :
24635 else
24636
24637   :
24638 fi
24639
24640 LIBS="$save_LIBS"
24641
24642 ac_ext=c
24643 ac_cpp='$CPP $CPPFLAGS'
24644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24647
24648
24649         fi
24650     done
24651
24652     THREAD_LIBS="$PTHREAD_LIBS"
24653     LIBS="$LIBS $THREAD_LIBS"
24654 fi
24655
24656
24657 #
24658 # Check for umem.
24659 #
24660 have_umem='no'
24661 UMEM_LIBS=''
24662 if test "$with_umem" != 'no'; then
24663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24664 $as_echo_n "checking for UMEM support ... " >&6; }
24665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24666 $as_echo "" >&6; }
24667   failed=0
24668   passed=0
24669   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24670 if test "x$ac_cv_header_umem_h" = x""yes; then :
24671   passed=`expr $passed + 1`
24672 else
24673   failed=`expr $failed + 1`
24674 fi
24675
24676
24677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24678 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24679 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24680   $as_echo_n "(cached) " >&6
24681 else
24682   ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lumem  $LIBS"
24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24685 /* end confdefs.h.  */
24686
24687 /* Override any GCC internal prototype to avoid an error.
24688    Use char because int might match the return type of a GCC
24689    builtin and then its argument prototype would still apply.  */
24690 #ifdef __cplusplus
24691 extern "C"
24692 #endif
24693 char umem_alloc ();
24694 int
24695 main ()
24696 {
24697 return umem_alloc ();
24698   ;
24699   return 0;
24700 }
24701 _ACEOF
24702 if ac_fn_c_try_link "$LINENO"; then :
24703   ac_cv_lib_umem_umem_alloc=yes
24704 else
24705   ac_cv_lib_umem_umem_alloc=no
24706 fi
24707 rm -f core conftest.err conftest.$ac_objext \
24708     conftest$ac_exeext conftest.$ac_ext
24709 LIBS=$ac_check_lib_save_LIBS
24710 fi
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24712 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24713 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24714   passed=`expr $passed + 1`
24715 else
24716   failed=`expr $failed + 1`
24717 fi
24718
24719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24720 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24721 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24722   $as_echo_n "(cached) " >&6
24723 else
24724   ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lumem  $LIBS"
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h.  */
24728
24729 /* Override any GCC internal prototype to avoid an error.
24730    Use char because int might match the return type of a GCC
24731    builtin and then its argument prototype would still apply.  */
24732 #ifdef __cplusplus
24733 extern "C"
24734 #endif
24735 char umem_free ();
24736 int
24737 main ()
24738 {
24739 return umem_free ();
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 if ac_fn_c_try_link "$LINENO"; then :
24745   ac_cv_lib_umem_umem_free=yes
24746 else
24747   ac_cv_lib_umem_umem_free=no
24748 fi
24749 rm -f core conftest.err conftest.$ac_objext \
24750     conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24752 fi
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24754 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24755 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24756   passed=`expr $passed + 1`
24757 else
24758   failed=`expr $failed + 1`
24759 fi
24760
24761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24762 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24763   if test $passed -gt 0; then
24764     if test $failed -gt 0; then
24765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24766 $as_echo "no -- some components failed test" >&6; }
24767       have_umem='no (failed tests)'
24768     else
24769       UMEM_LIBS='-lumem'
24770       LIBS="$UMEM_LIBS $LIBS"
24771
24772 $as_echo "#define HasUMEM 1" >>confdefs.h
24773
24774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24775 $as_echo "yes" >&6; }
24776       have_umem='yes'
24777     fi
24778   else
24779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24781   fi
24782 fi
24783  if test "$have_umem" = 'yes'; then
24784   HasUMEM_TRUE=
24785   HasUMEM_FALSE='#'
24786 else
24787   HasUMEM_TRUE='#'
24788   HasUMEM_FALSE=
24789 fi
24790
24791
24792
24793 #
24794 # Add support for ccmalloc memory debugging library if requested
24795 #
24796 have_ccmalloc='no'
24797 CCMALLOC_LIBS=''
24798 if test "$enable_ccmalloc" = 'yes'; then
24799     # Extract the first word of "ccmalloc", so it can be a program name with args.
24800 set dummy ccmalloc; ac_word=$2
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24802 $as_echo_n "checking for $ac_word... " >&6; }
24803 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24804   $as_echo_n "(cached) " >&6
24805 else
24806   case $CCMALLOCDelegate in
24807   [\\/]* | ?:[\\/]*)
24808   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24809   ;;
24810   *)
24811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24812 for as_dir in $PATH
24813 do
24814   IFS=$as_save_IFS
24815   test -z "$as_dir" && as_dir=.
24816     for ac_exec_ext in '' $ac_executable_extensions; do
24817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24818     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24820     break 2
24821   fi
24822 done
24823   done
24824 IFS=$as_save_IFS
24825
24826   ;;
24827 esac
24828 fi
24829 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24830 if test -n "$CCMALLOCDelegate"; then
24831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24832 $as_echo "$CCMALLOCDelegate" >&6; }
24833 else
24834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24835 $as_echo "no" >&6; }
24836 fi
24837
24838
24839     if test -n "$CCMALLOCDelegate"; then
24840         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24841         OLIBS="$LIBS"
24842         # Assume that gcc is used with ccmalloc.
24843         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24844        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24845 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24846 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24847   $as_echo_n "(cached) " >&6
24848 else
24849   ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lccmalloc -ldl $LIBS"
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h.  */
24853
24854 /* Override any GCC internal prototype to avoid an error.
24855    Use char because int might match the return type of a GCC
24856    builtin and then its argument prototype would still apply.  */
24857 #ifdef __cplusplus
24858 extern "C"
24859 #endif
24860 char ccmalloc_malloc ();
24861 int
24862 main ()
24863 {
24864 return ccmalloc_malloc ();
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 if ac_fn_c_try_link "$LINENO"; then :
24870   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24871 else
24872   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24873 fi
24874 rm -f core conftest.err conftest.$ac_objext \
24875     conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24879 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24880 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24881   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24882 fi
24883
24884         if test -n "$CCMALLOC_LIBS"; then
24885             LIBS="$OLIBS"
24886             LIBS="$LIBS $CCMALLOC_LIBS"
24887             have_ccmalloc='yes'
24888         else
24889             LIBS="$OLIBS"
24890         fi
24891     fi
24892 fi
24893
24894 #
24895 # Add support for efence memory debugging library if requested
24896 #
24897 if test "$enable_efence" = 'yes'; then
24898     EFENCE_LIBS='-lefence'
24899     LIBS="$EFENCE_LIBS $LIBS"
24900 fi
24901
24902
24903 #
24904 # Check for BZLIB
24905 #
24906
24907
24908 # Check whether --with-bzlib was given.
24909 if test "${with_bzlib+set}" = set; then :
24910   withval=$with_bzlib; with_bzlib=$withval
24911 else
24912   with_bzlib='yes'
24913 fi
24914
24915
24916 if test "$with_bzlib" != 'yes'; then
24917     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24918 fi
24919
24920 have_bzlib='no'
24921 if test "$with_bzlib" != 'no'; then
24922     BZLIB_LIBS=''
24923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24924 $as_echo "-------------------------------------------------------------" >&6; }
24925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24926 $as_echo_n "checking for BZLIB... " >&6; }
24927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24928 $as_echo "" >&6; }
24929     failed=0
24930     passed=0
24931     found_libbz=0
24932     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24933 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24934   passed=`expr $passed + 1`
24935 else
24936   failed=`expr $failed + 1`
24937 fi
24938
24939
24940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24941 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24942 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24943   $as_echo_n "(cached) " >&6
24944 else
24945   ac_check_lib_save_LIBS=$LIBS
24946 LIBS="-lbz2  $LIBS"
24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h.  */
24949
24950 /* Override any GCC internal prototype to avoid an error.
24951    Use char because int might match the return type of a GCC
24952    builtin and then its argument prototype would still apply.  */
24953 #ifdef __cplusplus
24954 extern "C"
24955 #endif
24956 char BZ2_bzDecompress ();
24957 int
24958 main ()
24959 {
24960 return BZ2_bzDecompress ();
24961   ;
24962   return 0;
24963 }
24964 _ACEOF
24965 if ac_fn_c_try_link "$LINENO"; then :
24966   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24967 else
24968   ac_cv_lib_bz2_BZ2_bzDecompress=no
24969 fi
24970 rm -f core conftest.err conftest.$ac_objext \
24971     conftest$ac_exeext conftest.$ac_ext
24972 LIBS=$ac_check_lib_save_LIBS
24973 fi
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24975 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24976 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24977   found_libbz=`expr $found_libbz + 1`
24978 fi
24979
24980     if test "$native_win32_build" = 'yes'; then
24981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24982 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24983 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24984   $as_echo_n "(cached) " >&6
24985 else
24986   ac_check_lib_save_LIBS=$LIBS
24987 LIBS="-lbz2  $LIBS"
24988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989 /* end confdefs.h.  */
24990
24991 /* Override any GCC internal prototype to avoid an error.
24992    Use char because int might match the return type of a GCC
24993    builtin and then its argument prototype would still apply.  */
24994 #ifdef __cplusplus
24995 extern "C"
24996 #endif
24997 char _imp__BZ2_decompress ();
24998 int
24999 main ()
25000 {
25001 return _imp__BZ2_decompress ();
25002   ;
25003   return 0;
25004 }
25005 _ACEOF
25006 if ac_fn_c_try_link "$LINENO"; then :
25007   ac_cv_lib_bz2__imp__BZ2_decompress=yes
25008 else
25009   ac_cv_lib_bz2__imp__BZ2_decompress=no
25010 fi
25011 rm -f core conftest.err conftest.$ac_objext \
25012     conftest$ac_exeext conftest.$ac_ext
25013 LIBS=$ac_check_lib_save_LIBS
25014 fi
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25016 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25017 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
25018   found_libbz=`expr $found_libbz + 1`
25019 fi
25020
25021     fi
25022     if test $found_libbz -gt 0; then
25023       passed=`expr $passed + 1`
25024     else
25025       failed=`expr $failed + 1`
25026     fi
25027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25028 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25029     if test $passed -gt 0; then
25030       if test $failed -gt 0; then
25031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25032 $as_echo "no -- some components failed test" >&6; }
25033         have_bzlib='no (failed tests)'
25034       else
25035         BZLIB_LIBS='-lbz2'
25036         LIBS="$BZLIB_LIBS $LIBS"
25037
25038 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25039
25040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25041 $as_echo "yes" >&6; }
25042         have_bzlib='yes'
25043       fi
25044     else
25045       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25047     fi
25048 fi
25049  if test "$have_bzlib" = 'yes'; then
25050   BZLIB_DELEGATE_TRUE=
25051   BZLIB_DELEGATE_FALSE='#'
25052 else
25053   BZLIB_DELEGATE_TRUE='#'
25054   BZLIB_DELEGATE_FALSE=
25055 fi
25056
25057
25058
25059 #
25060 # Find the X11 include and library directories.
25061 #
25062 IPC_LIBS=''
25063 X11_LIBS=''
25064 XEXT_LIBS=''
25065 XT_LIBS=''
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25067 $as_echo_n "checking for X... " >&6; }
25068
25069
25070 # Check whether --with-x was given.
25071 if test "${with_x+set}" = set; then :
25072   withval=$with_x;
25073 fi
25074
25075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25076 if test "x$with_x" = xno; then
25077   # The user explicitly disabled X.
25078   have_x=disabled
25079 else
25080   case $x_includes,$x_libraries in #(
25081     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25082     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
25083   $as_echo_n "(cached) " >&6
25084 else
25085   # One or both of the vars are not set, and there is no cached value.
25086 ac_x_includes=no ac_x_libraries=no
25087 rm -f -r conftest.dir
25088 if mkdir conftest.dir; then
25089   cd conftest.dir
25090   cat >Imakefile <<'_ACEOF'
25091 incroot:
25092         @echo incroot='${INCROOT}'
25093 usrlibdir:
25094         @echo usrlibdir='${USRLIBDIR}'
25095 libdir:
25096         @echo libdir='${LIBDIR}'
25097 _ACEOF
25098   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25099     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25100     for ac_var in incroot usrlibdir libdir; do
25101       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25102     done
25103     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25104     for ac_extension in a so sl dylib la dll; do
25105       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25106          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25107         ac_im_usrlibdir=$ac_im_libdir; break
25108       fi
25109     done
25110     # Screen out bogus values from the imake configuration.  They are
25111     # bogus both because they are the default anyway, and because
25112     # using them would break gcc on systems where it needs fixed includes.
25113     case $ac_im_incroot in
25114         /usr/include) ac_x_includes= ;;
25115         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25116     esac
25117     case $ac_im_usrlibdir in
25118         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25119         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25120     esac
25121   fi
25122   cd ..
25123   rm -f -r conftest.dir
25124 fi
25125
25126 # Standard set of common directories for X headers.
25127 # Check X11 before X11Rn because it is often a symlink to the current release.
25128 ac_x_header_dirs='
25129 /usr/X11/include
25130 /usr/X11R7/include
25131 /usr/X11R6/include
25132 /usr/X11R5/include
25133 /usr/X11R4/include
25134
25135 /usr/include/X11
25136 /usr/include/X11R7
25137 /usr/include/X11R6
25138 /usr/include/X11R5
25139 /usr/include/X11R4
25140
25141 /usr/local/X11/include
25142 /usr/local/X11R7/include
25143 /usr/local/X11R6/include
25144 /usr/local/X11R5/include
25145 /usr/local/X11R4/include
25146
25147 /usr/local/include/X11
25148 /usr/local/include/X11R7
25149 /usr/local/include/X11R6
25150 /usr/local/include/X11R5
25151 /usr/local/include/X11R4
25152
25153 /usr/X386/include
25154 /usr/x386/include
25155 /usr/XFree86/include/X11
25156
25157 /usr/include
25158 /usr/local/include
25159 /usr/unsupported/include
25160 /usr/athena/include
25161 /usr/local/x11r5/include
25162 /usr/lpp/Xamples/include
25163
25164 /usr/openwin/include
25165 /usr/openwin/share/include'
25166
25167 if test "$ac_x_includes" = no; then
25168   # Guess where to find include files, by looking for Xlib.h.
25169   # First, try using that file with no special directory specified.
25170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h.  */
25172 #include <X11/Xlib.h>
25173 _ACEOF
25174 if ac_fn_c_try_cpp "$LINENO"; then :
25175   # We can compile using X headers with no special include directory.
25176 ac_x_includes=
25177 else
25178   for ac_dir in $ac_x_header_dirs; do
25179   if test -r "$ac_dir/X11/Xlib.h"; then
25180     ac_x_includes=$ac_dir
25181     break
25182   fi
25183 done
25184 fi
25185 rm -f conftest.err conftest.$ac_ext
25186 fi # $ac_x_includes = no
25187
25188 if test "$ac_x_libraries" = no; then
25189   # Check for the libraries.
25190   # See if we find them without any special options.
25191   # Don't add to $LIBS permanently.
25192   ac_save_LIBS=$LIBS
25193   LIBS="-lX11 $LIBS"
25194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h.  */
25196 #include <X11/Xlib.h>
25197 int
25198 main ()
25199 {
25200 XrmInitialize ()
25201   ;
25202   return 0;
25203 }
25204 _ACEOF
25205 if ac_fn_c_try_link "$LINENO"; then :
25206   LIBS=$ac_save_LIBS
25207 # We can link X programs with no special library path.
25208 ac_x_libraries=
25209 else
25210   LIBS=$ac_save_LIBS
25211 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25212 do
25213   # Don't even attempt the hair of trying to link an X program!
25214   for ac_extension in a so sl dylib la dll; do
25215     if test -r "$ac_dir/libX11.$ac_extension"; then
25216       ac_x_libraries=$ac_dir
25217       break 2
25218     fi
25219   done
25220 done
25221 fi
25222 rm -f core conftest.err conftest.$ac_objext \
25223     conftest$ac_exeext conftest.$ac_ext
25224 fi # $ac_x_libraries = no
25225
25226 case $ac_x_includes,$ac_x_libraries in #(
25227   no,* | *,no | *\'*)
25228     # Didn't find X, or a directory has "'" in its name.
25229     ac_cv_have_x="have_x=no";; #(
25230   *)
25231     # Record where we found X for the cache.
25232     ac_cv_have_x="have_x=yes\
25233         ac_x_includes='$ac_x_includes'\
25234         ac_x_libraries='$ac_x_libraries'"
25235 esac
25236 fi
25237 ;; #(
25238     *) have_x=yes;;
25239   esac
25240   eval "$ac_cv_have_x"
25241 fi # $with_x != no
25242
25243 if test "$have_x" != yes; then
25244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25245 $as_echo "$have_x" >&6; }
25246   no_x=yes
25247 else
25248   # If each of the values was on the command line, it overrides each guess.
25249   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25250   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25251   # Update the cache value to reflect the command line values.
25252   ac_cv_have_x="have_x=yes\
25253         ac_x_includes='$x_includes'\
25254         ac_x_libraries='$x_libraries'"
25255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25256 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25257 fi
25258
25259 if test "$no_x" = yes; then
25260   # Not all programs may use this symbol, but it does not hurt to define it.
25261
25262 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25263
25264   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25265 else
25266   if test -n "$x_includes"; then
25267     X_CFLAGS="$X_CFLAGS -I$x_includes"
25268   fi
25269
25270   # It would also be nice to do this for all -L options, not just this one.
25271   if test -n "$x_libraries"; then
25272     X_LIBS="$X_LIBS -L$x_libraries"
25273     # For Solaris; some versions of Sun CC require a space after -R and
25274     # others require no space.  Words are not sufficient . . . .
25275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25276 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25277     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25278     ac_xsave_c_werror_flag=$ac_c_werror_flag
25279     ac_c_werror_flag=yes
25280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25281 /* end confdefs.h.  */
25282
25283 int
25284 main ()
25285 {
25286
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 if ac_fn_c_try_link "$LINENO"; then :
25292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25293 $as_echo "no" >&6; }
25294        X_LIBS="$X_LIBS -R$x_libraries"
25295 else
25296   LIBS="$ac_xsave_LIBS -R $x_libraries"
25297        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25298 /* end confdefs.h.  */
25299
25300 int
25301 main ()
25302 {
25303
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 if ac_fn_c_try_link "$LINENO"; then :
25309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25310 $as_echo "yes" >&6; }
25311           X_LIBS="$X_LIBS -R $x_libraries"
25312 else
25313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25314 $as_echo "neither works" >&6; }
25315 fi
25316 rm -f core conftest.err conftest.$ac_objext \
25317     conftest$ac_exeext conftest.$ac_ext
25318 fi
25319 rm -f core conftest.err conftest.$ac_objext \
25320     conftest$ac_exeext conftest.$ac_ext
25321     ac_c_werror_flag=$ac_xsave_c_werror_flag
25322     LIBS=$ac_xsave_LIBS
25323   fi
25324
25325   # Check for system-dependent libraries X programs must link with.
25326   # Do this before checking for the system-independent R6 libraries
25327   # (-lICE), since we may need -lsocket or whatever for X linking.
25328
25329   if test "$ISC" = yes; then
25330     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25331   else
25332     # Martyn Johnson says this is needed for Ultrix, if the X
25333     # libraries were built with DECnet support.  And Karl Berry says
25334     # the Alpha needs dnet_stub (dnet does not exist).
25335     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337 /* end confdefs.h.  */
25338
25339 /* Override any GCC internal prototype to avoid an error.
25340    Use char because int might match the return type of a GCC
25341    builtin and then its argument prototype would still apply.  */
25342 #ifdef __cplusplus
25343 extern "C"
25344 #endif
25345 char XOpenDisplay ();
25346 int
25347 main ()
25348 {
25349 return XOpenDisplay ();
25350   ;
25351   return 0;
25352 }
25353 _ACEOF
25354 if ac_fn_c_try_link "$LINENO"; then :
25355
25356 else
25357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25358 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25359 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25360   $as_echo_n "(cached) " >&6
25361 else
25362   ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-ldnet  $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366
25367 /* Override any GCC internal prototype to avoid an error.
25368    Use char because int might match the return type of a GCC
25369    builtin and then its argument prototype would still apply.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 #endif
25373 char dnet_ntoa ();
25374 int
25375 main ()
25376 {
25377 return dnet_ntoa ();
25378   ;
25379   return 0;
25380 }
25381 _ACEOF
25382 if ac_fn_c_try_link "$LINENO"; then :
25383   ac_cv_lib_dnet_dnet_ntoa=yes
25384 else
25385   ac_cv_lib_dnet_dnet_ntoa=no
25386 fi
25387 rm -f core conftest.err conftest.$ac_objext \
25388     conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25390 fi
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25392 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25393 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25394   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25395 fi
25396
25397     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25398       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25399 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25400 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25401   $as_echo_n "(cached) " >&6
25402 else
25403   ac_check_lib_save_LIBS=$LIBS
25404 LIBS="-ldnet_stub  $LIBS"
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h.  */
25407
25408 /* Override any GCC internal prototype to avoid an error.
25409    Use char because int might match the return type of a GCC
25410    builtin and then its argument prototype would still apply.  */
25411 #ifdef __cplusplus
25412 extern "C"
25413 #endif
25414 char dnet_ntoa ();
25415 int
25416 main ()
25417 {
25418 return dnet_ntoa ();
25419   ;
25420   return 0;
25421 }
25422 _ACEOF
25423 if ac_fn_c_try_link "$LINENO"; then :
25424   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25425 else
25426   ac_cv_lib_dnet_stub_dnet_ntoa=no
25427 fi
25428 rm -f core conftest.err conftest.$ac_objext \
25429     conftest$ac_exeext conftest.$ac_ext
25430 LIBS=$ac_check_lib_save_LIBS
25431 fi
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25433 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25434 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25435   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25436 fi
25437
25438     fi
25439 fi
25440 rm -f core conftest.err conftest.$ac_objext \
25441     conftest$ac_exeext conftest.$ac_ext
25442     LIBS="$ac_xsave_LIBS"
25443
25444     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25445     # to get the SysV transport functions.
25446     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25447     # needs -lnsl.
25448     # The nsl library prevents programs from opening the X display
25449     # on Irix 5.2, according to T.E. Dickey.
25450     # The functions gethostbyname, getservbyname, and inet_addr are
25451     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25452     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25453 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25454
25455 fi
25456
25457     if test $ac_cv_func_gethostbyname = no; then
25458       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25459 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25460 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25461   $as_echo_n "(cached) " >&6
25462 else
25463   ac_check_lib_save_LIBS=$LIBS
25464 LIBS="-lnsl  $LIBS"
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467
25468 /* Override any GCC internal prototype to avoid an error.
25469    Use char because int might match the return type of a GCC
25470    builtin and then its argument prototype would still apply.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 char gethostbyname ();
25475 int
25476 main ()
25477 {
25478 return gethostbyname ();
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_c_try_link "$LINENO"; then :
25484   ac_cv_lib_nsl_gethostbyname=yes
25485 else
25486   ac_cv_lib_nsl_gethostbyname=no
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext \
25489     conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25493 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25494 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25495   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25496 fi
25497
25498       if test $ac_cv_lib_nsl_gethostbyname = no; then
25499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25500 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25501 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25502   $as_echo_n "(cached) " >&6
25503 else
25504   ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lbsd  $LIBS"
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h.  */
25508
25509 /* Override any GCC internal prototype to avoid an error.
25510    Use char because int might match the return type of a GCC
25511    builtin and then its argument prototype would still apply.  */
25512 #ifdef __cplusplus
25513 extern "C"
25514 #endif
25515 char gethostbyname ();
25516 int
25517 main ()
25518 {
25519 return gethostbyname ();
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 if ac_fn_c_try_link "$LINENO"; then :
25525   ac_cv_lib_bsd_gethostbyname=yes
25526 else
25527   ac_cv_lib_bsd_gethostbyname=no
25528 fi
25529 rm -f core conftest.err conftest.$ac_objext \
25530     conftest$ac_exeext conftest.$ac_ext
25531 LIBS=$ac_check_lib_save_LIBS
25532 fi
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25534 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25535 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25536   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25537 fi
25538
25539       fi
25540     fi
25541
25542     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25543     # socket/setsockopt and other routines are undefined under SCO ODT
25544     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25545     # on later versions), says Simon Leinen: it contains gethostby*
25546     # variants that don't use the name server (or something).  -lsocket
25547     # must be given before -lnsl if both are needed.  We assume that
25548     # if connect needs -lnsl, so does gethostbyname.
25549     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25550 if test "x$ac_cv_func_connect" = x""yes; then :
25551
25552 fi
25553
25554     if test $ac_cv_func_connect = no; then
25555       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25556 $as_echo_n "checking for connect in -lsocket... " >&6; }
25557 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25558   $as_echo_n "(cached) " >&6
25559 else
25560   ac_check_lib_save_LIBS=$LIBS
25561 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h.  */
25564
25565 /* Override any GCC internal prototype to avoid an error.
25566    Use char because int might match the return type of a GCC
25567    builtin and then its argument prototype would still apply.  */
25568 #ifdef __cplusplus
25569 extern "C"
25570 #endif
25571 char connect ();
25572 int
25573 main ()
25574 {
25575 return connect ();
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 if ac_fn_c_try_link "$LINENO"; then :
25581   ac_cv_lib_socket_connect=yes
25582 else
25583   ac_cv_lib_socket_connect=no
25584 fi
25585 rm -f core conftest.err conftest.$ac_objext \
25586     conftest$ac_exeext conftest.$ac_ext
25587 LIBS=$ac_check_lib_save_LIBS
25588 fi
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25590 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25591 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25592   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25593 fi
25594
25595     fi
25596
25597     # Guillermo Gomez says -lposix is necessary on A/UX.
25598     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25599 if test "x$ac_cv_func_remove" = x""yes; then :
25600
25601 fi
25602
25603     if test $ac_cv_func_remove = no; then
25604       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25605 $as_echo_n "checking for remove in -lposix... " >&6; }
25606 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25607   $as_echo_n "(cached) " >&6
25608 else
25609   ac_check_lib_save_LIBS=$LIBS
25610 LIBS="-lposix  $LIBS"
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h.  */
25613
25614 /* Override any GCC internal prototype to avoid an error.
25615    Use char because int might match the return type of a GCC
25616    builtin and then its argument prototype would still apply.  */
25617 #ifdef __cplusplus
25618 extern "C"
25619 #endif
25620 char remove ();
25621 int
25622 main ()
25623 {
25624 return remove ();
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 if ac_fn_c_try_link "$LINENO"; then :
25630   ac_cv_lib_posix_remove=yes
25631 else
25632   ac_cv_lib_posix_remove=no
25633 fi
25634 rm -f core conftest.err conftest.$ac_objext \
25635     conftest$ac_exeext conftest.$ac_ext
25636 LIBS=$ac_check_lib_save_LIBS
25637 fi
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25639 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25640 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25641   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25642 fi
25643
25644     fi
25645
25646     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25647     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25648 if test "x$ac_cv_func_shmat" = x""yes; then :
25649
25650 fi
25651
25652     if test $ac_cv_func_shmat = no; then
25653       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25654 $as_echo_n "checking for shmat in -lipc... " >&6; }
25655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25656   $as_echo_n "(cached) " >&6
25657 else
25658   ac_check_lib_save_LIBS=$LIBS
25659 LIBS="-lipc  $LIBS"
25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25661 /* end confdefs.h.  */
25662
25663 /* Override any GCC internal prototype to avoid an error.
25664    Use char because int might match the return type of a GCC
25665    builtin and then its argument prototype would still apply.  */
25666 #ifdef __cplusplus
25667 extern "C"
25668 #endif
25669 char shmat ();
25670 int
25671 main ()
25672 {
25673 return shmat ();
25674   ;
25675   return 0;
25676 }
25677 _ACEOF
25678 if ac_fn_c_try_link "$LINENO"; then :
25679   ac_cv_lib_ipc_shmat=yes
25680 else
25681   ac_cv_lib_ipc_shmat=no
25682 fi
25683 rm -f core conftest.err conftest.$ac_objext \
25684     conftest$ac_exeext conftest.$ac_ext
25685 LIBS=$ac_check_lib_save_LIBS
25686 fi
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25688 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25689 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25690   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25691 fi
25692
25693     fi
25694   fi
25695
25696   # Check for libraries that X11R6 Xt/Xaw programs need.
25697   ac_save_LDFLAGS=$LDFLAGS
25698   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25699   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25700   # check for ICE first), but we must link in the order -lSM -lICE or
25701   # we get undefined symbols.  So assume we have SM if we have ICE.
25702   # These have to be linked with before -lX11, unlike the other
25703   # libraries we check for below, so use a different variable.
25704   # John Interrante, Karl Berry
25705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25706 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25707 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25708   $as_echo_n "(cached) " >&6
25709 else
25710   ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h.  */
25714
25715 /* Override any GCC internal prototype to avoid an error.
25716    Use char because int might match the return type of a GCC
25717    builtin and then its argument prototype would still apply.  */
25718 #ifdef __cplusplus
25719 extern "C"
25720 #endif
25721 char IceConnectionNumber ();
25722 int
25723 main ()
25724 {
25725 return IceConnectionNumber ();
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 if ac_fn_c_try_link "$LINENO"; then :
25731   ac_cv_lib_ICE_IceConnectionNumber=yes
25732 else
25733   ac_cv_lib_ICE_IceConnectionNumber=no
25734 fi
25735 rm -f core conftest.err conftest.$ac_objext \
25736     conftest$ac_exeext conftest.$ac_ext
25737 LIBS=$ac_check_lib_save_LIBS
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25740 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25741 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25742   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25743 fi
25744
25745   LDFLAGS=$ac_save_LDFLAGS
25746
25747 fi
25748
25749 if test "$no_x" != 'yes'; then
25750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25751 $as_echo "-------------------------------------------------------------" >&6; }
25752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25753 $as_echo_n "checking for X11... " >&6; }
25754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25755 $as_echo "" >&6; }
25756     LDFLAGS="$LDFLAGS $X_LIBS"
25757     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25758     LIBS="$X11_LIBS $LIBS"
25759     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25760
25761
25762 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25763
25764     #
25765     # Check for X11 shared memory extension
25766     #
25767     # shmctl is required to support the shared memory extension
25768     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25769 if test "x$ac_cv_func_shmctl" = x""yes; then :
25770   have_shmctl='yes'
25771 fi
25772
25773     if test "$have_shmctl" != 'yes'; then
25774         PERSIST_LIBS=$LIBS
25775         LIBS="$LIBS -lcygipc"
25776         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h.  */
25778
25779 /* Override any GCC internal prototype to avoid an error.
25780    Use char because int might match the return type of a GCC
25781    builtin and then its argument prototype would still apply.  */
25782 #ifdef __cplusplus
25783 extern "C"
25784 #endif
25785 char shmctl ();
25786 int
25787 main ()
25788 {
25789 return shmctl ();
25790   ;
25791   return 0;
25792 }
25793 _ACEOF
25794 if ac_fn_c_try_link "$LINENO"; then :
25795   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25796 fi
25797 rm -f core conftest.err conftest.$ac_objext \
25798     conftest$ac_exeext conftest.$ac_ext
25799         LIBS=$PERSIST_LIBS
25800     fi
25801
25802     if test "$have_shmctl" = 'yes'; then
25803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25804 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25805 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25806   $as_echo_n "(cached) " >&6
25807 else
25808   ac_check_lib_save_LIBS=$LIBS
25809 LIBS="-lXext  $LIBS"
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813 /* Override any GCC internal prototype to avoid an error.
25814    Use char because int might match the return type of a GCC
25815    builtin and then its argument prototype would still apply.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 #endif
25819 char XShmAttach ();
25820 int
25821 main ()
25822 {
25823 return XShmAttach ();
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 if ac_fn_c_try_link "$LINENO"; then :
25829   ac_cv_lib_Xext_XShmAttach=yes
25830 else
25831   ac_cv_lib_Xext_XShmAttach=no
25832 fi
25833 rm -f core conftest.err conftest.$ac_objext \
25834     conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25836 fi
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25838 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25839 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25840   XEXT_LIBS='-lXext' ;
25841 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25842
25843 fi
25844
25845     fi
25846
25847     #
25848     # Check for X11 shape extension
25849     #
25850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25851 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25852 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25853   $as_echo_n "(cached) " >&6
25854 else
25855   ac_check_lib_save_LIBS=$LIBS
25856 LIBS="-lXext  $LIBS"
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h.  */
25859
25860 /* Override any GCC internal prototype to avoid an error.
25861    Use char because int might match the return type of a GCC
25862    builtin and then its argument prototype would still apply.  */
25863 #ifdef __cplusplus
25864 extern "C"
25865 #endif
25866 char XShapeCombineMask ();
25867 int
25868 main ()
25869 {
25870 return XShapeCombineMask ();
25871   ;
25872   return 0;
25873 }
25874 _ACEOF
25875 if ac_fn_c_try_link "$LINENO"; then :
25876   ac_cv_lib_Xext_XShapeCombineMask=yes
25877 else
25878   ac_cv_lib_Xext_XShapeCombineMask=no
25879 fi
25880 rm -f core conftest.err conftest.$ac_objext \
25881     conftest$ac_exeext conftest.$ac_ext
25882 LIBS=$ac_check_lib_save_LIBS
25883 fi
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25885 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25886 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25887   XEXT_LIBS='-lXext' ;
25888 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25889
25890 fi
25891
25892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25893 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25894 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25895   $as_echo_n "(cached) " >&6
25896 else
25897   ac_check_lib_save_LIBS=$LIBS
25898 LIBS="-lXt  $LIBS"
25899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h.  */
25901
25902 /* Override any GCC internal prototype to avoid an error.
25903    Use char because int might match the return type of a GCC
25904    builtin and then its argument prototype would still apply.  */
25905 #ifdef __cplusplus
25906 extern "C"
25907 #endif
25908 char XtSetEventDispatcher ();
25909 int
25910 main ()
25911 {
25912 return XtSetEventDispatcher ();
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 if ac_fn_c_try_link "$LINENO"; then :
25918   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25919 else
25920   ac_cv_lib_Xt_XtSetEventDispatcher=no
25921 fi
25922 rm -f core conftest.err conftest.$ac_objext \
25923     conftest$ac_exeext conftest.$ac_ext
25924 LIBS=$ac_check_lib_save_LIBS
25925 fi
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25927 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25928 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25929   XT_LIBS='-lXt'
25930 fi
25931
25932     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25933 fi
25934 if test "$no_x" != 'yes'; then
25935   have_x='yes'
25936 else
25937   have_x='no'
25938 fi
25939  if test "$have_x" = 'yes'; then
25940   X11_DELEGATE_TRUE=
25941   X11_DELEGATE_FALSE='#'
25942 else
25943   X11_DELEGATE_TRUE='#'
25944   X11_DELEGATE_FALSE=
25945 fi
25946
25947
25948
25949
25950
25951 #
25952 # Check for ZLIB
25953 #
25954
25955 # Check whether --with-zlib was given.
25956 if test "${with_zlib+set}" = set; then :
25957   withval=$with_zlib; with_zlib=$withval
25958 else
25959   with_zlib='yes'
25960 fi
25961
25962
25963 if test "$with_zlib" != 'yes'; then
25964     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25965 fi
25966
25967 have_zlib='no'
25968 ZLIB_LIBS=''
25969 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25971 $as_echo "-------------------------------------------------------------" >&6; }
25972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25973 $as_echo_n "checking for ZLIB... " >&6; }
25974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25975 $as_echo "" >&6; }
25976     ZLIB_LIBS=''
25977     failed=0
25978     passed=0
25979     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25980 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25981   passed=`expr $passed + 1`
25982 else
25983   failed=`expr $failed + 1`
25984 fi
25985
25986
25987     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25988 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25989   passed=`expr $passed + 1`
25990 else
25991   failed=`expr $failed + 1`
25992 fi
25993
25994
25995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25996 $as_echo_n "checking for compress in -lz... " >&6; }
25997 if test "${ac_cv_lib_z_compress+set}" = set; then :
25998   $as_echo_n "(cached) " >&6
25999 else
26000   ac_check_lib_save_LIBS=$LIBS
26001 LIBS="-lz  $LIBS"
26002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h.  */
26004
26005 /* Override any GCC internal prototype to avoid an error.
26006    Use char because int might match the return type of a GCC
26007    builtin and then its argument prototype would still apply.  */
26008 #ifdef __cplusplus
26009 extern "C"
26010 #endif
26011 char compress ();
26012 int
26013 main ()
26014 {
26015 return compress ();
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 if ac_fn_c_try_link "$LINENO"; then :
26021   ac_cv_lib_z_compress=yes
26022 else
26023   ac_cv_lib_z_compress=no
26024 fi
26025 rm -f core conftest.err conftest.$ac_objext \
26026     conftest$ac_exeext conftest.$ac_ext
26027 LIBS=$ac_check_lib_save_LIBS
26028 fi
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26030 $as_echo "$ac_cv_lib_z_compress" >&6; }
26031 if test "x$ac_cv_lib_z_compress" = x""yes; then :
26032   passed=`expr $passed + 1`
26033 else
26034   failed=`expr $failed + 1`
26035 fi
26036
26037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26038 $as_echo_n "checking for uncompress in -lz... " >&6; }
26039 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
26040   $as_echo_n "(cached) " >&6
26041 else
26042   ac_check_lib_save_LIBS=$LIBS
26043 LIBS="-lz  $LIBS"
26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26045 /* end confdefs.h.  */
26046
26047 /* Override any GCC internal prototype to avoid an error.
26048    Use char because int might match the return type of a GCC
26049    builtin and then its argument prototype would still apply.  */
26050 #ifdef __cplusplus
26051 extern "C"
26052 #endif
26053 char uncompress ();
26054 int
26055 main ()
26056 {
26057 return uncompress ();
26058   ;
26059   return 0;
26060 }
26061 _ACEOF
26062 if ac_fn_c_try_link "$LINENO"; then :
26063   ac_cv_lib_z_uncompress=yes
26064 else
26065   ac_cv_lib_z_uncompress=no
26066 fi
26067 rm -f core conftest.err conftest.$ac_objext \
26068     conftest$ac_exeext conftest.$ac_ext
26069 LIBS=$ac_check_lib_save_LIBS
26070 fi
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26072 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26073 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
26074   passed=`expr $passed + 1`
26075 else
26076   failed=`expr $failed + 1`
26077 fi
26078
26079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26080 $as_echo_n "checking for deflate in -lz... " >&6; }
26081 if test "${ac_cv_lib_z_deflate+set}" = set; then :
26082   $as_echo_n "(cached) " >&6
26083 else
26084   ac_check_lib_save_LIBS=$LIBS
26085 LIBS="-lz  $LIBS"
26086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26087 /* end confdefs.h.  */
26088
26089 /* Override any GCC internal prototype to avoid an error.
26090    Use char because int might match the return type of a GCC
26091    builtin and then its argument prototype would still apply.  */
26092 #ifdef __cplusplus
26093 extern "C"
26094 #endif
26095 char deflate ();
26096 int
26097 main ()
26098 {
26099 return deflate ();
26100   ;
26101   return 0;
26102 }
26103 _ACEOF
26104 if ac_fn_c_try_link "$LINENO"; then :
26105   ac_cv_lib_z_deflate=yes
26106 else
26107   ac_cv_lib_z_deflate=no
26108 fi
26109 rm -f core conftest.err conftest.$ac_objext \
26110     conftest$ac_exeext conftest.$ac_ext
26111 LIBS=$ac_check_lib_save_LIBS
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26114 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26115 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
26116   passed=`expr $passed + 1`
26117 else
26118   failed=`expr $failed + 1`
26119 fi
26120
26121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26122 $as_echo_n "checking for inflate in -lz... " >&6; }
26123 if test "${ac_cv_lib_z_inflate+set}" = set; then :
26124   $as_echo_n "(cached) " >&6
26125 else
26126   ac_check_lib_save_LIBS=$LIBS
26127 LIBS="-lz  $LIBS"
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h.  */
26130
26131 /* Override any GCC internal prototype to avoid an error.
26132    Use char because int might match the return type of a GCC
26133    builtin and then its argument prototype would still apply.  */
26134 #ifdef __cplusplus
26135 extern "C"
26136 #endif
26137 char inflate ();
26138 int
26139 main ()
26140 {
26141 return inflate ();
26142   ;
26143   return 0;
26144 }
26145 _ACEOF
26146 if ac_fn_c_try_link "$LINENO"; then :
26147   ac_cv_lib_z_inflate=yes
26148 else
26149   ac_cv_lib_z_inflate=no
26150 fi
26151 rm -f core conftest.err conftest.$ac_objext \
26152     conftest$ac_exeext conftest.$ac_ext
26153 LIBS=$ac_check_lib_save_LIBS
26154 fi
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26156 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26157 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
26158   passed=`expr $passed + 1`
26159 else
26160   failed=`expr $failed + 1`
26161 fi
26162
26163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26164 $as_echo_n "checking for gzseek in -lz... " >&6; }
26165 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
26166   $as_echo_n "(cached) " >&6
26167 else
26168   ac_check_lib_save_LIBS=$LIBS
26169 LIBS="-lz  $LIBS"
26170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h.  */
26172
26173 /* Override any GCC internal prototype to avoid an error.
26174    Use char because int might match the return type of a GCC
26175    builtin and then its argument prototype would still apply.  */
26176 #ifdef __cplusplus
26177 extern "C"
26178 #endif
26179 char gzseek ();
26180 int
26181 main ()
26182 {
26183 return gzseek ();
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 if ac_fn_c_try_link "$LINENO"; then :
26189   ac_cv_lib_z_gzseek=yes
26190 else
26191   ac_cv_lib_z_gzseek=no
26192 fi
26193 rm -f core conftest.err conftest.$ac_objext \
26194     conftest$ac_exeext conftest.$ac_ext
26195 LIBS=$ac_check_lib_save_LIBS
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26198 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26199 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26200   passed=`expr $passed + 1`
26201 else
26202   failed=`expr $failed + 1`
26203 fi
26204
26205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26206 $as_echo_n "checking for gztell in -lz... " >&6; }
26207 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26208   $as_echo_n "(cached) " >&6
26209 else
26210   ac_check_lib_save_LIBS=$LIBS
26211 LIBS="-lz  $LIBS"
26212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26213 /* end confdefs.h.  */
26214
26215 /* Override any GCC internal prototype to avoid an error.
26216    Use char because int might match the return type of a GCC
26217    builtin and then its argument prototype would still apply.  */
26218 #ifdef __cplusplus
26219 extern "C"
26220 #endif
26221 char gztell ();
26222 int
26223 main ()
26224 {
26225 return gztell ();
26226   ;
26227   return 0;
26228 }
26229 _ACEOF
26230 if ac_fn_c_try_link "$LINENO"; then :
26231   ac_cv_lib_z_gztell=yes
26232 else
26233   ac_cv_lib_z_gztell=no
26234 fi
26235 rm -f core conftest.err conftest.$ac_objext \
26236     conftest$ac_exeext conftest.$ac_ext
26237 LIBS=$ac_check_lib_save_LIBS
26238 fi
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26240 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26241 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26242   passed=`expr $passed + 1`
26243 else
26244   failed=`expr $failed + 1`
26245 fi
26246
26247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26248 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26249     if test $passed -gt 0; then
26250         if test $failed -gt 0; then
26251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26252 $as_echo "no -- some components failed test" >&6; }
26253             have_zlib='no (failed tests)'
26254         else
26255             ZLIB_LIBS='-lz'
26256             LIBS="$ZLIB_LIBS $LIBS"
26257
26258 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26259
26260             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26262             have_zlib='yes'
26263         fi
26264     else
26265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26267     fi
26268 fi
26269  if test "$have_zlib" = 'yes'; then
26270   ZLIB_DELEGATE_TRUE=
26271   ZLIB_DELEGATE_FALSE='#'
26272 else
26273   ZLIB_DELEGATE_TRUE='#'
26274   ZLIB_DELEGATE_FALSE=
26275 fi
26276
26277
26278
26279 #
26280 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26281 #
26282 LIB_DL=''
26283 if test "$enable_profiling" = 'yes'; then
26284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26287   $as_echo_n "(cached) " >&6
26288 else
26289   ac_check_lib_save_LIBS=$LIBS
26290 LIBS="-ldl  $LIBS"
26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h.  */
26293
26294 /* Override any GCC internal prototype to avoid an error.
26295    Use char because int might match the return type of a GCC
26296    builtin and then its argument prototype would still apply.  */
26297 #ifdef __cplusplus
26298 extern "C"
26299 #endif
26300 char dlopen ();
26301 int
26302 main ()
26303 {
26304 return dlopen ();
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 if ac_fn_c_try_link "$LINENO"; then :
26310   ac_cv_lib_dl_dlopen=yes
26311 else
26312   ac_cv_lib_dl_dlopen=no
26313 fi
26314 rm -f core conftest.err conftest.$ac_objext \
26315     conftest$ac_exeext conftest.$ac_ext
26316 LIBS=$ac_check_lib_save_LIBS
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26320 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26321   LIB_DL='-ldl'
26322 fi
26323
26324     LIBS="$LIB_DL $LIBS"
26325 fi
26326
26327
26328
26329 #
26330 # Check for Autotrace delegate library.
26331 #
26332
26333 # Check whether --with-autotrace was given.
26334 if test "${with_autotrace+set}" = set; then :
26335   withval=$with_autotrace; with_autotrace=$withval
26336 else
26337   with_autotrace='no'
26338 fi
26339
26340
26341 if test "$with_autotrace" != 'yes'; then
26342     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26343 fi
26344
26345 have_autotrace='no'
26346 AUTOTRACE_CFLAGS=""
26347 AUTOTRACE_LIBS=""
26348 AUTOTRACE_PKG=""
26349 if test "x$with_autotrace" = "xyes"; then
26350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26351 $as_echo "-------------------------------------------------------------" >&6; }
26352
26353 pkg_failed=no
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26355 $as_echo_n "checking for AUTOTRACE... " >&6; }
26356
26357 if test -n "$AUTOTRACE_CFLAGS"; then
26358     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26359  elif test -n "$PKG_CONFIG"; then
26360     if test -n "$PKG_CONFIG" && \
26361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26362   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26363   ac_status=$?
26364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26365   test $ac_status = 0; }; then
26366   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26367 else
26368   pkg_failed=yes
26369 fi
26370  else
26371     pkg_failed=untried
26372 fi
26373 if test -n "$AUTOTRACE_LIBS"; then
26374     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26375  elif test -n "$PKG_CONFIG"; then
26376     if test -n "$PKG_CONFIG" && \
26377     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26378   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26379   ac_status=$?
26380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26381   test $ac_status = 0; }; then
26382   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26383 else
26384   pkg_failed=yes
26385 fi
26386  else
26387     pkg_failed=untried
26388 fi
26389
26390
26391
26392 if test $pkg_failed = yes; then
26393
26394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26395         _pkg_short_errors_supported=yes
26396 else
26397         _pkg_short_errors_supported=no
26398 fi
26399         if test $_pkg_short_errors_supported = yes; then
26400                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26401         else
26402                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26403         fi
26404         # Put the nasty error message in config.log where it belongs
26405         echo "$AUTOTRACE_PKG_ERRORS" >&5
26406
26407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26408 $as_echo "no" >&6; }
26409                 have_autotrace=no
26410 elif test $pkg_failed = untried; then
26411         have_autotrace=no
26412 else
26413         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26414         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26417         have_autotrace=yes
26418 fi
26419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26420 $as_echo "" >&6; }
26421 fi
26422
26423 if test "$have_autotrace" = 'yes'; then
26424     failed=0
26425
26426 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26427
26428     if test "$with_modules" = 'no'; then
26429     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26430     fi
26431 fi
26432
26433  if test "$have_autotrace" = 'yes'; then
26434   AUTOTRACE_DELEGATE_TRUE=
26435   AUTOTRACE_DELEGATE_FALSE='#'
26436 else
26437   AUTOTRACE_DELEGATE_TRUE='#'
26438   AUTOTRACE_DELEGATE_FALSE=
26439 fi
26440
26441
26442
26443
26444
26445 #
26446 # Check for Display Postscript delegate library.
26447 #
26448
26449 # Check whether --with-dps was given.
26450 if test "${with_dps+set}" = set; then :
26451   withval=$with_dps; with_dps=$withval
26452 else
26453   with_dps='yes'
26454 fi
26455
26456
26457 if test "$with_dps" != 'yes'; then
26458     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26459 fi
26460
26461 have_dps='no'
26462 DPS_LIBS=''
26463 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26465 $as_echo "-------------------------------------------------------------" >&6; }
26466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26467 $as_echo_n "checking for DPS... " >&6; }
26468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26469 $as_echo "" >&6; }
26470     failed=0
26471     passed=0
26472     PERSIST_CPPFLAGS="$CPPFLAGS"
26473     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26474     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26475 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26476   passed=`expr $passed + 1`
26477 else
26478   failed=`expr $failed + 1`
26479 fi
26480
26481
26482     # DPS issues:
26483     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26484     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26485     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26486     # ImageMagick itself doesn't use -lXt.
26487     have_libdps='no'
26488     LIBDPS_XT=''
26489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26490 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26491 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26492   $as_echo_n "(cached) " >&6
26493 else
26494   ac_check_lib_save_LIBS=$LIBS
26495 LIBS="-ldps  $LIBS"
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h.  */
26498
26499 /* Override any GCC internal prototype to avoid an error.
26500    Use char because int might match the return type of a GCC
26501    builtin and then its argument prototype would still apply.  */
26502 #ifdef __cplusplus
26503 extern "C"
26504 #endif
26505 char DPSInitialize ();
26506 int
26507 main ()
26508 {
26509 return DPSInitialize ();
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 if ac_fn_c_try_link "$LINENO"; then :
26515   ac_cv_lib_dps_DPSInitialize=yes
26516 else
26517   ac_cv_lib_dps_DPSInitialize=no
26518 fi
26519 rm -f core conftest.err conftest.$ac_objext \
26520     conftest$ac_exeext conftest.$ac_ext
26521 LIBS=$ac_check_lib_save_LIBS
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26524 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26525 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26526   have_libdps='yes'
26527 else
26528   have_libdps='no'
26529 fi
26530
26531     if test "$have_libdps" != 'yes'; then
26532         # Unset cache variable so we can try again.
26533         unset ac_cv_lib_dps_DPSInitialize
26534         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26535 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26536 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26537   $as_echo_n "(cached) " >&6
26538 else
26539   ac_check_lib_save_LIBS=$LIBS
26540 LIBS="-ldps -lXt $LIBS"
26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h.  */
26543
26544 /* Override any GCC internal prototype to avoid an error.
26545    Use char because int might match the return type of a GCC
26546    builtin and then its argument prototype would still apply.  */
26547 #ifdef __cplusplus
26548 extern "C"
26549 #endif
26550 char DPSInitialize ();
26551 int
26552 main ()
26553 {
26554 return DPSInitialize ();
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 if ac_fn_c_try_link "$LINENO"; then :
26560   ac_cv_lib_dps_DPSInitialize=yes
26561 else
26562   ac_cv_lib_dps_DPSInitialize=no
26563 fi
26564 rm -f core conftest.err conftest.$ac_objext \
26565     conftest$ac_exeext conftest.$ac_ext
26566 LIBS=$ac_check_lib_save_LIBS
26567 fi
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26569 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26570 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26571   have_libdps='yes'
26572 else
26573   have_libdps='no'
26574 fi
26575
26576         if test "$have_libdps" = 'yes'; then
26577             LIBDPS_XT='-lXt'
26578         fi
26579     fi
26580     if test "$have_libdps" = 'yes'; then
26581         passed=`expr $passed + 1`
26582     else
26583         failed=`expr $failed + 1`
26584     fi
26585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26586 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26587 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26588   $as_echo_n "(cached) " >&6
26589 else
26590   ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h.  */
26594
26595 /* Override any GCC internal prototype to avoid an error.
26596    Use char because int might match the return type of a GCC
26597    builtin and then its argument prototype would still apply.  */
26598 #ifdef __cplusplus
26599 extern "C"
26600 #endif
26601 char XDPSPixelsPerPoint ();
26602 int
26603 main ()
26604 {
26605 return XDPSPixelsPerPoint ();
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 if ac_fn_c_try_link "$LINENO"; then :
26611   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26612 else
26613   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26614 fi
26615 rm -f core conftest.err conftest.$ac_objext \
26616     conftest$ac_exeext conftest.$ac_ext
26617 LIBS=$ac_check_lib_save_LIBS
26618 fi
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26620 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26621 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26622   passed=`expr $passed + 1`
26623 else
26624   failed=`expr $failed + 1`
26625 fi
26626
26627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26628 $as_echo_n "checking if DPS package is complete... " >&6; }
26629     if test $passed -gt 0; then
26630         if test $failed -gt 0; then
26631             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26632 $as_echo "no -- some components failed test" >&6; }
26633             have_dps='no (failed tests)'
26634             CPPFLAGS="$PERSIST_CPPFLAGS"
26635         else
26636             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26637             LIBS="$DPS_LIBS $LIBS"
26638
26639 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26640
26641             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26642 $as_echo "yes" >&6; }
26643             have_dps='yes'
26644         fi
26645     else
26646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26647 $as_echo "no" >&6; }
26648         CPPFLAGS=$PERSIST_CPPFLAGS
26649     fi
26650 fi
26651  if test "$have_dps" = 'yes'; then
26652   DPS_DELEGATE_TRUE=
26653   DPS_DELEGATE_FALSE='#'
26654 else
26655   DPS_DELEGATE_TRUE='#'
26656   DPS_DELEGATE_FALSE=
26657 fi
26658
26659
26660
26661
26662 #
26663 # Check for DJVU delegate library.
26664 #
26665
26666 # Check whether --with-djvu was given.
26667 if test "${with_djvu+set}" = set; then :
26668   withval=$with_djvu; with_djvu=$withval
26669 else
26670   with_djvu='yes'
26671 fi
26672
26673
26674 if test "$with_djvu" != 'yes'; then
26675     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26676 fi
26677
26678 have_djvu='no'
26679 DJVU_LIBS=''
26680 if test "$with_djvu" != 'no'; then
26681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26682 $as_echo "-------------------------------------------------------------" >&6; }
26683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26684 $as_echo_n "checking for DJVU... " >&6; }
26685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26686 $as_echo "" >&6; }
26687     failed=0
26688     passed=0
26689     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26690 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26691   passed=`expr $passed + 1`
26692 else
26693   failed=`expr $failed + 1`
26694 fi
26695
26696
26697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26698 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26699 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26700   $as_echo_n "(cached) " >&6
26701 else
26702   ac_check_lib_save_LIBS=$LIBS
26703 LIBS="-ldjvulibre  $LIBS"
26704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h.  */
26706
26707 /* Override any GCC internal prototype to avoid an error.
26708    Use char because int might match the return type of a GCC
26709    builtin and then its argument prototype would still apply.  */
26710 #ifdef __cplusplus
26711 extern "C"
26712 #endif
26713 char ddjvu_context_create ();
26714 int
26715 main ()
26716 {
26717 return ddjvu_context_create ();
26718   ;
26719   return 0;
26720 }
26721 _ACEOF
26722 if ac_fn_c_try_link "$LINENO"; then :
26723   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26724 else
26725   ac_cv_lib_djvulibre_ddjvu_context_create=no
26726 fi
26727 rm -f core conftest.err conftest.$ac_objext \
26728     conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26730 fi
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26732 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26733 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26734   passed=`expr $passed + 1`
26735 else
26736   failed=`expr $failed + 1`
26737 fi
26738
26739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26740 $as_echo_n "checking if DJVU package is complete... " >&6; }
26741     if test $passed -gt 0; then
26742         if test $failed -gt 0; then
26743             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26744 $as_echo "no -- some components failed test" >&6; }
26745             have_djvu='no (failed tests)'
26746         else
26747             DJVU_LIBS='-ldjvulibre'
26748             LIBS="$DJVU_LIBS $LIBS"
26749
26750 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26751
26752             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26753 $as_echo "yes" >&6; }
26754             have_djvu='yes'
26755         fi
26756     else
26757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26758 $as_echo "no" >&6; }
26759     fi
26760 fi
26761  if test "$have_djvu" = 'yes'; then
26762   DJVU_DELEGATE_TRUE=
26763   DJVU_DELEGATE_FALSE='#'
26764 else
26765   DJVU_DELEGATE_TRUE='#'
26766   DJVU_DELEGATE_FALSE=
26767 fi
26768
26769
26770
26771
26772 #
26773 # Set DejaVu font directory.
26774 #
26775
26776 # Check whether --with-dejavu-font-dir was given.
26777 if test "${with_dejavu_font_dir+set}" = set; then :
26778   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26779 else
26780   with_dejavu_font_dir='default'
26781 fi
26782
26783
26784 if test "$with_dejavu_font_dir" != 'default'; then
26785     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26786 fi
26787
26788
26789 #
26790 # Check for FFTW delegate library.
26791 #
26792
26793 # Check whether --with-fftw was given.
26794 if test "${with_fftw+set}" = set; then :
26795   withval=$with_fftw; with_fftw=$withval
26796 else
26797   with_fftw='yes'
26798 fi
26799
26800
26801 if test "$with_fftw" != 'yes'; then
26802     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26803 fi
26804
26805 have_fftw='no'
26806 FFTW_LIBS=''
26807 if test "$with_fftw" != 'no'; then
26808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26809 $as_echo "-------------------------------------------------------------" >&6; }
26810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26811 $as_echo_n "checking for FFTW... " >&6; }
26812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26813 $as_echo "" >&6; }
26814     failed=0
26815     passed=0
26816     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26817 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26818   passed=`expr $passed + 1`
26819 else
26820   failed=`expr $failed + 1`
26821 fi
26822
26823
26824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26825 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26826 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26827   $as_echo_n "(cached) " >&6
26828 else
26829   ac_check_lib_save_LIBS=$LIBS
26830 LIBS="-lfftw3  $LIBS"
26831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832 /* end confdefs.h.  */
26833
26834 /* Override any GCC internal prototype to avoid an error.
26835    Use char because int might match the return type of a GCC
26836    builtin and then its argument prototype would still apply.  */
26837 #ifdef __cplusplus
26838 extern "C"
26839 #endif
26840 char fftw_execute ();
26841 int
26842 main ()
26843 {
26844 return fftw_execute ();
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 if ac_fn_c_try_link "$LINENO"; then :
26850   ac_cv_lib_fftw3_fftw_execute=yes
26851 else
26852   ac_cv_lib_fftw3_fftw_execute=no
26853 fi
26854 rm -f core conftest.err conftest.$ac_objext \
26855     conftest$ac_exeext conftest.$ac_ext
26856 LIBS=$ac_check_lib_save_LIBS
26857 fi
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26859 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26860 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26861   passed=`expr $passed + 1`
26862 else
26863   failed=`expr $failed + 1`
26864 fi
26865
26866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26867 $as_echo_n "checking if FFTW package is complete... " >&6; }
26868     if test $passed -gt 0; then
26869         if test $failed -gt 0; then
26870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26871 $as_echo "no -- some components failed test" >&6; }
26872             have_fftw='no (failed tests)'
26873         else
26874             FFTW_LIBS='-lfftw3'
26875             LIBS="$FFTW_LIBS $LIBS"
26876
26877 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26878
26879             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26880 $as_echo "yes" >&6; }
26881             have_fftw='yes'
26882         fi
26883     else
26884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885 $as_echo "no" >&6; }
26886     fi
26887 fi
26888  if test "$have_fftw" = 'yes'; then
26889   FFTW_DELEGATE_TRUE=
26890   FFTW_DELEGATE_FALSE='#'
26891 else
26892   FFTW_DELEGATE_TRUE='#'
26893   FFTW_DELEGATE_FALSE=
26894 fi
26895
26896
26897
26898
26899 #
26900 # Check for FlashPIX delegate library.
26901 #
26902
26903 # Check whether --with-fpx was given.
26904 if test "${with_fpx+set}" = set; then :
26905   withval=$with_fpx; with_fpx=$withval
26906 else
26907   with_fpx='yes'
26908 fi
26909
26910
26911 if test "$with_fpx" != 'yes'; then
26912     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26913 fi
26914
26915 have_fpx='no'
26916 FPX_LIBS=''
26917 if test "$with_fpx" != 'no'; then
26918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26919 $as_echo "-------------------------------------------------------------" >&6; }
26920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26921 $as_echo_n "checking for FlashPIX... " >&6; }
26922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26923 $as_echo "" >&6; }
26924     failed=0
26925     passed=0
26926     ac_ext=cpp
26927 ac_cpp='$CXXCPP $CPPFLAGS'
26928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26931
26932
26933 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26934 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26935   passed=`expr $passed + 1`
26936 else
26937   failed=`expr $failed + 1`
26938 fi
26939
26940
26941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26942 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26943 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26944   $as_echo_n "(cached) " >&6
26945 else
26946   ac_check_lib_save_LIBS=$LIBS
26947 LIBS="-lfpx  $LIBS"
26948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26949 /* end confdefs.h.  */
26950
26951 /* Override any GCC internal prototype to avoid an error.
26952    Use char because int might match the return type of a GCC
26953    builtin and then its argument prototype would still apply.  */
26954 #ifdef __cplusplus
26955 extern "C"
26956 #endif
26957 char FPX_OpenImageByFilename ();
26958 int
26959 main ()
26960 {
26961 return FPX_OpenImageByFilename ();
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 if ac_fn_cxx_try_link "$LINENO"; then :
26967   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26968 else
26969   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26970 fi
26971 rm -f core conftest.err conftest.$ac_objext \
26972     conftest$ac_exeext conftest.$ac_ext
26973 LIBS=$ac_check_lib_save_LIBS
26974 fi
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26976 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26977 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26978   passed=`expr $passed + 1`
26979 else
26980   failed=`expr $failed + 1`
26981 fi
26982
26983     ac_ext=c
26984 ac_cpp='$CPP $CPPFLAGS'
26985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26988
26989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26990 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26991     if test $passed -gt 0; then
26992         if test $failed -gt 0; then
26993             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26994 $as_echo "no -- some components failed test" >&6; }
26995             have_fpx='no (failed tests)'
26996         else
26997             FPX_LIBS='-lfpx'
26998
26999 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27000
27001             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27002 $as_echo "yes" >&6; }
27003             have_fpx='yes'
27004             PERLMAINCC="$CXX"
27005         fi
27006     else
27007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27009     fi
27010 fi
27011  if test "$have_fpx" = 'yes'; then
27012   FPX_DELEGATE_TRUE=
27013   FPX_DELEGATE_FALSE='#'
27014 else
27015   FPX_DELEGATE_TRUE='#'
27016   FPX_DELEGATE_FALSE=
27017 fi
27018
27019
27020
27021
27022 #
27023 # Check for fontconfig delegate library.
27024 #
27025
27026 # Check whether --with-fontconfig was given.
27027 if test "${with_fontconfig+set}" = set; then :
27028   withval=$with_fontconfig; with_fontconfig=$withval
27029 else
27030   with_fontconfig=$have_x
27031 fi
27032
27033
27034 if test "$with_fontconfig" != 'yes'; then
27035     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27036 fi
27037
27038 have_fontconfig='no'
27039 FONTCONFIG_CFLAGS=""
27040 FONTCONFIG_LIBS=""
27041 FONTCONFIG_PKG=""
27042 if test "x$with_fontconfig" = "xyes"; then
27043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27044 $as_echo "-------------------------------------------------------------" >&6; }
27045
27046 pkg_failed=no
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27048 $as_echo_n "checking for FONTCONFIG... " >&6; }
27049
27050 if test -n "$FONTCONFIG_CFLAGS"; then
27051     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27052  elif test -n "$PKG_CONFIG"; then
27053     if test -n "$PKG_CONFIG" && \
27054     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27055   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27056   ac_status=$?
27057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27058   test $ac_status = 0; }; then
27059   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27060 else
27061   pkg_failed=yes
27062 fi
27063  else
27064     pkg_failed=untried
27065 fi
27066 if test -n "$FONTCONFIG_LIBS"; then
27067     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27068  elif test -n "$PKG_CONFIG"; then
27069     if test -n "$PKG_CONFIG" && \
27070     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27071   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27072   ac_status=$?
27073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074   test $ac_status = 0; }; then
27075   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27076 else
27077   pkg_failed=yes
27078 fi
27079  else
27080     pkg_failed=untried
27081 fi
27082
27083
27084
27085 if test $pkg_failed = yes; then
27086
27087 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27088         _pkg_short_errors_supported=yes
27089 else
27090         _pkg_short_errors_supported=no
27091 fi
27092         if test $_pkg_short_errors_supported = yes; then
27093                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27094         else
27095                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27096         fi
27097         # Put the nasty error message in config.log where it belongs
27098         echo "$FONTCONFIG_PKG_ERRORS" >&5
27099
27100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27102                 have_fontconfig=no
27103 elif test $pkg_failed = untried; then
27104         have_fontconfig=no
27105 else
27106         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27107         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27109 $as_echo "yes" >&6; }
27110         have_fontconfig=yes
27111 fi
27112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27113 $as_echo "" >&6; }
27114 fi
27115
27116 if test "$have_fontconfig" = 'yes'; then
27117
27118 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27119
27120   if test "$with_modules" = 'no'; then
27121     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27122   fi
27123 fi
27124
27125  if test "$have_fontconfig" = 'yes'; then
27126   FONTCONFIG_DELEGATE_TRUE=
27127   FONTCONFIG_DELEGATE_FALSE='#'
27128 else
27129   FONTCONFIG_DELEGATE_TRUE='#'
27130   FONTCONFIG_DELEGATE_FALSE=
27131 fi
27132
27133
27134
27135
27136
27137 #
27138 # Check for freetype delegate library.
27139 #
27140
27141 # Check whether --with-freetype was given.
27142 if test "${with_freetype+set}" = set; then :
27143   withval=$with_freetype; with_freetype=$withval
27144 else
27145   with_freetype='yes'
27146 fi
27147
27148
27149
27150 if test "$with_freetype" != 'yes'; then
27151     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27152 fi
27153
27154 have_freetype='no'
27155 FREETYPE_LIBS=''
27156 if test "$with_freetype" != 'no'; then
27157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27158 $as_echo "-------------------------------------------------------------" >&6; }
27159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27160 $as_echo_n "checking for FreeType 2.0... " >&6; }
27161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27162 $as_echo "" >&6; }
27163     failed=0
27164     passed=0
27165     PERSIST_LIBS="$LIBS"
27166     PERSIST_CPPFLAGS="$CPPFLAGS"
27167     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27168         :
27169     else
27170         freetype_config=''
27171         for ac_prog in freetype-config
27172 do
27173   # Extract the first word of "$ac_prog", so it can be a program name with args.
27174 set dummy $ac_prog; ac_word=$2
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27176 $as_echo_n "checking for $ac_word... " >&6; }
27177 if test "${ac_cv_prog_freetype_config+set}" = set; then :
27178   $as_echo_n "(cached) " >&6
27179 else
27180   if test -n "$freetype_config"; then
27181   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27182 else
27183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27184 for as_dir in $PATH
27185 do
27186   IFS=$as_save_IFS
27187   test -z "$as_dir" && as_dir=.
27188     for ac_exec_ext in '' $ac_executable_extensions; do
27189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27190     ac_cv_prog_freetype_config="$ac_prog"
27191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27192     break 2
27193   fi
27194 done
27195   done
27196 IFS=$as_save_IFS
27197
27198 fi
27199 fi
27200 freetype_config=$ac_cv_prog_freetype_config
27201 if test -n "$freetype_config"; then
27202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27203 $as_echo "$freetype_config" >&6; }
27204 else
27205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206 $as_echo "no" >&6; }
27207 fi
27208
27209
27210   test -n "$freetype_config" && break
27211 done
27212         if test -n "$freetype_config"; then
27213             freetype_cflags=`$freetype_config --cflags`
27214             freetype_libs=`$freetype_config --libs`
27215             LIBS="$LIBS $freetype_libs"
27216             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27217         fi
27218     fi
27219
27220     if test "$FREETYPE_LIBS" = ''; then
27221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27222 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27223 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27224   $as_echo_n "(cached) " >&6
27225 else
27226   ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lfreetype  $LIBS"
27228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27229 /* end confdefs.h.  */
27230
27231 /* Override any GCC internal prototype to avoid an error.
27232    Use char because int might match the return type of a GCC
27233    builtin and then its argument prototype would still apply.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 char FT_Init_FreeType ();
27238 int
27239 main ()
27240 {
27241 return FT_Init_FreeType ();
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 if ac_fn_c_try_link "$LINENO"; then :
27247   ac_cv_lib_freetype_FT_Init_FreeType=yes
27248 else
27249   ac_cv_lib_freetype_FT_Init_FreeType=no
27250 fi
27251 rm -f core conftest.err conftest.$ac_objext \
27252     conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27254 fi
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27256 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27257 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27258   FREETYPE_LIBS='-lfreetype'
27259 fi
27260
27261         if test "$FREETYPE_LIBS" != ''; then
27262             passed=`expr $passed + 1`
27263         else
27264             failed=`expr $failed + 1`
27265             LIBS="$PERSIST_LIBS"
27266         fi
27267     fi
27268
27269     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27270 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27271   FT2BUILD_H='#include <ft2build.h>'
27272 else
27273   ft2build=''
27274 fi
27275
27276
27277     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27278 "
27279 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27280   have_freetype_h='yes'
27281 else
27282   have_freetype_h='no'
27283 fi
27284
27285
27286     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27287         passed=`expr $passed + 1`
27288     else
27289         failed=`expr $failed + 1`
27290         CPPFLAGS="$PERSIST_CPPFLAGS"
27291     fi
27292
27293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27294 $as_echo_n "checking if FreeType package is complete... " >&6; }
27295     if test $passed -gt 0; then
27296         if test $failed -gt 0; then
27297             FREETYPE_LIBS=''
27298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27299 $as_echo "no -- some components failed test" >&6; }
27300             have_freetype='no (failed tests)'
27301         else
27302             LIBS="$FREETYPE_LIBS $LIBS"
27303
27304 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27305
27306             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27307
27308 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27309
27310             fi
27311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27312 $as_echo "yes" >&6; }
27313             have_freetype='yes'
27314         fi
27315     else
27316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27317 $as_echo "no" >&6; }
27318     fi
27319 fi
27320  if test "$have_freetype" = 'yes'; then
27321   FREETYPE_DELEGATE_TRUE=
27322   FREETYPE_DELEGATE_FALSE='#'
27323 else
27324   FREETYPE_DELEGATE_TRUE='#'
27325   FREETYPE_DELEGATE_FALSE=
27326 fi
27327
27328
27329
27330
27331
27332 #
27333 # Check for Ghostscript library or framework.
27334 #
27335 # Test for iapi.h & test for gsapi_new_instance in -lgs
27336 # or -framework Ghostscript
27337
27338
27339 # Check whether --with-gslib was given.
27340 if test "${with_gslib+set}" = set; then :
27341   withval=$with_gslib; with_gslib=$withval
27342 else
27343   with_gslib='no'
27344 fi
27345
27346
27347 gslib_framework='no'
27348 if test "$with_gslib" != 'yes'; then
27349     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27350 fi
27351
27352 have_gslib='no'
27353 GS_LIBS=''
27354 if test "$with_gslib" != 'no'; then
27355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27356 $as_echo "-------------------------------------------------------------" >&6; }
27357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27358 $as_echo_n "checking for Ghostscript... " >&6; }
27359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27360 $as_echo "" >&6; }
27361     framework=0
27362     failed=0
27363     passed=0
27364     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27365 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27366   passed=`expr $passed + 1`
27367 else
27368   failed=`expr $failed + 1`
27369 fi
27370
27371
27372     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27373 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27374   passed=`expr $passed + 1`
27375 else
27376   failed=`expr $failed + 1`
27377 fi
27378
27379
27380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27381 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27382 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27383   $as_echo_n "(cached) " >&6
27384 else
27385   ac_check_framework_save_LIBS=$LIBS
27386 LIBS="-framework Ghostscript  $LIBS"
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h.  */
27389
27390 /* Override any GCC internal prototype to avoid an error.
27391    Use char because int might match the return type of a GCC
27392    builtin and then its argument prototype would still apply.  */
27393 #ifdef __cplusplus
27394 extern "C"
27395 #endif
27396 char gsapi_new_instance ();
27397 int
27398 main ()
27399 {
27400 return gsapi_new_instance ();
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 if ac_fn_c_try_link "$LINENO"; then :
27406   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27407 else
27408   ac_cv_framework_Ghostscript_gsapi_new_instance=no
27409 fi
27410 rm -f core conftest.err conftest.$ac_objext \
27411     conftest$ac_exeext conftest.$ac_ext
27412 LIBS=$ac_check_framework_save_LIBS
27413 fi
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27415 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27416 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27417   framework=`expr $framework + 1`
27418 else
27419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27420 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27421 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27422   $as_echo_n "(cached) " >&6
27423 else
27424   ac_check_lib_save_LIBS=$LIBS
27425 LIBS="-lgs  $LIBS"
27426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27427 /* end confdefs.h.  */
27428
27429 /* Override any GCC internal prototype to avoid an error.
27430    Use char because int might match the return type of a GCC
27431    builtin and then its argument prototype would still apply.  */
27432 #ifdef __cplusplus
27433 extern "C"
27434 #endif
27435 char gsapi_new_instance ();
27436 int
27437 main ()
27438 {
27439 return gsapi_new_instance ();
27440   ;
27441   return 0;
27442 }
27443 _ACEOF
27444 if ac_fn_c_try_link "$LINENO"; then :
27445   ac_cv_lib_gs_gsapi_new_instance=yes
27446 else
27447   ac_cv_lib_gs_gsapi_new_instance=no
27448 fi
27449 rm -f core conftest.err conftest.$ac_objext \
27450     conftest$ac_exeext conftest.$ac_ext
27451 LIBS=$ac_check_lib_save_LIBS
27452 fi
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27454 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27455 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27456   passed=`expr $passed + 1`
27457 else
27458   failed=`expr $failed + 1`
27459 fi
27460
27461 fi
27462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27463 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27464     if test $passed -gt 0; then
27465         if test $failed -gt 0; then
27466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27467 $as_echo "no -- some components failed test" >&6; }
27468             have_gslib='no (failed tests)'
27469         else
27470             if test $framework -gt 0; then
27471                 GS_LIBS='-framework Ghostscript'
27472                 gslib_framework='yes'
27473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27474 $as_echo "yes, using framework." >&6; }
27475             else
27476                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27477 $as_echo "yes, using library." >&6; }
27478                 GS_LIBS='-lgs'
27479             fi
27480             LIBS="$GS_LIBS $LIBS"
27481
27482 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27483
27484             have_gslib='yes'
27485         fi
27486     else
27487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27488 $as_echo "no" >&6; }
27489     fi
27490 fi
27491  if test "$have_gslib" = 'yes'; then
27492   GS_DELEGATE_TRUE=
27493   GS_DELEGATE_FALSE='#'
27494 else
27495   GS_DELEGATE_TRUE='#'
27496   GS_DELEGATE_FALSE=
27497 fi
27498
27499
27500
27501 # Set default font search path
27502
27503 # Check whether --with-fontpath was given.
27504 if test "${with_fontpath+set}" = set; then :
27505   withval=$with_fontpath; with_fontpath=$withval
27506 else
27507   with_fontpath=''
27508 fi
27509
27510
27511 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27512     with_fontpath=''
27513 else
27514
27515 cat >>confdefs.h <<_ACEOF
27516 #define MAGICK_FONT_PATH "$with_fontpath"
27517 _ACEOF
27518
27519 fi
27520 if test "$with_fontpath=" != ''; then
27521     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27522 fi
27523
27524 # Set Ghostscript font directory
27525
27526 # Check whether --with-gs-font-dir was given.
27527 if test "${with_gs_font_dir+set}" = set; then :
27528   withval=$with_gs_font_dir; with_gs_font_dir=$withval
27529 else
27530   with_gs_font_dir='default'
27531 fi
27532
27533
27534 if test "$with_gs_font_dir" != 'default'; then
27535     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27536 fi
27537
27538
27539 #
27540 # Check for GVC delegate library.
27541 #
27542
27543 # Check whether --with-gvc was given.
27544 if test "${with_gvc+set}" = set; then :
27545   withval=$with_gvc; with_gvc=$withval
27546 else
27547   with_gvc='yes'
27548 fi
27549
27550
27551 if test "$with_gvc" != 'yes'; then
27552     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27553 fi
27554
27555 GVC_PKG=""
27556 if test "x$with_gvc" = "xyes"; then
27557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27558 $as_echo "-------------------------------------------------------------" >&6; }
27559
27560 pkg_failed=no
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27562 $as_echo_n "checking for GVC... " >&6; }
27563
27564 if test -n "$GVC_CFLAGS"; then
27565     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27566  elif test -n "$PKG_CONFIG"; then
27567     if test -n "$PKG_CONFIG" && \
27568     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27569   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27570   ac_status=$?
27571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27572   test $ac_status = 0; }; then
27573   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27574 else
27575   pkg_failed=yes
27576 fi
27577  else
27578     pkg_failed=untried
27579 fi
27580 if test -n "$GVC_LIBS"; then
27581     pkg_cv_GVC_LIBS="$GVC_LIBS"
27582  elif test -n "$PKG_CONFIG"; then
27583     if test -n "$PKG_CONFIG" && \
27584     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27585   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27586   ac_status=$?
27587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588   test $ac_status = 0; }; then
27589   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27590 else
27591   pkg_failed=yes
27592 fi
27593  else
27594     pkg_failed=untried
27595 fi
27596
27597
27598
27599 if test $pkg_failed = yes; then
27600
27601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27602         _pkg_short_errors_supported=yes
27603 else
27604         _pkg_short_errors_supported=no
27605 fi
27606         if test $_pkg_short_errors_supported = yes; then
27607                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27608         else
27609                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27610         fi
27611         # Put the nasty error message in config.log where it belongs
27612         echo "$GVC_PKG_ERRORS" >&5
27613
27614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27615 $as_echo "no" >&6; }
27616                 have_gvc=no
27617 elif test $pkg_failed = untried; then
27618         have_gvc=no
27619 else
27620         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27621         GVC_LIBS=$pkg_cv_GVC_LIBS
27622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27623 $as_echo "yes" >&6; }
27624         have_gvc=yes
27625 fi
27626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27627 $as_echo "" >&6; }
27628 fi
27629
27630 if test "$have_gvc" = 'yes'; then
27631
27632 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27633
27634     if test "$with_modules" = 'no'; then
27635         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27636     fi
27637 fi
27638
27639  if test "$have_gvc" = 'yes'; then
27640   GVC_DELEGATE_TRUE=
27641   GVC_DELEGATE_FALSE='#'
27642 else
27643   GVC_DELEGATE_TRUE='#'
27644   GVC_DELEGATE_FALSE=
27645 fi
27646
27647
27648
27649
27650
27651 #
27652 # Check for JBIG delegate library.
27653 #
27654
27655
27656 # Check whether --with-jbig was given.
27657 if test "${with_jbig+set}" = set; then :
27658   withval=$with_jbig; with_jbig=$withval
27659 else
27660   with_jbig='yes'
27661 fi
27662
27663
27664 have_jbig='no'
27665 JBIG_LIBS=''
27666 if test "$with_jbig" != 'no'; then
27667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27668 $as_echo "-------------------------------------------------------------" >&6; }
27669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27670 $as_echo_n "checking for JBIG... " >&6; }
27671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27672 $as_echo "" >&6; }
27673     failed=0
27674     passed=0
27675     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27676 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27677   passed=`expr $passed + 1`
27678 else
27679   failed=`expr $failed + 1`
27680 fi
27681
27682
27683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27684 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27685 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27686   $as_echo_n "(cached) " >&6
27687 else
27688   ac_check_lib_save_LIBS=$LIBS
27689 LIBS="-ljbig  $LIBS"
27690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27691 /* end confdefs.h.  */
27692
27693 /* Override any GCC internal prototype to avoid an error.
27694    Use char because int might match the return type of a GCC
27695    builtin and then its argument prototype would still apply.  */
27696 #ifdef __cplusplus
27697 extern "C"
27698 #endif
27699 char jbg_dec_init ();
27700 int
27701 main ()
27702 {
27703 return jbg_dec_init ();
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 if ac_fn_c_try_link "$LINENO"; then :
27709   ac_cv_lib_jbig_jbg_dec_init=yes
27710 else
27711   ac_cv_lib_jbig_jbg_dec_init=no
27712 fi
27713 rm -f core conftest.err conftest.$ac_objext \
27714     conftest$ac_exeext conftest.$ac_ext
27715 LIBS=$ac_check_lib_save_LIBS
27716 fi
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27718 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27719 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27720   passed=`expr $passed + 1`
27721 else
27722   failed=`expr $failed + 1`
27723 fi
27724
27725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27726 $as_echo_n "checking if JBIG package is complete... " >&6; }
27727     if test $passed -gt 0; then
27728         if test $failed -gt 0; then
27729             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27730 $as_echo "no -- some components failed test" >&6; }
27731             have_jbig='no (failed tests)'
27732         else
27733             JBIG_LIBS='-ljbig'
27734             LIBS="$JBIG_LIBS $LIBS"
27735
27736 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27737
27738             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27739 $as_echo "yes" >&6; }
27740             have_jbig='yes'
27741         fi
27742     else
27743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27744 $as_echo "no" >&6; }
27745     fi
27746 fi
27747  if test "$have_jbig" = 'yes'; then
27748   JBIG_DELEGATE_TRUE=
27749   JBIG_DELEGATE_FALSE='#'
27750 else
27751   JBIG_DELEGATE_TRUE='#'
27752   JBIG_DELEGATE_FALSE=
27753 fi
27754
27755
27756
27757
27758 #
27759 # Check for JPEG delegate library.
27760 #
27761
27762 # Check whether --with-jpeg was given.
27763 if test "${with_jpeg+set}" = set; then :
27764   withval=$with_jpeg; with_jpeg=$withval
27765 else
27766   with_jpeg='yes'
27767 fi
27768
27769
27770 if test "$with_jpeg" != 'yes'; then
27771     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27772 fi
27773
27774 have_jpeg='no'
27775 JPEG_LIBS=''
27776 if test "$with_jpeg" != 'no'; then
27777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27778 $as_echo "-------------------------------------------------------------" >&6; }
27779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27780 $as_echo_n "checking for JPEG... " >&6; }
27781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27782 $as_echo "" >&6; }
27783     failed=0
27784     passed=0
27785     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27786 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27787   passed=`expr $passed + 1`
27788 else
27789   failed=`expr $failed + 1`
27790 fi
27791
27792
27793     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27794 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27795   passed=`expr $passed + 1`
27796 else
27797   failed=`expr $failed + 1`
27798 fi
27799
27800
27801     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27802 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27803   passed=`expr $passed + 1`
27804 else
27805   failed=`expr $failed + 1`
27806 fi
27807
27808
27809     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27810 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27811   passed=`expr $passed + 1`
27812 else
27813   failed=`expr $failed + 1`
27814 fi
27815
27816
27817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27818 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27819 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27820   $as_echo_n "(cached) " >&6
27821 else
27822   ac_check_lib_save_LIBS=$LIBS
27823 LIBS="-ljpeg  $LIBS"
27824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h.  */
27826
27827 /* Override any GCC internal prototype to avoid an error.
27828    Use char because int might match the return type of a GCC
27829    builtin and then its argument prototype would still apply.  */
27830 #ifdef __cplusplus
27831 extern "C"
27832 #endif
27833 char jpeg_read_header ();
27834 int
27835 main ()
27836 {
27837 return jpeg_read_header ();
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 if ac_fn_c_try_link "$LINENO"; then :
27843   ac_cv_lib_jpeg_jpeg_read_header=yes
27844 else
27845   ac_cv_lib_jpeg_jpeg_read_header=no
27846 fi
27847 rm -f core conftest.err conftest.$ac_objext \
27848     conftest$ac_exeext conftest.$ac_ext
27849 LIBS=$ac_check_lib_save_LIBS
27850 fi
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27852 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27853 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27854   passed=`expr $passed + 1`
27855 else
27856   failed=`expr $failed + 1`
27857 fi
27858
27859
27860 # Test for compatible JPEG library
27861 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27863 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27864 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27865   $as_echo_n "(cached) " >&6
27866 else
27867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27868 /* end confdefs.h.  */
27869 #include <stdio.h>
27870 #include <stdlib.h>
27871 #include <jpeglib.h>
27872
27873 int
27874 main ()
27875 {
27876
27877 #if JPEG_LIB_VERSION < 62
27878 #error IJG JPEG library must be version 6b or newer!
27879 #endif
27880 return 0;
27881
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 if ac_fn_c_try_compile "$LINENO"; then :
27887   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27888 else
27889   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27890 fi
27891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27892 fi
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27894 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27895 fi
27896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27897 $as_echo_n "checking if JPEG package is complete... " >&6; }
27898     if test $passed -gt 0; then
27899         if test $failed -gt 0; then
27900             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27901 $as_echo "no -- some components failed test" >&6; }
27902             have_jpeg='no (failed tests)'
27903         else
27904             JPEG_LIBS='-ljpeg'
27905             LIBS="$JPEG_LIBS $LIBS"
27906
27907 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27908
27909             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27910 $as_echo "yes" >&6; }
27911             have_jpeg='yes'
27912         fi
27913     else
27914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915 $as_echo "no" >&6; }
27916     fi
27917 fi
27918  if test "$have_jpeg" = 'yes'; then
27919   JPEG_DELEGATE_TRUE=
27920   JPEG_DELEGATE_FALSE='#'
27921 else
27922   JPEG_DELEGATE_TRUE='#'
27923   JPEG_DELEGATE_FALSE=
27924 fi
27925
27926
27927
27928
27929 #
27930 # Check for JPEG Version 2 delegate library.
27931 #
27932
27933 # Check whether --with-jp2 was given.
27934 if test "${with_jp2+set}" = set; then :
27935   withval=$with_jp2; with_jp2=$withval
27936 else
27937   with_jp2='yes'
27938 fi
27939
27940
27941 if test "$with_jp2" != 'yes'; then
27942     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27943 fi
27944
27945 have_jp2='no'
27946 JP2_LIBS=''
27947 if test "$with_jp2" != 'no'; then
27948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27949 $as_echo "-------------------------------------------------------------" >&6; }
27950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27951 $as_echo_n "checking for JPEG Version 2... " >&6; }
27952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27953 $as_echo "" >&6; }
27954     failed=0
27955     passed=0
27956     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27957 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27958   passed=`expr $passed + 1`
27959 else
27960   failed=`expr $failed + 1`
27961 fi
27962
27963
27964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27965 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27966 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27967   $as_echo_n "(cached) " >&6
27968 else
27969   ac_check_lib_save_LIBS=$LIBS
27970 LIBS="-ljasper  $LIBS"
27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h.  */
27973
27974 /* Override any GCC internal prototype to avoid an error.
27975    Use char because int might match the return type of a GCC
27976    builtin and then its argument prototype would still apply.  */
27977 #ifdef __cplusplus
27978 extern "C"
27979 #endif
27980 char jas_stream_fopen ();
27981 int
27982 main ()
27983 {
27984 return jas_stream_fopen ();
27985   ;
27986   return 0;
27987 }
27988 _ACEOF
27989 if ac_fn_c_try_link "$LINENO"; then :
27990   ac_cv_lib_jasper_jas_stream_fopen=yes
27991 else
27992   ac_cv_lib_jasper_jas_stream_fopen=no
27993 fi
27994 rm -f core conftest.err conftest.$ac_objext \
27995     conftest$ac_exeext conftest.$ac_ext
27996 LIBS=$ac_check_lib_save_LIBS
27997 fi
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27999 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28000 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
28001   passed=`expr $passed + 1`
28002 else
28003   failed=`expr $failed + 1`
28004 fi
28005
28006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28007 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28008     if test $passed -gt 0; then
28009         if test $failed -gt 0; then
28010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28011 $as_echo "no -- some components failed test" >&6; }
28012             have_jp2='no (failed tests)'
28013         else
28014             JP2_LIBS='-ljasper'
28015             LIBS="$JP2_LIBS $LIBS"
28016
28017 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28018
28019             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28020 $as_echo "yes" >&6; }
28021             have_jp2='yes'
28022         fi
28023     else
28024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28025 $as_echo "no" >&6; }
28026     fi
28027 fi
28028  if test "$have_jp2" = 'yes'; then
28029   JP2_DELEGATE_TRUE=
28030   JP2_DELEGATE_FALSE='#'
28031 else
28032   JP2_DELEGATE_TRUE='#'
28033   JP2_DELEGATE_FALSE=
28034 fi
28035
28036
28037
28038
28039 #
28040 # Check for LCMS delegate library.
28041 #
28042 # Disable LCMS.
28043
28044 # Check whether --with-lcms was given.
28045 if test "${with_lcms+set}" = set; then :
28046   withval=$with_lcms; with_lcms=$withval
28047 else
28048   with_lcms='yes'
28049 fi
28050
28051 if test "$with_lcms" != 'yes' ; then
28052     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28053 fi
28054
28055 # Disable LCMS2.
28056
28057 # Check whether --with-lcms2 was given.
28058 if test "${with_lcms2+set}" = set; then :
28059   withval=$with_lcms2; with_lcms2=$withval
28060 else
28061   with_lcms2='yes'
28062 fi
28063
28064 if test "$with_lcms2" != 'yes' ; then
28065     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28066 fi
28067
28068 have_lcms2='no'
28069 LCMS_LIBS=''
28070 if test "$with_lcms2" != 'no'; then
28071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28072 $as_echo "-------------------------------------------------------------" >&6; }
28073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28074 $as_echo_n "checking for LCMS v2... " >&6; }
28075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28076 $as_echo "" >&6; }
28077     failed=0
28078     passed=0
28079     have_lcms_header='no'
28080
28081     # Check for <lcms2.h>
28082     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28083 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28084   have_lcms_header='yes'
28085 fi
28086
28087
28088     if test "$have_lcms_header" = 'yes'; then
28089
28090 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28091
28092        passed=`expr $passed + 1`
28093     fi
28094
28095     # Check for <lcms2/lcms2.h)
28096     if test "$have_lcms_header" != 'yes'; then
28097       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28098 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
28099   have_lcms_header='yes'
28100 fi
28101
28102
28103       if test "$have_lcms_header" = 'yes'; then
28104         passed=`expr $passed + 1`
28105
28106 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28107
28108       fi
28109     fi
28110
28111     # Failed to find lcms header?
28112     if test "$have_lcms_header" != 'yes'; then
28113       failed=`expr $failed + 1`
28114     fi
28115
28116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28117 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28118 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
28119   $as_echo_n "(cached) " >&6
28120 else
28121   ac_check_lib_save_LIBS=$LIBS
28122 LIBS="-llcms2  $LIBS"
28123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28124 /* end confdefs.h.  */
28125
28126 /* Override any GCC internal prototype to avoid an error.
28127    Use char because int might match the return type of a GCC
28128    builtin and then its argument prototype would still apply.  */
28129 #ifdef __cplusplus
28130 extern "C"
28131 #endif
28132 char cmsSetLogErrorHandler ();
28133 int
28134 main ()
28135 {
28136 return cmsSetLogErrorHandler ();
28137   ;
28138   return 0;
28139 }
28140 _ACEOF
28141 if ac_fn_c_try_link "$LINENO"; then :
28142   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28143 else
28144   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28145 fi
28146 rm -f core conftest.err conftest.$ac_objext \
28147     conftest$ac_exeext conftest.$ac_ext
28148 LIBS=$ac_check_lib_save_LIBS
28149 fi
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28151 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28152 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
28153   passed=`expr $passed + 1`
28154 else
28155   failed=`expr $failed + 1`
28156 fi
28157
28158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28159 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28160     if test $passed -gt 0; then
28161       if test $failed -gt 0; then
28162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28163 $as_echo "no -- some components failed test" >&6; }
28164         have_lcms2='no (failed tests)'
28165       else
28166         LCMS_LIBS='-llcms2'
28167         LIBS="$LCMS_LIBS $LIBS"
28168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28169 $as_echo "yes" >&6; }
28170         have_lcms2='yes'
28171       fi
28172     else
28173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28174 $as_echo "no" >&6; }
28175     fi
28176 fi
28177
28178 #
28179 # Check for LCMS v1 (1.11 or later)
28180 #
28181 if test $have_lcms2 = 'yes'; then
28182   with_lcms='no'
28183 fi
28184
28185 have_lcms='no'
28186 if test "$with_lcms" != 'no'; then
28187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28188 $as_echo "-------------------------------------------------------------" >&6; }
28189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28190 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28192 $as_echo "" >&6; }
28193     failed=0
28194     passed=0
28195     have_lcms_header='no'
28196
28197     # Check for <lcms.h>
28198     if test "$have_lcms_header" != 'yes'; then
28199       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28200 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28201   have_lcms_header='yes'
28202 fi
28203
28204
28205       if test "$have_lcms_header" = 'yes'; then
28206         passed=`expr $passed + 1`
28207
28208 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28209
28210       fi
28211     fi
28212
28213     # Check for <lcms/lcms.h>
28214     if test "$have_lcms_header" != 'yes'; then
28215       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28216 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28217   have_lcms_header='yes'
28218 fi
28219
28220
28221       if test "$have_lcms_header" = 'yes'; then
28222         passed=`expr $passed + 1`
28223
28224 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28225
28226       fi
28227     fi
28228
28229     # Failed to find lcms header?
28230     if test "$have_lcms_header" != 'yes'; then
28231       failed=`expr $failed + 1`
28232     fi
28233
28234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28235 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28236 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28237   $as_echo_n "(cached) " >&6
28238 else
28239   ac_check_lib_save_LIBS=$LIBS
28240 LIBS="-llcms  $LIBS"
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h.  */
28243
28244 /* Override any GCC internal prototype to avoid an error.
28245    Use char because int might match the return type of a GCC
28246    builtin and then its argument prototype would still apply.  */
28247 #ifdef __cplusplus
28248 extern "C"
28249 #endif
28250 char cmsSetErrorHandler ();
28251 int
28252 main ()
28253 {
28254 return cmsSetErrorHandler ();
28255   ;
28256   return 0;
28257 }
28258 _ACEOF
28259 if ac_fn_c_try_link "$LINENO"; then :
28260   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28261 else
28262   ac_cv_lib_lcms_cmsSetErrorHandler=no
28263 fi
28264 rm -f core conftest.err conftest.$ac_objext \
28265     conftest$ac_exeext conftest.$ac_ext
28266 LIBS=$ac_check_lib_save_LIBS
28267 fi
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28269 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28270 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28271   passed=`expr $passed + 1`
28272 else
28273   failed=`expr $failed + 1`
28274 fi
28275
28276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28277 $as_echo_n "checking if LCMS package is complete... " >&6; }
28278     if test $passed -gt 0; then
28279       if test $failed -gt 0; then
28280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28281 $as_echo "no -- some components failed test" >&6; }
28282         have_lcms='no (failed tests)'
28283       else
28284         LCMS_LIBS='-llcms'
28285         LIBS="$LCMS_LIBS $LIBS"
28286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28287 $as_echo "yes" >&6; }
28288         have_lcms='yes'
28289       fi
28290     else
28291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28292 $as_echo "no" >&6; }
28293     fi
28294 fi
28295
28296  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28297   LCMS_DELEGATE_TRUE=
28298   LCMS_DELEGATE_FALSE='#'
28299 else
28300   LCMS_DELEGATE_TRUE='#'
28301   LCMS_DELEGATE_FALSE=
28302 fi
28303
28304 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28305
28306 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28307
28308 fi
28309
28310
28311
28312
28313 #
28314 # Check for the LQR (Liquid Rescale) delegate library.
28315 #
28316
28317 # Check whether --with-lqr was given.
28318 if test "${with_lqr+set}" = set; then :
28319   withval=$with_lqr; with_lqr=$withval
28320 else
28321   with_lqr='yes'
28322 fi
28323
28324
28325 if test "$with_lqr" != 'yes'; then
28326     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28327 fi
28328
28329 have_lqr='no'
28330 LQR_CFLAGS=""
28331 LQR_LIBS=""
28332 LQR_PKG=""
28333 if test "x$with_lqr" = "xyes"; then
28334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28335 $as_echo "-------------------------------------------------------------" >&6; }
28336
28337 pkg_failed=no
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28339 $as_echo_n "checking for LQR... " >&6; }
28340
28341 if test -n "$LQR_CFLAGS"; then
28342     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28343  elif test -n "$PKG_CONFIG"; then
28344     if test -n "$PKG_CONFIG" && \
28345     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28346   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28347   ac_status=$?
28348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349   test $ac_status = 0; }; then
28350   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28351 else
28352   pkg_failed=yes
28353 fi
28354  else
28355     pkg_failed=untried
28356 fi
28357 if test -n "$LQR_LIBS"; then
28358     pkg_cv_LQR_LIBS="$LQR_LIBS"
28359  elif test -n "$PKG_CONFIG"; then
28360     if test -n "$PKG_CONFIG" && \
28361     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28362   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28363   ac_status=$?
28364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28365   test $ac_status = 0; }; then
28366   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28367 else
28368   pkg_failed=yes
28369 fi
28370  else
28371     pkg_failed=untried
28372 fi
28373
28374
28375
28376 if test $pkg_failed = yes; then
28377
28378 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28379         _pkg_short_errors_supported=yes
28380 else
28381         _pkg_short_errors_supported=no
28382 fi
28383         if test $_pkg_short_errors_supported = yes; then
28384                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28385         else
28386                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28387         fi
28388         # Put the nasty error message in config.log where it belongs
28389         echo "$LQR_PKG_ERRORS" >&5
28390
28391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28392 $as_echo "no" >&6; }
28393                 have_lqr=no
28394 elif test $pkg_failed = untried; then
28395         have_lqr=no
28396 else
28397         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28398         LQR_LIBS=$pkg_cv_LQR_LIBS
28399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28400 $as_echo "yes" >&6; }
28401         have_lqr=yes
28402 fi
28403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28404 $as_echo "" >&6; }
28405 fi
28406
28407 if test "$have_lqr" = 'yes'; then
28408
28409 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28410
28411     CFLAGS="$LQR_CFLAGS $CFLAGS"
28412 fi
28413
28414  if test "$have_lqr" = 'yes'; then
28415   LQR_DELEGATE_TRUE=
28416   LQR_DELEGATE_FALSE='#'
28417 else
28418   LQR_DELEGATE_TRUE='#'
28419   LQR_DELEGATE_FALSE=
28420 fi
28421
28422
28423
28424
28425
28426 #
28427 # Check for the OpenEXR delegate library.
28428 #
28429
28430 # Check whether --with-openexr was given.
28431 if test "${with_openexr+set}" = set; then :
28432   withval=$with_openexr; with_openexr=$withval
28433 else
28434   with_openexr='yes'
28435 fi
28436
28437
28438 if test "$with_openexr" != 'yes'; then
28439     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28440 fi
28441
28442 have_openexr='no'
28443 OPENEXR_CFLAGS=""
28444 OPENEXR_LIBS=""
28445 OPENEXR_PKG=""
28446 if test "x$with_openexr" = "xyes"; then
28447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28448 $as_echo "-------------------------------------------------------------" >&6; }
28449
28450 pkg_failed=no
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28452 $as_echo_n "checking for OPENEXR... " >&6; }
28453
28454 if test -n "$OPENEXR_CFLAGS"; then
28455     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28456  elif test -n "$PKG_CONFIG"; then
28457     if test -n "$PKG_CONFIG" && \
28458     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28459   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28460   ac_status=$?
28461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28462   test $ac_status = 0; }; then
28463   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28464 else
28465   pkg_failed=yes
28466 fi
28467  else
28468     pkg_failed=untried
28469 fi
28470 if test -n "$OPENEXR_LIBS"; then
28471     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28472  elif test -n "$PKG_CONFIG"; then
28473     if test -n "$PKG_CONFIG" && \
28474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28475   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28476   ac_status=$?
28477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28478   test $ac_status = 0; }; then
28479   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28480 else
28481   pkg_failed=yes
28482 fi
28483  else
28484     pkg_failed=untried
28485 fi
28486
28487
28488
28489 if test $pkg_failed = yes; then
28490
28491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28492         _pkg_short_errors_supported=yes
28493 else
28494         _pkg_short_errors_supported=no
28495 fi
28496         if test $_pkg_short_errors_supported = yes; then
28497                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28498         else
28499                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28500         fi
28501         # Put the nasty error message in config.log where it belongs
28502         echo "$OPENEXR_PKG_ERRORS" >&5
28503
28504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28506                 have_openexr=no
28507 elif test $pkg_failed = untried; then
28508         have_openexr=no
28509 else
28510         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28511         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28513 $as_echo "yes" >&6; }
28514         have_openexr=yes
28515 fi
28516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28517 $as_echo "" >&6; }
28518 fi
28519
28520 if test "$have_openexr" = 'yes'; then
28521
28522 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28523
28524     if test "$with_modules" = 'no'; then
28525         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28526     fi
28527 fi
28528
28529  if test "$have_openexr" = 'yes'; then
28530   OPENEXR_DELEGATE_TRUE=
28531   OPENEXR_DELEGATE_FALSE='#'
28532 else
28533   OPENEXR_DELEGATE_TRUE='#'
28534   OPENEXR_DELEGATE_FALSE=
28535 fi
28536
28537
28538
28539
28540
28541 #
28542 # Check for PNG delegate library.
28543 #
28544
28545 # Check whether --with-png was given.
28546 if test "${with_png+set}" = set; then :
28547   withval=$with_png; with_png=$withval
28548 else
28549   with_png='yes'
28550 fi
28551
28552
28553 if test "$with_png" != 'yes'; then
28554     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28555 fi
28556
28557 have_png='no'
28558 PNG_LIBS=''
28559 if test "$with_png" != 'no'; then
28560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28561 $as_echo "-------------------------------------------------------------" >&6; }
28562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28563 $as_echo_n "checking for PNG... " >&6; }
28564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28565 $as_echo "" >&6; }
28566     failed=0
28567     passed=0
28568     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28569 if test "x$ac_cv_header_png_h" = x""yes; then :
28570   passed=`expr $passed + 1`
28571 else
28572   failed=`expr $failed + 1`
28573 fi
28574
28575
28576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28577 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28578 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28579   $as_echo_n "(cached) " >&6
28580 else
28581   ac_check_lib_save_LIBS=$LIBS
28582 LIBS="-lpng  $LIBS"
28583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h.  */
28585
28586 /* Override any GCC internal prototype to avoid an error.
28587    Use char because int might match the return type of a GCC
28588    builtin and then its argument prototype would still apply.  */
28589 #ifdef __cplusplus
28590 extern "C"
28591 #endif
28592 char png_get_io_ptr ();
28593 int
28594 main ()
28595 {
28596 return png_get_io_ptr ();
28597   ;
28598   return 0;
28599 }
28600 _ACEOF
28601 if ac_fn_c_try_link "$LINENO"; then :
28602   ac_cv_lib_png_png_get_io_ptr=yes
28603 else
28604   ac_cv_lib_png_png_get_io_ptr=no
28605 fi
28606 rm -f core conftest.err conftest.$ac_objext \
28607     conftest$ac_exeext conftest.$ac_ext
28608 LIBS=$ac_check_lib_save_LIBS
28609 fi
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28611 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28612 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28613   passed=`expr $passed + 1`
28614 else
28615   failed=`expr $failed + 1`
28616 fi
28617
28618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28619 $as_echo_n "checking if PNG package is complete... " >&6; }
28620     if test $passed -gt 0; then
28621         if test $failed -gt 0; then
28622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28623 $as_echo "no -- some components failed test" >&6; }
28624             have_png='no (failed tests)'
28625         else
28626             PNG_LIBS='-lpng'
28627             LIBS="$PNG_LIBS $LIBS"
28628
28629 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28630
28631             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28632 $as_echo "yes" >&6; }
28633             have_png='yes'
28634         fi
28635     else
28636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28637 $as_echo "no" >&6; }
28638     fi
28639 fi
28640  if test "$have_png" = 'yes'; then
28641   PNG_DELEGATE_TRUE=
28642   PNG_DELEGATE_FALSE='#'
28643 else
28644   PNG_DELEGATE_TRUE='#'
28645   PNG_DELEGATE_FALSE=
28646 fi
28647
28648
28649
28650
28651 #
28652 # Check for RSVG delegate library.
28653 #
28654
28655 # Check whether --with-rsvg was given.
28656 if test "${with_rsvg+set}" = set; then :
28657   withval=$with_rsvg; with_rsvg=$withval
28658 else
28659   with_rsvg=$have_x
28660 fi
28661
28662
28663 if test "$with_rsvg" != 'yes'; then
28664     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28665 fi
28666
28667 have_rsvg='no'
28668 have_cairo='no'
28669 RSVG_CFLAGS=""
28670 RSVG_LIBS=""
28671 RSVG_PKG=""
28672 if test "x$with_rsvg" = "xyes"; then
28673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28674 $as_echo "-------------------------------------------------------------" >&6; }
28675
28676 pkg_failed=no
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28678 $as_echo_n "checking for RSVG... " >&6; }
28679
28680 if test -n "$RSVG_CFLAGS"; then
28681     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28682  elif test -n "$PKG_CONFIG"; then
28683     if test -n "$PKG_CONFIG" && \
28684     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28685   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28686   ac_status=$?
28687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28688   test $ac_status = 0; }; then
28689   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28690 else
28691   pkg_failed=yes
28692 fi
28693  else
28694     pkg_failed=untried
28695 fi
28696 if test -n "$RSVG_LIBS"; then
28697     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28698  elif test -n "$PKG_CONFIG"; then
28699     if test -n "$PKG_CONFIG" && \
28700     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28701   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28702   ac_status=$?
28703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28704   test $ac_status = 0; }; then
28705   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28706 else
28707   pkg_failed=yes
28708 fi
28709  else
28710     pkg_failed=untried
28711 fi
28712
28713
28714
28715 if test $pkg_failed = yes; then
28716
28717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28718         _pkg_short_errors_supported=yes
28719 else
28720         _pkg_short_errors_supported=no
28721 fi
28722         if test $_pkg_short_errors_supported = yes; then
28723                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28724         else
28725                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28726         fi
28727         # Put the nasty error message in config.log where it belongs
28728         echo "$RSVG_PKG_ERRORS" >&5
28729
28730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28731 $as_echo "no" >&6; }
28732                 have_rsvg=no
28733 elif test $pkg_failed = untried; then
28734         have_rsvg=no
28735 else
28736         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28737         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28739 $as_echo "yes" >&6; }
28740         have_rsvg=yes
28741 fi
28742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28743 $as_echo "" >&6; }
28744
28745 pkg_failed=no
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28747 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28748
28749 if test -n "$CAIRO_SVG_CFLAGS"; then
28750     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28751  elif test -n "$PKG_CONFIG"; then
28752     if test -n "$PKG_CONFIG" && \
28753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28754   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28755   ac_status=$?
28756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28757   test $ac_status = 0; }; then
28758   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28759 else
28760   pkg_failed=yes
28761 fi
28762  else
28763     pkg_failed=untried
28764 fi
28765 if test -n "$CAIRO_SVG_LIBS"; then
28766     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28767  elif test -n "$PKG_CONFIG"; then
28768     if test -n "$PKG_CONFIG" && \
28769     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28770   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28771   ac_status=$?
28772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28773   test $ac_status = 0; }; then
28774   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28775 else
28776   pkg_failed=yes
28777 fi
28778  else
28779     pkg_failed=untried
28780 fi
28781
28782
28783
28784 if test $pkg_failed = yes; then
28785
28786 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28787         _pkg_short_errors_supported=yes
28788 else
28789         _pkg_short_errors_supported=no
28790 fi
28791         if test $_pkg_short_errors_supported = yes; then
28792                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28793         else
28794                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28795         fi
28796         # Put the nasty error message in config.log where it belongs
28797         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28798
28799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28800 $as_echo "no" >&6; }
28801                 have_cairo=no
28802 elif test $pkg_failed = untried; then
28803         have_cairo=no
28804 else
28805         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28806         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28808 $as_echo "yes" >&6; }
28809         have_cairo=yes
28810 fi
28811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28812 $as_echo "" >&6; }
28813 fi
28814
28815 if test "$have_rsvg" = 'yes'; then
28816
28817 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28818
28819     if test "$with_modules" = 'no'; then
28820         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28821     fi
28822 fi
28823
28824 if test "$have_cairo" = 'yes'; then
28825
28826 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28827
28828     if test "$with_modules" = 'no'; then
28829         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28830     fi
28831 fi
28832
28833  if test "$have_rsvg" = 'yes'; then
28834   RSVG_DELEGATE_TRUE=
28835   RSVG_DELEGATE_FALSE='#'
28836 else
28837   RSVG_DELEGATE_TRUE='#'
28838   RSVG_DELEGATE_FALSE=
28839 fi
28840
28841  if test "$have_cairo" = 'yes'; then
28842   CAIRO_DELEGATE_TRUE=
28843   CAIRO_DELEGATE_FALSE='#'
28844 else
28845   CAIRO_DELEGATE_TRUE='#'
28846   CAIRO_DELEGATE_FALSE=
28847 fi
28848
28849
28850
28851
28852
28853 #
28854 # Check for TIFF delegate library.
28855 #
28856
28857 # Check whether --with-tiff was given.
28858 if test "${with_tiff+set}" = set; then :
28859   withval=$with_tiff; with_tiff=$withval
28860 else
28861   with_tiff='yes'
28862 fi
28863
28864
28865 if test "$with_tiff" != 'yes'; then
28866     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28867 fi
28868
28869 have_tiff='no'
28870 TIFF_LIBS=''
28871 if test "$with_tiff" != 'no'; then
28872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28873 $as_echo "-------------------------------------------------------------" >&6; }
28874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28875 $as_echo_n "checking for TIFF... " >&6; }
28876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28877 $as_echo "" >&6; }
28878     failed=0
28879     passed=0
28880     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28881 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28882   passed=`expr $passed + 1`
28883 else
28884   failed=`expr $failed + 1`
28885 fi
28886
28887
28888     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28889 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28890   passed=`expr $passed + 1`
28891 else
28892   failed=`expr $failed + 1`
28893 fi
28894
28895
28896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28897 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28898 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28899   $as_echo_n "(cached) " >&6
28900 else
28901   ac_check_lib_save_LIBS=$LIBS
28902 LIBS="-ltiff  $LIBS"
28903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904 /* end confdefs.h.  */
28905
28906 /* Override any GCC internal prototype to avoid an error.
28907    Use char because int might match the return type of a GCC
28908    builtin and then its argument prototype would still apply.  */
28909 #ifdef __cplusplus
28910 extern "C"
28911 #endif
28912 char TIFFOpen ();
28913 int
28914 main ()
28915 {
28916 return TIFFOpen ();
28917   ;
28918   return 0;
28919 }
28920 _ACEOF
28921 if ac_fn_c_try_link "$LINENO"; then :
28922   ac_cv_lib_tiff_TIFFOpen=yes
28923 else
28924   ac_cv_lib_tiff_TIFFOpen=no
28925 fi
28926 rm -f core conftest.err conftest.$ac_objext \
28927     conftest$ac_exeext conftest.$ac_ext
28928 LIBS=$ac_check_lib_save_LIBS
28929 fi
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28931 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28932 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28933   passed=`expr $passed + 1`
28934 else
28935   failed=`expr $failed + 1`
28936 fi
28937
28938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28939 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28940 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28941   $as_echo_n "(cached) " >&6
28942 else
28943   ac_check_lib_save_LIBS=$LIBS
28944 LIBS="-ltiff  $LIBS"
28945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28946 /* end confdefs.h.  */
28947
28948 /* Override any GCC internal prototype to avoid an error.
28949    Use char because int might match the return type of a GCC
28950    builtin and then its argument prototype would still apply.  */
28951 #ifdef __cplusplus
28952 extern "C"
28953 #endif
28954 char TIFFClientOpen ();
28955 int
28956 main ()
28957 {
28958 return TIFFClientOpen ();
28959   ;
28960   return 0;
28961 }
28962 _ACEOF
28963 if ac_fn_c_try_link "$LINENO"; then :
28964   ac_cv_lib_tiff_TIFFClientOpen=yes
28965 else
28966   ac_cv_lib_tiff_TIFFClientOpen=no
28967 fi
28968 rm -f core conftest.err conftest.$ac_objext \
28969     conftest$ac_exeext conftest.$ac_ext
28970 LIBS=$ac_check_lib_save_LIBS
28971 fi
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28973 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28974 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28975   passed=`expr $passed + 1`
28976 else
28977   failed=`expr $failed + 1`
28978 fi
28979
28980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28981 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28982 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28983   $as_echo_n "(cached) " >&6
28984 else
28985   ac_check_lib_save_LIBS=$LIBS
28986 LIBS="-ltiff  $LIBS"
28987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28988 /* end confdefs.h.  */
28989
28990 /* Override any GCC internal prototype to avoid an error.
28991    Use char because int might match the return type of a GCC
28992    builtin and then its argument prototype would still apply.  */
28993 #ifdef __cplusplus
28994 extern "C"
28995 #endif
28996 char TIFFIsByteSwapped ();
28997 int
28998 main ()
28999 {
29000 return TIFFIsByteSwapped ();
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 if ac_fn_c_try_link "$LINENO"; then :
29006   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29007 else
29008   ac_cv_lib_tiff_TIFFIsByteSwapped=no
29009 fi
29010 rm -f core conftest.err conftest.$ac_objext \
29011     conftest$ac_exeext conftest.$ac_ext
29012 LIBS=$ac_check_lib_save_LIBS
29013 fi
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29015 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29016 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
29017   passed=`expr $passed + 1`
29018 else
29019   failed=`expr $failed + 1`
29020 fi
29021
29022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29023 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29024 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
29025   $as_echo_n "(cached) " >&6
29026 else
29027   ac_check_lib_save_LIBS=$LIBS
29028 LIBS="-ltiff  $LIBS"
29029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29030 /* end confdefs.h.  */
29031
29032 /* Override any GCC internal prototype to avoid an error.
29033    Use char because int might match the return type of a GCC
29034    builtin and then its argument prototype would still apply.  */
29035 #ifdef __cplusplus
29036 extern "C"
29037 #endif
29038 char TIFFReadRGBATile ();
29039 int
29040 main ()
29041 {
29042 return TIFFReadRGBATile ();
29043   ;
29044   return 0;
29045 }
29046 _ACEOF
29047 if ac_fn_c_try_link "$LINENO"; then :
29048   ac_cv_lib_tiff_TIFFReadRGBATile=yes
29049 else
29050   ac_cv_lib_tiff_TIFFReadRGBATile=no
29051 fi
29052 rm -f core conftest.err conftest.$ac_objext \
29053     conftest$ac_exeext conftest.$ac_ext
29054 LIBS=$ac_check_lib_save_LIBS
29055 fi
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29057 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29058 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29059   passed=`expr $passed + 1`
29060 else
29061   failed=`expr $failed + 1`
29062 fi
29063
29064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29065 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29066 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29067   $as_echo_n "(cached) " >&6
29068 else
29069   ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-ltiff  $LIBS"
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h.  */
29073
29074 /* Override any GCC internal prototype to avoid an error.
29075    Use char because int might match the return type of a GCC
29076    builtin and then its argument prototype would still apply.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 char TIFFReadRGBAStrip ();
29081 int
29082 main ()
29083 {
29084 return TIFFReadRGBAStrip ();
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 if ac_fn_c_try_link "$LINENO"; then :
29090   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29091 else
29092   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29093 fi
29094 rm -f core conftest.err conftest.$ac_objext \
29095     conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29097 fi
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29099 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29100 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29101   passed=`expr $passed + 1`
29102 else
29103   failed=`expr $failed + 1`
29104 fi
29105
29106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29107 $as_echo_n "checking if TIFF package is complete... " >&6; }
29108     if test $passed -gt 0; then
29109         if test $failed -gt 0; then
29110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29111 $as_echo "no -- some components failed test" >&6; }
29112             have_tiff='no (failed tests)'
29113         else
29114             TIFF_LIBS='-ltiff'
29115             LIBS="$TIFF_LIBS $LIBS"
29116
29117 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29118
29119             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121             have_tiff='yes'
29122             for ac_header in tiffconf.h
29123 do :
29124   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29125 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29126   cat >>confdefs.h <<_ACEOF
29127 #define HAVE_TIFFCONF_H 1
29128 _ACEOF
29129
29130 fi
29131
29132 done
29133
29134             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29135               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29136               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29137 do :
29138   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29140 eval as_val=\$$as_ac_var
29141    if test "x$as_val" = x""yes; then :
29142   cat >>confdefs.h <<_ACEOF
29143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29144 _ACEOF
29145
29146 fi
29147 done
29148
29149         fi
29150     else
29151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29152 $as_echo "no" >&6; }
29153     fi
29154 fi
29155  if test "$have_tiff" = 'yes'; then
29156   TIFF_DELEGATE_TRUE=
29157   TIFF_DELEGATE_FALSE='#'
29158 else
29159   TIFF_DELEGATE_TRUE='#'
29160   TIFF_DELEGATE_FALSE=
29161 fi
29162
29163
29164
29165
29166 #
29167 # Set Windows font directory.
29168 #
29169
29170 # Check whether --with-windows-font-dir was given.
29171 if test "${with_windows_font_dir+set}" = set; then :
29172   withval=$with_windows_font_dir; with_windows_font_dir=$withval
29173 else
29174   with_windows_font_dir=''
29175 fi
29176
29177 if test "$with_windows_font_dir" != '' ; then
29178     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29179 fi
29180
29181
29182 #
29183 # Check for WMF delegate library.
29184 #
29185
29186 # Check whether --with-wmf was given.
29187 if test "${with_wmf+set}" = set; then :
29188   withval=$with_wmf; with_wmf=$withval
29189 else
29190   with_wmf='yes'
29191 fi
29192
29193
29194 if test "$with_wmf" != 'yes'; then
29195     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29196 fi
29197
29198 have_wmf='no'
29199 WMF_LIBS=''
29200 if test "$with_wmf" != 'no'; then
29201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29202 $as_echo "-------------------------------------------------------------" >&6; }
29203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29204 $as_echo_n "checking for WMF... " >&6; }
29205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29206 $as_echo "" >&6; }
29207     failed=0
29208     passed=0
29209     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29210 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29211   passed=`expr $passed + 1`
29212 else
29213   failed=`expr $failed + 1`
29214 fi
29215
29216
29217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29218 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29219 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29220   $as_echo_n "(cached) " >&6
29221 else
29222   ac_check_lib_save_LIBS=$LIBS
29223 LIBS="-lwmf "-lwmflite" $LIBS"
29224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225 /* end confdefs.h.  */
29226
29227 /* Override any GCC internal prototype to avoid an error.
29228    Use char because int might match the return type of a GCC
29229    builtin and then its argument prototype would still apply.  */
29230 #ifdef __cplusplus
29231 extern "C"
29232 #endif
29233 char wmf_eps_function ();
29234 int
29235 main ()
29236 {
29237 return wmf_eps_function ();
29238   ;
29239   return 0;
29240 }
29241 _ACEOF
29242 if ac_fn_c_try_link "$LINENO"; then :
29243   ac_cv_lib_wmf_wmf_eps_function=yes
29244 else
29245   ac_cv_lib_wmf_wmf_eps_function=no
29246 fi
29247 rm -f core conftest.err conftest.$ac_objext \
29248     conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29250 fi
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29252 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29253 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29254   passed=`expr $passed + 1`
29255 else
29256   failed=`expr $failed + 1`
29257 fi
29258
29259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29260 $as_echo_n "checking if WMF package is complete... " >&6; }
29261     if test $passed -gt 0; then
29262         if test $failed -gt 0; then
29263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29264 $as_echo "no -- some components failed test" >&6; }
29265             have_wmf='no (failed tests)'
29266         else
29267             WMF_LIBS='-lwmf -lwmflite'
29268             LIBS="$WMF_LIBS $LIBS"
29269
29270 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29271
29272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29273 $as_echo "yes" >&6; }
29274             have_wmf='yes'
29275         fi
29276     else
29277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29279     fi
29280 fi
29281  if test "$have_wmf" = 'yes'; then
29282   WMF_DELEGATE_TRUE=
29283   WMF_DELEGATE_FALSE='#'
29284 else
29285   WMF_DELEGATE_TRUE='#'
29286   WMF_DELEGATE_FALSE=
29287 fi
29288
29289
29290
29291
29292
29293
29294 #
29295 # Check for XML delegate library.
29296 #
29297
29298 # Check whether --with-xml was given.
29299 if test "${with_xml+set}" = set; then :
29300   withval=$with_xml; with_xml=$withval
29301 else
29302   with_xml=$have_x
29303 fi
29304
29305
29306 if test "$with_xml" != 'yes' ; then
29307     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29308 fi
29309
29310 have_xml='no'
29311 XML_LIBS=''
29312 if test "$with_xml" != 'no'; then
29313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29314 $as_echo "-------------------------------------------------------------" >&6; }
29315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29316 $as_echo_n "checking for XML... " >&6; }
29317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29318 $as_echo "" >&6; }
29319     PERSIST_LDFLAGS=$LDFLAGS
29320     PERSIST_CPPFLAGS=$CPPFLAGS
29321     xml2_config=''
29322     for ac_prog in xml2-config
29323 do
29324   # Extract the first word of "$ac_prog", so it can be a program name with args.
29325 set dummy $ac_prog; ac_word=$2
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29327 $as_echo_n "checking for $ac_word... " >&6; }
29328 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29329   $as_echo_n "(cached) " >&6
29330 else
29331   if test -n "$xml2_config"; then
29332   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29333 else
29334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29335 for as_dir in $PATH
29336 do
29337   IFS=$as_save_IFS
29338   test -z "$as_dir" && as_dir=.
29339     for ac_exec_ext in '' $ac_executable_extensions; do
29340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29341     ac_cv_prog_xml2_config="$ac_prog"
29342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29343     break 2
29344   fi
29345 done
29346   done
29347 IFS=$as_save_IFS
29348
29349 fi
29350 fi
29351 xml2_config=$ac_cv_prog_xml2_config
29352 if test -n "$xml2_config"; then
29353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29354 $as_echo "$xml2_config" >&6; }
29355 else
29356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29357 $as_echo "no" >&6; }
29358 fi
29359
29360
29361   test -n "$xml2_config" && break
29362 done
29363     if test -n "$xml2_config"; then
29364         # Debian installs libxml headers under /usr/include/libxml2/libxml with
29365         # the shared library installed under /usr/lib, whereas the package
29366         # installs itself under $prefix/libxml and $prefix/lib.
29367         xml2_prefix=`xml2-config --prefix`
29368         if test -d "${xml2_prefix}/include/libxml2"; then
29369             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29370         fi
29371         if test "${xml2_prefix}" != '/usr'; then
29372             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29373         fi
29374     fi
29375     failed=0
29376     passed=0
29377     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29378 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29379   passed=`expr $passed + 1`
29380 else
29381   failed=`expr $failed + 1`
29382 fi
29383
29384
29385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29386 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29387 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29388   $as_echo_n "(cached) " >&6
29389 else
29390   ac_check_lib_save_LIBS=$LIBS
29391 LIBS="-lxml2  $LIBS"
29392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29393 /* end confdefs.h.  */
29394
29395 /* Override any GCC internal prototype to avoid an error.
29396    Use char because int might match the return type of a GCC
29397    builtin and then its argument prototype would still apply.  */
29398 #ifdef __cplusplus
29399 extern "C"
29400 #endif
29401 char xmlParseExternalEntity ();
29402 int
29403 main ()
29404 {
29405 return xmlParseExternalEntity ();
29406   ;
29407   return 0;
29408 }
29409 _ACEOF
29410 if ac_fn_c_try_link "$LINENO"; then :
29411   ac_cv_lib_xml2_xmlParseExternalEntity=yes
29412 else
29413   ac_cv_lib_xml2_xmlParseExternalEntity=no
29414 fi
29415 rm -f core conftest.err conftest.$ac_objext \
29416     conftest$ac_exeext conftest.$ac_ext
29417 LIBS=$ac_check_lib_save_LIBS
29418 fi
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29420 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29421 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29422   passed=`expr $passed + 1`
29423 else
29424   failed=`expr $failed + 1`
29425 fi
29426
29427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29428 $as_echo_n "checking if XML package is complete... " >&6; }
29429     if test $passed -gt 0; then
29430         if test $failed -gt 0; then
29431             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29432 $as_echo "no -- some components failed test" >&6; }
29433             have_xml='no (failed tests)'
29434             LDFLAGS="$PERSIST_LDFLAGS"
29435             CPPFLAGS="$PERSIST_CPPFLAGS"
29436         else
29437             XML_LIBS='-lxml2'
29438             LIBS="$XML_LIBS $LIBS"
29439
29440 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29441
29442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29443 $as_echo "yes" >&6; }
29444             have_xml='yes'
29445         fi
29446     else
29447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29448 $as_echo "no" >&6; }
29449     fi
29450 fi
29451  if test "$have_xml" = 'yes'; then
29452   XML_DELEGATE_TRUE=
29453   XML_DELEGATE_FALSE='#'
29454 else
29455   XML_DELEGATE_TRUE='#'
29456   XML_DELEGATE_FALSE=
29457 fi
29458
29459
29460
29461
29462 # Substitute compiler name to build/link PerlMagick
29463 #
29464
29465
29466 #
29467 # Configure install Paths
29468 #
29469
29470 # Subdirectory under lib to place ImageMagick lib files
29471 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29472
29473 cat >>confdefs.h <<_ACEOF
29474 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29475 _ACEOF
29476
29477
29478 # Path to ImageMagick bin directory
29479 EXECUTABLE_PATH="${BIN_DIR}"
29480 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29481 case "${build_os}" in
29482   mingw* )
29483     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29484     ;;
29485 esac
29486
29487 cat >>confdefs.h <<_ACEOF
29488 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29489 _ACEOF
29490
29491
29492
29493 # Path to ImageMagick lib
29494 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29495 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29496 case "${build_os}" in
29497   mingw* )
29498     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29499     ;;
29500 esac
29501
29502 cat >>confdefs.h <<_ACEOF
29503 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29504 _ACEOF
29505
29506
29507
29508 # Subdirectory under lib to place ImageMagick configuration files
29509 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29510
29511 cat >>confdefs.h <<_ACEOF
29512 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29513 _ACEOF
29514
29515 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29516 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29517 case "${build_os}" in
29518   mingw* )
29519     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29520     ;;
29521 esac
29522
29523 cat >>confdefs.h <<_ACEOF
29524 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29525 _ACEOF
29526
29527
29528
29529 #
29530 # Subdirectory under lib to place ImageMagick coder module files
29531 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29532
29533 cat >>confdefs.h <<_ACEOF
29534 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29535 _ACEOF
29536
29537 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29538 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29539 case "${build_os}" in
29540   mingw* )
29541     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29542     ;;
29543 esac
29544
29545 cat >>confdefs.h <<_ACEOF
29546 #define CODER_PATH "$DEFINE_CODER_PATH"
29547 _ACEOF
29548
29549
29550
29551 #
29552 # Subdirectory under lib to place ImageMagick filter module files
29553 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29554
29555 cat >>confdefs.h <<_ACEOF
29556 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29557 _ACEOF
29558
29559 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29560 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29561 case "${build_os}" in
29562   mingw* )
29563     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29564     ;;
29565 esac
29566
29567 cat >>confdefs.h <<_ACEOF
29568 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29569 _ACEOF
29570
29571
29572
29573 #
29574 # Path to ImageMagick documentation files
29575 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29576 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29577 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29578 case "${build_os}" in
29579   mingw* )
29580     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29581     ;;
29582 esac
29583
29584 cat >>confdefs.h <<_ACEOF
29585 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29586 _ACEOF
29587
29588
29589
29590 #
29591 # Path to ImageMagick share files
29592 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29593 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29594 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29595 case "${build_os}" in
29596   mingw* )
29597     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29598     ;;
29599 esac
29600
29601 cat >>confdefs.h <<_ACEOF
29602 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29603 _ACEOF
29604
29605
29606
29607 # Subdirectory under share to place ImageMagick configuration files
29608 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29609
29610 cat >>confdefs.h <<_ACEOF
29611 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29612 _ACEOF
29613
29614 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29615 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29616 case "${build_os}" in
29617   mingw* )
29618     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29619     ;;
29620 esac
29621
29622 cat >>confdefs.h <<_ACEOF
29623 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29624 _ACEOF
29625
29626
29627
29628 #
29629 # program_transform_name is formed for use in a Makefile, so create a
29630 # modified version for use in a shell script.
29631 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29632
29633 # Default delegate definitions
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29635 $as_echo "-------------------------------------------------------------" >&6; }
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29637 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29639 $as_echo "" >&6; }
29640 AutotraceDecodeDelegateDefault='autotrace'
29641 AVIDecodeDelegateDefault='mplayer'
29642 BlenderDecodeDelegateDefault='blender'
29643 BZIPDelegateDefault='bzip2'
29644 BrowseDelegateDefault='xdg-open'
29645 CGMDecodeDelegateDefault='ralcgm'
29646 CatDelegateDefault='cat'
29647 DNGDecodeDelegateDefault='ufraw-batch'
29648 GVCDecodeDelegateDefault='dot'
29649 DVIDecodeDelegateDefault='dvips'
29650 EchoDelegateDefault='echo'
29651 EditorDelegateDefault='xterm'
29652 FIGDecodeDelegateDefault='fig2dev'
29653 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29654 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29655 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29656 GnuplotDecodeDelegateDefault='gnuplot'
29657 HDRDecodeDelegateDefault='ra_pfm'
29658 HPGLDecodeDelegateDefault='hp2xx'
29659 HTMLDecodeDelegateDefault='html2ps'
29660 ILBMDecodeDelegateDefault='ilbmtoppm'
29661 ILBMEncodeDelegateDefault='ppmtoilbm'
29662 LPDelegateDefault='lp'
29663 LPRDelegateDefault='lpr'
29664 LZWDecodeDelegateDefault='uncompress'
29665 LZWEncodeDelegateDefault='compress'
29666 LaunchDelegateDefault='gimp'
29667 MANDelegateDefault='groff'
29668 MPEGDecodeDelegateDefault='ffmpeg'
29669 MPEGEncodeDelegateDefault='ffmpeg'
29670 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29671 MVDelegateDefault='mv'
29672 PCLDelegateDefault='pcl6'
29673 PGPDecodeDelegateDefault='pgpv'
29674 POVDelegateDefault='povray'
29675 if test "$native_win32_build" = 'yes'; then
29676     PSDelegateDefault='gswin32c'
29677 elif test "$gslib_framework" = 'yes'; then
29678     PSDelegateDefault='gsc'
29679 else
29680     PSDelegateDefault='gs'
29681 fi
29682 RLEEncodeDelegateDefault='rawtorle'
29683 RMDelegateDefault='rm'
29684 RSVGDecodeDelegateDefault='rsvg'
29685 SCANDecodeDelegateDefault='scanimage'
29686 TXTDelegateDefault='enscript'
29687 WMFDecodeDelegateDefault='wmf2eps'
29688 WWWDecodeDelegateDefault='curl'
29689 XPSDelegateDefault='gxps'
29690 ZipDelegateDefault='gzip'
29691
29692 # Search for delegates
29693 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29694 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29696 $as_echo_n "checking for $ac_word... " >&6; }
29697 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29698   $as_echo_n "(cached) " >&6
29699 else
29700   case $AutotraceDecodeDelegate in
29701   [\\/]* | ?:[\\/]*)
29702   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29703   ;;
29704   *)
29705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29706 for as_dir in $PATH
29707 do
29708   IFS=$as_save_IFS
29709   test -z "$as_dir" && as_dir=.
29710     for ac_exec_ext in '' $ac_executable_extensions; do
29711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29712     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29714     break 2
29715   fi
29716 done
29717   done
29718 IFS=$as_save_IFS
29719
29720   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29721   ;;
29722 esac
29723 fi
29724 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29725 if test -n "$AutotraceDecodeDelegate"; then
29726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29727 $as_echo "$AutotraceDecodeDelegate" >&6; }
29728 else
29729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730 $as_echo "no" >&6; }
29731 fi
29732
29733
29734 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29735 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29737 $as_echo_n "checking for $ac_word... " >&6; }
29738 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29739   $as_echo_n "(cached) " >&6
29740 else
29741   case $AVIDecodeDelegate in
29742   [\\/]* | ?:[\\/]*)
29743   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29744   ;;
29745   *)
29746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29747 for as_dir in $PATH
29748 do
29749   IFS=$as_save_IFS
29750   test -z "$as_dir" && as_dir=.
29751     for ac_exec_ext in '' $ac_executable_extensions; do
29752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29753     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29755     break 2
29756   fi
29757 done
29758   done
29759 IFS=$as_save_IFS
29760
29761   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29762   ;;
29763 esac
29764 fi
29765 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29766 if test -n "$AVIDecodeDelegate"; then
29767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29768 $as_echo "$AVIDecodeDelegate" >&6; }
29769 else
29770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29771 $as_echo "no" >&6; }
29772 fi
29773
29774
29775 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29776 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29778 $as_echo_n "checking for $ac_word... " >&6; }
29779 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29780   $as_echo_n "(cached) " >&6
29781 else
29782   case $BlenderDecodeDelegate in
29783   [\\/]* | ?:[\\/]*)
29784   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29785   ;;
29786   *)
29787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29788 for as_dir in $PATH
29789 do
29790   IFS=$as_save_IFS
29791   test -z "$as_dir" && as_dir=.
29792     for ac_exec_ext in '' $ac_executable_extensions; do
29793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29794     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29796     break 2
29797   fi
29798 done
29799   done
29800 IFS=$as_save_IFS
29801
29802   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29803   ;;
29804 esac
29805 fi
29806 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29807 if test -n "$BlenderDecodeDelegate"; then
29808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29809 $as_echo "$BlenderDecodeDelegate" >&6; }
29810 else
29811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29812 $as_echo "no" >&6; }
29813 fi
29814
29815
29816 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29817 set dummy "$BZIPDelegateDefault"; ac_word=$2
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29819 $as_echo_n "checking for $ac_word... " >&6; }
29820 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29821   $as_echo_n "(cached) " >&6
29822 else
29823   case $BZIPDelegate in
29824   [\\/]* | ?:[\\/]*)
29825   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29826   ;;
29827   *)
29828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829 for as_dir in $PATH
29830 do
29831   IFS=$as_save_IFS
29832   test -z "$as_dir" && as_dir=.
29833     for ac_exec_ext in '' $ac_executable_extensions; do
29834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29835     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29837     break 2
29838   fi
29839 done
29840   done
29841 IFS=$as_save_IFS
29842
29843   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29844   ;;
29845 esac
29846 fi
29847 BZIPDelegate=$ac_cv_path_BZIPDelegate
29848 if test -n "$BZIPDelegate"; then
29849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29850 $as_echo "$BZIPDelegate" >&6; }
29851 else
29852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29853 $as_echo "no" >&6; }
29854 fi
29855
29856
29857 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29858 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29860 $as_echo_n "checking for $ac_word... " >&6; }
29861 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29862   $as_echo_n "(cached) " >&6
29863 else
29864   case $BrowseDelegate in
29865   [\\/]* | ?:[\\/]*)
29866   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29867   ;;
29868   *)
29869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29870 for as_dir in $PATH
29871 do
29872   IFS=$as_save_IFS
29873   test -z "$as_dir" && as_dir=.
29874     for ac_exec_ext in '' $ac_executable_extensions; do
29875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29876     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29878     break 2
29879   fi
29880 done
29881   done
29882 IFS=$as_save_IFS
29883
29884   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29885   ;;
29886 esac
29887 fi
29888 BrowseDelegate=$ac_cv_path_BrowseDelegate
29889 if test -n "$BrowseDelegate"; then
29890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29891 $as_echo "$BrowseDelegate" >&6; }
29892 else
29893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29895 fi
29896
29897
29898 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29899 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29901 $as_echo_n "checking for $ac_word... " >&6; }
29902 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29903   $as_echo_n "(cached) " >&6
29904 else
29905   case $CGMDecodeDelegate in
29906   [\\/]* | ?:[\\/]*)
29907   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29908   ;;
29909   *)
29910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29911 for as_dir in $PATH
29912 do
29913   IFS=$as_save_IFS
29914   test -z "$as_dir" && as_dir=.
29915     for ac_exec_ext in '' $ac_executable_extensions; do
29916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29917     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29919     break 2
29920   fi
29921 done
29922   done
29923 IFS=$as_save_IFS
29924
29925   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29926   ;;
29927 esac
29928 fi
29929 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29930 if test -n "$CGMDecodeDelegate"; then
29931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29932 $as_echo "$CGMDecodeDelegate" >&6; }
29933 else
29934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29935 $as_echo "no" >&6; }
29936 fi
29937
29938
29939 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29940 set dummy "$CatDelegateDefault"; ac_word=$2
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29942 $as_echo_n "checking for $ac_word... " >&6; }
29943 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29944   $as_echo_n "(cached) " >&6
29945 else
29946   case $CatDelegate in
29947   [\\/]* | ?:[\\/]*)
29948   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29949   ;;
29950   *)
29951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29952 for as_dir in $PATH
29953 do
29954   IFS=$as_save_IFS
29955   test -z "$as_dir" && as_dir=.
29956     for ac_exec_ext in '' $ac_executable_extensions; do
29957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29958     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29960     break 2
29961   fi
29962 done
29963   done
29964 IFS=$as_save_IFS
29965
29966   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29967   ;;
29968 esac
29969 fi
29970 CatDelegate=$ac_cv_path_CatDelegate
29971 if test -n "$CatDelegate"; then
29972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29973 $as_echo "$CatDelegate" >&6; }
29974 else
29975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29976 $as_echo "no" >&6; }
29977 fi
29978
29979
29980 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29981 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29983 $as_echo_n "checking for $ac_word... " >&6; }
29984 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29985   $as_echo_n "(cached) " >&6
29986 else
29987   case $DNGDecodeDelegate in
29988   [\\/]* | ?:[\\/]*)
29989   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29990   ;;
29991   *)
29992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29993 for as_dir in $PATH
29994 do
29995   IFS=$as_save_IFS
29996   test -z "$as_dir" && as_dir=.
29997     for ac_exec_ext in '' $ac_executable_extensions; do
29998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29999     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30001     break 2
30002   fi
30003 done
30004   done
30005 IFS=$as_save_IFS
30006
30007   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30008   ;;
30009 esac
30010 fi
30011 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30012 if test -n "$DNGDecodeDelegate"; then
30013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30014 $as_echo "$DNGDecodeDelegate" >&6; }
30015 else
30016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30017 $as_echo "no" >&6; }
30018 fi
30019
30020
30021 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30022 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30024 $as_echo_n "checking for $ac_word... " >&6; }
30025 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
30026   $as_echo_n "(cached) " >&6
30027 else
30028   case $GVCDecodeDelegate in
30029   [\\/]* | ?:[\\/]*)
30030   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30031   ;;
30032   *)
30033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30034 for as_dir in $PATH
30035 do
30036   IFS=$as_save_IFS
30037   test -z "$as_dir" && as_dir=.
30038     for ac_exec_ext in '' $ac_executable_extensions; do
30039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30040     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30042     break 2
30043   fi
30044 done
30045   done
30046 IFS=$as_save_IFS
30047
30048   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30049   ;;
30050 esac
30051 fi
30052 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30053 if test -n "$GVCDecodeDelegate"; then
30054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30055 $as_echo "$GVCDecodeDelegate" >&6; }
30056 else
30057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30058 $as_echo "no" >&6; }
30059 fi
30060
30061
30062 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30063 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30065 $as_echo_n "checking for $ac_word... " >&6; }
30066 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
30067   $as_echo_n "(cached) " >&6
30068 else
30069   case $DVIDecodeDelegate in
30070   [\\/]* | ?:[\\/]*)
30071   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30072   ;;
30073   *)
30074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30075 for as_dir in $PATH
30076 do
30077   IFS=$as_save_IFS
30078   test -z "$as_dir" && as_dir=.
30079     for ac_exec_ext in '' $ac_executable_extensions; do
30080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30081     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30083     break 2
30084   fi
30085 done
30086   done
30087 IFS=$as_save_IFS
30088
30089   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30090   ;;
30091 esac
30092 fi
30093 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30094 if test -n "$DVIDecodeDelegate"; then
30095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30096 $as_echo "$DVIDecodeDelegate" >&6; }
30097 else
30098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30099 $as_echo "no" >&6; }
30100 fi
30101
30102
30103 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30104 set dummy "$EchoDelegateDefault"; ac_word=$2
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30106 $as_echo_n "checking for $ac_word... " >&6; }
30107 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30108   $as_echo_n "(cached) " >&6
30109 else
30110   case $EchoDelegate in
30111   [\\/]* | ?:[\\/]*)
30112   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30113   ;;
30114   *)
30115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30116 for as_dir in $PATH
30117 do
30118   IFS=$as_save_IFS
30119   test -z "$as_dir" && as_dir=.
30120     for ac_exec_ext in '' $ac_executable_extensions; do
30121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30122     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30124     break 2
30125   fi
30126 done
30127   done
30128 IFS=$as_save_IFS
30129
30130   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30131   ;;
30132 esac
30133 fi
30134 EchoDelegate=$ac_cv_path_EchoDelegate
30135 if test -n "$EchoDelegate"; then
30136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30137 $as_echo "$EchoDelegate" >&6; }
30138 else
30139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30140 $as_echo "no" >&6; }
30141 fi
30142
30143
30144 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30145 set dummy "$EditorDelegateDefault"; ac_word=$2
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30147 $as_echo_n "checking for $ac_word... " >&6; }
30148 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30149   $as_echo_n "(cached) " >&6
30150 else
30151   case $EditorDelegate in
30152   [\\/]* | ?:[\\/]*)
30153   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30154   ;;
30155   *)
30156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30157 for as_dir in $PATH
30158 do
30159   IFS=$as_save_IFS
30160   test -z "$as_dir" && as_dir=.
30161     for ac_exec_ext in '' $ac_executable_extensions; do
30162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30163     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30165     break 2
30166   fi
30167 done
30168   done
30169 IFS=$as_save_IFS
30170
30171   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30172   ;;
30173 esac
30174 fi
30175 EditorDelegate=$ac_cv_path_EditorDelegate
30176 if test -n "$EditorDelegate"; then
30177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30178 $as_echo "$EditorDelegate" >&6; }
30179 else
30180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30181 $as_echo "no" >&6; }
30182 fi
30183
30184
30185 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30186 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30188 $as_echo_n "checking for $ac_word... " >&6; }
30189 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30190   $as_echo_n "(cached) " >&6
30191 else
30192   case $FIGDecodeDelegate in
30193   [\\/]* | ?:[\\/]*)
30194   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30195   ;;
30196   *)
30197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30199 do
30200   IFS=$as_save_IFS
30201   test -z "$as_dir" && as_dir=.
30202     for ac_exec_ext in '' $ac_executable_extensions; do
30203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30204     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30206     break 2
30207   fi
30208 done
30209   done
30210 IFS=$as_save_IFS
30211
30212   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30213   ;;
30214 esac
30215 fi
30216 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30217 if test -n "$FIGDecodeDelegate"; then
30218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30219 $as_echo "$FIGDecodeDelegate" >&6; }
30220 else
30221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30222 $as_echo "no" >&6; }
30223 fi
30224
30225
30226 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30227 set dummy "$ConvertDelegateDefault"; ac_word=$2
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30229 $as_echo_n "checking for $ac_word... " >&6; }
30230 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30231   $as_echo_n "(cached) " >&6
30232 else
30233   case $ConvertDelegate in
30234   [\\/]* | ?:[\\/]*)
30235   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30236   ;;
30237   *)
30238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239 for as_dir in $PATH
30240 do
30241   IFS=$as_save_IFS
30242   test -z "$as_dir" && as_dir=.
30243     for ac_exec_ext in '' $ac_executable_extensions; do
30244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30245     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30247     break 2
30248   fi
30249 done
30250   done
30251 IFS=$as_save_IFS
30252
30253   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30254   ;;
30255 esac
30256 fi
30257 ConvertDelegate=$ac_cv_path_ConvertDelegate
30258 if test -n "$ConvertDelegate"; then
30259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30260 $as_echo "$ConvertDelegate" >&6; }
30261 else
30262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30264 fi
30265
30266
30267 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30268 set dummy "$DisplayDelegateDefault"; ac_word=$2
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30270 $as_echo_n "checking for $ac_word... " >&6; }
30271 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30272   $as_echo_n "(cached) " >&6
30273 else
30274   case $DisplayDelegate in
30275   [\\/]* | ?:[\\/]*)
30276   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30277   ;;
30278   *)
30279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30280 for as_dir in $PATH
30281 do
30282   IFS=$as_save_IFS
30283   test -z "$as_dir" && as_dir=.
30284     for ac_exec_ext in '' $ac_executable_extensions; do
30285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30286     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30288     break 2
30289   fi
30290 done
30291   done
30292 IFS=$as_save_IFS
30293
30294   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30295   ;;
30296 esac
30297 fi
30298 DisplayDelegate=$ac_cv_path_DisplayDelegate
30299 if test -n "$DisplayDelegate"; then
30300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30301 $as_echo "$DisplayDelegate" >&6; }
30302 else
30303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30304 $as_echo "no" >&6; }
30305 fi
30306
30307
30308 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30309 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30311 $as_echo_n "checking for $ac_word... " >&6; }
30312 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30313   $as_echo_n "(cached) " >&6
30314 else
30315   case $MogrifyDelegate in
30316   [\\/]* | ?:[\\/]*)
30317   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30318   ;;
30319   *)
30320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30321 for as_dir in $PATH
30322 do
30323   IFS=$as_save_IFS
30324   test -z "$as_dir" && as_dir=.
30325     for ac_exec_ext in '' $ac_executable_extensions; do
30326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30327     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30329     break 2
30330   fi
30331 done
30332   done
30333 IFS=$as_save_IFS
30334
30335   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30336   ;;
30337 esac
30338 fi
30339 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30340 if test -n "$MogrifyDelegate"; then
30341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30342 $as_echo "$MogrifyDelegate" >&6; }
30343 else
30344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345 $as_echo "no" >&6; }
30346 fi
30347
30348
30349 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30350 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30352 $as_echo_n "checking for $ac_word... " >&6; }
30353 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30354   $as_echo_n "(cached) " >&6
30355 else
30356   case $GnuplotDecodeDelegate in
30357   [\\/]* | ?:[\\/]*)
30358   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30359   ;;
30360   *)
30361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30362 for as_dir in $PATH
30363 do
30364   IFS=$as_save_IFS
30365   test -z "$as_dir" && as_dir=.
30366     for ac_exec_ext in '' $ac_executable_extensions; do
30367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30368     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30370     break 2
30371   fi
30372 done
30373   done
30374 IFS=$as_save_IFS
30375
30376   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30377   ;;
30378 esac
30379 fi
30380 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30381 if test -n "$GnuplotDecodeDelegate"; then
30382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30383 $as_echo "$GnuplotDecodeDelegate" >&6; }
30384 else
30385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30387 fi
30388
30389
30390 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30391 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30393 $as_echo_n "checking for $ac_word... " >&6; }
30394 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30395   $as_echo_n "(cached) " >&6
30396 else
30397   case $HDRDecodeDelegate in
30398   [\\/]* | ?:[\\/]*)
30399   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30400   ;;
30401   *)
30402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30403 for as_dir in $PATH
30404 do
30405   IFS=$as_save_IFS
30406   test -z "$as_dir" && as_dir=.
30407     for ac_exec_ext in '' $ac_executable_extensions; do
30408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30409     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30411     break 2
30412   fi
30413 done
30414   done
30415 IFS=$as_save_IFS
30416
30417   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30418   ;;
30419 esac
30420 fi
30421 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30422 if test -n "$HDRDecodeDelegate"; then
30423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30424 $as_echo "$HDRDecodeDelegate" >&6; }
30425 else
30426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30427 $as_echo "no" >&6; }
30428 fi
30429
30430
30431 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30432 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30434 $as_echo_n "checking for $ac_word... " >&6; }
30435 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30436   $as_echo_n "(cached) " >&6
30437 else
30438   case $HPGLDecodeDelegate in
30439   [\\/]* | ?:[\\/]*)
30440   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30441   ;;
30442   *)
30443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30444 for as_dir in $PATH
30445 do
30446   IFS=$as_save_IFS
30447   test -z "$as_dir" && as_dir=.
30448     for ac_exec_ext in '' $ac_executable_extensions; do
30449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30450     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30452     break 2
30453   fi
30454 done
30455   done
30456 IFS=$as_save_IFS
30457
30458   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30459   ;;
30460 esac
30461 fi
30462 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30463 if test -n "$HPGLDecodeDelegate"; then
30464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30465 $as_echo "$HPGLDecodeDelegate" >&6; }
30466 else
30467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30468 $as_echo "no" >&6; }
30469 fi
30470
30471
30472 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30473 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30475 $as_echo_n "checking for $ac_word... " >&6; }
30476 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30477   $as_echo_n "(cached) " >&6
30478 else
30479   case $HTMLDecodeDelegate in
30480   [\\/]* | ?:[\\/]*)
30481   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30482   ;;
30483   *)
30484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30485 for as_dir in $PATH
30486 do
30487   IFS=$as_save_IFS
30488   test -z "$as_dir" && as_dir=.
30489     for ac_exec_ext in '' $ac_executable_extensions; do
30490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30491     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30493     break 2
30494   fi
30495 done
30496   done
30497 IFS=$as_save_IFS
30498
30499   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30500   ;;
30501 esac
30502 fi
30503 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30504 if test -n "$HTMLDecodeDelegate"; then
30505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30506 $as_echo "$HTMLDecodeDelegate" >&6; }
30507 else
30508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30509 $as_echo "no" >&6; }
30510 fi
30511
30512
30513 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30514 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30516 $as_echo_n "checking for $ac_word... " >&6; }
30517 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30518   $as_echo_n "(cached) " >&6
30519 else
30520   case $ILBMDecodeDelegate in
30521   [\\/]* | ?:[\\/]*)
30522   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30523   ;;
30524   *)
30525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30526 for as_dir in $PATH
30527 do
30528   IFS=$as_save_IFS
30529   test -z "$as_dir" && as_dir=.
30530     for ac_exec_ext in '' $ac_executable_extensions; do
30531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30532     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30534     break 2
30535   fi
30536 done
30537   done
30538 IFS=$as_save_IFS
30539
30540   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30541   ;;
30542 esac
30543 fi
30544 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30545 if test -n "$ILBMDecodeDelegate"; then
30546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30547 $as_echo "$ILBMDecodeDelegate" >&6; }
30548 else
30549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30550 $as_echo "no" >&6; }
30551 fi
30552
30553
30554 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30555 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30557 $as_echo_n "checking for $ac_word... " >&6; }
30558 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30559   $as_echo_n "(cached) " >&6
30560 else
30561   case $ILBMEncodeDelegate in
30562   [\\/]* | ?:[\\/]*)
30563   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30564   ;;
30565   *)
30566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30567 for as_dir in $PATH
30568 do
30569   IFS=$as_save_IFS
30570   test -z "$as_dir" && as_dir=.
30571     for ac_exec_ext in '' $ac_executable_extensions; do
30572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30573     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30575     break 2
30576   fi
30577 done
30578   done
30579 IFS=$as_save_IFS
30580
30581   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30582   ;;
30583 esac
30584 fi
30585 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30586 if test -n "$ILBMEncodeDelegate"; then
30587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30588 $as_echo "$ILBMEncodeDelegate" >&6; }
30589 else
30590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30591 $as_echo "no" >&6; }
30592 fi
30593
30594
30595 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30596 set dummy "$LPDelegateDefault"; ac_word=$2
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30598 $as_echo_n "checking for $ac_word... " >&6; }
30599 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30600   $as_echo_n "(cached) " >&6
30601 else
30602   case $LPDelegate in
30603   [\\/]* | ?:[\\/]*)
30604   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30605   ;;
30606   *)
30607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30608 for as_dir in $PATH
30609 do
30610   IFS=$as_save_IFS
30611   test -z "$as_dir" && as_dir=.
30612     for ac_exec_ext in '' $ac_executable_extensions; do
30613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30614     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30616     break 2
30617   fi
30618 done
30619   done
30620 IFS=$as_save_IFS
30621
30622   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30623   ;;
30624 esac
30625 fi
30626 LPDelegate=$ac_cv_path_LPDelegate
30627 if test -n "$LPDelegate"; then
30628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30629 $as_echo "$LPDelegate" >&6; }
30630 else
30631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30632 $as_echo "no" >&6; }
30633 fi
30634
30635
30636 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30637 set dummy "$LPRDelegateDefault"; ac_word=$2
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30639 $as_echo_n "checking for $ac_word... " >&6; }
30640 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30641   $as_echo_n "(cached) " >&6
30642 else
30643   case $LPRDelegate in
30644   [\\/]* | ?:[\\/]*)
30645   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30646   ;;
30647   *)
30648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30649 for as_dir in $PATH
30650 do
30651   IFS=$as_save_IFS
30652   test -z "$as_dir" && as_dir=.
30653     for ac_exec_ext in '' $ac_executable_extensions; do
30654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30655     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30657     break 2
30658   fi
30659 done
30660   done
30661 IFS=$as_save_IFS
30662
30663   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30664   ;;
30665 esac
30666 fi
30667 LPRDelegate=$ac_cv_path_LPRDelegate
30668 if test -n "$LPRDelegate"; then
30669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30670 $as_echo "$LPRDelegate" >&6; }
30671 else
30672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30673 $as_echo "no" >&6; }
30674 fi
30675
30676
30677 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30678 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30680 $as_echo_n "checking for $ac_word... " >&6; }
30681 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30682   $as_echo_n "(cached) " >&6
30683 else
30684   case $LZWDecodeDelegate in
30685   [\\/]* | ?:[\\/]*)
30686   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30687   ;;
30688   *)
30689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30690 for as_dir in $PATH
30691 do
30692   IFS=$as_save_IFS
30693   test -z "$as_dir" && as_dir=.
30694     for ac_exec_ext in '' $ac_executable_extensions; do
30695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30696     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30698     break 2
30699   fi
30700 done
30701   done
30702 IFS=$as_save_IFS
30703
30704   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30705   ;;
30706 esac
30707 fi
30708 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30709 if test -n "$LZWDecodeDelegate"; then
30710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30711 $as_echo "$LZWDecodeDelegate" >&6; }
30712 else
30713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30714 $as_echo "no" >&6; }
30715 fi
30716
30717
30718 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30719 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30721 $as_echo_n "checking for $ac_word... " >&6; }
30722 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30723   $as_echo_n "(cached) " >&6
30724 else
30725   case $LZWEncodeDelegate in
30726   [\\/]* | ?:[\\/]*)
30727   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30728   ;;
30729   *)
30730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30731 for as_dir in $PATH
30732 do
30733   IFS=$as_save_IFS
30734   test -z "$as_dir" && as_dir=.
30735     for ac_exec_ext in '' $ac_executable_extensions; do
30736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30737     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30739     break 2
30740   fi
30741 done
30742   done
30743 IFS=$as_save_IFS
30744
30745   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30746   ;;
30747 esac
30748 fi
30749 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30750 if test -n "$LZWEncodeDelegate"; then
30751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30752 $as_echo "$LZWEncodeDelegate" >&6; }
30753 else
30754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755 $as_echo "no" >&6; }
30756 fi
30757
30758
30759 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30760 set dummy "$LaunchDelegateDefault"; ac_word=$2
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30762 $as_echo_n "checking for $ac_word... " >&6; }
30763 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30764   $as_echo_n "(cached) " >&6
30765 else
30766   case $LaunchDelegate in
30767   [\\/]* | ?:[\\/]*)
30768   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30769   ;;
30770   *)
30771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30772 for as_dir in $PATH
30773 do
30774   IFS=$as_save_IFS
30775   test -z "$as_dir" && as_dir=.
30776     for ac_exec_ext in '' $ac_executable_extensions; do
30777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30778     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30780     break 2
30781   fi
30782 done
30783   done
30784 IFS=$as_save_IFS
30785
30786   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30787   ;;
30788 esac
30789 fi
30790 LaunchDelegate=$ac_cv_path_LaunchDelegate
30791 if test -n "$LaunchDelegate"; then
30792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30793 $as_echo "$LaunchDelegate" >&6; }
30794 else
30795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30796 $as_echo "no" >&6; }
30797 fi
30798
30799
30800 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30801 set dummy "$MANDelegateDefault"; ac_word=$2
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30803 $as_echo_n "checking for $ac_word... " >&6; }
30804 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30805   $as_echo_n "(cached) " >&6
30806 else
30807   case $MANDelegate in
30808   [\\/]* | ?:[\\/]*)
30809   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30810   ;;
30811   *)
30812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30813 for as_dir in $PATH
30814 do
30815   IFS=$as_save_IFS
30816   test -z "$as_dir" && as_dir=.
30817     for ac_exec_ext in '' $ac_executable_extensions; do
30818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30819     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30821     break 2
30822   fi
30823 done
30824   done
30825 IFS=$as_save_IFS
30826
30827   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30828   ;;
30829 esac
30830 fi
30831 MANDelegate=$ac_cv_path_MANDelegate
30832 if test -n "$MANDelegate"; then
30833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30834 $as_echo "$MANDelegate" >&6; }
30835 else
30836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30837 $as_echo "no" >&6; }
30838 fi
30839
30840
30841 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30842 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30844 $as_echo_n "checking for $ac_word... " >&6; }
30845 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30846   $as_echo_n "(cached) " >&6
30847 else
30848   case $MPEGDecodeDelegate in
30849   [\\/]* | ?:[\\/]*)
30850   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30851   ;;
30852   *)
30853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30854 for as_dir in $PATH
30855 do
30856   IFS=$as_save_IFS
30857   test -z "$as_dir" && as_dir=.
30858     for ac_exec_ext in '' $ac_executable_extensions; do
30859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30860     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30862     break 2
30863   fi
30864 done
30865   done
30866 IFS=$as_save_IFS
30867
30868   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30869   ;;
30870 esac
30871 fi
30872 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30873 if test -n "$MPEGDecodeDelegate"; then
30874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30875 $as_echo "$MPEGDecodeDelegate" >&6; }
30876 else
30877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30878 $as_echo "no" >&6; }
30879 fi
30880
30881
30882 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30883 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30885 $as_echo_n "checking for $ac_word... " >&6; }
30886 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30887   $as_echo_n "(cached) " >&6
30888 else
30889   case $MPEGEncodeDelegate in
30890   [\\/]* | ?:[\\/]*)
30891   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30892   ;;
30893   *)
30894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30895 for as_dir in $PATH
30896 do
30897   IFS=$as_save_IFS
30898   test -z "$as_dir" && as_dir=.
30899     for ac_exec_ext in '' $ac_executable_extensions; do
30900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30901     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30903     break 2
30904   fi
30905 done
30906   done
30907 IFS=$as_save_IFS
30908
30909   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30910   ;;
30911 esac
30912 fi
30913 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30914 if test -n "$MPEGEncodeDelegate"; then
30915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30916 $as_echo "$MPEGEncodeDelegate" >&6; }
30917 else
30918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30919 $as_echo "no" >&6; }
30920 fi
30921
30922
30923 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30924 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30926 $as_echo_n "checking for $ac_word... " >&6; }
30927 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30928   $as_echo_n "(cached) " >&6
30929 else
30930   case $MrSIDDecodeDelegate in
30931   [\\/]* | ?:[\\/]*)
30932   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30933   ;;
30934   *)
30935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30936 for as_dir in $PATH
30937 do
30938   IFS=$as_save_IFS
30939   test -z "$as_dir" && as_dir=.
30940     for ac_exec_ext in '' $ac_executable_extensions; do
30941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30942     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30944     break 2
30945   fi
30946 done
30947   done
30948 IFS=$as_save_IFS
30949
30950   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30951   ;;
30952 esac
30953 fi
30954 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30955 if test -n "$MrSIDDecodeDelegate"; then
30956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30957 $as_echo "$MrSIDDecodeDelegate" >&6; }
30958 else
30959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960 $as_echo "no" >&6; }
30961 fi
30962
30963
30964 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30965 set dummy "$MVDelegateDefault"; ac_word=$2
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30967 $as_echo_n "checking for $ac_word... " >&6; }
30968 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30969   $as_echo_n "(cached) " >&6
30970 else
30971   case $MVDelegate in
30972   [\\/]* | ?:[\\/]*)
30973   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30974   ;;
30975   *)
30976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30977 for as_dir in $PATH
30978 do
30979   IFS=$as_save_IFS
30980   test -z "$as_dir" && as_dir=.
30981     for ac_exec_ext in '' $ac_executable_extensions; do
30982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30983     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30985     break 2
30986   fi
30987 done
30988   done
30989 IFS=$as_save_IFS
30990
30991   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30992   ;;
30993 esac
30994 fi
30995 MVDelegate=$ac_cv_path_MVDelegate
30996 if test -n "$MVDelegate"; then
30997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30998 $as_echo "$MVDelegate" >&6; }
30999 else
31000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31001 $as_echo "no" >&6; }
31002 fi
31003
31004
31005 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31006 set dummy "$PCLDelegateDefault"; ac_word=$2
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31008 $as_echo_n "checking for $ac_word... " >&6; }
31009 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
31010   $as_echo_n "(cached) " >&6
31011 else
31012   case $PCLDelegate in
31013   [\\/]* | ?:[\\/]*)
31014   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31015   ;;
31016   *)
31017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31018 for as_dir in $PATH
31019 do
31020   IFS=$as_save_IFS
31021   test -z "$as_dir" && as_dir=.
31022     for ac_exec_ext in '' $ac_executable_extensions; do
31023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31024     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31026     break 2
31027   fi
31028 done
31029   done
31030 IFS=$as_save_IFS
31031
31032   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31033   ;;
31034 esac
31035 fi
31036 PCLDelegate=$ac_cv_path_PCLDelegate
31037 if test -n "$PCLDelegate"; then
31038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31039 $as_echo "$PCLDelegate" >&6; }
31040 else
31041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31042 $as_echo "no" >&6; }
31043 fi
31044
31045
31046 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31047 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31049 $as_echo_n "checking for $ac_word... " >&6; }
31050 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
31051   $as_echo_n "(cached) " >&6
31052 else
31053   case $PGPDecodeDelegate in
31054   [\\/]* | ?:[\\/]*)
31055   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31056   ;;
31057   *)
31058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31059 for as_dir in $PATH
31060 do
31061   IFS=$as_save_IFS
31062   test -z "$as_dir" && as_dir=.
31063     for ac_exec_ext in '' $ac_executable_extensions; do
31064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31065     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31067     break 2
31068   fi
31069 done
31070   done
31071 IFS=$as_save_IFS
31072
31073   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31074   ;;
31075 esac
31076 fi
31077 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31078 if test -n "$PGPDecodeDelegate"; then
31079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31080 $as_echo "$PGPDecodeDelegate" >&6; }
31081 else
31082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31084 fi
31085
31086
31087 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31088 set dummy "$POVDelegateDefault"; ac_word=$2
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31090 $as_echo_n "checking for $ac_word... " >&6; }
31091 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31092   $as_echo_n "(cached) " >&6
31093 else
31094   case $POVDelegate in
31095   [\\/]* | ?:[\\/]*)
31096   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31097   ;;
31098   *)
31099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100 for as_dir in $PATH
31101 do
31102   IFS=$as_save_IFS
31103   test -z "$as_dir" && as_dir=.
31104     for ac_exec_ext in '' $ac_executable_extensions; do
31105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31106     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31108     break 2
31109   fi
31110 done
31111   done
31112 IFS=$as_save_IFS
31113
31114   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31115   ;;
31116 esac
31117 fi
31118 POVDelegate=$ac_cv_path_POVDelegate
31119 if test -n "$POVDelegate"; then
31120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31121 $as_echo "$POVDelegate" >&6; }
31122 else
31123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31124 $as_echo "no" >&6; }
31125 fi
31126
31127
31128 for ac_prog in gsx gsc "$PSDelegateDefault"
31129 do
31130   # Extract the first word of "$ac_prog", so it can be a program name with args.
31131 set dummy $ac_prog; ac_word=$2
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31133 $as_echo_n "checking for $ac_word... " >&6; }
31134 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31135   $as_echo_n "(cached) " >&6
31136 else
31137   case $PSDelegate in
31138   [\\/]* | ?:[\\/]*)
31139   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31140   ;;
31141   *)
31142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31143 for as_dir in $PATH
31144 do
31145   IFS=$as_save_IFS
31146   test -z "$as_dir" && as_dir=.
31147     for ac_exec_ext in '' $ac_executable_extensions; do
31148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31149     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31151     break 2
31152   fi
31153 done
31154   done
31155 IFS=$as_save_IFS
31156
31157   ;;
31158 esac
31159 fi
31160 PSDelegate=$ac_cv_path_PSDelegate
31161 if test -n "$PSDelegate"; then
31162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31163 $as_echo "$PSDelegate" >&6; }
31164 else
31165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31166 $as_echo "no" >&6; }
31167 fi
31168
31169
31170   test -n "$PSDelegate" && break
31171 done
31172 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31173
31174 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31175 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31177 $as_echo_n "checking for $ac_word... " >&6; }
31178 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31179   $as_echo_n "(cached) " >&6
31180 else
31181   case $RLEEncodeDelegate in
31182   [\\/]* | ?:[\\/]*)
31183   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31184   ;;
31185   *)
31186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31187 for as_dir in $PATH
31188 do
31189   IFS=$as_save_IFS
31190   test -z "$as_dir" && as_dir=.
31191     for ac_exec_ext in '' $ac_executable_extensions; do
31192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31193     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31195     break 2
31196   fi
31197 done
31198   done
31199 IFS=$as_save_IFS
31200
31201   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31202   ;;
31203 esac
31204 fi
31205 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31206 if test -n "$RLEEncodeDelegate"; then
31207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31208 $as_echo "$RLEEncodeDelegate" >&6; }
31209 else
31210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31211 $as_echo "no" >&6; }
31212 fi
31213
31214
31215 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31216 set dummy "$RMDelegateDefault"; ac_word=$2
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31218 $as_echo_n "checking for $ac_word... " >&6; }
31219 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31220   $as_echo_n "(cached) " >&6
31221 else
31222   case $RMDelegate in
31223   [\\/]* | ?:[\\/]*)
31224   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31225   ;;
31226   *)
31227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31228 for as_dir in $PATH
31229 do
31230   IFS=$as_save_IFS
31231   test -z "$as_dir" && as_dir=.
31232     for ac_exec_ext in '' $ac_executable_extensions; do
31233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31234     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31236     break 2
31237   fi
31238 done
31239   done
31240 IFS=$as_save_IFS
31241
31242   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31243   ;;
31244 esac
31245 fi
31246 RMDelegate=$ac_cv_path_RMDelegate
31247 if test -n "$RMDelegate"; then
31248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31249 $as_echo "$RMDelegate" >&6; }
31250 else
31251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31252 $as_echo "no" >&6; }
31253 fi
31254
31255
31256 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31257 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31259 $as_echo_n "checking for $ac_word... " >&6; }
31260 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31261   $as_echo_n "(cached) " >&6
31262 else
31263   case $RSVGDecodeDelegate in
31264   [\\/]* | ?:[\\/]*)
31265   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31266   ;;
31267   *)
31268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31269 for as_dir in $PATH
31270 do
31271   IFS=$as_save_IFS
31272   test -z "$as_dir" && as_dir=.
31273     for ac_exec_ext in '' $ac_executable_extensions; do
31274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31275     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31277     break 2
31278   fi
31279 done
31280   done
31281 IFS=$as_save_IFS
31282
31283   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31284   ;;
31285 esac
31286 fi
31287 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31288 if test -n "$RSVGDecodeDelegate"; then
31289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31290 $as_echo "$RSVGDecodeDelegate" >&6; }
31291 else
31292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31293 $as_echo "no" >&6; }
31294 fi
31295
31296
31297 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31298 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31300 $as_echo_n "checking for $ac_word... " >&6; }
31301 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31302   $as_echo_n "(cached) " >&6
31303 else
31304   case $SCANDecodeDelegate in
31305   [\\/]* | ?:[\\/]*)
31306   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31307   ;;
31308   *)
31309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31310 for as_dir in $PATH
31311 do
31312   IFS=$as_save_IFS
31313   test -z "$as_dir" && as_dir=.
31314     for ac_exec_ext in '' $ac_executable_extensions; do
31315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31316     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31318     break 2
31319   fi
31320 done
31321   done
31322 IFS=$as_save_IFS
31323
31324   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31325   ;;
31326 esac
31327 fi
31328 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31329 if test -n "$SCANDecodeDelegate"; then
31330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31331 $as_echo "$SCANDecodeDelegate" >&6; }
31332 else
31333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31334 $as_echo "no" >&6; }
31335 fi
31336
31337
31338 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31339 set dummy "$TXTDelegateDefault"; ac_word=$2
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31341 $as_echo_n "checking for $ac_word... " >&6; }
31342 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31343   $as_echo_n "(cached) " >&6
31344 else
31345   case $TXTDelegate in
31346   [\\/]* | ?:[\\/]*)
31347   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31348   ;;
31349   *)
31350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31351 for as_dir in $PATH
31352 do
31353   IFS=$as_save_IFS
31354   test -z "$as_dir" && as_dir=.
31355     for ac_exec_ext in '' $ac_executable_extensions; do
31356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31357     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31359     break 2
31360   fi
31361 done
31362   done
31363 IFS=$as_save_IFS
31364
31365   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31366   ;;
31367 esac
31368 fi
31369 TXTDelegate=$ac_cv_path_TXTDelegate
31370 if test -n "$TXTDelegate"; then
31371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31372 $as_echo "$TXTDelegate" >&6; }
31373 else
31374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 $as_echo "no" >&6; }
31376 fi
31377
31378
31379 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31380 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31382 $as_echo_n "checking for $ac_word... " >&6; }
31383 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31384   $as_echo_n "(cached) " >&6
31385 else
31386   case $WMFDecodeDelegate in
31387   [\\/]* | ?:[\\/]*)
31388   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31389   ;;
31390   *)
31391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31392 for as_dir in $PATH
31393 do
31394   IFS=$as_save_IFS
31395   test -z "$as_dir" && as_dir=.
31396     for ac_exec_ext in '' $ac_executable_extensions; do
31397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31398     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31400     break 2
31401   fi
31402 done
31403   done
31404 IFS=$as_save_IFS
31405
31406   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31407   ;;
31408 esac
31409 fi
31410 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31411 if test -n "$WMFDecodeDelegate"; then
31412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31413 $as_echo "$WMFDecodeDelegate" >&6; }
31414 else
31415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31416 $as_echo "no" >&6; }
31417 fi
31418
31419
31420 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31421 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31423 $as_echo_n "checking for $ac_word... " >&6; }
31424 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31425   $as_echo_n "(cached) " >&6
31426 else
31427   case $WWWDecodeDelegate in
31428   [\\/]* | ?:[\\/]*)
31429   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31430   ;;
31431   *)
31432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433 for as_dir in $PATH
31434 do
31435   IFS=$as_save_IFS
31436   test -z "$as_dir" && as_dir=.
31437     for ac_exec_ext in '' $ac_executable_extensions; do
31438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31439     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31441     break 2
31442   fi
31443 done
31444   done
31445 IFS=$as_save_IFS
31446
31447   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31448   ;;
31449 esac
31450 fi
31451 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31452 if test -n "$WWWDecodeDelegate"; then
31453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31454 $as_echo "$WWWDecodeDelegate" >&6; }
31455 else
31456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31457 $as_echo "no" >&6; }
31458 fi
31459
31460
31461 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31462 set dummy "$XPSDelegateDefault"; ac_word=$2
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31464 $as_echo_n "checking for $ac_word... " >&6; }
31465 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31466   $as_echo_n "(cached) " >&6
31467 else
31468   case $XPSDelegate in
31469   [\\/]* | ?:[\\/]*)
31470   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31471   ;;
31472   *)
31473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31474 for as_dir in $PATH
31475 do
31476   IFS=$as_save_IFS
31477   test -z "$as_dir" && as_dir=.
31478     for ac_exec_ext in '' $ac_executable_extensions; do
31479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31480     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31482     break 2
31483   fi
31484 done
31485   done
31486 IFS=$as_save_IFS
31487
31488   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31489   ;;
31490 esac
31491 fi
31492 XPSDelegate=$ac_cv_path_XPSDelegate
31493 if test -n "$XPSDelegate"; then
31494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31495 $as_echo "$XPSDelegate" >&6; }
31496 else
31497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31499 fi
31500
31501
31502 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31503 set dummy "$ZipDelegateDefault"; ac_word=$2
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31505 $as_echo_n "checking for $ac_word... " >&6; }
31506 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31507   $as_echo_n "(cached) " >&6
31508 else
31509   case $ZipDelegate in
31510   [\\/]* | ?:[\\/]*)
31511   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31512   ;;
31513   *)
31514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31515 for as_dir in $PATH
31516 do
31517   IFS=$as_save_IFS
31518   test -z "$as_dir" && as_dir=.
31519     for ac_exec_ext in '' $ac_executable_extensions; do
31520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31521     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31523     break 2
31524   fi
31525 done
31526   done
31527 IFS=$as_save_IFS
31528
31529   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31530   ;;
31531 esac
31532 fi
31533 ZipDelegate=$ac_cv_path_ZipDelegate
31534 if test -n "$ZipDelegate"; then
31535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31536 $as_echo "$ZipDelegate" >&6; }
31537 else
31538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31539 $as_echo "no" >&6; }
31540 fi
31541
31542
31543
31544 # Prefer lpr to lp; lp needs options tacked on.
31545 if test "$LPRDelegate" != no; then
31546     PrintDelegate="$LPRDelegate"
31547 else
31548     PrintDelegate="$LPDelegate -c -s"
31549 fi
31550
31551
31552 # Installed ImageMagick utiltity paths
31553 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31554 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31555 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31556
31557 # Set delegate booleans
31558 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31559 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31560 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31561 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31562 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31563 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31564 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31565 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31566 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31567 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31568 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31569 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31570
31571 #
31572 # Test for font directories
31573 #
31574 type_include_files=''
31575
31576 # Dejavu fonts.
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31578 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31579 dejavu_font_dir=''
31580 if test "${with_dejavu_font_dir}" != 'default'; then
31581   dejavu_font_dir="${with_dejavu_font_dir}/"
31582 else
31583   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31584     if test -f "${font_dir}DejaVuSerif.ttf"; then
31585       dejavu_font_dir="${font_dir}"
31586       break 1
31587     fi
31588   done
31589 fi
31590 if test "${dejavu_font_dir}x" != 'x'; then
31591   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31593 $as_echo "$dejavu_font_dir" >&6; }
31594 else
31595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31596 $as_echo "not found!" >&6; };
31597 fi
31598
31599
31600 # Windows
31601 windows_font_dir=''
31602 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31603    windows_font_dir="${with_windows_font_dir}/"
31604 fi
31605 if test "${windows_font_dir}x" != 'x'; then
31606     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31607       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31608     fi
31609     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31610       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31611     fi
31612     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31613       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31614     fi
31615 fi
31616 if test "${windows_font_dir}x" != 'x'; then
31617   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31618 fi
31619
31620
31621 # Ghostscript
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31623 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31624 ghostscript_font_dir=''
31625 if test "${with_gs_font_dir}" != 'default'; then
31626   ghostscript_font_dir="${with_gs_font_dir}/"
31627 else
31628   if test "${native_win32_build}" = 'yes'; then
31629     # Native Windows Build
31630     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31631       if test -f "${font_dir}a010013l.pfb"; then
31632         ghostscript_font_dir="$font_dir"
31633         break 1
31634       fi
31635     done
31636     if test "${PSDelegate}" != 'gswin32c'; then
31637       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31638     fi
31639   else
31640     # Linux / Mac OS X / Unix Build
31641     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
31642       if test -f "${font_dir}a010013l.pfb"; then
31643         ghostscript_font_dir="${font_dir}"
31644         break 1
31645       fi
31646     done
31647     if test "${ghostscript_font_dir}x" = 'x'; then
31648       if test "$PSDelegate" != 'gs'; then
31649         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31650       fi
31651     fi
31652   fi
31653 fi
31654 if test "${ghostscript_font_dir}x" != 'x'; then
31655   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31657 $as_echo "$ghostscript_font_dir" >&6; }
31658 else
31659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31660 $as_echo "not found!" >&6; };
31661 fi
31662
31663 case "${build_os}" in
31664   mingw* )
31665     PSDelegate=`$WinPathScript "$PSDelegate" 1`
31666     ;;
31667 esac
31668
31669
31670
31671 #
31672 # Handle case where user doesn't want frozen paths
31673 #
31674 if test "$with_frozenpaths" != 'yes'; then
31675   # Re-set delegate definitions to default (no paths)
31676   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31677   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31678   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31679   BZIPDelegate="$BZIPDelegateDefault"
31680   BrowseDelegate="$BrowseDelegateDefault"
31681   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31682   CatDelegate="$CatDelegateDefault"
31683   ConvertDelegate="$ConvertDelegateDefault"
31684   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31685   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31686   EchoDelegate="$EchoDelegateDefault"
31687   EditorDelegate="$EditorDelegateDefault"
31688   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31689   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31690   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31691   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31692   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31693   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31694   LPDelegate="$LPDelegateDefault"
31695   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31696   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31697   LaunchDelegate="$LaunchDelegateDefault"
31698   MANDelegate="$MANDelegateDefault"
31699   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31700   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31701   MogrifyDelegate="$MogrifyDelegateDefault"
31702   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31703   MVDelegate="$MVDelegateDefault"
31704   PCLDelegate="$PCLDelegateDefault"
31705   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31706   POVDelegate="$POVDelegateDefault"
31707   PSDelegate="$PSDelegateDefault"
31708   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31709   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31710   RMDelegate="$RMDelegateDefault"
31711   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31712   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31713   ShowImageDelegate="$ShowImageDelegateDefault"
31714   TXTDelegate="$TXTDelegateDefault"
31715   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31716   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31717   XPSDelegate="$XPSDelegateDefault"
31718   ZipDelegate="$ZipDelegateDefault"
31719 fi
31720
31721 # Delegate substitutions
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765 #
31766 # RPM support.
31767 #
31768 RPM=''
31769 for ac_prog in gnutar gtar tar
31770 do
31771   # Extract the first word of "$ac_prog", so it can be a program name with args.
31772 set dummy $ac_prog; ac_word=$2
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31774 $as_echo_n "checking for $ac_word... " >&6; }
31775 if test "${ac_cv_prog_TAR+set}" = set; then :
31776   $as_echo_n "(cached) " >&6
31777 else
31778   if test -n "$TAR"; then
31779   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31780 else
31781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31782 for as_dir in $PATH
31783 do
31784   IFS=$as_save_IFS
31785   test -z "$as_dir" && as_dir=.
31786     for ac_exec_ext in '' $ac_executable_extensions; do
31787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31788     ac_cv_prog_TAR="$ac_prog"
31789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31790     break 2
31791   fi
31792 done
31793   done
31794 IFS=$as_save_IFS
31795
31796 fi
31797 fi
31798 TAR=$ac_cv_prog_TAR
31799 if test -n "$TAR"; then
31800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31801 $as_echo "$TAR" >&6; }
31802 else
31803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31804 $as_echo "no" >&6; }
31805 fi
31806
31807
31808   test -n "$TAR" && break
31809 done
31810
31811 for ac_prog in perl
31812 do
31813   # Extract the first word of "$ac_prog", so it can be a program name with args.
31814 set dummy $ac_prog; ac_word=$2
31815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31816 $as_echo_n "checking for $ac_word... " >&6; }
31817 if test "${ac_cv_prog_PERL+set}" = set; then :
31818   $as_echo_n "(cached) " >&6
31819 else
31820   if test -n "$PERL"; then
31821   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31822 else
31823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31824 for as_dir in $PATH
31825 do
31826   IFS=$as_save_IFS
31827   test -z "$as_dir" && as_dir=.
31828     for ac_exec_ext in '' $ac_executable_extensions; do
31829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31830     ac_cv_prog_PERL="$ac_prog"
31831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31832     break 2
31833   fi
31834 done
31835   done
31836 IFS=$as_save_IFS
31837
31838 fi
31839 fi
31840 PERL=$ac_cv_prog_PERL
31841 if test -n "$PERL"; then
31842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31843 $as_echo "$PERL" >&6; }
31844 else
31845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31846 $as_echo "no" >&6; }
31847 fi
31848
31849
31850   test -n "$PERL" && break
31851 done
31852
31853 for ac_prog in rpmbuild rpm
31854 do
31855   # Extract the first word of "$ac_prog", so it can be a program name with args.
31856 set dummy $ac_prog; ac_word=$2
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31858 $as_echo_n "checking for $ac_word... " >&6; }
31859 if test "${ac_cv_prog_RPM+set}" = set; then :
31860   $as_echo_n "(cached) " >&6
31861 else
31862   if test -n "$RPM"; then
31863   ac_cv_prog_RPM="$RPM" # Let the user override the test.
31864 else
31865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31866 for as_dir in $PATH
31867 do
31868   IFS=$as_save_IFS
31869   test -z "$as_dir" && as_dir=.
31870     for ac_exec_ext in '' $ac_executable_extensions; do
31871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31872     ac_cv_prog_RPM="$ac_prog"
31873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31874     break 2
31875   fi
31876 done
31877   done
31878 IFS=$as_save_IFS
31879
31880 fi
31881 fi
31882 RPM=$ac_cv_prog_RPM
31883 if test -n "$RPM"; then
31884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31885 $as_echo "$RPM" >&6; }
31886 else
31887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31888 $as_echo "no" >&6; }
31889 fi
31890
31891
31892   test -n "$RPM" && break
31893 done
31894
31895
31896 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31897
31898
31899 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31900
31901
31902 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31903
31904
31905 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31906
31907
31908  if test "x$RPM" != "x" ; then
31909   RPM_DELEGATE_TRUE=
31910   RPM_DELEGATE_FALSE='#'
31911 else
31912   RPM_DELEGATE_TRUE='#'
31913   RPM_DELEGATE_FALSE=
31914 fi
31915
31916
31917 #
31918 # 7ZIP support (http://p7zip.sourceforge.net/)
31919 #
31920 P7ZIP=''
31921 for ac_prog in 7za
31922 do
31923   # Extract the first word of "$ac_prog", so it can be a program name with args.
31924 set dummy $ac_prog; ac_word=$2
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31926 $as_echo_n "checking for $ac_word... " >&6; }
31927 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31928   $as_echo_n "(cached) " >&6
31929 else
31930   if test -n "$P7ZIP"; then
31931   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31932 else
31933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31934 for as_dir in $PATH
31935 do
31936   IFS=$as_save_IFS
31937   test -z "$as_dir" && as_dir=.
31938     for ac_exec_ext in '' $ac_executable_extensions; do
31939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31940     ac_cv_prog_P7ZIP="$ac_prog"
31941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31942     break 2
31943   fi
31944 done
31945   done
31946 IFS=$as_save_IFS
31947
31948 fi
31949 fi
31950 P7ZIP=$ac_cv_prog_P7ZIP
31951 if test -n "$P7ZIP"; then
31952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31953 $as_echo "$P7ZIP" >&6; }
31954 else
31955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31956 $as_echo "no" >&6; }
31957 fi
31958
31959
31960   test -n "$P7ZIP" && break
31961 done
31962
31963
31964  if test "x$P7ZIP" != "x" ; then
31965   P7ZIP_DELEGATE_TRUE=
31966   P7ZIP_DELEGATE_FALSE='#'
31967 else
31968   P7ZIP_DELEGATE_TRUE='#'
31969   P7ZIP_DELEGATE_FALSE=
31970 fi
31971
31972
31973 #
31974 # ZIP support (http://www.info-zip.org/Zip.html)
31975 #
31976 ZIP=''
31977 for ac_prog in zip
31978 do
31979   # Extract the first word of "$ac_prog", so it can be a program name with args.
31980 set dummy $ac_prog; ac_word=$2
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31982 $as_echo_n "checking for $ac_word... " >&6; }
31983 if test "${ac_cv_prog_ZIP+set}" = set; then :
31984   $as_echo_n "(cached) " >&6
31985 else
31986   if test -n "$ZIP"; then
31987   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31988 else
31989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31990 for as_dir in $PATH
31991 do
31992   IFS=$as_save_IFS
31993   test -z "$as_dir" && as_dir=.
31994     for ac_exec_ext in '' $ac_executable_extensions; do
31995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31996     ac_cv_prog_ZIP="$ac_prog"
31997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31998     break 2
31999   fi
32000 done
32001   done
32002 IFS=$as_save_IFS
32003
32004 fi
32005 fi
32006 ZIP=$ac_cv_prog_ZIP
32007 if test -n "$ZIP"; then
32008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32009 $as_echo "$ZIP" >&6; }
32010 else
32011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32012 $as_echo "no" >&6; }
32013 fi
32014
32015
32016   test -n "$ZIP" && break
32017 done
32018
32019
32020  if test "x$ZIP" != "x" ; then
32021   ZIP_DELEGATE_TRUE=
32022   ZIP_DELEGATE_FALSE='#'
32023 else
32024   ZIP_DELEGATE_TRUE='#'
32025   ZIP_DELEGATE_FALSE=
32026 fi
32027
32028
32029 #
32030 # GhostPCL related configuration.
32031 #
32032 PCLColorDevice=ppmraw
32033 PCLCMYKDevice=bmpsep8
32034 PCLMonoDevice=pbmraw
32035 if test -z "$PCLVersion"; then
32036     PCLVersion='unknown'
32037 fi
32038 if test $have_pcl = 'yes'; then
32039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32040 $as_echo "-------------------------------------------------------------" >&6; }
32041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32042 $as_echo_n "checking for PCL... " >&6; }
32043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32044 $as_echo "" >&6; }
32045     # PCLColorDevice
32046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32047 $as_echo_n "checking for pcl color device... " >&6; }
32048     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32049         :
32050     else
32051         PCLColorDevice=ppmraw
32052     fi
32053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32054 $as_echo "$PCLColorDevice" >&6; }
32055
32056     # PCLCMYKDevice
32057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32058 $as_echo_n "checking for pcl CMYK device... " >&6; }
32059     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32060         :
32061     else
32062         PCLCMYKDevice=$PCLColorDevice
32063     fi
32064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32065 $as_echo "$PCLCMYKDevice" >&6; }
32066
32067     # PCLMonoDevice
32068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32069 $as_echo_n "checking for pcl mono device... " >&6; }
32070     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32071         :
32072     else
32073         PCLMonoDevice=$PCLColorDevice
32074     fi
32075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32076 $as_echo "$PCLMonoDevice" >&6; }
32077 fi
32078
32079
32080
32081
32082
32083
32084 #
32085 # GhostXPS related configuration.
32086 #
32087 XPSColorDevice=ppmraw
32088 XPSCMYKDevice=bmpsep8
32089 XPSMonoDevice=pbmraw
32090 if test -z "$XPSVersion"; then
32091     XPSVersion='unknown'
32092 fi
32093 if test $have_xps = 'yes'; then
32094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32095 $as_echo "-------------------------------------------------------------" >&6; }
32096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32097 $as_echo_n "checking for XPS... " >&6; }
32098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32099 $as_echo "" >&6; }
32100     # XPSColorDevice
32101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32102 $as_echo_n "checking for xps color device... " >&6; }
32103     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32104         :
32105     else
32106         XPSColorDevice=ppmraw
32107     fi
32108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32109 $as_echo "$XPSColorDevice" >&6; }
32110
32111     # XPSCMYKDevice
32112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32113 $as_echo_n "checking for xps CMYK device... " >&6; }
32114     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32115         :
32116     else
32117         XPSCMYKDevice=$XPSColorDevice
32118     fi
32119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32120 $as_echo "$XPSCMYKDevice" >&6; }
32121
32122     # XPSMonoDevice
32123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32124 $as_echo_n "checking for xps mono device... " >&6; }
32125     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32126         :
32127     else
32128         XPSMonoDevice=$XPSColorDevice
32129     fi
32130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32131 $as_echo "$XPSMonoDevice" >&6; }
32132 fi
32133
32134
32135
32136
32137
32138
32139 #
32140 # Ghostscript related configuration.
32141 #
32142 if test "$have_png" = 'yes'; then
32143     GSAlphaDevice=pngalpha
32144 else
32145     GSAlphaDevice=pnmraw
32146 fi
32147 GSColorDevice=pnmraw
32148 GSCMYKDevice=pam
32149 GSMonoDevice=pbmraw
32150 GSPDFDevice=pdfwrite
32151 GSPSDevice=pswrite
32152 GSEPSDevice=epswrite
32153 GSVersion='unknown'
32154 if test $have_gs = 'yes'; then
32155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32156 $as_echo "-------------------------------------------------------------" >&6; }
32157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32158 $as_echo_n "checking for Ghostscript... " >&6; }
32159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32160 $as_echo "" >&6; }
32161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32162 $as_echo_n "checking for Ghostscript version... " >&6; }
32163     if GSVersion=`$PSDelegate --version`; then
32164         :
32165     else
32166         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32167     fi
32168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32169 $as_echo "$GSVersion" >&6; }
32170
32171     # GSAlphaDevice
32172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32173 $as_echo_n "checking for gs alpha device... " >&6; }
32174     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32175         :
32176     else
32177         GSAlphaDevice=pnmraw
32178     fi
32179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32180 $as_echo "$GSAlphaDevice" >&6; }
32181
32182     # GSColorDevice
32183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32184 $as_echo_n "checking for gs color device... " >&6; }
32185     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32186         :
32187     else
32188         GSColorDevice=pnmraw
32189     fi
32190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32191 $as_echo "$GSColorDevice" >&6; }
32192
32193     # GSCMYKDevice
32194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32195 $as_echo_n "checking for gs CMYK device... " >&6; }
32196     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32197         :
32198     else
32199         GSCMYKDevice=bmpsep8
32200     fi
32201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32202 $as_echo "$GSCMYKDevice" >&6; }
32203
32204     # GSMonoDevice
32205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32206 $as_echo_n "checking for gs mono device... " >&6; }
32207     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32208         :
32209     else
32210         GSMonoDevice=$GSColorDevice
32211     fi
32212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32213 $as_echo "$GSMonoDevice" >&6; }
32214
32215     # GSPDFDevice
32216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32217 $as_echo_n "checking for gs PDF writing device... " >&6; }
32218     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32219         :
32220     else
32221         GSPDFDevice=nodevice
32222     fi
32223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32224 $as_echo "$GSPDFDevice" >&6; }
32225
32226     # GSPSDevice
32227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32228 $as_echo_n "checking for gs PS writing device... " >&6; }
32229     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32230         :
32231     else
32232         GSPSDevice=nodevice
32233     fi
32234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32235 $as_echo "$GSPSDevice" >&6; }
32236
32237     # GSEPSDevice
32238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32239 $as_echo_n "checking for gs EPS writing device... " >&6; }
32240     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32241         :
32242     else
32243         GSEPSDevice=nodevice
32244     fi
32245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32246 $as_echo "$GSEPSDevice" >&6; }
32247 fi
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258 #
32259 # PerlMagick-related configuration
32260 #
32261
32262 # Look for PERL if PerlMagick requested
32263 # If name/path of desired PERL interpreter is specified, look for that one first
32264 have_perl='no'
32265 if test "$with_perl" != 'no'; then
32266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32267 $as_echo "-------------------------------------------------------------" >&6; }
32268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32269 $as_echo_n "checking for Perl... " >&6; }
32270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32271 $as_echo "" >&6; }
32272     if test "$with_perl" != 'yes'; then
32273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32274 $as_echo_n "checking for perl... " >&6; }
32275 if test "${ac_cv_path_PERL+set}" = set; then :
32276   $as_echo_n "(cached) " >&6
32277 else
32278   ac_cv_path_PERL="$with_perl"
32279 fi
32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32281 $as_echo "$ac_cv_path_PERL" >&6; };
32282         PERL=$ac_cv_path_PERL
32283                 have_perl="$ac_cv_path_PERL"
32284     else
32285         for ac_prog in perl perl5
32286 do
32287   # Extract the first word of "$ac_prog", so it can be a program name with args.
32288 set dummy $ac_prog; ac_word=$2
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32290 $as_echo_n "checking for $ac_word... " >&6; }
32291 if test "${ac_cv_path_PERL+set}" = set; then :
32292   $as_echo_n "(cached) " >&6
32293 else
32294   case $PERL in
32295   [\\/]* | ?:[\\/]*)
32296   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32297   ;;
32298   *)
32299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32300 for as_dir in $PATH
32301 do
32302   IFS=$as_save_IFS
32303   test -z "$as_dir" && as_dir=.
32304     for ac_exec_ext in '' $ac_executable_extensions; do
32305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32306     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32308     break 2
32309   fi
32310 done
32311   done
32312 IFS=$as_save_IFS
32313
32314   ;;
32315 esac
32316 fi
32317 PERL=$ac_cv_path_PERL
32318 if test -n "$PERL"; then
32319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32320 $as_echo "$PERL" >&6; }
32321 else
32322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32323 $as_echo "no" >&6; }
32324 fi
32325
32326
32327   test -n "$PERL" && break
32328 done
32329         if test "$ac_cv_path_PERL"; then
32330             have_perl="$ac_cv_path_PERL"
32331         fi
32332     fi
32333 fi
32334
32335 if test "$with_perl" != 'yes' ; then
32336     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32337 fi
32338
32339 PERL_SUPPORTS_DESTDIR='no'
32340
32341 with_perl_static='no'
32342 with_perl_dynamic='no'
32343 if test "$have_perl" != 'no'; then
32344     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32345         with_perl_static='yes'
32346     fi
32347     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32348         with_perl_dynamic='yes'
32349     fi
32350     # Is PERL's MakeMaker new enough to support DESTDIR?
32351
32352
32353
32354
32355     if test -n "$PERL"; then :
32356
32357         ax_perl_version="5.8.1"
32358
32359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32360 $as_echo_n "checking for perl version... " >&6; }
32361
32362         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32363
32364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32365 $as_echo "$perl_version" >&6; }
32366
32367         PERL_VERSION=$perl_version
32368
32369
32370
32371
32372
32373   # Used to indicate true or false condition
32374   ax_compare_version=false
32375
32376   # Convert the two version strings to be compared into a format that
32377   # allows a simple string comparison.  The end result is that a version
32378   # string of the form 1.12.5-r617 will be converted to the form
32379   # 0001001200050617.  In other words, each number is zero padded to four
32380   # digits, and non digits are removed.
32381
32382   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32383                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32384                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32385                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32386                      -e 's/[^0-9]//g'`
32387
32388
32389   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32390                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32391                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32392                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32393                      -e 's/[^0-9]//g'`
32394
32395
32396     ax_compare_version=`echo "x$ax_compare_version_A
32397 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32398
32399
32400
32401     if test "$ax_compare_version" = "true" ; then
32402
32403             :
32404             PERL_SUPPORTS_DESTDIR='yes'
32405
32406     else
32407             :
32408             PERL_SUPPORTS_DESTDIR='no'
32409
32410   fi
32411
32412
32413 else
32414
32415         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32416 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32417         PERL_SUPPORTS_DESTDIR='no'
32418
32419 fi
32420
32421 fi
32422  if test "$have_perl" != 'no'; then
32423   WITH_PERL_TRUE=
32424   WITH_PERL_FALSE='#'
32425 else
32426   WITH_PERL_TRUE='#'
32427   WITH_PERL_FALSE=
32428 fi
32429
32430  if test $with_perl_static = 'yes'; then
32431   WITH_PERL_STATIC_TRUE=
32432   WITH_PERL_STATIC_FALSE='#'
32433 else
32434   WITH_PERL_STATIC_TRUE='#'
32435   WITH_PERL_STATIC_FALSE=
32436 fi
32437
32438  if test $with_perl_dynamic = 'yes'; then
32439   WITH_PERL_DYNAMIC_TRUE=
32440   WITH_PERL_DYNAMIC_FALSE='#'
32441 else
32442   WITH_PERL_DYNAMIC_TRUE='#'
32443   WITH_PERL_DYNAMIC_FALSE=
32444 fi
32445
32446
32447
32448 # Determine path to pick up MagickCore library from for use with building PerlMagick
32449 MAGICKCORE_PATH="${LIB_DIR}"
32450 if test $with_perl_static = 'yes'; then
32451     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32452     libtool_objdir=$objdir
32453
32454     # Linker search path to library, followed by -lMagickCore
32455     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32456 fi
32457
32458
32459 # Create a simple string containing format names for all delegate libraries
32460 DELEGATES=''
32461 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32462 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32463 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32464 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32465 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32466 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32467 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32468 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32469 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32470 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32471 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32472 if test "$have_jpeg"       = 'yes'; then
32473   DELEGATES="$DELEGATES jpeg";
32474   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32475 fi
32476 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32477 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32478 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32479 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32480 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32481 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32482 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
32483 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32484 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32485 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32486 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32487 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32488 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32489
32490
32491
32492 #
32493 # Handle special compiler flags
32494 #
32495
32496 # Add '-p' if prof source profiling support enabled
32497 if test "$enable_prof" = 'yes'; then
32498     CFLAGS="-p $CFLAGS"
32499     CXXFLAGS="-p $CXXFLAGS"
32500     LDFLAGS="-p $LDFLAGS"
32501 fi
32502
32503 # Add '-pg' if gprof source profiling support enabled
32504 if test "$enable_gprof" = 'yes'; then
32505     CFLAGS="-pg $CFLAGS"
32506     CXXFLAGS="-pg $CXXFLAGS"
32507     LDFLAGS="-pg $LDFLAGS"
32508 fi
32509
32510 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32511 # This is a gcc-specific feature
32512 if test "$enable_gcov" = 'yes'; then
32513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32514 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32515 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32516   $as_echo_n "(cached) " >&6
32517 else
32518   ac_check_lib_save_LIBS=$LIBS
32519 LIBS="-lgcov  $LIBS"
32520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521 /* end confdefs.h.  */
32522
32523 /* Override any GCC internal prototype to avoid an error.
32524    Use char because int might match the return type of a GCC
32525    builtin and then its argument prototype would still apply.  */
32526 #ifdef __cplusplus
32527 extern "C"
32528 #endif
32529 char _gcov_init ();
32530 int
32531 main ()
32532 {
32533 return _gcov_init ();
32534   ;
32535   return 0;
32536 }
32537 _ACEOF
32538 if ac_fn_c_try_link "$LINENO"; then :
32539   ac_cv_lib_gcov__gcov_init=yes
32540 else
32541   ac_cv_lib_gcov__gcov_init=no
32542 fi
32543 rm -f core conftest.err conftest.$ac_objext \
32544     conftest$ac_exeext conftest.$ac_ext
32545 LIBS=$ac_check_lib_save_LIBS
32546 fi
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32548 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32549 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32550   cat >>confdefs.h <<_ACEOF
32551 #define HAVE_LIBGCOV 1
32552 _ACEOF
32553
32554   LIBS="-lgcov $LIBS"
32555
32556 fi
32557
32558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32559 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32560 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32561   $as_echo_n "(cached) " >&6
32562 else
32563   ac_check_lib_save_LIBS=$LIBS
32564 LIBS="-lgcov  $LIBS"
32565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32566 /* end confdefs.h.  */
32567
32568 /* Override any GCC internal prototype to avoid an error.
32569    Use char because int might match the return type of a GCC
32570    builtin and then its argument prototype would still apply.  */
32571 #ifdef __cplusplus
32572 extern "C"
32573 #endif
32574 char __gcov_init ();
32575 int
32576 main ()
32577 {
32578 return __gcov_init ();
32579   ;
32580   return 0;
32581 }
32582 _ACEOF
32583 if ac_fn_c_try_link "$LINENO"; then :
32584   ac_cv_lib_gcov___gcov_init=yes
32585 else
32586   ac_cv_lib_gcov___gcov_init=no
32587 fi
32588 rm -f core conftest.err conftest.$ac_objext \
32589     conftest$ac_exeext conftest.$ac_ext
32590 LIBS=$ac_check_lib_save_LIBS
32591 fi
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32593 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32594 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32595   cat >>confdefs.h <<_ACEOF
32596 #define HAVE_LIBGCOV 1
32597 _ACEOF
32598
32599   LIBS="-lgcov $LIBS"
32600
32601 fi
32602
32603     case "$target_os" in
32604         darwin*)
32605             OSX_GCOV_LDFLAG="-Wl,-single_module"
32606         ;;
32607         *)
32608             OSX_GCOV_LDFLAG=""
32609         ;;
32610     esac
32611
32612     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
32613     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
32614     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32615 fi
32616
32617 #
32618 # Build library dependency list for libMagickCore
32619 #
32620
32621 MAGICK_LIBLTDL='' # Libltdl for build
32622 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
32623 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
32624 if test "$with_ltdl" != 'no'
32625 then
32626   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32627     MAGICK_API_LIBLTDL='-lltdl'
32628   fi
32629   MAGICK_LIBLTDL=${LIBLTDL}
32630   MAGICK_LTDLDEPS=${LTDLDEPS}
32631 fi
32632
32633
32634
32635 if test "$with_modules" != 'no'; then
32636     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 $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
32637 else
32638     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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_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"
32639 fi
32640
32641
32642 #
32643 # Remove extraneous spaces from output variables (asthetic)
32644 #
32645 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
32646 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
32647 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
32648 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
32649
32650 CC=`echo $CC | sed -e 's/  */ /g'`
32651 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
32652 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
32653 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
32654 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32655 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
32656 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
32657 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32658 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
32659 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32660
32661 # Pass only user-provided LIBS as "global" libraries
32662 LIBS=$USER_LIBS
32663
32664 #AC_SUBST(CPPFLAGS)
32665
32666 #AC_SUBST(LDFLAGS)
32667 #AC_SUBST(X_PRE_LIBS)
32668 #AC_SUBST(X_LIBS)
32669 #AC_SUBST(X_EXTRA_LIBS)
32670
32671 MAGICK_CFLAGS=$CFLAGS
32672 MAGICK_CXXFLAGS="$CXXFLAGS"
32673 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
32674 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
32675 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32676 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32677
32678
32679
32680
32681
32682
32683
32684
32685 # Set configured scripts to executable.
32686 ac_config_commands="$ac_config_commands default"
32687
32688 ac_config_commands="$ac_config_commands MagickCore-config.in"
32689
32690 ac_config_commands="$ac_config_commands Magick-config.in"
32691
32692 ac_config_commands="$ac_config_commands MagickWand-config.in"
32693
32694 ac_config_commands="$ac_config_commands Wand-config.in"
32695
32696 ac_config_commands="$ac_config_commands Magick++-config.in"
32697
32698 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32699
32700
32701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32702 $as_echo "-------------------------------------------------------------" >&6; }
32703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32704 $as_echo "Update ImageMagick configuration" >&6; }
32705 cat >confcache <<\_ACEOF
32706 # This file is a shell script that caches the results of configure
32707 # tests run on this system so they can be shared between configure
32708 # scripts and configure runs, see configure's option --config-cache.
32709 # It is not useful on other systems.  If it contains results you don't
32710 # want to keep, you may remove or edit it.
32711 #
32712 # config.status only pays attention to the cache file if you give it
32713 # the --recheck option to rerun configure.
32714 #
32715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32717 # following values.
32718
32719 _ACEOF
32720
32721 # The following way of writing the cache mishandles newlines in values,
32722 # but we know of no workaround that is simple, portable, and efficient.
32723 # So, we kill variables containing newlines.
32724 # Ultrix sh set writes to stderr and can't be redirected directly,
32725 # and sets the high bit in the cache file unless we assign to the vars.
32726 (
32727   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32728     eval ac_val=\$$ac_var
32729     case $ac_val in #(
32730     *${as_nl}*)
32731       case $ac_var in #(
32732       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32734       esac
32735       case $ac_var in #(
32736       _ | IFS | as_nl) ;; #(
32737       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32738       *) { eval $ac_var=; unset $ac_var;} ;;
32739       esac ;;
32740     esac
32741   done
32742
32743   (set) 2>&1 |
32744     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32745     *${as_nl}ac_space=\ *)
32746       # `set' does not quote correctly, so add quotes: double-quote
32747       # substitution turns \\\\ into \\, and sed turns \\ into \.
32748       sed -n \
32749         "s/'/'\\\\''/g;
32750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32751       ;; #(
32752     *)
32753       # `set' quotes correctly as required by POSIX, so do not add quotes.
32754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32755       ;;
32756     esac |
32757     sort
32758 ) |
32759   sed '
32760      /^ac_cv_env_/b end
32761      t clear
32762      :clear
32763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32764      t end
32765      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32766      :end' >>confcache
32767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32768   if test -w "$cache_file"; then
32769     test "x$cache_file" != "x/dev/null" &&
32770       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32771 $as_echo "$as_me: updating cache $cache_file" >&6;}
32772     cat confcache >$cache_file
32773   else
32774     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32776   fi
32777 fi
32778 rm -f confcache
32779
32780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32781 # Let make expand exec_prefix.
32782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32783
32784 DEFS=-DHAVE_CONFIG_H
32785
32786 ac_libobjs=
32787 ac_ltlibobjs=
32788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32789   # 1. Remove the extension, and $U if already installed.
32790   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32791   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32792   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32793   #    will be set to the directory where LIBOBJS objects are built.
32794   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32795   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32796 done
32797 LIBOBJS=$ac_libobjs
32798
32799 LTLIBOBJS=$ac_ltlibobjs
32800
32801
32802  if test -n "$EXEEXT"; then
32803   am__EXEEXT_TRUE=
32804   am__EXEEXT_FALSE='#'
32805 else
32806   am__EXEEXT_TRUE='#'
32807   am__EXEEXT_FALSE=
32808 fi
32809
32810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32811   as_fn_error "conditional \"AMDEP\" was never defined.
32812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32813 fi
32814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32815   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32817 fi
32818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32819   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32821 fi
32822 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32823   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32825 fi
32826 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32827   as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32829 fi
32830 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32831   as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32833 fi
32834 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32835   as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32837 fi
32838 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32839   as_fn_error "conditional \"USING_CL\" was never defined.
32840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32841 fi
32842 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32843   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32845 fi
32846 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32847   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32849 fi
32850 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32851   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32853 fi
32854 LT_CONFIG_H=config/config.h
32855
32856     _ltdl_libobjs=
32857     _ltdl_ltlibobjs=
32858     if test -n "$_LT_LIBOBJS"; then
32859       # Remove the extension.
32860       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32861       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32862         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32863         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32864       done
32865     fi
32866     ltdl_LIBOBJS=$_ltdl_libobjs
32867
32868     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32869
32870
32871 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32872   as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32874 fi
32875 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32876   as_fn_error "conditional \"WITH_MODULES\" was never defined.
32877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32878 fi
32879 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32880   as_fn_error "conditional \"WITH_LTDL\" was never defined.
32881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32882 fi
32883 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32884   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32886 fi
32887
32888 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32889   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32891 fi
32892 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32893   as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32895 fi
32896 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32897   as_fn_error "conditional \"HasUMEM\" was never defined.
32898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32899 fi
32900 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32901   as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32903 fi
32904 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32905   as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32907 fi
32908 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32909   as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32911 fi
32912 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32913   as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32915 fi
32916 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32917   as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32919 fi
32920 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32921   as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32923 fi
32924 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32925   as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32927 fi
32928 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32929   as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32931 fi
32932 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32933   as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32935 fi
32936 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32937   as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32939 fi
32940 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32941   as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32943 fi
32944 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32945   as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32947 fi
32948 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32949   as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32951 fi
32952 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32953   as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32955 fi
32956 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32957   as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32959 fi
32960 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32961   as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32963 fi
32964 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32965   as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32967 fi
32968 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32969   as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32971 fi
32972 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32973   as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32975 fi
32976 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32977   as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32979 fi
32980 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32981   as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32983 fi
32984 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32985   as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32987 fi
32988 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32989   as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32991 fi
32992 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32993   as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32995 fi
32996 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32997   as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32999 fi
33000 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33001   as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33003 fi
33004 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33005   as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33007 fi
33008 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33009   as_fn_error "conditional \"WITH_PERL\" was never defined.
33010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33011 fi
33012 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33013   as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33015 fi
33016 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33017   as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33019 fi
33020
33021 : ${CONFIG_STATUS=./config.status}
33022 ac_write_fail=0
33023 ac_clean_files_save=$ac_clean_files
33024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33027 as_write_fail=0
33028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33029 #! $SHELL
33030 # Generated by $as_me.
33031 # Run this file to recreate the current configuration.
33032 # Compiler output produced by configure, useful for debugging
33033 # configure, is in config.log if it exists.
33034
33035 debug=false
33036 ac_cs_recheck=false
33037 ac_cs_silent=false
33038
33039 SHELL=\${CONFIG_SHELL-$SHELL}
33040 export SHELL
33041 _ASEOF
33042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33043 ## -------------------- ##
33044 ## M4sh Initialization. ##
33045 ## -------------------- ##
33046
33047 # Be more Bourne compatible
33048 DUALCASE=1; export DUALCASE # for MKS sh
33049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33050   emulate sh
33051   NULLCMD=:
33052   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33053   # is contrary to our usage.  Disable this feature.
33054   alias -g '${1+"$@"}'='"$@"'
33055   setopt NO_GLOB_SUBST
33056 else
33057   case `(set -o) 2>/dev/null` in #(
33058   *posix*) :
33059     set -o posix ;; #(
33060   *) :
33061      ;;
33062 esac
33063 fi
33064
33065
33066 as_nl='
33067 '
33068 export as_nl
33069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33073 # Prefer a ksh shell builtin over an external printf program on Solaris,
33074 # but without wasting forks for bash or zsh.
33075 if test -z "$BASH_VERSION$ZSH_VERSION" \
33076     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33077   as_echo='print -r --'
33078   as_echo_n='print -rn --'
33079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33080   as_echo='printf %s\n'
33081   as_echo_n='printf %s'
33082 else
33083   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33084     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33085     as_echo_n='/usr/ucb/echo -n'
33086   else
33087     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33088     as_echo_n_body='eval
33089       arg=$1;
33090       case $arg in #(
33091       *"$as_nl"*)
33092         expr "X$arg" : "X\\(.*\\)$as_nl";
33093         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33094       esac;
33095       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33096     '
33097     export as_echo_n_body
33098     as_echo_n='sh -c $as_echo_n_body as_echo'
33099   fi
33100   export as_echo_body
33101   as_echo='sh -c $as_echo_body as_echo'
33102 fi
33103
33104 # The user is always right.
33105 if test "${PATH_SEPARATOR+set}" != set; then
33106   PATH_SEPARATOR=:
33107   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33108     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33109       PATH_SEPARATOR=';'
33110   }
33111 fi
33112
33113
33114 # IFS
33115 # We need space, tab and new line, in precisely that order.  Quoting is
33116 # there to prevent editors from complaining about space-tab.
33117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33118 # splitting by setting IFS to empty value.)
33119 IFS=" ""        $as_nl"
33120
33121 # Find who we are.  Look in the path if we contain no directory separator.
33122 case $0 in #((
33123   *[\\/]* ) as_myself=$0 ;;
33124   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125 for as_dir in $PATH
33126 do
33127   IFS=$as_save_IFS
33128   test -z "$as_dir" && as_dir=.
33129     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33130   done
33131 IFS=$as_save_IFS
33132
33133      ;;
33134 esac
33135 # We did not find ourselves, most probably we were run as `sh COMMAND'
33136 # in which case we are not to be found in the path.
33137 if test "x$as_myself" = x; then
33138   as_myself=$0
33139 fi
33140 if test ! -f "$as_myself"; then
33141   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33142   exit 1
33143 fi
33144
33145 # Unset variables that we do not need and which cause bugs (e.g. in
33146 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33147 # suppresses any "Segmentation fault" message there.  '((' could
33148 # trigger a bug in pdksh 5.2.14.
33149 for as_var in BASH_ENV ENV MAIL MAILPATH
33150 do eval test x\${$as_var+set} = xset \
33151   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33152 done
33153 PS1='$ '
33154 PS2='> '
33155 PS4='+ '
33156
33157 # NLS nuisances.
33158 LC_ALL=C
33159 export LC_ALL
33160 LANGUAGE=C
33161 export LANGUAGE
33162
33163 # CDPATH.
33164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33165
33166
33167 # as_fn_error ERROR [LINENO LOG_FD]
33168 # ---------------------------------
33169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33171 # script with status $?, using 1 if that was 0.
33172 as_fn_error ()
33173 {
33174   as_status=$?; test $as_status -eq 0 && as_status=1
33175   if test "$3"; then
33176     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33177     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33178   fi
33179   $as_echo "$as_me: error: $1" >&2
33180   as_fn_exit $as_status
33181 } # as_fn_error
33182
33183
33184 # as_fn_set_status STATUS
33185 # -----------------------
33186 # Set $? to STATUS, without forking.
33187 as_fn_set_status ()
33188 {
33189   return $1
33190 } # as_fn_set_status
33191
33192 # as_fn_exit STATUS
33193 # -----------------
33194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33195 as_fn_exit ()
33196 {
33197   set +e
33198   as_fn_set_status $1
33199   exit $1
33200 } # as_fn_exit
33201
33202 # as_fn_unset VAR
33203 # ---------------
33204 # Portably unset VAR.
33205 as_fn_unset ()
33206 {
33207   { eval $1=; unset $1;}
33208 }
33209 as_unset=as_fn_unset
33210 # as_fn_append VAR VALUE
33211 # ----------------------
33212 # Append the text in VALUE to the end of the definition contained in VAR. Take
33213 # advantage of any shell optimizations that allow amortized linear growth over
33214 # repeated appends, instead of the typical quadratic growth present in naive
33215 # implementations.
33216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33217   eval 'as_fn_append ()
33218   {
33219     eval $1+=\$2
33220   }'
33221 else
33222   as_fn_append ()
33223   {
33224     eval $1=\$$1\$2
33225   }
33226 fi # as_fn_append
33227
33228 # as_fn_arith ARG...
33229 # ------------------
33230 # Perform arithmetic evaluation on the ARGs, and store the result in the
33231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33232 # must be portable across $(()) and expr.
33233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33234   eval 'as_fn_arith ()
33235   {
33236     as_val=$(( $* ))
33237   }'
33238 else
33239   as_fn_arith ()
33240   {
33241     as_val=`expr "$@" || test $? -eq 1`
33242   }
33243 fi # as_fn_arith
33244
33245
33246 if expr a : '\(a\)' >/dev/null 2>&1 &&
33247    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33248   as_expr=expr
33249 else
33250   as_expr=false
33251 fi
33252
33253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33254   as_basename=basename
33255 else
33256   as_basename=false
33257 fi
33258
33259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33260   as_dirname=dirname
33261 else
33262   as_dirname=false
33263 fi
33264
33265 as_me=`$as_basename -- "$0" ||
33266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33267          X"$0" : 'X\(//\)$' \| \
33268          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33269 $as_echo X/"$0" |
33270     sed '/^.*\/\([^/][^/]*\)\/*$/{
33271             s//\1/
33272             q
33273           }
33274           /^X\/\(\/\/\)$/{
33275             s//\1/
33276             q
33277           }
33278           /^X\/\(\/\).*/{
33279             s//\1/
33280             q
33281           }
33282           s/.*/./; q'`
33283
33284 # Avoid depending upon Character Ranges.
33285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33288 as_cr_digits='0123456789'
33289 as_cr_alnum=$as_cr_Letters$as_cr_digits
33290
33291 ECHO_C= ECHO_N= ECHO_T=
33292 case `echo -n x` in #(((((
33293 -n*)
33294   case `echo 'xy\c'` in
33295   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33296   xy)  ECHO_C='\c';;
33297   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33298        ECHO_T=' ';;
33299   esac;;
33300 *)
33301   ECHO_N='-n';;
33302 esac
33303
33304 rm -f conf$$ conf$$.exe conf$$.file
33305 if test -d conf$$.dir; then
33306   rm -f conf$$.dir/conf$$.file
33307 else
33308   rm -f conf$$.dir
33309   mkdir conf$$.dir 2>/dev/null
33310 fi
33311 if (echo >conf$$.file) 2>/dev/null; then
33312   if ln -s conf$$.file conf$$ 2>/dev/null; then
33313     as_ln_s='ln -s'
33314     # ... but there are two gotchas:
33315     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33316     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33317     # In both cases, we have to default to `cp -p'.
33318     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33319       as_ln_s='cp -p'
33320   elif ln conf$$.file conf$$ 2>/dev/null; then
33321     as_ln_s=ln
33322   else
33323     as_ln_s='cp -p'
33324   fi
33325 else
33326   as_ln_s='cp -p'
33327 fi
33328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33329 rmdir conf$$.dir 2>/dev/null
33330
33331
33332 # as_fn_mkdir_p
33333 # -------------
33334 # Create "$as_dir" as a directory, including parents if necessary.
33335 as_fn_mkdir_p ()
33336 {
33337
33338   case $as_dir in #(
33339   -*) as_dir=./$as_dir;;
33340   esac
33341   test -d "$as_dir" || eval $as_mkdir_p || {
33342     as_dirs=
33343     while :; do
33344       case $as_dir in #(
33345       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33346       *) as_qdir=$as_dir;;
33347       esac
33348       as_dirs="'$as_qdir' $as_dirs"
33349       as_dir=`$as_dirname -- "$as_dir" ||
33350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33351          X"$as_dir" : 'X\(//\)[^/]' \| \
33352          X"$as_dir" : 'X\(//\)$' \| \
33353          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33354 $as_echo X"$as_dir" |
33355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33356             s//\1/
33357             q
33358           }
33359           /^X\(\/\/\)[^/].*/{
33360             s//\1/
33361             q
33362           }
33363           /^X\(\/\/\)$/{
33364             s//\1/
33365             q
33366           }
33367           /^X\(\/\).*/{
33368             s//\1/
33369             q
33370           }
33371           s/.*/./; q'`
33372       test -d "$as_dir" && break
33373     done
33374     test -z "$as_dirs" || eval "mkdir $as_dirs"
33375   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33376
33377
33378 } # as_fn_mkdir_p
33379 if mkdir -p . 2>/dev/null; then
33380   as_mkdir_p='mkdir -p "$as_dir"'
33381 else
33382   test -d ./-p && rmdir ./-p
33383   as_mkdir_p=false
33384 fi
33385
33386 if test -x / >/dev/null 2>&1; then
33387   as_test_x='test -x'
33388 else
33389   if ls -dL / >/dev/null 2>&1; then
33390     as_ls_L_option=L
33391   else
33392     as_ls_L_option=
33393   fi
33394   as_test_x='
33395     eval sh -c '\''
33396       if test -d "$1"; then
33397         test -d "$1/.";
33398       else
33399         case $1 in #(
33400         -*)set "./$1";;
33401         esac;
33402         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33403         ???[sx]*):;;*)false;;esac;fi
33404     '\'' sh
33405   '
33406 fi
33407 as_executable_p=$as_test_x
33408
33409 # Sed expression to map a string onto a valid CPP name.
33410 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33411
33412 # Sed expression to map a string onto a valid variable name.
33413 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33414
33415
33416 exec 6>&1
33417 ## ----------------------------------- ##
33418 ## Main body of $CONFIG_STATUS script. ##
33419 ## ----------------------------------- ##
33420 _ASEOF
33421 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33422
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 # Save the log message, to keep $0 and so on meaningful, and to
33425 # report actual input values of CONFIG_FILES etc. instead of their
33426 # values after options handling.
33427 ac_log="
33428 This file was extended by ImageMagick $as_me 6.6.2, which was
33429 generated by GNU Autoconf 2.65.  Invocation command line was
33430
33431   CONFIG_FILES    = $CONFIG_FILES
33432   CONFIG_HEADERS  = $CONFIG_HEADERS
33433   CONFIG_LINKS    = $CONFIG_LINKS
33434   CONFIG_COMMANDS = $CONFIG_COMMANDS
33435   $ $0 $@
33436
33437 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33438 "
33439
33440 _ACEOF
33441
33442 case $ac_config_files in *"
33443 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33444 esac
33445
33446 case $ac_config_headers in *"
33447 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33448 esac
33449
33450
33451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33452 # Files that config.status was made for.
33453 config_files="$ac_config_files"
33454 config_headers="$ac_config_headers"
33455 config_commands="$ac_config_commands"
33456
33457 _ACEOF
33458
33459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33460 ac_cs_usage="\
33461 \`$as_me' instantiates files and other configuration actions
33462 from templates according to the current configuration.  Unless the files
33463 and actions are specified as TAGs, all are instantiated by default.
33464
33465 Usage: $0 [OPTION]... [TAG]...
33466
33467   -h, --help       print this help, then exit
33468   -V, --version    print version number and configuration settings, then exit
33469       --config     print configuration, then exit
33470   -q, --quiet, --silent
33471                    do not print progress messages
33472   -d, --debug      don't remove temporary files
33473       --recheck    update $as_me by reconfiguring in the same conditions
33474       --file=FILE[:TEMPLATE]
33475                    instantiate the configuration file FILE
33476       --header=FILE[:TEMPLATE]
33477                    instantiate the configuration header FILE
33478
33479 Configuration files:
33480 $config_files
33481
33482 Configuration headers:
33483 $config_headers
33484
33485 Configuration commands:
33486 $config_commands
33487
33488 Report bugs to <http://www.imagemagick.org>."
33489
33490 _ACEOF
33491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33493 ac_cs_version="\\
33494 ImageMagick config.status 6.6.2
33495 configured by $0, generated by GNU Autoconf 2.65,
33496   with options \\"\$ac_cs_config\\"
33497
33498 Copyright (C) 2009 Free Software Foundation, Inc.
33499 This config.status script is free software; the Free Software Foundation
33500 gives unlimited permission to copy, distribute and modify it."
33501
33502 ac_pwd='$ac_pwd'
33503 srcdir='$srcdir'
33504 INSTALL='$INSTALL'
33505 MKDIR_P='$MKDIR_P'
33506 AWK='$AWK'
33507 test -n "\$AWK" || AWK=awk
33508 _ACEOF
33509
33510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33511 # The default lists apply if the user does not specify any file.
33512 ac_need_defaults=:
33513 while test $# != 0
33514 do
33515   case $1 in
33516   --*=*)
33517     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33518     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33519     ac_shift=:
33520     ;;
33521   *)
33522     ac_option=$1
33523     ac_optarg=$2
33524     ac_shift=shift
33525     ;;
33526   esac
33527
33528   case $ac_option in
33529   # Handling of the options.
33530   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33531     ac_cs_recheck=: ;;
33532   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33533     $as_echo "$ac_cs_version"; exit ;;
33534   --config | --confi | --conf | --con | --co | --c )
33535     $as_echo "$ac_cs_config"; exit ;;
33536   --debug | --debu | --deb | --de | --d | -d )
33537     debug=: ;;
33538   --file | --fil | --fi | --f )
33539     $ac_shift
33540     case $ac_optarg in
33541     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33542     esac
33543     as_fn_append CONFIG_FILES " '$ac_optarg'"
33544     ac_need_defaults=false;;
33545   --header | --heade | --head | --hea )
33546     $ac_shift
33547     case $ac_optarg in
33548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33549     esac
33550     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33551     ac_need_defaults=false;;
33552   --he | --h)
33553     # Conflict between --help and --header
33554     as_fn_error "ambiguous option: \`$1'
33555 Try \`$0 --help' for more information.";;
33556   --help | --hel | -h )
33557     $as_echo "$ac_cs_usage"; exit ;;
33558   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33559   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33560     ac_cs_silent=: ;;
33561
33562   # This is an error.
33563   -*) as_fn_error "unrecognized option: \`$1'
33564 Try \`$0 --help' for more information." ;;
33565
33566   *) as_fn_append ac_config_targets " $1"
33567      ac_need_defaults=false ;;
33568
33569   esac
33570   shift
33571 done
33572
33573 ac_configure_extra_args=
33574
33575 if $ac_cs_silent; then
33576   exec 6>/dev/null
33577   ac_configure_extra_args="$ac_configure_extra_args --silent"
33578 fi
33579
33580 _ACEOF
33581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33582 if \$ac_cs_recheck; then
33583   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33584   shift
33585   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33586   CONFIG_SHELL='$SHELL'
33587   export CONFIG_SHELL
33588   exec "\$@"
33589 fi
33590
33591 _ACEOF
33592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33593 exec 5>>config.log
33594 {
33595   echo
33596   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33597 ## Running $as_me. ##
33598 _ASBOX
33599   $as_echo "$ac_log"
33600 } >&5
33601
33602 _ACEOF
33603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33604 #
33605 # INIT-COMMANDS
33606 #
33607 PACKAGE="$PACKAGE"
33608 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33609
33610
33611 # The HP-UX ksh and POSIX shell print the target directory to stdout
33612 # if CDPATH is set.
33613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33614
33615 sed_quote_subst='$sed_quote_subst'
33616 double_quote_subst='$double_quote_subst'
33617 delay_variable_subst='$delay_variable_subst'
33618 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33619 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33620 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33621 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33622 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33623 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33624 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33625 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33626 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33627 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33628 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33629 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33630 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33631 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33632 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33633 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33634 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33635 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33636 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33637 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33638 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33639 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33640 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33641 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33642 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33643 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33644 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33645 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33646 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33647 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33648 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33649 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33650 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33651 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33652 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33653 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33654 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33655 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33656 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33657 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33658 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33659 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33660 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33661 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33662 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33663 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33664 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33666 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33667 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33668 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33669 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33670 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33671 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33672 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33673 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33674 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33675 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33676 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33677 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33678 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33679 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33680 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33681 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33682 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33683 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33684 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33685 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33686 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33687 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33688 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33689 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33690 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33691 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33692 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33693 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33694 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33695 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33696 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33697 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33698 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33699 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33700 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33701 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33702 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33703 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33704 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33705 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33706 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33707 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33708 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33709 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33710 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33711 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33712 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33713 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33714 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33715 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33716 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33717 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33718 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33719 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33720 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33721 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33722 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33723 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33724 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33725 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33726 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33727 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33728 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33729 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33730 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33731 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33732 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33733 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33734 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33735 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33736 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33737 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33738 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33739 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33740 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33741 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33742 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33743 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33744 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33745 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33746 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33747 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33748 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33749 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33750 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33751 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33752 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33753 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33754 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33755 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33756 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33757 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33758 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33759 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33760 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33761 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33762 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33763 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33764 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33765 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33766 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33767 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33768 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33769 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33770 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33771 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33772 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33773 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33774 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33775 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33776 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33777 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33778 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33779 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33780 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33781 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33782 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33783 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33784 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33785 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33786 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33787 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33788 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33789 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33790 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33791
33792 LTCC='$LTCC'
33793 LTCFLAGS='$LTCFLAGS'
33794 compiler='$compiler_DEFAULT'
33795
33796 # Quote evaled strings.
33797 for var in SED \
33798 GREP \
33799 EGREP \
33800 FGREP \
33801 LD \
33802 NM \
33803 LN_S \
33804 lt_SP2NL \
33805 lt_NL2SP \
33806 reload_flag \
33807 deplibs_check_method \
33808 file_magic_cmd \
33809 AR \
33810 AR_FLAGS \
33811 STRIP \
33812 RANLIB \
33813 CC \
33814 CFLAGS \
33815 compiler \
33816 lt_cv_sys_global_symbol_pipe \
33817 lt_cv_sys_global_symbol_to_cdecl \
33818 lt_cv_sys_global_symbol_to_c_name_address \
33819 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33820 SHELL \
33821 ECHO \
33822 lt_prog_compiler_no_builtin_flag \
33823 lt_prog_compiler_wl \
33824 lt_prog_compiler_pic \
33825 lt_prog_compiler_static \
33826 lt_cv_prog_compiler_c_o \
33827 need_locks \
33828 DSYMUTIL \
33829 NMEDIT \
33830 LIPO \
33831 OTOOL \
33832 OTOOL64 \
33833 shrext_cmds \
33834 export_dynamic_flag_spec \
33835 whole_archive_flag_spec \
33836 compiler_needs_object \
33837 with_gnu_ld \
33838 allow_undefined_flag \
33839 no_undefined_flag \
33840 hardcode_libdir_flag_spec \
33841 hardcode_libdir_flag_spec_ld \
33842 hardcode_libdir_separator \
33843 fix_srcfile_path \
33844 exclude_expsyms \
33845 include_expsyms \
33846 file_list_spec \
33847 variables_saved_for_relink \
33848 libname_spec \
33849 library_names_spec \
33850 soname_spec \
33851 finish_eval \
33852 old_striplib \
33853 striplib \
33854 compiler_lib_search_dirs \
33855 predep_objects \
33856 postdep_objects \
33857 predeps \
33858 postdeps \
33859 compiler_lib_search_path \
33860 LD_CXX \
33861 compiler_CXX \
33862 lt_prog_compiler_no_builtin_flag_CXX \
33863 lt_prog_compiler_wl_CXX \
33864 lt_prog_compiler_pic_CXX \
33865 lt_prog_compiler_static_CXX \
33866 lt_cv_prog_compiler_c_o_CXX \
33867 export_dynamic_flag_spec_CXX \
33868 whole_archive_flag_spec_CXX \
33869 compiler_needs_object_CXX \
33870 with_gnu_ld_CXX \
33871 allow_undefined_flag_CXX \
33872 no_undefined_flag_CXX \
33873 hardcode_libdir_flag_spec_CXX \
33874 hardcode_libdir_flag_spec_ld_CXX \
33875 hardcode_libdir_separator_CXX \
33876 fix_srcfile_path_CXX \
33877 exclude_expsyms_CXX \
33878 include_expsyms_CXX \
33879 file_list_spec_CXX \
33880 compiler_lib_search_dirs_CXX \
33881 predep_objects_CXX \
33882 postdep_objects_CXX \
33883 predeps_CXX \
33884 postdeps_CXX \
33885 compiler_lib_search_path_CXX; do
33886     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33887     *[\\\\\\\`\\"\\\$]*)
33888       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33889       ;;
33890     *)
33891       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33892       ;;
33893     esac
33894 done
33895
33896 # Double-quote double-evaled strings.
33897 for var in reload_cmds \
33898 old_postinstall_cmds \
33899 old_postuninstall_cmds \
33900 old_archive_cmds \
33901 extract_expsyms_cmds \
33902 old_archive_from_new_cmds \
33903 old_archive_from_expsyms_cmds \
33904 archive_cmds \
33905 archive_expsym_cmds \
33906 module_cmds \
33907 module_expsym_cmds \
33908 export_symbols_cmds \
33909 prelink_cmds \
33910 postinstall_cmds \
33911 postuninstall_cmds \
33912 finish_cmds \
33913 sys_lib_search_path_spec \
33914 sys_lib_dlsearch_path_spec \
33915 old_archive_cmds_CXX \
33916 old_archive_from_new_cmds_CXX \
33917 old_archive_from_expsyms_cmds_CXX \
33918 archive_cmds_CXX \
33919 archive_expsym_cmds_CXX \
33920 module_cmds_CXX \
33921 module_expsym_cmds_CXX \
33922 export_symbols_cmds_CXX \
33923 prelink_cmds_CXX; do
33924     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33925     *[\\\\\\\`\\"\\\$]*)
33926       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33927       ;;
33928     *)
33929       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33930       ;;
33931     esac
33932 done
33933
33934 # Fix-up fallback echo if it was mangled by the above quoting rules.
33935 case \$lt_ECHO in
33936 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33937   ;;
33938 esac
33939
33940 ac_aux_dir='$ac_aux_dir'
33941 xsi_shell='$xsi_shell'
33942 lt_shell_append='$lt_shell_append'
33943
33944 # See if we are running on zsh, and set the options which allow our
33945 # commands through without removal of \ escapes INIT.
33946 if test -n "\${ZSH_VERSION+set}" ; then
33947    setopt NO_GLOB_SUBST
33948 fi
33949
33950
33951     PACKAGE='$PACKAGE'
33952     VERSION='$VERSION'
33953     TIMESTAMP='$TIMESTAMP'
33954     RM='$RM'
33955     ofile='$ofile'
33956
33957
33958
33959
33960
33961
33962 _ACEOF
33963
33964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33965
33966 # Handling of arguments.
33967 for ac_config_target in $ac_config_targets
33968 do
33969   case $ac_config_target in
33970     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33971     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33972     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33973     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33974     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33975     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33976     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33977     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33978     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33979     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33980     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33981     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33982     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33983     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33984     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33985     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33986     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33987     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33988     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33989     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33990     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33991     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33992     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33993     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33994     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33995     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33996     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33997     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33998     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33999     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34000     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34001     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34002     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34003     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34004     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34005     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34006     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34007     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34008     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34009     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34010     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34011     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34012     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34013     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34014     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34015     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34016     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34017     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34018     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34019     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34020
34021   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34022   esac
34023 done
34024
34025
34026 # If the user did not use the arguments to specify the items to instantiate,
34027 # then the envvar interface is used.  Set only those that are not.
34028 # We use the long form for the default assignment because of an extremely
34029 # bizarre bug on SunOS 4.1.3.
34030 if $ac_need_defaults; then
34031   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34032   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34033   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34034 fi
34035
34036 # Have a temporary directory for convenience.  Make it in the build tree
34037 # simply because there is no reason against having it here, and in addition,
34038 # creating and moving files from /tmp can sometimes cause problems.
34039 # Hook for its removal unless debugging.
34040 # Note that there is a small window in which the directory will not be cleaned:
34041 # after its creation but before its name has been assigned to `$tmp'.
34042 $debug ||
34043 {
34044   tmp=
34045   trap 'exit_status=$?
34046   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34047 ' 0
34048   trap 'as_fn_exit 1' 1 2 13 15
34049 }
34050 # Create a (secure) tmp directory for tmp files.
34051
34052 {
34053   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34054   test -n "$tmp" && test -d "$tmp"
34055 }  ||
34056 {
34057   tmp=./conf$$-$RANDOM
34058   (umask 077 && mkdir "$tmp")
34059 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34060
34061 # Set up the scripts for CONFIG_FILES section.
34062 # No need to generate them if there are no CONFIG_FILES.
34063 # This happens for instance with `./config.status config.h'.
34064 if test -n "$CONFIG_FILES"; then
34065
34066
34067 ac_cr=`echo X | tr X '\015'`
34068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34069 # But we know of no other shell where ac_cr would be empty at this
34070 # point, so we can use a bashism as a fallback.
34071 if test "x$ac_cr" = x; then
34072   eval ac_cr=\$\'\\r\'
34073 fi
34074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34076   ac_cs_awk_cr='\r'
34077 else
34078   ac_cs_awk_cr=$ac_cr
34079 fi
34080
34081 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34082 _ACEOF
34083
34084
34085 {
34086   echo "cat >conf$$subs.awk <<_ACEOF" &&
34087   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34088   echo "_ACEOF"
34089 } >conf$$subs.sh ||
34090   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34092 ac_delim='%!_!# '
34093 for ac_last_try in false false false false false :; do
34094   . ./conf$$subs.sh ||
34095     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34096
34097   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34098   if test $ac_delim_n = $ac_delim_num; then
34099     break
34100   elif $ac_last_try; then
34101     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34102   else
34103     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34104   fi
34105 done
34106 rm -f conf$$subs.sh
34107
34108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34109 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34110 _ACEOF
34111 sed -n '
34112 h
34113 s/^/S["/; s/!.*/"]=/
34114 p
34115 g
34116 s/^[^!]*!//
34117 :repl
34118 t repl
34119 s/'"$ac_delim"'$//
34120 t delim
34121 :nl
34122 h
34123 s/\(.\{148\}\)..*/\1/
34124 t more1
34125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34126 p
34127 n
34128 b repl
34129 :more1
34130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34131 p
34132 g
34133 s/.\{148\}//
34134 t nl
34135 :delim
34136 h
34137 s/\(.\{148\}\)..*/\1/
34138 t more2
34139 s/["\\]/\\&/g; s/^/"/; s/$/"/
34140 p
34141 b
34142 :more2
34143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34144 p
34145 g
34146 s/.\{148\}//
34147 t delim
34148 ' <conf$$subs.awk | sed '
34149 /^[^""]/{
34150   N
34151   s/\n//
34152 }
34153 ' >>$CONFIG_STATUS || ac_write_fail=1
34154 rm -f conf$$subs.awk
34155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34156 _ACAWK
34157 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34158   for (key in S) S_is_set[key] = 1
34159   FS = "\a"
34160
34161 }
34162 {
34163   line = $ 0
34164   nfields = split(line, field, "@")
34165   substed = 0
34166   len = length(field[1])
34167   for (i = 2; i < nfields; i++) {
34168     key = field[i]
34169     keylen = length(key)
34170     if (S_is_set[key]) {
34171       value = S[key]
34172       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34173       len += length(value) + length(field[++i])
34174       substed = 1
34175     } else
34176       len += 1 + keylen
34177   }
34178
34179   print line
34180 }
34181
34182 _ACAWK
34183 _ACEOF
34184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34186   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34187 else
34188   cat
34189 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34190   || as_fn_error "could not setup config files machinery" "$LINENO" 5
34191 _ACEOF
34192
34193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34195 # trailing colons and then remove the whole line if VPATH becomes empty
34196 # (actually we leave an empty line to preserve line numbers).
34197 if test "x$srcdir" = x.; then
34198   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34199 s/:*\$(srcdir):*/:/
34200 s/:*\${srcdir}:*/:/
34201 s/:*@srcdir@:*/:/
34202 s/^\([^=]*=[     ]*\):*/\1/
34203 s/:*$//
34204 s/^[^=]*=[       ]*$//
34205 }'
34206 fi
34207
34208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34209 fi # test -n "$CONFIG_FILES"
34210
34211 # Set up the scripts for CONFIG_HEADERS section.
34212 # No need to generate them if there are no CONFIG_HEADERS.
34213 # This happens for instance with `./config.status Makefile'.
34214 if test -n "$CONFIG_HEADERS"; then
34215 cat >"$tmp/defines.awk" <<\_ACAWK ||
34216 BEGIN {
34217 _ACEOF
34218
34219 # Transform confdefs.h into an awk script `defines.awk', embedded as
34220 # here-document in config.status, that substitutes the proper values into
34221 # config.h.in to produce config.h.
34222
34223 # Create a delimiter string that does not exist in confdefs.h, to ease
34224 # handling of long lines.
34225 ac_delim='%!_!# '
34226 for ac_last_try in false false :; do
34227   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34228   if test -z "$ac_t"; then
34229     break
34230   elif $ac_last_try; then
34231     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34232   else
34233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34234   fi
34235 done
34236
34237 # For the awk script, D is an array of macro values keyed by name,
34238 # likewise P contains macro parameters if any.  Preserve backslash
34239 # newline sequences.
34240
34241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34242 sed -n '
34243 s/.\{148\}/&'"$ac_delim"'/g
34244 t rset
34245 :rset
34246 s/^[     ]*#[    ]*define[       ][      ]*/ /
34247 t def
34248 d
34249 :def
34250 s/\\$//
34251 t bsnl
34252 s/["\\]/\\&/g
34253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34254 D["\1"]=" \3"/p
34255 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34256 d
34257 :bsnl
34258 s/["\\]/\\&/g
34259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34260 D["\1"]=" \3\\\\\\n"\\/p
34261 t cont
34262 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34263 t cont
34264 d
34265 :cont
34266 n
34267 s/.\{148\}/&'"$ac_delim"'/g
34268 t clear
34269 :clear
34270 s/\\$//
34271 t bsnlc
34272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34273 d
34274 :bsnlc
34275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34276 b cont
34277 ' <confdefs.h | sed '
34278 s/'"$ac_delim"'/"\\\
34279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34280
34281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34282   for (key in D) D_is_set[key] = 1
34283   FS = "\a"
34284 }
34285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34286   line = \$ 0
34287   split(line, arg, " ")
34288   if (arg[1] == "#") {
34289     defundef = arg[2]
34290     mac1 = arg[3]
34291   } else {
34292     defundef = substr(arg[1], 2)
34293     mac1 = arg[2]
34294   }
34295   split(mac1, mac2, "(") #)
34296   macro = mac2[1]
34297   prefix = substr(line, 1, index(line, defundef) - 1)
34298   if (D_is_set[macro]) {
34299     # Preserve the white space surrounding the "#".
34300     print prefix "define", macro P[macro] D[macro]
34301     next
34302   } else {
34303     # Replace #undef with comments.  This is necessary, for example,
34304     # in the case of _POSIX_SOURCE, which is predefined and required
34305     # on some systems where configure will not decide to define it.
34306     if (defundef == "undef") {
34307       print "/*", prefix defundef, macro, "*/"
34308       next
34309     }
34310   }
34311 }
34312 { print }
34313 _ACAWK
34314 _ACEOF
34315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34316   as_fn_error "could not setup config headers machinery" "$LINENO" 5
34317 fi # test -n "$CONFIG_HEADERS"
34318
34319
34320 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34321 shift
34322 for ac_tag
34323 do
34324   case $ac_tag in
34325   :[FHLC]) ac_mode=$ac_tag; continue;;
34326   esac
34327   case $ac_mode$ac_tag in
34328   :[FHL]*:*);;
34329   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34330   :[FH]-) ac_tag=-:-;;
34331   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34332   esac
34333   ac_save_IFS=$IFS
34334   IFS=:
34335   set x $ac_tag
34336   IFS=$ac_save_IFS
34337   shift
34338   ac_file=$1
34339   shift
34340
34341   case $ac_mode in
34342   :L) ac_source=$1;;
34343   :[FH])
34344     ac_file_inputs=
34345     for ac_f
34346     do
34347       case $ac_f in
34348       -) ac_f="$tmp/stdin";;
34349       *) # Look for the file first in the build tree, then in the source tree
34350          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34351          # because $ac_f cannot contain `:'.
34352          test -f "$ac_f" ||
34353            case $ac_f in
34354            [\\/$]*) false;;
34355            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34356            esac ||
34357            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34358       esac
34359       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34360       as_fn_append ac_file_inputs " '$ac_f'"
34361     done
34362
34363     # Let's still pretend it is `configure' which instantiates (i.e., don't
34364     # use $as_me), people would be surprised to read:
34365     #    /* config.h.  Generated by config.status.  */
34366     configure_input='Generated from '`
34367           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34368         `' by configure.'
34369     if test x"$ac_file" != x-; then
34370       configure_input="$ac_file.  $configure_input"
34371       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34372 $as_echo "$as_me: creating $ac_file" >&6;}
34373     fi
34374     # Neutralize special characters interpreted by sed in replacement strings.
34375     case $configure_input in #(
34376     *\&* | *\|* | *\\* )
34377        ac_sed_conf_input=`$as_echo "$configure_input" |
34378        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34379     *) ac_sed_conf_input=$configure_input;;
34380     esac
34381
34382     case $ac_tag in
34383     *:-:* | *:-) cat >"$tmp/stdin" \
34384       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34385     esac
34386     ;;
34387   esac
34388
34389   ac_dir=`$as_dirname -- "$ac_file" ||
34390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34391          X"$ac_file" : 'X\(//\)[^/]' \| \
34392          X"$ac_file" : 'X\(//\)$' \| \
34393          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34394 $as_echo X"$ac_file" |
34395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34396             s//\1/
34397             q
34398           }
34399           /^X\(\/\/\)[^/].*/{
34400             s//\1/
34401             q
34402           }
34403           /^X\(\/\/\)$/{
34404             s//\1/
34405             q
34406           }
34407           /^X\(\/\).*/{
34408             s//\1/
34409             q
34410           }
34411           s/.*/./; q'`
34412   as_dir="$ac_dir"; as_fn_mkdir_p
34413   ac_builddir=.
34414
34415 case "$ac_dir" in
34416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34417 *)
34418   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34419   # A ".." for each directory in $ac_dir_suffix.
34420   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34421   case $ac_top_builddir_sub in
34422   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34423   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34424   esac ;;
34425 esac
34426 ac_abs_top_builddir=$ac_pwd
34427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34428 # for backward compatibility:
34429 ac_top_builddir=$ac_top_build_prefix
34430
34431 case $srcdir in
34432   .)  # We are building in place.
34433     ac_srcdir=.
34434     ac_top_srcdir=$ac_top_builddir_sub
34435     ac_abs_top_srcdir=$ac_pwd ;;
34436   [\\/]* | ?:[\\/]* )  # Absolute name.
34437     ac_srcdir=$srcdir$ac_dir_suffix;
34438     ac_top_srcdir=$srcdir
34439     ac_abs_top_srcdir=$srcdir ;;
34440   *) # Relative name.
34441     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34442     ac_top_srcdir=$ac_top_build_prefix$srcdir
34443     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34444 esac
34445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34446
34447
34448   case $ac_mode in
34449   :F)
34450   #
34451   # CONFIG_FILE
34452   #
34453
34454   case $INSTALL in
34455   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34456   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34457   esac
34458   ac_MKDIR_P=$MKDIR_P
34459   case $MKDIR_P in
34460   [\\/$]* | ?:[\\/]* ) ;;
34461   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34462   esac
34463 _ACEOF
34464
34465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34466 # If the template does not know about datarootdir, expand it.
34467 # FIXME: This hack should be removed a few years after 2.60.
34468 ac_datarootdir_hack=; ac_datarootdir_seen=
34469 ac_sed_dataroot='
34470 /datarootdir/ {
34471   p
34472   q
34473 }
34474 /@datadir@/p
34475 /@docdir@/p
34476 /@infodir@/p
34477 /@localedir@/p
34478 /@mandir@/p'
34479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34480 *datarootdir*) ac_datarootdir_seen=yes;;
34481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34482   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34484 _ACEOF
34485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34486   ac_datarootdir_hack='
34487   s&@datadir@&$datadir&g
34488   s&@docdir@&$docdir&g
34489   s&@infodir@&$infodir&g
34490   s&@localedir@&$localedir&g
34491   s&@mandir@&$mandir&g
34492   s&\\\${datarootdir}&$datarootdir&g' ;;
34493 esac
34494 _ACEOF
34495
34496 # Neutralize VPATH when `$srcdir' = `.'.
34497 # Shell code in configure.ac might set extrasub.
34498 # FIXME: do we really want to maintain this feature?
34499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34500 ac_sed_extra="$ac_vpsub
34501 $extrasub
34502 _ACEOF
34503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34504 :t
34505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34506 s|@configure_input@|$ac_sed_conf_input|;t t
34507 s&@top_builddir@&$ac_top_builddir_sub&;t t
34508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34509 s&@srcdir@&$ac_srcdir&;t t
34510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34511 s&@top_srcdir@&$ac_top_srcdir&;t t
34512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34513 s&@builddir@&$ac_builddir&;t t
34514 s&@abs_builddir@&$ac_abs_builddir&;t t
34515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34516 s&@INSTALL@&$ac_INSTALL&;t t
34517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34518 $ac_datarootdir_hack
34519 "
34520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34521   || as_fn_error "could not create $ac_file" "$LINENO" 5
34522
34523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34524   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34525   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34526   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34527 which seems to be undefined.  Please make sure it is defined." >&5
34528 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34529 which seems to be undefined.  Please make sure it is defined." >&2;}
34530
34531   rm -f "$tmp/stdin"
34532   case $ac_file in
34533   -) cat "$tmp/out" && rm -f "$tmp/out";;
34534   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34535   esac \
34536   || as_fn_error "could not create $ac_file" "$LINENO" 5
34537  ;;
34538   :H)
34539   #
34540   # CONFIG_HEADER
34541   #
34542   if test x"$ac_file" != x-; then
34543     {
34544       $as_echo "/* $configure_input  */" \
34545       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34546     } >"$tmp/config.h" \
34547       || as_fn_error "could not create $ac_file" "$LINENO" 5
34548     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34549       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34550 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34551     else
34552       rm -f "$ac_file"
34553       mv "$tmp/config.h" "$ac_file" \
34554         || as_fn_error "could not create $ac_file" "$LINENO" 5
34555     fi
34556   else
34557     $as_echo "/* $configure_input  */" \
34558       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34559       || as_fn_error "could not create -" "$LINENO" 5
34560   fi
34561 # Compute "$ac_file"'s index in $config_headers.
34562 _am_arg="$ac_file"
34563 _am_stamp_count=1
34564 for _am_header in $config_headers :; do
34565   case $_am_header in
34566     $_am_arg | $_am_arg:* )
34567       break ;;
34568     * )
34569       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34570   esac
34571 done
34572 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34573 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34574          X"$_am_arg" : 'X\(//\)[^/]' \| \
34575          X"$_am_arg" : 'X\(//\)$' \| \
34576          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34577 $as_echo X"$_am_arg" |
34578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34579             s//\1/
34580             q
34581           }
34582           /^X\(\/\/\)[^/].*/{
34583             s//\1/
34584             q
34585           }
34586           /^X\(\/\/\)$/{
34587             s//\1/
34588             q
34589           }
34590           /^X\(\/\).*/{
34591             s//\1/
34592             q
34593           }
34594           s/.*/./; q'`/stamp-h$_am_stamp_count
34595  ;;
34596
34597   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34598 $as_echo "$as_me: executing $ac_file commands" >&6;}
34599  ;;
34600   esac
34601
34602
34603   case $ac_file$ac_mode in
34604     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34605 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34606 ac_prefix_conf_PKG=`echo MagickCore`
34607 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34608 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
34609 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34610 if test ".$ac_prefix_conf_INP" = "."; then
34611    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34612      case "$ac_file" in
34613         *.h) ac_prefix_conf_INP=$ac_file ;;
34614         *)
34615      esac
34616      test ".$ac_prefix_conf_INP" != "." && break
34617    done
34618 fi
34619 if test ".$ac_prefix_conf_INP" = "."; then
34620    case "$ac_prefix_conf_OUT" in
34621       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34622       ;;
34623       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34624       ;;
34625       *) ac_prefix_conf_INP=config.h
34626       ;;
34627    esac
34628 fi
34629 if test -z "$ac_prefix_conf_PKG" ; then
34630    as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34631 else
34632   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34633      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34634   fi fi
34635   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34636 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34637   if test -f $ac_prefix_conf_INP ; then
34638     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34639     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34640     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34641     echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34642     echo "#endif/" >>conftest.prefix
34643     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34644     echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34645     echo "#endif/" >> conftest.prefix
34646     # now executing _script on _DEF input to create _OUT output file
34647     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
34648     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34649     echo ' ' >>$tmp/pconfig.h
34650     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34651
34652     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34653     echo ' ' >>$tmp/pconfig.h
34654     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34655     echo "#endif" >>$tmp/pconfig.h
34656     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34657       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34658 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34659     else
34660       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34661 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34663          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34664          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34665 $as_echo X"$ac_prefix_conf_OUT" |
34666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34667             s//\1/
34668             q
34669           }
34670           /^X\(\/\/\)[^/].*/{
34671             s//\1/
34672             q
34673           }
34674           /^X\(\/\/\)$/{
34675             s//\1/
34676             q
34677           }
34678           /^X\(\/\).*/{
34679             s//\1/
34680             q
34681           }
34682           s/.*/./; q'`
34683       as_dir="$ac_dir"; as_fn_mkdir_p
34684       rm -f "$ac_prefix_conf_OUT"
34685       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34686     fi
34687     cp conftest.prefix _configs.sed
34688   else
34689     as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34690   fi
34691   rm -f conftest.*
34692 fi
34693  ;;
34694     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34695   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34696   # are listed without --file.  Let's play safe and only enable the eval
34697   # if we detect the quoting.
34698   case $CONFIG_FILES in
34699   *\'*) eval set x "$CONFIG_FILES" ;;
34700   *)   set x $CONFIG_FILES ;;
34701   esac
34702   shift
34703   for mf
34704   do
34705     # Strip MF so we end up with the name of the file.
34706     mf=`echo "$mf" | sed -e 's/:.*$//'`
34707     # Check whether this is an Automake generated Makefile or not.
34708     # We used to match only the files named `Makefile.in', but
34709     # some people rename them; so instead we look at the file content.
34710     # Grep'ing the first line is not enough: some people post-process
34711     # each Makefile.in and add a new line on top of each file to say so.
34712     # Grep'ing the whole file is not good either: AIX grep has a line
34713     # limit of 2048, but all sed's we know have understand at least 4000.
34714     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34715       dirpart=`$as_dirname -- "$mf" ||
34716 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34717          X"$mf" : 'X\(//\)[^/]' \| \
34718          X"$mf" : 'X\(//\)$' \| \
34719          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34720 $as_echo X"$mf" |
34721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34722             s//\1/
34723             q
34724           }
34725           /^X\(\/\/\)[^/].*/{
34726             s//\1/
34727             q
34728           }
34729           /^X\(\/\/\)$/{
34730             s//\1/
34731             q
34732           }
34733           /^X\(\/\).*/{
34734             s//\1/
34735             q
34736           }
34737           s/.*/./; q'`
34738     else
34739       continue
34740     fi
34741     # Extract the definition of DEPDIR, am__include, and am__quote
34742     # from the Makefile without running `make'.
34743     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34744     test -z "$DEPDIR" && continue
34745     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34746     test -z "am__include" && continue
34747     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34748     # When using ansi2knr, U may be empty or an underscore; expand it
34749     U=`sed -n 's/^U = //p' < "$mf"`
34750     # Find all dependency output files, they are included files with
34751     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34752     # simplest approach to changing $(DEPDIR) to its actual value in the
34753     # expansion.
34754     for file in `sed -n "
34755       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34756          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34757       # Make sure the directory exists.
34758       test -f "$dirpart/$file" && continue
34759       fdir=`$as_dirname -- "$file" ||
34760 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34761          X"$file" : 'X\(//\)[^/]' \| \
34762          X"$file" : 'X\(//\)$' \| \
34763          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34764 $as_echo X"$file" |
34765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34766             s//\1/
34767             q
34768           }
34769           /^X\(\/\/\)[^/].*/{
34770             s//\1/
34771             q
34772           }
34773           /^X\(\/\/\)$/{
34774             s//\1/
34775             q
34776           }
34777           /^X\(\/\).*/{
34778             s//\1/
34779             q
34780           }
34781           s/.*/./; q'`
34782       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34783       # echo "creating $dirpart/$file"
34784       echo '# dummy' > "$dirpart/$file"
34785     done
34786   done
34787 }
34788  ;;
34789     "libtool":C)
34790
34791     # See if we are running on zsh, and set the options which allow our
34792     # commands through without removal of \ escapes.
34793     if test -n "${ZSH_VERSION+set}" ; then
34794       setopt NO_GLOB_SUBST
34795     fi
34796
34797     cfgfile="${ofile}T"
34798     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34799     $RM "$cfgfile"
34800
34801     cat <<_LT_EOF >> "$cfgfile"
34802 #! $SHELL
34803
34804 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34805 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34806 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34807 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34808 #
34809 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34810 #                 2006, 2007, 2008 Free Software Foundation, Inc.
34811 #   Written by Gordon Matzigkeit, 1996
34812 #
34813 #   This file is part of GNU Libtool.
34814 #
34815 # GNU Libtool is free software; you can redistribute it and/or
34816 # modify it under the terms of the GNU General Public License as
34817 # published by the Free Software Foundation; either version 2 of
34818 # the License, or (at your option) any later version.
34819 #
34820 # As a special exception to the GNU General Public License,
34821 # if you distribute this file as part of a program or library that
34822 # is built using GNU Libtool, you may include this file under the
34823 # same distribution terms that you use for the rest of that program.
34824 #
34825 # GNU Libtool is distributed in the hope that it will be useful,
34826 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34828 # GNU General Public License for more details.
34829 #
34830 # You should have received a copy of the GNU General Public License
34831 # along with GNU Libtool; see the file COPYING.  If not, a copy
34832 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34833 # obtained by writing to the Free Software Foundation, Inc.,
34834 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34835
34836
34837 # The names of the tagged configurations supported by this script.
34838 available_tags="CXX "
34839
34840 # ### BEGIN LIBTOOL CONFIG
34841
34842 # A sed program that does not truncate output.
34843 SED=$lt_SED
34844
34845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34846 Xsed="\$SED -e 1s/^X//"
34847
34848 # A grep program that handles long lines.
34849 GREP=$lt_GREP
34850
34851 # An ERE matcher.
34852 EGREP=$lt_EGREP
34853
34854 # A literal string matcher.
34855 FGREP=$lt_FGREP
34856
34857 # Which release of libtool.m4 was used?
34858 macro_version=$macro_version
34859 macro_revision=$macro_revision
34860
34861 # Assembler program.
34862 AS=$AS
34863
34864 # DLL creation program.
34865 DLLTOOL=$DLLTOOL
34866
34867 # Object dumper program.
34868 OBJDUMP=$OBJDUMP
34869
34870 # Whether or not to build shared libraries.
34871 build_libtool_libs=$enable_shared
34872
34873 # Whether or not to build static libraries.
34874 build_old_libs=$enable_static
34875
34876 # What type of objects to build.
34877 pic_mode=$pic_mode
34878
34879 # Whether or not to optimize for fast installation.
34880 fast_install=$enable_fast_install
34881
34882 # The host system.
34883 host_alias=$host_alias
34884 host=$host
34885 host_os=$host_os
34886
34887 # The build system.
34888 build_alias=$build_alias
34889 build=$build
34890 build_os=$build_os
34891
34892 # A BSD- or MS-compatible name lister.
34893 NM=$lt_NM
34894
34895 # Whether we need soft or hard links.
34896 LN_S=$lt_LN_S
34897
34898 # What is the maximum length of a command?
34899 max_cmd_len=$max_cmd_len
34900
34901 # Object file suffix (normally "o").
34902 objext=$ac_objext
34903
34904 # Executable file suffix (normally "").
34905 exeext=$exeext
34906
34907 # whether the shell understands "unset".
34908 lt_unset=$lt_unset
34909
34910 # turn spaces into newlines.
34911 SP2NL=$lt_lt_SP2NL
34912
34913 # turn newlines into spaces.
34914 NL2SP=$lt_lt_NL2SP
34915
34916 # How to create reloadable object files.
34917 reload_flag=$lt_reload_flag
34918 reload_cmds=$lt_reload_cmds
34919
34920 # Method to check whether dependent libraries are shared objects.
34921 deplibs_check_method=$lt_deplibs_check_method
34922
34923 # Command to use when deplibs_check_method == "file_magic".
34924 file_magic_cmd=$lt_file_magic_cmd
34925
34926 # The archiver.
34927 AR=$lt_AR
34928 AR_FLAGS=$lt_AR_FLAGS
34929
34930 # A symbol stripping program.
34931 STRIP=$lt_STRIP
34932
34933 # Commands used to install an old-style archive.
34934 RANLIB=$lt_RANLIB
34935 old_postinstall_cmds=$lt_old_postinstall_cmds
34936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34937
34938 # A C compiler.
34939 LTCC=$lt_CC
34940
34941 # LTCC compiler flags.
34942 LTCFLAGS=$lt_CFLAGS
34943
34944 # Take the output of nm and produce a listing of raw symbols and C names.
34945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34946
34947 # Transform the output of nm in a proper C declaration.
34948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34949
34950 # Transform the output of nm in a C name address pair.
34951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34952
34953 # Transform the output of nm in a C name address pair when lib prefix is needed.
34954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34955
34956 # The name of the directory that contains temporary libtool files.
34957 objdir=$objdir
34958
34959 # Shell to use when invoking shell scripts.
34960 SHELL=$lt_SHELL
34961
34962 # An echo program that does not interpret backslashes.
34963 ECHO=$lt_ECHO
34964
34965 # Used to examine libraries when file_magic_cmd begins with "file".
34966 MAGIC_CMD=$MAGIC_CMD
34967
34968 # Must we lock files when doing compilation?
34969 need_locks=$lt_need_locks
34970
34971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34972 DSYMUTIL=$lt_DSYMUTIL
34973
34974 # Tool to change global to local symbols on Mac OS X.
34975 NMEDIT=$lt_NMEDIT
34976
34977 # Tool to manipulate fat objects and archives on Mac OS X.
34978 LIPO=$lt_LIPO
34979
34980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34981 OTOOL=$lt_OTOOL
34982
34983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34984 OTOOL64=$lt_OTOOL64
34985
34986 # Old archive suffix (normally "a").
34987 libext=$libext
34988
34989 # Shared library suffix (normally ".so").
34990 shrext_cmds=$lt_shrext_cmds
34991
34992 # The commands to extract the exported symbol list from a shared archive.
34993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34994
34995 # Variables whose values should be saved in libtool wrapper scripts and
34996 # restored at link time.
34997 variables_saved_for_relink=$lt_variables_saved_for_relink
34998
34999 # Do we need the "lib" prefix for modules?
35000 need_lib_prefix=$need_lib_prefix
35001
35002 # Do we need a version for libraries?
35003 need_version=$need_version
35004
35005 # Library versioning type.
35006 version_type=$version_type
35007
35008 # Shared library runtime path variable.
35009 runpath_var=$runpath_var
35010
35011 # Shared library path variable.
35012 shlibpath_var=$shlibpath_var
35013
35014 # Is shlibpath searched before the hard-coded library search path?
35015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35016
35017 # Format of library name prefix.
35018 libname_spec=$lt_libname_spec
35019
35020 # List of archive names.  First name is the real one, the rest are links.
35021 # The last name is the one that the linker finds with -lNAME
35022 library_names_spec=$lt_library_names_spec
35023
35024 # The coded name of the library, if different from the real name.
35025 soname_spec=$lt_soname_spec
35026
35027 # Command to use after installation of a shared archive.
35028 postinstall_cmds=$lt_postinstall_cmds
35029
35030 # Command to use after uninstallation of a shared archive.
35031 postuninstall_cmds=$lt_postuninstall_cmds
35032
35033 # Commands used to finish a libtool library installation in a directory.
35034 finish_cmds=$lt_finish_cmds
35035
35036 # As "finish_cmds", except a single script fragment to be evaled but
35037 # not shown.
35038 finish_eval=$lt_finish_eval
35039
35040 # Whether we should hardcode library paths into libraries.
35041 hardcode_into_libs=$hardcode_into_libs
35042
35043 # Compile-time system search path for libraries.
35044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35045
35046 # Run-time system search path for libraries.
35047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35048
35049 # Whether dlopen is supported.
35050 dlopen_support=$enable_dlopen
35051
35052 # Whether dlopen of programs is supported.
35053 dlopen_self=$enable_dlopen_self
35054
35055 # Whether dlopen of statically linked programs is supported.
35056 dlopen_self_static=$enable_dlopen_self_static
35057
35058 # Commands to strip libraries.
35059 old_striplib=$lt_old_striplib
35060 striplib=$lt_striplib
35061
35062
35063 # The linker used to build libraries.
35064 LD=$lt_LD
35065
35066 # Commands used to build an old-style archive.
35067 old_archive_cmds=$lt_old_archive_cmds
35068
35069 # A language specific compiler.
35070 CC=$lt_compiler
35071
35072 # Is the compiler the GNU compiler?
35073 with_gcc=$GCC
35074
35075 # Compiler flag to turn off builtin functions.
35076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35077
35078 # How to pass a linker flag through the compiler.
35079 wl=$lt_lt_prog_compiler_wl
35080
35081 # Additional compiler flags for building library objects.
35082 pic_flag=$lt_lt_prog_compiler_pic
35083
35084 # Compiler flag to prevent dynamic linking.
35085 link_static_flag=$lt_lt_prog_compiler_static
35086
35087 # Does compiler simultaneously support -c and -o options?
35088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35089
35090 # Whether or not to add -lc for building shared libraries.
35091 build_libtool_need_lc=$archive_cmds_need_lc
35092
35093 # Whether or not to disallow shared libs when runtime libs are static.
35094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35095
35096 # Compiler flag to allow reflexive dlopens.
35097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35098
35099 # Compiler flag to generate shared objects directly from archives.
35100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35101
35102 # Whether the compiler copes with passing no objects directly.
35103 compiler_needs_object=$lt_compiler_needs_object
35104
35105 # Create an old-style archive from a shared archive.
35106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35107
35108 # Create a temporary old-style archive to link instead of a shared archive.
35109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35110
35111 # Commands used to build a shared archive.
35112 archive_cmds=$lt_archive_cmds
35113 archive_expsym_cmds=$lt_archive_expsym_cmds
35114
35115 # Commands used to build a loadable module if different from building
35116 # a shared archive.
35117 module_cmds=$lt_module_cmds
35118 module_expsym_cmds=$lt_module_expsym_cmds
35119
35120 # Whether we are building with GNU ld or not.
35121 with_gnu_ld=$lt_with_gnu_ld
35122
35123 # Flag that allows shared libraries with undefined symbols to be built.
35124 allow_undefined_flag=$lt_allow_undefined_flag
35125
35126 # Flag that enforces no undefined symbols.
35127 no_undefined_flag=$lt_no_undefined_flag
35128
35129 # Flag to hardcode \$libdir into a binary during linking.
35130 # This must work even if \$libdir does not exist
35131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35132
35133 # If ld is used when linking, flag to hardcode \$libdir into a binary
35134 # during linking.  This must work even if \$libdir does not exist.
35135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35136
35137 # Whether we need a single "-rpath" flag with a separated argument.
35138 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35139
35140 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35141 # DIR into the resulting binary.
35142 hardcode_direct=$hardcode_direct
35143
35144 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35145 # DIR into the resulting binary and the resulting library dependency is
35146 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35147 # library is relocated.
35148 hardcode_direct_absolute=$hardcode_direct_absolute
35149
35150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35151 # into the resulting binary.
35152 hardcode_minus_L=$hardcode_minus_L
35153
35154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35155 # into the resulting binary.
35156 hardcode_shlibpath_var=$hardcode_shlibpath_var
35157
35158 # Set to "yes" if building a shared library automatically hardcodes DIR
35159 # into the library and all subsequent libraries and executables linked
35160 # against it.
35161 hardcode_automatic=$hardcode_automatic
35162
35163 # Set to yes if linker adds runtime paths of dependent libraries
35164 # to runtime path list.
35165 inherit_rpath=$inherit_rpath
35166
35167 # Whether libtool must link a program against all its dependency libraries.
35168 link_all_deplibs=$link_all_deplibs
35169
35170 # Fix the shell variable \$srcfile for the compiler.
35171 fix_srcfile_path=$lt_fix_srcfile_path
35172
35173 # Set to "yes" if exported symbols are required.
35174 always_export_symbols=$always_export_symbols
35175
35176 # The commands to list exported symbols.
35177 export_symbols_cmds=$lt_export_symbols_cmds
35178
35179 # Symbols that should not be listed in the preloaded symbols.
35180 exclude_expsyms=$lt_exclude_expsyms
35181
35182 # Symbols that must always be exported.
35183 include_expsyms=$lt_include_expsyms
35184
35185 # Commands necessary for linking programs (against libraries) with templates.
35186 prelink_cmds=$lt_prelink_cmds
35187
35188 # Specify filename containing input files.
35189 file_list_spec=$lt_file_list_spec
35190
35191 # How to hardcode a shared library path into an executable.
35192 hardcode_action=$hardcode_action
35193
35194 # The directories searched by this compiler when creating a shared library.
35195 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35196
35197 # Dependencies to place before and after the objects being linked to
35198 # create a shared library.
35199 predep_objects=$lt_predep_objects
35200 postdep_objects=$lt_postdep_objects
35201 predeps=$lt_predeps
35202 postdeps=$lt_postdeps
35203
35204 # The library search path used internally by the compiler when linking
35205 # a shared library.
35206 compiler_lib_search_path=$lt_compiler_lib_search_path
35207
35208 # ### END LIBTOOL CONFIG
35209
35210 _LT_EOF
35211
35212   case $host_os in
35213   aix3*)
35214     cat <<\_LT_EOF >> "$cfgfile"
35215 # AIX sometimes has problems with the GCC collect2 program.  For some
35216 # reason, if we set the COLLECT_NAMES environment variable, the problems
35217 # vanish in a puff of smoke.
35218 if test "X${COLLECT_NAMES+set}" != Xset; then
35219   COLLECT_NAMES=
35220   export COLLECT_NAMES
35221 fi
35222 _LT_EOF
35223     ;;
35224   esac
35225
35226
35227 ltmain="$ac_aux_dir/ltmain.sh"
35228
35229
35230   # We use sed instead of cat because bash on DJGPP gets confused if
35231   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35232   # text mode, it properly converts lines to CR/LF.  This bash problem
35233   # is reportedly fixed, but why not run on old versions too?
35234   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35235     || (rm -f "$cfgfile"; exit 1)
35236
35237   case $xsi_shell in
35238   yes)
35239     cat << \_LT_EOF >> "$cfgfile"
35240
35241 # func_dirname file append nondir_replacement
35242 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35243 # otherwise set result to NONDIR_REPLACEMENT.
35244 func_dirname ()
35245 {
35246   case ${1} in
35247     */*) func_dirname_result="${1%/*}${2}" ;;
35248     *  ) func_dirname_result="${3}" ;;
35249   esac
35250 }
35251
35252 # func_basename file
35253 func_basename ()
35254 {
35255   func_basename_result="${1##*/}"
35256 }
35257
35258 # func_dirname_and_basename file append nondir_replacement
35259 # perform func_basename and func_dirname in a single function
35260 # call:
35261 #   dirname:  Compute the dirname of FILE.  If nonempty,
35262 #             add APPEND to the result, otherwise set result
35263 #             to NONDIR_REPLACEMENT.
35264 #             value returned in "$func_dirname_result"
35265 #   basename: Compute filename of FILE.
35266 #             value retuned in "$func_basename_result"
35267 # Implementation must be kept synchronized with func_dirname
35268 # and func_basename. For efficiency, we do not delegate to
35269 # those functions but instead duplicate the functionality here.
35270 func_dirname_and_basename ()
35271 {
35272   case ${1} in
35273     */*) func_dirname_result="${1%/*}${2}" ;;
35274     *  ) func_dirname_result="${3}" ;;
35275   esac
35276   func_basename_result="${1##*/}"
35277 }
35278
35279 # func_stripname prefix suffix name
35280 # strip PREFIX and SUFFIX off of NAME.
35281 # PREFIX and SUFFIX must not contain globbing or regex special
35282 # characters, hashes, percent signs, but SUFFIX may contain a leading
35283 # dot (in which case that matches only a dot).
35284 func_stripname ()
35285 {
35286   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35287   # positional parameters, so assign one to ordinary parameter first.
35288   func_stripname_result=${3}
35289   func_stripname_result=${func_stripname_result#"${1}"}
35290   func_stripname_result=${func_stripname_result%"${2}"}
35291 }
35292
35293 # func_opt_split
35294 func_opt_split ()
35295 {
35296   func_opt_split_opt=${1%%=*}
35297   func_opt_split_arg=${1#*=}
35298 }
35299
35300 # func_lo2o object
35301 func_lo2o ()
35302 {
35303   case ${1} in
35304     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35305     *)    func_lo2o_result=${1} ;;
35306   esac
35307 }
35308
35309 # func_xform libobj-or-source
35310 func_xform ()
35311 {
35312   func_xform_result=${1%.*}.lo
35313 }
35314
35315 # func_arith arithmetic-term...
35316 func_arith ()
35317 {
35318   func_arith_result=$(( $* ))
35319 }
35320
35321 # func_len string
35322 # STRING may not start with a hyphen.
35323 func_len ()
35324 {
35325   func_len_result=${#1}
35326 }
35327
35328 _LT_EOF
35329     ;;
35330   *) # Bourne compatible functions.
35331     cat << \_LT_EOF >> "$cfgfile"
35332
35333 # func_dirname file append nondir_replacement
35334 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35335 # otherwise set result to NONDIR_REPLACEMENT.
35336 func_dirname ()
35337 {
35338   # Extract subdirectory from the argument.
35339   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35340   if test "X$func_dirname_result" = "X${1}"; then
35341     func_dirname_result="${3}"
35342   else
35343     func_dirname_result="$func_dirname_result${2}"
35344   fi
35345 }
35346
35347 # func_basename file
35348 func_basename ()
35349 {
35350   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35351 }
35352
35353
35354 # func_stripname prefix suffix name
35355 # strip PREFIX and SUFFIX off of NAME.
35356 # PREFIX and SUFFIX must not contain globbing or regex special
35357 # characters, hashes, percent signs, but SUFFIX may contain a leading
35358 # dot (in which case that matches only a dot).
35359 # func_strip_suffix prefix name
35360 func_stripname ()
35361 {
35362   case ${2} in
35363     .*) func_stripname_result=`$ECHO "X${3}" \
35364            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35365     *)  func_stripname_result=`$ECHO "X${3}" \
35366            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35367   esac
35368 }
35369
35370 # sed scripts:
35371 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35372 my_sed_long_arg='1s/^-[^=]*=//'
35373
35374 # func_opt_split
35375 func_opt_split ()
35376 {
35377   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35378   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35379 }
35380
35381 # func_lo2o object
35382 func_lo2o ()
35383 {
35384   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35385 }
35386
35387 # func_xform libobj-or-source
35388 func_xform ()
35389 {
35390   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35391 }
35392
35393 # func_arith arithmetic-term...
35394 func_arith ()
35395 {
35396   func_arith_result=`expr "$@"`
35397 }
35398
35399 # func_len string
35400 # STRING may not start with a hyphen.
35401 func_len ()
35402 {
35403   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35404 }
35405
35406 _LT_EOF
35407 esac
35408
35409 case $lt_shell_append in
35410   yes)
35411     cat << \_LT_EOF >> "$cfgfile"
35412
35413 # func_append var value
35414 # Append VALUE to the end of shell variable VAR.
35415 func_append ()
35416 {
35417   eval "$1+=\$2"
35418 }
35419 _LT_EOF
35420     ;;
35421   *)
35422     cat << \_LT_EOF >> "$cfgfile"
35423
35424 # func_append var value
35425 # Append VALUE to the end of shell variable VAR.
35426 func_append ()
35427 {
35428   eval "$1=\$$1\$2"
35429 }
35430
35431 _LT_EOF
35432     ;;
35433   esac
35434
35435
35436   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35437     || (rm -f "$cfgfile"; exit 1)
35438
35439   mv -f "$cfgfile" "$ofile" ||
35440     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35441   chmod +x "$ofile"
35442
35443
35444     cat <<_LT_EOF >> "$ofile"
35445
35446 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35447
35448 # The linker used to build libraries.
35449 LD=$lt_LD_CXX
35450
35451 # Commands used to build an old-style archive.
35452 old_archive_cmds=$lt_old_archive_cmds_CXX
35453
35454 # A language specific compiler.
35455 CC=$lt_compiler_CXX
35456
35457 # Is the compiler the GNU compiler?
35458 with_gcc=$GCC_CXX
35459
35460 # Compiler flag to turn off builtin functions.
35461 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35462
35463 # How to pass a linker flag through the compiler.
35464 wl=$lt_lt_prog_compiler_wl_CXX
35465
35466 # Additional compiler flags for building library objects.
35467 pic_flag=$lt_lt_prog_compiler_pic_CXX
35468
35469 # Compiler flag to prevent dynamic linking.
35470 link_static_flag=$lt_lt_prog_compiler_static_CXX
35471
35472 # Does compiler simultaneously support -c and -o options?
35473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35474
35475 # Whether or not to add -lc for building shared libraries.
35476 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35477
35478 # Whether or not to disallow shared libs when runtime libs are static.
35479 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35480
35481 # Compiler flag to allow reflexive dlopens.
35482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35483
35484 # Compiler flag to generate shared objects directly from archives.
35485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35486
35487 # Whether the compiler copes with passing no objects directly.
35488 compiler_needs_object=$lt_compiler_needs_object_CXX
35489
35490 # Create an old-style archive from a shared archive.
35491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35492
35493 # Create a temporary old-style archive to link instead of a shared archive.
35494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35495
35496 # Commands used to build a shared archive.
35497 archive_cmds=$lt_archive_cmds_CXX
35498 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35499
35500 # Commands used to build a loadable module if different from building
35501 # a shared archive.
35502 module_cmds=$lt_module_cmds_CXX
35503 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35504
35505 # Whether we are building with GNU ld or not.
35506 with_gnu_ld=$lt_with_gnu_ld_CXX
35507
35508 # Flag that allows shared libraries with undefined symbols to be built.
35509 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35510
35511 # Flag that enforces no undefined symbols.
35512 no_undefined_flag=$lt_no_undefined_flag_CXX
35513
35514 # Flag to hardcode \$libdir into a binary during linking.
35515 # This must work even if \$libdir does not exist
35516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35517
35518 # If ld is used when linking, flag to hardcode \$libdir into a binary
35519 # during linking.  This must work even if \$libdir does not exist.
35520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35521
35522 # Whether we need a single "-rpath" flag with a separated argument.
35523 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35524
35525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35526 # DIR into the resulting binary.
35527 hardcode_direct=$hardcode_direct_CXX
35528
35529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35530 # DIR into the resulting binary and the resulting library dependency is
35531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35532 # library is relocated.
35533 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35534
35535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35536 # into the resulting binary.
35537 hardcode_minus_L=$hardcode_minus_L_CXX
35538
35539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35540 # into the resulting binary.
35541 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35542
35543 # Set to "yes" if building a shared library automatically hardcodes DIR
35544 # into the library and all subsequent libraries and executables linked
35545 # against it.
35546 hardcode_automatic=$hardcode_automatic_CXX
35547
35548 # Set to yes if linker adds runtime paths of dependent libraries
35549 # to runtime path list.
35550 inherit_rpath=$inherit_rpath_CXX
35551
35552 # Whether libtool must link a program against all its dependency libraries.
35553 link_all_deplibs=$link_all_deplibs_CXX
35554
35555 # Fix the shell variable \$srcfile for the compiler.
35556 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35557
35558 # Set to "yes" if exported symbols are required.
35559 always_export_symbols=$always_export_symbols_CXX
35560
35561 # The commands to list exported symbols.
35562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35563
35564 # Symbols that should not be listed in the preloaded symbols.
35565 exclude_expsyms=$lt_exclude_expsyms_CXX
35566
35567 # Symbols that must always be exported.
35568 include_expsyms=$lt_include_expsyms_CXX
35569
35570 # Commands necessary for linking programs (against libraries) with templates.
35571 prelink_cmds=$lt_prelink_cmds_CXX
35572
35573 # Specify filename containing input files.
35574 file_list_spec=$lt_file_list_spec_CXX
35575
35576 # How to hardcode a shared library path into an executable.
35577 hardcode_action=$hardcode_action_CXX
35578
35579 # The directories searched by this compiler when creating a shared library.
35580 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35581
35582 # Dependencies to place before and after the objects being linked to
35583 # create a shared library.
35584 predep_objects=$lt_predep_objects_CXX
35585 postdep_objects=$lt_postdep_objects_CXX
35586 predeps=$lt_predeps_CXX
35587 postdeps=$lt_postdeps_CXX
35588
35589 # The library search path used internally by the compiler when linking
35590 # a shared library.
35591 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35592
35593 # ### END LIBTOOL TAG CONFIG: CXX
35594 _LT_EOF
35595
35596  ;;
35597     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35598     "Magick-config.in":C) chmod +x magick/Magick-config ;;
35599     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35600     "Wand-config.in":C) chmod +x wand/Wand-config ;;
35601     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35602     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35603
35604   esac
35605 done # for ac_tag
35606
35607
35608 as_fn_exit 0
35609 _ACEOF
35610 ac_clean_files=$ac_clean_files_save
35611
35612 test $ac_write_fail = 0 ||
35613   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35614
35615
35616 # configure is writing to config.log, and then calls config.status.
35617 # config.status does its own redirection, appending to config.log.
35618 # Unfortunately, on DOS this fails, as config.log is still kept open
35619 # by configure, so config.status won't be able to write to it; its
35620 # output is simply discarded.  So we exec the FD to /dev/null,
35621 # effectively closing config.log, so it can be properly (re)opened and
35622 # appended to by config.status.  When coming back to configure, we
35623 # need to make the FD available again.
35624 if test "$no_create" != yes; then
35625   ac_cs_success=:
35626   ac_config_status_args=
35627   test "$silent" = yes &&
35628     ac_config_status_args="$ac_config_status_args --quiet"
35629   exec 5>/dev/null
35630   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35631   exec 5>>config.log
35632   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35633   # would make configure fail if this is the last instruction.
35634   $ac_cs_success || as_fn_exit $?
35635 fi
35636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35639 fi
35640
35641
35642 rm -f magick-version
35643
35644 result_dejavu_font_dir='none'
35645 if test "${dejavu_font_dir}x" != 'x'; then
35646     result_dejavu_font_dir=$dejavu_font_dir
35647 fi
35648
35649 result_ghostscript_font_dir='none'
35650 if test "${ghostscript_font_dir}x" != 'x'; then
35651     result_ghostscript_font_dir=$ghostscript_font_dir
35652 fi
35653
35654 result_windows_font_dir='none'
35655 if test "${windows_font_dir}x" != 'x'; then
35656     result_windows_font_dir=${windows_font_dir}
35657 fi
35658
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35660 ImageMagick is configured as follows. Please verify that this configuration
35661 matches your expectations.
35662
35663 Host system type: $host
35664 Build system type: $build
35665
35666                   Option                        Value
35667 -------------------------------------------------------------------------------
35668 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35669 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35670 Module support    --with-modules=$with_modules          $with_modules
35671 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35672 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35673 High Dynamic Range Imagery
35674                   --enable-hdri=$enable_hdri            $enable_hdri
35675
35676 Delegate Configuration:
35677 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35678 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35679 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35680 DJVU              --with-djvu=$with_djvu                $have_djvu
35681 DPS               --with-dps=$with_dps          $have_dps
35682 FFTW              --with-fftw=$with_fftw                $have_fftw
35683 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35684 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35685 FreeType          --with-freetype=$with_freetype                $have_freetype
35686 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35687 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35688 Ghostscript       None                          $PSDelegate ($GSVersion)
35689 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35690 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35691 Graphviz          --with-gvc=$with_gvc          $have_gvc
35692 JBIG              --with-jbig=$with_jbig                $have_jbig
35693 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35694 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35695 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35696 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35697 LQR               --with-lqr=$with_lqr          $have_lqr
35698 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35699 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35700 PERL              --with-perl=$with_perl                $have_perl
35701 PNG               --with-png=$with_png          $have_png
35702 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35703 TIFF              --with-tiff=$with_tiff                $have_tiff
35704 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35705 WMF               --with-wmf=$with_wmf          $have_wmf
35706 X11               --with-x=$with_x                      $have_x
35707 XML               --with-xml=$with_xml          $have_xml
35708 ZLIB              --with-zlib=$with_zlib                $have_zlib
35709
35710 X11 Configuration:
35711       X_CFLAGS        = $X_CFLAGS
35712       X_PRE_LIBS      = $X_PRE_LIBS
35713       X_LIBS          = $X_LIBS
35714       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35715
35716 Options used to compile and link:
35717   PREFIX          = $PREFIX_DIR
35718   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35719   VERSION         = $PACKAGE_VERSION
35720   CC              = $CC
35721   CFLAGS          = $CFLAGS
35722   CPPFLAGS        = $MAGICK_CPPFLAGS
35723   PCFLAGS         = $MAGICK_PCFLAGS
35724   DEFS            = $DEFS
35725   LDFLAGS         = $LDFLAGS
35726   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35727   LIBS            = $MAGICK_LIBS
35728   CXX             = $CXX
35729   CXXFLAGS        = $CXXFLAGS
35730 " >&5
35731 $as_echo "
35732 ImageMagick is configured as follows. Please verify that this configuration
35733 matches your expectations.
35734
35735 Host system type: $host
35736 Build system type: $build
35737
35738                   Option                        Value
35739 -------------------------------------------------------------------------------
35740 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35741 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35742 Module support    --with-modules=$with_modules          $with_modules
35743 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35744 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35745 High Dynamic Range Imagery
35746                   --enable-hdri=$enable_hdri            $enable_hdri
35747
35748 Delegate Configuration:
35749 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35750 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35751 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35752 DJVU              --with-djvu=$with_djvu                $have_djvu
35753 DPS               --with-dps=$with_dps          $have_dps
35754 FFTW              --with-fftw=$with_fftw                $have_fftw
35755 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35756 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35757 FreeType          --with-freetype=$with_freetype                $have_freetype
35758 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35759 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35760 Ghostscript       None                          $PSDelegate ($GSVersion)
35761 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35762 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35763 Graphviz          --with-gvc=$with_gvc          $have_gvc
35764 JBIG              --with-jbig=$with_jbig                $have_jbig
35765 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35766 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35767 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35768 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35769 LQR               --with-lqr=$with_lqr          $have_lqr
35770 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35771 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35772 PERL              --with-perl=$with_perl                $have_perl
35773 PNG               --with-png=$with_png          $have_png
35774 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35775 TIFF              --with-tiff=$with_tiff                $have_tiff
35776 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35777 WMF               --with-wmf=$with_wmf          $have_wmf
35778 X11               --with-x=$with_x                      $have_x
35779 XML               --with-xml=$with_xml          $have_xml
35780 ZLIB              --with-zlib=$with_zlib                $have_zlib
35781
35782 X11 Configuration:
35783       X_CFLAGS        = $X_CFLAGS
35784       X_PRE_LIBS      = $X_PRE_LIBS
35785       X_LIBS          = $X_LIBS
35786       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35787
35788 Options used to compile and link:
35789   PREFIX          = $PREFIX_DIR
35790   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35791   VERSION         = $PACKAGE_VERSION
35792   CC              = $CC
35793   CFLAGS          = $CFLAGS
35794   CPPFLAGS        = $MAGICK_CPPFLAGS
35795   PCFLAGS         = $MAGICK_PCFLAGS
35796   DEFS            = $DEFS
35797   LDFLAGS         = $LDFLAGS
35798   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35799   LIBS            = $MAGICK_LIBS
35800   CXX             = $CXX
35801   CXXFLAGS        = $CXXFLAGS
35802 " >&6; }