• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.9-15.
4#
5# Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/ImageMagick/ImageMagick/issues about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
592PACKAGE_TARNAME='ImageMagick'
593PACKAGE_VERSION='7.0.9-15'
594PACKAGE_STRING='ImageMagick 7.0.9-15'
595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
596PACKAGE_URL='https://imagemagick.org'
597
598ac_unique_file="MagickCore/MagickCore.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_EXTRA_DEP_LIBS
646MAGICK_DEP_LIBS
647OSX_GCOV_LDFLAG
648MAGICK_FEATURES
649MAGICK_DELEGATES
650MAGICKCORE_PATH
651PERL_SUPPORTS_DESTDIR
652WITH_PERL_DYNAMIC_FALSE
653WITH_PERL_DYNAMIC_TRUE
654WITH_PERL_STATIC_FALSE
655WITH_PERL_STATIC_TRUE
656WITH_PERL_FALSE
657WITH_PERL_TRUE
658PERL_VERSION
659GSVersion
660GSPSDevice
661GSPDFDevice
662GSMonoDevice
663GSEPSDevice
664GSColorDevice
665GSCMYKDevice
666GSAlphaDevice
667XPSVersion
668XPSCMYKDevice
669XPSColorDevice
670XPSMonoDevice
671PCLVersion
672PCLCMYKDevice
673PCLColorDevice
674PCLMonoDevice
675ZIP_DELEGATE_FALSE
676ZIP_DELEGATE_TRUE
677ZIP
678P7ZIP_DELEGATE_FALSE
679P7ZIP_DELEGATE_TRUE
680P7ZIP
681RPM_DELEGATE_FALSE
682RPM_DELEGATE_TRUE
683RPM
684PERL
685TAR
686ShowImageDelegate
687type_include_files
688windows_font_dir
689urw_base35_font_dir
690ghostscript_font_dir
691dejavu_font_dir
692apple_font_dir
693PrintDelegate
694XPSDelegate
695WWWDecodeDelegate
696WebPEncodeDelegate
697WebPDecodeDelegate
698UniconvertorDelegate
699TraceEncodeDelegate
700SVGDecodeDelegate
701RSVGDecodeDelegate
702RMDelegate
703PSDelegate
704PCLDelegate
705MVDelegate
706MrSIDDecodeDelegate
707MPEGEncodeDelegate
708MPEGDecodeDelegate
709MogrifyDelegate
710LaunchDelegate
711LPRDelegate
712LPDelegate
713LEPDelegate
714JXREncodeDelegate
715JXRDecodeDelegate
716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
720GVCDecodeDelegate
721EditorDelegate
722DisplayDelegate
723ConvertDelegate
724DVIDecodeDelegate
725DOCDecodeDelegate
726DNGDecodeDelegate
727BrowseDelegate
728BlenderDecodeDelegate
729BPGEncodeDelegate
730BPGDecodeDelegate
731SHAREARCH_PATH
732SHAREARCH_RELATIVE_PATH
733SHAREARCH_DIRNAME
734SHAREARCH_BASEDIRNAME
735SHARE_PATH
736CONFIGURE_PATH
737INSTALL_DOC_FALSE
738INSTALL_DOC_TRUE
739DOCUMENTATION_PATH
740FILTER_PATH
741FILTER_DIRNAME
742CODER_PATH
743CODER_DIRNAME
744MODULES_PATH
745MODULES_RELATIVE_PATH
746MODULES_DIRNAME
747MODULES_BASEDIRNAME
748LIB_BIN_DIR_PATH
749LIB_BIN_DIR_RELATIVE_PATH
750LIB_BIN_DIR
751LIB_BIN_BASEDIRNAME
752LIBRARY_PATH
753EXECUTABLE_PATH
754INCLUDEARCH_PATH
755INCLUDE_PATH
756PERLMAINCC
757XML_DELEGATE_FALSE
758XML_DELEGATE_TRUE
759XML_LIBS
760XML_CFLAGS
761WMF_LIBS
762WMF_CFLAGS
763WMF_DELEGATE_FALSE
764WMF_DELEGATE_TRUE
765WEBPMUX_DELEGATE_FALSE
766WEBPMUX_DELEGATE_TRUE
767WEBP_DELEGATE_FALSE
768WEBP_DELEGATE_TRUE
769WEBPMUX_LIBS
770WEBPMUX_CFLAGS
771WEBP_LIBS
772WEBP_CFLAGS
773TIFF_LIBS
774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
782RSVG_LIBS
783RSVG_CFLAGS
784RAW_R_DELEGATE_FALSE
785RAW_R_DELEGATE_TRUE
786RAW_R_LIBS
787RAW_R_CFLAGS
788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
790PNG_LIBS
791PNG_CFLAGS
792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
800OPENEXR_LIBS
801OPENEXR_CFLAGS
802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
804LZMA_LIBS
805LZMA_CFLAGS
806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
808LQR_LIBS
809LQR_CFLAGS
810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
814LCMS_LIBS
815LCMS_CFLAGS
816LCMS_DELEGATE_FALSE
817LCMS_DELEGATE_TRUE
818LCMS2_LIBS
819LCMS2_CFLAGS
820JXL_LIBS
821JXL_DELEGATE_FALSE
822JXL_DELEGATE_TRUE
823JPEG_LIBS
824JPEG_DELEGATE_FALSE
825JPEG_DELEGATE_TRUE
826JBIG_LIBS
827JBIG_DELEGATE_FALSE
828JBIG_DELEGATE_TRUE
829HEIC_DELEGATE_FALSE
830HEIC_DELEGATE_TRUE
831HEIF_LIBS
832HEIF_CFLAGS
833GVC_DELEGATE_FALSE
834GVC_DELEGATE_TRUE
835GVC_LIBS
836GVC_CFLAGS
837GS_LIBS
838GS_DELEGATE_FALSE
839GS_DELEGATE_TRUE
840RAQM_DELEGATE_FALSE
841RAQM_DELEGATE_TRUE
842RAQM_LIBS
843RAQM_CFLAGS
844MAGICKCORE_FREETYPE_DELEGATE
845FREETYPE_LIBS
846FREETYPE_CFLAGS
847FONTCONFIG_DELEGATE_FALSE
848FONTCONFIG_DELEGATE_TRUE
849FONTCONFIG_LIBS
850FONTCONFIG_CFLAGS
851DJVU_LIBS
852DJVU_CFLAGS
853DJVU_DELEGATE_FALSE
854DJVU_DELEGATE_TRUE
855ddjvuapi_LIBS
856ddjvuapi_CFLAGS
857FPX_LIBS
858FPX_DELEGATE_FALSE
859FPX_DELEGATE_TRUE
860FLIF_LIBS
861FLIF_DELEGATE_FALSE
862FLIF_DELEGATE_TRUE
863FFTW_LIBS
864FFTW_CFLAGS
865FFTW_DELEGATE_FALSE
866FFTW_DELEGATE_TRUE
867fftw3_LIBS
868fftw3_CFLAGS
869DPS_LIBS
870DPS_DELEGATE_FALSE
871DPS_DELEGATE_TRUE
872AUTOTRACE_DELEGATE_FALSE
873AUTOTRACE_DELEGATE_TRUE
874AUTOTRACE_LIBS
875AUTOTRACE_CFLAGS
876LIB_DL
877WITH_LTDL_FALSE
878WITH_LTDL_TRUE
879ZSTD_LIBS
880ZSTD_CFLAGS
881ZSTD_DELEGATE_FALSE
882ZSTD_DELEGATE_TRUE
883LIBZSTD_LIBS
884LIBZSTD_CFLAGS
885ZLIB_DELEGATE_FALSE
886ZLIB_DELEGATE_TRUE
887ZLIB_LIBS
888ZLIB_CFLAGS
889XEXT_LIBS
890X11_LIBS
891X11_DELEGATE_FALSE
892X11_DELEGATE_TRUE
893X_EXTRA_LIBS
894X_LIBS
895X_PRE_LIBS
896X_CFLAGS
897XMKMF
898BZLIB_LIBS
899BZLIB_DELEGATE_FALSE
900BZLIB_DELEGATE_TRUE
901CCMALLOCDelegate
902UMEM_LIBS
903HAVE_UMEM_FALSE
904HAVE_UMEM_TRUE
905TCMALLOC_LIBS
906HAVE_TCMALLOC_FALSE
907HAVE_TCMALLOC_TRUE
908JEMALLOC_LIBS
909HasJEMALLOC_FALSE
910HasJEMALLOC_TRUE
911GOMP_LIBS
912WITH_MAGICK_PLUS_PLUS_FALSE
913WITH_MAGICK_PLUS_PLUS_TRUE
914OPENMP_CXXFLAGS
915MATH_LIBS
916POW_LIB
917LIBOBJS
918LIBRARY_EXTRA_CPPFLAGS
919MODULE_EXTRA_CPPFLAGS
920LIBSTDCLDFLAGS
921PERL_MAKE_OPTIONS
922MAGICK_LT_RELEASE_OPTS
923MAGICK_ABI_SUFFIX
924QUANTUM_DEPTH
925WITH_UTILITIES_FALSE
926WITH_UTILITIES_TRUE
927LEGACY_SUPPORT_FALSE
928LEGACY_SUPPORT_TRUE
929MAINT
930MAINTAINER_MODE_FALSE
931MAINTAINER_MODE_TRUE
932MAGICK_HDRI
933MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE
934MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE
935WITH_MODULES_FALSE
936WITH_MODULES_TRUE
937WITH_SHARED_LIBS_FALSE
938WITH_SHARED_LIBS_TRUE
939LIBTOOL_DEPS
940CXXCPP
941LT_SYS_LIBRARY_PATH
942OTOOL64
943OTOOL
944LIPO
945NMEDIT
946DSYMUTIL
947MANIFEST_TOOL
948RANLIB
949NM
950ac_ct_DUMPBIN
951DUMPBIN
952LIBTOOL
953OBJDUMP
954DLLTOOL
955AS
956LFS_CPPFLAGS
957CL_LIBS
958CL_CFLAGS
959OPENMP_CFLAGS
960THREAD_LIBS
961PTHREAD_CFLAGS
962PTHREAD_LIBS
963PTHREAD_CC
964ax_pthread_config
965pkgconfigdir
966SHAREARCH_DIR
967INCLUDEARCH_DIR
968WinPathScript
969USING_CL_FALSE
970USING_CL_TRUE
971CYGWIN_BUILD_FALSE
972CYGWIN_BUILD_TRUE
973WIN32_NATIVE_BUILD_FALSE
974WIN32_NATIVE_BUILD_TRUE
975WINGDI32_DELEGATE_FALSE
976WINGDI32_DELEGATE_TRUE
977WS2_32_LIBS
978OLE_LIBS
979GDI32_LIBS
980HAVE_LD_VERSION_SCRIPT_FALSE
981HAVE_LD_VERSION_SCRIPT_TRUE
982PKG_CONFIG_LIBDIR
983PKG_CONFIG_PATH
984PKG_CONFIG
985PRTDIAG
986LN_S
987LD
988FGREP
989SED
990am__fastdepCXX_FALSE
991am__fastdepCXX_TRUE
992CXXDEPMODE
993ac_ct_CXX
994CXXFLAGS
995CXX
996ac_ct_AR
997AR
998EGREP
999GREP
1000CPP
1001am__fastdepCC_FALSE
1002am__fastdepCC_TRUE
1003CCDEPMODE
1004am__nodep
1005AMDEPBACKSLASH
1006AMDEP_FALSE
1007AMDEP_TRUE
1008am__include
1009DEPDIR
1010OBJEXT
1011EXEEXT
1012ac_ct_CC
1013CPPFLAGS
1014LDFLAGS
1015CFLAGS
1016CC
1017DIRSEP
1018MAGICK_FILTER_MODULE_PATH
1019MAGICK_CONFIGURE_BUILD_PATH
1020MAGICK_CONFIGURE_SRC_PATH
1021MAGICK_CODER_MODULE_PATH
1022MAN_DIR
1023INFO_DIR
1024PERSISTINCLUDE_DIR
1025INCLUDE_DIR
1026LIB_DIR
1027LOCALSTATE_DIR
1028SHAREDSTATE_DIR
1029SYSCONF_DIR
1030DOC_DIR
1031DATA_DIR
1032LIBEXEC_DIR
1033SBIN_DIR
1034BIN_DIR
1035EXEC_PREFIX_DIR
1036PREFIX_DIR
1037CONFIG_STATUS_DEPENDENCIES
1038MAGICKPP_LIB_VERSION_TEXT
1039MAGICKPP_LIB_VERSION
1040MAGICK_LIB_VERSION_NUMBER
1041MAGICK_LIB_VERSION_TEXT
1042MAGICK_LIB_VERSION
1043PACKAGE_VERSION_ADDENDUM
1044PACKAGE_RELEASE_DATE
1045PACKAGE_LIB_VERSION_NUMBER
1046PACKAGE_LIB_VERSION
1047PACKAGE_CHANGE_DATE
1048PACKAGE_RELEASE
1049PACKAGE_PERL_VERSION
1050MAGICKPP_LIBRARY_VERSION_INFO
1051MAGICKPP_LIBRARY_CURRENT_MIN
1052MAGICKPP_LIBRARY_AGE
1053MAGICKPP_LIBRARY_REVISION
1054MAGICKPP_LIBRARY_CURRENT
1055MAGICK_LIBRARY_VERSION_INFO
1056MAGICK_LIBRARY_CURRENT_MIN
1057MAGICK_LIBRARY_AGE
1058MAGICK_LIBRARY_REVISION
1059MAGICK_LIBRARY_CURRENT
1060MAGICK_GIT_REVISION
1061MAGICK_VERSION
1062MAGICK_PATCHLEVEL_VERSION
1063MAGICK_MICRO_VERSION
1064MAGICK_MINOR_VERSION
1065MAGICK_MAJOR_VERSION
1066MAGICK_TARGET_OS
1067MAGICK_TARGET_VENDOR
1068MAGICK_TARGET_CPU
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071AM_BACKSLASH
1072AM_DEFAULT_VERBOSITY
1073AM_DEFAULT_V
1074AM_V
1075am__untar
1076am__tar
1077AMTAR
1078am__leading_dot
1079SET_MAKE
1080AWK
1081mkdir_p
1082MKDIR_P
1083INSTALL_STRIP_PROGRAM
1084STRIP
1085install_sh
1086MAKEINFO
1087AUTOHEADER
1088AUTOMAKE
1089AUTOCONF
1090ACLOCAL
1091VERSION
1092PACKAGE
1093CYGPATH_W
1094am__isrc
1095INSTALL_DATA
1096INSTALL_SCRIPT
1097INSTALL_PROGRAM
1098target_os
1099target_vendor
1100target_cpu
1101target
1102host_os
1103host_vendor
1104host_cpu
1105host
1106build_os
1107build_vendor
1108build_cpu
1109build
1110target_alias
1111host_alias
1112build_alias
1113LIBS
1114ECHO_T
1115ECHO_N
1116ECHO_C
1117DEFS
1118mandir
1119localedir
1120libdir
1121psdir
1122pdfdir
1123dvidir
1124htmldir
1125infodir
1126docdir
1127oldincludedir
1128includedir
1129localstatedir
1130sharedstatedir
1131sysconfdir
1132datadir
1133datarootdir
1134libexecdir
1135sbindir
1136bindir
1137program_transform_name
1138prefix
1139exec_prefix
1140PACKAGE_URL
1141PACKAGE_BUGREPORT
1142PACKAGE_STRING
1143PACKAGE_VERSION
1144PACKAGE_TARNAME
1145PACKAGE_NAME
1146PATH_SEPARATOR
1147SHELL
1148am__quote'
1149ac_subst_files=''
1150ac_user_opts='
1151enable_option_checking
1152enable_silent_rules
1153enable_reproducible_build
1154enable_dependency_tracking
1155with_gnu_ld
1156with_dmalloc
1157with_gcc_arch
1158enable_ld_version_script
1159enable_bounds_checking
1160enable_osx_universal_binary
1161with_includearch_dir
1162with_sharearch_dir
1163with_pkgconfigdir
1164with_threads
1165enable_openmp
1166enable_opencl
1167enable_largefile
1168enable_shared
1169enable_static
1170with_pic
1171enable_fast_install
1172with_aix_soname
1173with_sysroot
1174enable_libtool_lock
1175with_modules
1176enable_delegate_build
1177enable_deprecated
1178enable_installed
1179enable_cipher
1180enable_zero_configuration
1181enable_hdri
1182enable_pipes
1183enable_assert
1184enable_maintainer_mode
1185enable_hugepages
1186enable_ccmalloc
1187enable_efence
1188enable_prof
1189enable_gprof
1190enable_gcov
1191with_method_prefix
1192enable_legacy_support
1193with_utilities
1194with_quantum_depth
1195with_cache
1196with_frozenpaths
1197with_magick_plus_plus
1198with_package_release_name
1199with_perl
1200with_perl_options
1201with_jemalloc
1202with_tcmalloc
1203with_umem
1204with_libstdc
1205with_bzlib
1206with_x
1207with_zlib
1208with_zstd
1209with_apple_font_dir
1210with_autotrace
1211with_dps
1212with_dejavu_font_dir
1213with_fftw
1214with_flif
1215with_fpx
1216with_djvu
1217with_fontconfig
1218with_freetype
1219with_raqm
1220with_gslib
1221with_fontpath
1222with_gs_font_dir
1223with_gvc
1224with_heic
1225with_jbig
1226with_jpeg
1227with_jxl
1228with_lcms
1229with_openjp2
1230with_lqr
1231with_lzma
1232with_openexr
1233with_pango
1234with_png
1235with_raw
1236with_rsvg
1237with_tiff
1238with_urw_base35_font_dir
1239with_webp
1240with_windows_font_dir
1241with_wmf
1242with_xml
1243enable_docs
1244'
1245      ac_precious_vars='build_alias
1246host_alias
1247target_alias
1248CC
1249CFLAGS
1250LDFLAGS
1251LIBS
1252CPPFLAGS
1253CPP
1254CXX
1255CXXFLAGS
1256CCC
1257PKG_CONFIG
1258PKG_CONFIG_PATH
1259PKG_CONFIG_LIBDIR
1260LT_SYS_LIBRARY_PATH
1261CXXCPP
1262XMKMF
1263ZLIB_CFLAGS
1264ZLIB_LIBS
1265LIBZSTD_CFLAGS
1266LIBZSTD_LIBS
1267AUTOTRACE_CFLAGS
1268AUTOTRACE_LIBS
1269fftw3_CFLAGS
1270fftw3_LIBS
1271ddjvuapi_CFLAGS
1272ddjvuapi_LIBS
1273FONTCONFIG_CFLAGS
1274FONTCONFIG_LIBS
1275FREETYPE_CFLAGS
1276FREETYPE_LIBS
1277RAQM_CFLAGS
1278RAQM_LIBS
1279GVC_CFLAGS
1280GVC_LIBS
1281HEIF_CFLAGS
1282HEIF_LIBS
1283LCMS2_CFLAGS
1284LCMS2_LIBS
1285LIBOPENJP2_CFLAGS
1286LIBOPENJP2_LIBS
1287LQR_CFLAGS
1288LQR_LIBS
1289LZMA_CFLAGS
1290LZMA_LIBS
1291OPENEXR_CFLAGS
1292OPENEXR_LIBS
1293PANGO_CFLAGS
1294PANGO_LIBS
1295PNG_CFLAGS
1296PNG_LIBS
1297RAW_R_CFLAGS
1298RAW_R_LIBS
1299RSVG_CFLAGS
1300RSVG_LIBS
1301CAIRO_SVG_CFLAGS
1302CAIRO_SVG_LIBS
1303WEBP_CFLAGS
1304WEBP_LIBS
1305WEBPMUX_CFLAGS
1306WEBPMUX_LIBS
1307XML_CFLAGS
1308XML_LIBS'
1309
1310
1311# Initialize some variables set by options.
1312ac_init_help=
1313ac_init_version=false
1314ac_unrecognized_opts=
1315ac_unrecognized_sep=
1316# The variables have the same names as the options, with
1317# dashes changed to underlines.
1318cache_file=/dev/null
1319exec_prefix=NONE
1320no_create=
1321no_recursion=
1322prefix=NONE
1323program_prefix=NONE
1324program_suffix=NONE
1325program_transform_name=s,x,x,
1326silent=
1327site=
1328srcdir=
1329verbose=
1330x_includes=NONE
1331x_libraries=NONE
1332
1333# Installation directory options.
1334# These are left unexpanded so users can "make install exec_prefix=/foo"
1335# and all the variables that are supposed to be based on exec_prefix
1336# by default will actually change.
1337# Use braces instead of parens because sh, perl, etc. also accept them.
1338# (The list follows the same order as the GNU Coding Standards.)
1339bindir='${exec_prefix}/bin'
1340sbindir='${exec_prefix}/sbin'
1341libexecdir='${exec_prefix}/libexec'
1342datarootdir='${prefix}/share'
1343datadir='${datarootdir}'
1344sysconfdir='${prefix}/etc'
1345sharedstatedir='${prefix}/com'
1346localstatedir='${prefix}/var'
1347includedir='${prefix}/include'
1348oldincludedir='/usr/include'
1349docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1350infodir='${datarootdir}/info'
1351htmldir='${docdir}'
1352dvidir='${docdir}'
1353pdfdir='${docdir}'
1354psdir='${docdir}'
1355libdir='${exec_prefix}/lib'
1356localedir='${datarootdir}/locale'
1357mandir='${datarootdir}/man'
1358
1359ac_prev=
1360ac_dashdash=
1361for ac_option
1362do
1363  # If the previous option needs an argument, assign it.
1364  if test -n "$ac_prev"; then
1365    eval $ac_prev=\$ac_option
1366    ac_prev=
1367    continue
1368  fi
1369
1370  case $ac_option in
1371  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1372  *=)   ac_optarg= ;;
1373  *)    ac_optarg=yes ;;
1374  esac
1375
1376  # Accept the important Cygnus configure options, so we can diagnose typos.
1377
1378  case $ac_dashdash$ac_option in
1379  --)
1380    ac_dashdash=yes ;;
1381
1382  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1383    ac_prev=bindir ;;
1384  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1385    bindir=$ac_optarg ;;
1386
1387  -build | --build | --buil | --bui | --bu)
1388    ac_prev=build_alias ;;
1389  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1390    build_alias=$ac_optarg ;;
1391
1392  -cache-file | --cache-file | --cache-fil | --cache-fi \
1393  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1394    ac_prev=cache_file ;;
1395  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1396  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1397    cache_file=$ac_optarg ;;
1398
1399  --config-cache | -C)
1400    cache_file=config.cache ;;
1401
1402  -datadir | --datadir | --datadi | --datad)
1403    ac_prev=datadir ;;
1404  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1405    datadir=$ac_optarg ;;
1406
1407  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1408  | --dataroo | --dataro | --datar)
1409    ac_prev=datarootdir ;;
1410  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1411  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1412    datarootdir=$ac_optarg ;;
1413
1414  -disable-* | --disable-*)
1415    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1416    # Reject names that are not valid shell variable names.
1417    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1418      as_fn_error $? "invalid feature name: $ac_useropt"
1419    ac_useropt_orig=$ac_useropt
1420    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1421    case $ac_user_opts in
1422      *"
1423"enable_$ac_useropt"
1424"*) ;;
1425      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1426	 ac_unrecognized_sep=', ';;
1427    esac
1428    eval enable_$ac_useropt=no ;;
1429
1430  -docdir | --docdir | --docdi | --doc | --do)
1431    ac_prev=docdir ;;
1432  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1433    docdir=$ac_optarg ;;
1434
1435  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1436    ac_prev=dvidir ;;
1437  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1438    dvidir=$ac_optarg ;;
1439
1440  -enable-* | --enable-*)
1441    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1442    # Reject names that are not valid shell variable names.
1443    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1444      as_fn_error $? "invalid feature name: $ac_useropt"
1445    ac_useropt_orig=$ac_useropt
1446    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1447    case $ac_user_opts in
1448      *"
1449"enable_$ac_useropt"
1450"*) ;;
1451      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1452	 ac_unrecognized_sep=', ';;
1453    esac
1454    eval enable_$ac_useropt=\$ac_optarg ;;
1455
1456  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1457  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1458  | --exec | --exe | --ex)
1459    ac_prev=exec_prefix ;;
1460  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1461  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1462  | --exec=* | --exe=* | --ex=*)
1463    exec_prefix=$ac_optarg ;;
1464
1465  -gas | --gas | --ga | --g)
1466    # Obsolete; use --with-gas.
1467    with_gas=yes ;;
1468
1469  -help | --help | --hel | --he | -h)
1470    ac_init_help=long ;;
1471  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1472    ac_init_help=recursive ;;
1473  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1474    ac_init_help=short ;;
1475
1476  -host | --host | --hos | --ho)
1477    ac_prev=host_alias ;;
1478  -host=* | --host=* | --hos=* | --ho=*)
1479    host_alias=$ac_optarg ;;
1480
1481  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1482    ac_prev=htmldir ;;
1483  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1484  | --ht=*)
1485    htmldir=$ac_optarg ;;
1486
1487  -includedir | --includedir | --includedi | --included | --include \
1488  | --includ | --inclu | --incl | --inc)
1489    ac_prev=includedir ;;
1490  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1491  | --includ=* | --inclu=* | --incl=* | --inc=*)
1492    includedir=$ac_optarg ;;
1493
1494  -infodir | --infodir | --infodi | --infod | --info | --inf)
1495    ac_prev=infodir ;;
1496  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1497    infodir=$ac_optarg ;;
1498
1499  -libdir | --libdir | --libdi | --libd)
1500    ac_prev=libdir ;;
1501  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1502    libdir=$ac_optarg ;;
1503
1504  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1505  | --libexe | --libex | --libe)
1506    ac_prev=libexecdir ;;
1507  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1508  | --libexe=* | --libex=* | --libe=*)
1509    libexecdir=$ac_optarg ;;
1510
1511  -localedir | --localedir | --localedi | --localed | --locale)
1512    ac_prev=localedir ;;
1513  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1514    localedir=$ac_optarg ;;
1515
1516  -localstatedir | --localstatedir | --localstatedi | --localstated \
1517  | --localstate | --localstat | --localsta | --localst | --locals)
1518    ac_prev=localstatedir ;;
1519  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1520  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1521    localstatedir=$ac_optarg ;;
1522
1523  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1524    ac_prev=mandir ;;
1525  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1526    mandir=$ac_optarg ;;
1527
1528  -nfp | --nfp | --nf)
1529    # Obsolete; use --without-fp.
1530    with_fp=no ;;
1531
1532  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1533  | --no-cr | --no-c | -n)
1534    no_create=yes ;;
1535
1536  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1537  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1538    no_recursion=yes ;;
1539
1540  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1541  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1542  | --oldin | --oldi | --old | --ol | --o)
1543    ac_prev=oldincludedir ;;
1544  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1545  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1546  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1547    oldincludedir=$ac_optarg ;;
1548
1549  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1550    ac_prev=prefix ;;
1551  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1552    prefix=$ac_optarg ;;
1553
1554  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1555  | --program-pre | --program-pr | --program-p)
1556    ac_prev=program_prefix ;;
1557  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1558  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1559    program_prefix=$ac_optarg ;;
1560
1561  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1562  | --program-suf | --program-su | --program-s)
1563    ac_prev=program_suffix ;;
1564  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1565  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1566    program_suffix=$ac_optarg ;;
1567
1568  -program-transform-name | --program-transform-name \
1569  | --program-transform-nam | --program-transform-na \
1570  | --program-transform-n | --program-transform- \
1571  | --program-transform | --program-transfor \
1572  | --program-transfo | --program-transf \
1573  | --program-trans | --program-tran \
1574  | --progr-tra | --program-tr | --program-t)
1575    ac_prev=program_transform_name ;;
1576  -program-transform-name=* | --program-transform-name=* \
1577  | --program-transform-nam=* | --program-transform-na=* \
1578  | --program-transform-n=* | --program-transform-=* \
1579  | --program-transform=* | --program-transfor=* \
1580  | --program-transfo=* | --program-transf=* \
1581  | --program-trans=* | --program-tran=* \
1582  | --progr-tra=* | --program-tr=* | --program-t=*)
1583    program_transform_name=$ac_optarg ;;
1584
1585  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1586    ac_prev=pdfdir ;;
1587  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1588    pdfdir=$ac_optarg ;;
1589
1590  -psdir | --psdir | --psdi | --psd | --ps)
1591    ac_prev=psdir ;;
1592  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1593    psdir=$ac_optarg ;;
1594
1595  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596  | -silent | --silent | --silen | --sile | --sil)
1597    silent=yes ;;
1598
1599  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1600    ac_prev=sbindir ;;
1601  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1602  | --sbi=* | --sb=*)
1603    sbindir=$ac_optarg ;;
1604
1605  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1606  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1607  | --sharedst | --shareds | --shared | --share | --shar \
1608  | --sha | --sh)
1609    ac_prev=sharedstatedir ;;
1610  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1611  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1612  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1613  | --sha=* | --sh=*)
1614    sharedstatedir=$ac_optarg ;;
1615
1616  -site | --site | --sit)
1617    ac_prev=site ;;
1618  -site=* | --site=* | --sit=*)
1619    site=$ac_optarg ;;
1620
1621  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1622    ac_prev=srcdir ;;
1623  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1624    srcdir=$ac_optarg ;;
1625
1626  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1627  | --syscon | --sysco | --sysc | --sys | --sy)
1628    ac_prev=sysconfdir ;;
1629  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1630  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1631    sysconfdir=$ac_optarg ;;
1632
1633  -target | --target | --targe | --targ | --tar | --ta | --t)
1634    ac_prev=target_alias ;;
1635  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1636    target_alias=$ac_optarg ;;
1637
1638  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1639    verbose=yes ;;
1640
1641  -version | --version | --versio | --versi | --vers | -V)
1642    ac_init_version=: ;;
1643
1644  -with-* | --with-*)
1645    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1646    # Reject names that are not valid shell variable names.
1647    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1648      as_fn_error $? "invalid package name: $ac_useropt"
1649    ac_useropt_orig=$ac_useropt
1650    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1651    case $ac_user_opts in
1652      *"
1653"with_$ac_useropt"
1654"*) ;;
1655      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1656	 ac_unrecognized_sep=', ';;
1657    esac
1658    eval with_$ac_useropt=\$ac_optarg ;;
1659
1660  -without-* | --without-*)
1661    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1662    # Reject names that are not valid shell variable names.
1663    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1664      as_fn_error $? "invalid package name: $ac_useropt"
1665    ac_useropt_orig=$ac_useropt
1666    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1667    case $ac_user_opts in
1668      *"
1669"with_$ac_useropt"
1670"*) ;;
1671      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1672	 ac_unrecognized_sep=', ';;
1673    esac
1674    eval with_$ac_useropt=no ;;
1675
1676  --x)
1677    # Obsolete; use --with-x.
1678    with_x=yes ;;
1679
1680  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1681  | --x-incl | --x-inc | --x-in | --x-i)
1682    ac_prev=x_includes ;;
1683  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1684  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1685    x_includes=$ac_optarg ;;
1686
1687  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1688  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1689    ac_prev=x_libraries ;;
1690  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1691  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1692    x_libraries=$ac_optarg ;;
1693
1694  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1695Try \`$0 --help' for more information"
1696    ;;
1697
1698  *=*)
1699    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1700    # Reject names that are not valid shell variable names.
1701    case $ac_envvar in #(
1702      '' | [0-9]* | *[!_$as_cr_alnum]* )
1703      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1704    esac
1705    eval $ac_envvar=\$ac_optarg
1706    export $ac_envvar ;;
1707
1708  *)
1709    # FIXME: should be removed in autoconf 3.0.
1710    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1711    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1712      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1713    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1714    ;;
1715
1716  esac
1717done
1718
1719if test -n "$ac_prev"; then
1720  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1721  as_fn_error $? "missing argument to $ac_option"
1722fi
1723
1724if test -n "$ac_unrecognized_opts"; then
1725  case $enable_option_checking in
1726    no) ;;
1727    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1728    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1729  esac
1730fi
1731
1732# Check all directory arguments for consistency.
1733for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1734		datadir sysconfdir sharedstatedir localstatedir includedir \
1735		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1736		libdir localedir mandir
1737do
1738  eval ac_val=\$$ac_var
1739  # Remove trailing slashes.
1740  case $ac_val in
1741    */ )
1742      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1743      eval $ac_var=\$ac_val;;
1744  esac
1745  # Be sure to have absolute directory names.
1746  case $ac_val in
1747    [\\/$]* | ?:[\\/]* )  continue;;
1748    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1749  esac
1750  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1751done
1752
1753# There might be people who depend on the old broken behavior: `$host'
1754# used to hold the argument of --host etc.
1755# FIXME: To remove some day.
1756build=$build_alias
1757host=$host_alias
1758target=$target_alias
1759
1760# FIXME: To remove some day.
1761if test "x$host_alias" != x; then
1762  if test "x$build_alias" = x; then
1763    cross_compiling=maybe
1764  elif test "x$build_alias" != "x$host_alias"; then
1765    cross_compiling=yes
1766  fi
1767fi
1768
1769ac_tool_prefix=
1770test -n "$host_alias" && ac_tool_prefix=$host_alias-
1771
1772test "$silent" = yes && exec 6>/dev/null
1773
1774
1775ac_pwd=`pwd` && test -n "$ac_pwd" &&
1776ac_ls_di=`ls -di .` &&
1777ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1778  as_fn_error $? "working directory cannot be determined"
1779test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1780  as_fn_error $? "pwd does not report name of working directory"
1781
1782
1783# Find the source files, if location was not specified.
1784if test -z "$srcdir"; then
1785  ac_srcdir_defaulted=yes
1786  # Try the directory containing this script, then the parent directory.
1787  ac_confdir=`$as_dirname -- "$as_myself" ||
1788$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1789	 X"$as_myself" : 'X\(//\)[^/]' \| \
1790	 X"$as_myself" : 'X\(//\)$' \| \
1791	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1792$as_echo X"$as_myself" |
1793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1794	    s//\1/
1795	    q
1796	  }
1797	  /^X\(\/\/\)[^/].*/{
1798	    s//\1/
1799	    q
1800	  }
1801	  /^X\(\/\/\)$/{
1802	    s//\1/
1803	    q
1804	  }
1805	  /^X\(\/\).*/{
1806	    s//\1/
1807	    q
1808	  }
1809	  s/.*/./; q'`
1810  srcdir=$ac_confdir
1811  if test ! -r "$srcdir/$ac_unique_file"; then
1812    srcdir=..
1813  fi
1814else
1815  ac_srcdir_defaulted=no
1816fi
1817if test ! -r "$srcdir/$ac_unique_file"; then
1818  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1819  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1820fi
1821ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1822ac_abs_confdir=`(
1823	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1824	pwd)`
1825# When building in place, set srcdir=.
1826if test "$ac_abs_confdir" = "$ac_pwd"; then
1827  srcdir=.
1828fi
1829# Remove unnecessary trailing slashes from srcdir.
1830# Double slashes in file names in object file debugging info
1831# mess up M-x gdb in Emacs.
1832case $srcdir in
1833*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1834esac
1835for ac_var in $ac_precious_vars; do
1836  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1837  eval ac_env_${ac_var}_value=\$${ac_var}
1838  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1839  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1840done
1841
1842#
1843# Report the --help message.
1844#
1845if test "$ac_init_help" = "long"; then
1846  # Omit some internal or obsolete options to make the list less imposing.
1847  # This message is too long to be a string in the A/UX 3.1 sh.
1848  cat <<_ACEOF
1849\`configure' configures ImageMagick 7.0.9-15 to adapt to many kinds of systems.
1850
1851Usage: $0 [OPTION]... [VAR=VALUE]...
1852
1853To assign environment variables (e.g., CC, CFLAGS...), specify them as
1854VAR=VALUE.  See below for descriptions of some of the useful variables.
1855
1856Defaults for the options are specified in brackets.
1857
1858Configuration:
1859  -h, --help              display this help and exit
1860      --help=short        display options specific to this package
1861      --help=recursive    display the short help of all the included packages
1862  -V, --version           display version information and exit
1863  -q, --quiet, --silent   do not print \`checking ...' messages
1864      --cache-file=FILE   cache test results in FILE [disabled]
1865  -C, --config-cache      alias for \`--cache-file=config.cache'
1866  -n, --no-create         do not create output files
1867      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1868
1869Installation directories:
1870  --prefix=PREFIX         install architecture-independent files in PREFIX
1871                          [$ac_default_prefix]
1872  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1873                          [PREFIX]
1874
1875By default, \`make install' will install all the files in
1876\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1877an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1878for instance \`--prefix=\$HOME'.
1879
1880For better control, use the options below.
1881
1882Fine tuning of the installation directories:
1883  --bindir=DIR            user executables [EPREFIX/bin]
1884  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1885  --libexecdir=DIR        program executables [EPREFIX/libexec]
1886  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1887  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1888  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1889  --libdir=DIR            object code libraries [EPREFIX/lib]
1890  --includedir=DIR        C header files [PREFIX/include]
1891  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1892  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1893  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1894  --infodir=DIR           info documentation [DATAROOTDIR/info]
1895  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1896  --mandir=DIR            man documentation [DATAROOTDIR/man]
1897  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1898  --htmldir=DIR           html documentation [DOCDIR]
1899  --dvidir=DIR            dvi documentation [DOCDIR]
1900  --pdfdir=DIR            pdf documentation [DOCDIR]
1901  --psdir=DIR             ps documentation [DOCDIR]
1902_ACEOF
1903
1904  cat <<\_ACEOF
1905
1906Program names:
1907  --program-prefix=PREFIX            prepend PREFIX to installed program names
1908  --program-suffix=SUFFIX            append SUFFIX to installed program names
1909  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1910
1911X features:
1912  --x-includes=DIR    X include files are in DIR
1913  --x-libraries=DIR   X library files are in DIR
1914
1915System types:
1916  --build=BUILD     configure for building on BUILD [guessed]
1917  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1918  --target=TARGET   configure for building compilers for TARGET [HOST]
1919_ACEOF
1920fi
1921
1922if test -n "$ac_init_help"; then
1923  case $ac_init_help in
1924     short | recursive ) echo "Configuration of ImageMagick 7.0.9-15:";;
1925   esac
1926  cat <<\_ACEOF
1927
1928Optional Features:
1929  --disable-option-checking  ignore unrecognized --enable/--with options
1930  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1931  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1932  --enable-silent-rules   less verbose build output (undo: "make V=1")
1933  --disable-silent-rules  verbose build output (undo: "make V=0")
1934  --enable-reproducible-build
1935                          enable reproducible build
1936  --enable-dependency-tracking
1937                          do not reject slow dependency extractors
1938  --disable-dependency-tracking
1939                          speeds up one-time build
1940  --enable-ld-version-script
1941                          enable linker version script (default is enabled
1942                          when possible)
1943  --enable-bounds-checking
1944                          enable run-time bounds-checking
1945  --enable-osx-universal-binary
1946                          build universal binary on OS X [[default=no]]
1947  --disable-openmp        do not use OpenMP
1948  --disable-opencl        do not use OpenCL
1949  --disable-largefile     omit support for large files
1950  --enable-shared[=PKGS]  build shared libraries [default=yes]
1951  --enable-static[=PKGS]  build static libraries [default=yes]
1952  --enable-fast-install[=PKGS]
1953                          optimize for fast installation [default=yes]
1954  --disable-libtool-lock  avoid locking (might break parallel builds)
1955  --enable-delegate-build look for delegate libraries in build directory
1956  --disable-deprecated    exclude deprecated methods in MagickCore and
1957                          MagickWand APIs
1958  --disable-installed     Formally install ImageMagick under PREFIX
1959  --disable-cipher        disable enciphering and deciphering image pixels
1960  --enable-zero-configuration
1961                          enable self-contained, embeddable,
1962                          zero-configuration ImageMagick
1963  --enable-hdri           accurately represent the wide range of intensity
1964                          levels found in real scenes
1965  --enable-pipes          enable pipes (|) in filenames
1966  --disable-assert        disable assert() statements in build
1967  --enable-maintainer-mode
1968                          enable make rules and dependencies not useful (and
1969                          sometimes confusing) to the casual installer
1970  --enable-hugepages      enable 'huge pages' support
1971  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1972  --enable-efence         enable 'efence' memory debug support
1973  --enable-prof           enable 'prof' profiling support
1974  --enable-gprof          enable 'gprof' profiling support
1975  --enable-gcov           enable 'gcov' profiling support
1976  --enable-legacy-support install legacy command-line utilities (default disabled)
1977  --disable-assert        turn off assertions
1978  --disable-docs          disable building of documentation
1979
1980Optional Packages:
1981  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1982  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1983  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1984  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1985  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1986                          instead of guessing
1987  --includearch-dir=DIR   ARCH specific include directory
1988  --sharearch-dir=DIR     ARCH specific config directory
1989  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1990  --without-threads       disable POSIX threads API support
1991  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1992                          both]
1993  --with-aix-soname=aix|svr4|both
1994                          shared library versioning (aka "SONAME") variant to
1995                          provide on AIX, [default=aix].
1996  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1997                          compiler's sysroot if not specified).
1998  --with-modules          enable building dynamically loadable modules
1999  --with-method-prefix=PREFIX
2000                          prefix MagickCore API methods
2001  --with-utilities	enable building command-line utilities (default yes)
2002  --with-quantum-depth=DEPTH
2003                          number of bits in a pixel quantum (default 16)
2004  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
2005                          memory)
2006  --with-frozenpaths      freeze delegate paths
2007  --without-magick-plus-plus
2008                          disable build/install of Magick++
2009  --with-package-release-name=NAME
2010                          encode this name into the shared library
2011  --with-perl             enable build/install of PerlMagick
2012  --with-perl-options=OPTIONS
2013                          options to pass on command-line when generating
2014                          PerlMagick build file
2015  --with-jemalloc         enable jemalloc memory allocation library support
2016  --with-tcmalloc         enable tcmalloc memory allocation library support
2017  --with-umem             enable umem memory allocation library support
2018  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
2019  --without-bzlib         disable BZLIB support
2020  --with-x                use the X Window System
2021  --without-zlib          disable ZLIB support
2022  --without-zstd          disable ZSTD support
2023  --with-apple-font-dir=DIR
2024                          Apple font directory
2025  --with-autotrace        enable autotrace support
2026  --without-dps           disable Display Postscript support
2027  --with-dejavu-font-dir=DIR
2028                          DejaVu font directory
2029  --without-fftw          disable FFTW support
2030  --without-flif          disable FLIF support
2031  --without-fpx           disable FlashPIX support
2032  --without-djvu          disable DjVu support
2033  --without-fontconfig    disable fontconfig support
2034  --without-freetype      disable Freetype support
2035  --without-raqm          disable Raqm support
2036  --with-gslib            enable Ghostscript library support
2037  --with-fontpath=DIR     prepend to default font search path
2038  --with-gs-font-dir=DIR  Ghostscript font directory
2039  --with-gvc              enable GVC support
2040  --without-heic          disable HEIC support
2041  --without-jbig          disable JBIG support
2042  --without-jpeg          disable JPEG support
2043  --without-jxl           disable Jpegxl support
2044  --without-lcms          disable lcms (v1.1X) support
2045  --without-openjp2       disable OpenJP2 support
2046  --without-lqr           disable Liquid Rescale support
2047  --without-lzma          disable LZMA support
2048  --without-openexr       disable OpenEXR support
2049  --without-pango         disable PANGO support
2050  --without-png           disable PNG support
2051  --without-raw           disable Raw support
2052  --with-rsvg             enable RSVG support
2053  --without-tiff          disable TIFF support
2054  --with-urw-base35-font-dir=DIR
2055                          URW-base35 font directory
2056  --without-webp          disable WEBP support
2057  --with-windows-font-dir=DIR
2058                          Windows font directory
2059  --with-wmf              enable WMF support
2060  --without-xml           disable XML support
2061
2062Some influential environment variables:
2063  CC          C compiler command
2064  CFLAGS      C compiler flags
2065  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2066              nonstandard directory <lib dir>
2067  LIBS        libraries to pass to the linker, e.g. -l<library>
2068  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2069              you have headers in a nonstandard directory <include dir>
2070  CPP         C preprocessor
2071  CXX         C++ compiler command
2072  CXXFLAGS    C++ compiler flags
2073  PKG_CONFIG  path to pkg-config utility
2074  PKG_CONFIG_PATH
2075              directories to add to pkg-config's search path
2076  PKG_CONFIG_LIBDIR
2077              path overriding pkg-config's built-in search path
2078  LT_SYS_LIBRARY_PATH
2079              User-defined run-time library search path.
2080  CXXCPP      C++ preprocessor
2081  XMKMF       Path to xmkmf, Makefile generator for X Window System
2082  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2083  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2084  LIBZSTD_CFLAGS
2085              C compiler flags for LIBZSTD, overriding pkg-config
2086  LIBZSTD_LIBS
2087              linker flags for LIBZSTD, overriding pkg-config
2088  AUTOTRACE_CFLAGS
2089              C compiler flags for AUTOTRACE, overriding pkg-config
2090  AUTOTRACE_LIBS
2091              linker flags for AUTOTRACE, overriding pkg-config
2092  fftw3_CFLAGS
2093              C compiler flags for fftw3, overriding pkg-config
2094  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
2095  ddjvuapi_CFLAGS
2096              C compiler flags for ddjvuapi, overriding pkg-config
2097  ddjvuapi_LIBS
2098              linker flags for ddjvuapi, overriding pkg-config
2099  FONTCONFIG_CFLAGS
2100              C compiler flags for FONTCONFIG, overriding pkg-config
2101  FONTCONFIG_LIBS
2102              linker flags for FONTCONFIG, overriding pkg-config
2103  FREETYPE_CFLAGS
2104              C compiler flags for FREETYPE, overriding pkg-config
2105  FREETYPE_LIBS
2106              linker flags for FREETYPE, overriding pkg-config
2107  RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2108  RAQM_LIBS   linker flags for RAQM, overriding pkg-config
2109  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2110  GVC_LIBS    linker flags for GVC, overriding pkg-config
2111  HEIF_CFLAGS C compiler flags for HEIF, overriding pkg-config
2112  HEIF_LIBS   linker flags for HEIF, overriding pkg-config
2113  LCMS2_CFLAGS
2114              C compiler flags for LCMS2, overriding pkg-config
2115  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
2116  LIBOPENJP2_CFLAGS
2117              C compiler flags for LIBOPENJP2, overriding pkg-config
2118  LIBOPENJP2_LIBS
2119              linker flags for LIBOPENJP2, overriding pkg-config
2120  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2121  LQR_LIBS    linker flags for LQR, overriding pkg-config
2122  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2123  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
2124  OPENEXR_CFLAGS
2125              C compiler flags for OPENEXR, overriding pkg-config
2126  OPENEXR_LIBS
2127              linker flags for OPENEXR, overriding pkg-config
2128  PANGO_CFLAGS
2129              C compiler flags for PANGO, overriding pkg-config
2130  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2131  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2132  PNG_LIBS    linker flags for PNG, overriding pkg-config
2133  RAW_R_CFLAGS
2134              C compiler flags for RAW_R, overriding pkg-config
2135  RAW_R_LIBS  linker flags for RAW_R, overriding pkg-config
2136  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2137  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2138  CAIRO_SVG_CFLAGS
2139              C compiler flags for CAIRO_SVG, overriding pkg-config
2140  CAIRO_SVG_LIBS
2141              linker flags for CAIRO_SVG, overriding pkg-config
2142  WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
2143  WEBP_LIBS   linker flags for WEBP, overriding pkg-config
2144  WEBPMUX_CFLAGS
2145              C compiler flags for WEBPMUX, overriding pkg-config
2146  WEBPMUX_LIBS
2147              linker flags for WEBPMUX, overriding pkg-config
2148  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
2149  XML_LIBS    linker flags for XML, overriding pkg-config
2150
2151Use these variables to override the choices made by `configure' or to help
2152it to find libraries and programs with nonstandard names/locations.
2153
2154Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2155ImageMagick home page: <https://imagemagick.org>.
2156_ACEOF
2157ac_status=$?
2158fi
2159
2160if test "$ac_init_help" = "recursive"; then
2161  # If there are subdirs, report their specific --help.
2162  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2163    test -d "$ac_dir" ||
2164      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2165      continue
2166    ac_builddir=.
2167
2168case "$ac_dir" in
2169.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2170*)
2171  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2172  # A ".." for each directory in $ac_dir_suffix.
2173  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2174  case $ac_top_builddir_sub in
2175  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2176  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2177  esac ;;
2178esac
2179ac_abs_top_builddir=$ac_pwd
2180ac_abs_builddir=$ac_pwd$ac_dir_suffix
2181# for backward compatibility:
2182ac_top_builddir=$ac_top_build_prefix
2183
2184case $srcdir in
2185  .)  # We are building in place.
2186    ac_srcdir=.
2187    ac_top_srcdir=$ac_top_builddir_sub
2188    ac_abs_top_srcdir=$ac_pwd ;;
2189  [\\/]* | ?:[\\/]* )  # Absolute name.
2190    ac_srcdir=$srcdir$ac_dir_suffix;
2191    ac_top_srcdir=$srcdir
2192    ac_abs_top_srcdir=$srcdir ;;
2193  *) # Relative name.
2194    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2195    ac_top_srcdir=$ac_top_build_prefix$srcdir
2196    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2197esac
2198ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2199
2200    cd "$ac_dir" || { ac_status=$?; continue; }
2201    # Check for guested configure.
2202    if test -f "$ac_srcdir/configure.gnu"; then
2203      echo &&
2204      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2205    elif test -f "$ac_srcdir/configure"; then
2206      echo &&
2207      $SHELL "$ac_srcdir/configure" --help=recursive
2208    else
2209      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2210    fi || ac_status=$?
2211    cd "$ac_pwd" || { ac_status=$?; break; }
2212  done
2213fi
2214
2215test -n "$ac_init_help" && exit $ac_status
2216if $ac_init_version; then
2217  cat <<\_ACEOF
2218ImageMagick configure 7.0.9-15
2219generated by GNU Autoconf 2.69
2220
2221Copyright (C) 2012 Free Software Foundation, Inc.
2222This configure script is free software; the Free Software Foundation
2223gives unlimited permission to copy, distribute and modify it.
2224_ACEOF
2225  exit
2226fi
2227
2228## ------------------------ ##
2229## Autoconf initialization. ##
2230## ------------------------ ##
2231
2232# ac_fn_c_try_compile LINENO
2233# --------------------------
2234# Try to compile conftest.$ac_ext, and return whether this succeeded.
2235ac_fn_c_try_compile ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  rm -f conftest.$ac_objext
2239  if { { ac_try="$ac_compile"
2240case "(($ac_try" in
2241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242  *) ac_try_echo=$ac_try;;
2243esac
2244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245$as_echo "$ac_try_echo"; } >&5
2246  (eval "$ac_compile") 2>conftest.err
2247  ac_status=$?
2248  if test -s conftest.err; then
2249    grep -v '^ *+' conftest.err >conftest.er1
2250    cat conftest.er1 >&5
2251    mv -f conftest.er1 conftest.err
2252  fi
2253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254  test $ac_status = 0; } && {
2255	 test -z "$ac_c_werror_flag" ||
2256	 test ! -s conftest.err
2257       } && test -s conftest.$ac_objext; then :
2258  ac_retval=0
2259else
2260  $as_echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263	ac_retval=1
2264fi
2265  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266  as_fn_set_status $ac_retval
2267
2268} # ac_fn_c_try_compile
2269
2270# ac_fn_c_try_cpp LINENO
2271# ----------------------
2272# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2273ac_fn_c_try_cpp ()
2274{
2275  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276  if { { ac_try="$ac_cpp conftest.$ac_ext"
2277case "(($ac_try" in
2278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279  *) ac_try_echo=$ac_try;;
2280esac
2281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282$as_echo "$ac_try_echo"; } >&5
2283  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2284  ac_status=$?
2285  if test -s conftest.err; then
2286    grep -v '^ *+' conftest.err >conftest.er1
2287    cat conftest.er1 >&5
2288    mv -f conftest.er1 conftest.err
2289  fi
2290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291  test $ac_status = 0; } > conftest.i && {
2292	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2293	 test ! -s conftest.err
2294       }; then :
2295  ac_retval=0
2296else
2297  $as_echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300    ac_retval=1
2301fi
2302  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303  as_fn_set_status $ac_retval
2304
2305} # ac_fn_c_try_cpp
2306
2307# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308# -------------------------------------------------------
2309# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310# the include files in INCLUDES and setting the cache variable VAR
2311# accordingly.
2312ac_fn_c_check_header_mongrel ()
2313{
2314  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315  if eval \${$3+:} false; then :
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
2318if eval \${$3+:} false; then :
2319  $as_echo_n "(cached) " >&6
2320fi
2321eval ac_res=\$$3
2322	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323$as_echo "$ac_res" >&6; }
2324else
2325  # Is the header compilable?
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327$as_echo_n "checking $2 usability... " >&6; }
2328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331#include <$2>
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"; then :
2334  ac_header_compiler=yes
2335else
2336  ac_header_compiler=no
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340$as_echo "$ac_header_compiler" >&6; }
2341
2342# Is the header present?
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344$as_echo_n "checking $2 presence... " >&6; }
2345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_cpp "$LINENO"; then :
2350  ac_header_preproc=yes
2351else
2352  ac_header_preproc=no
2353fi
2354rm -f conftest.err conftest.i conftest.$ac_ext
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356$as_echo "$ac_header_preproc" >&6; }
2357
2358# So?  What about this header?
2359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2360  yes:no: )
2361    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365    ;;
2366  no:yes:* )
2367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2370$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2374$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2375    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377( $as_echo "## ---------------------------------------------------------------- ##
2378## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
2379## ---------------------------------------------------------------- ##"
2380     ) | sed "s/^/$as_me: WARNING:     /" >&2
2381    ;;
2382esac
2383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2384$as_echo_n "checking for $2... " >&6; }
2385if eval \${$3+:} false; then :
2386  $as_echo_n "(cached) " >&6
2387else
2388  eval "$3=\$ac_header_compiler"
2389fi
2390eval ac_res=\$$3
2391	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392$as_echo "$ac_res" >&6; }
2393fi
2394  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395
2396} # ac_fn_c_check_header_mongrel
2397
2398# ac_fn_c_try_run LINENO
2399# ----------------------
2400# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2401# that executables *can* be run.
2402ac_fn_c_try_run ()
2403{
2404  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405  if { { ac_try="$ac_link"
2406case "(($ac_try" in
2407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408  *) ac_try_echo=$ac_try;;
2409esac
2410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411$as_echo "$ac_try_echo"; } >&5
2412  (eval "$ac_link") 2>&5
2413  ac_status=$?
2414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2416  { { case "(($ac_try" in
2417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418  *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422  (eval "$ac_try") 2>&5
2423  ac_status=$?
2424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425  test $ac_status = 0; }; }; then :
2426  ac_retval=0
2427else
2428  $as_echo "$as_me: program exited with status $ac_status" >&5
2429       $as_echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432       ac_retval=$ac_status
2433fi
2434  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2435  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436  as_fn_set_status $ac_retval
2437
2438} # ac_fn_c_try_run
2439
2440# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2441# -------------------------------------------------------
2442# Tests whether HEADER exists and can be compiled using the include files in
2443# INCLUDES, setting the cache variable VAR accordingly.
2444ac_fn_c_check_header_compile ()
2445{
2446  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448$as_echo_n "checking for $2... " >&6; }
2449if eval \${$3+:} false; then :
2450  $as_echo_n "(cached) " >&6
2451else
2452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h.  */
2454$4
2455#include <$2>
2456_ACEOF
2457if ac_fn_c_try_compile "$LINENO"; then :
2458  eval "$3=yes"
2459else
2460  eval "$3=no"
2461fi
2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463fi
2464eval ac_res=\$$3
2465	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466$as_echo "$ac_res" >&6; }
2467  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468
2469} # ac_fn_c_check_header_compile
2470
2471# ac_fn_cxx_try_compile LINENO
2472# ----------------------------
2473# Try to compile conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_compile ()
2475{
2476  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477  rm -f conftest.$ac_objext
2478  if { { ac_try="$ac_compile"
2479case "(($ac_try" in
2480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481  *) ac_try_echo=$ac_try;;
2482esac
2483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484$as_echo "$ac_try_echo"; } >&5
2485  (eval "$ac_compile") 2>conftest.err
2486  ac_status=$?
2487  if test -s conftest.err; then
2488    grep -v '^ *+' conftest.err >conftest.er1
2489    cat conftest.er1 >&5
2490    mv -f conftest.er1 conftest.err
2491  fi
2492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493  test $ac_status = 0; } && {
2494	 test -z "$ac_cxx_werror_flag" ||
2495	 test ! -s conftest.err
2496       } && test -s conftest.$ac_objext; then :
2497  ac_retval=0
2498else
2499  $as_echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502	ac_retval=1
2503fi
2504  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505  as_fn_set_status $ac_retval
2506
2507} # ac_fn_cxx_try_compile
2508
2509# ac_fn_c_try_link LINENO
2510# -----------------------
2511# Try to link conftest.$ac_ext, and return whether this succeeded.
2512ac_fn_c_try_link ()
2513{
2514  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515  rm -f conftest.$ac_objext conftest$ac_exeext
2516  if { { ac_try="$ac_link"
2517case "(($ac_try" in
2518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519  *) ac_try_echo=$ac_try;;
2520esac
2521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522$as_echo "$ac_try_echo"; } >&5
2523  (eval "$ac_link") 2>conftest.err
2524  ac_status=$?
2525  if test -s conftest.err; then
2526    grep -v '^ *+' conftest.err >conftest.er1
2527    cat conftest.er1 >&5
2528    mv -f conftest.er1 conftest.err
2529  fi
2530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531  test $ac_status = 0; } && {
2532	 test -z "$ac_c_werror_flag" ||
2533	 test ! -s conftest.err
2534       } && test -s conftest$ac_exeext && {
2535	 test "$cross_compiling" = yes ||
2536	 test -x conftest$ac_exeext
2537       }; then :
2538  ac_retval=0
2539else
2540  $as_echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543	ac_retval=1
2544fi
2545  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2546  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2547  # interfere with the next link command; also delete a directory that is
2548  # left behind by Apple's compiler.  We do this before executing the actions.
2549  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551  as_fn_set_status $ac_retval
2552
2553} # ac_fn_c_try_link
2554
2555# ac_fn_c_check_func LINENO FUNC VAR
2556# ----------------------------------
2557# Tests whether FUNC exists, setting the cache variable VAR accordingly
2558ac_fn_c_check_func ()
2559{
2560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562$as_echo_n "checking for $2... " >&6; }
2563if eval \${$3+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h.  */
2568/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2569   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2570#define $2 innocuous_$2
2571
2572/* System header to define __stub macros and hopefully few prototypes,
2573    which can conflict with char $2 (); below.
2574    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2575    <limits.h> exists even on freestanding compilers.  */
2576
2577#ifdef __STDC__
2578# include <limits.h>
2579#else
2580# include <assert.h>
2581#endif
2582
2583#undef $2
2584
2585/* Override any GCC internal prototype to avoid an error.
2586   Use char because int might match the return type of a GCC
2587   builtin and then its argument prototype would still apply.  */
2588#ifdef __cplusplus
2589extern "C"
2590#endif
2591char $2 ();
2592/* The GNU C library defines this for functions which it implements
2593    to always fail with ENOSYS.  Some functions are actually named
2594    something starting with __ and the normal name is an alias.  */
2595#if defined __stub_$2 || defined __stub___$2
2596choke me
2597#endif
2598
2599int
2600main ()
2601{
2602return $2 ();
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_link "$LINENO"; then :
2608  eval "$3=yes"
2609else
2610  eval "$3=no"
2611fi
2612rm -f core conftest.err conftest.$ac_objext \
2613    conftest$ac_exeext conftest.$ac_ext
2614fi
2615eval ac_res=\$$3
2616	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617$as_echo "$ac_res" >&6; }
2618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619
2620} # ac_fn_c_check_func
2621
2622# ac_fn_cxx_try_cpp LINENO
2623# ------------------------
2624# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2625ac_fn_cxx_try_cpp ()
2626{
2627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628  if { { ac_try="$ac_cpp conftest.$ac_ext"
2629case "(($ac_try" in
2630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631  *) ac_try_echo=$ac_try;;
2632esac
2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634$as_echo "$ac_try_echo"; } >&5
2635  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2636  ac_status=$?
2637  if test -s conftest.err; then
2638    grep -v '^ *+' conftest.err >conftest.er1
2639    cat conftest.er1 >&5
2640    mv -f conftest.er1 conftest.err
2641  fi
2642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643  test $ac_status = 0; } > conftest.i && {
2644	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2645	 test ! -s conftest.err
2646       }; then :
2647  ac_retval=0
2648else
2649  $as_echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652    ac_retval=1
2653fi
2654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655  as_fn_set_status $ac_retval
2656
2657} # ac_fn_cxx_try_cpp
2658
2659# ac_fn_cxx_try_link LINENO
2660# -------------------------
2661# Try to link conftest.$ac_ext, and return whether this succeeded.
2662ac_fn_cxx_try_link ()
2663{
2664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665  rm -f conftest.$ac_objext conftest$ac_exeext
2666  if { { ac_try="$ac_link"
2667case "(($ac_try" in
2668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669  *) ac_try_echo=$ac_try;;
2670esac
2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672$as_echo "$ac_try_echo"; } >&5
2673  (eval "$ac_link") 2>conftest.err
2674  ac_status=$?
2675  if test -s conftest.err; then
2676    grep -v '^ *+' conftest.err >conftest.er1
2677    cat conftest.er1 >&5
2678    mv -f conftest.er1 conftest.err
2679  fi
2680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681  test $ac_status = 0; } && {
2682	 test -z "$ac_cxx_werror_flag" ||
2683	 test ! -s conftest.err
2684       } && test -s conftest$ac_exeext && {
2685	 test "$cross_compiling" = yes ||
2686	 test -x conftest$ac_exeext
2687       }; then :
2688  ac_retval=0
2689else
2690  $as_echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693	ac_retval=1
2694fi
2695  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2696  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2697  # interfere with the next link command; also delete a directory that is
2698  # left behind by Apple's compiler.  We do this before executing the actions.
2699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701  as_fn_set_status $ac_retval
2702
2703} # ac_fn_cxx_try_link
2704
2705# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2706# -------------------------------------------
2707# Tests whether TYPE exists after having included INCLUDES, setting cache
2708# variable VAR accordingly.
2709ac_fn_c_check_type ()
2710{
2711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2713$as_echo_n "checking for $2... " >&6; }
2714if eval \${$3+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  eval "$3=no"
2718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h.  */
2720$4
2721int
2722main ()
2723{
2724if (sizeof ($2))
2725	 return 0;
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730if ac_fn_c_try_compile "$LINENO"; then :
2731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732/* end confdefs.h.  */
2733$4
2734int
2735main ()
2736{
2737if (sizeof (($2)))
2738	    return 0;
2739  ;
2740  return 0;
2741}
2742_ACEOF
2743if ac_fn_c_try_compile "$LINENO"; then :
2744
2745else
2746  eval "$3=yes"
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749fi
2750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751fi
2752eval ac_res=\$$3
2753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754$as_echo "$ac_res" >&6; }
2755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2756
2757} # ac_fn_c_check_type
2758
2759# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2760# ----------------------------------------------------
2761# Tries to find if the field MEMBER exists in type AGGR, after including
2762# INCLUDES, setting cache variable VAR accordingly.
2763ac_fn_c_check_member ()
2764{
2765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2767$as_echo_n "checking for $2.$3... " >&6; }
2768if eval \${$4+:} false; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h.  */
2773$5
2774int
2775main ()
2776{
2777static $2 ac_aggr;
2778if (ac_aggr.$3)
2779return 0;
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784if ac_fn_c_try_compile "$LINENO"; then :
2785  eval "$4=yes"
2786else
2787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788/* end confdefs.h.  */
2789$5
2790int
2791main ()
2792{
2793static $2 ac_aggr;
2794if (sizeof ac_aggr.$3)
2795return 0;
2796  ;
2797  return 0;
2798}
2799_ACEOF
2800if ac_fn_c_try_compile "$LINENO"; then :
2801  eval "$4=yes"
2802else
2803  eval "$4=no"
2804fi
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809eval ac_res=\$$4
2810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2813
2814} # ac_fn_c_check_member
2815
2816# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2817# ---------------------------------------------
2818# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2819# accordingly.
2820ac_fn_c_check_decl ()
2821{
2822  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823  as_decl_name=`echo $2|sed 's/ *(.*//'`
2824  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2826$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2827if eval \${$3+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h.  */
2832$4
2833int
2834main ()
2835{
2836#ifndef $as_decl_name
2837#ifdef __cplusplus
2838  (void) $as_decl_use;
2839#else
2840  (void) $as_decl_name;
2841#endif
2842#endif
2843
2844  ;
2845  return 0;
2846}
2847_ACEOF
2848if ac_fn_c_try_compile "$LINENO"; then :
2849  eval "$3=yes"
2850else
2851  eval "$3=no"
2852fi
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854fi
2855eval ac_res=\$$3
2856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857$as_echo "$ac_res" >&6; }
2858  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2859
2860} # ac_fn_c_check_decl
2861
2862# ac_fn_c_find_intX_t LINENO BITS VAR
2863# -----------------------------------
2864# Finds a signed integer type with width BITS, setting cache variable VAR
2865# accordingly.
2866ac_fn_c_find_intX_t ()
2867{
2868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2870$as_echo_n "checking for int$2_t... " >&6; }
2871if eval \${$3+:} false; then :
2872  $as_echo_n "(cached) " >&6
2873else
2874  eval "$3=no"
2875     # Order is important - never check a type that is potentially smaller
2876     # than half of the expected target width.
2877     for ac_type in int$2_t 'int' 'long int' \
2878	 'long long int' 'short int' 'signed char'; do
2879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h.  */
2881$ac_includes_default
2882	     enum { N = $2 / 2 - 1 };
2883int
2884main ()
2885{
2886static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2887test_array [0] = 0;
2888return test_array [0];
2889
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894if ac_fn_c_try_compile "$LINENO"; then :
2895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h.  */
2897$ac_includes_default
2898	        enum { N = $2 / 2 - 1 };
2899int
2900main ()
2901{
2902static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2903		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2904test_array [0] = 0;
2905return test_array [0];
2906
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_compile "$LINENO"; then :
2912
2913else
2914  case $ac_type in #(
2915  int$2_t) :
2916    eval "$3=yes" ;; #(
2917  *) :
2918    eval "$3=\$ac_type" ;;
2919esac
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922fi
2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924       if eval test \"x\$"$3"\" = x"no"; then :
2925
2926else
2927  break
2928fi
2929     done
2930fi
2931eval ac_res=\$$3
2932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2933$as_echo "$ac_res" >&6; }
2934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2935
2936} # ac_fn_c_find_intX_t
2937
2938# ac_fn_c_find_uintX_t LINENO BITS VAR
2939# ------------------------------------
2940# Finds an unsigned integer type with width BITS, setting cache variable VAR
2941# accordingly.
2942ac_fn_c_find_uintX_t ()
2943{
2944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2946$as_echo_n "checking for uint$2_t... " >&6; }
2947if eval \${$3+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  eval "$3=no"
2951     # Order is important - never check a type that is potentially smaller
2952     # than half of the expected target width.
2953     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2954	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h.  */
2957$ac_includes_default
2958int
2959main ()
2960{
2961static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2962test_array [0] = 0;
2963return test_array [0];
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970  case $ac_type in #(
2971  uint$2_t) :
2972    eval "$3=yes" ;; #(
2973  *) :
2974    eval "$3=\$ac_type" ;;
2975esac
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978       if eval test \"x\$"$3"\" = x"no"; then :
2979
2980else
2981  break
2982fi
2983     done
2984fi
2985eval ac_res=\$$3
2986	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2987$as_echo "$ac_res" >&6; }
2988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2989
2990} # ac_fn_c_find_uintX_t
2991
2992# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2993# --------------------------------------------
2994# Tries to find the compile-time value of EXPR in a program that includes
2995# INCLUDES, setting VAR accordingly. Returns whether the value could be
2996# computed
2997ac_fn_c_compute_int ()
2998{
2999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3000  if test "$cross_compiling" = yes; then
3001    # Depending upon the size, compute the lo and hi bounds.
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004$4
3005int
3006main ()
3007{
3008static int test_array [1 - 2 * !(($2) >= 0)];
3009test_array [0] = 0;
3010return test_array [0];
3011
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016if ac_fn_c_try_compile "$LINENO"; then :
3017  ac_lo=0 ac_mid=0
3018  while :; do
3019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h.  */
3021$4
3022int
3023main ()
3024{
3025static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3026test_array [0] = 0;
3027return test_array [0];
3028
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033if ac_fn_c_try_compile "$LINENO"; then :
3034  ac_hi=$ac_mid; break
3035else
3036  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3037			if test $ac_lo -le $ac_mid; then
3038			  ac_lo= ac_hi=
3039			  break
3040			fi
3041			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3042fi
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044  done
3045else
3046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048$4
3049int
3050main ()
3051{
3052static int test_array [1 - 2 * !(($2) < 0)];
3053test_array [0] = 0;
3054return test_array [0];
3055
3056  ;
3057  return 0;
3058}
3059_ACEOF
3060if ac_fn_c_try_compile "$LINENO"; then :
3061  ac_hi=-1 ac_mid=-1
3062  while :; do
3063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h.  */
3065$4
3066int
3067main ()
3068{
3069static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3070test_array [0] = 0;
3071return test_array [0];
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077if ac_fn_c_try_compile "$LINENO"; then :
3078  ac_lo=$ac_mid; break
3079else
3080  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3081			if test $ac_mid -le $ac_hi; then
3082			  ac_lo= ac_hi=
3083			  break
3084			fi
3085			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088  done
3089else
3090  ac_lo= ac_hi=
3091fi
3092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093fi
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095# Binary search between lo and hi bounds.
3096while test "x$ac_lo" != "x$ac_hi"; do
3097  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099/* end confdefs.h.  */
3100$4
3101int
3102main ()
3103{
3104static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3105test_array [0] = 0;
3106return test_array [0];
3107
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112if ac_fn_c_try_compile "$LINENO"; then :
3113  ac_hi=$ac_mid
3114else
3115  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3116fi
3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118done
3119case $ac_lo in #((
3120?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3121'') ac_retval=1 ;;
3122esac
3123  else
3124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h.  */
3126$4
3127static long int longval () { return $2; }
3128static unsigned long int ulongval () { return $2; }
3129#include <stdio.h>
3130#include <stdlib.h>
3131int
3132main ()
3133{
3134
3135  FILE *f = fopen ("conftest.val", "w");
3136  if (! f)
3137    return 1;
3138  if (($2) < 0)
3139    {
3140      long int i = longval ();
3141      if (i != ($2))
3142	return 1;
3143      fprintf (f, "%ld", i);
3144    }
3145  else
3146    {
3147      unsigned long int i = ulongval ();
3148      if (i != ($2))
3149	return 1;
3150      fprintf (f, "%lu", i);
3151    }
3152  /* Do not output a trailing newline, as this causes \r\n confusion
3153     on some platforms.  */
3154  return ferror (f) || fclose (f) != 0;
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160if ac_fn_c_try_run "$LINENO"; then :
3161  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3162else
3163  ac_retval=1
3164fi
3165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3166  conftest.$ac_objext conftest.beam conftest.$ac_ext
3167rm -f conftest.val
3168
3169  fi
3170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3171  as_fn_set_status $ac_retval
3172
3173} # ac_fn_c_compute_int
3174
3175# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3176# ---------------------------------------------------------
3177# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3178# the include files in INCLUDES and setting the cache variable VAR
3179# accordingly.
3180ac_fn_cxx_check_header_mongrel ()
3181{
3182  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3183  if eval \${$3+:} false; then :
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3185$as_echo_n "checking for $2... " >&6; }
3186if eval \${$3+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188fi
3189eval ac_res=\$$3
3190	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3191$as_echo "$ac_res" >&6; }
3192else
3193  # Is the header compilable?
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3195$as_echo_n "checking $2 usability... " >&6; }
3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198$4
3199#include <$2>
3200_ACEOF
3201if ac_fn_cxx_try_compile "$LINENO"; then :
3202  ac_header_compiler=yes
3203else
3204  ac_header_compiler=no
3205fi
3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3208$as_echo "$ac_header_compiler" >&6; }
3209
3210# Is the header present?
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3212$as_echo_n "checking $2 presence... " >&6; }
3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215#include <$2>
3216_ACEOF
3217if ac_fn_cxx_try_cpp "$LINENO"; then :
3218  ac_header_preproc=yes
3219else
3220  ac_header_preproc=no
3221fi
3222rm -f conftest.err conftest.i conftest.$ac_ext
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3224$as_echo "$ac_header_preproc" >&6; }
3225
3226# So?  What about this header?
3227case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3228  yes:no: )
3229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3230$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3232$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3233    ;;
3234  no:yes:* )
3235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3236$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3238$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3240$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3242$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3244$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3245( $as_echo "## ---------------------------------------------------------------- ##
3246## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
3247## ---------------------------------------------------------------- ##"
3248     ) | sed "s/^/$as_me: WARNING:     /" >&2
3249    ;;
3250esac
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3252$as_echo_n "checking for $2... " >&6; }
3253if eval \${$3+:} false; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  eval "$3=\$ac_header_compiler"
3257fi
3258eval ac_res=\$$3
3259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3260$as_echo "$ac_res" >&6; }
3261fi
3262  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3263
3264} # ac_fn_cxx_check_header_mongrel
3265cat >config.log <<_ACEOF
3266This file contains any messages produced by compilers while
3267running configure, to aid debugging if configure makes a mistake.
3268
3269It was created by ImageMagick $as_me 7.0.9-15, which was
3270generated by GNU Autoconf 2.69.  Invocation command line was
3271
3272  $ $0 $@
3273
3274_ACEOF
3275exec 5>>config.log
3276{
3277cat <<_ASUNAME
3278## --------- ##
3279## Platform. ##
3280## --------- ##
3281
3282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3283uname -m = `(uname -m) 2>/dev/null || echo unknown`
3284uname -r = `(uname -r) 2>/dev/null || echo unknown`
3285uname -s = `(uname -s) 2>/dev/null || echo unknown`
3286uname -v = `(uname -v) 2>/dev/null || echo unknown`
3287
3288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3290
3291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3294/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3298
3299_ASUNAME
3300
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306    $as_echo "PATH: $as_dir"
3307  done
3308IFS=$as_save_IFS
3309
3310} >&5
3311
3312cat >&5 <<_ACEOF
3313
3314
3315## ----------- ##
3316## Core tests. ##
3317## ----------- ##
3318
3319_ACEOF
3320
3321
3322# Keep a trace of the command line.
3323# Strip out --no-create and --no-recursion so they do not pile up.
3324# Strip out --silent because we don't want to record it for future runs.
3325# Also quote any args containing shell meta-characters.
3326# Make two passes to allow for proper duplicate-argument suppression.
3327ac_configure_args=
3328ac_configure_args0=
3329ac_configure_args1=
3330ac_must_keep_next=false
3331for ac_pass in 1 2
3332do
3333  for ac_arg
3334  do
3335    case $ac_arg in
3336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3338    | -silent | --silent | --silen | --sile | --sil)
3339      continue ;;
3340    *\'*)
3341      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3342    esac
3343    case $ac_pass in
3344    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3345    2)
3346      as_fn_append ac_configure_args1 " '$ac_arg'"
3347      if test $ac_must_keep_next = true; then
3348	ac_must_keep_next=false # Got value, back to normal.
3349      else
3350	case $ac_arg in
3351	  *=* | --config-cache | -C | -disable-* | --disable-* \
3352	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3353	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3354	  | -with-* | --with-* | -without-* | --without-* | --x)
3355	    case "$ac_configure_args0 " in
3356	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3357	    esac
3358	    ;;
3359	  -* ) ac_must_keep_next=true ;;
3360	esac
3361      fi
3362      as_fn_append ac_configure_args " '$ac_arg'"
3363      ;;
3364    esac
3365  done
3366done
3367{ ac_configure_args0=; unset ac_configure_args0;}
3368{ ac_configure_args1=; unset ac_configure_args1;}
3369
3370# When interrupted or exit'd, cleanup temporary files, and complete
3371# config.log.  We remove comments because anyway the quotes in there
3372# would cause problems or look ugly.
3373# WARNING: Use '\'' to represent an apostrophe within the trap.
3374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3375trap 'exit_status=$?
3376  # Save into config.log some information that might help in debugging.
3377  {
3378    echo
3379
3380    $as_echo "## ---------------- ##
3381## Cache variables. ##
3382## ---------------- ##"
3383    echo
3384    # The following way of writing the cache mishandles newlines in values,
3385(
3386  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3387    eval ac_val=\$$ac_var
3388    case $ac_val in #(
3389    *${as_nl}*)
3390      case $ac_var in #(
3391      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3393      esac
3394      case $ac_var in #(
3395      _ | IFS | as_nl) ;; #(
3396      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3397      *) { eval $ac_var=; unset $ac_var;} ;;
3398      esac ;;
3399    esac
3400  done
3401  (set) 2>&1 |
3402    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3403    *${as_nl}ac_space=\ *)
3404      sed -n \
3405	"s/'\''/'\''\\\\'\'''\''/g;
3406	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3407      ;; #(
3408    *)
3409      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3410      ;;
3411    esac |
3412    sort
3413)
3414    echo
3415
3416    $as_echo "## ----------------- ##
3417## Output variables. ##
3418## ----------------- ##"
3419    echo
3420    for ac_var in $ac_subst_vars
3421    do
3422      eval ac_val=\$$ac_var
3423      case $ac_val in
3424      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3425      esac
3426      $as_echo "$ac_var='\''$ac_val'\''"
3427    done | sort
3428    echo
3429
3430    if test -n "$ac_subst_files"; then
3431      $as_echo "## ------------------- ##
3432## File substitutions. ##
3433## ------------------- ##"
3434      echo
3435      for ac_var in $ac_subst_files
3436      do
3437	eval ac_val=\$$ac_var
3438	case $ac_val in
3439	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3440	esac
3441	$as_echo "$ac_var='\''$ac_val'\''"
3442      done | sort
3443      echo
3444    fi
3445
3446    if test -s confdefs.h; then
3447      $as_echo "## ----------- ##
3448## confdefs.h. ##
3449## ----------- ##"
3450      echo
3451      cat confdefs.h
3452      echo
3453    fi
3454    test "$ac_signal" != 0 &&
3455      $as_echo "$as_me: caught signal $ac_signal"
3456    $as_echo "$as_me: exit $exit_status"
3457  } >&5
3458  rm -f core *.core core.conftest.* &&
3459    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3460    exit $exit_status
3461' 0
3462for ac_signal in 1 2 13 15; do
3463  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3464done
3465ac_signal=0
3466
3467# confdefs.h avoids OS command line length limits that DEFS can exceed.
3468rm -f -r conftest* confdefs.h
3469
3470$as_echo "/* confdefs.h */" > confdefs.h
3471
3472# Predefined preprocessor variables.
3473
3474cat >>confdefs.h <<_ACEOF
3475#define PACKAGE_NAME "$PACKAGE_NAME"
3476_ACEOF
3477
3478cat >>confdefs.h <<_ACEOF
3479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3480_ACEOF
3481
3482cat >>confdefs.h <<_ACEOF
3483#define PACKAGE_VERSION "$PACKAGE_VERSION"
3484_ACEOF
3485
3486cat >>confdefs.h <<_ACEOF
3487#define PACKAGE_STRING "$PACKAGE_STRING"
3488_ACEOF
3489
3490cat >>confdefs.h <<_ACEOF
3491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3492_ACEOF
3493
3494cat >>confdefs.h <<_ACEOF
3495#define PACKAGE_URL "$PACKAGE_URL"
3496_ACEOF
3497
3498
3499# Let the site file select an alternate cache file if it wants to.
3500# Prefer an explicitly selected file to automatically selected ones.
3501ac_site_file1=NONE
3502ac_site_file2=NONE
3503if test -n "$CONFIG_SITE"; then
3504  # We do not want a PATH search for config.site.
3505  case $CONFIG_SITE in #((
3506    -*)  ac_site_file1=./$CONFIG_SITE;;
3507    */*) ac_site_file1=$CONFIG_SITE;;
3508    *)   ac_site_file1=./$CONFIG_SITE;;
3509  esac
3510elif test "x$prefix" != xNONE; then
3511  ac_site_file1=$prefix/share/config.site
3512  ac_site_file2=$prefix/etc/config.site
3513else
3514  ac_site_file1=$ac_default_prefix/share/config.site
3515  ac_site_file2=$ac_default_prefix/etc/config.site
3516fi
3517for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3518do
3519  test "x$ac_site_file" = xNONE && continue
3520  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3522$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3523    sed 's/^/| /' "$ac_site_file" >&5
3524    . "$ac_site_file" \
3525      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "failed to load site script $ac_site_file
3528See \`config.log' for more details" "$LINENO" 5; }
3529  fi
3530done
3531
3532if test -r "$cache_file"; then
3533  # Some versions of bash will fail to source /dev/null (special files
3534  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3535  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3536    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3537$as_echo "$as_me: loading cache $cache_file" >&6;}
3538    case $cache_file in
3539      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3540      *)                      . "./$cache_file";;
3541    esac
3542  fi
3543else
3544  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3545$as_echo "$as_me: creating cache $cache_file" >&6;}
3546  >$cache_file
3547fi
3548
3549as_fn_append ac_header_list " stdlib.h"
3550as_fn_append ac_header_list " unistd.h"
3551as_fn_append ac_header_list " sys/param.h"
3552# Check that the precious variables saved in the cache have kept the same
3553# value.
3554ac_cache_corrupted=false
3555for ac_var in $ac_precious_vars; do
3556  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3557  eval ac_new_set=\$ac_env_${ac_var}_set
3558  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3559  eval ac_new_val=\$ac_env_${ac_var}_value
3560  case $ac_old_set,$ac_new_set in
3561    set,)
3562      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3563$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3564      ac_cache_corrupted=: ;;
3565    ,set)
3566      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3567$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3568      ac_cache_corrupted=: ;;
3569    ,);;
3570    *)
3571      if test "x$ac_old_val" != "x$ac_new_val"; then
3572	# differences in whitespace do not lead to failure.
3573	ac_old_val_w=`echo x $ac_old_val`
3574	ac_new_val_w=`echo x $ac_new_val`
3575	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3576	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3577$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3578	  ac_cache_corrupted=:
3579	else
3580	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3581$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3582	  eval $ac_var=\$ac_old_val
3583	fi
3584	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3585$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3586	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3587$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3588      fi;;
3589  esac
3590  # Pass precious variables to config.status.
3591  if test "$ac_new_set" = set; then
3592    case $ac_new_val in
3593    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3594    *) ac_arg=$ac_var=$ac_new_val ;;
3595    esac
3596    case " $ac_configure_args " in
3597      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3598      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3599    esac
3600  fi
3601done
3602if $ac_cache_corrupted; then
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3606$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3607  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3608fi
3609## -------------------- ##
3610## Main body of script. ##
3611## -------------------- ##
3612
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620
3621ac_aux_dir=
3622for ac_dir in config "$srcdir"/config; do
3623  if test -f "$ac_dir/install-sh"; then
3624    ac_aux_dir=$ac_dir
3625    ac_install_sh="$ac_aux_dir/install-sh -c"
3626    break
3627  elif test -f "$ac_dir/install.sh"; then
3628    ac_aux_dir=$ac_dir
3629    ac_install_sh="$ac_aux_dir/install.sh -c"
3630    break
3631  elif test -f "$ac_dir/shtool"; then
3632    ac_aux_dir=$ac_dir
3633    ac_install_sh="$ac_aux_dir/shtool install -c"
3634    break
3635  fi
3636done
3637if test -z "$ac_aux_dir"; then
3638  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3639fi
3640
3641# These three variables are undocumented and unsupported,
3642# and are intended to be withdrawn in a future Autoconf release.
3643# They can cause serious problems if a builder's source tree is in a directory
3644# whose full name contains unusual characters.
3645ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3646ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3647ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3648
3649
3650
3651
3652ac_config_headers="$ac_config_headers config/config.h"
3653
3654
3655ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3656
3657# Make sure we can run config.sub.
3658$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3659  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3660
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3662$as_echo_n "checking build system type... " >&6; }
3663if ${ac_cv_build+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  ac_build_alias=$build_alias
3667test "x$ac_build_alias" = x &&
3668  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3669test "x$ac_build_alias" = x &&
3670  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3671ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3672  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3673
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3676$as_echo "$ac_cv_build" >&6; }
3677case $ac_cv_build in
3678*-*-*) ;;
3679*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3680esac
3681build=$ac_cv_build
3682ac_save_IFS=$IFS; IFS='-'
3683set x $ac_cv_build
3684shift
3685build_cpu=$1
3686build_vendor=$2
3687shift; shift
3688# Remember, the first character of IFS is used to create $*,
3689# except with old shells:
3690build_os=$*
3691IFS=$ac_save_IFS
3692case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3693
3694
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3696$as_echo_n "checking host system type... " >&6; }
3697if ${ac_cv_host+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  if test "x$host_alias" = x; then
3701  ac_cv_host=$ac_cv_build
3702else
3703  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3704    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3705fi
3706
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3709$as_echo "$ac_cv_host" >&6; }
3710case $ac_cv_host in
3711*-*-*) ;;
3712*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3713esac
3714host=$ac_cv_host
3715ac_save_IFS=$IFS; IFS='-'
3716set x $ac_cv_host
3717shift
3718host_cpu=$1
3719host_vendor=$2
3720shift; shift
3721# Remember, the first character of IFS is used to create $*,
3722# except with old shells:
3723host_os=$*
3724IFS=$ac_save_IFS
3725case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3726
3727
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3729$as_echo_n "checking target system type... " >&6; }
3730if ${ac_cv_target+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  if test "x$target_alias" = x; then
3734  ac_cv_target=$ac_cv_host
3735else
3736  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3737    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3738fi
3739
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3742$as_echo "$ac_cv_target" >&6; }
3743case $ac_cv_target in
3744*-*-*) ;;
3745*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3746esac
3747target=$ac_cv_target
3748ac_save_IFS=$IFS; IFS='-'
3749set x $ac_cv_target
3750shift
3751target_cpu=$1
3752target_vendor=$2
3753shift; shift
3754# Remember, the first character of IFS is used to create $*,
3755# except with old shells:
3756target_os=$*
3757IFS=$ac_save_IFS
3758case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3759
3760
3761# The aliases save the names the user supplied, while $host etc.
3762# will get canonicalized.
3763test -n "$target_alias" &&
3764  test "$program_prefix$program_suffix$program_transform_name" = \
3765    NONENONEs,x,x, &&
3766  program_prefix=${target_alias}-
3767
3768
3769am__api_version='1.16'
3770
3771# Find a good install program.  We prefer a C program (faster),
3772# so one script is as good as another.  But avoid the broken or
3773# incompatible versions:
3774# SysV /etc/install, /usr/sbin/install
3775# SunOS /usr/etc/install
3776# IRIX /sbin/install
3777# AIX /bin/install
3778# AmigaOS /C/install, which installs bootblocks on floppy discs
3779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782# OS/2's system install, which has a completely different semantic
3783# ./install, which can be erroneously created by make from ./install.sh.
3784# Reject install programs that cannot install multiple files.
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3786$as_echo_n "checking for a BSD-compatible install... " >&6; }
3787if test -z "$INSTALL"; then
3788if ${ac_cv_path_install+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794  IFS=$as_save_IFS
3795  test -z "$as_dir" && as_dir=.
3796    # Account for people who put trailing slashes in PATH elements.
3797case $as_dir/ in #((
3798  ./ | .// | /[cC]/* | \
3799  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3800  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3801  /usr/ucb/* ) ;;
3802  *)
3803    # OSF1 and SCO ODT 3.0 have their own names for install.
3804    # Don't use installbsd from OSF since it installs stuff as root
3805    # by default.
3806    for ac_prog in ginstall scoinst install; do
3807      for ac_exec_ext in '' $ac_executable_extensions; do
3808	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3809	  if test $ac_prog = install &&
3810	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3811	    # AIX install.  It has an incompatible calling convention.
3812	    :
3813	  elif test $ac_prog = install &&
3814	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815	    # program-specific install script used by HP pwplus--don't use.
3816	    :
3817	  else
3818	    rm -rf conftest.one conftest.two conftest.dir
3819	    echo one > conftest.one
3820	    echo two > conftest.two
3821	    mkdir conftest.dir
3822	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3823	      test -s conftest.one && test -s conftest.two &&
3824	      test -s conftest.dir/conftest.one &&
3825	      test -s conftest.dir/conftest.two
3826	    then
3827	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3828	      break 3
3829	    fi
3830	  fi
3831	fi
3832      done
3833    done
3834    ;;
3835esac
3836
3837  done
3838IFS=$as_save_IFS
3839
3840rm -rf conftest.one conftest.two conftest.dir
3841
3842fi
3843  if test "${ac_cv_path_install+set}" = set; then
3844    INSTALL=$ac_cv_path_install
3845  else
3846    # As a last resort, use the slow shell script.  Don't cache a
3847    # value for INSTALL within a source directory, because that will
3848    # break other packages using the cache if that directory is
3849    # removed, or if the value is a relative name.
3850    INSTALL=$ac_install_sh
3851  fi
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3854$as_echo "$INSTALL" >&6; }
3855
3856# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3857# It thinks the first close brace ends the variable substitution.
3858test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3859
3860test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3861
3862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3863
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3865$as_echo_n "checking whether build environment is sane... " >&6; }
3866# Reject unsafe characters in $srcdir or the absolute working directory
3867# name.  Accept space and tab only in the latter.
3868am_lf='
3869'
3870case `pwd` in
3871  *[\\\"\#\$\&\'\`$am_lf]*)
3872    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3873esac
3874case $srcdir in
3875  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3876    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3877esac
3878
3879# Do 'set' in a subshell so we don't clobber the current shell's
3880# arguments.  Must try -L first in case configure is actually a
3881# symlink; some systems play weird games with the mod time of symlinks
3882# (eg FreeBSD returns the mod time of the symlink's containing
3883# directory).
3884if (
3885   am_has_slept=no
3886   for am_try in 1 2; do
3887     echo "timestamp, slept: $am_has_slept" > conftest.file
3888     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3889     if test "$*" = "X"; then
3890	# -L didn't work.
3891	set X `ls -t "$srcdir/configure" conftest.file`
3892     fi
3893     if test "$*" != "X $srcdir/configure conftest.file" \
3894	&& test "$*" != "X conftest.file $srcdir/configure"; then
3895
3896	# If neither matched, then we have a broken ls.  This can happen
3897	# if, for instance, CONFIG_SHELL is bash and it inherits a
3898	# broken ls alias from the environment.  This has actually
3899	# happened.  Such a system could not be considered "sane".
3900	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3901  alias in your environment" "$LINENO" 5
3902     fi
3903     if test "$2" = conftest.file || test $am_try -eq 2; then
3904       break
3905     fi
3906     # Just in case.
3907     sleep 1
3908     am_has_slept=yes
3909   done
3910   test "$2" = conftest.file
3911   )
3912then
3913   # Ok.
3914   :
3915else
3916   as_fn_error $? "newly created file is older than distributed files!
3917Check your system clock" "$LINENO" 5
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
3921# If we didn't sleep, we still need to ensure time stamps of config.status and
3922# generated files are strictly newer.
3923am_sleep_pid=
3924if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3925  ( sleep 1 ) &
3926  am_sleep_pid=$!
3927fi
3928
3929rm -f conftest.file
3930
3931test "$program_prefix" != NONE &&
3932  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3933# Use a double $ so make ignores it.
3934test "$program_suffix" != NONE &&
3935  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3936# Double any \ or $.
3937# By default was `s,x,x', remove it if useless.
3938ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3939program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3940
3941# Expand $ac_aux_dir to an absolute path.
3942am_aux_dir=`cd "$ac_aux_dir" && pwd`
3943
3944if test x"${MISSING+set}" != xset; then
3945  case $am_aux_dir in
3946  *\ * | *\	*)
3947    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3948  *)
3949    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3950  esac
3951fi
3952# Use eval to expand $SHELL
3953if eval "$MISSING --is-lightweight"; then
3954  am_missing_run="$MISSING "
3955else
3956  am_missing_run=
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3958$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3959fi
3960
3961if test x"${install_sh+set}" != xset; then
3962  case $am_aux_dir in
3963  *\ * | *\	*)
3964    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3965  *)
3966    install_sh="\${SHELL} $am_aux_dir/install-sh"
3967  esac
3968fi
3969
3970# Installed binaries are usually stripped using 'strip' when the user
3971# run "make install-strip".  However 'strip' might not be the right
3972# tool to use in cross-compilation environments, therefore Automake
3973# will honor the 'STRIP' environment variable to overrule this program.
3974if test "$cross_compiling" != no; then
3975  if test -n "$ac_tool_prefix"; then
3976  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977set dummy ${ac_tool_prefix}strip; ac_word=$2
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if ${ac_cv_prog_STRIP+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if test -n "$STRIP"; then
3984  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995    break 2
3996  fi
3997done
3998  done
3999IFS=$as_save_IFS
4000
4001fi
4002fi
4003STRIP=$ac_cv_prog_STRIP
4004if test -n "$STRIP"; then
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4006$as_echo "$STRIP" >&6; }
4007else
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010fi
4011
4012
4013fi
4014if test -z "$ac_cv_prog_STRIP"; then
4015  ac_ct_STRIP=$STRIP
4016  # Extract the first word of "strip", so it can be a program name with args.
4017set dummy strip; ac_word=$2
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if test -n "$ac_ct_STRIP"; then
4024  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_ac_ct_STRIP="strip"
4034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4044if test -n "$ac_ct_STRIP"; then
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4046$as_echo "$ac_ct_STRIP" >&6; }
4047else
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
4050fi
4051
4052  if test "x$ac_ct_STRIP" = x; then
4053    STRIP=":"
4054  else
4055    case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059ac_tool_warned=yes ;;
4060esac
4061    STRIP=$ac_ct_STRIP
4062  fi
4063else
4064  STRIP="$ac_cv_prog_STRIP"
4065fi
4066
4067fi
4068INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4071$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4072if test -z "$MKDIR_P"; then
4073  if ${ac_cv_path_mkdir+:} false; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_prog in mkdir gmkdir; do
4082	 for ac_exec_ext in '' $ac_executable_extensions; do
4083	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4084	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4085	     'mkdir (GNU coreutils) '* | \
4086	     'mkdir (coreutils) '* | \
4087	     'mkdir (fileutils) '4.1*)
4088	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4089	       break 3;;
4090	   esac
4091	 done
4092       done
4093  done
4094IFS=$as_save_IFS
4095
4096fi
4097
4098  test -d ./--version && rmdir ./--version
4099  if test "${ac_cv_path_mkdir+set}" = set; then
4100    MKDIR_P="$ac_cv_path_mkdir -p"
4101  else
4102    # As a last resort, use the slow shell script.  Don't cache a
4103    # value for MKDIR_P within a source directory, because that will
4104    # break other packages using the cache if that directory is
4105    # removed, or if the value is a relative name.
4106    MKDIR_P="$ac_install_sh -d"
4107  fi
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4110$as_echo "$MKDIR_P" >&6; }
4111
4112for ac_prog in gawk mawk nawk awk
4113do
4114  # Extract the first word of "$ac_prog", so it can be a program name with args.
4115set dummy $ac_prog; ac_word=$2
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117$as_echo_n "checking for $ac_word... " >&6; }
4118if ${ac_cv_prog_AWK+:} false; then :
4119  $as_echo_n "(cached) " >&6
4120else
4121  if test -n "$AWK"; then
4122  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129    for ac_exec_ext in '' $ac_executable_extensions; do
4130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131    ac_cv_prog_AWK="$ac_prog"
4132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133    break 2
4134  fi
4135done
4136  done
4137IFS=$as_save_IFS
4138
4139fi
4140fi
4141AWK=$ac_cv_prog_AWK
4142if test -n "$AWK"; then
4143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4144$as_echo "$AWK" >&6; }
4145else
4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
4148fi
4149
4150
4151  test -n "$AWK" && break
4152done
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4155$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4156set x ${MAKE-make}
4157ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4158if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  cat >conftest.make <<\_ACEOF
4162SHELL = /bin/sh
4163all:
4164	@echo '@@@%%%=$(MAKE)=@@@%%%'
4165_ACEOF
4166# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4167case `${MAKE-make} -f conftest.make 2>/dev/null` in
4168  *@@@%%%=?*=@@@%%%*)
4169    eval ac_cv_prog_make_${ac_make}_set=yes;;
4170  *)
4171    eval ac_cv_prog_make_${ac_make}_set=no;;
4172esac
4173rm -f conftest.make
4174fi
4175if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177$as_echo "yes" >&6; }
4178  SET_MAKE=
4179else
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182  SET_MAKE="MAKE=${MAKE-make}"
4183fi
4184
4185rm -rf .tst 2>/dev/null
4186mkdir .tst 2>/dev/null
4187if test -d .tst; then
4188  am__leading_dot=.
4189else
4190  am__leading_dot=_
4191fi
4192rmdir .tst 2>/dev/null
4193
4194# Check whether --enable-silent-rules was given.
4195if test "${enable_silent_rules+set}" = set; then :
4196  enableval=$enable_silent_rules;
4197fi
4198
4199case $enable_silent_rules in # (((
4200  yes) AM_DEFAULT_VERBOSITY=0;;
4201   no) AM_DEFAULT_VERBOSITY=1;;
4202    *) AM_DEFAULT_VERBOSITY=1;;
4203esac
4204am_make=${MAKE-make}
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4206$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4207if ${am_cv_make_support_nested_variables+:} false; then :
4208  $as_echo_n "(cached) " >&6
4209else
4210  if $as_echo 'TRUE=$(BAR$(V))
4211BAR0=false
4212BAR1=true
4213V=1
4214am__doit:
4215	@$(TRUE)
4216.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4217  am_cv_make_support_nested_variables=yes
4218else
4219  am_cv_make_support_nested_variables=no
4220fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4223$as_echo "$am_cv_make_support_nested_variables" >&6; }
4224if test $am_cv_make_support_nested_variables = yes; then
4225    AM_V='$(V)'
4226  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4227else
4228  AM_V=$AM_DEFAULT_VERBOSITY
4229  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4230fi
4231AM_BACKSLASH='\'
4232
4233if test "`cd $srcdir && pwd`" != "`pwd`"; then
4234  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4235  # is not polluted with repeated "-I."
4236  am__isrc=' -I$(srcdir)'
4237  # test to see if srcdir already configured
4238  if test -f $srcdir/config.status; then
4239    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4240  fi
4241fi
4242
4243# test whether we have cygpath
4244if test -z "$CYGPATH_W"; then
4245  if (cygpath --version) >/dev/null 2>/dev/null; then
4246    CYGPATH_W='cygpath -w'
4247  else
4248    CYGPATH_W=echo
4249  fi
4250fi
4251
4252
4253# Define the identity of the package.
4254 PACKAGE='ImageMagick'
4255 VERSION='7.0.9-15'
4256
4257
4258cat >>confdefs.h <<_ACEOF
4259#define PACKAGE "$PACKAGE"
4260_ACEOF
4261
4262
4263cat >>confdefs.h <<_ACEOF
4264#define VERSION "$VERSION"
4265_ACEOF
4266
4267# Some tools Automake needs.
4268
4269ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4270
4271
4272AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4273
4274
4275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4276
4277
4278AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4279
4280
4281MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4282
4283# For better backward compatibility.  To be removed once Automake 1.9.x
4284# dies out for good.  For more background, see:
4285# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4286# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4287mkdir_p='$(MKDIR_P)'
4288
4289# We need awk for the "check" target (and possibly the TAP driver).  The
4290# system "awk" is bad on some platforms.
4291# Always define AMTAR for backward compatibility.  Yes, it's still used
4292# in the wild :-(  We should find a proper way to deprecate it ...
4293AMTAR='$${TAR-tar}'
4294
4295
4296# We'll loop over all known methods to create a tar archive until one works.
4297_am_tools='gnutar plaintar pax cpio none'
4298
4299# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4300      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4301      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4302      # and bug#13588).
4303      am_max_uid=2097151 # 2^21 - 1
4304      am_max_gid=$am_max_uid
4305      # The $UID and $GID variables are not portable, so we need to resort
4306      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4307      # below are definitely unexpected, so allow the users to see them
4308      # (that is, avoid stderr redirection).
4309      am_uid=`id -u || echo unknown`
4310      am_gid=`id -g || echo unknown`
4311      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4312$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4313      if test $am_uid -le $am_max_uid; then
4314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315$as_echo "yes" >&6; }
4316      else
4317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
4319         _am_tools=none
4320      fi
4321      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4322$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4323      if test $am_gid -le $am_max_gid; then
4324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325$as_echo "yes" >&6; }
4326      else
4327        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328$as_echo "no" >&6; }
4329        _am_tools=none
4330      fi
4331
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4333$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4334
4335  # Go ahead even if we have the value already cached.  We do so because we
4336  # need to set the values for the 'am__tar' and 'am__untar' variables.
4337  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4338
4339  for _am_tool in $_am_tools; do
4340    case $_am_tool in
4341    gnutar)
4342      for _am_tar in tar gnutar gtar; do
4343        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4344   ($_am_tar --version) >&5 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && break
4348      done
4349      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4350      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4351      am__untar="$_am_tar -xf -"
4352      ;;
4353    plaintar)
4354      # Must skip GNU tar: if it does not support --format= it doesn't create
4355      # ustar tarball either.
4356      (tar --version) >/dev/null 2>&1 && continue
4357      am__tar='tar chf - "$$tardir"'
4358      am__tar_='tar chf - "$tardir"'
4359      am__untar='tar xf -'
4360      ;;
4361    pax)
4362      am__tar='pax -L -x ustar -w "$$tardir"'
4363      am__tar_='pax -L -x ustar -w "$tardir"'
4364      am__untar='pax -r'
4365      ;;
4366    cpio)
4367      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4368      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4369      am__untar='cpio -i -H ustar -d'
4370      ;;
4371    none)
4372      am__tar=false
4373      am__tar_=false
4374      am__untar=false
4375      ;;
4376    esac
4377
4378    # If the value was cached, stop now.  We just wanted to have am__tar
4379    # and am__untar set.
4380    test -n "${am_cv_prog_tar_ustar}" && break
4381
4382    # tar/untar a dummy directory, and stop if the command works.
4383    rm -rf conftest.dir
4384    mkdir conftest.dir
4385    echo GrepMe > conftest.dir/file
4386    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4387   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }
4391    rm -rf conftest.dir
4392    if test -s conftest.tar; then
4393      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4394   ($am__untar <conftest.tar) >&5 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }
4398      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4399   (cat conftest.dir/file) >&5 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }
4403      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4404    fi
4405  done
4406  rm -rf conftest.dir
4407
4408  if ${am_cv_prog_tar_ustar+:} false; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411  am_cv_prog_tar_ustar=$_am_tool
4412fi
4413
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4415$as_echo "$am_cv_prog_tar_ustar" >&6; }
4416
4417
4418
4419
4420
4421
4422# POSIX will say in a future version that running "rm -f" with no argument
4423# is OK; and we want to be able to make that assumption in our Makefile
4424# recipes.  So use an aggressive probe to check that the usage we want is
4425# actually supported "in the wild" to an acceptable degree.
4426# See automake bug#10828.
4427# To make any issue more visible, cause the running configure to be aborted
4428# by default if the 'rm' program in use doesn't match our expectations; the
4429# user can still override this though.
4430if rm -f && rm -fr && rm -rf; then : OK; else
4431  cat >&2 <<'END'
4432Oops!
4433
4434Your 'rm' program seems unable to run without file operands specified
4435on the command line, even when the '-f' option is present.  This is contrary
4436to the behaviour of most rm programs out there, and not conforming with
4437the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4438
4439Please tell bug-automake@gnu.org about your system, including the value
4440of your $PATH and any error possibly output before this message.  This
4441can help us improve future automake versions.
4442
4443END
4444  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4445    echo 'Configuration will proceed anyway, since you have set the' >&2
4446    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4447    echo >&2
4448  else
4449    cat >&2 <<'END'
4450Aborting the configuration process, to ensure you take notice of the issue.
4451
4452You can download and install GNU coreutils to get an 'rm' implementation
4453that behaves properly: <https://www.gnu.org/software/coreutils/>.
4454
4455If you want to complete the configuration process using your problematic
4456'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4457to "yes", and re-run configure.
4458
4459END
4460    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4461  fi
4462fi
4463
4464# Check whether --enable-silent-rules was given.
4465if test "${enable_silent_rules+set}" = set; then :
4466  enableval=$enable_silent_rules;
4467fi
4468
4469case $enable_silent_rules in # (((
4470  yes) AM_DEFAULT_VERBOSITY=0;;
4471   no) AM_DEFAULT_VERBOSITY=1;;
4472    *) AM_DEFAULT_VERBOSITY=0;;
4473esac
4474am_make=${MAKE-make}
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4476$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4477if ${am_cv_make_support_nested_variables+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if $as_echo 'TRUE=$(BAR$(V))
4481BAR0=false
4482BAR1=true
4483V=1
4484am__doit:
4485	@$(TRUE)
4486.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4487  am_cv_make_support_nested_variables=yes
4488else
4489  am_cv_make_support_nested_variables=no
4490fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4493$as_echo "$am_cv_make_support_nested_variables" >&6; }
4494if test $am_cv_make_support_nested_variables = yes; then
4495    AM_V='$(V)'
4496  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4497else
4498  AM_V=$AM_DEFAULT_VERBOSITY
4499  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4500fi
4501AM_BACKSLASH='\'
4502
4503
4504#
4505# Save initial user-tunable values
4506#
4507USER_LIBS=$LIBS
4508for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS AR_FLAGS LIBS ; do
4509  eval isset=\${$var+set}
4510    if test "$isset" = 'set'; then
4511        eval val=$`echo $var`
4512        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4513    fi
4514done
4515
4516
4517CONFIGURE_ARGS="$0 ${ac_configure_args}"
4518
4519
4520# Check whether --enable-reproducible-build was given.
4521if test "${enable_reproducible_build+set}" = set; then :
4522  enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4523else
4524  enable_reproducible_build='no'
4525fi
4526
4527
4528# Source file containing package/library versioning information.
4529. ${srcdir}/version.sh
4530
4531echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4532
4533MAGICK_TARGET_CPU=$host_cpu
4534
4535
4536cat >>confdefs.h <<_ACEOF
4537#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4538_ACEOF
4539
4540
4541MAGICK_TARGET_VENDOR=$host_vendor
4542
4543
4544cat >>confdefs.h <<_ACEOF
4545#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4546_ACEOF
4547
4548
4549MAGICK_TARGET_OS=$host_os
4550
4551
4552cat >>confdefs.h <<_ACEOF
4553#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4554_ACEOF
4555
4556
4557
4558# Substitute versioning
4559MAGICK_MAJOR_VERSION=7
4560
4561MAGICK_MINOR_VERSION=0
4562
4563MAGICK_MICRO_VERSION=9
4564
4565MAGICK_PATCHLEVEL_VERSION=15
4566
4567MAGICK_VERSION=7.0.9-15
4568
4569MAGICK_GIT_REVISION=16660:73e93053c:20200105
4570
4571
4572# Substitute library versioning
4573MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4574
4575MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4576
4577
4578MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4579
4580MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4581
4582
4583if test X$enable_reproducible_build = Xyes; then :
4584  PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4585elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4586
4587fi
4588
4589
4590# Ensure that make can run correctly
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4592$as_echo_n "checking whether build environment is sane... " >&6; }
4593# Reject unsafe characters in $srcdir or the absolute working directory
4594# name.  Accept space and tab only in the latter.
4595am_lf='
4596'
4597case `pwd` in
4598  *[\\\"\#\$\&\'\`$am_lf]*)
4599    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4600esac
4601case $srcdir in
4602  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4603    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4604esac
4605
4606# Do 'set' in a subshell so we don't clobber the current shell's
4607# arguments.  Must try -L first in case configure is actually a
4608# symlink; some systems play weird games with the mod time of symlinks
4609# (eg FreeBSD returns the mod time of the symlink's containing
4610# directory).
4611if (
4612   am_has_slept=no
4613   for am_try in 1 2; do
4614     echo "timestamp, slept: $am_has_slept" > conftest.file
4615     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4616     if test "$*" = "X"; then
4617	# -L didn't work.
4618	set X `ls -t "$srcdir/configure" conftest.file`
4619     fi
4620     if test "$*" != "X $srcdir/configure conftest.file" \
4621	&& test "$*" != "X conftest.file $srcdir/configure"; then
4622
4623	# If neither matched, then we have a broken ls.  This can happen
4624	# if, for instance, CONFIG_SHELL is bash and it inherits a
4625	# broken ls alias from the environment.  This has actually
4626	# happened.  Such a system could not be considered "sane".
4627	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4628  alias in your environment" "$LINENO" 5
4629     fi
4630     if test "$2" = conftest.file || test $am_try -eq 2; then
4631       break
4632     fi
4633     # Just in case.
4634     sleep 1
4635     am_has_slept=yes
4636   done
4637   test "$2" = conftest.file
4638   )
4639then
4640   # Ok.
4641   :
4642else
4643   as_fn_error $? "newly created file is older than distributed files!
4644Check your system clock" "$LINENO" 5
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647$as_echo "yes" >&6; }
4648# If we didn't sleep, we still need to ensure time stamps of config.status and
4649# generated files are strictly newer.
4650am_sleep_pid=
4651if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4652  ( sleep 1 ) &
4653  am_sleep_pid=$!
4654fi
4655
4656rm -f conftest.file
4657
4658
4659# versioning of library
4660MAGICK_LIB_VERSION="0x"
4661if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4662  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4663fi
4664MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4665if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4666  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4667fi
4668MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4669if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4670  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4671fi
4672MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4673
4674
4675# Definition used to define MagickLibVersionText in version.h
4676MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4677
4678
4679# Definition used to define MagickLibVersionNumber in version.h
4680MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4681
4682
4683MAGICKPP_LIB_VERSION="0x"
4684if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4685  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4686fi
4687MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4688if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4689  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4690fi
4691MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4692if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4693  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4694fi
4695MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4696
4697
4698# Definition used to define MagickLibVersionText in version.h
4699MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4700
4701
4702# Definition used to define MagickLibVersionNumber in version.h
4703MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4704
4705
4706
4707
4708# Regenerate config.status if ChangeLog or version.sh is updated.
4709CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4710
4711
4712PERLMAINCC=$CC
4713
4714MAGICK_CFLAGS=''
4715MAGICK_CPPFLAGS=$CPPFLAGS_USER
4716MAGICK_PCFLAGS=$CPPFLAGS_USER
4717MAGICK_LDFLAGS=''
4718MAGICK_LIBS=''
4719MAGICK_FEATURES=''
4720
4721#
4722# Evaluate shell variable equivalents to Makefile directory variables
4723#
4724if test "x$prefix" = xNONE; then
4725    prefix=$ac_default_prefix
4726fi
4727# Let make expand exec_prefix.
4728if test "x$exec_prefix" = xNONE; then
4729    exec_prefix='${prefix}'
4730fi
4731
4732#
4733eval "eval PREFIX_DIR=${prefix}"
4734
4735eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4736
4737eval "eval BIN_DIR=$bindir"
4738
4739eval "eval SBIN_DIR=$sbindir"
4740
4741eval "eval LIBEXEC_DIR=$libexecdir"
4742
4743eval "eval DATA_DIR=$datadir"
4744
4745eval "eval DOC_DIR=$datadir/doc"
4746
4747eval "eval SYSCONF_DIR=$sysconfdir"
4748
4749eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4750
4751eval "eval LOCALSTATE_DIR=$localstatedir"
4752
4753eval "eval LIB_DIR=$libdir"
4754
4755eval "eval INCLUDE_DIR=$includedir"
4756
4757eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4758
4759eval "eval INFO_DIR=$infodir"
4760
4761eval "eval MAN_DIR=$mandir"
4762
4763
4764# Get full paths to source and build directories
4765srcdirfull="`cd $srcdir && pwd`"
4766builddir="`pwd`"
4767
4768#
4769# Compute variables useful for running uninstalled software.
4770#
4771MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4772MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4773MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4774MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4775DIRSEP=':'
4776case "${build_os}" in
4777    mingw* )
4778        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4779        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4780        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4781        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4782        DIRSEP=';'
4783    ;;
4784esac
4785case "${host_os}" in
4786  mingw* )
4787    DIRSEP=';'
4788    ;;
4789esac
4790
4791
4792
4793
4794
4795
4796
4797#
4798# Enable OS features.
4799#
4800DEPDIR="${am__leading_dot}deps"
4801
4802ac_config_commands="$ac_config_commands depfiles"
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4805$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4806cat > confinc.mk << 'END'
4807am__doit:
4808	@echo this is the am__doit target >confinc.out
4809.PHONY: am__doit
4810END
4811am__include="#"
4812am__quote=
4813# BSD make does it like this.
4814echo '.include "confinc.mk" # ignored' > confmf.BSD
4815# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4816echo 'include confinc.mk # ignored' > confmf.GNU
4817_am_result=no
4818for s in GNU BSD; do
4819  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4820   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }
4824  case $?:`cat confinc.out 2>/dev/null` in #(
4825  '0:this is the am__doit target') :
4826    case $s in #(
4827  BSD) :
4828    am__include='.include' am__quote='"' ;; #(
4829  *) :
4830    am__include='include' am__quote='' ;;
4831esac ;; #(
4832  *) :
4833     ;;
4834esac
4835  if test "$am__include" != "#"; then
4836    _am_result="yes ($s style)"
4837    break
4838  fi
4839done
4840rm -f confinc.* confmf.*
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4842$as_echo "${_am_result}" >&6; }
4843
4844# Check whether --enable-dependency-tracking was given.
4845if test "${enable_dependency_tracking+set}" = set; then :
4846  enableval=$enable_dependency_tracking;
4847fi
4848
4849if test "x$enable_dependency_tracking" != xno; then
4850  am_depcomp="$ac_aux_dir/depcomp"
4851  AMDEPBACKSLASH='\'
4852  am__nodep='_no'
4853fi
4854 if test "x$enable_dependency_tracking" != xno; then
4855  AMDEP_TRUE=
4856  AMDEP_FALSE='#'
4857else
4858  AMDEP_TRUE='#'
4859  AMDEP_FALSE=
4860fi
4861
4862
4863ac_ext=c
4864ac_cpp='$CPP $CPPFLAGS'
4865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868if test -n "$ac_tool_prefix"; then
4869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4870set dummy ${ac_tool_prefix}gcc; ac_word=$2
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872$as_echo_n "checking for $ac_word... " >&6; }
4873if ${ac_cv_prog_CC+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  if test -n "$CC"; then
4877  ac_cv_prog_CC="$CC" # Let the user override the test.
4878else
4879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882  IFS=$as_save_IFS
4883  test -z "$as_dir" && as_dir=.
4884    for ac_exec_ext in '' $ac_executable_extensions; do
4885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888    break 2
4889  fi
4890done
4891  done
4892IFS=$as_save_IFS
4893
4894fi
4895fi
4896CC=$ac_cv_prog_CC
4897if test -n "$CC"; then
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4899$as_echo "$CC" >&6; }
4900else
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903fi
4904
4905
4906fi
4907if test -z "$ac_cv_prog_CC"; then
4908  ac_ct_CC=$CC
4909  # Extract the first word of "gcc", so it can be a program name with args.
4910set dummy gcc; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if ${ac_cv_prog_ac_ct_CC+:} false; then :
4914  $as_echo_n "(cached) " >&6
4915else
4916  if test -n "$ac_ct_CC"; then
4917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  test -z "$as_dir" && as_dir=.
4924    for ac_exec_ext in '' $ac_executable_extensions; do
4925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926    ac_cv_prog_ac_ct_CC="gcc"
4927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931  done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936ac_ct_CC=$ac_cv_prog_ac_ct_CC
4937if test -n "$ac_ct_CC"; then
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4939$as_echo "$ac_ct_CC" >&6; }
4940else
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945  if test "x$ac_ct_CC" = x; then
4946    CC=""
4947  else
4948    case $cross_compiling:$ac_tool_warned in
4949yes:)
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952ac_tool_warned=yes ;;
4953esac
4954    CC=$ac_ct_CC
4955  fi
4956else
4957  CC="$ac_cv_prog_CC"
4958fi
4959
4960if test -z "$CC"; then
4961          if test -n "$ac_tool_prefix"; then
4962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4963set dummy ${ac_tool_prefix}cc; ac_word=$2
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965$as_echo_n "checking for $ac_word... " >&6; }
4966if ${ac_cv_prog_CC+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  if test -n "$CC"; then
4970  ac_cv_prog_CC="$CC" # Let the user override the test.
4971else
4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977    for ac_exec_ext in '' $ac_executable_extensions; do
4978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979    ac_cv_prog_CC="${ac_tool_prefix}cc"
4980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981    break 2
4982  fi
4983done
4984  done
4985IFS=$as_save_IFS
4986
4987fi
4988fi
4989CC=$ac_cv_prog_CC
4990if test -n "$CC"; then
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4992$as_echo "$CC" >&6; }
4993else
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995$as_echo "no" >&6; }
4996fi
4997
4998
4999  fi
5000fi
5001if test -z "$CC"; then
5002  # Extract the first word of "cc", so it can be a program name with args.
5003set dummy cc; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if ${ac_cv_prog_CC+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$CC"; then
5010  ac_cv_prog_CC="$CC" # Let the user override the test.
5011else
5012  ac_prog_rejected=no
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5021       ac_prog_rejected=yes
5022       continue
5023     fi
5024    ac_cv_prog_CC="cc"
5025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032if test $ac_prog_rejected = yes; then
5033  # We found a bogon in the path, so make sure we never use it.
5034  set dummy $ac_cv_prog_CC
5035  shift
5036  if test $# != 0; then
5037    # We chose a different compiler from the bogus one.
5038    # However, it has the same basename, so the bogon will be chosen
5039    # first if we set CC to just the basename; use the full file name.
5040    shift
5041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5042  fi
5043fi
5044fi
5045fi
5046CC=$ac_cv_prog_CC
5047if test -n "$CC"; then
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5049$as_echo "$CC" >&6; }
5050else
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055
5056fi
5057if test -z "$CC"; then
5058  if test -n "$ac_tool_prefix"; then
5059  for ac_prog in cl.exe
5060  do
5061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064$as_echo_n "checking for $ac_word... " >&6; }
5065if ${ac_cv_prog_CC+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  if test -n "$CC"; then
5069  ac_cv_prog_CC="$CC" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074  IFS=$as_save_IFS
5075  test -z "$as_dir" && as_dir=.
5076    for ac_exec_ext in '' $ac_executable_extensions; do
5077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080    break 2
5081  fi
5082done
5083  done
5084IFS=$as_save_IFS
5085
5086fi
5087fi
5088CC=$ac_cv_prog_CC
5089if test -n "$CC"; then
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5091$as_echo "$CC" >&6; }
5092else
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
5095fi
5096
5097
5098    test -n "$CC" && break
5099  done
5100fi
5101if test -z "$CC"; then
5102  ac_ct_CC=$CC
5103  for ac_prog in cl.exe
5104do
5105  # Extract the first word of "$ac_prog", so it can be a program name with args.
5106set dummy $ac_prog; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_ac_ct_CC+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  if test -n "$ac_ct_CC"; then
5113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  test -z "$as_dir" && as_dir=.
5120    for ac_exec_ext in '' $ac_executable_extensions; do
5121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122    ac_cv_prog_ac_ct_CC="$ac_prog"
5123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124    break 2
5125  fi
5126done
5127  done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132ac_ct_CC=$ac_cv_prog_ac_ct_CC
5133if test -n "$ac_ct_CC"; then
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5135$as_echo "$ac_ct_CC" >&6; }
5136else
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142  test -n "$ac_ct_CC" && break
5143done
5144
5145  if test "x$ac_ct_CC" = x; then
5146    CC=""
5147  else
5148    case $cross_compiling:$ac_tool_warned in
5149yes:)
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152ac_tool_warned=yes ;;
5153esac
5154    CC=$ac_ct_CC
5155  fi
5156fi
5157
5158fi
5159
5160
5161test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5163as_fn_error $? "no acceptable C compiler found in \$PATH
5164See \`config.log' for more details" "$LINENO" 5; }
5165
5166# Provide some information about the compiler.
5167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5168set X $ac_compile
5169ac_compiler=$2
5170for ac_option in --version -v -V -qversion; do
5171  { { ac_try="$ac_compiler $ac_option >&5"
5172case "(($ac_try" in
5173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174  *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177$as_echo "$ac_try_echo"; } >&5
5178  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179  ac_status=$?
5180  if test -s conftest.err; then
5181    sed '10a\
5182... rest of stderr output deleted ...
5183         10q' conftest.err >conftest.er1
5184    cat conftest.er1 >&5
5185  fi
5186  rm -f conftest.er1 conftest.err
5187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188  test $ac_status = 0; }
5189done
5190
5191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193
5194int
5195main ()
5196{
5197
5198  ;
5199  return 0;
5200}
5201_ACEOF
5202ac_clean_files_save=$ac_clean_files
5203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5204# Try to create an executable without -o first, disregard a.out.
5205# It will help us diagnose broken compilers, and finding out an intuition
5206# of exeext.
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5208$as_echo_n "checking whether the C compiler works... " >&6; }
5209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5210
5211# The possible output files:
5212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5213
5214ac_rmfiles=
5215for ac_file in $ac_files
5216do
5217  case $ac_file in
5218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5220  esac
5221done
5222rm -f $ac_rmfiles
5223
5224if { { ac_try="$ac_link_default"
5225case "(($ac_try" in
5226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227  *) ac_try_echo=$ac_try;;
5228esac
5229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5230$as_echo "$ac_try_echo"; } >&5
5231  (eval "$ac_link_default") 2>&5
5232  ac_status=$?
5233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234  test $ac_status = 0; }; then :
5235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5238# so that the user can short-circuit this test for compilers unknown to
5239# Autoconf.
5240for ac_file in $ac_files ''
5241do
5242  test -f "$ac_file" || continue
5243  case $ac_file in
5244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5245	;;
5246    [ab].out )
5247	# We found the default executable, but exeext='' is most
5248	# certainly right.
5249	break;;
5250    *.* )
5251	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5252	then :; else
5253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5254	fi
5255	# We set ac_cv_exeext here because the later test for it is not
5256	# safe: cross compilers may not add the suffix if given an `-o'
5257	# argument, so we may need to know it at that point already.
5258	# Even if this section looks crufty: it has the advantage of
5259	# actually working.
5260	break;;
5261    * )
5262	break;;
5263  esac
5264done
5265test "$ac_cv_exeext" = no && ac_cv_exeext=
5266
5267else
5268  ac_file=''
5269fi
5270if test -z "$ac_file"; then :
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
5273$as_echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5278as_fn_error 77 "C compiler cannot create executables
5279See \`config.log' for more details" "$LINENO" 5; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282$as_echo "yes" >&6; }
5283fi
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5285$as_echo_n "checking for C compiler default output file name... " >&6; }
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5287$as_echo "$ac_file" >&6; }
5288ac_exeext=$ac_cv_exeext
5289
5290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5291ac_clean_files=$ac_clean_files_save
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5293$as_echo_n "checking for suffix of executables... " >&6; }
5294if { { ac_try="$ac_link"
5295case "(($ac_try" in
5296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297  *) ac_try_echo=$ac_try;;
5298esac
5299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5300$as_echo "$ac_try_echo"; } >&5
5301  (eval "$ac_link") 2>&5
5302  ac_status=$?
5303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5304  test $ac_status = 0; }; then :
5305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5307# work properly (i.e., refer to `conftest.exe'), while it won't with
5308# `rm'.
5309for ac_file in conftest.exe conftest conftest.*; do
5310  test -f "$ac_file" || continue
5311  case $ac_file in
5312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5314	  break;;
5315    * ) break;;
5316  esac
5317done
5318else
5319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5322See \`config.log' for more details" "$LINENO" 5; }
5323fi
5324rm -f conftest conftest$ac_cv_exeext
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5326$as_echo "$ac_cv_exeext" >&6; }
5327
5328rm -f conftest.$ac_ext
5329EXEEXT=$ac_cv_exeext
5330ac_exeext=$EXEEXT
5331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h.  */
5333#include <stdio.h>
5334int
5335main ()
5336{
5337FILE *f = fopen ("conftest.out", "w");
5338 return ferror (f) || fclose (f) != 0;
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344ac_clean_files="$ac_clean_files conftest.out"
5345# Check that the compiler produces executables we can run.  If not, either
5346# the compiler is broken, or we cross compile.
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5348$as_echo_n "checking whether we are cross compiling... " >&6; }
5349if test "$cross_compiling" != yes; then
5350  { { ac_try="$ac_link"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5356$as_echo "$ac_try_echo"; } >&5
5357  (eval "$ac_link") 2>&5
5358  ac_status=$?
5359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5360  test $ac_status = 0; }
5361  if { ac_try='./conftest$ac_cv_exeext'
5362  { { case "(($ac_try" in
5363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364  *) ac_try_echo=$ac_try;;
5365esac
5366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367$as_echo "$ac_try_echo"; } >&5
5368  (eval "$ac_try") 2>&5
5369  ac_status=$?
5370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371  test $ac_status = 0; }; }; then
5372    cross_compiling=no
5373  else
5374    if test "$cross_compiling" = maybe; then
5375	cross_compiling=yes
5376    else
5377	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379as_fn_error $? "cannot run C compiled programs.
5380If you meant to cross compile, use \`--host'.
5381See \`config.log' for more details" "$LINENO" 5; }
5382    fi
5383  fi
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5386$as_echo "$cross_compiling" >&6; }
5387
5388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5389ac_clean_files=$ac_clean_files_save
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5391$as_echo_n "checking for suffix of object files... " >&6; }
5392if ${ac_cv_objext+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397
5398int
5399main ()
5400{
5401
5402  ;
5403  return 0;
5404}
5405_ACEOF
5406rm -f conftest.o conftest.obj
5407if { { ac_try="$ac_compile"
5408case "(($ac_try" in
5409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410  *) ac_try_echo=$ac_try;;
5411esac
5412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5413$as_echo "$ac_try_echo"; } >&5
5414  (eval "$ac_compile") 2>&5
5415  ac_status=$?
5416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417  test $ac_status = 0; }; then :
5418  for ac_file in conftest.o conftest.obj conftest.*; do
5419  test -f "$ac_file" || continue;
5420  case $ac_file in
5421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5422    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5423       break;;
5424  esac
5425done
5426else
5427  $as_echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5432as_fn_error $? "cannot compute suffix of object files: cannot compile
5433See \`config.log' for more details" "$LINENO" 5; }
5434fi
5435rm -f conftest.$ac_cv_objext conftest.$ac_ext
5436fi
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5438$as_echo "$ac_cv_objext" >&6; }
5439OBJEXT=$ac_cv_objext
5440ac_objext=$OBJEXT
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5443if ${ac_cv_c_compiler_gnu+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448
5449int
5450main ()
5451{
5452#ifndef __GNUC__
5453       choke me
5454#endif
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_compile "$LINENO"; then :
5461  ac_compiler_gnu=yes
5462else
5463  ac_compiler_gnu=no
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466ac_cv_c_compiler_gnu=$ac_compiler_gnu
5467
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5471if test $ac_compiler_gnu = yes; then
5472  GCC=yes
5473else
5474  GCC=
5475fi
5476ac_test_CFLAGS=${CFLAGS+set}
5477ac_save_CFLAGS=$CFLAGS
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5479$as_echo_n "checking whether $CC accepts -g... " >&6; }
5480if ${ac_cv_prog_cc_g+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  ac_save_c_werror_flag=$ac_c_werror_flag
5484   ac_c_werror_flag=yes
5485   ac_cv_prog_cc_g=no
5486   CFLAGS="-g"
5487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489
5490int
5491main ()
5492{
5493
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
5499  ac_cv_prog_cc_g=yes
5500else
5501  CFLAGS=""
5502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504
5505int
5506main ()
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_compile "$LINENO"; then :
5514
5515else
5516  ac_c_werror_flag=$ac_save_c_werror_flag
5517	 CFLAGS="-g"
5518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520
5521int
5522main ()
5523{
5524
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  ac_cv_prog_cc_g=yes
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537   ac_c_werror_flag=$ac_save_c_werror_flag
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5540$as_echo "$ac_cv_prog_cc_g" >&6; }
5541if test "$ac_test_CFLAGS" = set; then
5542  CFLAGS=$ac_save_CFLAGS
5543elif test $ac_cv_prog_cc_g = yes; then
5544  if test "$GCC" = yes; then
5545    CFLAGS="-g -O2"
5546  else
5547    CFLAGS="-g"
5548  fi
5549else
5550  if test "$GCC" = yes; then
5551    CFLAGS="-O2"
5552  else
5553    CFLAGS=
5554  fi
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5558if ${ac_cv_prog_cc_c89+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  ac_cv_prog_cc_c89=no
5562ac_save_CC=$CC
5563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565#include <stdarg.h>
5566#include <stdio.h>
5567struct stat;
5568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5569struct buf { int x; };
5570FILE * (*rcsopen) (struct buf *, struct stat *, int);
5571static char *e (p, i)
5572     char **p;
5573     int i;
5574{
5575  return p[i];
5576}
5577static char *f (char * (*g) (char **, int), char **p, ...)
5578{
5579  char *s;
5580  va_list v;
5581  va_start (v,p);
5582  s = g (p, va_arg (v,int));
5583  va_end (v);
5584  return s;
5585}
5586
5587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5588   function prototypes and stuff, but not '\xHH' hex character constants.
5589   These don't provoke an error unfortunately, instead are silently treated
5590   as 'x'.  The following induces an error, until -std is added to get
5591   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5592   array size at least.  It's necessary to write '\x00'==0 to get something
5593   that's true only with -std.  */
5594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5595
5596/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5597   inside strings and character constants.  */
5598#define FOO(x) 'x'
5599int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5600
5601int test (int i, double x);
5602struct s1 {int (*f) (int a);};
5603struct s2 {int (*f) (double a);};
5604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5605int argc;
5606char **argv;
5607int
5608main ()
5609{
5610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5616	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5617do
5618  CC="$ac_save_CC $ac_arg"
5619  if ac_fn_c_try_compile "$LINENO"; then :
5620  ac_cv_prog_cc_c89=$ac_arg
5621fi
5622rm -f core conftest.err conftest.$ac_objext
5623  test "x$ac_cv_prog_cc_c89" != "xno" && break
5624done
5625rm -f conftest.$ac_ext
5626CC=$ac_save_CC
5627
5628fi
5629# AC_CACHE_VAL
5630case "x$ac_cv_prog_cc_c89" in
5631  x)
5632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5633$as_echo "none needed" >&6; } ;;
5634  xno)
5635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5636$as_echo "unsupported" >&6; } ;;
5637  *)
5638    CC="$CC $ac_cv_prog_cc_c89"
5639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5640$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5641esac
5642if test "x$ac_cv_prog_cc_c89" != xno; then :
5643
5644fi
5645
5646ac_ext=c
5647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652ac_ext=c
5653ac_cpp='$CPP $CPPFLAGS'
5654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656ac_compiler_gnu=$ac_cv_c_compiler_gnu
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5658$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5659if ${am_cv_prog_cc_c_o+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h.  */
5664
5665int
5666main ()
5667{
5668
5669  ;
5670  return 0;
5671}
5672_ACEOF
5673  # Make sure it works both with $CC and with simple cc.
5674  # Following AC_PROG_CC_C_O, we do the test twice because some
5675  # compilers refuse to overwrite an existing .o file with -o,
5676  # though they will create one.
5677  am_cv_prog_cc_c_o=yes
5678  for am_i in 1 2; do
5679    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5680   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } \
5684         && test -f conftest2.$ac_objext; then
5685      : OK
5686    else
5687      am_cv_prog_cc_c_o=no
5688      break
5689    fi
5690  done
5691  rm -f core conftest*
5692  unset am_i
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5695$as_echo "$am_cv_prog_cc_c_o" >&6; }
5696if test "$am_cv_prog_cc_c_o" != yes; then
5697   # Losing compiler, so override with the script.
5698   # FIXME: It is wrong to rewrite CC.
5699   # But if we don't then we get into trouble of one sort or another.
5700   # A longer-term fix would be to have automake use am__CC in this case,
5701   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5702   CC="$am_aux_dir/compile $CC"
5703fi
5704ac_ext=c
5705ac_cpp='$CPP $CPPFLAGS'
5706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
5710
5711depcc="$CC"   am_compiler_list=
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5714$as_echo_n "checking dependency style of $depcc... " >&6; }
5715if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5719  # We make a subdir and do the tests there.  Otherwise we can end up
5720  # making bogus files that we don't know about and never remove.  For
5721  # instance it was reported that on HP-UX the gcc test will end up
5722  # making a dummy file named 'D' -- because '-MD' means "put the output
5723  # in D".
5724  rm -rf conftest.dir
5725  mkdir conftest.dir
5726  # Copy depcomp to subdir because otherwise we won't find it if we're
5727  # using a relative directory.
5728  cp "$am_depcomp" conftest.dir
5729  cd conftest.dir
5730  # We will build objects and dependencies in a subdirectory because
5731  # it helps to detect inapplicable dependency modes.  For instance
5732  # both Tru64's cc and ICC support -MD to output dependencies as a
5733  # side effect of compilation, but ICC will put the dependencies in
5734  # the current directory while Tru64 will put them in the object
5735  # directory.
5736  mkdir sub
5737
5738  am_cv_CC_dependencies_compiler_type=none
5739  if test "$am_compiler_list" = ""; then
5740     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5741  fi
5742  am__universal=false
5743  case " $depcc " in #(
5744     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5745     esac
5746
5747  for depmode in $am_compiler_list; do
5748    # Setup a source with many dependencies, because some compilers
5749    # like to wrap large dependency lists on column 80 (with \), and
5750    # we should not choose a depcomp mode which is confused by this.
5751    #
5752    # We need to recreate these files for each test, as the compiler may
5753    # overwrite some of them when testing with obscure command lines.
5754    # This happens at least with the AIX C compiler.
5755    : > sub/conftest.c
5756    for i in 1 2 3 4 5 6; do
5757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5758      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5759      # Solaris 10 /bin/sh.
5760      echo '/* dummy */' > sub/conftst$i.h
5761    done
5762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5763
5764    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5765    # mode.  It turns out that the SunPro C++ compiler does not properly
5766    # handle '-M -o', and we need to detect this.  Also, some Intel
5767    # versions had trouble with output in subdirs.
5768    am__obj=sub/conftest.${OBJEXT-o}
5769    am__minus_obj="-o $am__obj"
5770    case $depmode in
5771    gcc)
5772      # This depmode causes a compiler race in universal mode.
5773      test "$am__universal" = false || continue
5774      ;;
5775    nosideeffect)
5776      # After this tag, mechanisms are not by side-effect, so they'll
5777      # only be used when explicitly requested.
5778      if test "x$enable_dependency_tracking" = xyes; then
5779	continue
5780      else
5781	break
5782      fi
5783      ;;
5784    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5785      # This compiler won't grok '-c -o', but also, the minuso test has
5786      # not run yet.  These depmodes are late enough in the game, and
5787      # so weak that their functioning should not be impacted.
5788      am__obj=conftest.${OBJEXT-o}
5789      am__minus_obj=
5790      ;;
5791    none) break ;;
5792    esac
5793    if depmode=$depmode \
5794       source=sub/conftest.c object=$am__obj \
5795       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5797         >/dev/null 2>conftest.err &&
5798       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5800       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5802      # icc doesn't choke on unknown options, it will just issue warnings
5803      # or remarks (even with -Werror).  So we grep stderr for any message
5804      # that says an option was ignored or not supported.
5805      # When given -MP, icc 7.0 and 7.1 complain thusly:
5806      #   icc: Command line warning: ignoring option '-M'; no argument required
5807      # The diagnosis changed in icc 8.0:
5808      #   icc: Command line remark: option '-MP' not supported
5809      if (grep 'ignoring option' conftest.err ||
5810          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5811        am_cv_CC_dependencies_compiler_type=$depmode
5812        break
5813      fi
5814    fi
5815  done
5816
5817  cd ..
5818  rm -rf conftest.dir
5819else
5820  am_cv_CC_dependencies_compiler_type=none
5821fi
5822
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5825$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5827
5828 if
5829  test "x$enable_dependency_tracking" != xno \
5830  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5831  am__fastdepCC_TRUE=
5832  am__fastdepCC_FALSE='#'
5833else
5834  am__fastdepCC_TRUE='#'
5835  am__fastdepCC_FALSE=
5836fi
5837
5838
5839
5840ac_ext=c
5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5846$as_echo_n "checking how to run the C preprocessor... " >&6; }
5847# On Suns, sometimes $CPP names a directory.
5848if test -n "$CPP" && test -d "$CPP"; then
5849  CPP=
5850fi
5851if test -z "$CPP"; then
5852  if ${ac_cv_prog_CPP+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855      # Double quotes because CPP needs to be expanded
5856    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5857    do
5858      ac_preproc_ok=false
5859for ac_c_preproc_warn_flag in '' yes
5860do
5861  # Use a header file that comes with gcc, so configuring glibc
5862  # with a fresh cross-compiler works.
5863  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5864  # <limits.h> exists even on freestanding compilers.
5865  # On the NeXT, cc -E runs the code through the compiler's parser,
5866  # not just through cpp. "Syntax error" is here to catch this case.
5867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869#ifdef __STDC__
5870# include <limits.h>
5871#else
5872# include <assert.h>
5873#endif
5874		     Syntax error
5875_ACEOF
5876if ac_fn_c_try_cpp "$LINENO"; then :
5877
5878else
5879  # Broken: fails on valid input.
5880continue
5881fi
5882rm -f conftest.err conftest.i conftest.$ac_ext
5883
5884  # OK, works on sane cases.  Now check whether nonexistent headers
5885  # can be detected and how.
5886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888#include <ac_nonexistent.h>
5889_ACEOF
5890if ac_fn_c_try_cpp "$LINENO"; then :
5891  # Broken: success on invalid input.
5892continue
5893else
5894  # Passes both tests.
5895ac_preproc_ok=:
5896break
5897fi
5898rm -f conftest.err conftest.i conftest.$ac_ext
5899
5900done
5901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5902rm -f conftest.i conftest.err conftest.$ac_ext
5903if $ac_preproc_ok; then :
5904  break
5905fi
5906
5907    done
5908    ac_cv_prog_CPP=$CPP
5909
5910fi
5911  CPP=$ac_cv_prog_CPP
5912else
5913  ac_cv_prog_CPP=$CPP
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5916$as_echo "$CPP" >&6; }
5917ac_preproc_ok=false
5918for ac_c_preproc_warn_flag in '' yes
5919do
5920  # Use a header file that comes with gcc, so configuring glibc
5921  # with a fresh cross-compiler works.
5922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5923  # <limits.h> exists even on freestanding compilers.
5924  # On the NeXT, cc -E runs the code through the compiler's parser,
5925  # not just through cpp. "Syntax error" is here to catch this case.
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928#ifdef __STDC__
5929# include <limits.h>
5930#else
5931# include <assert.h>
5932#endif
5933		     Syntax error
5934_ACEOF
5935if ac_fn_c_try_cpp "$LINENO"; then :
5936
5937else
5938  # Broken: fails on valid input.
5939continue
5940fi
5941rm -f conftest.err conftest.i conftest.$ac_ext
5942
5943  # OK, works on sane cases.  Now check whether nonexistent headers
5944  # can be detected and how.
5945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h.  */
5947#include <ac_nonexistent.h>
5948_ACEOF
5949if ac_fn_c_try_cpp "$LINENO"; then :
5950  # Broken: success on invalid input.
5951continue
5952else
5953  # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
5957rm -f conftest.err conftest.i conftest.$ac_ext
5958
5959done
5960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5961rm -f conftest.i conftest.err conftest.$ac_ext
5962if $ac_preproc_ok; then :
5963
5964else
5965  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5968See \`config.log' for more details" "$LINENO" 5; }
5969fi
5970
5971ac_ext=c
5972ac_cpp='$CPP $CPPFLAGS'
5973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5979$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980if ${ac_cv_path_GREP+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  if test -z "$GREP"; then
5984  ac_path_GREP_found=false
5985  # Loop through the user's path and test for each of PROGNAME-LIST
5986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991    for ac_prog in grep ggrep; do
5992    for ac_exec_ext in '' $ac_executable_extensions; do
5993      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994      as_fn_executable_p "$ac_path_GREP" || continue
5995# Check for GNU ac_path_GREP and select it if it is found.
5996  # Check for GNU $ac_path_GREP
5997case `"$ac_path_GREP" --version 2>&1` in
5998*GNU*)
5999  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6000*)
6001  ac_count=0
6002  $as_echo_n 0123456789 >"conftest.in"
6003  while :
6004  do
6005    cat "conftest.in" "conftest.in" >"conftest.tmp"
6006    mv "conftest.tmp" "conftest.in"
6007    cp "conftest.in" "conftest.nl"
6008    $as_echo 'GREP' >> "conftest.nl"
6009    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011    as_fn_arith $ac_count + 1 && ac_count=$as_val
6012    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6013      # Best one so far, save it but keep looking for a better one
6014      ac_cv_path_GREP="$ac_path_GREP"
6015      ac_path_GREP_max=$ac_count
6016    fi
6017    # 10*(2^10) chars as input seems more than enough
6018    test $ac_count -gt 10 && break
6019  done
6020  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021esac
6022
6023      $ac_path_GREP_found && break 3
6024    done
6025  done
6026  done
6027IFS=$as_save_IFS
6028  if test -z "$ac_cv_path_GREP"; then
6029    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6030  fi
6031else
6032  ac_cv_path_GREP=$GREP
6033fi
6034
6035fi
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6037$as_echo "$ac_cv_path_GREP" >&6; }
6038 GREP="$ac_cv_path_GREP"
6039
6040
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6042$as_echo_n "checking for egrep... " >&6; }
6043if ${ac_cv_path_EGREP+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6047   then ac_cv_path_EGREP="$GREP -E"
6048   else
6049     if test -z "$EGREP"; then
6050  ac_path_EGREP_found=false
6051  # Loop through the user's path and test for each of PROGNAME-LIST
6052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057    for ac_prog in egrep; do
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6060      as_fn_executable_p "$ac_path_EGREP" || continue
6061# Check for GNU ac_path_EGREP and select it if it is found.
6062  # Check for GNU $ac_path_EGREP
6063case `"$ac_path_EGREP" --version 2>&1` in
6064*GNU*)
6065  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6066*)
6067  ac_count=0
6068  $as_echo_n 0123456789 >"conftest.in"
6069  while :
6070  do
6071    cat "conftest.in" "conftest.in" >"conftest.tmp"
6072    mv "conftest.tmp" "conftest.in"
6073    cp "conftest.in" "conftest.nl"
6074    $as_echo 'EGREP' >> "conftest.nl"
6075    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6076    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6077    as_fn_arith $ac_count + 1 && ac_count=$as_val
6078    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6079      # Best one so far, save it but keep looking for a better one
6080      ac_cv_path_EGREP="$ac_path_EGREP"
6081      ac_path_EGREP_max=$ac_count
6082    fi
6083    # 10*(2^10) chars as input seems more than enough
6084    test $ac_count -gt 10 && break
6085  done
6086  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6087esac
6088
6089      $ac_path_EGREP_found && break 3
6090    done
6091  done
6092  done
6093IFS=$as_save_IFS
6094  if test -z "$ac_cv_path_EGREP"; then
6095    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6096  fi
6097else
6098  ac_cv_path_EGREP=$EGREP
6099fi
6100
6101   fi
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6104$as_echo "$ac_cv_path_EGREP" >&6; }
6105 EGREP="$ac_cv_path_EGREP"
6106
6107
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6109$as_echo_n "checking for ANSI C header files... " >&6; }
6110if ${ac_cv_header_stdc+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115#include <stdlib.h>
6116#include <stdarg.h>
6117#include <string.h>
6118#include <float.h>
6119
6120int
6121main ()
6122{
6123
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_compile "$LINENO"; then :
6129  ac_cv_header_stdc=yes
6130else
6131  ac_cv_header_stdc=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134
6135if test $ac_cv_header_stdc = yes; then
6136  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139#include <string.h>
6140
6141_ACEOF
6142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143  $EGREP "memchr" >/dev/null 2>&1; then :
6144
6145else
6146  ac_cv_header_stdc=no
6147fi
6148rm -f conftest*
6149
6150fi
6151
6152if test $ac_cv_header_stdc = yes; then
6153  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156#include <stdlib.h>
6157
6158_ACEOF
6159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160  $EGREP "free" >/dev/null 2>&1; then :
6161
6162else
6163  ac_cv_header_stdc=no
6164fi
6165rm -f conftest*
6166
6167fi
6168
6169if test $ac_cv_header_stdc = yes; then
6170  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6171  if test "$cross_compiling" = yes; then :
6172  :
6173else
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176#include <ctype.h>
6177#include <stdlib.h>
6178#if ((' ' & 0x0FF) == 0x020)
6179# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6180# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6181#else
6182# define ISLOWER(c) \
6183		   (('a' <= (c) && (c) <= 'i') \
6184		     || ('j' <= (c) && (c) <= 'r') \
6185		     || ('s' <= (c) && (c) <= 'z'))
6186# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6187#endif
6188
6189#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6190int
6191main ()
6192{
6193  int i;
6194  for (i = 0; i < 256; i++)
6195    if (XOR (islower (i), ISLOWER (i))
6196	|| toupper (i) != TOUPPER (i))
6197      return 2;
6198  return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_run "$LINENO"; then :
6202
6203else
6204  ac_cv_header_stdc=no
6205fi
6206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6207  conftest.$ac_objext conftest.beam conftest.$ac_ext
6208fi
6209
6210fi
6211fi
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6213$as_echo "$ac_cv_header_stdc" >&6; }
6214if test $ac_cv_header_stdc = yes; then
6215
6216$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6217
6218fi
6219
6220# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6221for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6222		  inttypes.h stdint.h unistd.h
6223do :
6224  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6225ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6226"
6227if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6228  cat >>confdefs.h <<_ACEOF
6229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230_ACEOF
6231
6232fi
6233
6234done
6235
6236
6237
6238  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6239if test "x$ac_cv_header_minix_config_h" = xyes; then :
6240  MINIX=yes
6241else
6242  MINIX=
6243fi
6244
6245
6246  if test "$MINIX" = yes; then
6247
6248$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6249
6250
6251$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6252
6253
6254$as_echo "#define _MINIX 1" >>confdefs.h
6255
6256  fi
6257
6258
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6260$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6261if ${ac_cv_safe_to_define___extensions__+:} false; then :
6262  $as_echo_n "(cached) " >&6
6263else
6264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266
6267#         define __EXTENSIONS__ 1
6268          $ac_includes_default
6269int
6270main ()
6271{
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277if ac_fn_c_try_compile "$LINENO"; then :
6278  ac_cv_safe_to_define___extensions__=yes
6279else
6280  ac_cv_safe_to_define___extensions__=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6285$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6286  test $ac_cv_safe_to_define___extensions__ = yes &&
6287    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6288
6289  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6290
6291  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6292
6293  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6294
6295  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6296
6297
6298
6299# ==============================================================================
6300# Find required base packages
6301# ==============================================================================
6302if test -n "$ac_tool_prefix"; then
6303  for ac_prog in ar lib "link -lib"
6304  do
6305    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_AR+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  if test -n "$AR"; then
6313  ac_cv_prog_AR="$AR" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318  IFS=$as_save_IFS
6319  test -z "$as_dir" && as_dir=.
6320    for ac_exec_ext in '' $ac_executable_extensions; do
6321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327  done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332AR=$ac_cv_prog_AR
6333if test -n "$AR"; then
6334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335$as_echo "$AR" >&6; }
6336else
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342    test -n "$AR" && break
6343  done
6344fi
6345if test -z "$AR"; then
6346  ac_ct_AR=$AR
6347  for ac_prog in ar lib "link -lib"
6348do
6349  # Extract the first word of "$ac_prog", so it can be a program name with args.
6350set dummy $ac_prog; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if ${ac_cv_prog_ac_ct_AR+:} false; then :
6354  $as_echo_n "(cached) " >&6
6355else
6356  if test -n "$ac_ct_AR"; then
6357  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366    ac_cv_prog_ac_ct_AR="$ac_prog"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377if test -n "$ac_ct_AR"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379$as_echo "$ac_ct_AR" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386  test -n "$ac_ct_AR" && break
6387done
6388
6389  if test "x$ac_ct_AR" = x; then
6390    AR="false"
6391  else
6392    case $cross_compiling:$ac_tool_warned in
6393yes:)
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396ac_tool_warned=yes ;;
6397esac
6398    AR=$ac_ct_AR
6399  fi
6400fi
6401
6402: ${AR=ar}
6403
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6405$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6406if ${am_cv_ar_interface+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  ac_ext=c
6410ac_cpp='$CPP $CPPFLAGS'
6411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414
6415   am_cv_ar_interface=ar
6416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418int some_variable = 0;
6419_ACEOF
6420if ac_fn_c_try_compile "$LINENO"; then :
6421  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6422      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6423  (eval $am_ar_try) 2>&5
6424  ac_status=$?
6425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426  test $ac_status = 0; }
6427      if test "$ac_status" -eq 0; then
6428        am_cv_ar_interface=ar
6429      else
6430        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6431        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6432  (eval $am_ar_try) 2>&5
6433  ac_status=$?
6434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435  test $ac_status = 0; }
6436        if test "$ac_status" -eq 0; then
6437          am_cv_ar_interface=lib
6438        else
6439          am_cv_ar_interface=unknown
6440        fi
6441      fi
6442      rm -f conftest.lib libconftest.a
6443
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446   ac_ext=c
6447ac_cpp='$CPP $CPPFLAGS'
6448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451
6452fi
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6454$as_echo "$am_cv_ar_interface" >&6; }
6455
6456case $am_cv_ar_interface in
6457ar)
6458  ;;
6459lib)
6460  # Microsoft lib, so override with the ar-lib wrapper script.
6461  # FIXME: It is wrong to rewrite AR.
6462  # But if we don't then we get into trouble of one sort or another.
6463  # A longer-term fix would be to have automake use am__AR in this case,
6464  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6465  # similar.
6466  AR="$am_aux_dir/ar-lib $AR"
6467  ;;
6468unknown)
6469  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6470  ;;
6471esac
6472
6473ac_ext=c
6474ac_cpp='$CPP $CPPFLAGS'
6475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477ac_compiler_gnu=$ac_cv_c_compiler_gnu
6478if test -n "$ac_tool_prefix"; then
6479  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6480set dummy ${ac_tool_prefix}gcc; ac_word=$2
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482$as_echo_n "checking for $ac_word... " >&6; }
6483if ${ac_cv_prog_CC+:} false; then :
6484  $as_echo_n "(cached) " >&6
6485else
6486  if test -n "$CC"; then
6487  ac_cv_prog_CC="$CC" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494    for ac_exec_ext in '' $ac_executable_extensions; do
6495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501  done
6502IFS=$as_save_IFS
6503
6504fi
6505fi
6506CC=$ac_cv_prog_CC
6507if test -n "$CC"; then
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6509$as_echo "$CC" >&6; }
6510else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512$as_echo "no" >&6; }
6513fi
6514
6515
6516fi
6517if test -z "$ac_cv_prog_CC"; then
6518  ac_ct_CC=$CC
6519  # Extract the first word of "gcc", so it can be a program name with args.
6520set dummy gcc; ac_word=$2
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522$as_echo_n "checking for $ac_word... " >&6; }
6523if ${ac_cv_prog_ac_ct_CC+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  if test -n "$ac_ct_CC"; then
6527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532  IFS=$as_save_IFS
6533  test -z "$as_dir" && as_dir=.
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536    ac_cv_prog_ac_ct_CC="gcc"
6537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541  done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546ac_ct_CC=$ac_cv_prog_ac_ct_CC
6547if test -n "$ac_ct_CC"; then
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6549$as_echo "$ac_ct_CC" >&6; }
6550else
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552$as_echo "no" >&6; }
6553fi
6554
6555  if test "x$ac_ct_CC" = x; then
6556    CC=""
6557  else
6558    case $cross_compiling:$ac_tool_warned in
6559yes:)
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562ac_tool_warned=yes ;;
6563esac
6564    CC=$ac_ct_CC
6565  fi
6566else
6567  CC="$ac_cv_prog_CC"
6568fi
6569
6570if test -z "$CC"; then
6571          if test -n "$ac_tool_prefix"; then
6572    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}cc; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_CC+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$CC"; then
6580  ac_cv_prog_CC="$CC" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_CC="${ac_tool_prefix}cc"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599CC=$ac_cv_prog_CC
6600if test -n "$CC"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6602$as_echo "$CC" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609  fi
6610fi
6611if test -z "$CC"; then
6612  # Extract the first word of "cc", so it can be a program name with args.
6613set dummy cc; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_CC+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$CC"; then
6620  ac_cv_prog_CC="$CC" # Let the user override the test.
6621else
6622  ac_prog_rejected=no
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626  IFS=$as_save_IFS
6627  test -z "$as_dir" && as_dir=.
6628    for ac_exec_ext in '' $ac_executable_extensions; do
6629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6631       ac_prog_rejected=yes
6632       continue
6633     fi
6634    ac_cv_prog_CC="cc"
6635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639  done
6640IFS=$as_save_IFS
6641
6642if test $ac_prog_rejected = yes; then
6643  # We found a bogon in the path, so make sure we never use it.
6644  set dummy $ac_cv_prog_CC
6645  shift
6646  if test $# != 0; then
6647    # We chose a different compiler from the bogus one.
6648    # However, it has the same basename, so the bogon will be chosen
6649    # first if we set CC to just the basename; use the full file name.
6650    shift
6651    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6652  fi
6653fi
6654fi
6655fi
6656CC=$ac_cv_prog_CC
6657if test -n "$CC"; then
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6659$as_echo "$CC" >&6; }
6660else
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662$as_echo "no" >&6; }
6663fi
6664
6665
6666fi
6667if test -z "$CC"; then
6668  if test -n "$ac_tool_prefix"; then
6669  for ac_prog in cl.exe
6670  do
6671    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6672set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674$as_echo_n "checking for $ac_word... " >&6; }
6675if ${ac_cv_prog_CC+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  if test -n "$CC"; then
6679  ac_cv_prog_CC="$CC" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684  IFS=$as_save_IFS
6685  test -z "$as_dir" && as_dir=.
6686    for ac_exec_ext in '' $ac_executable_extensions; do
6687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690    break 2
6691  fi
6692done
6693  done
6694IFS=$as_save_IFS
6695
6696fi
6697fi
6698CC=$ac_cv_prog_CC
6699if test -n "$CC"; then
6700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6701$as_echo "$CC" >&6; }
6702else
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704$as_echo "no" >&6; }
6705fi
6706
6707
6708    test -n "$CC" && break
6709  done
6710fi
6711if test -z "$CC"; then
6712  ac_ct_CC=$CC
6713  for ac_prog in cl.exe
6714do
6715  # Extract the first word of "$ac_prog", so it can be a program name with args.
6716set dummy $ac_prog; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
6719if ${ac_cv_prog_ac_ct_CC+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  if test -n "$ac_ct_CC"; then
6723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728  IFS=$as_save_IFS
6729  test -z "$as_dir" && as_dir=.
6730    for ac_exec_ext in '' $ac_executable_extensions; do
6731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732    ac_cv_prog_ac_ct_CC="$ac_prog"
6733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734    break 2
6735  fi
6736done
6737  done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742ac_ct_CC=$ac_cv_prog_ac_ct_CC
6743if test -n "$ac_ct_CC"; then
6744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6745$as_echo "$ac_ct_CC" >&6; }
6746else
6747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
6749fi
6750
6751
6752  test -n "$ac_ct_CC" && break
6753done
6754
6755  if test "x$ac_ct_CC" = x; then
6756    CC=""
6757  else
6758    case $cross_compiling:$ac_tool_warned in
6759yes:)
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762ac_tool_warned=yes ;;
6763esac
6764    CC=$ac_ct_CC
6765  fi
6766fi
6767
6768fi
6769
6770
6771test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6773as_fn_error $? "no acceptable C compiler found in \$PATH
6774See \`config.log' for more details" "$LINENO" 5; }
6775
6776# Provide some information about the compiler.
6777$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6778set X $ac_compile
6779ac_compiler=$2
6780for ac_option in --version -v -V -qversion; do
6781  { { ac_try="$ac_compiler $ac_option >&5"
6782case "(($ac_try" in
6783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784  *) ac_try_echo=$ac_try;;
6785esac
6786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6787$as_echo "$ac_try_echo"; } >&5
6788  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6789  ac_status=$?
6790  if test -s conftest.err; then
6791    sed '10a\
6792... rest of stderr output deleted ...
6793         10q' conftest.err >conftest.er1
6794    cat conftest.er1 >&5
6795  fi
6796  rm -f conftest.er1 conftest.err
6797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798  test $ac_status = 0; }
6799done
6800
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6802$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6803if ${ac_cv_c_compiler_gnu+:} false; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808
6809int
6810main ()
6811{
6812#ifndef __GNUC__
6813       choke me
6814#endif
6815
6816  ;
6817  return 0;
6818}
6819_ACEOF
6820if ac_fn_c_try_compile "$LINENO"; then :
6821  ac_compiler_gnu=yes
6822else
6823  ac_compiler_gnu=no
6824fi
6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826ac_cv_c_compiler_gnu=$ac_compiler_gnu
6827
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6830$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6831if test $ac_compiler_gnu = yes; then
6832  GCC=yes
6833else
6834  GCC=
6835fi
6836ac_test_CFLAGS=${CFLAGS+set}
6837ac_save_CFLAGS=$CFLAGS
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6839$as_echo_n "checking whether $CC accepts -g... " >&6; }
6840if ${ac_cv_prog_cc_g+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  ac_save_c_werror_flag=$ac_c_werror_flag
6844   ac_c_werror_flag=yes
6845   ac_cv_prog_cc_g=no
6846   CFLAGS="-g"
6847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849
6850int
6851main ()
6852{
6853
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858if ac_fn_c_try_compile "$LINENO"; then :
6859  ac_cv_prog_cc_g=yes
6860else
6861  CFLAGS=""
6862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864
6865int
6866main ()
6867{
6868
6869  ;
6870  return 0;
6871}
6872_ACEOF
6873if ac_fn_c_try_compile "$LINENO"; then :
6874
6875else
6876  ac_c_werror_flag=$ac_save_c_werror_flag
6877	 CFLAGS="-g"
6878	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880
6881int
6882main ()
6883{
6884
6885  ;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_c_try_compile "$LINENO"; then :
6890  ac_cv_prog_cc_g=yes
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893fi
6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897   ac_c_werror_flag=$ac_save_c_werror_flag
6898fi
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6900$as_echo "$ac_cv_prog_cc_g" >&6; }
6901if test "$ac_test_CFLAGS" = set; then
6902  CFLAGS=$ac_save_CFLAGS
6903elif test $ac_cv_prog_cc_g = yes; then
6904  if test "$GCC" = yes; then
6905    CFLAGS="-g -O2"
6906  else
6907    CFLAGS="-g"
6908  fi
6909else
6910  if test "$GCC" = yes; then
6911    CFLAGS="-O2"
6912  else
6913    CFLAGS=
6914  fi
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6918if ${ac_cv_prog_cc_c89+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  ac_cv_prog_cc_c89=no
6922ac_save_CC=$CC
6923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925#include <stdarg.h>
6926#include <stdio.h>
6927struct stat;
6928/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6929struct buf { int x; };
6930FILE * (*rcsopen) (struct buf *, struct stat *, int);
6931static char *e (p, i)
6932     char **p;
6933     int i;
6934{
6935  return p[i];
6936}
6937static char *f (char * (*g) (char **, int), char **p, ...)
6938{
6939  char *s;
6940  va_list v;
6941  va_start (v,p);
6942  s = g (p, va_arg (v,int));
6943  va_end (v);
6944  return s;
6945}
6946
6947/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6948   function prototypes and stuff, but not '\xHH' hex character constants.
6949   These don't provoke an error unfortunately, instead are silently treated
6950   as 'x'.  The following induces an error, until -std is added to get
6951   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6952   array size at least.  It's necessary to write '\x00'==0 to get something
6953   that's true only with -std.  */
6954int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6955
6956/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6957   inside strings and character constants.  */
6958#define FOO(x) 'x'
6959int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6960
6961int test (int i, double x);
6962struct s1 {int (*f) (int a);};
6963struct s2 {int (*f) (double a);};
6964int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6965int argc;
6966char **argv;
6967int
6968main ()
6969{
6970return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6976	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6977do
6978  CC="$ac_save_CC $ac_arg"
6979  if ac_fn_c_try_compile "$LINENO"; then :
6980  ac_cv_prog_cc_c89=$ac_arg
6981fi
6982rm -f core conftest.err conftest.$ac_objext
6983  test "x$ac_cv_prog_cc_c89" != "xno" && break
6984done
6985rm -f conftest.$ac_ext
6986CC=$ac_save_CC
6987
6988fi
6989# AC_CACHE_VAL
6990case "x$ac_cv_prog_cc_c89" in
6991  x)
6992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6993$as_echo "none needed" >&6; } ;;
6994  xno)
6995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6996$as_echo "unsupported" >&6; } ;;
6997  *)
6998    CC="$CC $ac_cv_prog_cc_c89"
6999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7000$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7001esac
7002if test "x$ac_cv_prog_cc_c89" != xno; then :
7003
7004fi
7005
7006ac_ext=c
7007ac_cpp='$CPP $CPPFLAGS'
7008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011
7012ac_ext=c
7013ac_cpp='$CPP $CPPFLAGS'
7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7018$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7019if ${am_cv_prog_cc_c_o+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024
7025int
7026main ()
7027{
7028
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033  # Make sure it works both with $CC and with simple cc.
7034  # Following AC_PROG_CC_C_O, we do the test twice because some
7035  # compilers refuse to overwrite an existing .o file with -o,
7036  # though they will create one.
7037  am_cv_prog_cc_c_o=yes
7038  for am_i in 1 2; do
7039    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7040   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } \
7044         && test -f conftest2.$ac_objext; then
7045      : OK
7046    else
7047      am_cv_prog_cc_c_o=no
7048      break
7049    fi
7050  done
7051  rm -f core conftest*
7052  unset am_i
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7055$as_echo "$am_cv_prog_cc_c_o" >&6; }
7056if test "$am_cv_prog_cc_c_o" != yes; then
7057   # Losing compiler, so override with the script.
7058   # FIXME: It is wrong to rewrite CC.
7059   # But if we don't then we get into trouble of one sort or another.
7060   # A longer-term fix would be to have automake use am__CC in this case,
7061   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7062   CC="$am_aux_dir/compile $CC"
7063fi
7064ac_ext=c
7065ac_cpp='$CPP $CPPFLAGS'
7066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068ac_compiler_gnu=$ac_cv_c_compiler_gnu
7069
7070
7071depcc="$CC"   am_compiler_list=
7072
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7074$as_echo_n "checking dependency style of $depcc... " >&6; }
7075if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7076  $as_echo_n "(cached) " >&6
7077else
7078  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7079  # We make a subdir and do the tests there.  Otherwise we can end up
7080  # making bogus files that we don't know about and never remove.  For
7081  # instance it was reported that on HP-UX the gcc test will end up
7082  # making a dummy file named 'D' -- because '-MD' means "put the output
7083  # in D".
7084  rm -rf conftest.dir
7085  mkdir conftest.dir
7086  # Copy depcomp to subdir because otherwise we won't find it if we're
7087  # using a relative directory.
7088  cp "$am_depcomp" conftest.dir
7089  cd conftest.dir
7090  # We will build objects and dependencies in a subdirectory because
7091  # it helps to detect inapplicable dependency modes.  For instance
7092  # both Tru64's cc and ICC support -MD to output dependencies as a
7093  # side effect of compilation, but ICC will put the dependencies in
7094  # the current directory while Tru64 will put them in the object
7095  # directory.
7096  mkdir sub
7097
7098  am_cv_CC_dependencies_compiler_type=none
7099  if test "$am_compiler_list" = ""; then
7100     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7101  fi
7102  am__universal=false
7103  case " $depcc " in #(
7104     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7105     esac
7106
7107  for depmode in $am_compiler_list; do
7108    # Setup a source with many dependencies, because some compilers
7109    # like to wrap large dependency lists on column 80 (with \), and
7110    # we should not choose a depcomp mode which is confused by this.
7111    #
7112    # We need to recreate these files for each test, as the compiler may
7113    # overwrite some of them when testing with obscure command lines.
7114    # This happens at least with the AIX C compiler.
7115    : > sub/conftest.c
7116    for i in 1 2 3 4 5 6; do
7117      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7118      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7119      # Solaris 10 /bin/sh.
7120      echo '/* dummy */' > sub/conftst$i.h
7121    done
7122    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7123
7124    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7125    # mode.  It turns out that the SunPro C++ compiler does not properly
7126    # handle '-M -o', and we need to detect this.  Also, some Intel
7127    # versions had trouble with output in subdirs.
7128    am__obj=sub/conftest.${OBJEXT-o}
7129    am__minus_obj="-o $am__obj"
7130    case $depmode in
7131    gcc)
7132      # This depmode causes a compiler race in universal mode.
7133      test "$am__universal" = false || continue
7134      ;;
7135    nosideeffect)
7136      # After this tag, mechanisms are not by side-effect, so they'll
7137      # only be used when explicitly requested.
7138      if test "x$enable_dependency_tracking" = xyes; then
7139	continue
7140      else
7141	break
7142      fi
7143      ;;
7144    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7145      # This compiler won't grok '-c -o', but also, the minuso test has
7146      # not run yet.  These depmodes are late enough in the game, and
7147      # so weak that their functioning should not be impacted.
7148      am__obj=conftest.${OBJEXT-o}
7149      am__minus_obj=
7150      ;;
7151    none) break ;;
7152    esac
7153    if depmode=$depmode \
7154       source=sub/conftest.c object=$am__obj \
7155       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7156       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7157         >/dev/null 2>conftest.err &&
7158       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7159       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7160       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7161       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7162      # icc doesn't choke on unknown options, it will just issue warnings
7163      # or remarks (even with -Werror).  So we grep stderr for any message
7164      # that says an option was ignored or not supported.
7165      # When given -MP, icc 7.0 and 7.1 complain thusly:
7166      #   icc: Command line warning: ignoring option '-M'; no argument required
7167      # The diagnosis changed in icc 8.0:
7168      #   icc: Command line remark: option '-MP' not supported
7169      if (grep 'ignoring option' conftest.err ||
7170          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7171        am_cv_CC_dependencies_compiler_type=$depmode
7172        break
7173      fi
7174    fi
7175  done
7176
7177  cd ..
7178  rm -rf conftest.dir
7179else
7180  am_cv_CC_dependencies_compiler_type=none
7181fi
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7185$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7187
7188 if
7189  test "x$enable_dependency_tracking" != xno \
7190  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7191  am__fastdepCC_TRUE=
7192  am__fastdepCC_FALSE='#'
7193else
7194  am__fastdepCC_TRUE='#'
7195  am__fastdepCC_FALSE=
7196fi
7197
7198
7199ac_ext=cpp
7200ac_cpp='$CXXCPP $CPPFLAGS'
7201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7204if test -z "$CXX"; then
7205  if test -n "$CCC"; then
7206    CXX=$CCC
7207  else
7208    if test -n "$ac_tool_prefix"; then
7209  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7210  do
7211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214$as_echo_n "checking for $ac_word... " >&6; }
7215if ${ac_cv_prog_CXX+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  if test -n "$CXX"; then
7219  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7220else
7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224  IFS=$as_save_IFS
7225  test -z "$as_dir" && as_dir=.
7226    for ac_exec_ext in '' $ac_executable_extensions; do
7227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230    break 2
7231  fi
7232done
7233  done
7234IFS=$as_save_IFS
7235
7236fi
7237fi
7238CXX=$ac_cv_prog_CXX
7239if test -n "$CXX"; then
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7241$as_echo "$CXX" >&6; }
7242else
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244$as_echo "no" >&6; }
7245fi
7246
7247
7248    test -n "$CXX" && break
7249  done
7250fi
7251if test -z "$CXX"; then
7252  ac_ct_CXX=$CXX
7253  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7254do
7255  # Extract the first word of "$ac_prog", so it can be a program name with args.
7256set dummy $ac_prog; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -n "$ac_ct_CXX"; then
7263  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268  IFS=$as_save_IFS
7269  test -z "$as_dir" && as_dir=.
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272    ac_cv_prog_ac_ct_CXX="$ac_prog"
7273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7283if test -n "$ac_ct_CXX"; then
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7285$as_echo "$ac_ct_CXX" >&6; }
7286else
7287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291
7292  test -n "$ac_ct_CXX" && break
7293done
7294
7295  if test "x$ac_ct_CXX" = x; then
7296    CXX="g++"
7297  else
7298    case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304    CXX=$ac_ct_CXX
7305  fi
7306fi
7307
7308  fi
7309fi
7310# Provide some information about the compiler.
7311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7312set X $ac_compile
7313ac_compiler=$2
7314for ac_option in --version -v -V -qversion; do
7315  { { ac_try="$ac_compiler $ac_option >&5"
7316case "(($ac_try" in
7317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318  *) ac_try_echo=$ac_try;;
7319esac
7320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7321$as_echo "$ac_try_echo"; } >&5
7322  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7323  ac_status=$?
7324  if test -s conftest.err; then
7325    sed '10a\
7326... rest of stderr output deleted ...
7327         10q' conftest.err >conftest.er1
7328    cat conftest.er1 >&5
7329  fi
7330  rm -f conftest.er1 conftest.err
7331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332  test $ac_status = 0; }
7333done
7334
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7336$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7337if ${ac_cv_cxx_compiler_gnu+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342
7343int
7344main ()
7345{
7346#ifndef __GNUC__
7347       choke me
7348#endif
7349
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354if ac_fn_cxx_try_compile "$LINENO"; then :
7355  ac_compiler_gnu=yes
7356else
7357  ac_compiler_gnu=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7361
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7364$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7365if test $ac_compiler_gnu = yes; then
7366  GXX=yes
7367else
7368  GXX=
7369fi
7370ac_test_CXXFLAGS=${CXXFLAGS+set}
7371ac_save_CXXFLAGS=$CXXFLAGS
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7373$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7374if ${ac_cv_prog_cxx_g+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7378   ac_cxx_werror_flag=yes
7379   ac_cv_prog_cxx_g=no
7380   CXXFLAGS="-g"
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383
7384int
7385main ()
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392if ac_fn_cxx_try_compile "$LINENO"; then :
7393  ac_cv_prog_cxx_g=yes
7394else
7395  CXXFLAGS=""
7396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398
7399int
7400main ()
7401{
7402
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_cxx_try_compile "$LINENO"; then :
7408
7409else
7410  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7411	 CXXFLAGS="-g"
7412	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414
7415int
7416main ()
7417{
7418
7419  ;
7420  return 0;
7421}
7422_ACEOF
7423if ac_fn_cxx_try_compile "$LINENO"; then :
7424  ac_cv_prog_cxx_g=yes
7425fi
7426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7434$as_echo "$ac_cv_prog_cxx_g" >&6; }
7435if test "$ac_test_CXXFLAGS" = set; then
7436  CXXFLAGS=$ac_save_CXXFLAGS
7437elif test $ac_cv_prog_cxx_g = yes; then
7438  if test "$GXX" = yes; then
7439    CXXFLAGS="-g -O2"
7440  else
7441    CXXFLAGS="-g"
7442  fi
7443else
7444  if test "$GXX" = yes; then
7445    CXXFLAGS="-O2"
7446  else
7447    CXXFLAGS=
7448  fi
7449fi
7450ac_ext=c
7451ac_cpp='$CPP $CPPFLAGS'
7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
7456depcc="$CXX"  am_compiler_list=
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7459$as_echo_n "checking dependency style of $depcc... " >&6; }
7460if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7464  # We make a subdir and do the tests there.  Otherwise we can end up
7465  # making bogus files that we don't know about and never remove.  For
7466  # instance it was reported that on HP-UX the gcc test will end up
7467  # making a dummy file named 'D' -- because '-MD' means "put the output
7468  # in D".
7469  rm -rf conftest.dir
7470  mkdir conftest.dir
7471  # Copy depcomp to subdir because otherwise we won't find it if we're
7472  # using a relative directory.
7473  cp "$am_depcomp" conftest.dir
7474  cd conftest.dir
7475  # We will build objects and dependencies in a subdirectory because
7476  # it helps to detect inapplicable dependency modes.  For instance
7477  # both Tru64's cc and ICC support -MD to output dependencies as a
7478  # side effect of compilation, but ICC will put the dependencies in
7479  # the current directory while Tru64 will put them in the object
7480  # directory.
7481  mkdir sub
7482
7483  am_cv_CXX_dependencies_compiler_type=none
7484  if test "$am_compiler_list" = ""; then
7485     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7486  fi
7487  am__universal=false
7488  case " $depcc " in #(
7489     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7490     esac
7491
7492  for depmode in $am_compiler_list; do
7493    # Setup a source with many dependencies, because some compilers
7494    # like to wrap large dependency lists on column 80 (with \), and
7495    # we should not choose a depcomp mode which is confused by this.
7496    #
7497    # We need to recreate these files for each test, as the compiler may
7498    # overwrite some of them when testing with obscure command lines.
7499    # This happens at least with the AIX C compiler.
7500    : > sub/conftest.c
7501    for i in 1 2 3 4 5 6; do
7502      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7503      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7504      # Solaris 10 /bin/sh.
7505      echo '/* dummy */' > sub/conftst$i.h
7506    done
7507    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7508
7509    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7510    # mode.  It turns out that the SunPro C++ compiler does not properly
7511    # handle '-M -o', and we need to detect this.  Also, some Intel
7512    # versions had trouble with output in subdirs.
7513    am__obj=sub/conftest.${OBJEXT-o}
7514    am__minus_obj="-o $am__obj"
7515    case $depmode in
7516    gcc)
7517      # This depmode causes a compiler race in universal mode.
7518      test "$am__universal" = false || continue
7519      ;;
7520    nosideeffect)
7521      # After this tag, mechanisms are not by side-effect, so they'll
7522      # only be used when explicitly requested.
7523      if test "x$enable_dependency_tracking" = xyes; then
7524	continue
7525      else
7526	break
7527      fi
7528      ;;
7529    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7530      # This compiler won't grok '-c -o', but also, the minuso test has
7531      # not run yet.  These depmodes are late enough in the game, and
7532      # so weak that their functioning should not be impacted.
7533      am__obj=conftest.${OBJEXT-o}
7534      am__minus_obj=
7535      ;;
7536    none) break ;;
7537    esac
7538    if depmode=$depmode \
7539       source=sub/conftest.c object=$am__obj \
7540       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7541       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7542         >/dev/null 2>conftest.err &&
7543       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7544       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7545       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7546       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7547      # icc doesn't choke on unknown options, it will just issue warnings
7548      # or remarks (even with -Werror).  So we grep stderr for any message
7549      # that says an option was ignored or not supported.
7550      # When given -MP, icc 7.0 and 7.1 complain thusly:
7551      #   icc: Command line warning: ignoring option '-M'; no argument required
7552      # The diagnosis changed in icc 8.0:
7553      #   icc: Command line remark: option '-MP' not supported
7554      if (grep 'ignoring option' conftest.err ||
7555          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7556        am_cv_CXX_dependencies_compiler_type=$depmode
7557        break
7558      fi
7559    fi
7560  done
7561
7562  cd ..
7563  rm -rf conftest.dir
7564else
7565  am_cv_CXX_dependencies_compiler_type=none
7566fi
7567
7568fi
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7570$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7571CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7572
7573 if
7574  test "x$enable_dependency_tracking" != xno \
7575  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7576  am__fastdepCXX_TRUE=
7577  am__fastdepCXX_FALSE='#'
7578else
7579  am__fastdepCXX_TRUE='#'
7580  am__fastdepCXX_FALSE=
7581fi
7582
7583
7584   case $ac_cv_prog_cc_stdc in #(
7585  no) :
7586    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7587  *) :
7588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7589$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7590if ${ac_cv_prog_cc_c99+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  ac_cv_prog_cc_c99=no
7594ac_save_CC=$CC
7595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597#include <stdarg.h>
7598#include <stdbool.h>
7599#include <stdlib.h>
7600#include <wchar.h>
7601#include <stdio.h>
7602
7603// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7604#define debug(...) fprintf (stderr, __VA_ARGS__)
7605#define showlist(...) puts (#__VA_ARGS__)
7606#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7607static void
7608test_varargs_macros (void)
7609{
7610  int x = 1234;
7611  int y = 5678;
7612  debug ("Flag");
7613  debug ("X = %d\n", x);
7614  showlist (The first, second, and third items.);
7615  report (x>y, "x is %d but y is %d", x, y);
7616}
7617
7618// Check long long types.
7619#define BIG64 18446744073709551615ull
7620#define BIG32 4294967295ul
7621#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7622#if !BIG_OK
7623  your preprocessor is broken;
7624#endif
7625#if BIG_OK
7626#else
7627  your preprocessor is broken;
7628#endif
7629static long long int bignum = -9223372036854775807LL;
7630static unsigned long long int ubignum = BIG64;
7631
7632struct incomplete_array
7633{
7634  int datasize;
7635  double data[];
7636};
7637
7638struct named_init {
7639  int number;
7640  const wchar_t *name;
7641  double average;
7642};
7643
7644typedef const char *ccp;
7645
7646static inline int
7647test_restrict (ccp restrict text)
7648{
7649  // See if C++-style comments work.
7650  // Iterate through items via the restricted pointer.
7651  // Also check for declarations in for loops.
7652  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7653    continue;
7654  return 0;
7655}
7656
7657// Check varargs and va_copy.
7658static void
7659test_varargs (const char *format, ...)
7660{
7661  va_list args;
7662  va_start (args, format);
7663  va_list args_copy;
7664  va_copy (args_copy, args);
7665
7666  const char *str;
7667  int number;
7668  float fnumber;
7669
7670  while (*format)
7671    {
7672      switch (*format++)
7673	{
7674	case 's': // string
7675	  str = va_arg (args_copy, const char *);
7676	  break;
7677	case 'd': // int
7678	  number = va_arg (args_copy, int);
7679	  break;
7680	case 'f': // float
7681	  fnumber = va_arg (args_copy, double);
7682	  break;
7683	default:
7684	  break;
7685	}
7686    }
7687  va_end (args_copy);
7688  va_end (args);
7689}
7690
7691int
7692main ()
7693{
7694
7695  // Check bool.
7696  _Bool success = false;
7697
7698  // Check restrict.
7699  if (test_restrict ("String literal") == 0)
7700    success = true;
7701  char *restrict newvar = "Another string";
7702
7703  // Check varargs.
7704  test_varargs ("s, d' f .", "string", 65, 34.234);
7705  test_varargs_macros ();
7706
7707  // Check flexible array members.
7708  struct incomplete_array *ia =
7709    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7710  ia->datasize = 10;
7711  for (int i = 0; i < ia->datasize; ++i)
7712    ia->data[i] = i * 1.234;
7713
7714  // Check named initializers.
7715  struct named_init ni = {
7716    .number = 34,
7717    .name = L"Test wide string",
7718    .average = 543.34343,
7719  };
7720
7721  ni.number = 58;
7722
7723  int dynamic_array[ni.number];
7724  dynamic_array[ni.number - 1] = 543;
7725
7726  // work around unused variable warnings
7727  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7728	  || dynamic_array[ni.number - 1] != 543);
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7735do
7736  CC="$ac_save_CC $ac_arg"
7737  if ac_fn_c_try_compile "$LINENO"; then :
7738  ac_cv_prog_cc_c99=$ac_arg
7739fi
7740rm -f core conftest.err conftest.$ac_objext
7741  test "x$ac_cv_prog_cc_c99" != "xno" && break
7742done
7743rm -f conftest.$ac_ext
7744CC=$ac_save_CC
7745
7746fi
7747# AC_CACHE_VAL
7748case "x$ac_cv_prog_cc_c99" in
7749  x)
7750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7751$as_echo "none needed" >&6; } ;;
7752  xno)
7753    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7754$as_echo "unsupported" >&6; } ;;
7755  *)
7756    CC="$CC $ac_cv_prog_cc_c99"
7757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7758$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7759esac
7760if test "x$ac_cv_prog_cc_c99" != xno; then :
7761  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7762else
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7764$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7765if ${ac_cv_prog_cc_c89+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  ac_cv_prog_cc_c89=no
7769ac_save_CC=$CC
7770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772#include <stdarg.h>
7773#include <stdio.h>
7774struct stat;
7775/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7776struct buf { int x; };
7777FILE * (*rcsopen) (struct buf *, struct stat *, int);
7778static char *e (p, i)
7779     char **p;
7780     int i;
7781{
7782  return p[i];
7783}
7784static char *f (char * (*g) (char **, int), char **p, ...)
7785{
7786  char *s;
7787  va_list v;
7788  va_start (v,p);
7789  s = g (p, va_arg (v,int));
7790  va_end (v);
7791  return s;
7792}
7793
7794/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7795   function prototypes and stuff, but not '\xHH' hex character constants.
7796   These don't provoke an error unfortunately, instead are silently treated
7797   as 'x'.  The following induces an error, until -std is added to get
7798   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7799   array size at least.  It's necessary to write '\x00'==0 to get something
7800   that's true only with -std.  */
7801int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7802
7803/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7804   inside strings and character constants.  */
7805#define FOO(x) 'x'
7806int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7807
7808int test (int i, double x);
7809struct s1 {int (*f) (int a);};
7810struct s2 {int (*f) (double a);};
7811int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7812int argc;
7813char **argv;
7814int
7815main ()
7816{
7817return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7818  ;
7819  return 0;
7820}
7821_ACEOF
7822for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7823	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7824do
7825  CC="$ac_save_CC $ac_arg"
7826  if ac_fn_c_try_compile "$LINENO"; then :
7827  ac_cv_prog_cc_c89=$ac_arg
7828fi
7829rm -f core conftest.err conftest.$ac_objext
7830  test "x$ac_cv_prog_cc_c89" != "xno" && break
7831done
7832rm -f conftest.$ac_ext
7833CC=$ac_save_CC
7834
7835fi
7836# AC_CACHE_VAL
7837case "x$ac_cv_prog_cc_c89" in
7838  x)
7839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7840$as_echo "none needed" >&6; } ;;
7841  xno)
7842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7843$as_echo "unsupported" >&6; } ;;
7844  *)
7845    CC="$CC $ac_cv_prog_cc_c89"
7846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7847$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7848esac
7849if test "x$ac_cv_prog_cc_c89" != xno; then :
7850  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7851else
7852  ac_cv_prog_cc_stdc=no
7853fi
7854
7855fi
7856 ;;
7857esac
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7859$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7860  if ${ac_cv_prog_cc_stdc+:} false; then :
7861  $as_echo_n "(cached) " >&6
7862fi
7863
7864  case $ac_cv_prog_cc_stdc in #(
7865  no) :
7866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7867$as_echo "unsupported" >&6; } ;; #(
7868  '') :
7869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7870$as_echo "none needed" >&6; } ;; #(
7871  *) :
7872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7873$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7874esac
7875
7876ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7882$as_echo_n "checking how to run the C preprocessor... " >&6; }
7883# On Suns, sometimes $CPP names a directory.
7884if test -n "$CPP" && test -d "$CPP"; then
7885  CPP=
7886fi
7887if test -z "$CPP"; then
7888  if ${ac_cv_prog_CPP+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891      # Double quotes because CPP needs to be expanded
7892    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7893    do
7894      ac_preproc_ok=false
7895for ac_c_preproc_warn_flag in '' yes
7896do
7897  # Use a header file that comes with gcc, so configuring glibc
7898  # with a fresh cross-compiler works.
7899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7900  # <limits.h> exists even on freestanding compilers.
7901  # On the NeXT, cc -E runs the code through the compiler's parser,
7902  # not just through cpp. "Syntax error" is here to catch this case.
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905#ifdef __STDC__
7906# include <limits.h>
7907#else
7908# include <assert.h>
7909#endif
7910		     Syntax error
7911_ACEOF
7912if ac_fn_c_try_cpp "$LINENO"; then :
7913
7914else
7915  # Broken: fails on valid input.
7916continue
7917fi
7918rm -f conftest.err conftest.i conftest.$ac_ext
7919
7920  # OK, works on sane cases.  Now check whether nonexistent headers
7921  # can be detected and how.
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924#include <ac_nonexistent.h>
7925_ACEOF
7926if ac_fn_c_try_cpp "$LINENO"; then :
7927  # Broken: success on invalid input.
7928continue
7929else
7930  # Passes both tests.
7931ac_preproc_ok=:
7932break
7933fi
7934rm -f conftest.err conftest.i conftest.$ac_ext
7935
7936done
7937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7938rm -f conftest.i conftest.err conftest.$ac_ext
7939if $ac_preproc_ok; then :
7940  break
7941fi
7942
7943    done
7944    ac_cv_prog_CPP=$CPP
7945
7946fi
7947  CPP=$ac_cv_prog_CPP
7948else
7949  ac_cv_prog_CPP=$CPP
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7952$as_echo "$CPP" >&6; }
7953ac_preproc_ok=false
7954for ac_c_preproc_warn_flag in '' yes
7955do
7956  # Use a header file that comes with gcc, so configuring glibc
7957  # with a fresh cross-compiler works.
7958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959  # <limits.h> exists even on freestanding compilers.
7960  # On the NeXT, cc -E runs the code through the compiler's parser,
7961  # not just through cpp. "Syntax error" is here to catch this case.
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964#ifdef __STDC__
7965# include <limits.h>
7966#else
7967# include <assert.h>
7968#endif
7969		     Syntax error
7970_ACEOF
7971if ac_fn_c_try_cpp "$LINENO"; then :
7972
7973else
7974  # Broken: fails on valid input.
7975continue
7976fi
7977rm -f conftest.err conftest.i conftest.$ac_ext
7978
7979  # OK, works on sane cases.  Now check whether nonexistent headers
7980  # can be detected and how.
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983#include <ac_nonexistent.h>
7984_ACEOF
7985if ac_fn_c_try_cpp "$LINENO"; then :
7986  # Broken: success on invalid input.
7987continue
7988else
7989  # Passes both tests.
7990ac_preproc_ok=:
7991break
7992fi
7993rm -f conftest.err conftest.i conftest.$ac_ext
7994
7995done
7996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7997rm -f conftest.i conftest.err conftest.$ac_ext
7998if $ac_preproc_ok; then :
7999
8000else
8001  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8003as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8004See \`config.log' for more details" "$LINENO" 5; }
8005fi
8006
8007ac_ext=c
8008ac_cpp='$CPP $CPPFLAGS'
8009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8014$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8015if ${ac_cv_path_SED+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8019     for ac_i in 1 2 3 4 5 6 7; do
8020       ac_script="$ac_script$as_nl$ac_script"
8021     done
8022     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8023     { ac_script=; unset ac_script;}
8024     if test -z "$SED"; then
8025  ac_path_SED_found=false
8026  # Loop through the user's path and test for each of PROGNAME-LIST
8027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030  IFS=$as_save_IFS
8031  test -z "$as_dir" && as_dir=.
8032    for ac_prog in sed gsed; do
8033    for ac_exec_ext in '' $ac_executable_extensions; do
8034      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8035      as_fn_executable_p "$ac_path_SED" || continue
8036# Check for GNU ac_path_SED and select it if it is found.
8037  # Check for GNU $ac_path_SED
8038case `"$ac_path_SED" --version 2>&1` in
8039*GNU*)
8040  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8041*)
8042  ac_count=0
8043  $as_echo_n 0123456789 >"conftest.in"
8044  while :
8045  do
8046    cat "conftest.in" "conftest.in" >"conftest.tmp"
8047    mv "conftest.tmp" "conftest.in"
8048    cp "conftest.in" "conftest.nl"
8049    $as_echo '' >> "conftest.nl"
8050    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8051    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8052    as_fn_arith $ac_count + 1 && ac_count=$as_val
8053    if test $ac_count -gt ${ac_path_SED_max-0}; then
8054      # Best one so far, save it but keep looking for a better one
8055      ac_cv_path_SED="$ac_path_SED"
8056      ac_path_SED_max=$ac_count
8057    fi
8058    # 10*(2^10) chars as input seems more than enough
8059    test $ac_count -gt 10 && break
8060  done
8061  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8062esac
8063
8064      $ac_path_SED_found && break 3
8065    done
8066  done
8067  done
8068IFS=$as_save_IFS
8069  if test -z "$ac_cv_path_SED"; then
8070    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8071  fi
8072else
8073  ac_cv_path_SED=$SED
8074fi
8075
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8078$as_echo "$ac_cv_path_SED" >&6; }
8079 SED="$ac_cv_path_SED"
8080  rm -f conftest.sed
8081
8082test -z "$SED" && SED=sed
8083Xsed="$SED -e 1s/^X//"
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8096$as_echo_n "checking for fgrep... " >&6; }
8097if ${ac_cv_path_FGREP+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8101   then ac_cv_path_FGREP="$GREP -F"
8102   else
8103     if test -z "$FGREP"; then
8104  ac_path_FGREP_found=false
8105  # Loop through the user's path and test for each of PROGNAME-LIST
8106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8108do
8109  IFS=$as_save_IFS
8110  test -z "$as_dir" && as_dir=.
8111    for ac_prog in fgrep; do
8112    for ac_exec_ext in '' $ac_executable_extensions; do
8113      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8114      as_fn_executable_p "$ac_path_FGREP" || continue
8115# Check for GNU ac_path_FGREP and select it if it is found.
8116  # Check for GNU $ac_path_FGREP
8117case `"$ac_path_FGREP" --version 2>&1` in
8118*GNU*)
8119  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8120*)
8121  ac_count=0
8122  $as_echo_n 0123456789 >"conftest.in"
8123  while :
8124  do
8125    cat "conftest.in" "conftest.in" >"conftest.tmp"
8126    mv "conftest.tmp" "conftest.in"
8127    cp "conftest.in" "conftest.nl"
8128    $as_echo 'FGREP' >> "conftest.nl"
8129    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8130    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8131    as_fn_arith $ac_count + 1 && ac_count=$as_val
8132    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8133      # Best one so far, save it but keep looking for a better one
8134      ac_cv_path_FGREP="$ac_path_FGREP"
8135      ac_path_FGREP_max=$ac_count
8136    fi
8137    # 10*(2^10) chars as input seems more than enough
8138    test $ac_count -gt 10 && break
8139  done
8140  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8141esac
8142
8143      $ac_path_FGREP_found && break 3
8144    done
8145  done
8146  done
8147IFS=$as_save_IFS
8148  if test -z "$ac_cv_path_FGREP"; then
8149    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8150  fi
8151else
8152  ac_cv_path_FGREP=$FGREP
8153fi
8154
8155   fi
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8158$as_echo "$ac_cv_path_FGREP" >&6; }
8159 FGREP="$ac_cv_path_FGREP"
8160
8161
8162test -z "$GREP" && GREP=grep
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8181ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8182ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8185$as_echo_n "checking how to print strings... " >&6; }
8186# Test print first, because it will be a builtin if present.
8187if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8188   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8189  ECHO='print -r --'
8190elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8191  ECHO='printf %s\n'
8192else
8193  # Use this function as a fallback that always works.
8194  func_fallback_echo ()
8195  {
8196    eval 'cat <<_LTECHO_EOF
8197$1
8198_LTECHO_EOF'
8199  }
8200  ECHO='func_fallback_echo'
8201fi
8202
8203# func_echo_all arg...
8204# Invoke $ECHO with all args, space-separated.
8205func_echo_all ()
8206{
8207    $ECHO ""
8208}
8209
8210case $ECHO in
8211  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8212$as_echo "printf" >&6; } ;;
8213  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8214$as_echo "print -r" >&6; } ;;
8215  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8216$as_echo "cat" >&6; } ;;
8217esac
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234# Check whether --with-gnu-ld was given.
8235if test "${with_gnu_ld+set}" = set; then :
8236  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8237else
8238  with_gnu_ld=no
8239fi
8240
8241ac_prog=ld
8242if test yes = "$GCC"; then
8243  # Check if gcc -print-prog-name=ld gives a path.
8244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8245$as_echo_n "checking for ld used by $CC... " >&6; }
8246  case $host in
8247  *-*-mingw*)
8248    # gcc leaves a trailing carriage return, which upsets mingw
8249    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8250  *)
8251    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8252  esac
8253  case $ac_prog in
8254    # Accept absolute paths.
8255    [\\/]* | ?:[\\/]*)
8256      re_direlt='/[^/][^/]*/\.\./'
8257      # Canonicalize the pathname of ld
8258      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8259      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8260	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8261      done
8262      test -z "$LD" && LD=$ac_prog
8263      ;;
8264  "")
8265    # If it fails, then pretend we aren't using GCC.
8266    ac_prog=ld
8267    ;;
8268  *)
8269    # If it is relative, then search for the first ld in PATH.
8270    with_gnu_ld=unknown
8271    ;;
8272  esac
8273elif test yes = "$with_gnu_ld"; then
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8275$as_echo_n "checking for GNU ld... " >&6; }
8276else
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8278$as_echo_n "checking for non-GNU ld... " >&6; }
8279fi
8280if ${lt_cv_path_LD+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  if test -z "$LD"; then
8284  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8285  for ac_dir in $PATH; do
8286    IFS=$lt_save_ifs
8287    test -z "$ac_dir" && ac_dir=.
8288    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8289      lt_cv_path_LD=$ac_dir/$ac_prog
8290      # Check to see if the program is GNU ld.  I'd rather use --version,
8291      # but apparently some variants of GNU ld only accept -v.
8292      # Break only if it was the GNU/non-GNU ld that we prefer.
8293      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8294      *GNU* | *'with BFD'*)
8295	test no != "$with_gnu_ld" && break
8296	;;
8297      *)
8298	test yes != "$with_gnu_ld" && break
8299	;;
8300      esac
8301    fi
8302  done
8303  IFS=$lt_save_ifs
8304else
8305  lt_cv_path_LD=$LD # Let the user override the test with a path.
8306fi
8307fi
8308
8309LD=$lt_cv_path_LD
8310if test -n "$LD"; then
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8312$as_echo "$LD" >&6; }
8313else
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315$as_echo "no" >&6; }
8316fi
8317test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8320if ${lt_cv_prog_gnu_ld+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8324case `$LD -v 2>&1 </dev/null` in
8325*GNU* | *'with BFD'*)
8326  lt_cv_prog_gnu_ld=yes
8327  ;;
8328*)
8329  lt_cv_prog_gnu_ld=no
8330  ;;
8331esac
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8334$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8335with_gnu_ld=$lt_cv_prog_gnu_ld
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8347$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8348if ${ac_cv_prog_cc_c99+:} false; then :
8349  $as_echo_n "(cached) " >&6
8350else
8351  ac_cv_prog_cc_c99=no
8352ac_save_CC=$CC
8353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355#include <stdarg.h>
8356#include <stdbool.h>
8357#include <stdlib.h>
8358#include <wchar.h>
8359#include <stdio.h>
8360
8361// Check varargs macros.  These examples are taken from C99 6.10.3.5.
8362#define debug(...) fprintf (stderr, __VA_ARGS__)
8363#define showlist(...) puts (#__VA_ARGS__)
8364#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8365static void
8366test_varargs_macros (void)
8367{
8368  int x = 1234;
8369  int y = 5678;
8370  debug ("Flag");
8371  debug ("X = %d\n", x);
8372  showlist (The first, second, and third items.);
8373  report (x>y, "x is %d but y is %d", x, y);
8374}
8375
8376// Check long long types.
8377#define BIG64 18446744073709551615ull
8378#define BIG32 4294967295ul
8379#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8380#if !BIG_OK
8381  your preprocessor is broken;
8382#endif
8383#if BIG_OK
8384#else
8385  your preprocessor is broken;
8386#endif
8387static long long int bignum = -9223372036854775807LL;
8388static unsigned long long int ubignum = BIG64;
8389
8390struct incomplete_array
8391{
8392  int datasize;
8393  double data[];
8394};
8395
8396struct named_init {
8397  int number;
8398  const wchar_t *name;
8399  double average;
8400};
8401
8402typedef const char *ccp;
8403
8404static inline int
8405test_restrict (ccp restrict text)
8406{
8407  // See if C++-style comments work.
8408  // Iterate through items via the restricted pointer.
8409  // Also check for declarations in for loops.
8410  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8411    continue;
8412  return 0;
8413}
8414
8415// Check varargs and va_copy.
8416static void
8417test_varargs (const char *format, ...)
8418{
8419  va_list args;
8420  va_start (args, format);
8421  va_list args_copy;
8422  va_copy (args_copy, args);
8423
8424  const char *str;
8425  int number;
8426  float fnumber;
8427
8428  while (*format)
8429    {
8430      switch (*format++)
8431	{
8432	case 's': // string
8433	  str = va_arg (args_copy, const char *);
8434	  break;
8435	case 'd': // int
8436	  number = va_arg (args_copy, int);
8437	  break;
8438	case 'f': // float
8439	  fnumber = va_arg (args_copy, double);
8440	  break;
8441	default:
8442	  break;
8443	}
8444    }
8445  va_end (args_copy);
8446  va_end (args);
8447}
8448
8449int
8450main ()
8451{
8452
8453  // Check bool.
8454  _Bool success = false;
8455
8456  // Check restrict.
8457  if (test_restrict ("String literal") == 0)
8458    success = true;
8459  char *restrict newvar = "Another string";
8460
8461  // Check varargs.
8462  test_varargs ("s, d' f .", "string", 65, 34.234);
8463  test_varargs_macros ();
8464
8465  // Check flexible array members.
8466  struct incomplete_array *ia =
8467    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8468  ia->datasize = 10;
8469  for (int i = 0; i < ia->datasize; ++i)
8470    ia->data[i] = i * 1.234;
8471
8472  // Check named initializers.
8473  struct named_init ni = {
8474    .number = 34,
8475    .name = L"Test wide string",
8476    .average = 543.34343,
8477  };
8478
8479  ni.number = 58;
8480
8481  int dynamic_array[ni.number];
8482  dynamic_array[ni.number - 1] = 543;
8483
8484  // work around unused variable warnings
8485  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8486	  || dynamic_array[ni.number - 1] != 543);
8487
8488  ;
8489  return 0;
8490}
8491_ACEOF
8492for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8493do
8494  CC="$ac_save_CC $ac_arg"
8495  if ac_fn_c_try_compile "$LINENO"; then :
8496  ac_cv_prog_cc_c99=$ac_arg
8497fi
8498rm -f core conftest.err conftest.$ac_objext
8499  test "x$ac_cv_prog_cc_c99" != "xno" && break
8500done
8501rm -f conftest.$ac_ext
8502CC=$ac_save_CC
8503
8504fi
8505# AC_CACHE_VAL
8506case "x$ac_cv_prog_cc_c99" in
8507  x)
8508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8509$as_echo "none needed" >&6; } ;;
8510  xno)
8511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8512$as_echo "unsupported" >&6; } ;;
8513  *)
8514    CC="$CC $ac_cv_prog_cc_c99"
8515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8516$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8517esac
8518if test "x$ac_cv_prog_cc_c99" != xno; then :
8519
8520fi
8521
8522
8523
8524ac_ext=c
8525ac_cpp='$CPP $CPPFLAGS'
8526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8531$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8532if ${ac_cv_cflags_warn_all+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  ac_cv_cflags_warn_all="no, unknown"
8536ac_save_CFLAGS="$CFLAGS"
8537for ac_arg in "-warn all  % -warn all"      "-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"    #
8538do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541
8542int
8543main ()
8544{
8545
8546  ;
8547  return 0;
8548}
8549_ACEOF
8550if ac_fn_c_try_compile "$LINENO"; then :
8551  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8552fi
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554done
8555CFLAGS="$ac_save_CFLAGS"
8556
8557fi
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8559$as_echo "$ac_cv_cflags_warn_all" >&6; }
8560
8561
8562case ".$ac_cv_cflags_warn_all" in
8563     .ok|.ok,*)  ;;
8564   .|.no|.no,*)  ;;
8565   *)
8566if ${CFLAGS+:} false; then :
8567
8568  case " $CFLAGS " in #(
8569  *" $ac_cv_cflags_warn_all "*) :
8570    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8571  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8572  ac_status=$?
8573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574  test $ac_status = 0; } ;; #(
8575  *) :
8576
8577     as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8578     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8579  (: CFLAGS="$CFLAGS") 2>&5
8580  ac_status=$?
8581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582  test $ac_status = 0; }
8583     ;;
8584esac
8585
8586else
8587
8588  CFLAGS=$ac_cv_cflags_warn_all
8589  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8590  (: CFLAGS="$CFLAGS") 2>&5
8591  ac_status=$?
8592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8593  test $ac_status = 0; }
8594
8595fi
8596 ;;
8597esac
8598
8599ac_ext=c
8600ac_cpp='$CPP $CPPFLAGS'
8601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605
8606
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8608$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8609set x ${MAKE-make}
8610ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8611if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  cat >conftest.make <<\_ACEOF
8615SHELL = /bin/sh
8616all:
8617	@echo '@@@%%%=$(MAKE)=@@@%%%'
8618_ACEOF
8619# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8620case `${MAKE-make} -f conftest.make 2>/dev/null` in
8621  *@@@%%%=?*=@@@%%%*)
8622    eval ac_cv_prog_make_${ac_make}_set=yes;;
8623  *)
8624    eval ac_cv_prog_make_${ac_make}_set=no;;
8625esac
8626rm -f conftest.make
8627fi
8628if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8630$as_echo "yes" >&6; }
8631  SET_MAKE=
8632else
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635  SET_MAKE="MAKE=${MAKE-make}"
8636fi
8637
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8639$as_echo_n "checking whether ln -s works... " >&6; }
8640LN_S=$as_ln_s
8641if test "$LN_S" = "ln -s"; then
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8643$as_echo "yes" >&6; }
8644else
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8646$as_echo "no, using $LN_S" >&6; }
8647fi
8648
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8650$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8651if ${ac_cv_path_SED+:} false; then :
8652  $as_echo_n "(cached) " >&6
8653else
8654            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8655     for ac_i in 1 2 3 4 5 6 7; do
8656       ac_script="$ac_script$as_nl$ac_script"
8657     done
8658     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8659     { ac_script=; unset ac_script;}
8660     if test -z "$SED"; then
8661  ac_path_SED_found=false
8662  # Loop through the user's path and test for each of PROGNAME-LIST
8663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666  IFS=$as_save_IFS
8667  test -z "$as_dir" && as_dir=.
8668    for ac_prog in sed gsed; do
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8671      as_fn_executable_p "$ac_path_SED" || continue
8672# Check for GNU ac_path_SED and select it if it is found.
8673  # Check for GNU $ac_path_SED
8674case `"$ac_path_SED" --version 2>&1` in
8675*GNU*)
8676  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8677*)
8678  ac_count=0
8679  $as_echo_n 0123456789 >"conftest.in"
8680  while :
8681  do
8682    cat "conftest.in" "conftest.in" >"conftest.tmp"
8683    mv "conftest.tmp" "conftest.in"
8684    cp "conftest.in" "conftest.nl"
8685    $as_echo '' >> "conftest.nl"
8686    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8687    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8688    as_fn_arith $ac_count + 1 && ac_count=$as_val
8689    if test $ac_count -gt ${ac_path_SED_max-0}; then
8690      # Best one so far, save it but keep looking for a better one
8691      ac_cv_path_SED="$ac_path_SED"
8692      ac_path_SED_max=$ac_count
8693    fi
8694    # 10*(2^10) chars as input seems more than enough
8695    test $ac_count -gt 10 && break
8696  done
8697  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8698esac
8699
8700      $ac_path_SED_found && break 3
8701    done
8702  done
8703  done
8704IFS=$as_save_IFS
8705  if test -z "$ac_cv_path_SED"; then
8706    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8707  fi
8708else
8709  ac_cv_path_SED=$SED
8710fi
8711
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8714$as_echo "$ac_cv_path_SED" >&6; }
8715 SED="$ac_cv_path_SED"
8716  rm -f conftest.sed
8717
8718for ac_prog in gawk mawk nawk awk
8719do
8720  # Extract the first word of "$ac_prog", so it can be a program name with args.
8721set dummy $ac_prog; ac_word=$2
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
8724if ${ac_cv_prog_AWK+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  if test -n "$AWK"; then
8728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8729else
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733  IFS=$as_save_IFS
8734  test -z "$as_dir" && as_dir=.
8735    for ac_exec_ext in '' $ac_executable_extensions; do
8736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737    ac_cv_prog_AWK="$ac_prog"
8738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739    break 2
8740  fi
8741done
8742  done
8743IFS=$as_save_IFS
8744
8745fi
8746fi
8747AWK=$ac_cv_prog_AWK
8748if test -n "$AWK"; then
8749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8750$as_echo "$AWK" >&6; }
8751else
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753$as_echo "no" >&6; }
8754fi
8755
8756
8757  test -n "$AWK" && break
8758done
8759
8760
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8762$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8763
8764# Check whether --with-dmalloc was given.
8765if test "${with_dmalloc+set}" = set; then :
8766  withval=$with_dmalloc; if test "$withval" = yes; then
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8768$as_echo "yes" >&6; }
8769
8770$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8771
8772  LIBS="$LIBS -ldmalloc"
8773  LDFLAGS="$LDFLAGS -g"
8774else
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778else
8779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
8781fi
8782
8783
8784
8785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8786$as_echo_n "checking for __attribute__... " >&6; }
8787if ${ax_cv___attribute__+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792#include <stdlib.h>
8793	  static void foo(void) __attribute__ ((unused));
8794	  static void
8795	  foo(void) {
8796	      exit(1);
8797	  }
8798
8799int
8800main ()
8801{
8802
8803  ;
8804  return 0;
8805}
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"; then :
8808  ax_cv___attribute__=yes
8809else
8810  ax_cv___attribute__=no
8811
8812fi
8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8817$as_echo "$ax_cv___attribute__" >&6; }
8818  if test "$ax_cv___attribute__" = "yes"; then
8819
8820$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8821
8822  fi
8823
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8825$as_echo_n "checking for C compiler vendor... " >&6; }
8826if ${ax_cv_c_compiler_vendor+:} false; then :
8827  $as_echo_n "(cached) " >&6
8828else
8829    # note: don't check for gcc first since some other compilers define __GNUC__
8830  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8831           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8832           pathscale: __PATHCC__,__PATHSCALE__
8833           clang:     __clang__
8834           cray:      _CRAYC
8835           fujitsu:   __FUJITSU
8836           sdcc:      SDCC, __SDCC
8837           gnu:       __GNUC__
8838           sun:       __SUNPRO_C,__SUNPRO_CC
8839           hp:        __HP_cc,__HP_aCC
8840           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8841           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
8842           comeau:    __COMO__
8843           kai:       __KCC
8844           lcc:       __LCC__
8845           sgi:       __sgi,sgi
8846           microsoft: _MSC_VER
8847           metrowerks: __MWERKS__
8848           watcom:    __WATCOMC__
8849           portland:  __PGI
8850	   tcc:       __TINYC__
8851           unknown:   UNKNOWN"
8852  for ventest in $vendors; do
8853    case $ventest in
8854      *:) vendor=$ventest; continue ;;
8855      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8856    esac
8857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859
8860int
8861main ()
8862{
8863
8864      #if !($vencpp)
8865        thisisanerror;
8866      #endif
8867
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"; then :
8873  break
8874fi
8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876  done
8877  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8878
8879fi
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8881$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8882
8883
8884
8885
8886
8887
8888
8889# Check whether --with-gcc-arch was given.
8890if test "${with_gcc_arch+set}" = set; then :
8891  withval=$with_gcc_arch; ax_gcc_arch=$withval
8892else
8893  ax_gcc_arch=yes
8894fi
8895
8896
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8898$as_echo_n "checking for gcc architecture flag... " >&6; }
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8900$as_echo "" >&6; }
8901if ${ax_cv_gcc_archflag+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904
8905ax_cv_gcc_archflag="unknown"
8906
8907if test "$GCC" = yes; then
8908
8909if test "x$ax_gcc_arch" = xyes; then
8910ax_gcc_arch=""
8911if test "$cross_compiling" = no; then
8912case $host_cpu in
8913  i[3456]86*|x86_64*|amd64*) # use cpuid codes
8914
8915ac_ext=c
8916ac_cpp='$CPP $CPPFLAGS'
8917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8922$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8923if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8924  $as_echo_n "(cached) " >&6
8925else
8926  if test "$cross_compiling" = yes; then :
8927  ax_cv_gcc_x86_cpuid_0=unknown
8928else
8929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930/* end confdefs.h.  */
8931#include <stdio.h>
8932int
8933main ()
8934{
8935
8936     int op = 0, level = 0, eax, ebx, ecx, edx;
8937     FILE *f;
8938      __asm__ __volatile__ ("xchg %%ebx, %1\n"
8939        "cpuid\n"
8940        "xchg %%ebx, %1\n"
8941        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8942        : "a" (op), "2" (level));
8943
8944     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8945     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8946     fclose(f);
8947     return 0;
8948
8949  ;
8950  return 0;
8951}
8952_ACEOF
8953if ac_fn_c_try_run "$LINENO"; then :
8954  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8955else
8956  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8957fi
8958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8959  conftest.$ac_objext conftest.beam conftest.$ac_ext
8960fi
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8964$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8965ac_ext=c
8966ac_cpp='$CPP $CPPFLAGS'
8967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969ac_compiler_gnu=$ac_cv_c_compiler_gnu
8970
8971
8972
8973
8974ac_ext=c
8975ac_cpp='$CPP $CPPFLAGS'
8976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8978ac_compiler_gnu=$ac_cv_c_compiler_gnu
8979
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8981$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8982if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  if test "$cross_compiling" = yes; then :
8986  ax_cv_gcc_x86_cpuid_1=unknown
8987else
8988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h.  */
8990#include <stdio.h>
8991int
8992main ()
8993{
8994
8995     int op = 1, level = 0, eax, ebx, ecx, edx;
8996     FILE *f;
8997      __asm__ __volatile__ ("xchg %%ebx, %1\n"
8998        "cpuid\n"
8999        "xchg %%ebx, %1\n"
9000        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
9001        : "a" (op), "2" (level));
9002
9003     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9004     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9005     fclose(f);
9006     return 0;
9007
9008  ;
9009  return 0;
9010}
9011_ACEOF
9012if ac_fn_c_try_run "$LINENO"; then :
9013  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
9014else
9015  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
9016fi
9017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9018  conftest.$ac_objext conftest.beam conftest.$ac_ext
9019fi
9020
9021fi
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
9023$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
9024ac_ext=c
9025ac_cpp='$CPP $CPPFLAGS'
9026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031
9032     case $ax_cv_gcc_x86_cpuid_0 in
9033       *:756e6547:6c65746e:49656e69) # Intel
9034          case $ax_cv_gcc_x86_cpuid_1 in
9035	    *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
9036	    *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
9037	    *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
9038	    *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
9039	    *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
9040	    *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
9041	    *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
9042	    *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
9043	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
9044	    *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
9045	    *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
9046	    *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9047	    *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9048	    *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9049	    *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9050	    *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
9051	    *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
9052	    *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
9053	    *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
9054	    # fallback
9055	    *5??:*:*:*) ax_gcc_arch=pentium ;;
9056	    *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
9057	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
9058	    *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
9059          esac ;;
9060       *:68747541:444d4163:69746e65) # AMD
9061          case $ax_cv_gcc_x86_cpuid_1 in
9062	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
9063	    *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
9064	    *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
9065	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
9066	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
9067	    *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
9068	    *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9069	    *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9070	    *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9071	    *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9072	    *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9073	    *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9074	    *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9075	    *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9076	    # fallback
9077	    *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9078	    *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9079	    *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9080	    *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9081	    *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9082	    *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9083	    *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9084	    *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
9085          esac ;;
9086	*:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
9087	   case $ax_cv_gcc_x86_cpuid_1 in
9088	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
9089	     *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
9090	     *66?:*:*:*) ax_gcc_arch=winchip2 ;;
9091	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
9092	     *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
9093	   esac ;;
9094     esac
9095     if test x"$ax_gcc_arch" = x; then # fallback
9096	case $host_cpu in
9097	  i586*) ax_gcc_arch=pentium ;;
9098	  i686*) ax_gcc_arch=pentiumpro ;;
9099        esac
9100     fi
9101     ;;
9102
9103  sparc*)
9104     # Extract the first word of "prtdiag", so it can be a program name with args.
9105set dummy prtdiag; ac_word=$2
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if ${ac_cv_path_PRTDIAG+:} false; then :
9109  $as_echo_n "(cached) " >&6
9110else
9111  case $PRTDIAG in
9112  [\\/]* | ?:[\\/]*)
9113  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9114  ;;
9115  *)
9116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9118for as_dir in $as_dummy
9119do
9120  IFS=$as_save_IFS
9121  test -z "$as_dir" && as_dir=.
9122    for ac_exec_ext in '' $ac_executable_extensions; do
9123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126    break 2
9127  fi
9128done
9129  done
9130IFS=$as_save_IFS
9131
9132  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9133  ;;
9134esac
9135fi
9136PRTDIAG=$ac_cv_path_PRTDIAG
9137if test -n "$PRTDIAG"; then
9138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9139$as_echo "$PRTDIAG" >&6; }
9140else
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143fi
9144
9145
9146     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
9147     cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
9148     case $cputype in
9149         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9150         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9151         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9152         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9153         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9154         *cypress*) ax_gcc_arch=cypress ;;
9155     esac ;;
9156
9157  alphaev5) ax_gcc_arch=ev5 ;;
9158  alphaev56) ax_gcc_arch=ev56 ;;
9159  alphapca56) ax_gcc_arch="pca56 ev56" ;;
9160  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9161  alphaev6) ax_gcc_arch=ev6 ;;
9162  alphaev67) ax_gcc_arch=ev67 ;;
9163  alphaev68) ax_gcc_arch="ev68 ev67" ;;
9164  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9165  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9166  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9167
9168  powerpc*)
9169     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
9170     cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
9171     case $cputype in
9172       *750*) ax_gcc_arch="750 G3" ;;
9173       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9174       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9175       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9176       *970*) ax_gcc_arch="970 G5 power4";;
9177       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9178       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9179       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9180       *POWER7*) ax_gcc_arch="power7";;
9181       *POWER8*) ax_gcc_arch="power8";;
9182       *POWER9*) ax_gcc_arch="power9";;
9183       *POWER10*) ax_gcc_arch="power10";;
9184       *) ax_gcc_arch=$cputype ;;
9185     esac
9186     ax_gcc_arch="$ax_gcc_arch powerpc"
9187     ;;
9188  aarch64)
9189     cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9190     cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9191     cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9192     case $cpuimpl in
9193       0x42) case $cpuarch in
9194               8) case $cpuvar in
9195                    0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
9196                  esac
9197                  ;;
9198             esac
9199             ;;
9200       0x43) case $cpuarch in
9201               8) case $cpuvar in
9202                    0x0) ax_gcc_arch="thunderx armv8-a native" ;;
9203                    0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
9204                  esac
9205                  ;;
9206             esac
9207             ;;
9208      esac
9209      ;;
9210esac
9211fi # not cross-compiling
9212fi # guess arch
9213
9214if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
9215if test "xyes" = xyes; then # if we require portable code
9216  flag_prefixes="-mtune="
9217  if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9218  # -mcpu=$arch and m$arch generate nonportable code on every arch except
9219  # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
9220  case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9221else
9222  flag_prefixes="-march= -mcpu= -m"
9223fi
9224for flag_prefix in $flag_prefixes; do
9225  for arch in $ax_gcc_arch; do
9226    flag="$flag_prefix$arch"
9227    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9229$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9230if eval \${$as_CACHEVAR+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233
9234  ax_check_save_flags=$CFLAGS
9235  CFLAGS="$CFLAGS  $flag"
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238
9239int
9240main ()
9241{
9242
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_compile "$LINENO"; then :
9248  eval "$as_CACHEVAR=yes"
9249else
9250  eval "$as_CACHEVAR=no"
9251fi
9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253  CFLAGS=$ax_check_save_flags
9254fi
9255eval ac_res=\$$as_CACHEVAR
9256	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9257$as_echo "$ac_res" >&6; }
9258if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9259  if test "x$ax_cv_c_compiler_vendor" = xclang; then
9260      if test "xyes" = xyes; then
9261	if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9262      fi
9263    fi; ax_cv_gcc_archflag=$flag; break
9264else
9265  :
9266fi
9267
9268  done
9269  test "x$ax_cv_gcc_archflag" = xunknown || break
9270done
9271fi
9272
9273fi # $GCC=yes
9274
9275fi
9276
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9278$as_echo_n "checking for gcc architecture flag... " >&6; }
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9280$as_echo "$ax_cv_gcc_archflag" >&6; }
9281if test "x$ax_cv_gcc_archflag" = xunknown; then
9282  :
9283else
9284  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9285fi
9286
9287
9288
9289
9290
9291
9292
9293
9294if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9295	if test -n "$ac_tool_prefix"; then
9296  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9297set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if ${ac_cv_path_PKG_CONFIG+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  case $PKG_CONFIG in
9304  [\\/]* | ?:[\\/]*)
9305  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9306  ;;
9307  *)
9308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309for as_dir in $PATH
9310do
9311  IFS=$as_save_IFS
9312  test -z "$as_dir" && as_dir=.
9313    for ac_exec_ext in '' $ac_executable_extensions; do
9314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9315    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9317    break 2
9318  fi
9319done
9320  done
9321IFS=$as_save_IFS
9322
9323  ;;
9324esac
9325fi
9326PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9327if test -n "$PKG_CONFIG"; then
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9329$as_echo "$PKG_CONFIG" >&6; }
9330else
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332$as_echo "no" >&6; }
9333fi
9334
9335
9336fi
9337if test -z "$ac_cv_path_PKG_CONFIG"; then
9338  ac_pt_PKG_CONFIG=$PKG_CONFIG
9339  # Extract the first word of "pkg-config", so it can be a program name with args.
9340set dummy pkg-config; ac_word=$2
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342$as_echo_n "checking for $ac_word... " >&6; }
9343if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  case $ac_pt_PKG_CONFIG in
9347  [\\/]* | ?:[\\/]*)
9348  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9349  ;;
9350  *)
9351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352for as_dir in $PATH
9353do
9354  IFS=$as_save_IFS
9355  test -z "$as_dir" && as_dir=.
9356    for ac_exec_ext in '' $ac_executable_extensions; do
9357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360    break 2
9361  fi
9362done
9363  done
9364IFS=$as_save_IFS
9365
9366  ;;
9367esac
9368fi
9369ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9370if test -n "$ac_pt_PKG_CONFIG"; then
9371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9372$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9373else
9374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
9376fi
9377
9378  if test "x$ac_pt_PKG_CONFIG" = x; then
9379    PKG_CONFIG=""
9380  else
9381    case $cross_compiling:$ac_tool_warned in
9382yes:)
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9385ac_tool_warned=yes ;;
9386esac
9387    PKG_CONFIG=$ac_pt_PKG_CONFIG
9388  fi
9389else
9390  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9391fi
9392
9393fi
9394if test -n "$PKG_CONFIG"; then
9395	_pkg_min_version=0.20
9396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9397$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9398	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9400$as_echo "yes" >&6; }
9401	else
9402		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404		PKG_CONFIG=""
9405	fi
9406fi
9407
9408
9409
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9411$as_echo_n "checking for C compiler vendor... " >&6; }
9412if ${ax_cv_c_compiler_vendor+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415    # note: don't check for gcc first since some other compilers define __GNUC__
9416  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
9417           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
9418           pathscale: __PATHCC__,__PATHSCALE__
9419           clang:     __clang__
9420           cray:      _CRAYC
9421           fujitsu:   __FUJITSU
9422           sdcc:      SDCC, __SDCC
9423           gnu:       __GNUC__
9424           sun:       __SUNPRO_C,__SUNPRO_CC
9425           hp:        __HP_cc,__HP_aCC
9426           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9427           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
9428           comeau:    __COMO__
9429           kai:       __KCC
9430           lcc:       __LCC__
9431           sgi:       __sgi,sgi
9432           microsoft: _MSC_VER
9433           metrowerks: __MWERKS__
9434           watcom:    __WATCOMC__
9435           portland:  __PGI
9436	   tcc:       __TINYC__
9437           unknown:   UNKNOWN"
9438  for ventest in $vendors; do
9439    case $ventest in
9440      *:) vendor=$ventest; continue ;;
9441      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9442    esac
9443    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h.  */
9445
9446int
9447main ()
9448{
9449
9450      #if !($vencpp)
9451        thisisanerror;
9452      #endif
9453
9454  ;
9455  return 0;
9456}
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"; then :
9459  break
9460fi
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462  done
9463  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9464
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9467$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9468
9469
9470if test "x$GCC" = "xyes"; then
9471  CFLAGS="$CFLAGS -fexceptions"
9472  touch local.exp
9473else
9474  cat > local.exp <<EOF
9475set CC_FOR_TARGET "$CC"
9476EOF
9477fi
9478
9479# Check for linker script support
9480
9481  # Check whether --enable-ld-version-script was given.
9482if test "${enable_ld_version_script+set}" = set; then :
9483  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9484else
9485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9486$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9487if ${gl_cv_sys_ld_version_script+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  gl_cv_sys_ld_version_script=no
9491        save_LDFLAGS=$LDFLAGS
9492        LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9493        echo foo >conftest.map
9494        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496
9497int
9498main ()
9499{
9500
9501  ;
9502  return 0;
9503}
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506
9507else
9508  cat > conftest.map <<EOF
9509VERS_1 {
9510        global: sym;
9511};
9512
9513VERS_2 {
9514        global: sym;
9515} VERS_1;
9516EOF
9517           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519
9520int
9521main ()
9522{
9523
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528if ac_fn_c_try_link "$LINENO"; then :
9529  gl_cv_sys_ld_version_script=yes
9530fi
9531rm -f core conftest.err conftest.$ac_objext \
9532    conftest$ac_exeext conftest.$ac_ext
9533fi
9534rm -f core conftest.err conftest.$ac_objext \
9535    conftest$ac_exeext conftest.$ac_ext
9536        rm -f conftest.map
9537        LDFLAGS=$save_LDFLAGS
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
9540$as_echo "$gl_cv_sys_ld_version_script" >&6; }
9541     have_ld_version_script=$gl_cv_sys_ld_version_script
9542fi
9543
9544   if test "$have_ld_version_script" = yes; then
9545  HAVE_LD_VERSION_SCRIPT_TRUE=
9546  HAVE_LD_VERSION_SCRIPT_FALSE='#'
9547else
9548  HAVE_LD_VERSION_SCRIPT_TRUE='#'
9549  HAVE_LD_VERSION_SCRIPT_FALSE=
9550fi
9551
9552
9553
9554#
9555# Enable run-time checking.
9556#
9557# Check whether --enable-bounds-checking was given.
9558if test "${enable_bounds_checking+set}" = set; then :
9559  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9560else
9561  enable_bounds_checking='no'
9562fi
9563
9564
9565if test "$enable_bounds_checking" = yes; then
9566
9567$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
9568
9569fi
9570
9571#
9572# Tests for Windows
9573#
9574
9575
9576
9577GDI32_LIBS=''
9578WS2_32_LIBS=''
9579native_win32_build='no'
9580cygwin_build='no'
9581case "${host_os}" in
9582    cygwin* )
9583        cygwin_build='yes'
9584        GDI32_LIBS='-lgdi32'
9585    ;;
9586    mingw* )
9587        native_win32_build='yes'
9588        GDI32_LIBS='-lgdi32'
9589        OLE_LIBS='-loleaut32'
9590        WS2_32_LIBS="-lws2_32"
9591    ;;
9592esac
9593if test "${GDI32_LIBS}x" != 'x'; then
9594
9595$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
9596
9597fi
9598
9599
9600
9601 if test "${GDI32_LIBS}x" != 'x' ; then
9602  WINGDI32_DELEGATE_TRUE=
9603  WINGDI32_DELEGATE_FALSE='#'
9604else
9605  WINGDI32_DELEGATE_TRUE='#'
9606  WINGDI32_DELEGATE_FALSE=
9607fi
9608
9609 if test "${native_win32_build}" = 'yes' ; then
9610  WIN32_NATIVE_BUILD_TRUE=
9611  WIN32_NATIVE_BUILD_FALSE='#'
9612else
9613  WIN32_NATIVE_BUILD_TRUE='#'
9614  WIN32_NATIVE_BUILD_FALSE=
9615fi
9616
9617 if test "${cygwin_build}" = 'yes' ; then
9618  CYGWIN_BUILD_TRUE=
9619  CYGWIN_BUILD_FALSE='#'
9620else
9621  CYGWIN_BUILD_TRUE='#'
9622  CYGWIN_BUILD_FALSE=
9623fi
9624
9625 if test "x${CC}" = 'xcl.exe' ; then
9626  USING_CL_TRUE=
9627  USING_CL_FALSE='#'
9628else
9629  USING_CL_TRUE='#'
9630  USING_CL_FALSE=
9631fi
9632
9633
9634WinPathScript="${srcdirfull}/winpath.sh"
9635
9636
9637#
9638# Compiler flags tweaks
9639#
9640if test "${GCC}" != "yes"; then
9641    case "${host}" in
9642        *-*-hpux* )
9643            # aCC: HP ANSI C++ B3910B A.03.34
9644            CFLAGS="${CFLAGS} -Wp,-H30000"
9645            if test -n "${CXXFLAGS}"; then
9646                CXXFLAGS='-AA'
9647            else
9648                CXXFLAGS="${CXXFLAGS} -AA"
9649            fi
9650        ;;
9651        *-dec-osf5.* )
9652            # Compaq alphaev68-dec-osf5.1 compiler
9653            if test -n "${CXXFLAGS}"; then
9654                CXXFLAGS='-std strict_ansi -noimplicit_include'
9655            else
9656                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9657            fi
9658  esac
9659fi
9660
9661# Check for lazy-loading.
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
9663$as_echo_n "checking for linker lazyload option... " >&6; }
9664if ${im_cv_ld_lazyload+:} false; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667
9668im_cv_ld_lazyload='none'
9669case "${host}" in
9670  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9671    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9672       im_cv_ld_lazyload='-Wl,-zlazyload'
9673    fi
9674    ;;
9675esac
9676
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9679$as_echo "$im_cv_ld_lazyload" >&6; }
9680if test "${im_cv_ld_lazyload}" != 'none' ; then
9681  if test -z "${LDFLAGS}" ; then
9682    LDFLAGS="${im_cv_ld_lazyload}"
9683  else
9684    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9685  fi
9686fi
9687
9688case "$host" in
9689  *darwin* | *-macos10*)
9690        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9691        # Check whether --enable-osx-universal-binary was given.
9692if test "${enable_osx_universal_binary+set}" = set; then :
9693  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9694else
9695  build_osxuniversal=no
9696fi
9697
9698
9699    if test "${build_osxuniversal}" != no ; then
9700      if test "$enable_dependency_tracking" != no ; then
9701        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9702Please re-run configure with these options:
9703  --disable-dependency-tracking --enable-osx-universal-binary
9704        " "$LINENO" 5
9705      fi
9706      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9707      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9708      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9709  fi
9710  ;;
9711esac
9712
9713#
9714# ARCH specific include directory
9715#
9716
9717# Check whether --with-includearch-dir was given.
9718if test "${with_includearch_dir+set}" = set; then :
9719  withval=$with_includearch_dir; includearch_dir=$withval
9720else
9721  includearch_dir=$INCLUDE_DIR
9722fi
9723
9724
9725eval "eval INCLUDEARCH_DIR=$includearch_dir"
9726
9727
9728#
9729# ARCH specific configuration directory
9730#
9731
9732# Check whether --with-sharearch-dir was given.
9733if test "${with_sharearch_dir+set}" = set; then :
9734  withval=$with_sharearch_dir; sharearch_dir=$withval
9735else
9736  sharearch_dir="${LIB_DIR}"
9737fi
9738
9739
9740eval "eval SHAREARCH_DIR=$sharearch_dir"
9741
9742
9743# Path to the pkgconfig folder
9744
9745# Check whether --with-pkgconfigdir was given.
9746if test "${with_pkgconfigdir+set}" = set; then :
9747  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9748else
9749  pkgconfigdir='${libdir}/pkgconfig'
9750fi
9751
9752
9753
9754#
9755# Enable support for POSIX thread APIs
9756#
9757
9758# Check whether --with-threads was given.
9759if test "${with_threads+set}" = set; then :
9760  withval=$with_threads; with_threads=$withval
9761else
9762  with_threads='yes'
9763fi
9764
9765
9766THREAD_LIBS=''
9767have_threads=no
9768if test "$with_threads" != 'no'; then
9769
9770
9771
9772
9773ac_ext=c
9774ac_cpp='$CPP $CPPFLAGS'
9775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777ac_compiler_gnu=$ac_cv_c_compiler_gnu
9778
9779ax_pthread_ok=no
9780
9781# We used to check for pthread.h first, but this fails if pthread.h
9782# requires special compiler flags (e.g. on Tru64 or Sequent).
9783# It gets checked for in the link test anyway.
9784
9785# First of all, check if the user has set any of the PTHREAD_LIBS,
9786# etcetera environment variables, and if threads linking works using
9787# them:
9788if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9789        ax_pthread_save_CC="$CC"
9790        ax_pthread_save_CFLAGS="$CFLAGS"
9791        ax_pthread_save_LIBS="$LIBS"
9792        if test "x$PTHREAD_CC" != "x"; then :
9793  CC="$PTHREAD_CC"
9794fi
9795        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9796        LIBS="$PTHREAD_LIBS $LIBS"
9797        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9798$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9799        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801
9802/* Override any GCC internal prototype to avoid an error.
9803   Use char because int might match the return type of a GCC
9804   builtin and then its argument prototype would still apply.  */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char pthread_join ();
9809int
9810main ()
9811{
9812return pthread_join ();
9813  ;
9814  return 0;
9815}
9816_ACEOF
9817if ac_fn_c_try_link "$LINENO"; then :
9818  ax_pthread_ok=yes
9819fi
9820rm -f core conftest.err conftest.$ac_objext \
9821    conftest$ac_exeext conftest.$ac_ext
9822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9823$as_echo "$ax_pthread_ok" >&6; }
9824        if test "x$ax_pthread_ok" = "xno"; then
9825                PTHREAD_LIBS=""
9826                PTHREAD_CFLAGS=""
9827        fi
9828        CC="$ax_pthread_save_CC"
9829        CFLAGS="$ax_pthread_save_CFLAGS"
9830        LIBS="$ax_pthread_save_LIBS"
9831fi
9832
9833# We must check for the threads library under a number of different
9834# names; the ordering is very important because some systems
9835# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9836# libraries is broken (non-POSIX).
9837
9838# Create a list of thread flags to try.  Items starting with a "-" are
9839# C compiler flags, and other items are library names, except for "none"
9840# which indicates that we try without any flags at all, and "pthread-config"
9841# which is a program returning the flags for the Pth emulation library.
9842
9843ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9844
9845# The ordering *is* (sometimes) important.  Some notes on the
9846# individual items follow:
9847
9848# pthreads: AIX (must check this before -lpthread)
9849# none: in case threads are in libc; should be tried before -Kthread and
9850#       other compiler flags to prevent continual compiler warnings
9851# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9852# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9853#           (Note: HP C rejects this with "bad form for `-t' option")
9854# -pthreads: Solaris/gcc (Note: HP C also rejects)
9855# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9856#      doesn't hurt to check since this sometimes defines pthreads and
9857#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
9858#      is present but should not be used directly; and before -mthreads,
9859#      because the compiler interprets this as "-mt" + "-hreads")
9860# -mthreads: Mingw32/gcc, Lynx/gcc
9861# pthread: Linux, etcetera
9862# --thread-safe: KAI C++
9863# pthread-config: use pthread-config program (for GNU Pth library)
9864
9865case $host_os in
9866
9867        freebsd*)
9868
9869        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9870        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9871
9872        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9873        ;;
9874
9875        hpux*)
9876
9877        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9878        # multi-threading and also sets -lpthread."
9879
9880        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9881        ;;
9882
9883        openedition*)
9884
9885        # IBM z/OS requires a feature-test macro to be defined in order to
9886        # enable POSIX threads at all, so give the user a hint if this is
9887        # not set. (We don't define these ourselves, as they can affect
9888        # other portions of the system API in unpredictable ways.)
9889
9890        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891/* end confdefs.h.  */
9892
9893#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9894             AX_PTHREAD_ZOS_MISSING
9895#            endif
9896
9897_ACEOF
9898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9899  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9900  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9901$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9902fi
9903rm -f conftest*
9904
9905        ;;
9906
9907        solaris*)
9908
9909        # On Solaris (at least, for some versions), libc contains stubbed
9910        # (non-functional) versions of the pthreads routines, so link-based
9911        # tests will erroneously succeed. (N.B.: The stubs are missing
9912        # pthread_cleanup_push, or rather a function called by this macro,
9913        # so we could check for that, but who knows whether they'll stub
9914        # that too in a future libc.)  So we'll check first for the
9915        # standard Solaris way of linking pthreads (-mt -lpthread).
9916
9917        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9918        ;;
9919esac
9920
9921# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9922
9923if test "x$GCC" = "xyes"; then :
9924  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9925fi
9926
9927# The presence of a feature test macro requesting re-entrant function
9928# definitions is, on some systems, a strong hint that pthreads support is
9929# correctly enabled
9930
9931case $host_os in
9932        darwin* | hpux* | linux* | osf* | solaris*)
9933        ax_pthread_check_macro="_REENTRANT"
9934        ;;
9935
9936        aix*)
9937        ax_pthread_check_macro="_THREAD_SAFE"
9938        ;;
9939
9940        *)
9941        ax_pthread_check_macro="--"
9942        ;;
9943esac
9944if test "x$ax_pthread_check_macro" = "x--"; then :
9945  ax_pthread_check_cond=0
9946else
9947  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9948fi
9949
9950# Are we compiling with Clang?
9951
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9953$as_echo_n "checking whether $CC is Clang... " >&6; }
9954if ${ax_cv_PTHREAD_CLANG+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  ax_cv_PTHREAD_CLANG=no
9958     # Note that Autoconf sets GCC=yes for Clang as well as GCC
9959     if test "x$GCC" = "xyes"; then
9960        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961/* end confdefs.h.  */
9962/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9963#            if defined(__clang__) && defined(__llvm__)
9964             AX_PTHREAD_CC_IS_CLANG
9965#            endif
9966
9967_ACEOF
9968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9969  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9970  ax_cv_PTHREAD_CLANG=yes
9971fi
9972rm -f conftest*
9973
9974     fi
9975
9976fi
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9978$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9979ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9980
9981ax_pthread_clang_warning=no
9982
9983# Clang needs special handling, because older versions handle the -pthread
9984# option in a rather... idiosyncratic way
9985
9986if test "x$ax_pthread_clang" = "xyes"; then
9987
9988        # Clang takes -pthread; it has never supported any other flag
9989
9990        # (Note 1: This will need to be revisited if a system that Clang
9991        # supports has POSIX threads in a separate library.  This tends not
9992        # to be the way of modern systems, but it's conceivable.)
9993
9994        # (Note 2: On some systems, notably Darwin, -pthread is not needed
9995        # to get POSIX threads support; the API is always present and
9996        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
9997        # -pthread does define _REENTRANT, and while the Darwin headers
9998        # ignore this macro, third-party headers might not.)
9999
10000        PTHREAD_CFLAGS="-pthread"
10001        PTHREAD_LIBS=
10002
10003        ax_pthread_ok=yes
10004
10005        # However, older versions of Clang make a point of warning the user
10006        # that, in an invocation where only linking and no compilation is
10007        # taking place, the -pthread option has no effect ("argument unused
10008        # during compilation").  They expect -pthread to be passed in only
10009        # when source code is being compiled.
10010        #
10011        # Problem is, this is at odds with the way Automake and most other
10012        # C build frameworks function, which is that the same flags used in
10013        # compilation (CFLAGS) are also used in linking.  Many systems
10014        # supported by AX_PTHREAD require exactly this for POSIX threads
10015        # support, and in fact it is often not straightforward to specify a
10016        # flag that is used only in the compilation phase and not in
10017        # linking.  Such a scenario is extremely rare in practice.
10018        #
10019        # Even though use of the -pthread flag in linking would only print
10020        # a warning, this can be a nuisance for well-run software projects
10021        # that build with -Werror.  So if the active version of Clang has
10022        # this misfeature, we search for an option to squash it.
10023
10024        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10025$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10026if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10027  $as_echo_n "(cached) " >&6
10028else
10029  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10030             # Create an alternate version of $ac_link that compiles and
10031             # links in two steps (.c -> .o, .o -> exe) instead of one
10032             # (.c -> exe), because the warning occurs only in the second
10033             # step
10034             ax_pthread_save_ac_link="$ac_link"
10035             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10036             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10037             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10038             ax_pthread_save_CFLAGS="$CFLAGS"
10039             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10040                if test "x$ax_pthread_try" = "xunknown"; then :
10041  break
10042fi
10043                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10044                ac_link="$ax_pthread_save_ac_link"
10045                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h.  */
10047int main(void){return 0;}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050  ac_link="$ax_pthread_2step_ac_link"
10051                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052/* end confdefs.h.  */
10053int main(void){return 0;}
10054_ACEOF
10055if ac_fn_c_try_link "$LINENO"; then :
10056  break
10057fi
10058rm -f core conftest.err conftest.$ac_objext \
10059    conftest$ac_exeext conftest.$ac_ext
10060
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063    conftest$ac_exeext conftest.$ac_ext
10064             done
10065             ac_link="$ax_pthread_save_ac_link"
10066             CFLAGS="$ax_pthread_save_CFLAGS"
10067             if test "x$ax_pthread_try" = "x"; then :
10068  ax_pthread_try=no
10069fi
10070             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10071
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10074$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10075
10076        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10077                no | unknown) ;;
10078                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10079        esac
10080
10081fi # $ax_pthread_clang = yes
10082
10083if test "x$ax_pthread_ok" = "xno"; then
10084for ax_pthread_try_flag in $ax_pthread_flags; do
10085
10086        case $ax_pthread_try_flag in
10087                none)
10088                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10089$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10090                ;;
10091
10092                -mt,pthread)
10093                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10094$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10095                PTHREAD_CFLAGS="-mt"
10096                PTHREAD_LIBS="-lpthread"
10097                ;;
10098
10099                -*)
10100                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10101$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10102                PTHREAD_CFLAGS="$ax_pthread_try_flag"
10103                ;;
10104
10105                pthread-config)
10106                # Extract the first word of "pthread-config", so it can be a program name with args.
10107set dummy pthread-config; ac_word=$2
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109$as_echo_n "checking for $ac_word... " >&6; }
10110if ${ac_cv_prog_ax_pthread_config+:} false; then :
10111  $as_echo_n "(cached) " >&6
10112else
10113  if test -n "$ax_pthread_config"; then
10114  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10115else
10116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117for as_dir in $PATH
10118do
10119  IFS=$as_save_IFS
10120  test -z "$as_dir" && as_dir=.
10121    for ac_exec_ext in '' $ac_executable_extensions; do
10122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123    ac_cv_prog_ax_pthread_config="yes"
10124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125    break 2
10126  fi
10127done
10128  done
10129IFS=$as_save_IFS
10130
10131  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10132fi
10133fi
10134ax_pthread_config=$ac_cv_prog_ax_pthread_config
10135if test -n "$ax_pthread_config"; then
10136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10137$as_echo "$ax_pthread_config" >&6; }
10138else
10139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140$as_echo "no" >&6; }
10141fi
10142
10143
10144                if test "x$ax_pthread_config" = "xno"; then :
10145  continue
10146fi
10147                PTHREAD_CFLAGS="`pthread-config --cflags`"
10148                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10149                ;;
10150
10151                *)
10152                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10153$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10154                PTHREAD_LIBS="-l$ax_pthread_try_flag"
10155                ;;
10156        esac
10157
10158        ax_pthread_save_CFLAGS="$CFLAGS"
10159        ax_pthread_save_LIBS="$LIBS"
10160        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10161        LIBS="$PTHREAD_LIBS $LIBS"
10162
10163        # Check for various functions.  We must include pthread.h,
10164        # since some functions may be macros.  (On the Sequent, we
10165        # need a special flag -Kthread to make this header compile.)
10166        # We check for pthread_join because it is in -lpthread on IRIX
10167        # while pthread_create is in libc.  We check for pthread_attr_init
10168        # due to DEC craziness with -lpthreads.  We check for
10169        # pthread_cleanup_push because it is one of the few pthread
10170        # functions on Solaris that doesn't have a non-functional libc stub.
10171        # We try pthread_create on general principles.
10172
10173        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175#include <pthread.h>
10176#                       if $ax_pthread_check_cond
10177#                        error "$ax_pthread_check_macro must be defined"
10178#                       endif
10179                        static void routine(void *a) { a = 0; }
10180                        static void *start_routine(void *a) { return a; }
10181int
10182main ()
10183{
10184pthread_t th; pthread_attr_t attr;
10185                        pthread_create(&th, 0, start_routine, 0);
10186                        pthread_join(th, 0);
10187                        pthread_attr_init(&attr);
10188                        pthread_cleanup_push(routine, 0);
10189                        pthread_cleanup_pop(0) /* ; */
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"; then :
10195  ax_pthread_ok=yes
10196fi
10197rm -f core conftest.err conftest.$ac_objext \
10198    conftest$ac_exeext conftest.$ac_ext
10199
10200        CFLAGS="$ax_pthread_save_CFLAGS"
10201        LIBS="$ax_pthread_save_LIBS"
10202
10203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10204$as_echo "$ax_pthread_ok" >&6; }
10205        if test "x$ax_pthread_ok" = "xyes"; then :
10206  break
10207fi
10208
10209        PTHREAD_LIBS=""
10210        PTHREAD_CFLAGS=""
10211done
10212fi
10213
10214# Various other checks:
10215if test "x$ax_pthread_ok" = "xyes"; then
10216        ax_pthread_save_CFLAGS="$CFLAGS"
10217        ax_pthread_save_LIBS="$LIBS"
10218        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10219        LIBS="$PTHREAD_LIBS $LIBS"
10220
10221        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10222        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10223$as_echo_n "checking for joinable pthread attribute... " >&6; }
10224if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10225  $as_echo_n "(cached) " >&6
10226else
10227  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10228             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10229                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h.  */
10231#include <pthread.h>
10232int
10233main ()
10234{
10235int attr = $ax_pthread_attr; return attr /* ; */
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240if ac_fn_c_try_link "$LINENO"; then :
10241  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10242fi
10243rm -f core conftest.err conftest.$ac_objext \
10244    conftest$ac_exeext conftest.$ac_ext
10245             done
10246
10247fi
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10249$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10250        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10251               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10252               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10253
10254cat >>confdefs.h <<_ACEOF
10255#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10256_ACEOF
10257
10258               ax_pthread_joinable_attr_defined=yes
10259
10260fi
10261
10262        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10263$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10264if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  ax_cv_PTHREAD_SPECIAL_FLAGS=no
10268             case $host_os in
10269             solaris*)
10270             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10271             ;;
10272             esac
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10276$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10277        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10278               test "x$ax_pthread_special_flags_added" != "xyes"; then :
10279  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10280               ax_pthread_special_flags_added=yes
10281fi
10282
10283        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10284$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10285if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10286  $as_echo_n "(cached) " >&6
10287else
10288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290#include <pthread.h>
10291int
10292main ()
10293{
10294int i = PTHREAD_PRIO_INHERIT;
10295  ;
10296  return 0;
10297}
10298_ACEOF
10299if ac_fn_c_try_link "$LINENO"; then :
10300  ax_cv_PTHREAD_PRIO_INHERIT=yes
10301else
10302  ax_cv_PTHREAD_PRIO_INHERIT=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext \
10305    conftest$ac_exeext conftest.$ac_ext
10306
10307fi
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10309$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10310        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
10311               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
10312
10313$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10314
10315               ax_pthread_prio_inherit_defined=yes
10316
10317fi
10318
10319        CFLAGS="$ax_pthread_save_CFLAGS"
10320        LIBS="$ax_pthread_save_LIBS"
10321
10322        # More AIX lossage: compile with *_r variant
10323        if test "x$GCC" != "xyes"; then
10324            case $host_os in
10325                aix*)
10326                case "x/$CC" in #(
10327  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10328    #handle absolute path differently from PATH based program lookup
10329                     case "x$CC" in #(
10330  x/*) :
10331    if as_fn_executable_p ${CC}_r; then :
10332  PTHREAD_CC="${CC}_r"
10333fi ;; #(
10334  *) :
10335    for ac_prog in ${CC}_r
10336do
10337  # Extract the first word of "$ac_prog", so it can be a program name with args.
10338set dummy $ac_prog; ac_word=$2
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340$as_echo_n "checking for $ac_word... " >&6; }
10341if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10342  $as_echo_n "(cached) " >&6
10343else
10344  if test -n "$PTHREAD_CC"; then
10345  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10346else
10347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348for as_dir in $PATH
10349do
10350  IFS=$as_save_IFS
10351  test -z "$as_dir" && as_dir=.
10352    for ac_exec_ext in '' $ac_executable_extensions; do
10353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354    ac_cv_prog_PTHREAD_CC="$ac_prog"
10355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356    break 2
10357  fi
10358done
10359  done
10360IFS=$as_save_IFS
10361
10362fi
10363fi
10364PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10365if test -n "$PTHREAD_CC"; then
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10367$as_echo "$PTHREAD_CC" >&6; }
10368else
10369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370$as_echo "no" >&6; }
10371fi
10372
10373
10374  test -n "$PTHREAD_CC" && break
10375done
10376test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10377 ;;
10378esac ;; #(
10379  *) :
10380     ;;
10381esac
10382                ;;
10383            esac
10384        fi
10385fi
10386
10387test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10388
10389
10390
10391
10392
10393# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10394if test "x$ax_pthread_ok" = "xyes"; then
10395
10396$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10397
10398        :
10399else
10400        ax_pthread_ok=no
10401
10402fi
10403ac_ext=c
10404ac_cpp='$CPP $CPPFLAGS'
10405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408
10409
10410    if test "$ax_pthread_ok" = yes; then
10411        have_threads=yes
10412        DEF_THREAD="$PTHREAD_CFLAGS"
10413        CFLAGS="$CFLAGS $DEF_THREAD"
10414        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
10415        THREAD_LIBS="$PTHREAD_LIBS"
10416        if test "$CC" != "$PTHREAD_CC"; then
10417            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
10418$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10419            CC="$PTHREAD_CC"
10420        fi
10421
10422$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10423
10424    fi
10425fi
10426LIBS="$LIBS $THREAD_LIBS"
10427
10428
10429# Enable support for OpenMP
10430if test "$have_threads" != 'yes'; then
10431  ac_cv_prog_c_openmp=unsupported
10432fi
10433
10434  OPENMP_CFLAGS=
10435  # Check whether --enable-openmp was given.
10436if test "${enable_openmp+set}" = set; then :
10437  enableval=$enable_openmp;
10438fi
10439
10440  if test "$enable_openmp" != no; then
10441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
10442$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
10443if ${ac_cv_prog_c_openmp+:} false; then :
10444  $as_echo_n "(cached) " >&6
10445else
10446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448
10449#ifndef _OPENMP
10450 choke me
10451#endif
10452#include <omp.h>
10453int main () { return omp_get_num_threads (); }
10454
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457  ac_cv_prog_c_openmp='none needed'
10458else
10459  ac_cv_prog_c_openmp='unsupported'
10460	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10461                           -Popenmp --openmp; do
10462	    ac_save_CFLAGS=$CFLAGS
10463	    CFLAGS="$CFLAGS $ac_option"
10464	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h.  */
10466
10467#ifndef _OPENMP
10468 choke me
10469#endif
10470#include <omp.h>
10471int main () { return omp_get_num_threads (); }
10472
10473_ACEOF
10474if ac_fn_c_try_link "$LINENO"; then :
10475  ac_cv_prog_c_openmp=$ac_option
10476fi
10477rm -f core conftest.err conftest.$ac_objext \
10478    conftest$ac_exeext conftest.$ac_ext
10479	    CFLAGS=$ac_save_CFLAGS
10480	    if test "$ac_cv_prog_c_openmp" != unsupported; then
10481	      break
10482	    fi
10483	  done
10484fi
10485rm -f core conftest.err conftest.$ac_objext \
10486    conftest$ac_exeext conftest.$ac_ext
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
10489$as_echo "$ac_cv_prog_c_openmp" >&6; }
10490    case $ac_cv_prog_c_openmp in #(
10491      "none needed" | unsupported)
10492	;; #(
10493      *)
10494	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
10495    esac
10496  fi
10497
10498
10499CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10500MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10501
10502if test "$enable_openmp" != no; then
10503  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10504    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10505  fi
10506fi
10507
10508# Enable support for OpenCL
10509ax_cv_check_cl_libcl=no
10510
10511
10512
10513
10514ac_ext=c
10515ac_cpp='$CPP $CPPFLAGS'
10516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518ac_compiler_gnu=$ac_cv_c_compiler_gnu
10519
10520ax_pthread_ok=no
10521
10522# We used to check for pthread.h first, but this fails if pthread.h
10523# requires special compiler flags (e.g. on Tru64 or Sequent).
10524# It gets checked for in the link test anyway.
10525
10526# First of all, check if the user has set any of the PTHREAD_LIBS,
10527# etcetera environment variables, and if threads linking works using
10528# them:
10529if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10530        ax_pthread_save_CC="$CC"
10531        ax_pthread_save_CFLAGS="$CFLAGS"
10532        ax_pthread_save_LIBS="$LIBS"
10533        if test "x$PTHREAD_CC" != "x"; then :
10534  CC="$PTHREAD_CC"
10535fi
10536        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10537        LIBS="$PTHREAD_LIBS $LIBS"
10538        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10539$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10540        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542
10543/* Override any GCC internal prototype to avoid an error.
10544   Use char because int might match the return type of a GCC
10545   builtin and then its argument prototype would still apply.  */
10546#ifdef __cplusplus
10547extern "C"
10548#endif
10549char pthread_join ();
10550int
10551main ()
10552{
10553return pthread_join ();
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"; then :
10559  ax_pthread_ok=yes
10560fi
10561rm -f core conftest.err conftest.$ac_objext \
10562    conftest$ac_exeext conftest.$ac_ext
10563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10564$as_echo "$ax_pthread_ok" >&6; }
10565        if test "x$ax_pthread_ok" = "xno"; then
10566                PTHREAD_LIBS=""
10567                PTHREAD_CFLAGS=""
10568        fi
10569        CC="$ax_pthread_save_CC"
10570        CFLAGS="$ax_pthread_save_CFLAGS"
10571        LIBS="$ax_pthread_save_LIBS"
10572fi
10573
10574# We must check for the threads library under a number of different
10575# names; the ordering is very important because some systems
10576# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10577# libraries is broken (non-POSIX).
10578
10579# Create a list of thread flags to try.  Items starting with a "-" are
10580# C compiler flags, and other items are library names, except for "none"
10581# which indicates that we try without any flags at all, and "pthread-config"
10582# which is a program returning the flags for the Pth emulation library.
10583
10584ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10585
10586# The ordering *is* (sometimes) important.  Some notes on the
10587# individual items follow:
10588
10589# pthreads: AIX (must check this before -lpthread)
10590# none: in case threads are in libc; should be tried before -Kthread and
10591#       other compiler flags to prevent continual compiler warnings
10592# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10593# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10594#           (Note: HP C rejects this with "bad form for `-t' option")
10595# -pthreads: Solaris/gcc (Note: HP C also rejects)
10596# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10597#      doesn't hurt to check since this sometimes defines pthreads and
10598#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
10599#      is present but should not be used directly; and before -mthreads,
10600#      because the compiler interprets this as "-mt" + "-hreads")
10601# -mthreads: Mingw32/gcc, Lynx/gcc
10602# pthread: Linux, etcetera
10603# --thread-safe: KAI C++
10604# pthread-config: use pthread-config program (for GNU Pth library)
10605
10606case $host_os in
10607
10608        freebsd*)
10609
10610        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10611        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10612
10613        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10614        ;;
10615
10616        hpux*)
10617
10618        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10619        # multi-threading and also sets -lpthread."
10620
10621        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10622        ;;
10623
10624        openedition*)
10625
10626        # IBM z/OS requires a feature-test macro to be defined in order to
10627        # enable POSIX threads at all, so give the user a hint if this is
10628        # not set. (We don't define these ourselves, as they can affect
10629        # other portions of the system API in unpredictable ways.)
10630
10631        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h.  */
10633
10634#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10635             AX_PTHREAD_ZOS_MISSING
10636#            endif
10637
10638_ACEOF
10639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10640  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10642$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10643fi
10644rm -f conftest*
10645
10646        ;;
10647
10648        solaris*)
10649
10650        # On Solaris (at least, for some versions), libc contains stubbed
10651        # (non-functional) versions of the pthreads routines, so link-based
10652        # tests will erroneously succeed. (N.B.: The stubs are missing
10653        # pthread_cleanup_push, or rather a function called by this macro,
10654        # so we could check for that, but who knows whether they'll stub
10655        # that too in a future libc.)  So we'll check first for the
10656        # standard Solaris way of linking pthreads (-mt -lpthread).
10657
10658        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10659        ;;
10660esac
10661
10662# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10663
10664if test "x$GCC" = "xyes"; then :
10665  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10666fi
10667
10668# The presence of a feature test macro requesting re-entrant function
10669# definitions is, on some systems, a strong hint that pthreads support is
10670# correctly enabled
10671
10672case $host_os in
10673        darwin* | hpux* | linux* | osf* | solaris*)
10674        ax_pthread_check_macro="_REENTRANT"
10675        ;;
10676
10677        aix*)
10678        ax_pthread_check_macro="_THREAD_SAFE"
10679        ;;
10680
10681        *)
10682        ax_pthread_check_macro="--"
10683        ;;
10684esac
10685if test "x$ax_pthread_check_macro" = "x--"; then :
10686  ax_pthread_check_cond=0
10687else
10688  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10689fi
10690
10691# Are we compiling with Clang?
10692
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10694$as_echo_n "checking whether $CC is Clang... " >&6; }
10695if ${ax_cv_PTHREAD_CLANG+:} false; then :
10696  $as_echo_n "(cached) " >&6
10697else
10698  ax_cv_PTHREAD_CLANG=no
10699     # Note that Autoconf sets GCC=yes for Clang as well as GCC
10700     if test "x$GCC" = "xyes"; then
10701        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10704#            if defined(__clang__) && defined(__llvm__)
10705             AX_PTHREAD_CC_IS_CLANG
10706#            endif
10707
10708_ACEOF
10709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10710  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10711  ax_cv_PTHREAD_CLANG=yes
10712fi
10713rm -f conftest*
10714
10715     fi
10716
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10719$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10720ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10721
10722ax_pthread_clang_warning=no
10723
10724# Clang needs special handling, because older versions handle the -pthread
10725# option in a rather... idiosyncratic way
10726
10727if test "x$ax_pthread_clang" = "xyes"; then
10728
10729        # Clang takes -pthread; it has never supported any other flag
10730
10731        # (Note 1: This will need to be revisited if a system that Clang
10732        # supports has POSIX threads in a separate library.  This tends not
10733        # to be the way of modern systems, but it's conceivable.)
10734
10735        # (Note 2: On some systems, notably Darwin, -pthread is not needed
10736        # to get POSIX threads support; the API is always present and
10737        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
10738        # -pthread does define _REENTRANT, and while the Darwin headers
10739        # ignore this macro, third-party headers might not.)
10740
10741        PTHREAD_CFLAGS="-pthread"
10742        PTHREAD_LIBS=
10743
10744        ax_pthread_ok=yes
10745
10746        # However, older versions of Clang make a point of warning the user
10747        # that, in an invocation where only linking and no compilation is
10748        # taking place, the -pthread option has no effect ("argument unused
10749        # during compilation").  They expect -pthread to be passed in only
10750        # when source code is being compiled.
10751        #
10752        # Problem is, this is at odds with the way Automake and most other
10753        # C build frameworks function, which is that the same flags used in
10754        # compilation (CFLAGS) are also used in linking.  Many systems
10755        # supported by AX_PTHREAD require exactly this for POSIX threads
10756        # support, and in fact it is often not straightforward to specify a
10757        # flag that is used only in the compilation phase and not in
10758        # linking.  Such a scenario is extremely rare in practice.
10759        #
10760        # Even though use of the -pthread flag in linking would only print
10761        # a warning, this can be a nuisance for well-run software projects
10762        # that build with -Werror.  So if the active version of Clang has
10763        # this misfeature, we search for an option to squash it.
10764
10765        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10766$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10767if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10768  $as_echo_n "(cached) " >&6
10769else
10770  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10771             # Create an alternate version of $ac_link that compiles and
10772             # links in two steps (.c -> .o, .o -> exe) instead of one
10773             # (.c -> exe), because the warning occurs only in the second
10774             # step
10775             ax_pthread_save_ac_link="$ac_link"
10776             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10777             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10778             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10779             ax_pthread_save_CFLAGS="$CFLAGS"
10780             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10781                if test "x$ax_pthread_try" = "xunknown"; then :
10782  break
10783fi
10784                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10785                ac_link="$ax_pthread_save_ac_link"
10786                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h.  */
10788int main(void){return 0;}
10789_ACEOF
10790if ac_fn_c_try_link "$LINENO"; then :
10791  ac_link="$ax_pthread_2step_ac_link"
10792                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793/* end confdefs.h.  */
10794int main(void){return 0;}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797  break
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800    conftest$ac_exeext conftest.$ac_ext
10801
10802fi
10803rm -f core conftest.err conftest.$ac_objext \
10804    conftest$ac_exeext conftest.$ac_ext
10805             done
10806             ac_link="$ax_pthread_save_ac_link"
10807             CFLAGS="$ax_pthread_save_CFLAGS"
10808             if test "x$ax_pthread_try" = "x"; then :
10809  ax_pthread_try=no
10810fi
10811             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10812
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10815$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10816
10817        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10818                no | unknown) ;;
10819                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10820        esac
10821
10822fi # $ax_pthread_clang = yes
10823
10824if test "x$ax_pthread_ok" = "xno"; then
10825for ax_pthread_try_flag in $ax_pthread_flags; do
10826
10827        case $ax_pthread_try_flag in
10828                none)
10829                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10830$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10831                ;;
10832
10833                -mt,pthread)
10834                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10835$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10836                PTHREAD_CFLAGS="-mt"
10837                PTHREAD_LIBS="-lpthread"
10838                ;;
10839
10840                -*)
10841                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10842$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10843                PTHREAD_CFLAGS="$ax_pthread_try_flag"
10844                ;;
10845
10846                pthread-config)
10847                # Extract the first word of "pthread-config", so it can be a program name with args.
10848set dummy pthread-config; ac_word=$2
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850$as_echo_n "checking for $ac_word... " >&6; }
10851if ${ac_cv_prog_ax_pthread_config+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  if test -n "$ax_pthread_config"; then
10855  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860  IFS=$as_save_IFS
10861  test -z "$as_dir" && as_dir=.
10862    for ac_exec_ext in '' $ac_executable_extensions; do
10863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864    ac_cv_prog_ax_pthread_config="yes"
10865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866    break 2
10867  fi
10868done
10869  done
10870IFS=$as_save_IFS
10871
10872  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10873fi
10874fi
10875ax_pthread_config=$ac_cv_prog_ax_pthread_config
10876if test -n "$ax_pthread_config"; then
10877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10878$as_echo "$ax_pthread_config" >&6; }
10879else
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881$as_echo "no" >&6; }
10882fi
10883
10884
10885                if test "x$ax_pthread_config" = "xno"; then :
10886  continue
10887fi
10888                PTHREAD_CFLAGS="`pthread-config --cflags`"
10889                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10890                ;;
10891
10892                *)
10893                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10894$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10895                PTHREAD_LIBS="-l$ax_pthread_try_flag"
10896                ;;
10897        esac
10898
10899        ax_pthread_save_CFLAGS="$CFLAGS"
10900        ax_pthread_save_LIBS="$LIBS"
10901        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10902        LIBS="$PTHREAD_LIBS $LIBS"
10903
10904        # Check for various functions.  We must include pthread.h,
10905        # since some functions may be macros.  (On the Sequent, we
10906        # need a special flag -Kthread to make this header compile.)
10907        # We check for pthread_join because it is in -lpthread on IRIX
10908        # while pthread_create is in libc.  We check for pthread_attr_init
10909        # due to DEC craziness with -lpthreads.  We check for
10910        # pthread_cleanup_push because it is one of the few pthread
10911        # functions on Solaris that doesn't have a non-functional libc stub.
10912        # We try pthread_create on general principles.
10913
10914        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h.  */
10916#include <pthread.h>
10917#                       if $ax_pthread_check_cond
10918#                        error "$ax_pthread_check_macro must be defined"
10919#                       endif
10920                        static void routine(void *a) { a = 0; }
10921                        static void *start_routine(void *a) { return a; }
10922int
10923main ()
10924{
10925pthread_t th; pthread_attr_t attr;
10926                        pthread_create(&th, 0, start_routine, 0);
10927                        pthread_join(th, 0);
10928                        pthread_attr_init(&attr);
10929                        pthread_cleanup_push(routine, 0);
10930                        pthread_cleanup_pop(0) /* ; */
10931  ;
10932  return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"; then :
10936  ax_pthread_ok=yes
10937fi
10938rm -f core conftest.err conftest.$ac_objext \
10939    conftest$ac_exeext conftest.$ac_ext
10940
10941        CFLAGS="$ax_pthread_save_CFLAGS"
10942        LIBS="$ax_pthread_save_LIBS"
10943
10944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10945$as_echo "$ax_pthread_ok" >&6; }
10946        if test "x$ax_pthread_ok" = "xyes"; then :
10947  break
10948fi
10949
10950        PTHREAD_LIBS=""
10951        PTHREAD_CFLAGS=""
10952done
10953fi
10954
10955# Various other checks:
10956if test "x$ax_pthread_ok" = "xyes"; then
10957        ax_pthread_save_CFLAGS="$CFLAGS"
10958        ax_pthread_save_LIBS="$LIBS"
10959        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10960        LIBS="$PTHREAD_LIBS $LIBS"
10961
10962        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10963        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10964$as_echo_n "checking for joinable pthread attribute... " >&6; }
10965if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10966  $as_echo_n "(cached) " >&6
10967else
10968  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10969             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10970                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971/* end confdefs.h.  */
10972#include <pthread.h>
10973int
10974main ()
10975{
10976int attr = $ax_pthread_attr; return attr /* ; */
10977  ;
10978  return 0;
10979}
10980_ACEOF
10981if ac_fn_c_try_link "$LINENO"; then :
10982  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10983fi
10984rm -f core conftest.err conftest.$ac_objext \
10985    conftest$ac_exeext conftest.$ac_ext
10986             done
10987
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10990$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10991        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10992               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10993               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10994
10995cat >>confdefs.h <<_ACEOF
10996#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10997_ACEOF
10998
10999               ax_pthread_joinable_attr_defined=yes
11000
11001fi
11002
11003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11004$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11005if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11006  $as_echo_n "(cached) " >&6
11007else
11008  ax_cv_PTHREAD_SPECIAL_FLAGS=no
11009             case $host_os in
11010             solaris*)
11011             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11012             ;;
11013             esac
11014
11015fi
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11017$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11018        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11019               test "x$ax_pthread_special_flags_added" != "xyes"; then :
11020  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11021               ax_pthread_special_flags_added=yes
11022fi
11023
11024        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11025$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11026if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11027  $as_echo_n "(cached) " >&6
11028else
11029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031#include <pthread.h>
11032int
11033main ()
11034{
11035int i = PTHREAD_PRIO_INHERIT;
11036  ;
11037  return 0;
11038}
11039_ACEOF
11040if ac_fn_c_try_link "$LINENO"; then :
11041  ax_cv_PTHREAD_PRIO_INHERIT=yes
11042else
11043  ax_cv_PTHREAD_PRIO_INHERIT=no
11044fi
11045rm -f core conftest.err conftest.$ac_objext \
11046    conftest$ac_exeext conftest.$ac_ext
11047
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11050$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11051        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11052               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11053
11054$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11055
11056               ax_pthread_prio_inherit_defined=yes
11057
11058fi
11059
11060        CFLAGS="$ax_pthread_save_CFLAGS"
11061        LIBS="$ax_pthread_save_LIBS"
11062
11063        # More AIX lossage: compile with *_r variant
11064        if test "x$GCC" != "xyes"; then
11065            case $host_os in
11066                aix*)
11067                case "x/$CC" in #(
11068  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11069    #handle absolute path differently from PATH based program lookup
11070                     case "x$CC" in #(
11071  x/*) :
11072    if as_fn_executable_p ${CC}_r; then :
11073  PTHREAD_CC="${CC}_r"
11074fi ;; #(
11075  *) :
11076    for ac_prog in ${CC}_r
11077do
11078  # Extract the first word of "$ac_prog", so it can be a program name with args.
11079set dummy $ac_prog; ac_word=$2
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081$as_echo_n "checking for $ac_word... " >&6; }
11082if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085  if test -n "$PTHREAD_CC"; then
11086  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091  IFS=$as_save_IFS
11092  test -z "$as_dir" && as_dir=.
11093    for ac_exec_ext in '' $ac_executable_extensions; do
11094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095    ac_cv_prog_PTHREAD_CC="$ac_prog"
11096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097    break 2
11098  fi
11099done
11100  done
11101IFS=$as_save_IFS
11102
11103fi
11104fi
11105PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11106if test -n "$PTHREAD_CC"; then
11107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11108$as_echo "$PTHREAD_CC" >&6; }
11109else
11110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
11112fi
11113
11114
11115  test -n "$PTHREAD_CC" && break
11116done
11117test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11118 ;;
11119esac ;; #(
11120  *) :
11121     ;;
11122esac
11123                ;;
11124            esac
11125        fi
11126fi
11127
11128test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11129
11130
11131
11132
11133
11134# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11135if test "x$ax_pthread_ok" = "xyes"; then
11136
11137$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11138
11139        :
11140else
11141        ax_pthread_ok=no
11142
11143fi
11144ac_ext=c
11145ac_cpp='$CPP $CPPFLAGS'
11146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11148ac_compiler_gnu=$ac_cv_c_compiler_gnu
11149
11150
11151
11152# Check whether --enable-opencl was given.
11153if test "${enable_opencl+set}" = set; then :
11154  enableval=$enable_opencl; disable_opencl=$enableval
11155else
11156  disable_opencl='yes'
11157fi
11158
11159
11160if test "$disable_opencl" = 'yes'; then
11161  ac_ext=c
11162ac_cpp='$CPP $CPPFLAGS'
11163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
11168$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
11169if ${ax_cv_c_compiler_ms+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175int
11176main ()
11177{
11178#ifndef _MSC_VER
11179       choke me
11180#endif
11181
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186if ac_fn_c_try_compile "$LINENO"; then :
11187  ax_compiler_ms=yes
11188else
11189  ax_compiler_ms=no
11190fi
11191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192ax_cv_c_compiler_ms=$ax_compiler_ms
11193
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
11196$as_echo "$ax_cv_c_compiler_ms" >&6; }
11197  if test X$ax_compiler_ms = Xno; then :
11198  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
11199fi
11200
11201  ax_save_CPPFLAGS=$CPPFLAGS
11202  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11203  for ac_header in CL/cl.h OpenCL/cl.h
11204do :
11205  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11206ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11208  cat >>confdefs.h <<_ACEOF
11209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11210_ACEOF
11211
11212fi
11213
11214done
11215
11216  CPPFLAGS=$ax_save_CPPFLAGS
11217
11218  for ac_header in windows.h
11219do :
11220  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11221if test "x$ac_cv_header_windows_h" = xyes; then :
11222  cat >>confdefs.h <<_ACEOF
11223#define HAVE_WINDOWS_H 1
11224_ACEOF
11225
11226fi
11227
11228done
11229
11230
11231
11232
11233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
11234$as_echo_n "checking for OpenCL library... " >&6; }
11235if ${ax_cv_check_cl_libcl+:} false; then :
11236  $as_echo_n "(cached) " >&6
11237else
11238  ax_cv_check_cl_libcl=no
11239  case $host_cpu in
11240    x86_64) ax_check_cl_libdir=lib64 ;;
11241    *)      ax_check_cl_libdir=lib ;;
11242  esac
11243  ax_save_CPPFLAGS=$CPPFLAGS
11244  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11245  ax_save_LIBS=$LIBS
11246  LIBS=""
11247  ax_check_libs="-lOpenCL -lCL -lclparser"
11248  for ax_lib in $ax_check_libs; do
11249    if test X$ax_compiler_ms = Xyes; then :
11250  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
11251else
11252  ax_try_lib=$ax_lib
11253fi
11254    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
11255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257
11258  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11259  #   include <windows.h>
11260  # endif
11261  # ifdef HAVE_CL_CL_H
11262  #   include <CL/cl.h>
11263  # elif defined(HAVE_OPENCL_CL_H)
11264  #   include <OpenCL/cl.h>
11265  # else
11266  #   error no CL.h
11267  # endif
11268int
11269main ()
11270{
11271clCreateContextFromType(0,0,0,0,0)
11272  ;
11273  return 0;
11274}
11275_ACEOF
11276if ac_fn_c_try_link "$LINENO"; then :
11277  ax_cv_check_cl_libcl=$ax_try_lib; break
11278else
11279  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"
11280                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282
11283  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11284  #   include <windows.h>
11285  # endif
11286  # ifdef HAVE_CL_CL_H
11287  #   include <CL/cl.h>
11288  # elif defined(HAVE_OPENCL_CL_H)
11289  #   include <OpenCL/cl.h>
11290  # else
11291  #   error no CL.h
11292  # endif
11293int
11294main ()
11295{
11296clCreateContextFromType(0,0,0,0,0)
11297  ;
11298  return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"; then :
11302  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
11303else
11304  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"
11305                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h.  */
11307
11308  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11309  #   include <windows.h>
11310  # endif
11311  # ifdef HAVE_CL_CL_H
11312  #   include <CL/cl.h>
11313  # elif defined(HAVE_OPENCL_CL_H)
11314  #   include <OpenCL/cl.h>
11315  # else
11316  #   error no CL.h
11317  # endif
11318int
11319main ()
11320{
11321clCreateContextFromType(0,0,0,0,0)
11322  ;
11323  return 0;
11324}
11325_ACEOF
11326if ac_fn_c_try_link "$LINENO"; then :
11327  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
11328fi
11329rm -f core conftest.err conftest.$ac_objext \
11330    conftest$ac_exeext conftest.$ac_ext
11331fi
11332rm -f core conftest.err conftest.$ac_objext \
11333    conftest$ac_exeext conftest.$ac_ext
11334fi
11335rm -f core conftest.err conftest.$ac_objext \
11336    conftest$ac_exeext conftest.$ac_ext
11337  done
11338
11339  if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
11340  LIBS='-framework OpenCL'
11341        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343
11344  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11345  #   include <windows.h>
11346  # endif
11347  # ifdef HAVE_CL_CL_H
11348  #   include <CL/cl.h>
11349  # elif defined(HAVE_OPENCL_CL_H)
11350  #   include <OpenCL/cl.h>
11351  # else
11352  #   error no CL.h
11353  # endif
11354int
11355main ()
11356{
11357clCreateContextFromType(0,0,0,0,0)
11358  ;
11359  return 0;
11360}
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"; then :
11363  ax_cv_check_cl_libcl=$LIBS
11364fi
11365rm -f core conftest.err conftest.$ac_objext \
11366    conftest$ac_exeext conftest.$ac_ext
11367fi
11368
11369  LIBS=$ax_save_LIBS
11370  CPPFLAGS=$ax_save_CPPFLAGS
11371fi
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
11373$as_echo "$ax_cv_check_cl_libcl" >&6; }
11374
11375  if test "X$ax_cv_check_cl_libcl" = Xno; then :
11376  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
11377else
11378  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
11379$as_echo "#define _OPENCL 1" >>confdefs.h
11380
11381fi
11382  ac_ext=c
11383ac_cpp='$CPP $CPPFLAGS'
11384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387
11388fi
11389
11390
11391
11392
11393CFLAGS="$CL_CFLAGS $CFLAGS"
11394CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11395LIBS="$CL_LIBS $LIBS"
11396
11397if test "X$ax_cv_check_cl_libcl" != Xno; then :
11398  MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
11399fi
11400
11401########
11402#
11403# Check for large file support
11404#
11405########
11406# Check whether --enable-largefile was given.
11407if test "${enable_largefile+set}" = set; then :
11408  enableval=$enable_largefile;
11409fi
11410
11411if test "$enable_largefile" != no; then
11412
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11414$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11415if ${ac_cv_sys_largefile_CC+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  ac_cv_sys_largefile_CC=no
11419     if test "$GCC" != yes; then
11420       ac_save_CC=$CC
11421       while :; do
11422	 # IRIX 6.2 and later do not support large files by default,
11423	 # so use the C compiler's -n32 option if that helps.
11424	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425/* end confdefs.h.  */
11426#include <sys/types.h>
11427 /* Check that off_t can represent 2**63 - 1 correctly.
11428    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11429    since some C++ compilers masquerading as C compilers
11430    incorrectly reject 9223372036854775807.  */
11431#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11432  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11433		       && LARGE_OFF_T % 2147483647 == 1)
11434		      ? 1 : -1];
11435int
11436main ()
11437{
11438
11439  ;
11440  return 0;
11441}
11442_ACEOF
11443	 if ac_fn_c_try_compile "$LINENO"; then :
11444  break
11445fi
11446rm -f core conftest.err conftest.$ac_objext
11447	 CC="$CC -n32"
11448	 if ac_fn_c_try_compile "$LINENO"; then :
11449  ac_cv_sys_largefile_CC=' -n32'; break
11450fi
11451rm -f core conftest.err conftest.$ac_objext
11452	 break
11453       done
11454       CC=$ac_save_CC
11455       rm -f conftest.$ac_ext
11456    fi
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11459$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11460  if test "$ac_cv_sys_largefile_CC" != no; then
11461    CC=$CC$ac_cv_sys_largefile_CC
11462  fi
11463
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11465$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11466if ${ac_cv_sys_file_offset_bits+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  while :; do
11470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471/* end confdefs.h.  */
11472#include <sys/types.h>
11473 /* Check that off_t can represent 2**63 - 1 correctly.
11474    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11475    since some C++ compilers masquerading as C compilers
11476    incorrectly reject 9223372036854775807.  */
11477#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11478  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11479		       && LARGE_OFF_T % 2147483647 == 1)
11480		      ? 1 : -1];
11481int
11482main ()
11483{
11484
11485  ;
11486  return 0;
11487}
11488_ACEOF
11489if ac_fn_c_try_compile "$LINENO"; then :
11490  ac_cv_sys_file_offset_bits=no; break
11491fi
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494/* end confdefs.h.  */
11495#define _FILE_OFFSET_BITS 64
11496#include <sys/types.h>
11497 /* Check that off_t can represent 2**63 - 1 correctly.
11498    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11499    since some C++ compilers masquerading as C compilers
11500    incorrectly reject 9223372036854775807.  */
11501#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11502  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11503		       && LARGE_OFF_T % 2147483647 == 1)
11504		      ? 1 : -1];
11505int
11506main ()
11507{
11508
11509  ;
11510  return 0;
11511}
11512_ACEOF
11513if ac_fn_c_try_compile "$LINENO"; then :
11514  ac_cv_sys_file_offset_bits=64; break
11515fi
11516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517  ac_cv_sys_file_offset_bits=unknown
11518  break
11519done
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11522$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11523case $ac_cv_sys_file_offset_bits in #(
11524  no | unknown) ;;
11525  *)
11526cat >>confdefs.h <<_ACEOF
11527#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11528_ACEOF
11529;;
11530esac
11531rm -rf conftest*
11532  if test $ac_cv_sys_file_offset_bits = unknown; then
11533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11534$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11535if ${ac_cv_sys_large_files+:} false; then :
11536  $as_echo_n "(cached) " >&6
11537else
11538  while :; do
11539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h.  */
11541#include <sys/types.h>
11542 /* Check that off_t can represent 2**63 - 1 correctly.
11543    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11544    since some C++ compilers masquerading as C compilers
11545    incorrectly reject 9223372036854775807.  */
11546#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11547  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11548		       && LARGE_OFF_T % 2147483647 == 1)
11549		      ? 1 : -1];
11550int
11551main ()
11552{
11553
11554  ;
11555  return 0;
11556}
11557_ACEOF
11558if ac_fn_c_try_compile "$LINENO"; then :
11559  ac_cv_sys_large_files=no; break
11560fi
11561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563/* end confdefs.h.  */
11564#define _LARGE_FILES 1
11565#include <sys/types.h>
11566 /* Check that off_t can represent 2**63 - 1 correctly.
11567    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11568    since some C++ compilers masquerading as C compilers
11569    incorrectly reject 9223372036854775807.  */
11570#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11571  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11572		       && LARGE_OFF_T % 2147483647 == 1)
11573		      ? 1 : -1];
11574int
11575main ()
11576{
11577
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_compile "$LINENO"; then :
11583  ac_cv_sys_large_files=1; break
11584fi
11585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586  ac_cv_sys_large_files=unknown
11587  break
11588done
11589fi
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11591$as_echo "$ac_cv_sys_large_files" >&6; }
11592case $ac_cv_sys_large_files in #(
11593  no | unknown) ;;
11594  *)
11595cat >>confdefs.h <<_ACEOF
11596#define _LARGE_FILES $ac_cv_sys_large_files
11597_ACEOF
11598;;
11599esac
11600rm -rf conftest*
11601  fi
11602
11603
11604fi
11605
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11607$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11608if ${ac_cv_sys_largefile_source+:} false; then :
11609  $as_echo_n "(cached) " >&6
11610else
11611  while :; do
11612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h.  */
11614#include <sys/types.h> /* for off_t */
11615     #include <stdio.h>
11616int
11617main ()
11618{
11619int (*fp) (FILE *, off_t, int) = fseeko;
11620     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
11626  ac_cv_sys_largefile_source=no; break
11627fi
11628rm -f core conftest.err conftest.$ac_objext \
11629    conftest$ac_exeext conftest.$ac_ext
11630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632#define _LARGEFILE_SOURCE 1
11633#include <sys/types.h> /* for off_t */
11634     #include <stdio.h>
11635int
11636main ()
11637{
11638int (*fp) (FILE *, off_t, int) = fseeko;
11639     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_link "$LINENO"; then :
11645  ac_cv_sys_largefile_source=1; break
11646fi
11647rm -f core conftest.err conftest.$ac_objext \
11648    conftest$ac_exeext conftest.$ac_ext
11649  ac_cv_sys_largefile_source=unknown
11650  break
11651done
11652fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11654$as_echo "$ac_cv_sys_largefile_source" >&6; }
11655case $ac_cv_sys_largefile_source in #(
11656  no | unknown) ;;
11657  *)
11658cat >>confdefs.h <<_ACEOF
11659#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11660_ACEOF
11661;;
11662esac
11663rm -rf conftest*
11664
11665# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11666# in glibc 2.1.3, but that breaks too many other things.
11667# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11668if test $ac_cv_sys_largefile_source != unknown; then
11669
11670$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11671
11672fi
11673
11674LFS_CPPFLAGS=''
11675if test "$enable_largefile" != no; then
11676    case $ac_cv_sys_file_offset_bits in
11677    no)
11678        # nothing to do here as the host supports LFS fine
11679        ;;
11680    unknown)
11681        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
11682$as_echo_n "checking for native large file support... " >&6; }
11683        if test "$cross_compiling" = yes; then :
11684  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11686as_fn_error $? "cannot run test program while cross compiling
11687See \`config.log' for more details" "$LINENO" 5; }
11688else
11689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690/* end confdefs.h.  */
11691#include <unistd.h>
11692          main () {
11693          exit(!(sizeof(off_t) == 8));
11694        }
11695int
11696main ()
11697{
11698
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_run "$LINENO"; then :
11704  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11705
11706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11707$as_echo "yes" >&6; }
11708else
11709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
11711fi
11712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11713  conftest.$ac_objext conftest.beam conftest.$ac_ext
11714fi
11715
11716        ;;
11717    *)
11718        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11719        ;;
11720    esac
11721    if test "$ac_cv_sys_large_files" != 'no'; then
11722        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11723    fi
11724    if test "$ac_cv_sys_largefile_source" != 'no'; then
11725        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11726    fi
11727fi
11728
11729
11730# Configure libtool
11731: ${AR_FLAGS=cr}
11732enable_dlopen=yes
11733
11734
11735
11736case `pwd` in
11737  *\ * | *\	*)
11738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11739$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11740esac
11741
11742
11743
11744macro_version='2.4.6'
11745macro_revision='2.4.6'
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759ltmain=$ac_aux_dir/ltmain.sh
11760
11761# Backslashify metacharacters that are still active within
11762# double-quoted strings.
11763sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11764
11765# Same as above, but do not quote variable references.
11766double_quote_subst='s/\(["`\\]\)/\\\1/g'
11767
11768# Sed substitution to delay expansion of an escaped shell variable in a
11769# double_quote_subst'ed string.
11770delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11771
11772# Sed substitution to delay expansion of an escaped single quote.
11773delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11774
11775# Sed substitution to avoid accidental globbing in evaled expressions
11776no_glob_subst='s/\*/\\\*/g'
11777
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11779$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11780if ${lt_cv_path_NM+:} false; then :
11781  $as_echo_n "(cached) " >&6
11782else
11783  if test -n "$NM"; then
11784  # Let the user override the test.
11785  lt_cv_path_NM=$NM
11786else
11787  lt_nm_to_check=${ac_tool_prefix}nm
11788  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11789    lt_nm_to_check="$lt_nm_to_check nm"
11790  fi
11791  for lt_tmp_nm in $lt_nm_to_check; do
11792    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11793    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11794      IFS=$lt_save_ifs
11795      test -z "$ac_dir" && ac_dir=.
11796      tmp_nm=$ac_dir/$lt_tmp_nm
11797      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11798	# Check to see if the nm accepts a BSD-compat flag.
11799	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11800	#   nm: unknown option "B" ignored
11801	# Tru64's nm complains that /dev/null is an invalid object file
11802	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11803	case $build_os in
11804	mingw*) lt_bad_file=conftest.nm/nofile ;;
11805	*) lt_bad_file=/dev/null ;;
11806	esac
11807	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11808	*$lt_bad_file* | *'Invalid file or object type'*)
11809	  lt_cv_path_NM="$tmp_nm -B"
11810	  break 2
11811	  ;;
11812	*)
11813	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11814	  */dev/null*)
11815	    lt_cv_path_NM="$tmp_nm -p"
11816	    break 2
11817	    ;;
11818	  *)
11819	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11820	    continue # so that we can try to find one that supports BSD flags
11821	    ;;
11822	  esac
11823	  ;;
11824	esac
11825      fi
11826    done
11827    IFS=$lt_save_ifs
11828  done
11829  : ${lt_cv_path_NM=no}
11830fi
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11833$as_echo "$lt_cv_path_NM" >&6; }
11834if test no != "$lt_cv_path_NM"; then
11835  NM=$lt_cv_path_NM
11836else
11837  # Didn't find any BSD compatible name lister, look for dumpbin.
11838  if test -n "$DUMPBIN"; then :
11839    # Let the user override the test.
11840  else
11841    if test -n "$ac_tool_prefix"; then
11842  for ac_prog in dumpbin "link -dump"
11843  do
11844    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11845set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847$as_echo_n "checking for $ac_word... " >&6; }
11848if ${ac_cv_prog_DUMPBIN+:} false; then :
11849  $as_echo_n "(cached) " >&6
11850else
11851  if test -n "$DUMPBIN"; then
11852  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11853else
11854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855for as_dir in $PATH
11856do
11857  IFS=$as_save_IFS
11858  test -z "$as_dir" && as_dir=.
11859    for ac_exec_ext in '' $ac_executable_extensions; do
11860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863    break 2
11864  fi
11865done
11866  done
11867IFS=$as_save_IFS
11868
11869fi
11870fi
11871DUMPBIN=$ac_cv_prog_DUMPBIN
11872if test -n "$DUMPBIN"; then
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11874$as_echo "$DUMPBIN" >&6; }
11875else
11876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877$as_echo "no" >&6; }
11878fi
11879
11880
11881    test -n "$DUMPBIN" && break
11882  done
11883fi
11884if test -z "$DUMPBIN"; then
11885  ac_ct_DUMPBIN=$DUMPBIN
11886  for ac_prog in dumpbin "link -dump"
11887do
11888  # Extract the first word of "$ac_prog", so it can be a program name with args.
11889set dummy $ac_prog; ac_word=$2
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
11892if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11893  $as_echo_n "(cached) " >&6
11894else
11895  if test -n "$ac_ct_DUMPBIN"; then
11896  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901  IFS=$as_save_IFS
11902  test -z "$as_dir" && as_dir=.
11903    for ac_exec_ext in '' $ac_executable_extensions; do
11904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11905    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907    break 2
11908  fi
11909done
11910  done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11916if test -n "$ac_ct_DUMPBIN"; then
11917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11918$as_echo "$ac_ct_DUMPBIN" >&6; }
11919else
11920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924
11925  test -n "$ac_ct_DUMPBIN" && break
11926done
11927
11928  if test "x$ac_ct_DUMPBIN" = x; then
11929    DUMPBIN=":"
11930  else
11931    case $cross_compiling:$ac_tool_warned in
11932yes:)
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11935ac_tool_warned=yes ;;
11936esac
11937    DUMPBIN=$ac_ct_DUMPBIN
11938  fi
11939fi
11940
11941    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11942    *COFF*)
11943      DUMPBIN="$DUMPBIN -symbols -headers"
11944      ;;
11945    *)
11946      DUMPBIN=:
11947      ;;
11948    esac
11949  fi
11950
11951  if test : != "$DUMPBIN"; then
11952    NM=$DUMPBIN
11953  fi
11954fi
11955test -z "$NM" && NM=nm
11956
11957
11958
11959
11960
11961
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11963$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11964if ${lt_cv_nm_interface+:} false; then :
11965  $as_echo_n "(cached) " >&6
11966else
11967  lt_cv_nm_interface="BSD nm"
11968  echo "int some_variable = 0;" > conftest.$ac_ext
11969  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11970  (eval "$ac_compile" 2>conftest.err)
11971  cat conftest.err >&5
11972  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11973  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11974  cat conftest.err >&5
11975  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11976  cat conftest.out >&5
11977  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11978    lt_cv_nm_interface="MS dumpbin"
11979  fi
11980  rm -f conftest*
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11983$as_echo "$lt_cv_nm_interface" >&6; }
11984
11985# find the maximum length of command line arguments
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11987$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11988if ${lt_cv_sys_max_cmd_len+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991    i=0
11992  teststring=ABCD
11993
11994  case $build_os in
11995  msdosdjgpp*)
11996    # On DJGPP, this test can blow up pretty badly due to problems in libc
11997    # (any single argument exceeding 2000 bytes causes a buffer overrun
11998    # during glob expansion).  Even if it were fixed, the result of this
11999    # check would be larger than it should be.
12000    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12001    ;;
12002
12003  gnu*)
12004    # Under GNU Hurd, this test is not required because there is
12005    # no limit to the length of command line arguments.
12006    # Libtool will interpret -1 as no limit whatsoever
12007    lt_cv_sys_max_cmd_len=-1;
12008    ;;
12009
12010  cygwin* | mingw* | cegcc*)
12011    # On Win9x/ME, this test blows up -- it succeeds, but takes
12012    # about 5 minutes as the teststring grows exponentially.
12013    # Worse, since 9x/ME are not pre-emptively multitasking,
12014    # you end up with a "frozen" computer, even though with patience
12015    # the test eventually succeeds (with a max line length of 256k).
12016    # Instead, let's just punt: use the minimum linelength reported by
12017    # all of the supported platforms: 8192 (on NT/2K/XP).
12018    lt_cv_sys_max_cmd_len=8192;
12019    ;;
12020
12021  mint*)
12022    # On MiNT this can take a long time and run out of memory.
12023    lt_cv_sys_max_cmd_len=8192;
12024    ;;
12025
12026  amigaos*)
12027    # On AmigaOS with pdksh, this test takes hours, literally.
12028    # So we just punt and use a minimum line length of 8192.
12029    lt_cv_sys_max_cmd_len=8192;
12030    ;;
12031
12032  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
12033    # This has been around since 386BSD, at least.  Likely further.
12034    if test -x /sbin/sysctl; then
12035      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12036    elif test -x /usr/sbin/sysctl; then
12037      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12038    else
12039      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12040    fi
12041    # And add a safety zone
12042    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12043    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12044    ;;
12045
12046  interix*)
12047    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12048    lt_cv_sys_max_cmd_len=196608
12049    ;;
12050
12051  os2*)
12052    # The test takes a long time on OS/2.
12053    lt_cv_sys_max_cmd_len=8192
12054    ;;
12055
12056  osf*)
12057    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12058    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12059    # nice to cause kernel panics so lets avoid the loop below.
12060    # First set a reasonable default.
12061    lt_cv_sys_max_cmd_len=16384
12062    #
12063    if test -x /sbin/sysconfig; then
12064      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12065        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12066      esac
12067    fi
12068    ;;
12069  sco3.2v5*)
12070    lt_cv_sys_max_cmd_len=102400
12071    ;;
12072  sysv5* | sco5v6* | sysv4.2uw2*)
12073    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12074    if test -n "$kargmax"; then
12075      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12076    else
12077      lt_cv_sys_max_cmd_len=32768
12078    fi
12079    ;;
12080  *)
12081    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12082    if test -n "$lt_cv_sys_max_cmd_len" && \
12083       test undefined != "$lt_cv_sys_max_cmd_len"; then
12084      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12085      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12086    else
12087      # Make teststring a little bigger before we do anything with it.
12088      # a 1K string should be a reasonable start.
12089      for i in 1 2 3 4 5 6 7 8; do
12090        teststring=$teststring$teststring
12091      done
12092      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12093      # If test is not a shell built-in, we'll probably end up computing a
12094      # maximum length that is only half of the actual maximum length, but
12095      # we can't tell.
12096      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12097	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12098	      test 17 != "$i" # 1/2 MB should be enough
12099      do
12100        i=`expr $i + 1`
12101        teststring=$teststring$teststring
12102      done
12103      # Only check the string length outside the loop.
12104      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12105      teststring=
12106      # Add a significant safety factor because C++ compilers can tack on
12107      # massive amounts of additional arguments before passing them to the
12108      # linker.  It appears as though 1/2 is a usable value.
12109      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12110    fi
12111    ;;
12112  esac
12113
12114fi
12115
12116if test -n "$lt_cv_sys_max_cmd_len"; then
12117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12118$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12119else
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12121$as_echo "none" >&6; }
12122fi
12123max_cmd_len=$lt_cv_sys_max_cmd_len
12124
12125
12126
12127
12128
12129
12130: ${CP="cp -f"}
12131: ${MV="mv -f"}
12132: ${RM="rm -f"}
12133
12134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12135  lt_unset=unset
12136else
12137  lt_unset=false
12138fi
12139
12140
12141
12142
12143
12144# test EBCDIC or ASCII
12145case `echo X|tr X '\101'` in
12146 A) # ASCII based system
12147    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12148  lt_SP2NL='tr \040 \012'
12149  lt_NL2SP='tr \015\012 \040\040'
12150  ;;
12151 *) # EBCDIC based system
12152  lt_SP2NL='tr \100 \n'
12153  lt_NL2SP='tr \r\n \100\100'
12154  ;;
12155esac
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12166$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12167if ${lt_cv_to_host_file_cmd+:} false; then :
12168  $as_echo_n "(cached) " >&6
12169else
12170  case $host in
12171  *-*-mingw* )
12172    case $build in
12173      *-*-mingw* ) # actually msys
12174        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12175        ;;
12176      *-*-cygwin* )
12177        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12178        ;;
12179      * ) # otherwise, assume *nix
12180        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12181        ;;
12182    esac
12183    ;;
12184  *-*-cygwin* )
12185    case $build in
12186      *-*-mingw* ) # actually msys
12187        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12188        ;;
12189      *-*-cygwin* )
12190        lt_cv_to_host_file_cmd=func_convert_file_noop
12191        ;;
12192      * ) # otherwise, assume *nix
12193        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12194        ;;
12195    esac
12196    ;;
12197  * ) # unhandled hosts (and "normal" native builds)
12198    lt_cv_to_host_file_cmd=func_convert_file_noop
12199    ;;
12200esac
12201
12202fi
12203
12204to_host_file_cmd=$lt_cv_to_host_file_cmd
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12206$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12207
12208
12209
12210
12211
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12213$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12214if ${lt_cv_to_tool_file_cmd+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  #assume ordinary cross tools, or native build.
12218lt_cv_to_tool_file_cmd=func_convert_file_noop
12219case $host in
12220  *-*-mingw* )
12221    case $build in
12222      *-*-mingw* ) # actually msys
12223        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12224        ;;
12225    esac
12226    ;;
12227esac
12228
12229fi
12230
12231to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12233$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12234
12235
12236
12237
12238
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12240$as_echo_n "checking for $LD option to reload object files... " >&6; }
12241if ${lt_cv_ld_reload_flag+:} false; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244  lt_cv_ld_reload_flag='-r'
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12247$as_echo "$lt_cv_ld_reload_flag" >&6; }
12248reload_flag=$lt_cv_ld_reload_flag
12249case $reload_flag in
12250"" | " "*) ;;
12251*) reload_flag=" $reload_flag" ;;
12252esac
12253reload_cmds='$LD$reload_flag -o $output$reload_objs'
12254case $host_os in
12255  cygwin* | mingw* | pw32* | cegcc*)
12256    if test yes != "$GCC"; then
12257      reload_cmds=false
12258    fi
12259    ;;
12260  darwin*)
12261    if test yes = "$GCC"; then
12262      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12263    else
12264      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12265    fi
12266    ;;
12267esac
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277if test -n "$ac_tool_prefix"; then
12278  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12279set dummy ${ac_tool_prefix}objdump; ac_word=$2
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281$as_echo_n "checking for $ac_word... " >&6; }
12282if ${ac_cv_prog_OBJDUMP+:} false; then :
12283  $as_echo_n "(cached) " >&6
12284else
12285  if test -n "$OBJDUMP"; then
12286  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12287else
12288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291  IFS=$as_save_IFS
12292  test -z "$as_dir" && as_dir=.
12293    for ac_exec_ext in '' $ac_executable_extensions; do
12294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297    break 2
12298  fi
12299done
12300  done
12301IFS=$as_save_IFS
12302
12303fi
12304fi
12305OBJDUMP=$ac_cv_prog_OBJDUMP
12306if test -n "$OBJDUMP"; then
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12308$as_echo "$OBJDUMP" >&6; }
12309else
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312fi
12313
12314
12315fi
12316if test -z "$ac_cv_prog_OBJDUMP"; then
12317  ac_ct_OBJDUMP=$OBJDUMP
12318  # Extract the first word of "objdump", so it can be a program name with args.
12319set dummy objdump; ac_word=$2
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  if test -n "$ac_ct_OBJDUMP"; then
12326  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12327else
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331  IFS=$as_save_IFS
12332  test -z "$as_dir" && as_dir=.
12333    for ac_exec_ext in '' $ac_executable_extensions; do
12334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337    break 2
12338  fi
12339done
12340  done
12341IFS=$as_save_IFS
12342
12343fi
12344fi
12345ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12346if test -n "$ac_ct_OBJDUMP"; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12348$as_echo "$ac_ct_OBJDUMP" >&6; }
12349else
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354  if test "x$ac_ct_OBJDUMP" = x; then
12355    OBJDUMP="false"
12356  else
12357    case $cross_compiling:$ac_tool_warned in
12358yes:)
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12361ac_tool_warned=yes ;;
12362esac
12363    OBJDUMP=$ac_ct_OBJDUMP
12364  fi
12365else
12366  OBJDUMP="$ac_cv_prog_OBJDUMP"
12367fi
12368
12369test -z "$OBJDUMP" && OBJDUMP=objdump
12370
12371
12372
12373
12374
12375
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12377$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12378if ${lt_cv_deplibs_check_method+:} false; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  lt_cv_file_magic_cmd='$MAGIC_CMD'
12382lt_cv_file_magic_test_file=
12383lt_cv_deplibs_check_method='unknown'
12384# Need to set the preceding variable on all platforms that support
12385# interlibrary dependencies.
12386# 'none' -- dependencies not supported.
12387# 'unknown' -- same as none, but documents that we really don't know.
12388# 'pass_all' -- all dependencies passed with no checks.
12389# 'test_compile' -- check by making test program.
12390# 'file_magic [[regex]]' -- check by looking for files in library path
12391# that responds to the $file_magic_cmd with a given extended regex.
12392# If you have 'file' or equivalent on your system and you're not sure
12393# whether 'pass_all' will *always* work, you probably want this one.
12394
12395case $host_os in
12396aix[4-9]*)
12397  lt_cv_deplibs_check_method=pass_all
12398  ;;
12399
12400beos*)
12401  lt_cv_deplibs_check_method=pass_all
12402  ;;
12403
12404bsdi[45]*)
12405  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12406  lt_cv_file_magic_cmd='/usr/bin/file -L'
12407  lt_cv_file_magic_test_file=/shlib/libc.so
12408  ;;
12409
12410cygwin*)
12411  # func_win32_libid is a shell function defined in ltmain.sh
12412  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12413  lt_cv_file_magic_cmd='func_win32_libid'
12414  ;;
12415
12416mingw* | pw32*)
12417  # Base MSYS/MinGW do not provide the 'file' command needed by
12418  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12419  # unless we find 'file', for example because we are cross-compiling.
12420  if ( file / ) >/dev/null 2>&1; then
12421    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12422    lt_cv_file_magic_cmd='func_win32_libid'
12423  else
12424    # Keep this pattern in sync with the one in func_win32_libid.
12425    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12426    lt_cv_file_magic_cmd='$OBJDUMP -f'
12427  fi
12428  ;;
12429
12430cegcc*)
12431  # use the weaker test based on 'objdump'. See mingw*.
12432  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12433  lt_cv_file_magic_cmd='$OBJDUMP -f'
12434  ;;
12435
12436darwin* | rhapsody*)
12437  lt_cv_deplibs_check_method=pass_all
12438  ;;
12439
12440freebsd* | dragonfly*)
12441  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12442    case $host_cpu in
12443    i*86 )
12444      # Not sure whether the presence of OpenBSD here was a mistake.
12445      # Let's accept both of them until this is cleared up.
12446      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12447      lt_cv_file_magic_cmd=/usr/bin/file
12448      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12449      ;;
12450    esac
12451  else
12452    lt_cv_deplibs_check_method=pass_all
12453  fi
12454  ;;
12455
12456haiku*)
12457  lt_cv_deplibs_check_method=pass_all
12458  ;;
12459
12460hpux10.20* | hpux11*)
12461  lt_cv_file_magic_cmd=/usr/bin/file
12462  case $host_cpu in
12463  ia64*)
12464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12465    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12466    ;;
12467  hppa*64*)
12468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
12469    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12470    ;;
12471  *)
12472    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12473    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12474    ;;
12475  esac
12476  ;;
12477
12478interix[3-9]*)
12479  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12480  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12481  ;;
12482
12483irix5* | irix6* | nonstopux*)
12484  case $LD in
12485  *-32|*"-32 ") libmagic=32-bit;;
12486  *-n32|*"-n32 ") libmagic=N32;;
12487  *-64|*"-64 ") libmagic=64-bit;;
12488  *) libmagic=never-match;;
12489  esac
12490  lt_cv_deplibs_check_method=pass_all
12491  ;;
12492
12493# This must be glibc/ELF.
12494linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12495  lt_cv_deplibs_check_method=pass_all
12496  ;;
12497
12498netbsd*)
12499  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12500    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12501  else
12502    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12503  fi
12504  ;;
12505
12506newos6*)
12507  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12508  lt_cv_file_magic_cmd=/usr/bin/file
12509  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12510  ;;
12511
12512*nto* | *qnx*)
12513  lt_cv_deplibs_check_method=pass_all
12514  ;;
12515
12516openbsd* | bitrig*)
12517  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12518    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12519  else
12520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12521  fi
12522  ;;
12523
12524osf3* | osf4* | osf5*)
12525  lt_cv_deplibs_check_method=pass_all
12526  ;;
12527
12528rdos*)
12529  lt_cv_deplibs_check_method=pass_all
12530  ;;
12531
12532solaris*)
12533  lt_cv_deplibs_check_method=pass_all
12534  ;;
12535
12536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12537  lt_cv_deplibs_check_method=pass_all
12538  ;;
12539
12540sysv4 | sysv4.3*)
12541  case $host_vendor in
12542  motorola)
12543    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]'
12544    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12545    ;;
12546  ncr)
12547    lt_cv_deplibs_check_method=pass_all
12548    ;;
12549  sequent)
12550    lt_cv_file_magic_cmd='/bin/file'
12551    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12552    ;;
12553  sni)
12554    lt_cv_file_magic_cmd='/bin/file'
12555    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12556    lt_cv_file_magic_test_file=/lib/libc.so
12557    ;;
12558  siemens)
12559    lt_cv_deplibs_check_method=pass_all
12560    ;;
12561  pc)
12562    lt_cv_deplibs_check_method=pass_all
12563    ;;
12564  esac
12565  ;;
12566
12567tpf*)
12568  lt_cv_deplibs_check_method=pass_all
12569  ;;
12570os2*)
12571  lt_cv_deplibs_check_method=pass_all
12572  ;;
12573esac
12574
12575fi
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12577$as_echo "$lt_cv_deplibs_check_method" >&6; }
12578
12579file_magic_glob=
12580want_nocaseglob=no
12581if test "$build" = "$host"; then
12582  case $host_os in
12583  mingw* | pw32*)
12584    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12585      want_nocaseglob=yes
12586    else
12587      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12588    fi
12589    ;;
12590  esac
12591fi
12592
12593file_magic_cmd=$lt_cv_file_magic_cmd
12594deplibs_check_method=$lt_cv_deplibs_check_method
12595test -z "$deplibs_check_method" && deplibs_check_method=unknown
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618if test -n "$ac_tool_prefix"; then
12619  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12620set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
12623if ${ac_cv_prog_DLLTOOL+:} false; then :
12624  $as_echo_n "(cached) " >&6
12625else
12626  if test -n "$DLLTOOL"; then
12627  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632  IFS=$as_save_IFS
12633  test -z "$as_dir" && as_dir=.
12634    for ac_exec_ext in '' $ac_executable_extensions; do
12635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638    break 2
12639  fi
12640done
12641  done
12642IFS=$as_save_IFS
12643
12644fi
12645fi
12646DLLTOOL=$ac_cv_prog_DLLTOOL
12647if test -n "$DLLTOOL"; then
12648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12649$as_echo "$DLLTOOL" >&6; }
12650else
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653fi
12654
12655
12656fi
12657if test -z "$ac_cv_prog_DLLTOOL"; then
12658  ac_ct_DLLTOOL=$DLLTOOL
12659  # Extract the first word of "dlltool", so it can be a program name with args.
12660set dummy dlltool; ac_word=$2
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662$as_echo_n "checking for $ac_word... " >&6; }
12663if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12664  $as_echo_n "(cached) " >&6
12665else
12666  if test -n "$ac_ct_DLLTOOL"; then
12667  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12668else
12669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670for as_dir in $PATH
12671do
12672  IFS=$as_save_IFS
12673  test -z "$as_dir" && as_dir=.
12674    for ac_exec_ext in '' $ac_executable_extensions; do
12675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678    break 2
12679  fi
12680done
12681  done
12682IFS=$as_save_IFS
12683
12684fi
12685fi
12686ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12687if test -n "$ac_ct_DLLTOOL"; then
12688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12689$as_echo "$ac_ct_DLLTOOL" >&6; }
12690else
12691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692$as_echo "no" >&6; }
12693fi
12694
12695  if test "x$ac_ct_DLLTOOL" = x; then
12696    DLLTOOL="false"
12697  else
12698    case $cross_compiling:$ac_tool_warned in
12699yes:)
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12702ac_tool_warned=yes ;;
12703esac
12704    DLLTOOL=$ac_ct_DLLTOOL
12705  fi
12706else
12707  DLLTOOL="$ac_cv_prog_DLLTOOL"
12708fi
12709
12710test -z "$DLLTOOL" && DLLTOOL=dlltool
12711
12712
12713
12714
12715
12716
12717
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12719$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12720if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12721  $as_echo_n "(cached) " >&6
12722else
12723  lt_cv_sharedlib_from_linklib_cmd='unknown'
12724
12725case $host_os in
12726cygwin* | mingw* | pw32* | cegcc*)
12727  # two different shell functions defined in ltmain.sh;
12728  # decide which one to use based on capabilities of $DLLTOOL
12729  case `$DLLTOOL --help 2>&1` in
12730  *--identify-strict*)
12731    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12732    ;;
12733  *)
12734    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12735    ;;
12736  esac
12737  ;;
12738*)
12739  # fallback: assume linklib IS sharedlib
12740  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12741  ;;
12742esac
12743
12744fi
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12746$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12747sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12748test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12749
12750
12751
12752
12753
12754
12755
12756if test -n "$ac_tool_prefix"; then
12757  for ac_prog in ar
12758  do
12759    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if ${ac_cv_prog_AR+:} false; then :
12764  $as_echo_n "(cached) " >&6
12765else
12766  if test -n "$AR"; then
12767  ac_cv_prog_AR="$AR" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772  IFS=$as_save_IFS
12773  test -z "$as_dir" && as_dir=.
12774    for ac_exec_ext in '' $ac_executable_extensions; do
12775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778    break 2
12779  fi
12780done
12781  done
12782IFS=$as_save_IFS
12783
12784fi
12785fi
12786AR=$ac_cv_prog_AR
12787if test -n "$AR"; then
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12789$as_echo "$AR" >&6; }
12790else
12791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
12793fi
12794
12795
12796    test -n "$AR" && break
12797  done
12798fi
12799if test -z "$AR"; then
12800  ac_ct_AR=$AR
12801  for ac_prog in ar
12802do
12803  # Extract the first word of "$ac_prog", so it can be a program name with args.
12804set dummy $ac_prog; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if ${ac_cv_prog_ac_ct_AR+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  if test -n "$ac_ct_AR"; then
12811  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816  IFS=$as_save_IFS
12817  test -z "$as_dir" && as_dir=.
12818    for ac_exec_ext in '' $ac_executable_extensions; do
12819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820    ac_cv_prog_ac_ct_AR="$ac_prog"
12821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822    break 2
12823  fi
12824done
12825  done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830ac_ct_AR=$ac_cv_prog_ac_ct_AR
12831if test -n "$ac_ct_AR"; then
12832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12833$as_echo "$ac_ct_AR" >&6; }
12834else
12835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840  test -n "$ac_ct_AR" && break
12841done
12842
12843  if test "x$ac_ct_AR" = x; then
12844    AR="false"
12845  else
12846    case $cross_compiling:$ac_tool_warned in
12847yes:)
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12850ac_tool_warned=yes ;;
12851esac
12852    AR=$ac_ct_AR
12853  fi
12854fi
12855
12856: ${AR=ar}
12857: ${AR_FLAGS=cru}
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12870$as_echo_n "checking for archiver @FILE support... " >&6; }
12871if ${lt_cv_ar_at_file+:} false; then :
12872  $as_echo_n "(cached) " >&6
12873else
12874  lt_cv_ar_at_file=no
12875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h.  */
12877
12878int
12879main ()
12880{
12881
12882  ;
12883  return 0;
12884}
12885_ACEOF
12886if ac_fn_c_try_compile "$LINENO"; then :
12887  echo conftest.$ac_objext > conftest.lst
12888      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12889      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12890  (eval $lt_ar_try) 2>&5
12891  ac_status=$?
12892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12893  test $ac_status = 0; }
12894      if test 0 -eq "$ac_status"; then
12895	# Ensure the archiver fails upon bogus file names.
12896	rm -f conftest.$ac_objext libconftest.a
12897	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12898  (eval $lt_ar_try) 2>&5
12899  ac_status=$?
12900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901  test $ac_status = 0; }
12902	if test 0 -ne "$ac_status"; then
12903          lt_cv_ar_at_file=@
12904        fi
12905      fi
12906      rm -f conftest.* libconftest.a
12907
12908fi
12909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12910
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12913$as_echo "$lt_cv_ar_at_file" >&6; }
12914
12915if test no = "$lt_cv_ar_at_file"; then
12916  archiver_list_spec=
12917else
12918  archiver_list_spec=$lt_cv_ar_at_file
12919fi
12920
12921
12922
12923
12924
12925
12926
12927if test -n "$ac_tool_prefix"; then
12928  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12929set dummy ${ac_tool_prefix}strip; ac_word=$2
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931$as_echo_n "checking for $ac_word... " >&6; }
12932if ${ac_cv_prog_STRIP+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  if test -n "$STRIP"; then
12936  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12937else
12938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $PATH
12940do
12941  IFS=$as_save_IFS
12942  test -z "$as_dir" && as_dir=.
12943    for ac_exec_ext in '' $ac_executable_extensions; do
12944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947    break 2
12948  fi
12949done
12950  done
12951IFS=$as_save_IFS
12952
12953fi
12954fi
12955STRIP=$ac_cv_prog_STRIP
12956if test -n "$STRIP"; then
12957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12958$as_echo "$STRIP" >&6; }
12959else
12960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961$as_echo "no" >&6; }
12962fi
12963
12964
12965fi
12966if test -z "$ac_cv_prog_STRIP"; then
12967  ac_ct_STRIP=$STRIP
12968  # Extract the first word of "strip", so it can be a program name with args.
12969set dummy strip; ac_word=$2
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
12972if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975  if test -n "$ac_ct_STRIP"; then
12976  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12977else
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981  IFS=$as_save_IFS
12982  test -z "$as_dir" && as_dir=.
12983    for ac_exec_ext in '' $ac_executable_extensions; do
12984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985    ac_cv_prog_ac_ct_STRIP="strip"
12986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987    break 2
12988  fi
12989done
12990  done
12991IFS=$as_save_IFS
12992
12993fi
12994fi
12995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12996if test -n "$ac_ct_STRIP"; then
12997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12998$as_echo "$ac_ct_STRIP" >&6; }
12999else
13000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
13002fi
13003
13004  if test "x$ac_ct_STRIP" = x; then
13005    STRIP=":"
13006  else
13007    case $cross_compiling:$ac_tool_warned in
13008yes:)
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13011ac_tool_warned=yes ;;
13012esac
13013    STRIP=$ac_ct_STRIP
13014  fi
13015else
13016  STRIP="$ac_cv_prog_STRIP"
13017fi
13018
13019test -z "$STRIP" && STRIP=:
13020
13021
13022
13023
13024
13025
13026if test -n "$ac_tool_prefix"; then
13027  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13028set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
13031if ${ac_cv_prog_RANLIB+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  if test -n "$RANLIB"; then
13035  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040  IFS=$as_save_IFS
13041  test -z "$as_dir" && as_dir=.
13042    for ac_exec_ext in '' $ac_executable_extensions; do
13043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13044    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046    break 2
13047  fi
13048done
13049  done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054RANLIB=$ac_cv_prog_RANLIB
13055if test -n "$RANLIB"; then
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13057$as_echo "$RANLIB" >&6; }
13058else
13059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063
13064fi
13065if test -z "$ac_cv_prog_RANLIB"; then
13066  ac_ct_RANLIB=$RANLIB
13067  # Extract the first word of "ranlib", so it can be a program name with args.
13068set dummy ranlib; ac_word=$2
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
13071if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  if test -n "$ac_ct_RANLIB"; then
13075  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13076else
13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_exec_ext in '' $ac_executable_extensions; do
13083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084    ac_cv_prog_ac_ct_RANLIB="ranlib"
13085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086    break 2
13087  fi
13088done
13089  done
13090IFS=$as_save_IFS
13091
13092fi
13093fi
13094ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13095if test -n "$ac_ct_RANLIB"; then
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13097$as_echo "$ac_ct_RANLIB" >&6; }
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102
13103  if test "x$ac_ct_RANLIB" = x; then
13104    RANLIB=":"
13105  else
13106    case $cross_compiling:$ac_tool_warned in
13107yes:)
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13110ac_tool_warned=yes ;;
13111esac
13112    RANLIB=$ac_ct_RANLIB
13113  fi
13114else
13115  RANLIB="$ac_cv_prog_RANLIB"
13116fi
13117
13118test -z "$RANLIB" && RANLIB=:
13119
13120
13121
13122
13123
13124
13125# Determine commands to create old-style static archives.
13126old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13127old_postinstall_cmds='chmod 644 $oldlib'
13128old_postuninstall_cmds=
13129
13130if test -n "$RANLIB"; then
13131  case $host_os in
13132  bitrig* | openbsd*)
13133    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13134    ;;
13135  *)
13136    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13137    ;;
13138  esac
13139  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13140fi
13141
13142case $host_os in
13143  darwin*)
13144    lock_old_archive_extraction=yes ;;
13145  *)
13146    lock_old_archive_extraction=no ;;
13147esac
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187# If no C compiler was specified, use CC.
13188LTCC=${LTCC-"$CC"}
13189
13190# If no C compiler flags were specified, use CFLAGS.
13191LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13192
13193# Allow CC to be a program name with arguments.
13194compiler=$CC
13195
13196
13197# Check for command to grab the raw symbol name followed by C symbol from nm.
13198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13199$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13200if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13201  $as_echo_n "(cached) " >&6
13202else
13203
13204# These are sane defaults that work on at least a few old systems.
13205# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13206
13207# Character class describing NM global symbol codes.
13208symcode='[BCDEGRST]'
13209
13210# Regexp to match symbols that can be accessed directly from C.
13211sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13212
13213# Define system-specific variables.
13214case $host_os in
13215aix*)
13216  symcode='[BCDT]'
13217  ;;
13218cygwin* | mingw* | pw32* | cegcc*)
13219  symcode='[ABCDGISTW]'
13220  ;;
13221hpux*)
13222  if test ia64 = "$host_cpu"; then
13223    symcode='[ABCDEGRST]'
13224  fi
13225  ;;
13226irix* | nonstopux*)
13227  symcode='[BCDEGRST]'
13228  ;;
13229osf*)
13230  symcode='[BCDEGQRST]'
13231  ;;
13232solaris*)
13233  symcode='[BDRT]'
13234  ;;
13235sco3.2v5*)
13236  symcode='[DT]'
13237  ;;
13238sysv4.2uw2*)
13239  symcode='[DT]'
13240  ;;
13241sysv5* | sco5v6* | unixware* | OpenUNIX*)
13242  symcode='[ABDT]'
13243  ;;
13244sysv4)
13245  symcode='[DFNSTU]'
13246  ;;
13247esac
13248
13249# If we're using GNU nm, then use its standard symbol codes.
13250case `$NM -V 2>&1` in
13251*GNU* | *'with BFD'*)
13252  symcode='[ABCDGIRSTW]' ;;
13253esac
13254
13255if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13256  # Gets list of data symbols to import.
13257  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13258  # Adjust the below global symbol transforms to fixup imported variables.
13259  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13260  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13261  lt_c_name_lib_hook="\
13262  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13263  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13264else
13265  # Disable hooks by default.
13266  lt_cv_sys_global_symbol_to_import=
13267  lt_cdecl_hook=
13268  lt_c_name_hook=
13269  lt_c_name_lib_hook=
13270fi
13271
13272# Transform an extracted symbol line into a proper C declaration.
13273# Some systems (esp. on ia64) link data and code symbols differently,
13274# so use this general approach.
13275lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13276$lt_cdecl_hook\
13277" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13278" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13279
13280# Transform an extracted symbol line into symbol name and symbol address
13281lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13282$lt_c_name_hook\
13283" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13284" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13285
13286# Transform an extracted symbol line into symbol name with lib prefix and
13287# symbol address.
13288lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13289$lt_c_name_lib_hook\
13290" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13291" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13292" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13293
13294# Handle CRLF in mingw tool chain
13295opt_cr=
13296case $build_os in
13297mingw*)
13298  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13299  ;;
13300esac
13301
13302# Try without a prefix underscore, then with it.
13303for ac_symprfx in "" "_"; do
13304
13305  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13306  symxfrm="\\1 $ac_symprfx\\2 \\2"
13307
13308  # Write the raw and C identifiers.
13309  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13310    # Fake it for dumpbin and say T for any non-static function,
13311    # D for any global variable and I for any imported variable.
13312    # Also find C++ and __fastcall symbols from MSVC++,
13313    # which start with @ or ?.
13314    lt_cv_sys_global_symbol_pipe="$AWK '"\
13315"     {last_section=section; section=\$ 3};"\
13316"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13317"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13318"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13319"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13320"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13321"     \$ 0!~/External *\|/{next};"\
13322"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13323"     {if(hide[section]) next};"\
13324"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13325"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13326"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13327"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13328"     ' prfx=^$ac_symprfx"
13329  else
13330    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13331  fi
13332  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13333
13334  # Check to see that the pipe works correctly.
13335  pipe_works=no
13336
13337  rm -f conftest*
13338  cat > conftest.$ac_ext <<_LT_EOF
13339#ifdef __cplusplus
13340extern "C" {
13341#endif
13342char nm_test_var;
13343void nm_test_func(void);
13344void nm_test_func(void){}
13345#ifdef __cplusplus
13346}
13347#endif
13348int main(){nm_test_var='a';nm_test_func();return(0);}
13349_LT_EOF
13350
13351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13352  (eval $ac_compile) 2>&5
13353  ac_status=$?
13354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13355  test $ac_status = 0; }; then
13356    # Now try to grab the symbols.
13357    nlist=conftest.nm
13358    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13359  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13360  ac_status=$?
13361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13362  test $ac_status = 0; } && test -s "$nlist"; then
13363      # Try sorting and uniquifying the output.
13364      if sort "$nlist" | uniq > "$nlist"T; then
13365	mv -f "$nlist"T "$nlist"
13366      else
13367	rm -f "$nlist"T
13368      fi
13369
13370      # Make sure that we snagged all the symbols we need.
13371      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13372	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13373	  cat <<_LT_EOF > conftest.$ac_ext
13374/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13375#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13376/* DATA imports from DLLs on WIN32 can't be const, because runtime
13377   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13378# define LT_DLSYM_CONST
13379#elif defined __osf__
13380/* This system does not cope well with relocations in const data.  */
13381# define LT_DLSYM_CONST
13382#else
13383# define LT_DLSYM_CONST const
13384#endif
13385
13386#ifdef __cplusplus
13387extern "C" {
13388#endif
13389
13390_LT_EOF
13391	  # Now generate the symbol file.
13392	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13393
13394	  cat <<_LT_EOF >> conftest.$ac_ext
13395
13396/* The mapping between symbol names and symbols.  */
13397LT_DLSYM_CONST struct {
13398  const char *name;
13399  void       *address;
13400}
13401lt__PROGRAM__LTX_preloaded_symbols[] =
13402{
13403  { "@PROGRAM@", (void *) 0 },
13404_LT_EOF
13405	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13406	  cat <<\_LT_EOF >> conftest.$ac_ext
13407  {0, (void *) 0}
13408};
13409
13410/* This works around a problem in FreeBSD linker */
13411#ifdef FREEBSD_WORKAROUND
13412static const void *lt_preloaded_setup() {
13413  return lt__PROGRAM__LTX_preloaded_symbols;
13414}
13415#endif
13416
13417#ifdef __cplusplus
13418}
13419#endif
13420_LT_EOF
13421	  # Now try linking the two files.
13422	  mv conftest.$ac_objext conftstm.$ac_objext
13423	  lt_globsym_save_LIBS=$LIBS
13424	  lt_globsym_save_CFLAGS=$CFLAGS
13425	  LIBS=conftstm.$ac_objext
13426	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13427	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13428  (eval $ac_link) 2>&5
13429  ac_status=$?
13430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13431  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13432	    pipe_works=yes
13433	  fi
13434	  LIBS=$lt_globsym_save_LIBS
13435	  CFLAGS=$lt_globsym_save_CFLAGS
13436	else
13437	  echo "cannot find nm_test_func in $nlist" >&5
13438	fi
13439      else
13440	echo "cannot find nm_test_var in $nlist" >&5
13441      fi
13442    else
13443      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13444    fi
13445  else
13446    echo "$progname: failed program was:" >&5
13447    cat conftest.$ac_ext >&5
13448  fi
13449  rm -rf conftest* conftst*
13450
13451  # Do not use the global_symbol_pipe unless it works.
13452  if test yes = "$pipe_works"; then
13453    break
13454  else
13455    lt_cv_sys_global_symbol_pipe=
13456  fi
13457done
13458
13459fi
13460
13461if test -z "$lt_cv_sys_global_symbol_pipe"; then
13462  lt_cv_sys_global_symbol_to_cdecl=
13463fi
13464if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13466$as_echo "failed" >&6; }
13467else
13468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13469$as_echo "ok" >&6; }
13470fi
13471
13472# Response file support.
13473if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13474  nm_file_list_spec='@'
13475elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13476  nm_file_list_spec='@'
13477fi
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13516$as_echo_n "checking for sysroot... " >&6; }
13517
13518# Check whether --with-sysroot was given.
13519if test "${with_sysroot+set}" = set; then :
13520  withval=$with_sysroot;
13521else
13522  with_sysroot=no
13523fi
13524
13525
13526lt_sysroot=
13527case $with_sysroot in #(
13528 yes)
13529   if test yes = "$GCC"; then
13530     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13531   fi
13532   ;; #(
13533 /*)
13534   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13535   ;; #(
13536 no|'')
13537   ;; #(
13538 *)
13539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13540$as_echo "$with_sysroot" >&6; }
13541   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13542   ;;
13543esac
13544
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13546$as_echo "${lt_sysroot:-no}" >&6; }
13547
13548
13549
13550
13551
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13553$as_echo_n "checking for a working dd... " >&6; }
13554if ${ac_cv_path_lt_DD+:} false; then :
13555  $as_echo_n "(cached) " >&6
13556else
13557  printf 0123456789abcdef0123456789abcdef >conftest.i
13558cat conftest.i conftest.i >conftest2.i
13559: ${lt_DD:=$DD}
13560if test -z "$lt_DD"; then
13561  ac_path_lt_DD_found=false
13562  # Loop through the user's path and test for each of PROGNAME-LIST
13563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564for as_dir in $PATH
13565do
13566  IFS=$as_save_IFS
13567  test -z "$as_dir" && as_dir=.
13568    for ac_prog in dd; do
13569    for ac_exec_ext in '' $ac_executable_extensions; do
13570      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13571      as_fn_executable_p "$ac_path_lt_DD" || continue
13572if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13573  cmp -s conftest.i conftest.out \
13574  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13575fi
13576      $ac_path_lt_DD_found && break 3
13577    done
13578  done
13579  done
13580IFS=$as_save_IFS
13581  if test -z "$ac_cv_path_lt_DD"; then
13582    :
13583  fi
13584else
13585  ac_cv_path_lt_DD=$lt_DD
13586fi
13587
13588rm -f conftest.i conftest2.i conftest.out
13589fi
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13591$as_echo "$ac_cv_path_lt_DD" >&6; }
13592
13593
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13595$as_echo_n "checking how to truncate binary pipes... " >&6; }
13596if ${lt_cv_truncate_bin+:} false; then :
13597  $as_echo_n "(cached) " >&6
13598else
13599  printf 0123456789abcdef0123456789abcdef >conftest.i
13600cat conftest.i conftest.i >conftest2.i
13601lt_cv_truncate_bin=
13602if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13603  cmp -s conftest.i conftest.out \
13604  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13605fi
13606rm -f conftest.i conftest2.i conftest.out
13607test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13608fi
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13610$as_echo "$lt_cv_truncate_bin" >&6; }
13611
13612
13613
13614
13615
13616
13617
13618# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13619func_cc_basename ()
13620{
13621    for cc_temp in $*""; do
13622      case $cc_temp in
13623        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13624        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13625        \-*) ;;
13626        *) break;;
13627      esac
13628    done
13629    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13630}
13631
13632# Check whether --enable-libtool-lock was given.
13633if test "${enable_libtool_lock+set}" = set; then :
13634  enableval=$enable_libtool_lock;
13635fi
13636
13637test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13638
13639# Some flags need to be propagated to the compiler or linker for good
13640# libtool support.
13641case $host in
13642ia64-*-hpux*)
13643  # Find out what ABI is being produced by ac_compile, and set mode
13644  # options accordingly.
13645  echo 'int i;' > conftest.$ac_ext
13646  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13647  (eval $ac_compile) 2>&5
13648  ac_status=$?
13649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13650  test $ac_status = 0; }; then
13651    case `/usr/bin/file conftest.$ac_objext` in
13652      *ELF-32*)
13653	HPUX_IA64_MODE=32
13654	;;
13655      *ELF-64*)
13656	HPUX_IA64_MODE=64
13657	;;
13658    esac
13659  fi
13660  rm -rf conftest*
13661  ;;
13662*-*-irix6*)
13663  # Find out what ABI is being produced by ac_compile, and set linker
13664  # options accordingly.
13665  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13666  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13667  (eval $ac_compile) 2>&5
13668  ac_status=$?
13669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670  test $ac_status = 0; }; then
13671    if test yes = "$lt_cv_prog_gnu_ld"; then
13672      case `/usr/bin/file conftest.$ac_objext` in
13673	*32-bit*)
13674	  LD="${LD-ld} -melf32bsmip"
13675	  ;;
13676	*N32*)
13677	  LD="${LD-ld} -melf32bmipn32"
13678	  ;;
13679	*64-bit*)
13680	  LD="${LD-ld} -melf64bmip"
13681	;;
13682      esac
13683    else
13684      case `/usr/bin/file conftest.$ac_objext` in
13685	*32-bit*)
13686	  LD="${LD-ld} -32"
13687	  ;;
13688	*N32*)
13689	  LD="${LD-ld} -n32"
13690	  ;;
13691	*64-bit*)
13692	  LD="${LD-ld} -64"
13693	  ;;
13694      esac
13695    fi
13696  fi
13697  rm -rf conftest*
13698  ;;
13699
13700mips64*-*linux*)
13701  # Find out what ABI is being produced by ac_compile, and set linker
13702  # options accordingly.
13703  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13704  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13705  (eval $ac_compile) 2>&5
13706  ac_status=$?
13707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13708  test $ac_status = 0; }; then
13709    emul=elf
13710    case `/usr/bin/file conftest.$ac_objext` in
13711      *32-bit*)
13712	emul="${emul}32"
13713	;;
13714      *64-bit*)
13715	emul="${emul}64"
13716	;;
13717    esac
13718    case `/usr/bin/file conftest.$ac_objext` in
13719      *MSB*)
13720	emul="${emul}btsmip"
13721	;;
13722      *LSB*)
13723	emul="${emul}ltsmip"
13724	;;
13725    esac
13726    case `/usr/bin/file conftest.$ac_objext` in
13727      *N32*)
13728	emul="${emul}n32"
13729	;;
13730    esac
13731    LD="${LD-ld} -m $emul"
13732  fi
13733  rm -rf conftest*
13734  ;;
13735
13736x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13737s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13738  # Find out what ABI is being produced by ac_compile, and set linker
13739  # options accordingly.  Note that the listed cases only cover the
13740  # situations where additional linker options are needed (such as when
13741  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13742  # vice versa); the common cases where no linker options are needed do
13743  # not appear in the list.
13744  echo 'int i;' > conftest.$ac_ext
13745  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13746  (eval $ac_compile) 2>&5
13747  ac_status=$?
13748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13749  test $ac_status = 0; }; then
13750    case `/usr/bin/file conftest.o` in
13751      *32-bit*)
13752	case $host in
13753	  x86_64-*kfreebsd*-gnu)
13754	    LD="${LD-ld} -m elf_i386_fbsd"
13755	    ;;
13756	  x86_64-*linux*)
13757	    case `/usr/bin/file conftest.o` in
13758	      *x86-64*)
13759		LD="${LD-ld} -m elf32_x86_64"
13760		;;
13761	      *)
13762		LD="${LD-ld} -m elf_i386"
13763		;;
13764	    esac
13765	    ;;
13766	  powerpc64le-*linux*)
13767	    LD="${LD-ld} -m elf32lppclinux"
13768	    ;;
13769	  powerpc64-*linux*)
13770	    LD="${LD-ld} -m elf32ppclinux"
13771	    ;;
13772	  s390x-*linux*)
13773	    LD="${LD-ld} -m elf_s390"
13774	    ;;
13775	  sparc64-*linux*)
13776	    LD="${LD-ld} -m elf32_sparc"
13777	    ;;
13778	esac
13779	;;
13780      *64-bit*)
13781	case $host in
13782	  x86_64-*kfreebsd*-gnu)
13783	    LD="${LD-ld} -m elf_x86_64_fbsd"
13784	    ;;
13785	  x86_64-*linux*)
13786	    LD="${LD-ld} -m elf_x86_64"
13787	    ;;
13788	  powerpcle-*linux*)
13789	    LD="${LD-ld} -m elf64lppc"
13790	    ;;
13791	  powerpc-*linux*)
13792	    LD="${LD-ld} -m elf64ppc"
13793	    ;;
13794	  s390*-*linux*|s390*-*tpf*)
13795	    LD="${LD-ld} -m elf64_s390"
13796	    ;;
13797	  sparc*-*linux*)
13798	    LD="${LD-ld} -m elf64_sparc"
13799	    ;;
13800	esac
13801	;;
13802    esac
13803  fi
13804  rm -rf conftest*
13805  ;;
13806
13807*-*-sco3.2v5*)
13808  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13809  SAVE_CFLAGS=$CFLAGS
13810  CFLAGS="$CFLAGS -belf"
13811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13812$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13813if ${lt_cv_cc_needs_belf+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  ac_ext=c
13817ac_cpp='$CPP $CPPFLAGS'
13818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820ac_compiler_gnu=$ac_cv_c_compiler_gnu
13821
13822     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823/* end confdefs.h.  */
13824
13825int
13826main ()
13827{
13828
13829  ;
13830  return 0;
13831}
13832_ACEOF
13833if ac_fn_c_try_link "$LINENO"; then :
13834  lt_cv_cc_needs_belf=yes
13835else
13836  lt_cv_cc_needs_belf=no
13837fi
13838rm -f core conftest.err conftest.$ac_objext \
13839    conftest$ac_exeext conftest.$ac_ext
13840     ac_ext=c
13841ac_cpp='$CPP $CPPFLAGS'
13842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13844ac_compiler_gnu=$ac_cv_c_compiler_gnu
13845
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13848$as_echo "$lt_cv_cc_needs_belf" >&6; }
13849  if test yes != "$lt_cv_cc_needs_belf"; then
13850    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13851    CFLAGS=$SAVE_CFLAGS
13852  fi
13853  ;;
13854*-*solaris*)
13855  # Find out what ABI is being produced by ac_compile, and set linker
13856  # options accordingly.
13857  echo 'int i;' > conftest.$ac_ext
13858  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13859  (eval $ac_compile) 2>&5
13860  ac_status=$?
13861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13862  test $ac_status = 0; }; then
13863    case `/usr/bin/file conftest.o` in
13864    *64-bit*)
13865      case $lt_cv_prog_gnu_ld in
13866      yes*)
13867        case $host in
13868        i?86-*-solaris*|x86_64-*-solaris*)
13869          LD="${LD-ld} -m elf_x86_64"
13870          ;;
13871        sparc*-*-solaris*)
13872          LD="${LD-ld} -m elf64_sparc"
13873          ;;
13874        esac
13875        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13876        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13877          LD=${LD-ld}_sol2
13878        fi
13879        ;;
13880      *)
13881	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13882	  LD="${LD-ld} -64"
13883	fi
13884	;;
13885      esac
13886      ;;
13887    esac
13888  fi
13889  rm -rf conftest*
13890  ;;
13891esac
13892
13893need_locks=$enable_libtool_lock
13894
13895if test -n "$ac_tool_prefix"; then
13896  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13897set dummy ${ac_tool_prefix}mt; ac_word=$2
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899$as_echo_n "checking for $ac_word... " >&6; }
13900if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  if test -n "$MANIFEST_TOOL"; then
13904  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13905else
13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907for as_dir in $PATH
13908do
13909  IFS=$as_save_IFS
13910  test -z "$as_dir" && as_dir=.
13911    for ac_exec_ext in '' $ac_executable_extensions; do
13912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915    break 2
13916  fi
13917done
13918  done
13919IFS=$as_save_IFS
13920
13921fi
13922fi
13923MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13924if test -n "$MANIFEST_TOOL"; then
13925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13926$as_echo "$MANIFEST_TOOL" >&6; }
13927else
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929$as_echo "no" >&6; }
13930fi
13931
13932
13933fi
13934if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13935  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13936  # Extract the first word of "mt", so it can be a program name with args.
13937set dummy mt; ac_word=$2
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939$as_echo_n "checking for $ac_word... " >&6; }
13940if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13941  $as_echo_n "(cached) " >&6
13942else
13943  if test -n "$ac_ct_MANIFEST_TOOL"; then
13944  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13945else
13946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947for as_dir in $PATH
13948do
13949  IFS=$as_save_IFS
13950  test -z "$as_dir" && as_dir=.
13951    for ac_exec_ext in '' $ac_executable_extensions; do
13952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955    break 2
13956  fi
13957done
13958  done
13959IFS=$as_save_IFS
13960
13961fi
13962fi
13963ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13964if test -n "$ac_ct_MANIFEST_TOOL"; then
13965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13966$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13967else
13968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969$as_echo "no" >&6; }
13970fi
13971
13972  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13973    MANIFEST_TOOL=":"
13974  else
13975    case $cross_compiling:$ac_tool_warned in
13976yes:)
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13979ac_tool_warned=yes ;;
13980esac
13981    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13982  fi
13983else
13984  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13985fi
13986
13987test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13989$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13990if ${lt_cv_path_mainfest_tool+:} false; then :
13991  $as_echo_n "(cached) " >&6
13992else
13993  lt_cv_path_mainfest_tool=no
13994  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13995  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13996  cat conftest.err >&5
13997  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13998    lt_cv_path_mainfest_tool=yes
13999  fi
14000  rm -f conftest*
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14003$as_echo "$lt_cv_path_mainfest_tool" >&6; }
14004if test yes != "$lt_cv_path_mainfest_tool"; then
14005  MANIFEST_TOOL=:
14006fi
14007
14008
14009
14010
14011
14012
14013  case $host_os in
14014    rhapsody* | darwin*)
14015    if test -n "$ac_tool_prefix"; then
14016  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14017set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019$as_echo_n "checking for $ac_word... " >&6; }
14020if ${ac_cv_prog_DSYMUTIL+:} false; then :
14021  $as_echo_n "(cached) " >&6
14022else
14023  if test -n "$DSYMUTIL"; then
14024  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14025else
14026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027for as_dir in $PATH
14028do
14029  IFS=$as_save_IFS
14030  test -z "$as_dir" && as_dir=.
14031    for ac_exec_ext in '' $ac_executable_extensions; do
14032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14033    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14035    break 2
14036  fi
14037done
14038  done
14039IFS=$as_save_IFS
14040
14041fi
14042fi
14043DSYMUTIL=$ac_cv_prog_DSYMUTIL
14044if test -n "$DSYMUTIL"; then
14045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14046$as_echo "$DSYMUTIL" >&6; }
14047else
14048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049$as_echo "no" >&6; }
14050fi
14051
14052
14053fi
14054if test -z "$ac_cv_prog_DSYMUTIL"; then
14055  ac_ct_DSYMUTIL=$DSYMUTIL
14056  # Extract the first word of "dsymutil", so it can be a program name with args.
14057set dummy dsymutil; ac_word=$2
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059$as_echo_n "checking for $ac_word... " >&6; }
14060if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  if test -n "$ac_ct_DSYMUTIL"; then
14064  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14065else
14066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067for as_dir in $PATH
14068do
14069  IFS=$as_save_IFS
14070  test -z "$as_dir" && as_dir=.
14071    for ac_exec_ext in '' $ac_executable_extensions; do
14072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14073    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14075    break 2
14076  fi
14077done
14078  done
14079IFS=$as_save_IFS
14080
14081fi
14082fi
14083ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14084if test -n "$ac_ct_DSYMUTIL"; then
14085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14086$as_echo "$ac_ct_DSYMUTIL" >&6; }
14087else
14088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089$as_echo "no" >&6; }
14090fi
14091
14092  if test "x$ac_ct_DSYMUTIL" = x; then
14093    DSYMUTIL=":"
14094  else
14095    case $cross_compiling:$ac_tool_warned in
14096yes:)
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14099ac_tool_warned=yes ;;
14100esac
14101    DSYMUTIL=$ac_ct_DSYMUTIL
14102  fi
14103else
14104  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14105fi
14106
14107    if test -n "$ac_tool_prefix"; then
14108  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14109set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14111$as_echo_n "checking for $ac_word... " >&6; }
14112if ${ac_cv_prog_NMEDIT+:} false; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  if test -n "$NMEDIT"; then
14116  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14117else
14118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119for as_dir in $PATH
14120do
14121  IFS=$as_save_IFS
14122  test -z "$as_dir" && as_dir=.
14123    for ac_exec_ext in '' $ac_executable_extensions; do
14124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14125    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127    break 2
14128  fi
14129done
14130  done
14131IFS=$as_save_IFS
14132
14133fi
14134fi
14135NMEDIT=$ac_cv_prog_NMEDIT
14136if test -n "$NMEDIT"; then
14137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14138$as_echo "$NMEDIT" >&6; }
14139else
14140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141$as_echo "no" >&6; }
14142fi
14143
14144
14145fi
14146if test -z "$ac_cv_prog_NMEDIT"; then
14147  ac_ct_NMEDIT=$NMEDIT
14148  # Extract the first word of "nmedit", so it can be a program name with args.
14149set dummy nmedit; ac_word=$2
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14151$as_echo_n "checking for $ac_word... " >&6; }
14152if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14153  $as_echo_n "(cached) " >&6
14154else
14155  if test -n "$ac_ct_NMEDIT"; then
14156  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14157else
14158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159for as_dir in $PATH
14160do
14161  IFS=$as_save_IFS
14162  test -z "$as_dir" && as_dir=.
14163    for ac_exec_ext in '' $ac_executable_extensions; do
14164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14165    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14167    break 2
14168  fi
14169done
14170  done
14171IFS=$as_save_IFS
14172
14173fi
14174fi
14175ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14176if test -n "$ac_ct_NMEDIT"; then
14177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14178$as_echo "$ac_ct_NMEDIT" >&6; }
14179else
14180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181$as_echo "no" >&6; }
14182fi
14183
14184  if test "x$ac_ct_NMEDIT" = x; then
14185    NMEDIT=":"
14186  else
14187    case $cross_compiling:$ac_tool_warned in
14188yes:)
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14191ac_tool_warned=yes ;;
14192esac
14193    NMEDIT=$ac_ct_NMEDIT
14194  fi
14195else
14196  NMEDIT="$ac_cv_prog_NMEDIT"
14197fi
14198
14199    if test -n "$ac_tool_prefix"; then
14200  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14201set dummy ${ac_tool_prefix}lipo; ac_word=$2
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203$as_echo_n "checking for $ac_word... " >&6; }
14204if ${ac_cv_prog_LIPO+:} false; then :
14205  $as_echo_n "(cached) " >&6
14206else
14207  if test -n "$LIPO"; then
14208  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14209else
14210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211for as_dir in $PATH
14212do
14213  IFS=$as_save_IFS
14214  test -z "$as_dir" && as_dir=.
14215    for ac_exec_ext in '' $ac_executable_extensions; do
14216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14217    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219    break 2
14220  fi
14221done
14222  done
14223IFS=$as_save_IFS
14224
14225fi
14226fi
14227LIPO=$ac_cv_prog_LIPO
14228if test -n "$LIPO"; then
14229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14230$as_echo "$LIPO" >&6; }
14231else
14232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233$as_echo "no" >&6; }
14234fi
14235
14236
14237fi
14238if test -z "$ac_cv_prog_LIPO"; then
14239  ac_ct_LIPO=$LIPO
14240  # Extract the first word of "lipo", so it can be a program name with args.
14241set dummy lipo; ac_word=$2
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243$as_echo_n "checking for $ac_word... " >&6; }
14244if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14245  $as_echo_n "(cached) " >&6
14246else
14247  if test -n "$ac_ct_LIPO"; then
14248  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14249else
14250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251for as_dir in $PATH
14252do
14253  IFS=$as_save_IFS
14254  test -z "$as_dir" && as_dir=.
14255    for ac_exec_ext in '' $ac_executable_extensions; do
14256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257    ac_cv_prog_ac_ct_LIPO="lipo"
14258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259    break 2
14260  fi
14261done
14262  done
14263IFS=$as_save_IFS
14264
14265fi
14266fi
14267ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14268if test -n "$ac_ct_LIPO"; then
14269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14270$as_echo "$ac_ct_LIPO" >&6; }
14271else
14272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273$as_echo "no" >&6; }
14274fi
14275
14276  if test "x$ac_ct_LIPO" = x; then
14277    LIPO=":"
14278  else
14279    case $cross_compiling:$ac_tool_warned in
14280yes:)
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14283ac_tool_warned=yes ;;
14284esac
14285    LIPO=$ac_ct_LIPO
14286  fi
14287else
14288  LIPO="$ac_cv_prog_LIPO"
14289fi
14290
14291    if test -n "$ac_tool_prefix"; then
14292  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14293set dummy ${ac_tool_prefix}otool; ac_word=$2
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295$as_echo_n "checking for $ac_word... " >&6; }
14296if ${ac_cv_prog_OTOOL+:} false; then :
14297  $as_echo_n "(cached) " >&6
14298else
14299  if test -n "$OTOOL"; then
14300  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14301else
14302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303for as_dir in $PATH
14304do
14305  IFS=$as_save_IFS
14306  test -z "$as_dir" && as_dir=.
14307    for ac_exec_ext in '' $ac_executable_extensions; do
14308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311    break 2
14312  fi
14313done
14314  done
14315IFS=$as_save_IFS
14316
14317fi
14318fi
14319OTOOL=$ac_cv_prog_OTOOL
14320if test -n "$OTOOL"; then
14321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14322$as_echo "$OTOOL" >&6; }
14323else
14324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
14326fi
14327
14328
14329fi
14330if test -z "$ac_cv_prog_OTOOL"; then
14331  ac_ct_OTOOL=$OTOOL
14332  # Extract the first word of "otool", so it can be a program name with args.
14333set dummy otool; ac_word=$2
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335$as_echo_n "checking for $ac_word... " >&6; }
14336if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14337  $as_echo_n "(cached) " >&6
14338else
14339  if test -n "$ac_ct_OTOOL"; then
14340  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14341else
14342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343for as_dir in $PATH
14344do
14345  IFS=$as_save_IFS
14346  test -z "$as_dir" && as_dir=.
14347    for ac_exec_ext in '' $ac_executable_extensions; do
14348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349    ac_cv_prog_ac_ct_OTOOL="otool"
14350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351    break 2
14352  fi
14353done
14354  done
14355IFS=$as_save_IFS
14356
14357fi
14358fi
14359ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14360if test -n "$ac_ct_OTOOL"; then
14361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14362$as_echo "$ac_ct_OTOOL" >&6; }
14363else
14364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365$as_echo "no" >&6; }
14366fi
14367
14368  if test "x$ac_ct_OTOOL" = x; then
14369    OTOOL=":"
14370  else
14371    case $cross_compiling:$ac_tool_warned in
14372yes:)
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375ac_tool_warned=yes ;;
14376esac
14377    OTOOL=$ac_ct_OTOOL
14378  fi
14379else
14380  OTOOL="$ac_cv_prog_OTOOL"
14381fi
14382
14383    if test -n "$ac_tool_prefix"; then
14384  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14385set dummy ${ac_tool_prefix}otool64; ac_word=$2
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387$as_echo_n "checking for $ac_word... " >&6; }
14388if ${ac_cv_prog_OTOOL64+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  if test -n "$OTOOL64"; then
14392  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14393else
14394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395for as_dir in $PATH
14396do
14397  IFS=$as_save_IFS
14398  test -z "$as_dir" && as_dir=.
14399    for ac_exec_ext in '' $ac_executable_extensions; do
14400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403    break 2
14404  fi
14405done
14406  done
14407IFS=$as_save_IFS
14408
14409fi
14410fi
14411OTOOL64=$ac_cv_prog_OTOOL64
14412if test -n "$OTOOL64"; then
14413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14414$as_echo "$OTOOL64" >&6; }
14415else
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
14418fi
14419
14420
14421fi
14422if test -z "$ac_cv_prog_OTOOL64"; then
14423  ac_ct_OTOOL64=$OTOOL64
14424  # Extract the first word of "otool64", so it can be a program name with args.
14425set dummy otool64; ac_word=$2
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427$as_echo_n "checking for $ac_word... " >&6; }
14428if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14429  $as_echo_n "(cached) " >&6
14430else
14431  if test -n "$ac_ct_OTOOL64"; then
14432  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14433else
14434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435for as_dir in $PATH
14436do
14437  IFS=$as_save_IFS
14438  test -z "$as_dir" && as_dir=.
14439    for ac_exec_ext in '' $ac_executable_extensions; do
14440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14441    ac_cv_prog_ac_ct_OTOOL64="otool64"
14442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443    break 2
14444  fi
14445done
14446  done
14447IFS=$as_save_IFS
14448
14449fi
14450fi
14451ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14452if test -n "$ac_ct_OTOOL64"; then
14453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14454$as_echo "$ac_ct_OTOOL64" >&6; }
14455else
14456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457$as_echo "no" >&6; }
14458fi
14459
14460  if test "x$ac_ct_OTOOL64" = x; then
14461    OTOOL64=":"
14462  else
14463    case $cross_compiling:$ac_tool_warned in
14464yes:)
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467ac_tool_warned=yes ;;
14468esac
14469    OTOOL64=$ac_ct_OTOOL64
14470  fi
14471else
14472  OTOOL64="$ac_cv_prog_OTOOL64"
14473fi
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14502$as_echo_n "checking for -single_module linker flag... " >&6; }
14503if ${lt_cv_apple_cc_single_mod+:} false; then :
14504  $as_echo_n "(cached) " >&6
14505else
14506  lt_cv_apple_cc_single_mod=no
14507      if test -z "$LT_MULTI_MODULE"; then
14508	# By default we will add the -single_module flag. You can override
14509	# by either setting the environment variable LT_MULTI_MODULE
14510	# non-empty at configure time, or by adding -multi_module to the
14511	# link flags.
14512	rm -rf libconftest.dylib*
14513	echo "int foo(void){return 1;}" > conftest.c
14514	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14515-dynamiclib -Wl,-single_module conftest.c" >&5
14516	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14517	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14518        _lt_result=$?
14519	# If there is a non-empty error log, and "single_module"
14520	# appears in it, assume the flag caused a linker warning
14521        if test -s conftest.err && $GREP single_module conftest.err; then
14522	  cat conftest.err >&5
14523	# Otherwise, if the output was created with a 0 exit code from
14524	# the compiler, it worked.
14525	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14526	  lt_cv_apple_cc_single_mod=yes
14527	else
14528	  cat conftest.err >&5
14529	fi
14530	rm -rf libconftest.dylib*
14531	rm -f conftest.*
14532      fi
14533fi
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14535$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14536
14537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14538$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14539if ${lt_cv_ld_exported_symbols_list+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  lt_cv_ld_exported_symbols_list=no
14543      save_LDFLAGS=$LDFLAGS
14544      echo "_main" > conftest.sym
14545      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547/* end confdefs.h.  */
14548
14549int
14550main ()
14551{
14552
14553  ;
14554  return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_link "$LINENO"; then :
14558  lt_cv_ld_exported_symbols_list=yes
14559else
14560  lt_cv_ld_exported_symbols_list=no
14561fi
14562rm -f core conftest.err conftest.$ac_objext \
14563    conftest$ac_exeext conftest.$ac_ext
14564	LDFLAGS=$save_LDFLAGS
14565
14566fi
14567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14568$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14569
14570    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14571$as_echo_n "checking for -force_load linker flag... " >&6; }
14572if ${lt_cv_ld_force_load+:} false; then :
14573  $as_echo_n "(cached) " >&6
14574else
14575  lt_cv_ld_force_load=no
14576      cat > conftest.c << _LT_EOF
14577int forced_loaded() { return 2;}
14578_LT_EOF
14579      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14580      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14581      echo "$AR cru libconftest.a conftest.o" >&5
14582      $AR cru libconftest.a conftest.o 2>&5
14583      echo "$RANLIB libconftest.a" >&5
14584      $RANLIB libconftest.a 2>&5
14585      cat > conftest.c << _LT_EOF
14586int main() { return 0;}
14587_LT_EOF
14588      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14589      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14590      _lt_result=$?
14591      if test -s conftest.err && $GREP force_load conftest.err; then
14592	cat conftest.err >&5
14593      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14594	lt_cv_ld_force_load=yes
14595      else
14596	cat conftest.err >&5
14597      fi
14598        rm -f conftest.err libconftest.a conftest conftest.c
14599        rm -rf conftest.dSYM
14600
14601fi
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14603$as_echo "$lt_cv_ld_force_load" >&6; }
14604    case $host_os in
14605    rhapsody* | darwin1.[012])
14606      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14607    darwin1.*)
14608      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14609    darwin*) # darwin 5.x on
14610      # if running on 10.5 or later, the deployment target defaults
14611      # to the OS version, if on x86, and 10.4, the deployment
14612      # target defaults to 10.4. Don't you love it?
14613      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14614	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14615	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14616	10.[012][,.]*)
14617	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14618	10.*)
14619	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14620      esac
14621    ;;
14622  esac
14623    if test yes = "$lt_cv_apple_cc_single_mod"; then
14624      _lt_dar_single_mod='$single_module'
14625    fi
14626    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14627      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14628    else
14629      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14630    fi
14631    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14632      _lt_dsymutil='~$DSYMUTIL $lib || :'
14633    else
14634      _lt_dsymutil=
14635    fi
14636    ;;
14637  esac
14638
14639# func_munge_path_list VARIABLE PATH
14640# -----------------------------------
14641# VARIABLE is name of variable containing _space_ separated list of
14642# directories to be munged by the contents of PATH, which is string
14643# having a format:
14644# "DIR[:DIR]:"
14645#       string "DIR[ DIR]" will be prepended to VARIABLE
14646# ":DIR[:DIR]"
14647#       string "DIR[ DIR]" will be appended to VARIABLE
14648# "DIRP[:DIRP]::[DIRA:]DIRA"
14649#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14650#       "DIRA[ DIRA]" will be appended to VARIABLE
14651# "DIR[:DIR]"
14652#       VARIABLE will be replaced by "DIR[ DIR]"
14653func_munge_path_list ()
14654{
14655    case x$2 in
14656    x)
14657        ;;
14658    *:)
14659        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14660        ;;
14661    x:*)
14662        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14663        ;;
14664    *::*)
14665        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14666        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14667        ;;
14668    *)
14669        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14670        ;;
14671    esac
14672}
14673
14674for ac_header in dlfcn.h
14675do :
14676  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14677"
14678if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14679  cat >>confdefs.h <<_ACEOF
14680#define HAVE_DLFCN_H 1
14681_ACEOF
14682
14683fi
14684
14685done
14686
14687
14688
14689
14690func_stripname_cnf ()
14691{
14692  case $2 in
14693  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14694  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14695  esac
14696} # func_stripname_cnf
14697
14698
14699
14700
14701
14702# Set options
14703enable_win32_dll=yes
14704
14705case $host in
14706*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14707  if test -n "$ac_tool_prefix"; then
14708  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14709set dummy ${ac_tool_prefix}as; ac_word=$2
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711$as_echo_n "checking for $ac_word... " >&6; }
14712if ${ac_cv_prog_AS+:} false; then :
14713  $as_echo_n "(cached) " >&6
14714else
14715  if test -n "$AS"; then
14716  ac_cv_prog_AS="$AS" # Let the user override the test.
14717else
14718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721  IFS=$as_save_IFS
14722  test -z "$as_dir" && as_dir=.
14723    for ac_exec_ext in '' $ac_executable_extensions; do
14724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725    ac_cv_prog_AS="${ac_tool_prefix}as"
14726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727    break 2
14728  fi
14729done
14730  done
14731IFS=$as_save_IFS
14732
14733fi
14734fi
14735AS=$ac_cv_prog_AS
14736if test -n "$AS"; then
14737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14738$as_echo "$AS" >&6; }
14739else
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742fi
14743
14744
14745fi
14746if test -z "$ac_cv_prog_AS"; then
14747  ac_ct_AS=$AS
14748  # Extract the first word of "as", so it can be a program name with args.
14749set dummy as; ac_word=$2
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14751$as_echo_n "checking for $ac_word... " >&6; }
14752if ${ac_cv_prog_ac_ct_AS+:} false; then :
14753  $as_echo_n "(cached) " >&6
14754else
14755  if test -n "$ac_ct_AS"; then
14756  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14757else
14758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14759for as_dir in $PATH
14760do
14761  IFS=$as_save_IFS
14762  test -z "$as_dir" && as_dir=.
14763    for ac_exec_ext in '' $ac_executable_extensions; do
14764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14765    ac_cv_prog_ac_ct_AS="as"
14766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14767    break 2
14768  fi
14769done
14770  done
14771IFS=$as_save_IFS
14772
14773fi
14774fi
14775ac_ct_AS=$ac_cv_prog_ac_ct_AS
14776if test -n "$ac_ct_AS"; then
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14778$as_echo "$ac_ct_AS" >&6; }
14779else
14780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781$as_echo "no" >&6; }
14782fi
14783
14784  if test "x$ac_ct_AS" = x; then
14785    AS="false"
14786  else
14787    case $cross_compiling:$ac_tool_warned in
14788yes:)
14789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14791ac_tool_warned=yes ;;
14792esac
14793    AS=$ac_ct_AS
14794  fi
14795else
14796  AS="$ac_cv_prog_AS"
14797fi
14798
14799  if test -n "$ac_tool_prefix"; then
14800  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14801set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14803$as_echo_n "checking for $ac_word... " >&6; }
14804if ${ac_cv_prog_DLLTOOL+:} false; then :
14805  $as_echo_n "(cached) " >&6
14806else
14807  if test -n "$DLLTOOL"; then
14808  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14809else
14810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811for as_dir in $PATH
14812do
14813  IFS=$as_save_IFS
14814  test -z "$as_dir" && as_dir=.
14815    for ac_exec_ext in '' $ac_executable_extensions; do
14816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14817    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14819    break 2
14820  fi
14821done
14822  done
14823IFS=$as_save_IFS
14824
14825fi
14826fi
14827DLLTOOL=$ac_cv_prog_DLLTOOL
14828if test -n "$DLLTOOL"; then
14829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14830$as_echo "$DLLTOOL" >&6; }
14831else
14832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833$as_echo "no" >&6; }
14834fi
14835
14836
14837fi
14838if test -z "$ac_cv_prog_DLLTOOL"; then
14839  ac_ct_DLLTOOL=$DLLTOOL
14840  # Extract the first word of "dlltool", so it can be a program name with args.
14841set dummy dlltool; ac_word=$2
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14843$as_echo_n "checking for $ac_word... " >&6; }
14844if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14845  $as_echo_n "(cached) " >&6
14846else
14847  if test -n "$ac_ct_DLLTOOL"; then
14848  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14849else
14850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853  IFS=$as_save_IFS
14854  test -z "$as_dir" && as_dir=.
14855    for ac_exec_ext in '' $ac_executable_extensions; do
14856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14859    break 2
14860  fi
14861done
14862  done
14863IFS=$as_save_IFS
14864
14865fi
14866fi
14867ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14868if test -n "$ac_ct_DLLTOOL"; then
14869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14870$as_echo "$ac_ct_DLLTOOL" >&6; }
14871else
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873$as_echo "no" >&6; }
14874fi
14875
14876  if test "x$ac_ct_DLLTOOL" = x; then
14877    DLLTOOL="false"
14878  else
14879    case $cross_compiling:$ac_tool_warned in
14880yes:)
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14883ac_tool_warned=yes ;;
14884esac
14885    DLLTOOL=$ac_ct_DLLTOOL
14886  fi
14887else
14888  DLLTOOL="$ac_cv_prog_DLLTOOL"
14889fi
14890
14891  if test -n "$ac_tool_prefix"; then
14892  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14893set dummy ${ac_tool_prefix}objdump; ac_word=$2
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14895$as_echo_n "checking for $ac_word... " >&6; }
14896if ${ac_cv_prog_OBJDUMP+:} false; then :
14897  $as_echo_n "(cached) " >&6
14898else
14899  if test -n "$OBJDUMP"; then
14900  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14901else
14902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903for as_dir in $PATH
14904do
14905  IFS=$as_save_IFS
14906  test -z "$as_dir" && as_dir=.
14907    for ac_exec_ext in '' $ac_executable_extensions; do
14908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14911    break 2
14912  fi
14913done
14914  done
14915IFS=$as_save_IFS
14916
14917fi
14918fi
14919OBJDUMP=$ac_cv_prog_OBJDUMP
14920if test -n "$OBJDUMP"; then
14921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14922$as_echo "$OBJDUMP" >&6; }
14923else
14924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14925$as_echo "no" >&6; }
14926fi
14927
14928
14929fi
14930if test -z "$ac_cv_prog_OBJDUMP"; then
14931  ac_ct_OBJDUMP=$OBJDUMP
14932  # Extract the first word of "objdump", so it can be a program name with args.
14933set dummy objdump; ac_word=$2
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14935$as_echo_n "checking for $ac_word... " >&6; }
14936if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14937  $as_echo_n "(cached) " >&6
14938else
14939  if test -n "$ac_ct_OBJDUMP"; then
14940  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14941else
14942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943for as_dir in $PATH
14944do
14945  IFS=$as_save_IFS
14946  test -z "$as_dir" && as_dir=.
14947    for ac_exec_ext in '' $ac_executable_extensions; do
14948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14949    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14951    break 2
14952  fi
14953done
14954  done
14955IFS=$as_save_IFS
14956
14957fi
14958fi
14959ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14960if test -n "$ac_ct_OBJDUMP"; then
14961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14962$as_echo "$ac_ct_OBJDUMP" >&6; }
14963else
14964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965$as_echo "no" >&6; }
14966fi
14967
14968  if test "x$ac_ct_OBJDUMP" = x; then
14969    OBJDUMP="false"
14970  else
14971    case $cross_compiling:$ac_tool_warned in
14972yes:)
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14975ac_tool_warned=yes ;;
14976esac
14977    OBJDUMP=$ac_ct_OBJDUMP
14978  fi
14979else
14980  OBJDUMP="$ac_cv_prog_OBJDUMP"
14981fi
14982
14983  ;;
14984esac
14985
14986test -z "$AS" && AS=as
14987
14988
14989
14990
14991
14992test -z "$DLLTOOL" && DLLTOOL=dlltool
14993
14994
14995
14996
14997
14998test -z "$OBJDUMP" && OBJDUMP=objdump
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008            # Check whether --enable-shared was given.
15009if test "${enable_shared+set}" = set; then :
15010  enableval=$enable_shared; p=${PACKAGE-default}
15011    case $enableval in
15012    yes) enable_shared=yes ;;
15013    no) enable_shared=no ;;
15014    *)
15015      enable_shared=no
15016      # Look at the argument we got.  We use all the common list separators.
15017      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15018      for pkg in $enableval; do
15019	IFS=$lt_save_ifs
15020	if test "X$pkg" = "X$p"; then
15021	  enable_shared=yes
15022	fi
15023      done
15024      IFS=$lt_save_ifs
15025      ;;
15026    esac
15027else
15028  enable_shared=yes
15029fi
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039  # Check whether --enable-static was given.
15040if test "${enable_static+set}" = set; then :
15041  enableval=$enable_static; p=${PACKAGE-default}
15042    case $enableval in
15043    yes) enable_static=yes ;;
15044    no) enable_static=no ;;
15045    *)
15046     enable_static=no
15047      # Look at the argument we got.  We use all the common list separators.
15048      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15049      for pkg in $enableval; do
15050	IFS=$lt_save_ifs
15051	if test "X$pkg" = "X$p"; then
15052	  enable_static=yes
15053	fi
15054      done
15055      IFS=$lt_save_ifs
15056      ;;
15057    esac
15058else
15059  enable_static=yes
15060fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071# Check whether --with-pic was given.
15072if test "${with_pic+set}" = set; then :
15073  withval=$with_pic; lt_p=${PACKAGE-default}
15074    case $withval in
15075    yes|no) pic_mode=$withval ;;
15076    *)
15077      pic_mode=default
15078      # Look at the argument we got.  We use all the common list separators.
15079      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15080      for lt_pkg in $withval; do
15081	IFS=$lt_save_ifs
15082	if test "X$lt_pkg" = "X$lt_p"; then
15083	  pic_mode=yes
15084	fi
15085      done
15086      IFS=$lt_save_ifs
15087      ;;
15088    esac
15089else
15090  pic_mode=default
15091fi
15092
15093
15094
15095
15096
15097
15098
15099
15100  # Check whether --enable-fast-install was given.
15101if test "${enable_fast_install+set}" = set; then :
15102  enableval=$enable_fast_install; p=${PACKAGE-default}
15103    case $enableval in
15104    yes) enable_fast_install=yes ;;
15105    no) enable_fast_install=no ;;
15106    *)
15107      enable_fast_install=no
15108      # Look at the argument we got.  We use all the common list separators.
15109      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15110      for pkg in $enableval; do
15111	IFS=$lt_save_ifs
15112	if test "X$pkg" = "X$p"; then
15113	  enable_fast_install=yes
15114	fi
15115      done
15116      IFS=$lt_save_ifs
15117      ;;
15118    esac
15119else
15120  enable_fast_install=yes
15121fi
15122
15123
15124
15125
15126
15127
15128
15129
15130  shared_archive_member_spec=
15131case $host,$enable_shared in
15132power*-*-aix[5-9]*,yes)
15133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15134$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
15135
15136# Check whether --with-aix-soname was given.
15137if test "${with_aix_soname+set}" = set; then :
15138  withval=$with_aix_soname; case $withval in
15139    aix|svr4|both)
15140      ;;
15141    *)
15142      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15143      ;;
15144    esac
15145    lt_cv_with_aix_soname=$with_aix_soname
15146else
15147  if ${lt_cv_with_aix_soname+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  lt_cv_with_aix_soname=aix
15151fi
15152
15153    with_aix_soname=$lt_cv_with_aix_soname
15154fi
15155
15156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15157$as_echo "$with_aix_soname" >&6; }
15158  if test aix != "$with_aix_soname"; then
15159    # For the AIX way of multilib, we name the shared archive member
15160    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15161    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15162    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15163    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15164    if test 64 = "${OBJECT_MODE-32}"; then
15165      shared_archive_member_spec=shr_64
15166    else
15167      shared_archive_member_spec=shr
15168    fi
15169  fi
15170  ;;
15171*)
15172  with_aix_soname=aix
15173  ;;
15174esac
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185# This can be used to rebuild libtool when needed
15186LIBTOOL_DEPS=$ltmain
15187
15188# Always use our own libtool.
15189LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220test -z "$LN_S" && LN_S="ln -s"
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235if test -n "${ZSH_VERSION+set}"; then
15236   setopt NO_GLOB_SUBST
15237fi
15238
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15240$as_echo_n "checking for objdir... " >&6; }
15241if ${lt_cv_objdir+:} false; then :
15242  $as_echo_n "(cached) " >&6
15243else
15244  rm -f .libs 2>/dev/null
15245mkdir .libs 2>/dev/null
15246if test -d .libs; then
15247  lt_cv_objdir=.libs
15248else
15249  # MS-DOS does not allow filenames that begin with a dot.
15250  lt_cv_objdir=_libs
15251fi
15252rmdir .libs 2>/dev/null
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15255$as_echo "$lt_cv_objdir" >&6; }
15256objdir=$lt_cv_objdir
15257
15258
15259
15260
15261
15262cat >>confdefs.h <<_ACEOF
15263#define LT_OBJDIR "$lt_cv_objdir/"
15264_ACEOF
15265
15266
15267
15268
15269case $host_os in
15270aix3*)
15271  # AIX sometimes has problems with the GCC collect2 program.  For some
15272  # reason, if we set the COLLECT_NAMES environment variable, the problems
15273  # vanish in a puff of smoke.
15274  if test set != "${COLLECT_NAMES+set}"; then
15275    COLLECT_NAMES=
15276    export COLLECT_NAMES
15277  fi
15278  ;;
15279esac
15280
15281# Global variables:
15282ofile=libtool
15283can_build_shared=yes
15284
15285# All known linkers require a '.a' archive for static linking (except MSVC,
15286# which needs '.lib').
15287libext=a
15288
15289with_gnu_ld=$lt_cv_prog_gnu_ld
15290
15291old_CC=$CC
15292old_CFLAGS=$CFLAGS
15293
15294# Set sane defaults for various variables
15295test -z "$CC" && CC=cc
15296test -z "$LTCC" && LTCC=$CC
15297test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15298test -z "$LD" && LD=ld
15299test -z "$ac_objext" && ac_objext=o
15300
15301func_cc_basename $compiler
15302cc_basename=$func_cc_basename_result
15303
15304
15305# Only perform the check for file, if the check method requires it
15306test -z "$MAGIC_CMD" && MAGIC_CMD=file
15307case $deplibs_check_method in
15308file_magic*)
15309  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15311$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15312if ${lt_cv_path_MAGIC_CMD+:} false; then :
15313  $as_echo_n "(cached) " >&6
15314else
15315  case $MAGIC_CMD in
15316[\\/*] |  ?:[\\/]*)
15317  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15318  ;;
15319*)
15320  lt_save_MAGIC_CMD=$MAGIC_CMD
15321  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15322  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15323  for ac_dir in $ac_dummy; do
15324    IFS=$lt_save_ifs
15325    test -z "$ac_dir" && ac_dir=.
15326    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15327      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15328      if test -n "$file_magic_test_file"; then
15329	case $deplibs_check_method in
15330	"file_magic "*)
15331	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15332	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15333	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15334	    $EGREP "$file_magic_regex" > /dev/null; then
15335	    :
15336	  else
15337	    cat <<_LT_EOF 1>&2
15338
15339*** Warning: the command libtool uses to detect shared libraries,
15340*** $file_magic_cmd, produces output that libtool cannot recognize.
15341*** The result is that libtool may fail to recognize shared libraries
15342*** as such.  This will affect the creation of libtool libraries that
15343*** depend on shared libraries, but programs linked with such libtool
15344*** libraries will work regardless of this problem.  Nevertheless, you
15345*** may want to report the problem to your system manager and/or to
15346*** bug-libtool@gnu.org
15347
15348_LT_EOF
15349	  fi ;;
15350	esac
15351      fi
15352      break
15353    fi
15354  done
15355  IFS=$lt_save_ifs
15356  MAGIC_CMD=$lt_save_MAGIC_CMD
15357  ;;
15358esac
15359fi
15360
15361MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15362if test -n "$MAGIC_CMD"; then
15363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15364$as_echo "$MAGIC_CMD" >&6; }
15365else
15366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367$as_echo "no" >&6; }
15368fi
15369
15370
15371
15372
15373
15374if test -z "$lt_cv_path_MAGIC_CMD"; then
15375  if test -n "$ac_tool_prefix"; then
15376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15377$as_echo_n "checking for file... " >&6; }
15378if ${lt_cv_path_MAGIC_CMD+:} false; then :
15379  $as_echo_n "(cached) " >&6
15380else
15381  case $MAGIC_CMD in
15382[\\/*] |  ?:[\\/]*)
15383  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15384  ;;
15385*)
15386  lt_save_MAGIC_CMD=$MAGIC_CMD
15387  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15388  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15389  for ac_dir in $ac_dummy; do
15390    IFS=$lt_save_ifs
15391    test -z "$ac_dir" && ac_dir=.
15392    if test -f "$ac_dir/file"; then
15393      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15394      if test -n "$file_magic_test_file"; then
15395	case $deplibs_check_method in
15396	"file_magic "*)
15397	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15398	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15399	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15400	    $EGREP "$file_magic_regex" > /dev/null; then
15401	    :
15402	  else
15403	    cat <<_LT_EOF 1>&2
15404
15405*** Warning: the command libtool uses to detect shared libraries,
15406*** $file_magic_cmd, produces output that libtool cannot recognize.
15407*** The result is that libtool may fail to recognize shared libraries
15408*** as such.  This will affect the creation of libtool libraries that
15409*** depend on shared libraries, but programs linked with such libtool
15410*** libraries will work regardless of this problem.  Nevertheless, you
15411*** may want to report the problem to your system manager and/or to
15412*** bug-libtool@gnu.org
15413
15414_LT_EOF
15415	  fi ;;
15416	esac
15417      fi
15418      break
15419    fi
15420  done
15421  IFS=$lt_save_ifs
15422  MAGIC_CMD=$lt_save_MAGIC_CMD
15423  ;;
15424esac
15425fi
15426
15427MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15428if test -n "$MAGIC_CMD"; then
15429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15430$as_echo "$MAGIC_CMD" >&6; }
15431else
15432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433$as_echo "no" >&6; }
15434fi
15435
15436
15437  else
15438    MAGIC_CMD=:
15439  fi
15440fi
15441
15442  fi
15443  ;;
15444esac
15445
15446# Use C for the default configuration in the libtool script
15447
15448lt_save_CC=$CC
15449ac_ext=c
15450ac_cpp='$CPP $CPPFLAGS'
15451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454
15455
15456# Source file extension for C test sources.
15457ac_ext=c
15458
15459# Object file extension for compiled C test sources.
15460objext=o
15461objext=$objext
15462
15463# Code to be used in simple compile tests
15464lt_simple_compile_test_code="int some_variable = 0;"
15465
15466# Code to be used in simple link tests
15467lt_simple_link_test_code='int main(){return(0);}'
15468
15469
15470
15471
15472
15473
15474
15475# If no C compiler was specified, use CC.
15476LTCC=${LTCC-"$CC"}
15477
15478# If no C compiler flags were specified, use CFLAGS.
15479LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15480
15481# Allow CC to be a program name with arguments.
15482compiler=$CC
15483
15484# Save the default compiler, since it gets overwritten when the other
15485# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15486compiler_DEFAULT=$CC
15487
15488# save warnings/boilerplate of simple test code
15489ac_outfile=conftest.$ac_objext
15490echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15491eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15492_lt_compiler_boilerplate=`cat conftest.err`
15493$RM conftest*
15494
15495ac_outfile=conftest.$ac_objext
15496echo "$lt_simple_link_test_code" >conftest.$ac_ext
15497eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15498_lt_linker_boilerplate=`cat conftest.err`
15499$RM -r conftest*
15500
15501
15502## CAVEAT EMPTOR:
15503## There is no encapsulation within the following macros, do not change
15504## the running order or otherwise move them around unless you know exactly
15505## what you are doing...
15506if test -n "$compiler"; then
15507
15508lt_prog_compiler_no_builtin_flag=
15509
15510if test yes = "$GCC"; then
15511  case $cc_basename in
15512  nvcc*)
15513    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15514  *)
15515    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15516  esac
15517
15518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15519$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15520if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15521  $as_echo_n "(cached) " >&6
15522else
15523  lt_cv_prog_compiler_rtti_exceptions=no
15524   ac_outfile=conftest.$ac_objext
15525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15526   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15527   # Insert the option either (1) after the last *FLAGS variable, or
15528   # (2) before a word containing "conftest.", or (3) at the end.
15529   # Note that $ac_compile itself does not contain backslashes and begins
15530   # with a dollar sign (not a hyphen), so the echo should work correctly.
15531   # The option is referenced via a variable to avoid confusing sed.
15532   lt_compile=`echo "$ac_compile" | $SED \
15533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15535   -e 's:$: $lt_compiler_flag:'`
15536   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15537   (eval "$lt_compile" 2>conftest.err)
15538   ac_status=$?
15539   cat conftest.err >&5
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   if (exit $ac_status) && test -s "$ac_outfile"; then
15542     # The compiler can only warn and ignore the option if not recognized
15543     # So say no if there are warnings other than the usual output.
15544     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15545     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15546     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15547       lt_cv_prog_compiler_rtti_exceptions=yes
15548     fi
15549   fi
15550   $RM conftest*
15551
15552fi
15553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15554$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15555
15556if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15557    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15558else
15559    :
15560fi
15561
15562fi
15563
15564
15565
15566
15567
15568
15569  lt_prog_compiler_wl=
15570lt_prog_compiler_pic=
15571lt_prog_compiler_static=
15572
15573
15574  if test yes = "$GCC"; then
15575    lt_prog_compiler_wl='-Wl,'
15576    lt_prog_compiler_static='-static'
15577
15578    case $host_os in
15579      aix*)
15580      # All AIX code is PIC.
15581      if test ia64 = "$host_cpu"; then
15582	# AIX 5 now supports IA64 processor
15583	lt_prog_compiler_static='-Bstatic'
15584      fi
15585      lt_prog_compiler_pic='-fPIC'
15586      ;;
15587
15588    amigaos*)
15589      case $host_cpu in
15590      powerpc)
15591            # see comment about AmigaOS4 .so support
15592            lt_prog_compiler_pic='-fPIC'
15593        ;;
15594      m68k)
15595            # FIXME: we need at least 68020 code to build shared libraries, but
15596            # adding the '-m68020' flag to GCC prevents building anything better,
15597            # like '-m68040'.
15598            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15599        ;;
15600      esac
15601      ;;
15602
15603    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15604      # PIC is the default for these OSes.
15605      ;;
15606
15607    mingw* | cygwin* | pw32* | os2* | cegcc*)
15608      # This hack is so that the source file can tell whether it is being
15609      # built for inclusion in a dll (and should export symbols for example).
15610      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15611      # (--disable-auto-import) libraries
15612      lt_prog_compiler_pic='-DDLL_EXPORT'
15613      case $host_os in
15614      os2*)
15615	lt_prog_compiler_static='$wl-static'
15616	;;
15617      esac
15618      ;;
15619
15620    darwin* | rhapsody*)
15621      # PIC is the default on this platform
15622      # Common symbols not allowed in MH_DYLIB files
15623      lt_prog_compiler_pic='-fno-common'
15624      ;;
15625
15626    haiku*)
15627      # PIC is the default for Haiku.
15628      # The "-static" flag exists, but is broken.
15629      lt_prog_compiler_static=
15630      ;;
15631
15632    hpux*)
15633      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15634      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15635      # sets the default TLS model and affects inlining.
15636      case $host_cpu in
15637      hppa*64*)
15638	# +Z the default
15639	;;
15640      *)
15641	lt_prog_compiler_pic='-fPIC'
15642	;;
15643      esac
15644      ;;
15645
15646    interix[3-9]*)
15647      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15648      # Instead, we relocate shared libraries at runtime.
15649      ;;
15650
15651    msdosdjgpp*)
15652      # Just because we use GCC doesn't mean we suddenly get shared libraries
15653      # on systems that don't support them.
15654      lt_prog_compiler_can_build_shared=no
15655      enable_shared=no
15656      ;;
15657
15658    *nto* | *qnx*)
15659      # QNX uses GNU C++, but need to define -shared option too, otherwise
15660      # it will coredump.
15661      lt_prog_compiler_pic='-fPIC -shared'
15662      ;;
15663
15664    sysv4*MP*)
15665      if test -d /usr/nec; then
15666	lt_prog_compiler_pic=-Kconform_pic
15667      fi
15668      ;;
15669
15670    *)
15671      lt_prog_compiler_pic='-fPIC'
15672      ;;
15673    esac
15674
15675    case $cc_basename in
15676    nvcc*) # Cuda Compiler Driver 2.2
15677      lt_prog_compiler_wl='-Xlinker '
15678      if test -n "$lt_prog_compiler_pic"; then
15679        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15680      fi
15681      ;;
15682    esac
15683  else
15684    # PORTME Check for flag to pass linker flags through the system compiler.
15685    case $host_os in
15686    aix*)
15687      lt_prog_compiler_wl='-Wl,'
15688      if test ia64 = "$host_cpu"; then
15689	# AIX 5 now supports IA64 processor
15690	lt_prog_compiler_static='-Bstatic'
15691      else
15692	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15693      fi
15694      ;;
15695
15696    darwin* | rhapsody*)
15697      # PIC is the default on this platform
15698      # Common symbols not allowed in MH_DYLIB files
15699      lt_prog_compiler_pic='-fno-common'
15700      case $cc_basename in
15701      nagfor*)
15702        # NAG Fortran compiler
15703        lt_prog_compiler_wl='-Wl,-Wl,,'
15704        lt_prog_compiler_pic='-PIC'
15705        lt_prog_compiler_static='-Bstatic'
15706        ;;
15707      esac
15708      ;;
15709
15710    mingw* | cygwin* | pw32* | os2* | cegcc*)
15711      # This hack is so that the source file can tell whether it is being
15712      # built for inclusion in a dll (and should export symbols for example).
15713      lt_prog_compiler_pic='-DDLL_EXPORT'
15714      case $host_os in
15715      os2*)
15716	lt_prog_compiler_static='$wl-static'
15717	;;
15718      esac
15719      ;;
15720
15721    hpux9* | hpux10* | hpux11*)
15722      lt_prog_compiler_wl='-Wl,'
15723      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15724      # not for PA HP-UX.
15725      case $host_cpu in
15726      hppa*64*|ia64*)
15727	# +Z the default
15728	;;
15729      *)
15730	lt_prog_compiler_pic='+Z'
15731	;;
15732      esac
15733      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15734      lt_prog_compiler_static='$wl-a ${wl}archive'
15735      ;;
15736
15737    irix5* | irix6* | nonstopux*)
15738      lt_prog_compiler_wl='-Wl,'
15739      # PIC (with -KPIC) is the default.
15740      lt_prog_compiler_static='-non_shared'
15741      ;;
15742
15743    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15744      case $cc_basename in
15745      # old Intel for x86_64, which still supported -KPIC.
15746      ecc*)
15747	lt_prog_compiler_wl='-Wl,'
15748	lt_prog_compiler_pic='-KPIC'
15749	lt_prog_compiler_static='-static'
15750        ;;
15751      # icc used to be incompatible with GCC.
15752      # ICC 10 doesn't accept -KPIC any more.
15753      icc* | ifort*)
15754	lt_prog_compiler_wl='-Wl,'
15755	lt_prog_compiler_pic='-fPIC'
15756	lt_prog_compiler_static='-static'
15757        ;;
15758      # Lahey Fortran 8.1.
15759      lf95*)
15760	lt_prog_compiler_wl='-Wl,'
15761	lt_prog_compiler_pic='--shared'
15762	lt_prog_compiler_static='--static'
15763	;;
15764      nagfor*)
15765	# NAG Fortran compiler
15766	lt_prog_compiler_wl='-Wl,-Wl,,'
15767	lt_prog_compiler_pic='-PIC'
15768	lt_prog_compiler_static='-Bstatic'
15769	;;
15770      tcc*)
15771	# Fabrice Bellard et al's Tiny C Compiler
15772	lt_prog_compiler_wl='-Wl,'
15773	lt_prog_compiler_pic='-fPIC'
15774	lt_prog_compiler_static='-static'
15775	;;
15776      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15777        # Portland Group compilers (*not* the Pentium gcc compiler,
15778	# which looks to be a dead project)
15779	lt_prog_compiler_wl='-Wl,'
15780	lt_prog_compiler_pic='-fpic'
15781	lt_prog_compiler_static='-Bstatic'
15782        ;;
15783      ccc*)
15784        lt_prog_compiler_wl='-Wl,'
15785        # All Alpha code is PIC.
15786        lt_prog_compiler_static='-non_shared'
15787        ;;
15788      xl* | bgxl* | bgf* | mpixl*)
15789	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15790	lt_prog_compiler_wl='-Wl,'
15791	lt_prog_compiler_pic='-qpic'
15792	lt_prog_compiler_static='-qstaticlink'
15793	;;
15794      *)
15795	case `$CC -V 2>&1 | sed 5q` in
15796	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15797	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15798	  lt_prog_compiler_pic='-KPIC'
15799	  lt_prog_compiler_static='-Bstatic'
15800	  lt_prog_compiler_wl=''
15801	  ;;
15802	*Sun\ F* | *Sun*Fortran*)
15803	  lt_prog_compiler_pic='-KPIC'
15804	  lt_prog_compiler_static='-Bstatic'
15805	  lt_prog_compiler_wl='-Qoption ld '
15806	  ;;
15807	*Sun\ C*)
15808	  # Sun C 5.9
15809	  lt_prog_compiler_pic='-KPIC'
15810	  lt_prog_compiler_static='-Bstatic'
15811	  lt_prog_compiler_wl='-Wl,'
15812	  ;;
15813        *Intel*\ [CF]*Compiler*)
15814	  lt_prog_compiler_wl='-Wl,'
15815	  lt_prog_compiler_pic='-fPIC'
15816	  lt_prog_compiler_static='-static'
15817	  ;;
15818	*Portland\ Group*)
15819	  lt_prog_compiler_wl='-Wl,'
15820	  lt_prog_compiler_pic='-fpic'
15821	  lt_prog_compiler_static='-Bstatic'
15822	  ;;
15823	esac
15824	;;
15825      esac
15826      ;;
15827
15828    newsos6)
15829      lt_prog_compiler_pic='-KPIC'
15830      lt_prog_compiler_static='-Bstatic'
15831      ;;
15832
15833    *nto* | *qnx*)
15834      # QNX uses GNU C++, but need to define -shared option too, otherwise
15835      # it will coredump.
15836      lt_prog_compiler_pic='-fPIC -shared'
15837      ;;
15838
15839    osf3* | osf4* | osf5*)
15840      lt_prog_compiler_wl='-Wl,'
15841      # All OSF/1 code is PIC.
15842      lt_prog_compiler_static='-non_shared'
15843      ;;
15844
15845    rdos*)
15846      lt_prog_compiler_static='-non_shared'
15847      ;;
15848
15849    solaris*)
15850      lt_prog_compiler_pic='-KPIC'
15851      lt_prog_compiler_static='-Bstatic'
15852      case $cc_basename in
15853      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15854	lt_prog_compiler_wl='-Qoption ld ';;
15855      *)
15856	lt_prog_compiler_wl='-Wl,';;
15857      esac
15858      ;;
15859
15860    sunos4*)
15861      lt_prog_compiler_wl='-Qoption ld '
15862      lt_prog_compiler_pic='-PIC'
15863      lt_prog_compiler_static='-Bstatic'
15864      ;;
15865
15866    sysv4 | sysv4.2uw2* | sysv4.3*)
15867      lt_prog_compiler_wl='-Wl,'
15868      lt_prog_compiler_pic='-KPIC'
15869      lt_prog_compiler_static='-Bstatic'
15870      ;;
15871
15872    sysv4*MP*)
15873      if test -d /usr/nec; then
15874	lt_prog_compiler_pic='-Kconform_pic'
15875	lt_prog_compiler_static='-Bstatic'
15876      fi
15877      ;;
15878
15879    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15880      lt_prog_compiler_wl='-Wl,'
15881      lt_prog_compiler_pic='-KPIC'
15882      lt_prog_compiler_static='-Bstatic'
15883      ;;
15884
15885    unicos*)
15886      lt_prog_compiler_wl='-Wl,'
15887      lt_prog_compiler_can_build_shared=no
15888      ;;
15889
15890    uts4*)
15891      lt_prog_compiler_pic='-pic'
15892      lt_prog_compiler_static='-Bstatic'
15893      ;;
15894
15895    *)
15896      lt_prog_compiler_can_build_shared=no
15897      ;;
15898    esac
15899  fi
15900
15901case $host_os in
15902  # For platforms that do not support PIC, -DPIC is meaningless:
15903  *djgpp*)
15904    lt_prog_compiler_pic=
15905    ;;
15906  *)
15907    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15908    ;;
15909esac
15910
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15912$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15913if ${lt_cv_prog_compiler_pic+:} false; then :
15914  $as_echo_n "(cached) " >&6
15915else
15916  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15917fi
15918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15919$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15920lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15921
15922#
15923# Check to make sure the PIC flag actually works.
15924#
15925if test -n "$lt_prog_compiler_pic"; then
15926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15927$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15928if ${lt_cv_prog_compiler_pic_works+:} false; then :
15929  $as_echo_n "(cached) " >&6
15930else
15931  lt_cv_prog_compiler_pic_works=no
15932   ac_outfile=conftest.$ac_objext
15933   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15934   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15935   # Insert the option either (1) after the last *FLAGS variable, or
15936   # (2) before a word containing "conftest.", or (3) at the end.
15937   # Note that $ac_compile itself does not contain backslashes and begins
15938   # with a dollar sign (not a hyphen), so the echo should work correctly.
15939   # The option is referenced via a variable to avoid confusing sed.
15940   lt_compile=`echo "$ac_compile" | $SED \
15941   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15942   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15943   -e 's:$: $lt_compiler_flag:'`
15944   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15945   (eval "$lt_compile" 2>conftest.err)
15946   ac_status=$?
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   if (exit $ac_status) && test -s "$ac_outfile"; then
15950     # The compiler can only warn and ignore the option if not recognized
15951     # So say no if there are warnings other than the usual output.
15952     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15953     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15954     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15955       lt_cv_prog_compiler_pic_works=yes
15956     fi
15957   fi
15958   $RM conftest*
15959
15960fi
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15962$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15963
15964if test yes = "$lt_cv_prog_compiler_pic_works"; then
15965    case $lt_prog_compiler_pic in
15966     "" | " "*) ;;
15967     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15968     esac
15969else
15970    lt_prog_compiler_pic=
15971     lt_prog_compiler_can_build_shared=no
15972fi
15973
15974fi
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986#
15987# Check to make sure the static flag actually works.
15988#
15989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15992if ${lt_cv_prog_compiler_static_works+:} false; then :
15993  $as_echo_n "(cached) " >&6
15994else
15995  lt_cv_prog_compiler_static_works=no
15996   save_LDFLAGS=$LDFLAGS
15997   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15998   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15999   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16000     # The linker can only warn and ignore the option if not recognized
16001     # So say no if there are warnings
16002     if test -s conftest.err; then
16003       # Append any errors to the config.log.
16004       cat conftest.err 1>&5
16005       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16006       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16007       if diff conftest.exp conftest.er2 >/dev/null; then
16008         lt_cv_prog_compiler_static_works=yes
16009       fi
16010     else
16011       lt_cv_prog_compiler_static_works=yes
16012     fi
16013   fi
16014   $RM -r conftest*
16015   LDFLAGS=$save_LDFLAGS
16016
16017fi
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16020
16021if test yes = "$lt_cv_prog_compiler_static_works"; then
16022    :
16023else
16024    lt_prog_compiler_static=
16025fi
16026
16027
16028
16029
16030
16031
16032
16033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16035if ${lt_cv_prog_compiler_c_o+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  lt_cv_prog_compiler_c_o=no
16039   $RM -r conftest 2>/dev/null
16040   mkdir conftest
16041   cd conftest
16042   mkdir out
16043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045   lt_compiler_flag="-o out/conftest2.$ac_objext"
16046   # Insert the option either (1) after the last *FLAGS variable, or
16047   # (2) before a word containing "conftest.", or (3) at the end.
16048   # Note that $ac_compile itself does not contain backslashes and begins
16049   # with a dollar sign (not a hyphen), so the echo should work correctly.
16050   lt_compile=`echo "$ac_compile" | $SED \
16051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053   -e 's:$: $lt_compiler_flag:'`
16054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16055   (eval "$lt_compile" 2>out/conftest.err)
16056   ac_status=$?
16057   cat out/conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16060   then
16061     # The compiler can only warn and ignore the option if not recognized
16062     # So say no if there are warnings
16063     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16066       lt_cv_prog_compiler_c_o=yes
16067     fi
16068   fi
16069   chmod u+w . 2>&5
16070   $RM conftest*
16071   # SGI C++ compiler will create directory out/ii_files/ for
16072   # template instantiation
16073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16074   $RM out/* && rmdir out
16075   cd ..
16076   $RM -r conftest
16077   $RM conftest*
16078
16079fi
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16082
16083
16084
16085
16086
16087
16088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16090if ${lt_cv_prog_compiler_c_o+:} false; then :
16091  $as_echo_n "(cached) " >&6
16092else
16093  lt_cv_prog_compiler_c_o=no
16094   $RM -r conftest 2>/dev/null
16095   mkdir conftest
16096   cd conftest
16097   mkdir out
16098   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16099
16100   lt_compiler_flag="-o out/conftest2.$ac_objext"
16101   # Insert the option either (1) after the last *FLAGS variable, or
16102   # (2) before a word containing "conftest.", or (3) at the end.
16103   # Note that $ac_compile itself does not contain backslashes and begins
16104   # with a dollar sign (not a hyphen), so the echo should work correctly.
16105   lt_compile=`echo "$ac_compile" | $SED \
16106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16108   -e 's:$: $lt_compiler_flag:'`
16109   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16110   (eval "$lt_compile" 2>out/conftest.err)
16111   ac_status=$?
16112   cat out/conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16115   then
16116     # The compiler can only warn and ignore the option if not recognized
16117     # So say no if there are warnings
16118     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16119     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16120     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16121       lt_cv_prog_compiler_c_o=yes
16122     fi
16123   fi
16124   chmod u+w . 2>&5
16125   $RM conftest*
16126   # SGI C++ compiler will create directory out/ii_files/ for
16127   # template instantiation
16128   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16129   $RM out/* && rmdir out
16130   cd ..
16131   $RM -r conftest
16132   $RM conftest*
16133
16134fi
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16136$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16137
16138
16139
16140
16141hard_links=nottested
16142if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16143  # do not overwrite the value of need_locks provided by the user
16144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16145$as_echo_n "checking if we can lock with hard links... " >&6; }
16146  hard_links=yes
16147  $RM conftest*
16148  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16149  touch conftest.a
16150  ln conftest.a conftest.b 2>&5 || hard_links=no
16151  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16153$as_echo "$hard_links" >&6; }
16154  if test no = "$hard_links"; then
16155    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16156$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16157    need_locks=warn
16158  fi
16159else
16160  need_locks=no
16161fi
16162
16163
16164
16165
16166
16167
16168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16170
16171  runpath_var=
16172  allow_undefined_flag=
16173  always_export_symbols=no
16174  archive_cmds=
16175  archive_expsym_cmds=
16176  compiler_needs_object=no
16177  enable_shared_with_static_runtimes=no
16178  export_dynamic_flag_spec=
16179  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16180  hardcode_automatic=no
16181  hardcode_direct=no
16182  hardcode_direct_absolute=no
16183  hardcode_libdir_flag_spec=
16184  hardcode_libdir_separator=
16185  hardcode_minus_L=no
16186  hardcode_shlibpath_var=unsupported
16187  inherit_rpath=no
16188  link_all_deplibs=unknown
16189  module_cmds=
16190  module_expsym_cmds=
16191  old_archive_from_new_cmds=
16192  old_archive_from_expsyms_cmds=
16193  thread_safe_flag_spec=
16194  whole_archive_flag_spec=
16195  # include_expsyms should be a list of space-separated symbols to be *always*
16196  # included in the symbol list
16197  include_expsyms=
16198  # exclude_expsyms can be an extended regexp of symbols to exclude
16199  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16200  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16201  # as well as any symbol that contains 'd'.
16202  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16203  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16204  # platforms (ab)use it in PIC code, but their linkers get confused if
16205  # the symbol is explicitly referenced.  Since portable code cannot
16206  # rely on this symbol name, it's probably fine to never include it in
16207  # preloaded symbol tables.
16208  # Exclude shared library initialization/finalization symbols.
16209  extract_expsyms_cmds=
16210
16211  case $host_os in
16212  cygwin* | mingw* | pw32* | cegcc*)
16213    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16214    # When not using gcc, we currently assume that we are using
16215    # Microsoft Visual C++.
16216    if test yes != "$GCC"; then
16217      with_gnu_ld=no
16218    fi
16219    ;;
16220  interix*)
16221    # we just hope/assume this is gcc and not c89 (= MSVC++)
16222    with_gnu_ld=yes
16223    ;;
16224  openbsd* | bitrig*)
16225    with_gnu_ld=no
16226    ;;
16227  esac
16228
16229  ld_shlibs=yes
16230
16231  # On some targets, GNU ld is compatible enough with the native linker
16232  # that we're better off using the native interface for both.
16233  lt_use_gnu_ld_interface=no
16234  if test yes = "$with_gnu_ld"; then
16235    case $host_os in
16236      aix*)
16237	# The AIX port of GNU ld has always aspired to compatibility
16238	# with the native linker.  However, as the warning in the GNU ld
16239	# block says, versions before 2.19.5* couldn't really create working
16240	# shared libraries, regardless of the interface used.
16241	case `$LD -v 2>&1` in
16242	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16243	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16244	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16245	  *)
16246	    lt_use_gnu_ld_interface=yes
16247	    ;;
16248	esac
16249	;;
16250      *)
16251	lt_use_gnu_ld_interface=yes
16252	;;
16253    esac
16254  fi
16255
16256  if test yes = "$lt_use_gnu_ld_interface"; then
16257    # If archive_cmds runs LD, not CC, wlarc should be empty
16258    wlarc='$wl'
16259
16260    # Set some defaults for GNU ld with shared library support. These
16261    # are reset later if shared libraries are not supported. Putting them
16262    # here allows them to be overridden if necessary.
16263    runpath_var=LD_RUN_PATH
16264    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16265    export_dynamic_flag_spec='$wl--export-dynamic'
16266    # ancient GNU ld didn't support --whole-archive et. al.
16267    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16268      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16269    else
16270      whole_archive_flag_spec=
16271    fi
16272    supports_anon_versioning=no
16273    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
16274      *GNU\ gold*) supports_anon_versioning=yes ;;
16275      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16276      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16277      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16278      *\ 2.11.*) ;; # other 2.11 versions
16279      *) supports_anon_versioning=yes ;;
16280    esac
16281
16282    # See if GNU ld supports shared libraries.
16283    case $host_os in
16284    aix[3-9]*)
16285      # On AIX/PPC, the GNU linker is very broken
16286      if test ia64 != "$host_cpu"; then
16287	ld_shlibs=no
16288	cat <<_LT_EOF 1>&2
16289
16290*** Warning: the GNU linker, at least up to release 2.19, is reported
16291*** to be unable to reliably create shared libraries on AIX.
16292*** Therefore, libtool is disabling shared libraries support.  If you
16293*** really care for shared libraries, you may want to install binutils
16294*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16295*** You will then need to restart the configuration process.
16296
16297_LT_EOF
16298      fi
16299      ;;
16300
16301    amigaos*)
16302      case $host_cpu in
16303      powerpc)
16304            # see comment about AmigaOS4 .so support
16305            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16306            archive_expsym_cmds=''
16307        ;;
16308      m68k)
16309            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)'
16310            hardcode_libdir_flag_spec='-L$libdir'
16311            hardcode_minus_L=yes
16312        ;;
16313      esac
16314      ;;
16315
16316    beos*)
16317      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16318	allow_undefined_flag=unsupported
16319	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16320	# support --undefined.  This deserves some investigation.  FIXME
16321	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16322      else
16323	ld_shlibs=no
16324      fi
16325      ;;
16326
16327    cygwin* | mingw* | pw32* | cegcc*)
16328      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16329      # as there is no search path for DLLs.
16330      hardcode_libdir_flag_spec='-L$libdir'
16331      export_dynamic_flag_spec='$wl--export-all-symbols'
16332      allow_undefined_flag=unsupported
16333      always_export_symbols=no
16334      enable_shared_with_static_runtimes=yes
16335      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16336      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16337
16338      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16339        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16340	# If the export-symbols file already is a .def file, use it as
16341	# is; otherwise, prepend EXPORTS...
16342	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16343          cp $export_symbols $output_objdir/$soname.def;
16344        else
16345          echo EXPORTS > $output_objdir/$soname.def;
16346          cat $export_symbols >> $output_objdir/$soname.def;
16347        fi~
16348        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16349      else
16350	ld_shlibs=no
16351      fi
16352      ;;
16353
16354    haiku*)
16355      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16356      link_all_deplibs=yes
16357      ;;
16358
16359    os2*)
16360      hardcode_libdir_flag_spec='-L$libdir'
16361      hardcode_minus_L=yes
16362      allow_undefined_flag=unsupported
16363      shrext_cmds=.dll
16364      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16365	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16366	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16367	$ECHO EXPORTS >> $output_objdir/$libname.def~
16368	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16369	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16370	emximp -o $lib $output_objdir/$libname.def'
16371      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16372	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16373	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16374	$ECHO EXPORTS >> $output_objdir/$libname.def~
16375	prefix_cmds="$SED"~
16376	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16377	  prefix_cmds="$prefix_cmds -e 1d";
16378	fi~
16379	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16380	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16381	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16382	emximp -o $lib $output_objdir/$libname.def'
16383      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16384      enable_shared_with_static_runtimes=yes
16385      ;;
16386
16387    interix[3-9]*)
16388      hardcode_direct=no
16389      hardcode_shlibpath_var=no
16390      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16391      export_dynamic_flag_spec='$wl-E'
16392      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16393      # Instead, shared libraries are loaded at an image base (0x10000000 by
16394      # default) and relocated if they conflict, which is a slow very memory
16395      # consuming and fragmenting process.  To avoid this, we pick a random,
16396      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16397      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16398      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16399      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'
16400      ;;
16401
16402    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16403      tmp_diet=no
16404      if test linux-dietlibc = "$host_os"; then
16405	case $cc_basename in
16406	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16407	esac
16408      fi
16409      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16410	 && test no = "$tmp_diet"
16411      then
16412	tmp_addflag=' $pic_flag'
16413	tmp_sharedflag='-shared'
16414	case $cc_basename,$host_cpu in
16415        pgcc*)				# Portland Group C compiler
16416	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16417	  tmp_addflag=' $pic_flag'
16418	  ;;
16419	pgf77* | pgf90* | pgf95* | pgfortran*)
16420					# Portland Group f77 and f90 compilers
16421	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16422	  tmp_addflag=' $pic_flag -Mnomain' ;;
16423	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16424	  tmp_addflag=' -i_dynamic' ;;
16425	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16426	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16427	ifc* | ifort*)			# Intel Fortran compiler
16428	  tmp_addflag=' -nofor_main' ;;
16429	lf95*)				# Lahey Fortran 8.1
16430	  whole_archive_flag_spec=
16431	  tmp_sharedflag='--shared' ;;
16432        nagfor*)                        # NAGFOR 5.3
16433          tmp_sharedflag='-Wl,-shared' ;;
16434	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16435	  tmp_sharedflag='-qmkshrobj'
16436	  tmp_addflag= ;;
16437	nvcc*)	# Cuda Compiler Driver 2.2
16438	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16439	  compiler_needs_object=yes
16440	  ;;
16441	esac
16442	case `$CC -V 2>&1 | sed 5q` in
16443	*Sun\ C*)			# Sun C 5.9
16444	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16445	  compiler_needs_object=yes
16446	  tmp_sharedflag='-G' ;;
16447	*Sun\ F*)			# Sun Fortran 8.3
16448	  tmp_sharedflag='-G' ;;
16449	esac
16450	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16451
16452        if test yes = "$supports_anon_versioning"; then
16453          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16454            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16455            echo "local: *; };" >> $output_objdir/$libname.ver~
16456            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16457        fi
16458
16459	case $cc_basename in
16460	tcc*)
16461	  export_dynamic_flag_spec='-rdynamic'
16462	  ;;
16463	xlf* | bgf* | bgxlf* | mpixlf*)
16464	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16465	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16466	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16467	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16468	  if test yes = "$supports_anon_versioning"; then
16469	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16470              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471              echo "local: *; };" >> $output_objdir/$libname.ver~
16472              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16473	  fi
16474	  ;;
16475	esac
16476      else
16477        ld_shlibs=no
16478      fi
16479      ;;
16480
16481    netbsd*)
16482      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16483	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16484	wlarc=
16485      else
16486	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16487	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16488      fi
16489      ;;
16490
16491    solaris*)
16492      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16493	ld_shlibs=no
16494	cat <<_LT_EOF 1>&2
16495
16496*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16497*** create shared libraries on Solaris systems.  Therefore, libtool
16498*** is disabling shared libraries support.  We urge you to upgrade GNU
16499*** binutils to release 2.9.1 or newer.  Another option is to modify
16500*** your PATH or compiler configuration so that the native linker is
16501*** used, and then restart.
16502
16503_LT_EOF
16504      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16505	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16506	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16507      else
16508	ld_shlibs=no
16509      fi
16510      ;;
16511
16512    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16513      case `$LD -v 2>&1` in
16514        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16515	ld_shlibs=no
16516	cat <<_LT_EOF 1>&2
16517
16518*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16519*** reliably create shared libraries on SCO systems.  Therefore, libtool
16520*** is disabling shared libraries support.  We urge you to upgrade GNU
16521*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16522*** your PATH or compiler configuration so that the native linker is
16523*** used, and then restart.
16524
16525_LT_EOF
16526	;;
16527	*)
16528	  # For security reasons, it is highly recommended that you always
16529	  # use absolute paths for naming shared libraries, and exclude the
16530	  # DT_RUNPATH tag from executables and libraries.  But doing so
16531	  # requires that you compile everything twice, which is a pain.
16532	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16533	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16534	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16535	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16536	  else
16537	    ld_shlibs=no
16538	  fi
16539	;;
16540      esac
16541      ;;
16542
16543    sunos4*)
16544      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16545      wlarc=
16546      hardcode_direct=yes
16547      hardcode_shlibpath_var=no
16548      ;;
16549
16550    *)
16551      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16552	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16553	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16554      else
16555	ld_shlibs=no
16556      fi
16557      ;;
16558    esac
16559
16560    if test no = "$ld_shlibs"; then
16561      runpath_var=
16562      hardcode_libdir_flag_spec=
16563      export_dynamic_flag_spec=
16564      whole_archive_flag_spec=
16565    fi
16566  else
16567    # PORTME fill in a description of your system's linker (not GNU ld)
16568    case $host_os in
16569    aix3*)
16570      allow_undefined_flag=unsupported
16571      always_export_symbols=yes
16572      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'
16573      # Note: this linker hardcodes the directories in LIBPATH if there
16574      # are no directories specified by -L.
16575      hardcode_minus_L=yes
16576      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16577	# Neither direct hardcoding nor static linking is supported with a
16578	# broken collect2.
16579	hardcode_direct=unsupported
16580      fi
16581      ;;
16582
16583    aix[4-9]*)
16584      if test ia64 = "$host_cpu"; then
16585	# On IA64, the linker does run time linking by default, so we don't
16586	# have to do anything special.
16587	aix_use_runtimelinking=no
16588	exp_sym_flag='-Bexport'
16589	no_entry_flag=
16590      else
16591	# If we're using GNU nm, then we don't want the "-C" option.
16592	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16593	# Without the "-l" option, or with the "-B" option, AIX nm treats
16594	# weak defined symbols like other global defined symbols, whereas
16595	# GNU nm marks them as "W".
16596	# While the 'weak' keyword is ignored in the Export File, we need
16597	# it in the Import File for the 'aix-soname' feature, so we have
16598	# to replace the "-B" option with "-P" for AIX nm.
16599	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16600	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16601	else
16602	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16603	fi
16604	aix_use_runtimelinking=no
16605
16606	# Test if we are trying to use run time linking or normal
16607	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16608	# have runtime linking enabled, and use it for executables.
16609	# For shared libraries, we enable/disable runtime linking
16610	# depending on the kind of the shared library created -
16611	# when "with_aix_soname,aix_use_runtimelinking" is:
16612	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16613	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16614	#            lib.a           static archive
16615	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16616	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16617	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16618	#            lib.a(lib.so.V) shared, rtl:no
16619	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16620	#            lib.a           static archive
16621	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16622	  for ld_flag in $LDFLAGS; do
16623	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16624	    aix_use_runtimelinking=yes
16625	    break
16626	  fi
16627	  done
16628	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16629	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16630	    # so we don't have lib.a shared libs to link our executables.
16631	    # We have to force runtime linking in this case.
16632	    aix_use_runtimelinking=yes
16633	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16634	  fi
16635	  ;;
16636	esac
16637
16638	exp_sym_flag='-bexport'
16639	no_entry_flag='-bnoentry'
16640      fi
16641
16642      # When large executables or shared objects are built, AIX ld can
16643      # have problems creating the table of contents.  If linking a library
16644      # or program results in "error TOC overflow" add -mminimal-toc to
16645      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16646      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16647
16648      archive_cmds=''
16649      hardcode_direct=yes
16650      hardcode_direct_absolute=yes
16651      hardcode_libdir_separator=':'
16652      link_all_deplibs=yes
16653      file_list_spec='$wl-f,'
16654      case $with_aix_soname,$aix_use_runtimelinking in
16655      aix,*) ;; # traditional, no import file
16656      svr4,* | *,yes) # use import file
16657	# The Import File defines what to hardcode.
16658	hardcode_direct=no
16659	hardcode_direct_absolute=no
16660	;;
16661      esac
16662
16663      if test yes = "$GCC"; then
16664	case $host_os in aix4.[012]|aix4.[012].*)
16665	# We only want to do this on AIX 4.2 and lower, the check
16666	# below for broken collect2 doesn't work under 4.3+
16667	  collect2name=`$CC -print-prog-name=collect2`
16668	  if test -f "$collect2name" &&
16669	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16670	  then
16671	  # We have reworked collect2
16672	  :
16673	  else
16674	  # We have old collect2
16675	  hardcode_direct=unsupported
16676	  # It fails to find uninstalled libraries when the uninstalled
16677	  # path is not listed in the libpath.  Setting hardcode_minus_L
16678	  # to unsupported forces relinking
16679	  hardcode_minus_L=yes
16680	  hardcode_libdir_flag_spec='-L$libdir'
16681	  hardcode_libdir_separator=
16682	  fi
16683	  ;;
16684	esac
16685	shared_flag='-shared'
16686	if test yes = "$aix_use_runtimelinking"; then
16687	  shared_flag="$shared_flag "'$wl-G'
16688	fi
16689	# Need to ensure runtime linking is disabled for the traditional
16690	# shared library, or the linker may eventually find shared libraries
16691	# /with/ Import File - we do not want to mix them.
16692	shared_flag_aix='-shared'
16693	shared_flag_svr4='-shared $wl-G'
16694      else
16695	# not using gcc
16696	if test ia64 = "$host_cpu"; then
16697	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16698	# chokes on -Wl,-G. The following line is correct:
16699	  shared_flag='-G'
16700	else
16701	  if test yes = "$aix_use_runtimelinking"; then
16702	    shared_flag='$wl-G'
16703	  else
16704	    shared_flag='$wl-bM:SRE'
16705	  fi
16706	  shared_flag_aix='$wl-bM:SRE'
16707	  shared_flag_svr4='$wl-G'
16708	fi
16709      fi
16710
16711      export_dynamic_flag_spec='$wl-bexpall'
16712      # It seems that -bexpall does not export symbols beginning with
16713      # underscore (_), so it is better to generate a list of symbols to export.
16714      always_export_symbols=yes
16715      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16716	# Warning - without using the other runtime loading flags (-brtl),
16717	# -berok will link without error, but may produce a broken library.
16718	allow_undefined_flag='-berok'
16719        # Determine the default libpath from the value encoded in an
16720        # empty executable.
16721        if test set = "${lt_cv_aix_libpath+set}"; then
16722  aix_libpath=$lt_cv_aix_libpath
16723else
16724  if ${lt_cv_aix_libpath_+:} false; then :
16725  $as_echo_n "(cached) " >&6
16726else
16727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728/* end confdefs.h.  */
16729
16730int
16731main ()
16732{
16733
16734  ;
16735  return 0;
16736}
16737_ACEOF
16738if ac_fn_c_try_link "$LINENO"; then :
16739
16740  lt_aix_libpath_sed='
16741      /Import File Strings/,/^$/ {
16742	  /^0/ {
16743	      s/^0  *\([^ ]*\) *$/\1/
16744	      p
16745	  }
16746      }'
16747  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16748  # Check for a 64-bit object if we didn't find anything.
16749  if test -z "$lt_cv_aix_libpath_"; then
16750    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16751  fi
16752fi
16753rm -f core conftest.err conftest.$ac_objext \
16754    conftest$ac_exeext conftest.$ac_ext
16755  if test -z "$lt_cv_aix_libpath_"; then
16756    lt_cv_aix_libpath_=/usr/lib:/lib
16757  fi
16758
16759fi
16760
16761  aix_libpath=$lt_cv_aix_libpath_
16762fi
16763
16764        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16765        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16766      else
16767	if test ia64 = "$host_cpu"; then
16768	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16769	  allow_undefined_flag="-z nodefs"
16770	  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"
16771	else
16772	 # Determine the default libpath from the value encoded in an
16773	 # empty executable.
16774	 if test set = "${lt_cv_aix_libpath+set}"; then
16775  aix_libpath=$lt_cv_aix_libpath
16776else
16777  if ${lt_cv_aix_libpath_+:} false; then :
16778  $as_echo_n "(cached) " >&6
16779else
16780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781/* end confdefs.h.  */
16782
16783int
16784main ()
16785{
16786
16787  ;
16788  return 0;
16789}
16790_ACEOF
16791if ac_fn_c_try_link "$LINENO"; then :
16792
16793  lt_aix_libpath_sed='
16794      /Import File Strings/,/^$/ {
16795	  /^0/ {
16796	      s/^0  *\([^ ]*\) *$/\1/
16797	      p
16798	  }
16799      }'
16800  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16801  # Check for a 64-bit object if we didn't find anything.
16802  if test -z "$lt_cv_aix_libpath_"; then
16803    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16804  fi
16805fi
16806rm -f core conftest.err conftest.$ac_objext \
16807    conftest$ac_exeext conftest.$ac_ext
16808  if test -z "$lt_cv_aix_libpath_"; then
16809    lt_cv_aix_libpath_=/usr/lib:/lib
16810  fi
16811
16812fi
16813
16814  aix_libpath=$lt_cv_aix_libpath_
16815fi
16816
16817	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16818	  # Warning - without using the other run time loading flags,
16819	  # -berok will link without error, but may produce a broken library.
16820	  no_undefined_flag=' $wl-bernotok'
16821	  allow_undefined_flag=' $wl-berok'
16822	  if test yes = "$with_gnu_ld"; then
16823	    # We only use this code for GNU lds that support --whole-archive.
16824	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16825	  else
16826	    # Exported symbols can be pulled into shared objects from archives
16827	    whole_archive_flag_spec='$convenience'
16828	  fi
16829	  archive_cmds_need_lc=yes
16830	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16831	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16832	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16833	  if test svr4 != "$with_aix_soname"; then
16834	    # This is similar to how AIX traditionally builds its shared libraries.
16835	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16836	  fi
16837	  if test aix != "$with_aix_soname"; then
16838	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16839	  else
16840	    # used by -dlpreopen to get the symbols
16841	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16842	  fi
16843	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16844	fi
16845      fi
16846      ;;
16847
16848    amigaos*)
16849      case $host_cpu in
16850      powerpc)
16851            # see comment about AmigaOS4 .so support
16852            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16853            archive_expsym_cmds=''
16854        ;;
16855      m68k)
16856            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)'
16857            hardcode_libdir_flag_spec='-L$libdir'
16858            hardcode_minus_L=yes
16859        ;;
16860      esac
16861      ;;
16862
16863    bsdi[45]*)
16864      export_dynamic_flag_spec=-rdynamic
16865      ;;
16866
16867    cygwin* | mingw* | pw32* | cegcc*)
16868      # When not using gcc, we currently assume that we are using
16869      # Microsoft Visual C++.
16870      # hardcode_libdir_flag_spec is actually meaningless, as there is
16871      # no search path for DLLs.
16872      case $cc_basename in
16873      cl*)
16874	# Native MSVC
16875	hardcode_libdir_flag_spec=' '
16876	allow_undefined_flag=unsupported
16877	always_export_symbols=yes
16878	file_list_spec='@'
16879	# Tell ltmain to make .lib files, not .a files.
16880	libext=lib
16881	# Tell ltmain to make .dll files, not .so files.
16882	shrext_cmds=.dll
16883	# FIXME: Setting linknames here is a bad hack.
16884	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16885	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16886            cp "$export_symbols" "$output_objdir/$soname.def";
16887            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16888          else
16889            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16890          fi~
16891          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16892          linknames='
16893	# The linker will not automatically build a static lib if we build a DLL.
16894	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16895	enable_shared_with_static_runtimes=yes
16896	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16897	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16898	# Don't use ranlib
16899	old_postinstall_cmds='chmod 644 $oldlib'
16900	postlink_cmds='lt_outputfile="@OUTPUT@"~
16901          lt_tool_outputfile="@TOOL_OUTPUT@"~
16902          case $lt_outputfile in
16903            *.exe|*.EXE) ;;
16904            *)
16905              lt_outputfile=$lt_outputfile.exe
16906              lt_tool_outputfile=$lt_tool_outputfile.exe
16907              ;;
16908          esac~
16909          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16910            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16911            $RM "$lt_outputfile.manifest";
16912          fi'
16913	;;
16914      *)
16915	# Assume MSVC wrapper
16916	hardcode_libdir_flag_spec=' '
16917	allow_undefined_flag=unsupported
16918	# Tell ltmain to make .lib files, not .a files.
16919	libext=lib
16920	# Tell ltmain to make .dll files, not .so files.
16921	shrext_cmds=.dll
16922	# FIXME: Setting linknames here is a bad hack.
16923	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16924	# The linker will automatically build a .lib file if we build a DLL.
16925	old_archive_from_new_cmds='true'
16926	# FIXME: Should let the user specify the lib program.
16927	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16928	enable_shared_with_static_runtimes=yes
16929	;;
16930      esac
16931      ;;
16932
16933    darwin* | rhapsody*)
16934
16935
16936  archive_cmds_need_lc=no
16937  hardcode_direct=no
16938  hardcode_automatic=yes
16939  hardcode_shlibpath_var=unsupported
16940  if test yes = "$lt_cv_ld_force_load"; then
16941    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16942
16943  else
16944    whole_archive_flag_spec=''
16945  fi
16946  link_all_deplibs=yes
16947  allow_undefined_flag=$_lt_dar_allow_undefined
16948  case $cc_basename in
16949     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16950     *) _lt_dar_can_shared=$GCC ;;
16951  esac
16952  if test yes = "$_lt_dar_can_shared"; then
16953    output_verbose_link_cmd=func_echo_all
16954    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16955    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16956    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"
16957    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"
16958
16959  else
16960  ld_shlibs=no
16961  fi
16962
16963      ;;
16964
16965    dgux*)
16966      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967      hardcode_libdir_flag_spec='-L$libdir'
16968      hardcode_shlibpath_var=no
16969      ;;
16970
16971    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16972    # support.  Future versions do this automatically, but an explicit c++rt0.o
16973    # does not break anything, and helps significantly (at the cost of a little
16974    # extra space).
16975    freebsd2.2*)
16976      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16977      hardcode_libdir_flag_spec='-R$libdir'
16978      hardcode_direct=yes
16979      hardcode_shlibpath_var=no
16980      ;;
16981
16982    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16983    freebsd2.*)
16984      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16985      hardcode_direct=yes
16986      hardcode_minus_L=yes
16987      hardcode_shlibpath_var=no
16988      ;;
16989
16990    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16991    freebsd* | dragonfly*)
16992      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16993      hardcode_libdir_flag_spec='-R$libdir'
16994      hardcode_direct=yes
16995      hardcode_shlibpath_var=no
16996      ;;
16997
16998    hpux9*)
16999      if test yes = "$GCC"; then
17000	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17001      else
17002	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17003      fi
17004      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17005      hardcode_libdir_separator=:
17006      hardcode_direct=yes
17007
17008      # hardcode_minus_L: Not really in the search PATH,
17009      # but as the default location of the library.
17010      hardcode_minus_L=yes
17011      export_dynamic_flag_spec='$wl-E'
17012      ;;
17013
17014    hpux10*)
17015      if test yes,no = "$GCC,$with_gnu_ld"; then
17016	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17017      else
17018	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17019      fi
17020      if test no = "$with_gnu_ld"; then
17021	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17022	hardcode_libdir_separator=:
17023	hardcode_direct=yes
17024	hardcode_direct_absolute=yes
17025	export_dynamic_flag_spec='$wl-E'
17026	# hardcode_minus_L: Not really in the search PATH,
17027	# but as the default location of the library.
17028	hardcode_minus_L=yes
17029      fi
17030      ;;
17031
17032    hpux11*)
17033      if test yes,no = "$GCC,$with_gnu_ld"; then
17034	case $host_cpu in
17035	hppa*64*)
17036	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17037	  ;;
17038	ia64*)
17039	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17040	  ;;
17041	*)
17042	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17043	  ;;
17044	esac
17045      else
17046	case $host_cpu in
17047	hppa*64*)
17048	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17049	  ;;
17050	ia64*)
17051	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17052	  ;;
17053	*)
17054
17055	  # Older versions of the 11.00 compiler do not understand -b yet
17056	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17057	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17058$as_echo_n "checking if $CC understands -b... " >&6; }
17059if ${lt_cv_prog_compiler__b+:} false; then :
17060  $as_echo_n "(cached) " >&6
17061else
17062  lt_cv_prog_compiler__b=no
17063   save_LDFLAGS=$LDFLAGS
17064   LDFLAGS="$LDFLAGS -b"
17065   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17066   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17067     # The linker can only warn and ignore the option if not recognized
17068     # So say no if there are warnings
17069     if test -s conftest.err; then
17070       # Append any errors to the config.log.
17071       cat conftest.err 1>&5
17072       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17073       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17074       if diff conftest.exp conftest.er2 >/dev/null; then
17075         lt_cv_prog_compiler__b=yes
17076       fi
17077     else
17078       lt_cv_prog_compiler__b=yes
17079     fi
17080   fi
17081   $RM -r conftest*
17082   LDFLAGS=$save_LDFLAGS
17083
17084fi
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17086$as_echo "$lt_cv_prog_compiler__b" >&6; }
17087
17088if test yes = "$lt_cv_prog_compiler__b"; then
17089    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17090else
17091    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17092fi
17093
17094	  ;;
17095	esac
17096      fi
17097      if test no = "$with_gnu_ld"; then
17098	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17099	hardcode_libdir_separator=:
17100
17101	case $host_cpu in
17102	hppa*64*|ia64*)
17103	  hardcode_direct=no
17104	  hardcode_shlibpath_var=no
17105	  ;;
17106	*)
17107	  hardcode_direct=yes
17108	  hardcode_direct_absolute=yes
17109	  export_dynamic_flag_spec='$wl-E'
17110
17111	  # hardcode_minus_L: Not really in the search PATH,
17112	  # but as the default location of the library.
17113	  hardcode_minus_L=yes
17114	  ;;
17115	esac
17116      fi
17117      ;;
17118
17119    irix5* | irix6* | nonstopux*)
17120      if test yes = "$GCC"; then
17121	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17122	# Try to use the -exported_symbol ld option, if it does not
17123	# work, assume that -exports_file does not work either and
17124	# implicitly export all symbols.
17125	# This should be the same for all languages, so no per-tag cache variable.
17126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17127$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17128if ${lt_cv_irix_exported_symbol+:} false; then :
17129  $as_echo_n "(cached) " >&6
17130else
17131  save_LDFLAGS=$LDFLAGS
17132	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17133	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134/* end confdefs.h.  */
17135int foo (void) { return 0; }
17136_ACEOF
17137if ac_fn_c_try_link "$LINENO"; then :
17138  lt_cv_irix_exported_symbol=yes
17139else
17140  lt_cv_irix_exported_symbol=no
17141fi
17142rm -f core conftest.err conftest.$ac_objext \
17143    conftest$ac_exeext conftest.$ac_ext
17144           LDFLAGS=$save_LDFLAGS
17145fi
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17147$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17148	if test yes = "$lt_cv_irix_exported_symbol"; then
17149          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
17150	fi
17151      else
17152	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17153	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
17154      fi
17155      archive_cmds_need_lc='no'
17156      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17157      hardcode_libdir_separator=:
17158      inherit_rpath=yes
17159      link_all_deplibs=yes
17160      ;;
17161
17162    linux*)
17163      case $cc_basename in
17164      tcc*)
17165	# Fabrice Bellard et al's Tiny C Compiler
17166	ld_shlibs=yes
17167	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17168	;;
17169      esac
17170      ;;
17171
17172    netbsd*)
17173      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17174	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17175      else
17176	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17177      fi
17178      hardcode_libdir_flag_spec='-R$libdir'
17179      hardcode_direct=yes
17180      hardcode_shlibpath_var=no
17181      ;;
17182
17183    newsos6)
17184      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185      hardcode_direct=yes
17186      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17187      hardcode_libdir_separator=:
17188      hardcode_shlibpath_var=no
17189      ;;
17190
17191    *nto* | *qnx*)
17192      ;;
17193
17194    openbsd* | bitrig*)
17195      if test -f /usr/libexec/ld.so; then
17196	hardcode_direct=yes
17197	hardcode_shlibpath_var=no
17198	hardcode_direct_absolute=yes
17199	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17200	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17201	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17202	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17203	  export_dynamic_flag_spec='$wl-E'
17204	else
17205	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17206	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17207	fi
17208      else
17209	ld_shlibs=no
17210      fi
17211      ;;
17212
17213    os2*)
17214      hardcode_libdir_flag_spec='-L$libdir'
17215      hardcode_minus_L=yes
17216      allow_undefined_flag=unsupported
17217      shrext_cmds=.dll
17218      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17219	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17220	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17221	$ECHO EXPORTS >> $output_objdir/$libname.def~
17222	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17223	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17224	emximp -o $lib $output_objdir/$libname.def'
17225      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17226	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17227	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17228	$ECHO EXPORTS >> $output_objdir/$libname.def~
17229	prefix_cmds="$SED"~
17230	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17231	  prefix_cmds="$prefix_cmds -e 1d";
17232	fi~
17233	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17234	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17235	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17236	emximp -o $lib $output_objdir/$libname.def'
17237      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17238      enable_shared_with_static_runtimes=yes
17239      ;;
17240
17241    osf3*)
17242      if test yes = "$GCC"; then
17243	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17244	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17245      else
17246	allow_undefined_flag=' -expect_unresolved \*'
17247	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17248      fi
17249      archive_cmds_need_lc='no'
17250      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17251      hardcode_libdir_separator=:
17252      ;;
17253
17254    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17255      if test yes = "$GCC"; then
17256	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17257	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17258	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17259      else
17260	allow_undefined_flag=' -expect_unresolved \*'
17261	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17262	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~
17263          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
17264
17265	# Both c and cxx compiler support -rpath directly
17266	hardcode_libdir_flag_spec='-rpath $libdir'
17267      fi
17268      archive_cmds_need_lc='no'
17269      hardcode_libdir_separator=:
17270      ;;
17271
17272    solaris*)
17273      no_undefined_flag=' -z defs'
17274      if test yes = "$GCC"; then
17275	wlarc='$wl'
17276	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17277	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17278          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17279      else
17280	case `$CC -V 2>&1` in
17281	*"Compilers 5.0"*)
17282	  wlarc=''
17283	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17284	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17285            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17286	  ;;
17287	*)
17288	  wlarc='$wl'
17289	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17290	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17291            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17292	  ;;
17293	esac
17294      fi
17295      hardcode_libdir_flag_spec='-R$libdir'
17296      hardcode_shlibpath_var=no
17297      case $host_os in
17298      solaris2.[0-5] | solaris2.[0-5].*) ;;
17299      *)
17300	# The compiler driver will combine and reorder linker options,
17301	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17302	# but is careful enough not to reorder.
17303	# Supported since Solaris 2.6 (maybe 2.5.1?)
17304	if test yes = "$GCC"; then
17305	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17306	else
17307	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17308	fi
17309	;;
17310      esac
17311      link_all_deplibs=yes
17312      ;;
17313
17314    sunos4*)
17315      if test sequent = "$host_vendor"; then
17316	# Use $CC to link under sequent, because it throws in some extra .o
17317	# files that make .init and .fini sections work.
17318	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17319      else
17320	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17321      fi
17322      hardcode_libdir_flag_spec='-L$libdir'
17323      hardcode_direct=yes
17324      hardcode_minus_L=yes
17325      hardcode_shlibpath_var=no
17326      ;;
17327
17328    sysv4)
17329      case $host_vendor in
17330	sni)
17331	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332	  hardcode_direct=yes # is this really true???
17333	;;
17334	siemens)
17335	  ## LD is ld it makes a PLAMLIB
17336	  ## CC just makes a GrossModule.
17337	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17338	  reload_cmds='$CC -r -o $output$reload_objs'
17339	  hardcode_direct=no
17340        ;;
17341	motorola)
17342	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17343	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17344	;;
17345      esac
17346      runpath_var='LD_RUN_PATH'
17347      hardcode_shlibpath_var=no
17348      ;;
17349
17350    sysv4.3*)
17351      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352      hardcode_shlibpath_var=no
17353      export_dynamic_flag_spec='-Bexport'
17354      ;;
17355
17356    sysv4*MP*)
17357      if test -d /usr/nec; then
17358	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17359	hardcode_shlibpath_var=no
17360	runpath_var=LD_RUN_PATH
17361	hardcode_runpath_var=yes
17362	ld_shlibs=yes
17363      fi
17364      ;;
17365
17366    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17367      no_undefined_flag='$wl-z,text'
17368      archive_cmds_need_lc=no
17369      hardcode_shlibpath_var=no
17370      runpath_var='LD_RUN_PATH'
17371
17372      if test yes = "$GCC"; then
17373	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17374	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17375      else
17376	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17378      fi
17379      ;;
17380
17381    sysv5* | sco3.2v5* | sco5v6*)
17382      # Note: We CANNOT use -z defs as we might desire, because we do not
17383      # link with -lc, and that would cause any symbols used from libc to
17384      # always be unresolved, which means just about no library would
17385      # ever link correctly.  If we're not using GNU ld we use -z text
17386      # though, which does catch some bad symbols but isn't as heavy-handed
17387      # as -z defs.
17388      no_undefined_flag='$wl-z,text'
17389      allow_undefined_flag='$wl-z,nodefs'
17390      archive_cmds_need_lc=no
17391      hardcode_shlibpath_var=no
17392      hardcode_libdir_flag_spec='$wl-R,$libdir'
17393      hardcode_libdir_separator=':'
17394      link_all_deplibs=yes
17395      export_dynamic_flag_spec='$wl-Bexport'
17396      runpath_var='LD_RUN_PATH'
17397
17398      if test yes = "$GCC"; then
17399	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17400	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17401      else
17402	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17403	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17404      fi
17405      ;;
17406
17407    uts4*)
17408      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409      hardcode_libdir_flag_spec='-L$libdir'
17410      hardcode_shlibpath_var=no
17411      ;;
17412
17413    *)
17414      ld_shlibs=no
17415      ;;
17416    esac
17417
17418    if test sni = "$host_vendor"; then
17419      case $host in
17420      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17421	export_dynamic_flag_spec='$wl-Blargedynsym'
17422	;;
17423      esac
17424    fi
17425  fi
17426
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17428$as_echo "$ld_shlibs" >&6; }
17429test no = "$ld_shlibs" && can_build_shared=no
17430
17431with_gnu_ld=$with_gnu_ld
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447#
17448# Do we need to explicitly link libc?
17449#
17450case "x$archive_cmds_need_lc" in
17451x|xyes)
17452  # Assume -lc should be added
17453  archive_cmds_need_lc=yes
17454
17455  if test yes,yes = "$GCC,$enable_shared"; then
17456    case $archive_cmds in
17457    *'~'*)
17458      # FIXME: we may have to deal with multi-command sequences.
17459      ;;
17460    '$CC '*)
17461      # Test whether the compiler implicitly links with -lc since on some
17462      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17463      # to ld, don't add -lc before -lgcc.
17464      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17465$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17466if ${lt_cv_archive_cmds_need_lc+:} false; then :
17467  $as_echo_n "(cached) " >&6
17468else
17469  $RM conftest*
17470	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17471
17472	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17473  (eval $ac_compile) 2>&5
17474  ac_status=$?
17475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17476  test $ac_status = 0; } 2>conftest.err; then
17477	  soname=conftest
17478	  lib=conftest
17479	  libobjs=conftest.$ac_objext
17480	  deplibs=
17481	  wl=$lt_prog_compiler_wl
17482	  pic_flag=$lt_prog_compiler_pic
17483	  compiler_flags=-v
17484	  linker_flags=-v
17485	  verstring=
17486	  output_objdir=.
17487	  libname=conftest
17488	  lt_save_allow_undefined_flag=$allow_undefined_flag
17489	  allow_undefined_flag=
17490	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17491  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17492  ac_status=$?
17493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17494  test $ac_status = 0; }
17495	  then
17496	    lt_cv_archive_cmds_need_lc=no
17497	  else
17498	    lt_cv_archive_cmds_need_lc=yes
17499	  fi
17500	  allow_undefined_flag=$lt_save_allow_undefined_flag
17501	else
17502	  cat conftest.err 1>&5
17503	fi
17504	$RM conftest*
17505
17506fi
17507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17508$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17509      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17510      ;;
17511    esac
17512  fi
17513  ;;
17514esac
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
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
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17668$as_echo_n "checking dynamic linker characteristics... " >&6; }
17669
17670if test yes = "$GCC"; then
17671  case $host_os in
17672    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17673    *) lt_awk_arg='/^libraries:/' ;;
17674  esac
17675  case $host_os in
17676    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17677    *) lt_sed_strip_eq='s|=/|/|g' ;;
17678  esac
17679  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17680  case $lt_search_path_spec in
17681  *\;*)
17682    # if the path contains ";" then we assume it to be the separator
17683    # otherwise default to the standard path separator (i.e. ":") - it is
17684    # assumed that no part of a normal pathname contains ";" but that should
17685    # okay in the real world where ";" in dirpaths is itself problematic.
17686    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17687    ;;
17688  *)
17689    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17690    ;;
17691  esac
17692  # Ok, now we have the path, separated by spaces, we can step through it
17693  # and add multilib dir if necessary...
17694  lt_tmp_lt_search_path_spec=
17695  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17696  # ...but if some path component already ends with the multilib dir we assume
17697  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17698  case "$lt_multi_os_dir; $lt_search_path_spec " in
17699  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17700    lt_multi_os_dir=
17701    ;;
17702  esac
17703  for lt_sys_path in $lt_search_path_spec; do
17704    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17705      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17706    elif test -n "$lt_multi_os_dir"; then
17707      test -d "$lt_sys_path" && \
17708	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17709    fi
17710  done
17711  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17712BEGIN {RS = " "; FS = "/|\n";} {
17713  lt_foo = "";
17714  lt_count = 0;
17715  for (lt_i = NF; lt_i > 0; lt_i--) {
17716    if ($lt_i != "" && $lt_i != ".") {
17717      if ($lt_i == "..") {
17718        lt_count++;
17719      } else {
17720        if (lt_count == 0) {
17721          lt_foo = "/" $lt_i lt_foo;
17722        } else {
17723          lt_count--;
17724        }
17725      }
17726    }
17727  }
17728  if (lt_foo != "") { lt_freq[lt_foo]++; }
17729  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17730}'`
17731  # AWK program above erroneously prepends '/' to C:/dos/paths
17732  # for these hosts.
17733  case $host_os in
17734    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17735      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17736  esac
17737  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17738else
17739  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17740fi
17741library_names_spec=
17742libname_spec='lib$name'
17743soname_spec=
17744shrext_cmds=.so
17745postinstall_cmds=
17746postuninstall_cmds=
17747finish_cmds=
17748finish_eval=
17749shlibpath_var=
17750shlibpath_overrides_runpath=unknown
17751version_type=none
17752dynamic_linker="$host_os ld.so"
17753sys_lib_dlsearch_path_spec="/lib /usr/lib"
17754need_lib_prefix=unknown
17755hardcode_into_libs=no
17756
17757# when you set need_version to no, make sure it does not cause -set_version
17758# flags to be left without arguments
17759need_version=unknown
17760
17761
17762
17763case $host_os in
17764aix3*)
17765  version_type=linux # correct to gnu/linux during the next big refactor
17766  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17767  shlibpath_var=LIBPATH
17768
17769  # AIX 3 has no versioning support, so we append a major version to the name.
17770  soname_spec='$libname$release$shared_ext$major'
17771  ;;
17772
17773aix[4-9]*)
17774  version_type=linux # correct to gnu/linux during the next big refactor
17775  need_lib_prefix=no
17776  need_version=no
17777  hardcode_into_libs=yes
17778  if test ia64 = "$host_cpu"; then
17779    # AIX 5 supports IA64
17780    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17781    shlibpath_var=LD_LIBRARY_PATH
17782  else
17783    # With GCC up to 2.95.x, collect2 would create an import file
17784    # for dependence libraries.  The import file would start with
17785    # the line '#! .'.  This would cause the generated library to
17786    # depend on '.', always an invalid library.  This was fixed in
17787    # development snapshots of GCC prior to 3.0.
17788    case $host_os in
17789      aix4 | aix4.[01] | aix4.[01].*)
17790      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17791	   echo ' yes '
17792	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17793	:
17794      else
17795	can_build_shared=no
17796      fi
17797      ;;
17798    esac
17799    # Using Import Files as archive members, it is possible to support
17800    # filename-based versioning of shared library archives on AIX. While
17801    # this would work for both with and without runtime linking, it will
17802    # prevent static linking of such archives. So we do filename-based
17803    # shared library versioning with .so extension only, which is used
17804    # when both runtime linking and shared linking is enabled.
17805    # Unfortunately, runtime linking may impact performance, so we do
17806    # not want this to be the default eventually. Also, we use the
17807    # versioned .so libs for executables only if there is the -brtl
17808    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17809    # To allow for filename-based versioning support, we need to create
17810    # libNAME.so.V as an archive file, containing:
17811    # *) an Import File, referring to the versioned filename of the
17812    #    archive as well as the shared archive member, telling the
17813    #    bitwidth (32 or 64) of that shared object, and providing the
17814    #    list of exported symbols of that shared object, eventually
17815    #    decorated with the 'weak' keyword
17816    # *) the shared object with the F_LOADONLY flag set, to really avoid
17817    #    it being seen by the linker.
17818    # At run time we better use the real file rather than another symlink,
17819    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17820
17821    case $with_aix_soname,$aix_use_runtimelinking in
17822    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17823    # soname into executable. Probably we can add versioning support to
17824    # collect2, so additional links can be useful in future.
17825    aix,yes) # traditional libtool
17826      dynamic_linker='AIX unversionable lib.so'
17827      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17828      # instead of lib<name>.a to let people know that these are not
17829      # typical AIX shared libraries.
17830      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17831      ;;
17832    aix,no) # traditional AIX only
17833      dynamic_linker='AIX lib.a(lib.so.V)'
17834      # We preserve .a as extension for shared libraries through AIX4.2
17835      # and later when we are not doing run time linking.
17836      library_names_spec='$libname$release.a $libname.a'
17837      soname_spec='$libname$release$shared_ext$major'
17838      ;;
17839    svr4,*) # full svr4 only
17840      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17841      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17842      # We do not specify a path in Import Files, so LIBPATH fires.
17843      shlibpath_overrides_runpath=yes
17844      ;;
17845    *,yes) # both, prefer svr4
17846      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17847      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17848      # unpreferred sharedlib libNAME.a needs extra handling
17849      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17850      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17851      # We do not specify a path in Import Files, so LIBPATH fires.
17852      shlibpath_overrides_runpath=yes
17853      ;;
17854    *,no) # both, prefer aix
17855      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17856      library_names_spec='$libname$release.a $libname.a'
17857      soname_spec='$libname$release$shared_ext$major'
17858      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17859      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17860      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17861      ;;
17862    esac
17863    shlibpath_var=LIBPATH
17864  fi
17865  ;;
17866
17867amigaos*)
17868  case $host_cpu in
17869  powerpc)
17870    # Since July 2007 AmigaOS4 officially supports .so libraries.
17871    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17872    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17873    ;;
17874  m68k)
17875    library_names_spec='$libname.ixlibrary $libname.a'
17876    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17877    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17878    ;;
17879  esac
17880  ;;
17881
17882beos*)
17883  library_names_spec='$libname$shared_ext'
17884  dynamic_linker="$host_os ld.so"
17885  shlibpath_var=LIBRARY_PATH
17886  ;;
17887
17888bsdi[45]*)
17889  version_type=linux # correct to gnu/linux during the next big refactor
17890  need_version=no
17891  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17892  soname_spec='$libname$release$shared_ext$major'
17893  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17894  shlibpath_var=LD_LIBRARY_PATH
17895  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17896  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17897  # the default ld.so.conf also contains /usr/contrib/lib and
17898  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17899  # libtool to hard-code these into programs
17900  ;;
17901
17902cygwin* | mingw* | pw32* | cegcc*)
17903  version_type=windows
17904  shrext_cmds=.dll
17905  need_version=no
17906  need_lib_prefix=no
17907
17908  case $GCC,$cc_basename in
17909  yes,*)
17910    # gcc
17911    library_names_spec='$libname.dll.a'
17912    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17913    postinstall_cmds='base_file=`basename \$file`~
17914      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17915      dldir=$destdir/`dirname \$dlpath`~
17916      test -d \$dldir || mkdir -p \$dldir~
17917      $install_prog $dir/$dlname \$dldir/$dlname~
17918      chmod a+x \$dldir/$dlname~
17919      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17920        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17921      fi'
17922    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17923      dlpath=$dir/\$dldll~
17924       $RM \$dlpath'
17925    shlibpath_overrides_runpath=yes
17926
17927    case $host_os in
17928    cygwin*)
17929      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17930      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17931
17932      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17933      ;;
17934    mingw* | cegcc*)
17935      # MinGW DLLs use traditional 'lib' prefix
17936      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17937      ;;
17938    pw32*)
17939      # pw32 DLLs use 'pw' prefix rather than 'lib'
17940      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17941      ;;
17942    esac
17943    dynamic_linker='Win32 ld.exe'
17944    ;;
17945
17946  *,cl*)
17947    # Native MSVC
17948    libname_spec='$name'
17949    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17950    library_names_spec='$libname.dll.lib'
17951
17952    case $build_os in
17953    mingw*)
17954      sys_lib_search_path_spec=
17955      lt_save_ifs=$IFS
17956      IFS=';'
17957      for lt_path in $LIB
17958      do
17959        IFS=$lt_save_ifs
17960        # Let DOS variable expansion print the short 8.3 style file name.
17961        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17962        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17963      done
17964      IFS=$lt_save_ifs
17965      # Convert to MSYS style.
17966      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17967      ;;
17968    cygwin*)
17969      # Convert to unix form, then to dos form, then back to unix form
17970      # but this time dos style (no spaces!) so that the unix form looks
17971      # like /cygdrive/c/PROGRA~1:/cygdr...
17972      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17973      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17974      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17975      ;;
17976    *)
17977      sys_lib_search_path_spec=$LIB
17978      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17979        # It is most probably a Windows format PATH.
17980        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17981      else
17982        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17983      fi
17984      # FIXME: find the short name or the path components, as spaces are
17985      # common. (e.g. "Program Files" -> "PROGRA~1")
17986      ;;
17987    esac
17988
17989    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17990    postinstall_cmds='base_file=`basename \$file`~
17991      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17992      dldir=$destdir/`dirname \$dlpath`~
17993      test -d \$dldir || mkdir -p \$dldir~
17994      $install_prog $dir/$dlname \$dldir/$dlname'
17995    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17996      dlpath=$dir/\$dldll~
17997       $RM \$dlpath'
17998    shlibpath_overrides_runpath=yes
17999    dynamic_linker='Win32 link.exe'
18000    ;;
18001
18002  *)
18003    # Assume MSVC wrapper
18004    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18005    dynamic_linker='Win32 ld.exe'
18006    ;;
18007  esac
18008  # FIXME: first we should search . and the directory the executable is in
18009  shlibpath_var=PATH
18010  ;;
18011
18012darwin* | rhapsody*)
18013  dynamic_linker="$host_os dyld"
18014  version_type=darwin
18015  need_lib_prefix=no
18016  need_version=no
18017  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18018  soname_spec='$libname$release$major$shared_ext'
18019  shlibpath_overrides_runpath=yes
18020  shlibpath_var=DYLD_LIBRARY_PATH
18021  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18022
18023  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18024  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18025  ;;
18026
18027dgux*)
18028  version_type=linux # correct to gnu/linux during the next big refactor
18029  need_lib_prefix=no
18030  need_version=no
18031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032  soname_spec='$libname$release$shared_ext$major'
18033  shlibpath_var=LD_LIBRARY_PATH
18034  ;;
18035
18036freebsd* | dragonfly*)
18037  # DragonFly does not have aout.  When/if they implement a new
18038  # versioning mechanism, adjust this.
18039  if test -x /usr/bin/objformat; then
18040    objformat=`/usr/bin/objformat`
18041  else
18042    case $host_os in
18043    freebsd[23].*) objformat=aout ;;
18044    *) objformat=elf ;;
18045    esac
18046  fi
18047  version_type=freebsd-$objformat
18048  case $version_type in
18049    freebsd-elf*)
18050      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18051      soname_spec='$libname$release$shared_ext$major'
18052      need_version=no
18053      need_lib_prefix=no
18054      ;;
18055    freebsd-*)
18056      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18057      need_version=yes
18058      ;;
18059  esac
18060  shlibpath_var=LD_LIBRARY_PATH
18061  case $host_os in
18062  freebsd2.*)
18063    shlibpath_overrides_runpath=yes
18064    ;;
18065  freebsd3.[01]* | freebsdelf3.[01]*)
18066    shlibpath_overrides_runpath=yes
18067    hardcode_into_libs=yes
18068    ;;
18069  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18070  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18071    shlibpath_overrides_runpath=no
18072    hardcode_into_libs=yes
18073    ;;
18074  *) # from 4.6 on, and DragonFly
18075    shlibpath_overrides_runpath=yes
18076    hardcode_into_libs=yes
18077    ;;
18078  esac
18079  ;;
18080
18081haiku*)
18082  version_type=linux # correct to gnu/linux during the next big refactor
18083  need_lib_prefix=no
18084  need_version=no
18085  dynamic_linker="$host_os runtime_loader"
18086  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18087  soname_spec='$libname$release$shared_ext$major'
18088  shlibpath_var=LIBRARY_PATH
18089  shlibpath_overrides_runpath=no
18090  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18091  hardcode_into_libs=yes
18092  ;;
18093
18094hpux9* | hpux10* | hpux11*)
18095  # Give a soname corresponding to the major version so that dld.sl refuses to
18096  # link against other versions.
18097  version_type=sunos
18098  need_lib_prefix=no
18099  need_version=no
18100  case $host_cpu in
18101  ia64*)
18102    shrext_cmds='.so'
18103    hardcode_into_libs=yes
18104    dynamic_linker="$host_os dld.so"
18105    shlibpath_var=LD_LIBRARY_PATH
18106    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18107    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18108    soname_spec='$libname$release$shared_ext$major'
18109    if test 32 = "$HPUX_IA64_MODE"; then
18110      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18111      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18112    else
18113      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18114      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18115    fi
18116    ;;
18117  hppa*64*)
18118    shrext_cmds='.sl'
18119    hardcode_into_libs=yes
18120    dynamic_linker="$host_os dld.sl"
18121    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18122    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18123    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18124    soname_spec='$libname$release$shared_ext$major'
18125    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18126    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18127    ;;
18128  *)
18129    shrext_cmds='.sl'
18130    dynamic_linker="$host_os dld.sl"
18131    shlibpath_var=SHLIB_PATH
18132    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18133    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18134    soname_spec='$libname$release$shared_ext$major'
18135    ;;
18136  esac
18137  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18138  postinstall_cmds='chmod 555 $lib'
18139  # or fails outright, so override atomically:
18140  install_override_mode=555
18141  ;;
18142
18143interix[3-9]*)
18144  version_type=linux # correct to gnu/linux during the next big refactor
18145  need_lib_prefix=no
18146  need_version=no
18147  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18148  soname_spec='$libname$release$shared_ext$major'
18149  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18150  shlibpath_var=LD_LIBRARY_PATH
18151  shlibpath_overrides_runpath=no
18152  hardcode_into_libs=yes
18153  ;;
18154
18155irix5* | irix6* | nonstopux*)
18156  case $host_os in
18157    nonstopux*) version_type=nonstopux ;;
18158    *)
18159	if test yes = "$lt_cv_prog_gnu_ld"; then
18160		version_type=linux # correct to gnu/linux during the next big refactor
18161	else
18162		version_type=irix
18163	fi ;;
18164  esac
18165  need_lib_prefix=no
18166  need_version=no
18167  soname_spec='$libname$release$shared_ext$major'
18168  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18169  case $host_os in
18170  irix5* | nonstopux*)
18171    libsuff= shlibsuff=
18172    ;;
18173  *)
18174    case $LD in # libtool.m4 will add one of these switches to LD
18175    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18176      libsuff= shlibsuff= libmagic=32-bit;;
18177    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18178      libsuff=32 shlibsuff=N32 libmagic=N32;;
18179    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18180      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18181    *) libsuff= shlibsuff= libmagic=never-match;;
18182    esac
18183    ;;
18184  esac
18185  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18186  shlibpath_overrides_runpath=no
18187  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18188  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18189  hardcode_into_libs=yes
18190  ;;
18191
18192# No shared lib support for Linux oldld, aout, or coff.
18193linux*oldld* | linux*aout* | linux*coff*)
18194  dynamic_linker=no
18195  ;;
18196
18197linux*android*)
18198  version_type=none # Android doesn't support versioned libraries.
18199  need_lib_prefix=no
18200  need_version=no
18201  library_names_spec='$libname$release$shared_ext'
18202  soname_spec='$libname$release$shared_ext'
18203  finish_cmds=
18204  shlibpath_var=LD_LIBRARY_PATH
18205  shlibpath_overrides_runpath=yes
18206
18207  # This implies no fast_install, which is unacceptable.
18208  # Some rework will be needed to allow for fast_install
18209  # before this can be enabled.
18210  hardcode_into_libs=yes
18211
18212  dynamic_linker='Android linker'
18213  # Don't embed -rpath directories since the linker doesn't support them.
18214  hardcode_libdir_flag_spec='-L$libdir'
18215  ;;
18216
18217# This must be glibc/ELF.
18218linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18219  version_type=linux # correct to gnu/linux during the next big refactor
18220  need_lib_prefix=no
18221  need_version=no
18222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18223  soname_spec='$libname$release$shared_ext$major'
18224  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18225  shlibpath_var=LD_LIBRARY_PATH
18226  shlibpath_overrides_runpath=no
18227
18228  # Some binutils ld are patched to set DT_RUNPATH
18229  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18230  $as_echo_n "(cached) " >&6
18231else
18232  lt_cv_shlibpath_overrides_runpath=no
18233    save_LDFLAGS=$LDFLAGS
18234    save_libdir=$libdir
18235    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18236	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238/* end confdefs.h.  */
18239
18240int
18241main ()
18242{
18243
18244  ;
18245  return 0;
18246}
18247_ACEOF
18248if ac_fn_c_try_link "$LINENO"; then :
18249  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18250  lt_cv_shlibpath_overrides_runpath=yes
18251fi
18252fi
18253rm -f core conftest.err conftest.$ac_objext \
18254    conftest$ac_exeext conftest.$ac_ext
18255    LDFLAGS=$save_LDFLAGS
18256    libdir=$save_libdir
18257
18258fi
18259
18260  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18261
18262  # This implies no fast_install, which is unacceptable.
18263  # Some rework will be needed to allow for fast_install
18264  # before this can be enabled.
18265  hardcode_into_libs=yes
18266
18267  # Add ABI-specific directories to the system library path.
18268  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18269
18270  # Ideally, we could use ldconfig to report *all* directores which are
18271  # searched for libraries, however this is still not possible.  Aside from not
18272  # being certain /sbin/ldconfig is available, command
18273  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18274  # even though it is searched at run-time.  Try to do the best guess by
18275  # appending ld.so.conf contents (and includes) to the search path.
18276  if test -f /etc/ld.so.conf; then
18277    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18278    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18279  fi
18280
18281  # We used to test for /lib/ld.so.1 and disable shared libraries on
18282  # powerpc, because MkLinux only supported shared libraries with the
18283  # GNU dynamic linker.  Since this was broken with cross compilers,
18284  # most powerpc-linux boxes support dynamic linking these days and
18285  # people can always --disable-shared, the test was removed, and we
18286  # assume the GNU/Linux dynamic linker is in use.
18287  dynamic_linker='GNU/Linux ld.so'
18288  ;;
18289
18290netbsd*)
18291  version_type=sunos
18292  need_lib_prefix=no
18293  need_version=no
18294  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18295    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18296    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18297    dynamic_linker='NetBSD (a.out) ld.so'
18298  else
18299    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300    soname_spec='$libname$release$shared_ext$major'
18301    dynamic_linker='NetBSD ld.elf_so'
18302  fi
18303  shlibpath_var=LD_LIBRARY_PATH
18304  shlibpath_overrides_runpath=yes
18305  hardcode_into_libs=yes
18306  ;;
18307
18308newsos6)
18309  version_type=linux # correct to gnu/linux during the next big refactor
18310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18311  shlibpath_var=LD_LIBRARY_PATH
18312  shlibpath_overrides_runpath=yes
18313  ;;
18314
18315*nto* | *qnx*)
18316  version_type=qnx
18317  need_lib_prefix=no
18318  need_version=no
18319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18320  soname_spec='$libname$release$shared_ext$major'
18321  shlibpath_var=LD_LIBRARY_PATH
18322  shlibpath_overrides_runpath=no
18323  hardcode_into_libs=yes
18324  dynamic_linker='ldqnx.so'
18325  ;;
18326
18327openbsd* | bitrig*)
18328  version_type=sunos
18329  sys_lib_dlsearch_path_spec=/usr/lib
18330  need_lib_prefix=no
18331  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18332    need_version=no
18333  else
18334    need_version=yes
18335  fi
18336  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18337  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18338  shlibpath_var=LD_LIBRARY_PATH
18339  shlibpath_overrides_runpath=yes
18340  ;;
18341
18342os2*)
18343  libname_spec='$name'
18344  version_type=windows
18345  shrext_cmds=.dll
18346  need_version=no
18347  need_lib_prefix=no
18348  # OS/2 can only load a DLL with a base name of 8 characters or less.
18349  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18350    v=$($ECHO $release$versuffix | tr -d .-);
18351    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18352    $ECHO $n$v`$shared_ext'
18353  library_names_spec='${libname}_dll.$libext'
18354  dynamic_linker='OS/2 ld.exe'
18355  shlibpath_var=BEGINLIBPATH
18356  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18357  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18358  postinstall_cmds='base_file=`basename \$file`~
18359    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18360    dldir=$destdir/`dirname \$dlpath`~
18361    test -d \$dldir || mkdir -p \$dldir~
18362    $install_prog $dir/$dlname \$dldir/$dlname~
18363    chmod a+x \$dldir/$dlname~
18364    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18365      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18366    fi'
18367  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18368    dlpath=$dir/\$dldll~
18369    $RM \$dlpath'
18370  ;;
18371
18372osf3* | osf4* | osf5*)
18373  version_type=osf
18374  need_lib_prefix=no
18375  need_version=no
18376  soname_spec='$libname$release$shared_ext$major'
18377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18378  shlibpath_var=LD_LIBRARY_PATH
18379  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18380  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18381  ;;
18382
18383rdos*)
18384  dynamic_linker=no
18385  ;;
18386
18387solaris*)
18388  version_type=linux # correct to gnu/linux during the next big refactor
18389  need_lib_prefix=no
18390  need_version=no
18391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18392  soname_spec='$libname$release$shared_ext$major'
18393  shlibpath_var=LD_LIBRARY_PATH
18394  shlibpath_overrides_runpath=yes
18395  hardcode_into_libs=yes
18396  # ldd complains unless libraries are executable
18397  postinstall_cmds='chmod +x $lib'
18398  ;;
18399
18400sunos4*)
18401  version_type=sunos
18402  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18403  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18404  shlibpath_var=LD_LIBRARY_PATH
18405  shlibpath_overrides_runpath=yes
18406  if test yes = "$with_gnu_ld"; then
18407    need_lib_prefix=no
18408  fi
18409  need_version=yes
18410  ;;
18411
18412sysv4 | sysv4.3*)
18413  version_type=linux # correct to gnu/linux during the next big refactor
18414  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18415  soname_spec='$libname$release$shared_ext$major'
18416  shlibpath_var=LD_LIBRARY_PATH
18417  case $host_vendor in
18418    sni)
18419      shlibpath_overrides_runpath=no
18420      need_lib_prefix=no
18421      runpath_var=LD_RUN_PATH
18422      ;;
18423    siemens)
18424      need_lib_prefix=no
18425      ;;
18426    motorola)
18427      need_lib_prefix=no
18428      need_version=no
18429      shlibpath_overrides_runpath=no
18430      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18431      ;;
18432  esac
18433  ;;
18434
18435sysv4*MP*)
18436  if test -d /usr/nec; then
18437    version_type=linux # correct to gnu/linux during the next big refactor
18438    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18439    soname_spec='$libname$shared_ext.$major'
18440    shlibpath_var=LD_LIBRARY_PATH
18441  fi
18442  ;;
18443
18444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18445  version_type=sco
18446  need_lib_prefix=no
18447  need_version=no
18448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18449  soname_spec='$libname$release$shared_ext$major'
18450  shlibpath_var=LD_LIBRARY_PATH
18451  shlibpath_overrides_runpath=yes
18452  hardcode_into_libs=yes
18453  if test yes = "$with_gnu_ld"; then
18454    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18455  else
18456    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18457    case $host_os in
18458      sco3.2v5*)
18459        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18460	;;
18461    esac
18462  fi
18463  sys_lib_dlsearch_path_spec='/usr/lib'
18464  ;;
18465
18466tpf*)
18467  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18468  version_type=linux # correct to gnu/linux during the next big refactor
18469  need_lib_prefix=no
18470  need_version=no
18471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18472  shlibpath_var=LD_LIBRARY_PATH
18473  shlibpath_overrides_runpath=no
18474  hardcode_into_libs=yes
18475  ;;
18476
18477uts4*)
18478  version_type=linux # correct to gnu/linux during the next big refactor
18479  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18480  soname_spec='$libname$release$shared_ext$major'
18481  shlibpath_var=LD_LIBRARY_PATH
18482  ;;
18483
18484*)
18485  dynamic_linker=no
18486  ;;
18487esac
18488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18489$as_echo "$dynamic_linker" >&6; }
18490test no = "$dynamic_linker" && can_build_shared=no
18491
18492variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18493if test yes = "$GCC"; then
18494  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18495fi
18496
18497if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18498  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18499fi
18500
18501if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18502  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18503fi
18504
18505# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18506configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18507
18508# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18509func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18510
18511# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18512configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18611$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18612hardcode_action=
18613if test -n "$hardcode_libdir_flag_spec" ||
18614   test -n "$runpath_var" ||
18615   test yes = "$hardcode_automatic"; then
18616
18617  # We can hardcode non-existent directories.
18618  if test no != "$hardcode_direct" &&
18619     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18620     # have to relink, otherwise we might link with an installed library
18621     # when we should be linking with a yet-to-be-installed one
18622     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18623     test no != "$hardcode_minus_L"; then
18624    # Linking always hardcodes the temporary library directory.
18625    hardcode_action=relink
18626  else
18627    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18628    hardcode_action=immediate
18629  fi
18630else
18631  # We cannot hardcode anything, or else we can only hardcode existing
18632  # directories.
18633  hardcode_action=unsupported
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18636$as_echo "$hardcode_action" >&6; }
18637
18638if test relink = "$hardcode_action" ||
18639   test yes = "$inherit_rpath"; then
18640  # Fast installation is not supported
18641  enable_fast_install=no
18642elif test yes = "$shlibpath_overrides_runpath" ||
18643     test no = "$enable_shared"; then
18644  # Fast installation is not necessary
18645  enable_fast_install=needless
18646fi
18647
18648
18649
18650
18651
18652
18653  if test yes != "$enable_dlopen"; then
18654  enable_dlopen=unknown
18655  enable_dlopen_self=unknown
18656  enable_dlopen_self_static=unknown
18657else
18658  lt_cv_dlopen=no
18659  lt_cv_dlopen_libs=
18660
18661  case $host_os in
18662  beos*)
18663    lt_cv_dlopen=load_add_on
18664    lt_cv_dlopen_libs=
18665    lt_cv_dlopen_self=yes
18666    ;;
18667
18668  mingw* | pw32* | cegcc*)
18669    lt_cv_dlopen=LoadLibrary
18670    lt_cv_dlopen_libs=
18671    ;;
18672
18673  cygwin*)
18674    lt_cv_dlopen=dlopen
18675    lt_cv_dlopen_libs=
18676    ;;
18677
18678  darwin*)
18679    # if libdl is installed we need to link against it
18680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18681$as_echo_n "checking for dlopen in -ldl... " >&6; }
18682if ${ac_cv_lib_dl_dlopen+:} false; then :
18683  $as_echo_n "(cached) " >&6
18684else
18685  ac_check_lib_save_LIBS=$LIBS
18686LIBS="-ldl  $LIBS"
18687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688/* end confdefs.h.  */
18689
18690/* Override any GCC internal prototype to avoid an error.
18691   Use char because int might match the return type of a GCC
18692   builtin and then its argument prototype would still apply.  */
18693#ifdef __cplusplus
18694extern "C"
18695#endif
18696char dlopen ();
18697int
18698main ()
18699{
18700return dlopen ();
18701  ;
18702  return 0;
18703}
18704_ACEOF
18705if ac_fn_c_try_link "$LINENO"; then :
18706  ac_cv_lib_dl_dlopen=yes
18707else
18708  ac_cv_lib_dl_dlopen=no
18709fi
18710rm -f core conftest.err conftest.$ac_objext \
18711    conftest$ac_exeext conftest.$ac_ext
18712LIBS=$ac_check_lib_save_LIBS
18713fi
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18715$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18716if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18717  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18718else
18719
18720    lt_cv_dlopen=dyld
18721    lt_cv_dlopen_libs=
18722    lt_cv_dlopen_self=yes
18723
18724fi
18725
18726    ;;
18727
18728  tpf*)
18729    # Don't try to run any link tests for TPF.  We know it's impossible
18730    # because TPF is a cross-compiler, and we know how we open DSOs.
18731    lt_cv_dlopen=dlopen
18732    lt_cv_dlopen_libs=
18733    lt_cv_dlopen_self=no
18734    ;;
18735
18736  *)
18737    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18738if test "x$ac_cv_func_shl_load" = xyes; then :
18739  lt_cv_dlopen=shl_load
18740else
18741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18742$as_echo_n "checking for shl_load in -ldld... " >&6; }
18743if ${ac_cv_lib_dld_shl_load+:} false; then :
18744  $as_echo_n "(cached) " >&6
18745else
18746  ac_check_lib_save_LIBS=$LIBS
18747LIBS="-ldld  $LIBS"
18748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h.  */
18750
18751/* Override any GCC internal prototype to avoid an error.
18752   Use char because int might match the return type of a GCC
18753   builtin and then its argument prototype would still apply.  */
18754#ifdef __cplusplus
18755extern "C"
18756#endif
18757char shl_load ();
18758int
18759main ()
18760{
18761return shl_load ();
18762  ;
18763  return 0;
18764}
18765_ACEOF
18766if ac_fn_c_try_link "$LINENO"; then :
18767  ac_cv_lib_dld_shl_load=yes
18768else
18769  ac_cv_lib_dld_shl_load=no
18770fi
18771rm -f core conftest.err conftest.$ac_objext \
18772    conftest$ac_exeext conftest.$ac_ext
18773LIBS=$ac_check_lib_save_LIBS
18774fi
18775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18776$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18777if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18778  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18779else
18780  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18781if test "x$ac_cv_func_dlopen" = xyes; then :
18782  lt_cv_dlopen=dlopen
18783else
18784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18785$as_echo_n "checking for dlopen in -ldl... " >&6; }
18786if ${ac_cv_lib_dl_dlopen+:} false; then :
18787  $as_echo_n "(cached) " >&6
18788else
18789  ac_check_lib_save_LIBS=$LIBS
18790LIBS="-ldl  $LIBS"
18791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792/* end confdefs.h.  */
18793
18794/* Override any GCC internal prototype to avoid an error.
18795   Use char because int might match the return type of a GCC
18796   builtin and then its argument prototype would still apply.  */
18797#ifdef __cplusplus
18798extern "C"
18799#endif
18800char dlopen ();
18801int
18802main ()
18803{
18804return dlopen ();
18805  ;
18806  return 0;
18807}
18808_ACEOF
18809if ac_fn_c_try_link "$LINENO"; then :
18810  ac_cv_lib_dl_dlopen=yes
18811else
18812  ac_cv_lib_dl_dlopen=no
18813fi
18814rm -f core conftest.err conftest.$ac_objext \
18815    conftest$ac_exeext conftest.$ac_ext
18816LIBS=$ac_check_lib_save_LIBS
18817fi
18818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18820if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18821  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18822else
18823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18824$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18825if ${ac_cv_lib_svld_dlopen+:} false; then :
18826  $as_echo_n "(cached) " >&6
18827else
18828  ac_check_lib_save_LIBS=$LIBS
18829LIBS="-lsvld  $LIBS"
18830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831/* end confdefs.h.  */
18832
18833/* Override any GCC internal prototype to avoid an error.
18834   Use char because int might match the return type of a GCC
18835   builtin and then its argument prototype would still apply.  */
18836#ifdef __cplusplus
18837extern "C"
18838#endif
18839char dlopen ();
18840int
18841main ()
18842{
18843return dlopen ();
18844  ;
18845  return 0;
18846}
18847_ACEOF
18848if ac_fn_c_try_link "$LINENO"; then :
18849  ac_cv_lib_svld_dlopen=yes
18850else
18851  ac_cv_lib_svld_dlopen=no
18852fi
18853rm -f core conftest.err conftest.$ac_objext \
18854    conftest$ac_exeext conftest.$ac_ext
18855LIBS=$ac_check_lib_save_LIBS
18856fi
18857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18858$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18859if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18860  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18861else
18862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18863$as_echo_n "checking for dld_link in -ldld... " >&6; }
18864if ${ac_cv_lib_dld_dld_link+:} false; then :
18865  $as_echo_n "(cached) " >&6
18866else
18867  ac_check_lib_save_LIBS=$LIBS
18868LIBS="-ldld  $LIBS"
18869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870/* end confdefs.h.  */
18871
18872/* Override any GCC internal prototype to avoid an error.
18873   Use char because int might match the return type of a GCC
18874   builtin and then its argument prototype would still apply.  */
18875#ifdef __cplusplus
18876extern "C"
18877#endif
18878char dld_link ();
18879int
18880main ()
18881{
18882return dld_link ();
18883  ;
18884  return 0;
18885}
18886_ACEOF
18887if ac_fn_c_try_link "$LINENO"; then :
18888  ac_cv_lib_dld_dld_link=yes
18889else
18890  ac_cv_lib_dld_dld_link=no
18891fi
18892rm -f core conftest.err conftest.$ac_objext \
18893    conftest$ac_exeext conftest.$ac_ext
18894LIBS=$ac_check_lib_save_LIBS
18895fi
18896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18897$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18898if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18899  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18900fi
18901
18902
18903fi
18904
18905
18906fi
18907
18908
18909fi
18910
18911
18912fi
18913
18914
18915fi
18916
18917    ;;
18918  esac
18919
18920  if test no = "$lt_cv_dlopen"; then
18921    enable_dlopen=no
18922  else
18923    enable_dlopen=yes
18924  fi
18925
18926  case $lt_cv_dlopen in
18927  dlopen)
18928    save_CPPFLAGS=$CPPFLAGS
18929    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18930
18931    save_LDFLAGS=$LDFLAGS
18932    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18933
18934    save_LIBS=$LIBS
18935    LIBS="$lt_cv_dlopen_libs $LIBS"
18936
18937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18938$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18939if ${lt_cv_dlopen_self+:} false; then :
18940  $as_echo_n "(cached) " >&6
18941else
18942  	  if test yes = "$cross_compiling"; then :
18943  lt_cv_dlopen_self=cross
18944else
18945  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18946  lt_status=$lt_dlunknown
18947  cat > conftest.$ac_ext <<_LT_EOF
18948#line $LINENO "configure"
18949#include "confdefs.h"
18950
18951#if HAVE_DLFCN_H
18952#include <dlfcn.h>
18953#endif
18954
18955#include <stdio.h>
18956
18957#ifdef RTLD_GLOBAL
18958#  define LT_DLGLOBAL		RTLD_GLOBAL
18959#else
18960#  ifdef DL_GLOBAL
18961#    define LT_DLGLOBAL		DL_GLOBAL
18962#  else
18963#    define LT_DLGLOBAL		0
18964#  endif
18965#endif
18966
18967/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18968   find out it does not work in some platform. */
18969#ifndef LT_DLLAZY_OR_NOW
18970#  ifdef RTLD_LAZY
18971#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18972#  else
18973#    ifdef DL_LAZY
18974#      define LT_DLLAZY_OR_NOW		DL_LAZY
18975#    else
18976#      ifdef RTLD_NOW
18977#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18978#      else
18979#        ifdef DL_NOW
18980#          define LT_DLLAZY_OR_NOW	DL_NOW
18981#        else
18982#          define LT_DLLAZY_OR_NOW	0
18983#        endif
18984#      endif
18985#    endif
18986#  endif
18987#endif
18988
18989/* When -fvisibility=hidden is used, assume the code has been annotated
18990   correspondingly for the symbols needed.  */
18991#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18992int fnord () __attribute__((visibility("default")));
18993#endif
18994
18995int fnord () { return 42; }
18996int main ()
18997{
18998  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18999  int status = $lt_dlunknown;
19000
19001  if (self)
19002    {
19003      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19004      else
19005        {
19006	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19007          else puts (dlerror ());
19008	}
19009      /* dlclose (self); */
19010    }
19011  else
19012    puts (dlerror ());
19013
19014  return status;
19015}
19016_LT_EOF
19017  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19018  (eval $ac_link) 2>&5
19019  ac_status=$?
19020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19021  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19022    (./conftest; exit; ) >&5 2>/dev/null
19023    lt_status=$?
19024    case x$lt_status in
19025      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19026      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19027      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19028    esac
19029  else :
19030    # compilation failed
19031    lt_cv_dlopen_self=no
19032  fi
19033fi
19034rm -fr conftest*
19035
19036
19037fi
19038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19039$as_echo "$lt_cv_dlopen_self" >&6; }
19040
19041    if test yes = "$lt_cv_dlopen_self"; then
19042      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19044$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19045if ${lt_cv_dlopen_self_static+:} false; then :
19046  $as_echo_n "(cached) " >&6
19047else
19048  	  if test yes = "$cross_compiling"; then :
19049  lt_cv_dlopen_self_static=cross
19050else
19051  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19052  lt_status=$lt_dlunknown
19053  cat > conftest.$ac_ext <<_LT_EOF
19054#line $LINENO "configure"
19055#include "confdefs.h"
19056
19057#if HAVE_DLFCN_H
19058#include <dlfcn.h>
19059#endif
19060
19061#include <stdio.h>
19062
19063#ifdef RTLD_GLOBAL
19064#  define LT_DLGLOBAL		RTLD_GLOBAL
19065#else
19066#  ifdef DL_GLOBAL
19067#    define LT_DLGLOBAL		DL_GLOBAL
19068#  else
19069#    define LT_DLGLOBAL		0
19070#  endif
19071#endif
19072
19073/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19074   find out it does not work in some platform. */
19075#ifndef LT_DLLAZY_OR_NOW
19076#  ifdef RTLD_LAZY
19077#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19078#  else
19079#    ifdef DL_LAZY
19080#      define LT_DLLAZY_OR_NOW		DL_LAZY
19081#    else
19082#      ifdef RTLD_NOW
19083#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19084#      else
19085#        ifdef DL_NOW
19086#          define LT_DLLAZY_OR_NOW	DL_NOW
19087#        else
19088#          define LT_DLLAZY_OR_NOW	0
19089#        endif
19090#      endif
19091#    endif
19092#  endif
19093#endif
19094
19095/* When -fvisibility=hidden is used, assume the code has been annotated
19096   correspondingly for the symbols needed.  */
19097#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19098int fnord () __attribute__((visibility("default")));
19099#endif
19100
19101int fnord () { return 42; }
19102int main ()
19103{
19104  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19105  int status = $lt_dlunknown;
19106
19107  if (self)
19108    {
19109      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19110      else
19111        {
19112	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19113          else puts (dlerror ());
19114	}
19115      /* dlclose (self); */
19116    }
19117  else
19118    puts (dlerror ());
19119
19120  return status;
19121}
19122_LT_EOF
19123  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19124  (eval $ac_link) 2>&5
19125  ac_status=$?
19126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19128    (./conftest; exit; ) >&5 2>/dev/null
19129    lt_status=$?
19130    case x$lt_status in
19131      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19132      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19133      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19134    esac
19135  else :
19136    # compilation failed
19137    lt_cv_dlopen_self_static=no
19138  fi
19139fi
19140rm -fr conftest*
19141
19142
19143fi
19144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19145$as_echo "$lt_cv_dlopen_self_static" >&6; }
19146    fi
19147
19148    CPPFLAGS=$save_CPPFLAGS
19149    LDFLAGS=$save_LDFLAGS
19150    LIBS=$save_LIBS
19151    ;;
19152  esac
19153
19154  case $lt_cv_dlopen_self in
19155  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19156  *) enable_dlopen_self=unknown ;;
19157  esac
19158
19159  case $lt_cv_dlopen_self_static in
19160  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19161  *) enable_dlopen_self_static=unknown ;;
19162  esac
19163fi
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181striplib=
19182old_striplib=
19183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19184$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19185if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19186  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19187  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189$as_echo "yes" >&6; }
19190else
19191# FIXME - insert some real tests, host_os isn't really good enough
19192  case $host_os in
19193  darwin*)
19194    if test -n "$STRIP"; then
19195      striplib="$STRIP -x"
19196      old_striplib="$STRIP -S"
19197      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198$as_echo "yes" >&6; }
19199    else
19200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19201$as_echo "no" >&6; }
19202    fi
19203    ;;
19204  *)
19205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19206$as_echo "no" >&6; }
19207    ;;
19208  esac
19209fi
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222  # Report what library types will actually be built
19223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19224$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19226$as_echo "$can_build_shared" >&6; }
19227
19228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19229$as_echo_n "checking whether to build shared libraries... " >&6; }
19230  test no = "$can_build_shared" && enable_shared=no
19231
19232  # On AIX, shared libraries and static libraries use the same namespace, and
19233  # are all built from PIC.
19234  case $host_os in
19235  aix3*)
19236    test yes = "$enable_shared" && enable_static=no
19237    if test -n "$RANLIB"; then
19238      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19239      postinstall_cmds='$RANLIB $lib'
19240    fi
19241    ;;
19242
19243  aix[4-9]*)
19244    if test ia64 != "$host_cpu"; then
19245      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19246      yes,aix,yes) ;;			# shared object as lib.so file only
19247      yes,svr4,*) ;;			# shared object as lib.so archive member only
19248      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19249      esac
19250    fi
19251    ;;
19252  esac
19253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19254$as_echo "$enable_shared" >&6; }
19255
19256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19257$as_echo_n "checking whether to build static libraries... " >&6; }
19258  # Make sure either enable_shared or enable_static is yes.
19259  test yes = "$enable_shared" || enable_static=yes
19260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19261$as_echo "$enable_static" >&6; }
19262
19263
19264
19265
19266fi
19267ac_ext=c
19268ac_cpp='$CPP $CPPFLAGS'
19269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271ac_compiler_gnu=$ac_cv_c_compiler_gnu
19272
19273CC=$lt_save_CC
19274
19275      if test -n "$CXX" && ( test no != "$CXX" &&
19276    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
19277    (test g++ != "$CXX"))); then
19278  ac_ext=cpp
19279ac_cpp='$CXXCPP $CPPFLAGS'
19280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19284$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19285if test -z "$CXXCPP"; then
19286  if ${ac_cv_prog_CXXCPP+:} false; then :
19287  $as_echo_n "(cached) " >&6
19288else
19289      # Double quotes because CXXCPP needs to be expanded
19290    for CXXCPP in "$CXX -E" "/lib/cpp"
19291    do
19292      ac_preproc_ok=false
19293for ac_cxx_preproc_warn_flag in '' yes
19294do
19295  # Use a header file that comes with gcc, so configuring glibc
19296  # with a fresh cross-compiler works.
19297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19298  # <limits.h> exists even on freestanding compilers.
19299  # On the NeXT, cc -E runs the code through the compiler's parser,
19300  # not just through cpp. "Syntax error" is here to catch this case.
19301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h.  */
19303#ifdef __STDC__
19304# include <limits.h>
19305#else
19306# include <assert.h>
19307#endif
19308		     Syntax error
19309_ACEOF
19310if ac_fn_cxx_try_cpp "$LINENO"; then :
19311
19312else
19313  # Broken: fails on valid input.
19314continue
19315fi
19316rm -f conftest.err conftest.i conftest.$ac_ext
19317
19318  # OK, works on sane cases.  Now check whether nonexistent headers
19319  # can be detected and how.
19320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321/* end confdefs.h.  */
19322#include <ac_nonexistent.h>
19323_ACEOF
19324if ac_fn_cxx_try_cpp "$LINENO"; then :
19325  # Broken: success on invalid input.
19326continue
19327else
19328  # Passes both tests.
19329ac_preproc_ok=:
19330break
19331fi
19332rm -f conftest.err conftest.i conftest.$ac_ext
19333
19334done
19335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19336rm -f conftest.i conftest.err conftest.$ac_ext
19337if $ac_preproc_ok; then :
19338  break
19339fi
19340
19341    done
19342    ac_cv_prog_CXXCPP=$CXXCPP
19343
19344fi
19345  CXXCPP=$ac_cv_prog_CXXCPP
19346else
19347  ac_cv_prog_CXXCPP=$CXXCPP
19348fi
19349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19350$as_echo "$CXXCPP" >&6; }
19351ac_preproc_ok=false
19352for ac_cxx_preproc_warn_flag in '' yes
19353do
19354  # Use a header file that comes with gcc, so configuring glibc
19355  # with a fresh cross-compiler works.
19356  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19357  # <limits.h> exists even on freestanding compilers.
19358  # On the NeXT, cc -E runs the code through the compiler's parser,
19359  # not just through cpp. "Syntax error" is here to catch this case.
19360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361/* end confdefs.h.  */
19362#ifdef __STDC__
19363# include <limits.h>
19364#else
19365# include <assert.h>
19366#endif
19367		     Syntax error
19368_ACEOF
19369if ac_fn_cxx_try_cpp "$LINENO"; then :
19370
19371else
19372  # Broken: fails on valid input.
19373continue
19374fi
19375rm -f conftest.err conftest.i conftest.$ac_ext
19376
19377  # OK, works on sane cases.  Now check whether nonexistent headers
19378  # can be detected and how.
19379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380/* end confdefs.h.  */
19381#include <ac_nonexistent.h>
19382_ACEOF
19383if ac_fn_cxx_try_cpp "$LINENO"; then :
19384  # Broken: success on invalid input.
19385continue
19386else
19387  # Passes both tests.
19388ac_preproc_ok=:
19389break
19390fi
19391rm -f conftest.err conftest.i conftest.$ac_ext
19392
19393done
19394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19395rm -f conftest.i conftest.err conftest.$ac_ext
19396if $ac_preproc_ok; then :
19397
19398else
19399  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19402See \`config.log' for more details" "$LINENO" 5; }
19403fi
19404
19405ac_ext=c
19406ac_cpp='$CPP $CPPFLAGS'
19407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19409ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410
19411else
19412  _lt_caught_CXX_error=yes
19413fi
19414
19415ac_ext=cpp
19416ac_cpp='$CXXCPP $CPPFLAGS'
19417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19420
19421archive_cmds_need_lc_CXX=no
19422allow_undefined_flag_CXX=
19423always_export_symbols_CXX=no
19424archive_expsym_cmds_CXX=
19425compiler_needs_object_CXX=no
19426export_dynamic_flag_spec_CXX=
19427hardcode_direct_CXX=no
19428hardcode_direct_absolute_CXX=no
19429hardcode_libdir_flag_spec_CXX=
19430hardcode_libdir_separator_CXX=
19431hardcode_minus_L_CXX=no
19432hardcode_shlibpath_var_CXX=unsupported
19433hardcode_automatic_CXX=no
19434inherit_rpath_CXX=no
19435module_cmds_CXX=
19436module_expsym_cmds_CXX=
19437link_all_deplibs_CXX=unknown
19438old_archive_cmds_CXX=$old_archive_cmds
19439reload_flag_CXX=$reload_flag
19440reload_cmds_CXX=$reload_cmds
19441no_undefined_flag_CXX=
19442whole_archive_flag_spec_CXX=
19443enable_shared_with_static_runtimes_CXX=no
19444
19445# Source file extension for C++ test sources.
19446ac_ext=cpp
19447
19448# Object file extension for compiled C++ test sources.
19449objext=o
19450objext_CXX=$objext
19451
19452# No sense in running all these tests if we already determined that
19453# the CXX compiler isn't working.  Some variables (like enable_shared)
19454# are currently assumed to apply to all compilers on this platform,
19455# and will be corrupted by setting them based on a non-working compiler.
19456if test yes != "$_lt_caught_CXX_error"; then
19457  # Code to be used in simple compile tests
19458  lt_simple_compile_test_code="int some_variable = 0;"
19459
19460  # Code to be used in simple link tests
19461  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19462
19463  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19464
19465
19466
19467
19468
19469
19470# If no C compiler was specified, use CC.
19471LTCC=${LTCC-"$CC"}
19472
19473# If no C compiler flags were specified, use CFLAGS.
19474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19475
19476# Allow CC to be a program name with arguments.
19477compiler=$CC
19478
19479
19480  # save warnings/boilerplate of simple test code
19481  ac_outfile=conftest.$ac_objext
19482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19484_lt_compiler_boilerplate=`cat conftest.err`
19485$RM conftest*
19486
19487  ac_outfile=conftest.$ac_objext
19488echo "$lt_simple_link_test_code" >conftest.$ac_ext
19489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19490_lt_linker_boilerplate=`cat conftest.err`
19491$RM -r conftest*
19492
19493
19494  # Allow CC to be a program name with arguments.
19495  lt_save_CC=$CC
19496  lt_save_CFLAGS=$CFLAGS
19497  lt_save_LD=$LD
19498  lt_save_GCC=$GCC
19499  GCC=$GXX
19500  lt_save_with_gnu_ld=$with_gnu_ld
19501  lt_save_path_LD=$lt_cv_path_LD
19502  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19503    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19504  else
19505    $as_unset lt_cv_prog_gnu_ld
19506  fi
19507  if test -n "${lt_cv_path_LDCXX+set}"; then
19508    lt_cv_path_LD=$lt_cv_path_LDCXX
19509  else
19510    $as_unset lt_cv_path_LD
19511  fi
19512  test -z "${LDCXX+set}" || LD=$LDCXX
19513  CC=${CXX-"c++"}
19514  CFLAGS=$CXXFLAGS
19515  compiler=$CC
19516  compiler_CXX=$CC
19517  func_cc_basename $compiler
19518cc_basename=$func_cc_basename_result
19519
19520
19521  if test -n "$compiler"; then
19522    # We don't want -fno-exception when compiling C++ code, so set the
19523    # no_builtin_flag separately
19524    if test yes = "$GXX"; then
19525      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19526    else
19527      lt_prog_compiler_no_builtin_flag_CXX=
19528    fi
19529
19530    if test yes = "$GXX"; then
19531      # Set up default GNU C++ configuration
19532
19533
19534
19535# Check whether --with-gnu-ld was given.
19536if test "${with_gnu_ld+set}" = set; then :
19537  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19538else
19539  with_gnu_ld=no
19540fi
19541
19542ac_prog=ld
19543if test yes = "$GCC"; then
19544  # Check if gcc -print-prog-name=ld gives a path.
19545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19546$as_echo_n "checking for ld used by $CC... " >&6; }
19547  case $host in
19548  *-*-mingw*)
19549    # gcc leaves a trailing carriage return, which upsets mingw
19550    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19551  *)
19552    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19553  esac
19554  case $ac_prog in
19555    # Accept absolute paths.
19556    [\\/]* | ?:[\\/]*)
19557      re_direlt='/[^/][^/]*/\.\./'
19558      # Canonicalize the pathname of ld
19559      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19560      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19561	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19562      done
19563      test -z "$LD" && LD=$ac_prog
19564      ;;
19565  "")
19566    # If it fails, then pretend we aren't using GCC.
19567    ac_prog=ld
19568    ;;
19569  *)
19570    # If it is relative, then search for the first ld in PATH.
19571    with_gnu_ld=unknown
19572    ;;
19573  esac
19574elif test yes = "$with_gnu_ld"; then
19575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19576$as_echo_n "checking for GNU ld... " >&6; }
19577else
19578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19579$as_echo_n "checking for non-GNU ld... " >&6; }
19580fi
19581if ${lt_cv_path_LD+:} false; then :
19582  $as_echo_n "(cached) " >&6
19583else
19584  if test -z "$LD"; then
19585  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19586  for ac_dir in $PATH; do
19587    IFS=$lt_save_ifs
19588    test -z "$ac_dir" && ac_dir=.
19589    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19590      lt_cv_path_LD=$ac_dir/$ac_prog
19591      # Check to see if the program is GNU ld.  I'd rather use --version,
19592      # but apparently some variants of GNU ld only accept -v.
19593      # Break only if it was the GNU/non-GNU ld that we prefer.
19594      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19595      *GNU* | *'with BFD'*)
19596	test no != "$with_gnu_ld" && break
19597	;;
19598      *)
19599	test yes != "$with_gnu_ld" && break
19600	;;
19601      esac
19602    fi
19603  done
19604  IFS=$lt_save_ifs
19605else
19606  lt_cv_path_LD=$LD # Let the user override the test with a path.
19607fi
19608fi
19609
19610LD=$lt_cv_path_LD
19611if test -n "$LD"; then
19612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19613$as_echo "$LD" >&6; }
19614else
19615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616$as_echo "no" >&6; }
19617fi
19618test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19620$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19621if ${lt_cv_prog_gnu_ld+:} false; then :
19622  $as_echo_n "(cached) " >&6
19623else
19624  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19625case `$LD -v 2>&1 </dev/null` in
19626*GNU* | *'with BFD'*)
19627  lt_cv_prog_gnu_ld=yes
19628  ;;
19629*)
19630  lt_cv_prog_gnu_ld=no
19631  ;;
19632esac
19633fi
19634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19635$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19636with_gnu_ld=$lt_cv_prog_gnu_ld
19637
19638
19639
19640
19641
19642
19643
19644      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19645      # archiving commands below assume that GNU ld is being used.
19646      if test yes = "$with_gnu_ld"; then
19647        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19648        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19649
19650        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19651        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19652
19653        # If archive_cmds runs LD, not CC, wlarc should be empty
19654        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19655        #     investigate it a little bit more. (MM)
19656        wlarc='$wl'
19657
19658        # ancient GNU ld didn't support --whole-archive et. al.
19659        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19660	  $GREP 'no-whole-archive' > /dev/null; then
19661          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19662        else
19663          whole_archive_flag_spec_CXX=
19664        fi
19665      else
19666        with_gnu_ld=no
19667        wlarc=
19668
19669        # A generic and very simple default shared library creation
19670        # command for GNU C++ for the case where it uses the native
19671        # linker, instead of GNU ld.  If possible, this setting should
19672        # overridden to take advantage of the native linker features on
19673        # the platform it is being used on.
19674        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19675      fi
19676
19677      # Commands to make compiler produce verbose output that lists
19678      # what "hidden" libraries, object files and flags are used when
19679      # linking a shared library.
19680      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19681
19682    else
19683      GXX=no
19684      with_gnu_ld=no
19685      wlarc=
19686    fi
19687
19688    # PORTME: fill in a description of your system's C++ link characteristics
19689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19690$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19691    ld_shlibs_CXX=yes
19692    case $host_os in
19693      aix3*)
19694        # FIXME: insert proper C++ library support
19695        ld_shlibs_CXX=no
19696        ;;
19697      aix[4-9]*)
19698        if test ia64 = "$host_cpu"; then
19699          # On IA64, the linker does run time linking by default, so we don't
19700          # have to do anything special.
19701          aix_use_runtimelinking=no
19702          exp_sym_flag='-Bexport'
19703          no_entry_flag=
19704        else
19705          aix_use_runtimelinking=no
19706
19707          # Test if we are trying to use run time linking or normal
19708          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19709          # have runtime linking enabled, and use it for executables.
19710          # For shared libraries, we enable/disable runtime linking
19711          # depending on the kind of the shared library created -
19712          # when "with_aix_soname,aix_use_runtimelinking" is:
19713          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19714          # "aix,yes"  lib.so          shared, rtl:yes, for executables
19715          #            lib.a           static archive
19716          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
19717          #            lib.a(lib.so.V) shared, rtl:no,  for executables
19718          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19719          #            lib.a(lib.so.V) shared, rtl:no
19720          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19721          #            lib.a           static archive
19722          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19723	    for ld_flag in $LDFLAGS; do
19724	      case $ld_flag in
19725	      *-brtl*)
19726	        aix_use_runtimelinking=yes
19727	        break
19728	        ;;
19729	      esac
19730	    done
19731	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19732	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
19733	      # so we don't have lib.a shared libs to link our executables.
19734	      # We have to force runtime linking in this case.
19735	      aix_use_runtimelinking=yes
19736	      LDFLAGS="$LDFLAGS -Wl,-brtl"
19737	    fi
19738	    ;;
19739          esac
19740
19741          exp_sym_flag='-bexport'
19742          no_entry_flag='-bnoentry'
19743        fi
19744
19745        # When large executables or shared objects are built, AIX ld can
19746        # have problems creating the table of contents.  If linking a library
19747        # or program results in "error TOC overflow" add -mminimal-toc to
19748        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19749        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19750
19751        archive_cmds_CXX=''
19752        hardcode_direct_CXX=yes
19753        hardcode_direct_absolute_CXX=yes
19754        hardcode_libdir_separator_CXX=':'
19755        link_all_deplibs_CXX=yes
19756        file_list_spec_CXX='$wl-f,'
19757        case $with_aix_soname,$aix_use_runtimelinking in
19758        aix,*) ;;	# no import file
19759        svr4,* | *,yes) # use import file
19760          # The Import File defines what to hardcode.
19761          hardcode_direct_CXX=no
19762          hardcode_direct_absolute_CXX=no
19763          ;;
19764        esac
19765
19766        if test yes = "$GXX"; then
19767          case $host_os in aix4.[012]|aix4.[012].*)
19768          # We only want to do this on AIX 4.2 and lower, the check
19769          # below for broken collect2 doesn't work under 4.3+
19770	  collect2name=`$CC -print-prog-name=collect2`
19771	  if test -f "$collect2name" &&
19772	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19773	  then
19774	    # We have reworked collect2
19775	    :
19776	  else
19777	    # We have old collect2
19778	    hardcode_direct_CXX=unsupported
19779	    # It fails to find uninstalled libraries when the uninstalled
19780	    # path is not listed in the libpath.  Setting hardcode_minus_L
19781	    # to unsupported forces relinking
19782	    hardcode_minus_L_CXX=yes
19783	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19784	    hardcode_libdir_separator_CXX=
19785	  fi
19786          esac
19787          shared_flag='-shared'
19788	  if test yes = "$aix_use_runtimelinking"; then
19789	    shared_flag=$shared_flag' $wl-G'
19790	  fi
19791	  # Need to ensure runtime linking is disabled for the traditional
19792	  # shared library, or the linker may eventually find shared libraries
19793	  # /with/ Import File - we do not want to mix them.
19794	  shared_flag_aix='-shared'
19795	  shared_flag_svr4='-shared $wl-G'
19796        else
19797          # not using gcc
19798          if test ia64 = "$host_cpu"; then
19799	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19800	  # chokes on -Wl,-G. The following line is correct:
19801	  shared_flag='-G'
19802          else
19803	    if test yes = "$aix_use_runtimelinking"; then
19804	      shared_flag='$wl-G'
19805	    else
19806	      shared_flag='$wl-bM:SRE'
19807	    fi
19808	    shared_flag_aix='$wl-bM:SRE'
19809	    shared_flag_svr4='$wl-G'
19810          fi
19811        fi
19812
19813        export_dynamic_flag_spec_CXX='$wl-bexpall'
19814        # It seems that -bexpall does not export symbols beginning with
19815        # underscore (_), so it is better to generate a list of symbols to
19816	# export.
19817        always_export_symbols_CXX=yes
19818	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19819          # Warning - without using the other runtime loading flags (-brtl),
19820          # -berok will link without error, but may produce a broken library.
19821          # The "-G" linker flag allows undefined symbols.
19822          no_undefined_flag_CXX='-bernotok'
19823          # Determine the default libpath from the value encoded in an empty
19824          # executable.
19825          if test set = "${lt_cv_aix_libpath+set}"; then
19826  aix_libpath=$lt_cv_aix_libpath
19827else
19828  if ${lt_cv_aix_libpath__CXX+:} false; then :
19829  $as_echo_n "(cached) " >&6
19830else
19831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833
19834int
19835main ()
19836{
19837
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842if ac_fn_cxx_try_link "$LINENO"; then :
19843
19844  lt_aix_libpath_sed='
19845      /Import File Strings/,/^$/ {
19846	  /^0/ {
19847	      s/^0  *\([^ ]*\) *$/\1/
19848	      p
19849	  }
19850      }'
19851  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19852  # Check for a 64-bit object if we didn't find anything.
19853  if test -z "$lt_cv_aix_libpath__CXX"; then
19854    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19855  fi
19856fi
19857rm -f core conftest.err conftest.$ac_objext \
19858    conftest$ac_exeext conftest.$ac_ext
19859  if test -z "$lt_cv_aix_libpath__CXX"; then
19860    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19861  fi
19862
19863fi
19864
19865  aix_libpath=$lt_cv_aix_libpath__CXX
19866fi
19867
19868          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19869
19870          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
19871        else
19872          if test ia64 = "$host_cpu"; then
19873	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19874	    allow_undefined_flag_CXX="-z nodefs"
19875	    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"
19876          else
19877	    # Determine the default libpath from the value encoded in an
19878	    # empty executable.
19879	    if test set = "${lt_cv_aix_libpath+set}"; then
19880  aix_libpath=$lt_cv_aix_libpath
19881else
19882  if ${lt_cv_aix_libpath__CXX+:} false; then :
19883  $as_echo_n "(cached) " >&6
19884else
19885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886/* end confdefs.h.  */
19887
19888int
19889main ()
19890{
19891
19892  ;
19893  return 0;
19894}
19895_ACEOF
19896if ac_fn_cxx_try_link "$LINENO"; then :
19897
19898  lt_aix_libpath_sed='
19899      /Import File Strings/,/^$/ {
19900	  /^0/ {
19901	      s/^0  *\([^ ]*\) *$/\1/
19902	      p
19903	  }
19904      }'
19905  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19906  # Check for a 64-bit object if we didn't find anything.
19907  if test -z "$lt_cv_aix_libpath__CXX"; then
19908    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19909  fi
19910fi
19911rm -f core conftest.err conftest.$ac_objext \
19912    conftest$ac_exeext conftest.$ac_ext
19913  if test -z "$lt_cv_aix_libpath__CXX"; then
19914    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19915  fi
19916
19917fi
19918
19919  aix_libpath=$lt_cv_aix_libpath__CXX
19920fi
19921
19922	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19923	    # Warning - without using the other run time loading flags,
19924	    # -berok will link without error, but may produce a broken library.
19925	    no_undefined_flag_CXX=' $wl-bernotok'
19926	    allow_undefined_flag_CXX=' $wl-berok'
19927	    if test yes = "$with_gnu_ld"; then
19928	      # We only use this code for GNU lds that support --whole-archive.
19929	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19930	    else
19931	      # Exported symbols can be pulled into shared objects from archives
19932	      whole_archive_flag_spec_CXX='$convenience'
19933	    fi
19934	    archive_cmds_need_lc_CXX=yes
19935	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19936	    # -brtl affects multiple linker settings, -berok does not and is overridden later
19937	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19938	    if test svr4 != "$with_aix_soname"; then
19939	      # This is similar to how AIX traditionally builds its shared
19940	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19941	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19942	    fi
19943	    if test aix != "$with_aix_soname"; then
19944	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19945	    else
19946	      # used by -dlpreopen to get the symbols
19947	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19948	    fi
19949	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19950          fi
19951        fi
19952        ;;
19953
19954      beos*)
19955	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19956	  allow_undefined_flag_CXX=unsupported
19957	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19958	  # support --undefined.  This deserves some investigation.  FIXME
19959	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19960	else
19961	  ld_shlibs_CXX=no
19962	fi
19963	;;
19964
19965      chorus*)
19966        case $cc_basename in
19967          *)
19968	  # FIXME: insert proper C++ library support
19969	  ld_shlibs_CXX=no
19970	  ;;
19971        esac
19972        ;;
19973
19974      cygwin* | mingw* | pw32* | cegcc*)
19975	case $GXX,$cc_basename in
19976	,cl* | no,cl*)
19977	  # Native MSVC
19978	  # hardcode_libdir_flag_spec is actually meaningless, as there is
19979	  # no search path for DLLs.
19980	  hardcode_libdir_flag_spec_CXX=' '
19981	  allow_undefined_flag_CXX=unsupported
19982	  always_export_symbols_CXX=yes
19983	  file_list_spec_CXX='@'
19984	  # Tell ltmain to make .lib files, not .a files.
19985	  libext=lib
19986	  # Tell ltmain to make .dll files, not .so files.
19987	  shrext_cmds=.dll
19988	  # FIXME: Setting linknames here is a bad hack.
19989	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19990	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19991              cp "$export_symbols" "$output_objdir/$soname.def";
19992              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19993            else
19994              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19995            fi~
19996            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19997            linknames='
19998	  # The linker will not automatically build a static lib if we build a DLL.
19999	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
20000	  enable_shared_with_static_runtimes_CXX=yes
20001	  # Don't use ranlib
20002	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
20003	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
20004            lt_tool_outputfile="@TOOL_OUTPUT@"~
20005            case $lt_outputfile in
20006              *.exe|*.EXE) ;;
20007              *)
20008                lt_outputfile=$lt_outputfile.exe
20009                lt_tool_outputfile=$lt_tool_outputfile.exe
20010                ;;
20011            esac~
20012            func_to_tool_file "$lt_outputfile"~
20013            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20014              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20015              $RM "$lt_outputfile.manifest";
20016            fi'
20017	  ;;
20018	*)
20019	  # g++
20020	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20021	  # as there is no search path for DLLs.
20022	  hardcode_libdir_flag_spec_CXX='-L$libdir'
20023	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
20024	  allow_undefined_flag_CXX=unsupported
20025	  always_export_symbols_CXX=no
20026	  enable_shared_with_static_runtimes_CXX=yes
20027
20028	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20029	    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'
20030	    # If the export-symbols file already is a .def file, use it as
20031	    # is; otherwise, prepend EXPORTS...
20032	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20033              cp $export_symbols $output_objdir/$soname.def;
20034            else
20035              echo EXPORTS > $output_objdir/$soname.def;
20036              cat $export_symbols >> $output_objdir/$soname.def;
20037            fi~
20038            $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'
20039	  else
20040	    ld_shlibs_CXX=no
20041	  fi
20042	  ;;
20043	esac
20044	;;
20045      darwin* | rhapsody*)
20046
20047
20048  archive_cmds_need_lc_CXX=no
20049  hardcode_direct_CXX=no
20050  hardcode_automatic_CXX=yes
20051  hardcode_shlibpath_var_CXX=unsupported
20052  if test yes = "$lt_cv_ld_force_load"; then
20053    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
20054
20055  else
20056    whole_archive_flag_spec_CXX=''
20057  fi
20058  link_all_deplibs_CXX=yes
20059  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
20060  case $cc_basename in
20061     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20062     *) _lt_dar_can_shared=$GCC ;;
20063  esac
20064  if test yes = "$_lt_dar_can_shared"; then
20065    output_verbose_link_cmd=func_echo_all
20066    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"
20067    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20068    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"
20069    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"
20070       if test yes != "$lt_cv_apple_cc_single_mod"; then
20071      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"
20072      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"
20073    fi
20074
20075  else
20076  ld_shlibs_CXX=no
20077  fi
20078
20079	;;
20080
20081      os2*)
20082	hardcode_libdir_flag_spec_CXX='-L$libdir'
20083	hardcode_minus_L_CXX=yes
20084	allow_undefined_flag_CXX=unsupported
20085	shrext_cmds=.dll
20086	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20087	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20088	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20089	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20090	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20091	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20092	  emximp -o $lib $output_objdir/$libname.def'
20093	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20094	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20095	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20096	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20097	  prefix_cmds="$SED"~
20098	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
20099	    prefix_cmds="$prefix_cmds -e 1d";
20100	  fi~
20101	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20102	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20103	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20104	  emximp -o $lib $output_objdir/$libname.def'
20105	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20106	enable_shared_with_static_runtimes_CXX=yes
20107	;;
20108
20109      dgux*)
20110        case $cc_basename in
20111          ec++*)
20112	    # FIXME: insert proper C++ library support
20113	    ld_shlibs_CXX=no
20114	    ;;
20115          ghcx*)
20116	    # Green Hills C++ Compiler
20117	    # FIXME: insert proper C++ library support
20118	    ld_shlibs_CXX=no
20119	    ;;
20120          *)
20121	    # FIXME: insert proper C++ library support
20122	    ld_shlibs_CXX=no
20123	    ;;
20124        esac
20125        ;;
20126
20127      freebsd2.*)
20128        # C++ shared libraries reported to be fairly broken before
20129	# switch to ELF
20130        ld_shlibs_CXX=no
20131        ;;
20132
20133      freebsd-elf*)
20134        archive_cmds_need_lc_CXX=no
20135        ;;
20136
20137      freebsd* | dragonfly*)
20138        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20139        # conventions
20140        ld_shlibs_CXX=yes
20141        ;;
20142
20143      haiku*)
20144        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20145        link_all_deplibs_CXX=yes
20146        ;;
20147
20148      hpux9*)
20149        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20150        hardcode_libdir_separator_CXX=:
20151        export_dynamic_flag_spec_CXX='$wl-E'
20152        hardcode_direct_CXX=yes
20153        hardcode_minus_L_CXX=yes # Not in the search PATH,
20154				             # but as the default
20155				             # location of the library.
20156
20157        case $cc_basename in
20158          CC*)
20159            # FIXME: insert proper C++ library support
20160            ld_shlibs_CXX=no
20161            ;;
20162          aCC*)
20163            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20164            # Commands to make compiler produce verbose output that lists
20165            # what "hidden" libraries, object files and flags are used when
20166            # linking a shared library.
20167            #
20168            # There doesn't appear to be a way to prevent this compiler from
20169            # explicitly linking system object files so we need to strip them
20170            # from the output so that they don't get included in the library
20171            # dependencies.
20172            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20173            ;;
20174          *)
20175            if test yes = "$GXX"; then
20176              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
20177            else
20178              # FIXME: insert proper C++ library support
20179              ld_shlibs_CXX=no
20180            fi
20181            ;;
20182        esac
20183        ;;
20184
20185      hpux10*|hpux11*)
20186        if test no = "$with_gnu_ld"; then
20187	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20188	  hardcode_libdir_separator_CXX=:
20189
20190          case $host_cpu in
20191            hppa*64*|ia64*)
20192              ;;
20193            *)
20194	      export_dynamic_flag_spec_CXX='$wl-E'
20195              ;;
20196          esac
20197        fi
20198        case $host_cpu in
20199          hppa*64*|ia64*)
20200            hardcode_direct_CXX=no
20201            hardcode_shlibpath_var_CXX=no
20202            ;;
20203          *)
20204            hardcode_direct_CXX=yes
20205            hardcode_direct_absolute_CXX=yes
20206            hardcode_minus_L_CXX=yes # Not in the search PATH,
20207					         # but as the default
20208					         # location of the library.
20209            ;;
20210        esac
20211
20212        case $cc_basename in
20213          CC*)
20214	    # FIXME: insert proper C++ library support
20215	    ld_shlibs_CXX=no
20216	    ;;
20217          aCC*)
20218	    case $host_cpu in
20219	      hppa*64*)
20220	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20221	        ;;
20222	      ia64*)
20223	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20224	        ;;
20225	      *)
20226	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20227	        ;;
20228	    esac
20229	    # Commands to make compiler produce verbose output that lists
20230	    # what "hidden" libraries, object files and flags are used when
20231	    # linking a shared library.
20232	    #
20233	    # There doesn't appear to be a way to prevent this compiler from
20234	    # explicitly linking system object files so we need to strip them
20235	    # from the output so that they don't get included in the library
20236	    # dependencies.
20237	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20238	    ;;
20239          *)
20240	    if test yes = "$GXX"; then
20241	      if test no = "$with_gnu_ld"; then
20242	        case $host_cpu in
20243	          hppa*64*)
20244	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20245	            ;;
20246	          ia64*)
20247	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20248	            ;;
20249	          *)
20250	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20251	            ;;
20252	        esac
20253	      fi
20254	    else
20255	      # FIXME: insert proper C++ library support
20256	      ld_shlibs_CXX=no
20257	    fi
20258	    ;;
20259        esac
20260        ;;
20261
20262      interix[3-9]*)
20263	hardcode_direct_CXX=no
20264	hardcode_shlibpath_var_CXX=no
20265	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20266	export_dynamic_flag_spec_CXX='$wl-E'
20267	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20268	# Instead, shared libraries are loaded at an image base (0x10000000 by
20269	# default) and relocated if they conflict, which is a slow very memory
20270	# consuming and fragmenting process.  To avoid this, we pick a random,
20271	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20272	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20273	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'
20274	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'
20275	;;
20276      irix5* | irix6*)
20277        case $cc_basename in
20278          CC*)
20279	    # SGI C++
20280	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
20281
20282	    # Archives containing C++ object files must be created using
20283	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20284	    # necessary to make sure instantiated templates are included
20285	    # in the archive.
20286	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20287	    ;;
20288          *)
20289	    if test yes = "$GXX"; then
20290	      if test no = "$with_gnu_ld"; then
20291	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
20292	      else
20293	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
20294	      fi
20295	    fi
20296	    link_all_deplibs_CXX=yes
20297	    ;;
20298        esac
20299        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20300        hardcode_libdir_separator_CXX=:
20301        inherit_rpath_CXX=yes
20302        ;;
20303
20304      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20305        case $cc_basename in
20306          KCC*)
20307	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20308
20309	    # KCC will only create a shared library if the output file
20310	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20311	    # to its proper name (with version) after linking.
20312	    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'
20313	    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'
20314	    # Commands to make compiler produce verbose output that lists
20315	    # what "hidden" libraries, object files and flags are used when
20316	    # linking a shared library.
20317	    #
20318	    # There doesn't appear to be a way to prevent this compiler from
20319	    # explicitly linking system object files so we need to strip them
20320	    # from the output so that they don't get included in the library
20321	    # dependencies.
20322	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20323
20324	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20325	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20326
20327	    # Archives containing C++ object files must be created using
20328	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20329	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20330	    ;;
20331	  icpc* | ecpc* )
20332	    # Intel C++
20333	    with_gnu_ld=yes
20334	    # version 8.0 and above of icpc choke on multiply defined symbols
20335	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20336	    # earlier do not add the objects themselves.
20337	    case `$CC -V 2>&1` in
20338	      *"Version 7."*)
20339	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20340		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'
20341		;;
20342	      *)  # Version 8.0 or newer
20343	        tmp_idyn=
20344	        case $host_cpu in
20345		  ia64*) tmp_idyn=' -i_dynamic';;
20346		esac
20347	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20348		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'
20349		;;
20350	    esac
20351	    archive_cmds_need_lc_CXX=no
20352	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20353	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20354	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20355	    ;;
20356          pgCC* | pgcpp*)
20357            # Portland Group C++ compiler
20358	    case `$CC -V` in
20359	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20360	      prelink_cmds_CXX='tpldir=Template.dir~
20361               rm -rf $tpldir~
20362               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20363               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20364	      old_archive_cmds_CXX='tpldir=Template.dir~
20365                rm -rf $tpldir~
20366                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20367                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20368                $RANLIB $oldlib'
20369	      archive_cmds_CXX='tpldir=Template.dir~
20370                rm -rf $tpldir~
20371                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20372                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20373	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20374                rm -rf $tpldir~
20375                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20376                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20377	      ;;
20378	    *) # Version 6 and above use weak symbols
20379	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20380	      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'
20381	      ;;
20382	    esac
20383
20384	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20385	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20386	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
20387            ;;
20388	  cxx*)
20389	    # Compaq C++
20390	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20391	    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'
20392
20393	    runpath_var=LD_RUN_PATH
20394	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20395	    hardcode_libdir_separator_CXX=:
20396
20397	    # Commands to make compiler produce verbose output that lists
20398	    # what "hidden" libraries, object files and flags are used when
20399	    # linking a shared library.
20400	    #
20401	    # There doesn't appear to be a way to prevent this compiler from
20402	    # explicitly linking system object files so we need to strip them
20403	    # from the output so that they don't get included in the library
20404	    # dependencies.
20405	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
20406	    ;;
20407	  xl* | mpixl* | bgxl*)
20408	    # IBM XL 8.0 on PPC, with GNU ld
20409	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20410	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20411	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20412	    if test yes = "$supports_anon_versioning"; then
20413	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20414                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20415                echo "local: *; };" >> $output_objdir/$libname.ver~
20416                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20417	    fi
20418	    ;;
20419	  *)
20420	    case `$CC -V 2>&1 | sed 5q` in
20421	    *Sun\ C*)
20422	      # Sun C++ 5.9
20423	      no_undefined_flag_CXX=' -zdefs'
20424	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20425	      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'
20426	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20427	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
20428	      compiler_needs_object_CXX=yes
20429
20430	      # Not sure whether something based on
20431	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20432	      # would be better.
20433	      output_verbose_link_cmd='func_echo_all'
20434
20435	      # Archives containing C++ object files must be created using
20436	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20437	      # necessary to make sure instantiated templates are included
20438	      # in the archive.
20439	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20440	      ;;
20441	    esac
20442	    ;;
20443	esac
20444	;;
20445
20446      lynxos*)
20447        # FIXME: insert proper C++ library support
20448	ld_shlibs_CXX=no
20449	;;
20450
20451      m88k*)
20452        # FIXME: insert proper C++ library support
20453        ld_shlibs_CXX=no
20454	;;
20455
20456      mvs*)
20457        case $cc_basename in
20458          cxx*)
20459	    # FIXME: insert proper C++ library support
20460	    ld_shlibs_CXX=no
20461	    ;;
20462	  *)
20463	    # FIXME: insert proper C++ library support
20464	    ld_shlibs_CXX=no
20465	    ;;
20466	esac
20467	;;
20468
20469      netbsd*)
20470        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20471	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20472	  wlarc=
20473	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20474	  hardcode_direct_CXX=yes
20475	  hardcode_shlibpath_var_CXX=no
20476	fi
20477	# Workaround some broken pre-1.5 toolchains
20478	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20479	;;
20480
20481      *nto* | *qnx*)
20482        ld_shlibs_CXX=yes
20483	;;
20484
20485      openbsd* | bitrig*)
20486	if test -f /usr/libexec/ld.so; then
20487	  hardcode_direct_CXX=yes
20488	  hardcode_shlibpath_var_CXX=no
20489	  hardcode_direct_absolute_CXX=yes
20490	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20491	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20492	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20493	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20494	    export_dynamic_flag_spec_CXX='$wl-E'
20495	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20496	  fi
20497	  output_verbose_link_cmd=func_echo_all
20498	else
20499	  ld_shlibs_CXX=no
20500	fi
20501	;;
20502
20503      osf3* | osf4* | osf5*)
20504        case $cc_basename in
20505          KCC*)
20506	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20507
20508	    # KCC will only create a shared library if the output file
20509	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20510	    # to its proper name (with version) after linking.
20511	    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'
20512
20513	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20514	    hardcode_libdir_separator_CXX=:
20515
20516	    # Archives containing C++ object files must be created using
20517	    # the KAI C++ compiler.
20518	    case $host in
20519	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20520	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20521	    esac
20522	    ;;
20523          RCC*)
20524	    # Rational C++ 2.4.1
20525	    # FIXME: insert proper C++ library support
20526	    ld_shlibs_CXX=no
20527	    ;;
20528          cxx*)
20529	    case $host in
20530	      osf3*)
20531	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20532	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
20533	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20534		;;
20535	      *)
20536	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20537	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
20538	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20539                  echo "-hidden">> $lib.exp~
20540                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
20541                  $RM $lib.exp'
20542	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20543		;;
20544	    esac
20545
20546	    hardcode_libdir_separator_CXX=:
20547
20548	    # Commands to make compiler produce verbose output that lists
20549	    # what "hidden" libraries, object files and flags are used when
20550	    # linking a shared library.
20551	    #
20552	    # There doesn't appear to be a way to prevent this compiler from
20553	    # explicitly linking system object files so we need to strip them
20554	    # from the output so that they don't get included in the library
20555	    # dependencies.
20556	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
20557	    ;;
20558	  *)
20559	    if test yes,no = "$GXX,$with_gnu_ld"; then
20560	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20561	      case $host in
20562	        osf3*)
20563	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
20564		  ;;
20565	        *)
20566	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
20567		  ;;
20568	      esac
20569
20570	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20571	      hardcode_libdir_separator_CXX=:
20572
20573	      # Commands to make compiler produce verbose output that lists
20574	      # what "hidden" libraries, object files and flags are used when
20575	      # linking a shared library.
20576	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20577
20578	    else
20579	      # FIXME: insert proper C++ library support
20580	      ld_shlibs_CXX=no
20581	    fi
20582	    ;;
20583        esac
20584        ;;
20585
20586      psos*)
20587        # FIXME: insert proper C++ library support
20588        ld_shlibs_CXX=no
20589        ;;
20590
20591      sunos4*)
20592        case $cc_basename in
20593          CC*)
20594	    # Sun C++ 4.x
20595	    # FIXME: insert proper C++ library support
20596	    ld_shlibs_CXX=no
20597	    ;;
20598          lcc*)
20599	    # Lucid
20600	    # FIXME: insert proper C++ library support
20601	    ld_shlibs_CXX=no
20602	    ;;
20603          *)
20604	    # FIXME: insert proper C++ library support
20605	    ld_shlibs_CXX=no
20606	    ;;
20607        esac
20608        ;;
20609
20610      solaris*)
20611        case $cc_basename in
20612          CC* | sunCC*)
20613	    # Sun C++ 4.2, 5.x and Centerline C++
20614            archive_cmds_need_lc_CXX=yes
20615	    no_undefined_flag_CXX=' -zdefs'
20616	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20617	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20618              $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'
20619
20620	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20621	    hardcode_shlibpath_var_CXX=no
20622	    case $host_os in
20623	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20624	      *)
20625		# The compiler driver will combine and reorder linker options,
20626		# but understands '-z linker_flag'.
20627	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20628		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20629	        ;;
20630	    esac
20631	    link_all_deplibs_CXX=yes
20632
20633	    output_verbose_link_cmd='func_echo_all'
20634
20635	    # Archives containing C++ object files must be created using
20636	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20637	    # necessary to make sure instantiated templates are included
20638	    # in the archive.
20639	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20640	    ;;
20641          gcx*)
20642	    # Green Hills C++ Compiler
20643	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20644
20645	    # The C++ compiler must be used to create the archive.
20646	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20647	    ;;
20648          *)
20649	    # GNU C++ compiler with Solaris linker
20650	    if test yes,no = "$GXX,$with_gnu_ld"; then
20651	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
20652	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20653	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20654	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20655                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20656
20657	        # Commands to make compiler produce verbose output that lists
20658	        # what "hidden" libraries, object files and flags are used when
20659	        # linking a shared library.
20660	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20661	      else
20662	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
20663	        # platform.
20664	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20665	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20666                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20667
20668	        # Commands to make compiler produce verbose output that lists
20669	        # what "hidden" libraries, object files and flags are used when
20670	        # linking a shared library.
20671	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20672	      fi
20673
20674	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20675	      case $host_os in
20676		solaris2.[0-5] | solaris2.[0-5].*) ;;
20677		*)
20678		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20679		  ;;
20680	      esac
20681	    fi
20682	    ;;
20683        esac
20684        ;;
20685
20686    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20687      no_undefined_flag_CXX='$wl-z,text'
20688      archive_cmds_need_lc_CXX=no
20689      hardcode_shlibpath_var_CXX=no
20690      runpath_var='LD_RUN_PATH'
20691
20692      case $cc_basename in
20693        CC*)
20694	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20695	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20696	  ;;
20697	*)
20698	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20699	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20700	  ;;
20701      esac
20702      ;;
20703
20704      sysv5* | sco3.2v5* | sco5v6*)
20705	# Note: We CANNOT use -z defs as we might desire, because we do not
20706	# link with -lc, and that would cause any symbols used from libc to
20707	# always be unresolved, which means just about no library would
20708	# ever link correctly.  If we're not using GNU ld we use -z text
20709	# though, which does catch some bad symbols but isn't as heavy-handed
20710	# as -z defs.
20711	no_undefined_flag_CXX='$wl-z,text'
20712	allow_undefined_flag_CXX='$wl-z,nodefs'
20713	archive_cmds_need_lc_CXX=no
20714	hardcode_shlibpath_var_CXX=no
20715	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20716	hardcode_libdir_separator_CXX=':'
20717	link_all_deplibs_CXX=yes
20718	export_dynamic_flag_spec_CXX='$wl-Bexport'
20719	runpath_var='LD_RUN_PATH'
20720
20721	case $cc_basename in
20722          CC*)
20723	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20724	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20725	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20726              '"$old_archive_cmds_CXX"
20727	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20728              '"$reload_cmds_CXX"
20729	    ;;
20730	  *)
20731	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20732	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20733	    ;;
20734	esac
20735      ;;
20736
20737      tandem*)
20738        case $cc_basename in
20739          NCC*)
20740	    # NonStop-UX NCC 3.20
20741	    # FIXME: insert proper C++ library support
20742	    ld_shlibs_CXX=no
20743	    ;;
20744          *)
20745	    # FIXME: insert proper C++ library support
20746	    ld_shlibs_CXX=no
20747	    ;;
20748        esac
20749        ;;
20750
20751      vxworks*)
20752        # FIXME: insert proper C++ library support
20753        ld_shlibs_CXX=no
20754        ;;
20755
20756      *)
20757        # FIXME: insert proper C++ library support
20758        ld_shlibs_CXX=no
20759        ;;
20760    esac
20761
20762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20763$as_echo "$ld_shlibs_CXX" >&6; }
20764    test no = "$ld_shlibs_CXX" && can_build_shared=no
20765
20766    GCC_CXX=$GXX
20767    LD_CXX=$LD
20768
20769    ## CAVEAT EMPTOR:
20770    ## There is no encapsulation within the following macros, do not change
20771    ## the running order or otherwise move them around unless you know exactly
20772    ## what you are doing...
20773    # Dependencies to place before and after the object being linked:
20774predep_objects_CXX=
20775postdep_objects_CXX=
20776predeps_CXX=
20777postdeps_CXX=
20778compiler_lib_search_path_CXX=
20779
20780cat > conftest.$ac_ext <<_LT_EOF
20781class Foo
20782{
20783public:
20784  Foo (void) { a = 0; }
20785private:
20786  int a;
20787};
20788_LT_EOF
20789
20790
20791_lt_libdeps_save_CFLAGS=$CFLAGS
20792case "$CC $CFLAGS " in #(
20793*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20794*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20795*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20796esac
20797
20798if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20799  (eval $ac_compile) 2>&5
20800  ac_status=$?
20801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20802  test $ac_status = 0; }; then
20803  # Parse the compiler output and extract the necessary
20804  # objects, libraries and library flags.
20805
20806  # Sentinel used to keep track of whether or not we are before
20807  # the conftest object file.
20808  pre_test_object_deps_done=no
20809
20810  for p in `eval "$output_verbose_link_cmd"`; do
20811    case $prev$p in
20812
20813    -L* | -R* | -l*)
20814       # Some compilers place space between "-{L,R}" and the path.
20815       # Remove the space.
20816       if test x-L = "$p" ||
20817          test x-R = "$p"; then
20818	 prev=$p
20819	 continue
20820       fi
20821
20822       # Expand the sysroot to ease extracting the directories later.
20823       if test -z "$prev"; then
20824         case $p in
20825         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20826         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20827         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20828         esac
20829       fi
20830       case $p in
20831       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20832       esac
20833       if test no = "$pre_test_object_deps_done"; then
20834	 case $prev in
20835	 -L | -R)
20836	   # Internal compiler library paths should come after those
20837	   # provided the user.  The postdeps already come after the
20838	   # user supplied libs so there is no need to process them.
20839	   if test -z "$compiler_lib_search_path_CXX"; then
20840	     compiler_lib_search_path_CXX=$prev$p
20841	   else
20842	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20843	   fi
20844	   ;;
20845	 # The "-l" case would never come before the object being
20846	 # linked, so don't bother handling this case.
20847	 esac
20848       else
20849	 if test -z "$postdeps_CXX"; then
20850	   postdeps_CXX=$prev$p
20851	 else
20852	   postdeps_CXX="${postdeps_CXX} $prev$p"
20853	 fi
20854       fi
20855       prev=
20856       ;;
20857
20858    *.lto.$objext) ;; # Ignore GCC LTO objects
20859    *.$objext)
20860       # This assumes that the test object file only shows up
20861       # once in the compiler output.
20862       if test "$p" = "conftest.$objext"; then
20863	 pre_test_object_deps_done=yes
20864	 continue
20865       fi
20866
20867       if test no = "$pre_test_object_deps_done"; then
20868	 if test -z "$predep_objects_CXX"; then
20869	   predep_objects_CXX=$p
20870	 else
20871	   predep_objects_CXX="$predep_objects_CXX $p"
20872	 fi
20873       else
20874	 if test -z "$postdep_objects_CXX"; then
20875	   postdep_objects_CXX=$p
20876	 else
20877	   postdep_objects_CXX="$postdep_objects_CXX $p"
20878	 fi
20879       fi
20880       ;;
20881
20882    *) ;; # Ignore the rest.
20883
20884    esac
20885  done
20886
20887  # Clean up.
20888  rm -f a.out a.exe
20889else
20890  echo "libtool.m4: error: problem compiling CXX test program"
20891fi
20892
20893$RM -f confest.$objext
20894CFLAGS=$_lt_libdeps_save_CFLAGS
20895
20896# PORTME: override above test on systems where it is broken
20897case $host_os in
20898interix[3-9]*)
20899  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20900  # hack all around it, let's just trust "g++" to DTRT.
20901  predep_objects_CXX=
20902  postdep_objects_CXX=
20903  postdeps_CXX=
20904  ;;
20905esac
20906
20907
20908case " $postdeps_CXX " in
20909*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20910esac
20911 compiler_lib_search_dirs_CXX=
20912if test -n "${compiler_lib_search_path_CXX}"; then
20913 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20914fi
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946    lt_prog_compiler_wl_CXX=
20947lt_prog_compiler_pic_CXX=
20948lt_prog_compiler_static_CXX=
20949
20950
20951  # C++ specific cases for pic, static, wl, etc.
20952  if test yes = "$GXX"; then
20953    lt_prog_compiler_wl_CXX='-Wl,'
20954    lt_prog_compiler_static_CXX='-static'
20955
20956    case $host_os in
20957    aix*)
20958      # All AIX code is PIC.
20959      if test ia64 = "$host_cpu"; then
20960	# AIX 5 now supports IA64 processor
20961	lt_prog_compiler_static_CXX='-Bstatic'
20962      fi
20963      lt_prog_compiler_pic_CXX='-fPIC'
20964      ;;
20965
20966    amigaos*)
20967      case $host_cpu in
20968      powerpc)
20969            # see comment about AmigaOS4 .so support
20970            lt_prog_compiler_pic_CXX='-fPIC'
20971        ;;
20972      m68k)
20973            # FIXME: we need at least 68020 code to build shared libraries, but
20974            # adding the '-m68020' flag to GCC prevents building anything better,
20975            # like '-m68040'.
20976            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20977        ;;
20978      esac
20979      ;;
20980
20981    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20982      # PIC is the default for these OSes.
20983      ;;
20984    mingw* | cygwin* | os2* | pw32* | cegcc*)
20985      # This hack is so that the source file can tell whether it is being
20986      # built for inclusion in a dll (and should export symbols for example).
20987      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20988      # (--disable-auto-import) libraries
20989      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20990      case $host_os in
20991      os2*)
20992	lt_prog_compiler_static_CXX='$wl-static'
20993	;;
20994      esac
20995      ;;
20996    darwin* | rhapsody*)
20997      # PIC is the default on this platform
20998      # Common symbols not allowed in MH_DYLIB files
20999      lt_prog_compiler_pic_CXX='-fno-common'
21000      ;;
21001    *djgpp*)
21002      # DJGPP does not support shared libraries at all
21003      lt_prog_compiler_pic_CXX=
21004      ;;
21005    haiku*)
21006      # PIC is the default for Haiku.
21007      # The "-static" flag exists, but is broken.
21008      lt_prog_compiler_static_CXX=
21009      ;;
21010    interix[3-9]*)
21011      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21012      # Instead, we relocate shared libraries at runtime.
21013      ;;
21014    sysv4*MP*)
21015      if test -d /usr/nec; then
21016	lt_prog_compiler_pic_CXX=-Kconform_pic
21017      fi
21018      ;;
21019    hpux*)
21020      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21021      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21022      # sets the default TLS model and affects inlining.
21023      case $host_cpu in
21024      hppa*64*)
21025	;;
21026      *)
21027	lt_prog_compiler_pic_CXX='-fPIC'
21028	;;
21029      esac
21030      ;;
21031    *qnx* | *nto*)
21032      # QNX uses GNU C++, but need to define -shared option too, otherwise
21033      # it will coredump.
21034      lt_prog_compiler_pic_CXX='-fPIC -shared'
21035      ;;
21036    *)
21037      lt_prog_compiler_pic_CXX='-fPIC'
21038      ;;
21039    esac
21040  else
21041    case $host_os in
21042      aix[4-9]*)
21043	# All AIX code is PIC.
21044	if test ia64 = "$host_cpu"; then
21045	  # AIX 5 now supports IA64 processor
21046	  lt_prog_compiler_static_CXX='-Bstatic'
21047	else
21048	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21049	fi
21050	;;
21051      chorus*)
21052	case $cc_basename in
21053	cxch68*)
21054	  # Green Hills C++ Compiler
21055	  # _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"
21056	  ;;
21057	esac
21058	;;
21059      mingw* | cygwin* | os2* | pw32* | cegcc*)
21060	# This hack is so that the source file can tell whether it is being
21061	# built for inclusion in a dll (and should export symbols for example).
21062	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21063	;;
21064      dgux*)
21065	case $cc_basename in
21066	  ec++*)
21067	    lt_prog_compiler_pic_CXX='-KPIC'
21068	    ;;
21069	  ghcx*)
21070	    # Green Hills C++ Compiler
21071	    lt_prog_compiler_pic_CXX='-pic'
21072	    ;;
21073	  *)
21074	    ;;
21075	esac
21076	;;
21077      freebsd* | dragonfly*)
21078	# FreeBSD uses GNU C++
21079	;;
21080      hpux9* | hpux10* | hpux11*)
21081	case $cc_basename in
21082	  CC*)
21083	    lt_prog_compiler_wl_CXX='-Wl,'
21084	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21085	    if test ia64 != "$host_cpu"; then
21086	      lt_prog_compiler_pic_CXX='+Z'
21087	    fi
21088	    ;;
21089	  aCC*)
21090	    lt_prog_compiler_wl_CXX='-Wl,'
21091	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21092	    case $host_cpu in
21093	    hppa*64*|ia64*)
21094	      # +Z the default
21095	      ;;
21096	    *)
21097	      lt_prog_compiler_pic_CXX='+Z'
21098	      ;;
21099	    esac
21100	    ;;
21101	  *)
21102	    ;;
21103	esac
21104	;;
21105      interix*)
21106	# This is c89, which is MS Visual C++ (no shared libs)
21107	# Anyone wants to do a port?
21108	;;
21109      irix5* | irix6* | nonstopux*)
21110	case $cc_basename in
21111	  CC*)
21112	    lt_prog_compiler_wl_CXX='-Wl,'
21113	    lt_prog_compiler_static_CXX='-non_shared'
21114	    # CC pic flag -KPIC is the default.
21115	    ;;
21116	  *)
21117	    ;;
21118	esac
21119	;;
21120      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21121	case $cc_basename in
21122	  KCC*)
21123	    # KAI C++ Compiler
21124	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21125	    lt_prog_compiler_pic_CXX='-fPIC'
21126	    ;;
21127	  ecpc* )
21128	    # old Intel C++ for x86_64, which still supported -KPIC.
21129	    lt_prog_compiler_wl_CXX='-Wl,'
21130	    lt_prog_compiler_pic_CXX='-KPIC'
21131	    lt_prog_compiler_static_CXX='-static'
21132	    ;;
21133	  icpc* )
21134	    # Intel C++, used to be incompatible with GCC.
21135	    # ICC 10 doesn't accept -KPIC any more.
21136	    lt_prog_compiler_wl_CXX='-Wl,'
21137	    lt_prog_compiler_pic_CXX='-fPIC'
21138	    lt_prog_compiler_static_CXX='-static'
21139	    ;;
21140	  pgCC* | pgcpp*)
21141	    # Portland Group C++ compiler
21142	    lt_prog_compiler_wl_CXX='-Wl,'
21143	    lt_prog_compiler_pic_CXX='-fpic'
21144	    lt_prog_compiler_static_CXX='-Bstatic'
21145	    ;;
21146	  cxx*)
21147	    # Compaq C++
21148	    # Make sure the PIC flag is empty.  It appears that all Alpha
21149	    # Linux and Compaq Tru64 Unix objects are PIC.
21150	    lt_prog_compiler_pic_CXX=
21151	    lt_prog_compiler_static_CXX='-non_shared'
21152	    ;;
21153	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21154	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21155	    lt_prog_compiler_wl_CXX='-Wl,'
21156	    lt_prog_compiler_pic_CXX='-qpic'
21157	    lt_prog_compiler_static_CXX='-qstaticlink'
21158	    ;;
21159	  *)
21160	    case `$CC -V 2>&1 | sed 5q` in
21161	    *Sun\ C*)
21162	      # Sun C++ 5.9
21163	      lt_prog_compiler_pic_CXX='-KPIC'
21164	      lt_prog_compiler_static_CXX='-Bstatic'
21165	      lt_prog_compiler_wl_CXX='-Qoption ld '
21166	      ;;
21167	    esac
21168	    ;;
21169	esac
21170	;;
21171      lynxos*)
21172	;;
21173      m88k*)
21174	;;
21175      mvs*)
21176	case $cc_basename in
21177	  cxx*)
21178	    lt_prog_compiler_pic_CXX='-W c,exportall'
21179	    ;;
21180	  *)
21181	    ;;
21182	esac
21183	;;
21184      netbsd*)
21185	;;
21186      *qnx* | *nto*)
21187        # QNX uses GNU C++, but need to define -shared option too, otherwise
21188        # it will coredump.
21189        lt_prog_compiler_pic_CXX='-fPIC -shared'
21190        ;;
21191      osf3* | osf4* | osf5*)
21192	case $cc_basename in
21193	  KCC*)
21194	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21195	    ;;
21196	  RCC*)
21197	    # Rational C++ 2.4.1
21198	    lt_prog_compiler_pic_CXX='-pic'
21199	    ;;
21200	  cxx*)
21201	    # Digital/Compaq C++
21202	    lt_prog_compiler_wl_CXX='-Wl,'
21203	    # Make sure the PIC flag is empty.  It appears that all Alpha
21204	    # Linux and Compaq Tru64 Unix objects are PIC.
21205	    lt_prog_compiler_pic_CXX=
21206	    lt_prog_compiler_static_CXX='-non_shared'
21207	    ;;
21208	  *)
21209	    ;;
21210	esac
21211	;;
21212      psos*)
21213	;;
21214      solaris*)
21215	case $cc_basename in
21216	  CC* | sunCC*)
21217	    # Sun C++ 4.2, 5.x and Centerline C++
21218	    lt_prog_compiler_pic_CXX='-KPIC'
21219	    lt_prog_compiler_static_CXX='-Bstatic'
21220	    lt_prog_compiler_wl_CXX='-Qoption ld '
21221	    ;;
21222	  gcx*)
21223	    # Green Hills C++ Compiler
21224	    lt_prog_compiler_pic_CXX='-PIC'
21225	    ;;
21226	  *)
21227	    ;;
21228	esac
21229	;;
21230      sunos4*)
21231	case $cc_basename in
21232	  CC*)
21233	    # Sun C++ 4.x
21234	    lt_prog_compiler_pic_CXX='-pic'
21235	    lt_prog_compiler_static_CXX='-Bstatic'
21236	    ;;
21237	  lcc*)
21238	    # Lucid
21239	    lt_prog_compiler_pic_CXX='-pic'
21240	    ;;
21241	  *)
21242	    ;;
21243	esac
21244	;;
21245      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21246	case $cc_basename in
21247	  CC*)
21248	    lt_prog_compiler_wl_CXX='-Wl,'
21249	    lt_prog_compiler_pic_CXX='-KPIC'
21250	    lt_prog_compiler_static_CXX='-Bstatic'
21251	    ;;
21252	esac
21253	;;
21254      tandem*)
21255	case $cc_basename in
21256	  NCC*)
21257	    # NonStop-UX NCC 3.20
21258	    lt_prog_compiler_pic_CXX='-KPIC'
21259	    ;;
21260	  *)
21261	    ;;
21262	esac
21263	;;
21264      vxworks*)
21265	;;
21266      *)
21267	lt_prog_compiler_can_build_shared_CXX=no
21268	;;
21269    esac
21270  fi
21271
21272case $host_os in
21273  # For platforms that do not support PIC, -DPIC is meaningless:
21274  *djgpp*)
21275    lt_prog_compiler_pic_CXX=
21276    ;;
21277  *)
21278    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21279    ;;
21280esac
21281
21282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21283$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21284if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
21285  $as_echo_n "(cached) " >&6
21286else
21287  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
21288fi
21289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21290$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
21291lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21292
21293#
21294# Check to make sure the PIC flag actually works.
21295#
21296if test -n "$lt_prog_compiler_pic_CXX"; then
21297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21298$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21299if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21300  $as_echo_n "(cached) " >&6
21301else
21302  lt_cv_prog_compiler_pic_works_CXX=no
21303   ac_outfile=conftest.$ac_objext
21304   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21305   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
21306   # Insert the option either (1) after the last *FLAGS variable, or
21307   # (2) before a word containing "conftest.", or (3) at the end.
21308   # Note that $ac_compile itself does not contain backslashes and begins
21309   # with a dollar sign (not a hyphen), so the echo should work correctly.
21310   # The option is referenced via a variable to avoid confusing sed.
21311   lt_compile=`echo "$ac_compile" | $SED \
21312   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21313   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21314   -e 's:$: $lt_compiler_flag:'`
21315   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21316   (eval "$lt_compile" 2>conftest.err)
21317   ac_status=$?
21318   cat conftest.err >&5
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   if (exit $ac_status) && test -s "$ac_outfile"; then
21321     # The compiler can only warn and ignore the option if not recognized
21322     # So say no if there are warnings other than the usual output.
21323     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21324     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21325     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21326       lt_cv_prog_compiler_pic_works_CXX=yes
21327     fi
21328   fi
21329   $RM conftest*
21330
21331fi
21332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21333$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21334
21335if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
21336    case $lt_prog_compiler_pic_CXX in
21337     "" | " "*) ;;
21338     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21339     esac
21340else
21341    lt_prog_compiler_pic_CXX=
21342     lt_prog_compiler_can_build_shared_CXX=no
21343fi
21344
21345fi
21346
21347
21348
21349
21350
21351#
21352# Check to make sure the static flag actually works.
21353#
21354wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21356$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21357if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21358  $as_echo_n "(cached) " >&6
21359else
21360  lt_cv_prog_compiler_static_works_CXX=no
21361   save_LDFLAGS=$LDFLAGS
21362   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21363   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21364   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21365     # The linker can only warn and ignore the option if not recognized
21366     # So say no if there are warnings
21367     if test -s conftest.err; then
21368       # Append any errors to the config.log.
21369       cat conftest.err 1>&5
21370       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21371       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21372       if diff conftest.exp conftest.er2 >/dev/null; then
21373         lt_cv_prog_compiler_static_works_CXX=yes
21374       fi
21375     else
21376       lt_cv_prog_compiler_static_works_CXX=yes
21377     fi
21378   fi
21379   $RM -r conftest*
21380   LDFLAGS=$save_LDFLAGS
21381
21382fi
21383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21384$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21385
21386if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21387    :
21388else
21389    lt_prog_compiler_static_CXX=
21390fi
21391
21392
21393
21394
21395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21396$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21397if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21398  $as_echo_n "(cached) " >&6
21399else
21400  lt_cv_prog_compiler_c_o_CXX=no
21401   $RM -r conftest 2>/dev/null
21402   mkdir conftest
21403   cd conftest
21404   mkdir out
21405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21406
21407   lt_compiler_flag="-o out/conftest2.$ac_objext"
21408   # Insert the option either (1) after the last *FLAGS variable, or
21409   # (2) before a word containing "conftest.", or (3) at the end.
21410   # Note that $ac_compile itself does not contain backslashes and begins
21411   # with a dollar sign (not a hyphen), so the echo should work correctly.
21412   lt_compile=`echo "$ac_compile" | $SED \
21413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21415   -e 's:$: $lt_compiler_flag:'`
21416   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21417   (eval "$lt_compile" 2>out/conftest.err)
21418   ac_status=$?
21419   cat out/conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21422   then
21423     # The compiler can only warn and ignore the option if not recognized
21424     # So say no if there are warnings
21425     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21426     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21427     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21428       lt_cv_prog_compiler_c_o_CXX=yes
21429     fi
21430   fi
21431   chmod u+w . 2>&5
21432   $RM conftest*
21433   # SGI C++ compiler will create directory out/ii_files/ for
21434   # template instantiation
21435   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21436   $RM out/* && rmdir out
21437   cd ..
21438   $RM -r conftest
21439   $RM conftest*
21440
21441fi
21442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21443$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21444
21445
21446
21447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21449if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21450  $as_echo_n "(cached) " >&6
21451else
21452  lt_cv_prog_compiler_c_o_CXX=no
21453   $RM -r conftest 2>/dev/null
21454   mkdir conftest
21455   cd conftest
21456   mkdir out
21457   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21458
21459   lt_compiler_flag="-o out/conftest2.$ac_objext"
21460   # Insert the option either (1) after the last *FLAGS variable, or
21461   # (2) before a word containing "conftest.", or (3) at the end.
21462   # Note that $ac_compile itself does not contain backslashes and begins
21463   # with a dollar sign (not a hyphen), so the echo should work correctly.
21464   lt_compile=`echo "$ac_compile" | $SED \
21465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21467   -e 's:$: $lt_compiler_flag:'`
21468   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21469   (eval "$lt_compile" 2>out/conftest.err)
21470   ac_status=$?
21471   cat out/conftest.err >&5
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21474   then
21475     # The compiler can only warn and ignore the option if not recognized
21476     # So say no if there are warnings
21477     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21478     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21479     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21480       lt_cv_prog_compiler_c_o_CXX=yes
21481     fi
21482   fi
21483   chmod u+w . 2>&5
21484   $RM conftest*
21485   # SGI C++ compiler will create directory out/ii_files/ for
21486   # template instantiation
21487   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21488   $RM out/* && rmdir out
21489   cd ..
21490   $RM -r conftest
21491   $RM conftest*
21492
21493fi
21494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21495$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21496
21497
21498
21499
21500hard_links=nottested
21501if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21502  # do not overwrite the value of need_locks provided by the user
21503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21504$as_echo_n "checking if we can lock with hard links... " >&6; }
21505  hard_links=yes
21506  $RM conftest*
21507  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21508  touch conftest.a
21509  ln conftest.a conftest.b 2>&5 || hard_links=no
21510  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21512$as_echo "$hard_links" >&6; }
21513  if test no = "$hard_links"; then
21514    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21515$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21516    need_locks=warn
21517  fi
21518else
21519  need_locks=no
21520fi
21521
21522
21523
21524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21525$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21526
21527  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21528  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21529  case $host_os in
21530  aix[4-9]*)
21531    # If we're using GNU nm, then we don't want the "-C" option.
21532    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21533    # Without the "-l" option, or with the "-B" option, AIX nm treats
21534    # weak defined symbols like other global defined symbols, whereas
21535    # GNU nm marks them as "W".
21536    # While the 'weak' keyword is ignored in the Export File, we need
21537    # it in the Import File for the 'aix-soname' feature, so we have
21538    # to replace the "-B" option with "-P" for AIX nm.
21539    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21540      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
21541    else
21542      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
21543    fi
21544    ;;
21545  pw32*)
21546    export_symbols_cmds_CXX=$ltdll_cmds
21547    ;;
21548  cygwin* | mingw* | cegcc*)
21549    case $cc_basename in
21550    cl*)
21551      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21552      ;;
21553    *)
21554      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21555      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21556      ;;
21557    esac
21558    ;;
21559  *)
21560    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21561    ;;
21562  esac
21563
21564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21565$as_echo "$ld_shlibs_CXX" >&6; }
21566test no = "$ld_shlibs_CXX" && can_build_shared=no
21567
21568with_gnu_ld_CXX=$with_gnu_ld
21569
21570
21571
21572
21573
21574
21575#
21576# Do we need to explicitly link libc?
21577#
21578case "x$archive_cmds_need_lc_CXX" in
21579x|xyes)
21580  # Assume -lc should be added
21581  archive_cmds_need_lc_CXX=yes
21582
21583  if test yes,yes = "$GCC,$enable_shared"; then
21584    case $archive_cmds_CXX in
21585    *'~'*)
21586      # FIXME: we may have to deal with multi-command sequences.
21587      ;;
21588    '$CC '*)
21589      # Test whether the compiler implicitly links with -lc since on some
21590      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21591      # to ld, don't add -lc before -lgcc.
21592      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21593$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21594if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21595  $as_echo_n "(cached) " >&6
21596else
21597  $RM conftest*
21598	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21599
21600	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21601  (eval $ac_compile) 2>&5
21602  ac_status=$?
21603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21604  test $ac_status = 0; } 2>conftest.err; then
21605	  soname=conftest
21606	  lib=conftest
21607	  libobjs=conftest.$ac_objext
21608	  deplibs=
21609	  wl=$lt_prog_compiler_wl_CXX
21610	  pic_flag=$lt_prog_compiler_pic_CXX
21611	  compiler_flags=-v
21612	  linker_flags=-v
21613	  verstring=
21614	  output_objdir=.
21615	  libname=conftest
21616	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21617	  allow_undefined_flag_CXX=
21618	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21619  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21620  ac_status=$?
21621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21622  test $ac_status = 0; }
21623	  then
21624	    lt_cv_archive_cmds_need_lc_CXX=no
21625	  else
21626	    lt_cv_archive_cmds_need_lc_CXX=yes
21627	  fi
21628	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21629	else
21630	  cat conftest.err 1>&5
21631	fi
21632	$RM conftest*
21633
21634fi
21635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21636$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21637      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21638      ;;
21639    esac
21640  fi
21641  ;;
21642esac
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21706$as_echo_n "checking dynamic linker characteristics... " >&6; }
21707
21708library_names_spec=
21709libname_spec='lib$name'
21710soname_spec=
21711shrext_cmds=.so
21712postinstall_cmds=
21713postuninstall_cmds=
21714finish_cmds=
21715finish_eval=
21716shlibpath_var=
21717shlibpath_overrides_runpath=unknown
21718version_type=none
21719dynamic_linker="$host_os ld.so"
21720sys_lib_dlsearch_path_spec="/lib /usr/lib"
21721need_lib_prefix=unknown
21722hardcode_into_libs=no
21723
21724# when you set need_version to no, make sure it does not cause -set_version
21725# flags to be left without arguments
21726need_version=unknown
21727
21728
21729
21730case $host_os in
21731aix3*)
21732  version_type=linux # correct to gnu/linux during the next big refactor
21733  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21734  shlibpath_var=LIBPATH
21735
21736  # AIX 3 has no versioning support, so we append a major version to the name.
21737  soname_spec='$libname$release$shared_ext$major'
21738  ;;
21739
21740aix[4-9]*)
21741  version_type=linux # correct to gnu/linux during the next big refactor
21742  need_lib_prefix=no
21743  need_version=no
21744  hardcode_into_libs=yes
21745  if test ia64 = "$host_cpu"; then
21746    # AIX 5 supports IA64
21747    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21748    shlibpath_var=LD_LIBRARY_PATH
21749  else
21750    # With GCC up to 2.95.x, collect2 would create an import file
21751    # for dependence libraries.  The import file would start with
21752    # the line '#! .'.  This would cause the generated library to
21753    # depend on '.', always an invalid library.  This was fixed in
21754    # development snapshots of GCC prior to 3.0.
21755    case $host_os in
21756      aix4 | aix4.[01] | aix4.[01].*)
21757      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21758	   echo ' yes '
21759	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21760	:
21761      else
21762	can_build_shared=no
21763      fi
21764      ;;
21765    esac
21766    # Using Import Files as archive members, it is possible to support
21767    # filename-based versioning of shared library archives on AIX. While
21768    # this would work for both with and without runtime linking, it will
21769    # prevent static linking of such archives. So we do filename-based
21770    # shared library versioning with .so extension only, which is used
21771    # when both runtime linking and shared linking is enabled.
21772    # Unfortunately, runtime linking may impact performance, so we do
21773    # not want this to be the default eventually. Also, we use the
21774    # versioned .so libs for executables only if there is the -brtl
21775    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21776    # To allow for filename-based versioning support, we need to create
21777    # libNAME.so.V as an archive file, containing:
21778    # *) an Import File, referring to the versioned filename of the
21779    #    archive as well as the shared archive member, telling the
21780    #    bitwidth (32 or 64) of that shared object, and providing the
21781    #    list of exported symbols of that shared object, eventually
21782    #    decorated with the 'weak' keyword
21783    # *) the shared object with the F_LOADONLY flag set, to really avoid
21784    #    it being seen by the linker.
21785    # At run time we better use the real file rather than another symlink,
21786    # but for link time we create the symlink libNAME.so -> libNAME.so.V
21787
21788    case $with_aix_soname,$aix_use_runtimelinking in
21789    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21790    # soname into executable. Probably we can add versioning support to
21791    # collect2, so additional links can be useful in future.
21792    aix,yes) # traditional libtool
21793      dynamic_linker='AIX unversionable lib.so'
21794      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21795      # instead of lib<name>.a to let people know that these are not
21796      # typical AIX shared libraries.
21797      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21798      ;;
21799    aix,no) # traditional AIX only
21800      dynamic_linker='AIX lib.a(lib.so.V)'
21801      # We preserve .a as extension for shared libraries through AIX4.2
21802      # and later when we are not doing run time linking.
21803      library_names_spec='$libname$release.a $libname.a'
21804      soname_spec='$libname$release$shared_ext$major'
21805      ;;
21806    svr4,*) # full svr4 only
21807      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21808      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21809      # We do not specify a path in Import Files, so LIBPATH fires.
21810      shlibpath_overrides_runpath=yes
21811      ;;
21812    *,yes) # both, prefer svr4
21813      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21814      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21815      # unpreferred sharedlib libNAME.a needs extra handling
21816      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
21817      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
21818      # We do not specify a path in Import Files, so LIBPATH fires.
21819      shlibpath_overrides_runpath=yes
21820      ;;
21821    *,no) # both, prefer aix
21822      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21823      library_names_spec='$libname$release.a $libname.a'
21824      soname_spec='$libname$release$shared_ext$major'
21825      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21826      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
21827      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
21828      ;;
21829    esac
21830    shlibpath_var=LIBPATH
21831  fi
21832  ;;
21833
21834amigaos*)
21835  case $host_cpu in
21836  powerpc)
21837    # Since July 2007 AmigaOS4 officially supports .so libraries.
21838    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21839    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21840    ;;
21841  m68k)
21842    library_names_spec='$libname.ixlibrary $libname.a'
21843    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21844    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
21845    ;;
21846  esac
21847  ;;
21848
21849beos*)
21850  library_names_spec='$libname$shared_ext'
21851  dynamic_linker="$host_os ld.so"
21852  shlibpath_var=LIBRARY_PATH
21853  ;;
21854
21855bsdi[45]*)
21856  version_type=linux # correct to gnu/linux during the next big refactor
21857  need_version=no
21858  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21859  soname_spec='$libname$release$shared_ext$major'
21860  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21861  shlibpath_var=LD_LIBRARY_PATH
21862  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21863  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21864  # the default ld.so.conf also contains /usr/contrib/lib and
21865  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21866  # libtool to hard-code these into programs
21867  ;;
21868
21869cygwin* | mingw* | pw32* | cegcc*)
21870  version_type=windows
21871  shrext_cmds=.dll
21872  need_version=no
21873  need_lib_prefix=no
21874
21875  case $GCC,$cc_basename in
21876  yes,*)
21877    # gcc
21878    library_names_spec='$libname.dll.a'
21879    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21880    postinstall_cmds='base_file=`basename \$file`~
21881      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21882      dldir=$destdir/`dirname \$dlpath`~
21883      test -d \$dldir || mkdir -p \$dldir~
21884      $install_prog $dir/$dlname \$dldir/$dlname~
21885      chmod a+x \$dldir/$dlname~
21886      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21887        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21888      fi'
21889    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21890      dlpath=$dir/\$dldll~
21891       $RM \$dlpath'
21892    shlibpath_overrides_runpath=yes
21893
21894    case $host_os in
21895    cygwin*)
21896      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21897      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21898
21899      ;;
21900    mingw* | cegcc*)
21901      # MinGW DLLs use traditional 'lib' prefix
21902      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21903      ;;
21904    pw32*)
21905      # pw32 DLLs use 'pw' prefix rather than 'lib'
21906      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21907      ;;
21908    esac
21909    dynamic_linker='Win32 ld.exe'
21910    ;;
21911
21912  *,cl*)
21913    # Native MSVC
21914    libname_spec='$name'
21915    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21916    library_names_spec='$libname.dll.lib'
21917
21918    case $build_os in
21919    mingw*)
21920      sys_lib_search_path_spec=
21921      lt_save_ifs=$IFS
21922      IFS=';'
21923      for lt_path in $LIB
21924      do
21925        IFS=$lt_save_ifs
21926        # Let DOS variable expansion print the short 8.3 style file name.
21927        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21928        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21929      done
21930      IFS=$lt_save_ifs
21931      # Convert to MSYS style.
21932      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21933      ;;
21934    cygwin*)
21935      # Convert to unix form, then to dos form, then back to unix form
21936      # but this time dos style (no spaces!) so that the unix form looks
21937      # like /cygdrive/c/PROGRA~1:/cygdr...
21938      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21939      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21940      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21941      ;;
21942    *)
21943      sys_lib_search_path_spec=$LIB
21944      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21945        # It is most probably a Windows format PATH.
21946        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21947      else
21948        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21949      fi
21950      # FIXME: find the short name or the path components, as spaces are
21951      # common. (e.g. "Program Files" -> "PROGRA~1")
21952      ;;
21953    esac
21954
21955    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21956    postinstall_cmds='base_file=`basename \$file`~
21957      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21958      dldir=$destdir/`dirname \$dlpath`~
21959      test -d \$dldir || mkdir -p \$dldir~
21960      $install_prog $dir/$dlname \$dldir/$dlname'
21961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21962      dlpath=$dir/\$dldll~
21963       $RM \$dlpath'
21964    shlibpath_overrides_runpath=yes
21965    dynamic_linker='Win32 link.exe'
21966    ;;
21967
21968  *)
21969    # Assume MSVC wrapper
21970    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21971    dynamic_linker='Win32 ld.exe'
21972    ;;
21973  esac
21974  # FIXME: first we should search . and the directory the executable is in
21975  shlibpath_var=PATH
21976  ;;
21977
21978darwin* | rhapsody*)
21979  dynamic_linker="$host_os dyld"
21980  version_type=darwin
21981  need_lib_prefix=no
21982  need_version=no
21983  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21984  soname_spec='$libname$release$major$shared_ext'
21985  shlibpath_overrides_runpath=yes
21986  shlibpath_var=DYLD_LIBRARY_PATH
21987  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21988
21989  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21990  ;;
21991
21992dgux*)
21993  version_type=linux # correct to gnu/linux during the next big refactor
21994  need_lib_prefix=no
21995  need_version=no
21996  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21997  soname_spec='$libname$release$shared_ext$major'
21998  shlibpath_var=LD_LIBRARY_PATH
21999  ;;
22000
22001freebsd* | dragonfly*)
22002  # DragonFly does not have aout.  When/if they implement a new
22003  # versioning mechanism, adjust this.
22004  if test -x /usr/bin/objformat; then
22005    objformat=`/usr/bin/objformat`
22006  else
22007    case $host_os in
22008    freebsd[23].*) objformat=aout ;;
22009    *) objformat=elf ;;
22010    esac
22011  fi
22012  version_type=freebsd-$objformat
22013  case $version_type in
22014    freebsd-elf*)
22015      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22016      soname_spec='$libname$release$shared_ext$major'
22017      need_version=no
22018      need_lib_prefix=no
22019      ;;
22020    freebsd-*)
22021      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22022      need_version=yes
22023      ;;
22024  esac
22025  shlibpath_var=LD_LIBRARY_PATH
22026  case $host_os in
22027  freebsd2.*)
22028    shlibpath_overrides_runpath=yes
22029    ;;
22030  freebsd3.[01]* | freebsdelf3.[01]*)
22031    shlibpath_overrides_runpath=yes
22032    hardcode_into_libs=yes
22033    ;;
22034  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22035  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22036    shlibpath_overrides_runpath=no
22037    hardcode_into_libs=yes
22038    ;;
22039  *) # from 4.6 on, and DragonFly
22040    shlibpath_overrides_runpath=yes
22041    hardcode_into_libs=yes
22042    ;;
22043  esac
22044  ;;
22045
22046haiku*)
22047  version_type=linux # correct to gnu/linux during the next big refactor
22048  need_lib_prefix=no
22049  need_version=no
22050  dynamic_linker="$host_os runtime_loader"
22051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22052  soname_spec='$libname$release$shared_ext$major'
22053  shlibpath_var=LIBRARY_PATH
22054  shlibpath_overrides_runpath=no
22055  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22056  hardcode_into_libs=yes
22057  ;;
22058
22059hpux9* | hpux10* | hpux11*)
22060  # Give a soname corresponding to the major version so that dld.sl refuses to
22061  # link against other versions.
22062  version_type=sunos
22063  need_lib_prefix=no
22064  need_version=no
22065  case $host_cpu in
22066  ia64*)
22067    shrext_cmds='.so'
22068    hardcode_into_libs=yes
22069    dynamic_linker="$host_os dld.so"
22070    shlibpath_var=LD_LIBRARY_PATH
22071    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22072    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22073    soname_spec='$libname$release$shared_ext$major'
22074    if test 32 = "$HPUX_IA64_MODE"; then
22075      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22076      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22077    else
22078      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22079      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22080    fi
22081    ;;
22082  hppa*64*)
22083    shrext_cmds='.sl'
22084    hardcode_into_libs=yes
22085    dynamic_linker="$host_os dld.sl"
22086    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22087    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22088    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22089    soname_spec='$libname$release$shared_ext$major'
22090    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22091    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22092    ;;
22093  *)
22094    shrext_cmds='.sl'
22095    dynamic_linker="$host_os dld.sl"
22096    shlibpath_var=SHLIB_PATH
22097    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22098    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22099    soname_spec='$libname$release$shared_ext$major'
22100    ;;
22101  esac
22102  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22103  postinstall_cmds='chmod 555 $lib'
22104  # or fails outright, so override atomically:
22105  install_override_mode=555
22106  ;;
22107
22108interix[3-9]*)
22109  version_type=linux # correct to gnu/linux during the next big refactor
22110  need_lib_prefix=no
22111  need_version=no
22112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22113  soname_spec='$libname$release$shared_ext$major'
22114  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22115  shlibpath_var=LD_LIBRARY_PATH
22116  shlibpath_overrides_runpath=no
22117  hardcode_into_libs=yes
22118  ;;
22119
22120irix5* | irix6* | nonstopux*)
22121  case $host_os in
22122    nonstopux*) version_type=nonstopux ;;
22123    *)
22124	if test yes = "$lt_cv_prog_gnu_ld"; then
22125		version_type=linux # correct to gnu/linux during the next big refactor
22126	else
22127		version_type=irix
22128	fi ;;
22129  esac
22130  need_lib_prefix=no
22131  need_version=no
22132  soname_spec='$libname$release$shared_ext$major'
22133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22134  case $host_os in
22135  irix5* | nonstopux*)
22136    libsuff= shlibsuff=
22137    ;;
22138  *)
22139    case $LD in # libtool.m4 will add one of these switches to LD
22140    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22141      libsuff= shlibsuff= libmagic=32-bit;;
22142    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22143      libsuff=32 shlibsuff=N32 libmagic=N32;;
22144    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22145      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22146    *) libsuff= shlibsuff= libmagic=never-match;;
22147    esac
22148    ;;
22149  esac
22150  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22151  shlibpath_overrides_runpath=no
22152  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22153  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22154  hardcode_into_libs=yes
22155  ;;
22156
22157# No shared lib support for Linux oldld, aout, or coff.
22158linux*oldld* | linux*aout* | linux*coff*)
22159  dynamic_linker=no
22160  ;;
22161
22162linux*android*)
22163  version_type=none # Android doesn't support versioned libraries.
22164  need_lib_prefix=no
22165  need_version=no
22166  library_names_spec='$libname$release$shared_ext'
22167  soname_spec='$libname$release$shared_ext'
22168  finish_cmds=
22169  shlibpath_var=LD_LIBRARY_PATH
22170  shlibpath_overrides_runpath=yes
22171
22172  # This implies no fast_install, which is unacceptable.
22173  # Some rework will be needed to allow for fast_install
22174  # before this can be enabled.
22175  hardcode_into_libs=yes
22176
22177  dynamic_linker='Android linker'
22178  # Don't embed -rpath directories since the linker doesn't support them.
22179  hardcode_libdir_flag_spec_CXX='-L$libdir'
22180  ;;
22181
22182# This must be glibc/ELF.
22183linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22184  version_type=linux # correct to gnu/linux during the next big refactor
22185  need_lib_prefix=no
22186  need_version=no
22187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22188  soname_spec='$libname$release$shared_ext$major'
22189  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22190  shlibpath_var=LD_LIBRARY_PATH
22191  shlibpath_overrides_runpath=no
22192
22193  # Some binutils ld are patched to set DT_RUNPATH
22194  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22195  $as_echo_n "(cached) " >&6
22196else
22197  lt_cv_shlibpath_overrides_runpath=no
22198    save_LDFLAGS=$LDFLAGS
22199    save_libdir=$libdir
22200    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22201	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203/* end confdefs.h.  */
22204
22205int
22206main ()
22207{
22208
22209  ;
22210  return 0;
22211}
22212_ACEOF
22213if ac_fn_cxx_try_link "$LINENO"; then :
22214  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22215  lt_cv_shlibpath_overrides_runpath=yes
22216fi
22217fi
22218rm -f core conftest.err conftest.$ac_objext \
22219    conftest$ac_exeext conftest.$ac_ext
22220    LDFLAGS=$save_LDFLAGS
22221    libdir=$save_libdir
22222
22223fi
22224
22225  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22226
22227  # This implies no fast_install, which is unacceptable.
22228  # Some rework will be needed to allow for fast_install
22229  # before this can be enabled.
22230  hardcode_into_libs=yes
22231
22232  # Add ABI-specific directories to the system library path.
22233  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
22234
22235  # Ideally, we could use ldconfig to report *all* directores which are
22236  # searched for libraries, however this is still not possible.  Aside from not
22237  # being certain /sbin/ldconfig is available, command
22238  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22239  # even though it is searched at run-time.  Try to do the best guess by
22240  # appending ld.so.conf contents (and includes) to the search path.
22241  if test -f /etc/ld.so.conf; then
22242    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
22243    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
22244  fi
22245
22246  # We used to test for /lib/ld.so.1 and disable shared libraries on
22247  # powerpc, because MkLinux only supported shared libraries with the
22248  # GNU dynamic linker.  Since this was broken with cross compilers,
22249  # most powerpc-linux boxes support dynamic linking these days and
22250  # people can always --disable-shared, the test was removed, and we
22251  # assume the GNU/Linux dynamic linker is in use.
22252  dynamic_linker='GNU/Linux ld.so'
22253  ;;
22254
22255netbsd*)
22256  version_type=sunos
22257  need_lib_prefix=no
22258  need_version=no
22259  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22260    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22261    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22262    dynamic_linker='NetBSD (a.out) ld.so'
22263  else
22264    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22265    soname_spec='$libname$release$shared_ext$major'
22266    dynamic_linker='NetBSD ld.elf_so'
22267  fi
22268  shlibpath_var=LD_LIBRARY_PATH
22269  shlibpath_overrides_runpath=yes
22270  hardcode_into_libs=yes
22271  ;;
22272
22273newsos6)
22274  version_type=linux # correct to gnu/linux during the next big refactor
22275  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22276  shlibpath_var=LD_LIBRARY_PATH
22277  shlibpath_overrides_runpath=yes
22278  ;;
22279
22280*nto* | *qnx*)
22281  version_type=qnx
22282  need_lib_prefix=no
22283  need_version=no
22284  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22285  soname_spec='$libname$release$shared_ext$major'
22286  shlibpath_var=LD_LIBRARY_PATH
22287  shlibpath_overrides_runpath=no
22288  hardcode_into_libs=yes
22289  dynamic_linker='ldqnx.so'
22290  ;;
22291
22292openbsd* | bitrig*)
22293  version_type=sunos
22294  sys_lib_dlsearch_path_spec=/usr/lib
22295  need_lib_prefix=no
22296  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22297    need_version=no
22298  else
22299    need_version=yes
22300  fi
22301  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22302  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22303  shlibpath_var=LD_LIBRARY_PATH
22304  shlibpath_overrides_runpath=yes
22305  ;;
22306
22307os2*)
22308  libname_spec='$name'
22309  version_type=windows
22310  shrext_cmds=.dll
22311  need_version=no
22312  need_lib_prefix=no
22313  # OS/2 can only load a DLL with a base name of 8 characters or less.
22314  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22315    v=$($ECHO $release$versuffix | tr -d .-);
22316    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22317    $ECHO $n$v`$shared_ext'
22318  library_names_spec='${libname}_dll.$libext'
22319  dynamic_linker='OS/2 ld.exe'
22320  shlibpath_var=BEGINLIBPATH
22321  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22322  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22323  postinstall_cmds='base_file=`basename \$file`~
22324    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22325    dldir=$destdir/`dirname \$dlpath`~
22326    test -d \$dldir || mkdir -p \$dldir~
22327    $install_prog $dir/$dlname \$dldir/$dlname~
22328    chmod a+x \$dldir/$dlname~
22329    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22330      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22331    fi'
22332  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22333    dlpath=$dir/\$dldll~
22334    $RM \$dlpath'
22335  ;;
22336
22337osf3* | osf4* | osf5*)
22338  version_type=osf
22339  need_lib_prefix=no
22340  need_version=no
22341  soname_spec='$libname$release$shared_ext$major'
22342  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22343  shlibpath_var=LD_LIBRARY_PATH
22344  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22345  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22346  ;;
22347
22348rdos*)
22349  dynamic_linker=no
22350  ;;
22351
22352solaris*)
22353  version_type=linux # correct to gnu/linux during the next big refactor
22354  need_lib_prefix=no
22355  need_version=no
22356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22357  soname_spec='$libname$release$shared_ext$major'
22358  shlibpath_var=LD_LIBRARY_PATH
22359  shlibpath_overrides_runpath=yes
22360  hardcode_into_libs=yes
22361  # ldd complains unless libraries are executable
22362  postinstall_cmds='chmod +x $lib'
22363  ;;
22364
22365sunos4*)
22366  version_type=sunos
22367  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22368  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22369  shlibpath_var=LD_LIBRARY_PATH
22370  shlibpath_overrides_runpath=yes
22371  if test yes = "$with_gnu_ld"; then
22372    need_lib_prefix=no
22373  fi
22374  need_version=yes
22375  ;;
22376
22377sysv4 | sysv4.3*)
22378  version_type=linux # correct to gnu/linux during the next big refactor
22379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22380  soname_spec='$libname$release$shared_ext$major'
22381  shlibpath_var=LD_LIBRARY_PATH
22382  case $host_vendor in
22383    sni)
22384      shlibpath_overrides_runpath=no
22385      need_lib_prefix=no
22386      runpath_var=LD_RUN_PATH
22387      ;;
22388    siemens)
22389      need_lib_prefix=no
22390      ;;
22391    motorola)
22392      need_lib_prefix=no
22393      need_version=no
22394      shlibpath_overrides_runpath=no
22395      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22396      ;;
22397  esac
22398  ;;
22399
22400sysv4*MP*)
22401  if test -d /usr/nec; then
22402    version_type=linux # correct to gnu/linux during the next big refactor
22403    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22404    soname_spec='$libname$shared_ext.$major'
22405    shlibpath_var=LD_LIBRARY_PATH
22406  fi
22407  ;;
22408
22409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22410  version_type=sco
22411  need_lib_prefix=no
22412  need_version=no
22413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22414  soname_spec='$libname$release$shared_ext$major'
22415  shlibpath_var=LD_LIBRARY_PATH
22416  shlibpath_overrides_runpath=yes
22417  hardcode_into_libs=yes
22418  if test yes = "$with_gnu_ld"; then
22419    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22420  else
22421    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22422    case $host_os in
22423      sco3.2v5*)
22424        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22425	;;
22426    esac
22427  fi
22428  sys_lib_dlsearch_path_spec='/usr/lib'
22429  ;;
22430
22431tpf*)
22432  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22433  version_type=linux # correct to gnu/linux during the next big refactor
22434  need_lib_prefix=no
22435  need_version=no
22436  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22437  shlibpath_var=LD_LIBRARY_PATH
22438  shlibpath_overrides_runpath=no
22439  hardcode_into_libs=yes
22440  ;;
22441
22442uts4*)
22443  version_type=linux # correct to gnu/linux during the next big refactor
22444  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22445  soname_spec='$libname$release$shared_ext$major'
22446  shlibpath_var=LD_LIBRARY_PATH
22447  ;;
22448
22449*)
22450  dynamic_linker=no
22451  ;;
22452esac
22453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22454$as_echo "$dynamic_linker" >&6; }
22455test no = "$dynamic_linker" && can_build_shared=no
22456
22457variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22458if test yes = "$GCC"; then
22459  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22460fi
22461
22462if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22463  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22464fi
22465
22466if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22467  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22468fi
22469
22470# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22471configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22472
22473# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22474func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22475
22476# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22477configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22519$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22520hardcode_action_CXX=
22521if test -n "$hardcode_libdir_flag_spec_CXX" ||
22522   test -n "$runpath_var_CXX" ||
22523   test yes = "$hardcode_automatic_CXX"; then
22524
22525  # We can hardcode non-existent directories.
22526  if test no != "$hardcode_direct_CXX" &&
22527     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22528     # have to relink, otherwise we might link with an installed library
22529     # when we should be linking with a yet-to-be-installed one
22530     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22531     test no != "$hardcode_minus_L_CXX"; then
22532    # Linking always hardcodes the temporary library directory.
22533    hardcode_action_CXX=relink
22534  else
22535    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22536    hardcode_action_CXX=immediate
22537  fi
22538else
22539  # We cannot hardcode anything, or else we can only hardcode existing
22540  # directories.
22541  hardcode_action_CXX=unsupported
22542fi
22543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22544$as_echo "$hardcode_action_CXX" >&6; }
22545
22546if test relink = "$hardcode_action_CXX" ||
22547   test yes = "$inherit_rpath_CXX"; then
22548  # Fast installation is not supported
22549  enable_fast_install=no
22550elif test yes = "$shlibpath_overrides_runpath" ||
22551     test no = "$enable_shared"; then
22552  # Fast installation is not necessary
22553  enable_fast_install=needless
22554fi
22555
22556
22557
22558
22559
22560
22561
22562  fi # test -n "$compiler"
22563
22564  CC=$lt_save_CC
22565  CFLAGS=$lt_save_CFLAGS
22566  LDCXX=$LD
22567  LD=$lt_save_LD
22568  GCC=$lt_save_GCC
22569  with_gnu_ld=$lt_save_with_gnu_ld
22570  lt_cv_path_LDCXX=$lt_cv_path_LD
22571  lt_cv_path_LD=$lt_save_path_LD
22572  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22573  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22574fi # test yes != "$_lt_caught_CXX_error"
22575
22576ac_ext=c
22577ac_cpp='$CPP $CPPFLAGS'
22578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22580ac_compiler_gnu=$ac_cv_c_compiler_gnu
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596        ac_config_commands="$ac_config_commands libtool"
22597
22598
22599
22600
22601# Only expand once:
22602
22603
22604
22605
22606
22607# Check to see if building shared libraries
22608libtool_build_shared_libs='no'
22609if test "$enable_shared" = 'yes'; then
22610    libtool_build_shared_libs='yes'
22611fi
22612
22613# Check to see if building static libraries
22614libtool_build_static_libs='no'
22615if test "$enable_static" = 'yes'; then
22616    libtool_build_static_libs='yes'
22617fi
22618
22619 if test "${libtool_build_shared_libs}" = 'yes'; then
22620  WITH_SHARED_LIBS_TRUE=
22621  WITH_SHARED_LIBS_FALSE='#'
22622else
22623  WITH_SHARED_LIBS_TRUE='#'
22624  WITH_SHARED_LIBS_FALSE=
22625fi
22626
22627#
22628# Enable support for building loadable modules
22629#
22630build_modules='no'
22631
22632# Check whether --with-modules was given.
22633if test "${with_modules+set}" = set; then :
22634  withval=$with_modules; with_modules=$withval
22635else
22636  with_modules='no'
22637fi
22638
22639
22640# Only allow building loadable modules if we are building shared libraries
22641if test "$with_modules" != 'no' ; then
22642    if test "$libtool_build_shared_libs" = 'no'; then
22643        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
22644$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
22645    build_modules='no'
22646  else
22647    build_modules='yes'
22648  fi
22649fi
22650if test "$build_modules" != 'no' ; then
22651
22652$as_echo "#define BUILD_MODULES 1" >>confdefs.h
22653
22654    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
22655fi
22656 if test "$build_modules" != 'no'; then
22657  WITH_MODULES_TRUE=
22658  WITH_MODULES_FALSE='#'
22659else
22660  WITH_MODULES_TRUE='#'
22661  WITH_MODULES_FALSE=
22662fi
22663
22664
22665# Enable build using delegate libraries built in subdirectories rather than installed
22666# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
22667# Check whether --enable-delegate-build was given.
22668if test "${enable_delegate_build+set}" = set; then :
22669  enableval=$enable_delegate_build; enable_delegate_build=$enableval
22670else
22671  enable_delegate_build='no'
22672fi
22673
22674
22675# Check whether --enable-deprecated was given.
22676if test "${enable_deprecated+set}" = set; then :
22677  enableval=$enable_deprecated; enable_deprecated=$enableval
22678else
22679  enable_deprecated='no'
22680fi
22681
22682
22683if test "$enable_deprecated" = 'yes'; then
22684
22685$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
22686
22687else
22688  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22689fi
22690
22691# Build a version of ImageMagick which operates uninstalled.
22692# Used to build distributions located via MAGICK_HOME / executable path
22693# Check whether --enable-installed was given.
22694if test "${enable_installed+set}" = set; then :
22695  enableval=$enable_installed; enable_installed=$enableval
22696else
22697  enable_installed='yes'
22698fi
22699
22700
22701if test "$enable_installed" = 'yes'; then
22702
22703$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
22704
22705else
22706    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22707fi
22708
22709# Permit enciphering and deciphering image pixels.
22710# Check whether --enable-cipher was given.
22711if test "${enable_cipher+set}" = set; then :
22712  enableval=$enable_cipher; enable_cipher=$enableval
22713else
22714  enable_cipher='yes'
22715fi
22716
22717
22718if test "$enable_cipher" = 'yes'; then
22719
22720$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
22721
22722    MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
22723fi
22724
22725# Build a zero-configuration version of ImageMagick.
22726# Check whether --enable-zero-configuration was given.
22727if test "${enable_zero_configuration+set}" = set; then :
22728  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
22729else
22730  enable_zero_configuration='no'
22731fi
22732
22733
22734if test "$enable_zero_configuration" = 'yes'; then
22735
22736$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
22737
22738    MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
22739fi
22740 if test "$enable_zero_configuration" = yes; then
22741  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE=
22742  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE='#'
22743else
22744  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE='#'
22745  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE=
22746fi
22747
22748
22749# Build a high dynamic range version of ImageMagick.
22750# Check whether --enable-hdri was given.
22751if test "${enable_hdri+set}" = set; then :
22752  enableval=$enable_hdri; enable_hdri=$enableval
22753else
22754  enable_hdri='yes'
22755fi
22756
22757
22758MAGICK_HDRI=""
22759if test "$enable_hdri" = 'yes'; then
22760    MAGICK_HDRI="HDRI"
22761    magick_hdri_enable='1';
22762    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
22763else
22764    magick_hdri_enable='0'
22765fi
22766
22767cat >>confdefs.h <<_ACEOF
22768#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22769_ACEOF
22770
22771MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22772CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22773CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22774
22775# Enable pipes (|) in filenames.
22776# Check whether --enable-pipes was given.
22777if test "${enable_pipes+set}" = set; then :
22778  enableval=$enable_pipes; enable_pipes=$enableval
22779else
22780  enable_pipes='no'
22781fi
22782
22783
22784if test "$enable_pipes" = 'yes'; then
22785
22786$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h
22787
22788    MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
22789fi
22790
22791# Build a version of ImageMagick with assert statements.
22792# Check whether --enable-assert was given.
22793if test "${enable_assert+set}" = set; then :
22794  enableval=$enable_assert; enable_assert=$enableval
22795else
22796  enable_assert='yes'
22797fi
22798
22799
22800if test "$enable_assert" = 'no'; then
22801
22802$as_echo "#define NDEBUG 1" >>confdefs.h
22803
22804fi
22805
22806# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
22807
22808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22809$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22810    # Check whether --enable-maintainer-mode was given.
22811if test "${enable_maintainer_mode+set}" = set; then :
22812  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22813else
22814  USE_MAINTAINER_MODE=no
22815fi
22816
22817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22818$as_echo "$USE_MAINTAINER_MODE" >&6; }
22819   if test $USE_MAINTAINER_MODE = yes; then
22820  MAINTAINER_MODE_TRUE=
22821  MAINTAINER_MODE_FALSE='#'
22822else
22823  MAINTAINER_MODE_TRUE='#'
22824  MAINTAINER_MODE_FALSE=
22825fi
22826
22827  MAINT=$MAINTAINER_MODE_TRUE
22828
22829
22830
22831# Enable hugepages support
22832# Check whether --enable-hugepages was given.
22833if test "${enable_hugepages+set}" = set; then :
22834  enableval=$enable_hugepages; enable_hugepages=$enableval
22835else
22836  enable_hugepages='no'
22837fi
22838
22839
22840# Enable ccmalloc memory debugging support
22841# Check whether --enable-ccmalloc was given.
22842if test "${enable_ccmalloc+set}" = set; then :
22843  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22844else
22845  enable_ccmalloc='no'
22846fi
22847
22848
22849# Enable Electric Fence memory debugging support
22850# Check whether --enable-efence was given.
22851if test "${enable_efence+set}" = set; then :
22852  enableval=$enable_efence; enable_efence=$enableval
22853else
22854  enable_efence='no'
22855fi
22856
22857
22858# Enable prof-based profiling support
22859# Check whether --enable-prof was given.
22860if test "${enable_prof+set}" = set; then :
22861  enableval=$enable_prof; enable_prof=$enableval
22862else
22863  enable_prof='no'
22864fi
22865
22866
22867# Enable gprof-based profiling support
22868# Check whether --enable-gprof was given.
22869if test "${enable_gprof+set}" = set; then :
22870  enableval=$enable_gprof; enable_gprof=$enableval
22871else
22872  enable_gprof='no'
22873fi
22874
22875
22876# Enable gcov-based profiling support
22877# Check whether --enable-gcov was given.
22878if test "${enable_gcov+set}" = set; then :
22879  enableval=$enable_gcov; enable_gcov=$enableval
22880else
22881  enable_gcov='no'
22882fi
22883
22884
22885enable_profiling='no'
22886if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22887    enable_profiling='yes'
22888    if test "$libtool_build_shared_libs" = 'yes'; then
22889        echo "Warning: Can not profile code using shared libraries"
22890    fi
22891fi
22892
22893# Magick API method prefix
22894
22895# Check whether --with-method-prefix was given.
22896if test "${with_method_prefix+set}" = set; then :
22897  withval=$with_method_prefix; with_method_prefix=$withval
22898else
22899  with_method_prefix='no'
22900fi
22901
22902
22903if test "$with_method_prefix" != 'no'; then
22904
22905cat >>confdefs.h <<_ACEOF
22906#define NAMESPACE_PREFIX $with_method_prefix
22907_ACEOF
22908
22909
22910cat >>confdefs.h <<_ACEOF
22911#define NAMESPACE_PREFIX_TAG "$with_method_prefix"
22912_ACEOF
22913
22914    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
22915fi
22916
22917# Enable legacy support (default no)
22918# Check whether --enable-legacy-support was given.
22919if test "${enable_legacy_support+set}" = set; then :
22920  enableval=$enable_legacy_support; with_legacy_support=$enableval
22921else
22922  with_legacy_support='no'
22923fi
22924
22925 if test "$with_legacy_support" != 'no'; then
22926  LEGACY_SUPPORT_TRUE=
22927  LEGACY_SUPPORT_FALSE='#'
22928else
22929  LEGACY_SUPPORT_TRUE='#'
22930  LEGACY_SUPPORT_FALSE=
22931fi
22932
22933
22934# Enable building command line utilities (default yes)
22935
22936# Check whether --with-utilities was given.
22937if test "${with_utilities+set}" = set; then :
22938  withval=$with_utilities; with_utilities=$withval
22939else
22940  with_utilities='yes'
22941fi
22942
22943 if test "$with_utilities" = 'yes'; then
22944  WITH_UTILITIES_TRUE=
22945  WITH_UTILITIES_FALSE='#'
22946else
22947  WITH_UTILITIES_TRUE='#'
22948  WITH_UTILITIES_FALSE=
22949fi
22950
22951
22952# Number of bits in a Quantum
22953
22954# Check whether --with-quantum-depth was given.
22955if test "${with_quantum_depth+set}" = set; then :
22956  withval=$with_quantum_depth; with_quantum_depth=$withval
22957else
22958  with_quantum_depth=16
22959fi
22960
22961
22962if test "$with_quantum_depth" != '8'; then
22963    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22964fi
22965
22966case "${with_quantum_depth}" in
22967    8 ) ;;
22968    16 ) ;;
22969    32 ) ;;
22970    64 ) ;;
22971    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
22972esac
22973QUANTUM_DEPTH="$with_quantum_depth"
22974
22975cat >>confdefs.h <<_ACEOF
22976#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
22977_ACEOF
22978
22979MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22980CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22981CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22982
22983# define a lib suffix for abi purpose
22984MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
22985if test "$enable_hdri" = 'yes'; then
22986  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
22987fi
22988
22989
22990# Set pixel cache threshold
22991
22992# Check whether --with-cache was given.
22993if test "${with_cache+set}" = set; then :
22994  withval=$with_cache; with_cache=$withval
22995else
22996  with_cache=''
22997fi
22998
22999
23000if test "$with_cache" != ''; then
23001
23002cat >>confdefs.h <<_ACEOF
23003#define PixelCacheThreshold $with_cache
23004_ACEOF
23005
23006    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
23007fi
23008
23009# Disable/Enable support for full delegate paths
23010
23011# Check whether --with-frozenpaths was given.
23012if test "${with_frozenpaths+set}" = set; then :
23013  withval=$with_frozenpaths; with_frozenpaths=$withval
23014else
23015  with_frozenpaths='no'
23016fi
23017
23018
23019# Enable build/install of Magick++
23020
23021# Check whether --with-magick-plus-plus was given.
23022if test "${with_magick_plus_plus+set}" = set; then :
23023  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
23024else
23025  with_magick_plus_plus='yes'
23026fi
23027
23028
23029# Encode the this name into the shared library.
23030
23031# Check whether --with-package-release-name was given.
23032if test "${with_package_release_name+set}" = set; then :
23033  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
23034fi
23035
23036
23037
23038# Disable build/install of PerlMagick.
23039
23040# Check whether --with-perl was given.
23041if test "${with_perl+set}" = set; then :
23042  withval=$with_perl; with_perl=$withval
23043else
23044  with_perl='no'
23045fi
23046
23047
23048# Options to pass when configuring PerlMagick
23049
23050# Check whether --with-perl-options was given.
23051if test "${with_perl_options+set}" = set; then :
23052  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
23053fi
23054
23055
23056
23057# Enable jemalloc, object-caching memory allocation library.
23058
23059# Check whether --with-jemalloc was given.
23060if test "${with_jemalloc+set}" = set; then :
23061  withval=$with_jemalloc; with_jemalloc=$withval
23062else
23063  with_jemalloc='no'
23064fi
23065
23066if test "$with_jemalloc" != 'yes' ; then
23067    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
23068fi
23069
23070# Enable use of TCMalloc library.
23071
23072# Check whether --with-tcmalloc was given.
23073if test "${with_tcmalloc+set}" = set; then :
23074  withval=$with_tcmalloc; with_tcmalloc=$withval
23075else
23076  with_tcmalloc='no'
23077fi
23078
23079if test "$with_tcmalloc" != 'no' ; then
23080   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tcmalloc=$with_tcmalloc "
23081fi
23082
23083# Enable umem, object-caching memory allocation library.
23084
23085# Check whether --with-umem was given.
23086if test "${with_umem+set}" = set; then :
23087  withval=$with_umem; with_umem=$withval
23088else
23089  with_umem='no'
23090fi
23091
23092if test "$with_umem" != 'yes' ; then
23093    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
23094fi
23095
23096#
23097# Specify path to shared libstdc++ if not in normal location
23098#
23099
23100# Check whether --with-libstdc was given.
23101if test "${with_libstdc+set}" = set; then :
23102  withval=$with_libstdc; with_libstdc=$withval
23103else
23104  with_libstdc=''
23105fi
23106
23107
23108if test "$with_libstdc" != ''; then
23109    if test -d "$with_libstdc"; then
23110        LIBSTDCLDFLAGS="-L$with_libstdc"
23111    fi
23112fi
23113
23114
23115# Does gcc required -traditional?
23116if test $ac_cv_c_compiler_gnu = yes; then
23117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
23118$as_echo_n "checking whether $CC needs -traditional... " >&6; }
23119if ${ac_cv_prog_gcc_traditional+:} false; then :
23120  $as_echo_n "(cached) " >&6
23121else
23122    ac_pattern="Autoconf.*'x'"
23123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124/* end confdefs.h.  */
23125#include <sgtty.h>
23126Autoconf TIOCGETP
23127_ACEOF
23128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23129  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
23130  ac_cv_prog_gcc_traditional=yes
23131else
23132  ac_cv_prog_gcc_traditional=no
23133fi
23134rm -f conftest*
23135
23136
23137  if test $ac_cv_prog_gcc_traditional = no; then
23138    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139/* end confdefs.h.  */
23140#include <termio.h>
23141Autoconf TCGETA
23142_ACEOF
23143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23144  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
23145  ac_cv_prog_gcc_traditional=yes
23146fi
23147rm -f conftest*
23148
23149  fi
23150fi
23151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
23152$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
23153  if test $ac_cv_prog_gcc_traditional = yes; then
23154    CC="$CC -traditional"
23155  fi
23156fi
23157
23158
23159########
23160#
23161# Set defines required to build DLLs and modules using MinGW
23162#
23163########
23164# These options are set for multi-thread DLL module build
23165#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
23166#  module:              _DLL
23167#  executable/Magick++: _DLL _MAGICKMOD_
23168MODULE_EXTRA_CPPFLAGS=''
23169LIBRARY_EXTRA_CPPFLAGS=''
23170if test "${native_win32_build}" = 'yes'; then
23171    if test "${libtool_build_shared_libs}" = 'yes'; then
23172        CPPFLAGS="$CPPFLAGS -D_DLL"
23173        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
23174        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
23175        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
23176        if test "$build_modules" = 'yes'; then
23177            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
23178        else
23179            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
23180        fi
23181    else
23182        CPPFLAGS="$CPPFLAGS -D_LIB"
23183        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
23184        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
23185    fi
23186    if test "$with_threads" = 'yes'; then
23187         CPPFLAGS="$CPPFLAGS -D_MT"
23188         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
23189         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
23190    fi
23191fi
23192
23193
23194
23195# Check standard headers
23196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23197$as_echo_n "checking for ANSI C header files... " >&6; }
23198if ${ac_cv_header_stdc+:} false; then :
23199  $as_echo_n "(cached) " >&6
23200else
23201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23202/* end confdefs.h.  */
23203#include <stdlib.h>
23204#include <stdarg.h>
23205#include <string.h>
23206#include <float.h>
23207
23208int
23209main ()
23210{
23211
23212  ;
23213  return 0;
23214}
23215_ACEOF
23216if ac_fn_c_try_compile "$LINENO"; then :
23217  ac_cv_header_stdc=yes
23218else
23219  ac_cv_header_stdc=no
23220fi
23221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222
23223if test $ac_cv_header_stdc = yes; then
23224  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226/* end confdefs.h.  */
23227#include <string.h>
23228
23229_ACEOF
23230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23231  $EGREP "memchr" >/dev/null 2>&1; then :
23232
23233else
23234  ac_cv_header_stdc=no
23235fi
23236rm -f conftest*
23237
23238fi
23239
23240if test $ac_cv_header_stdc = yes; then
23241  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243/* end confdefs.h.  */
23244#include <stdlib.h>
23245
23246_ACEOF
23247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23248  $EGREP "free" >/dev/null 2>&1; then :
23249
23250else
23251  ac_cv_header_stdc=no
23252fi
23253rm -f conftest*
23254
23255fi
23256
23257if test $ac_cv_header_stdc = yes; then
23258  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23259  if test "$cross_compiling" = yes; then :
23260  :
23261else
23262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263/* end confdefs.h.  */
23264#include <ctype.h>
23265#include <stdlib.h>
23266#if ((' ' & 0x0FF) == 0x020)
23267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23269#else
23270# define ISLOWER(c) \
23271		   (('a' <= (c) && (c) <= 'i') \
23272		     || ('j' <= (c) && (c) <= 'r') \
23273		     || ('s' <= (c) && (c) <= 'z'))
23274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23275#endif
23276
23277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23278int
23279main ()
23280{
23281  int i;
23282  for (i = 0; i < 256; i++)
23283    if (XOR (islower (i), ISLOWER (i))
23284	|| toupper (i) != TOUPPER (i))
23285      return 2;
23286  return 0;
23287}
23288_ACEOF
23289if ac_fn_c_try_run "$LINENO"; then :
23290
23291else
23292  ac_cv_header_stdc=no
23293fi
23294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23295  conftest.$ac_objext conftest.beam conftest.$ac_ext
23296fi
23297
23298fi
23299fi
23300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23301$as_echo "$ac_cv_header_stdc" >&6; }
23302if test $ac_cv_header_stdc = yes; then
23303
23304$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23305
23306fi
23307
23308if ! test x"$ac_cv_header_stdc" = x"yes"; then
23309    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
23310    header files.  Compilation cannot proceed.  Please install the ANSI C
23311    headers and rerun this script." >&5
23312$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
23313    header files.  Compilation cannot proceed.  Please install the ANSI C
23314    headers and rerun this script." >&2;};
23315fi
23316
23317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
23318$as_echo_n "checking whether to enable assertions... " >&6; }
23319  # Check whether --enable-assert was given.
23320if test "${enable_assert+set}" = set; then :
23321  enableval=$enable_assert; ac_enable_assert=$enableval
23322     if       test "x$enableval" = xno; then :
23323
23324$as_echo "#define NDEBUG 1" >>confdefs.h
23325
23326elif test "x$enableval" != xyes; then :
23327  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
23328$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
23329	ac_enable_assert=yes
23330fi
23331else
23332  ac_enable_assert=yes
23333fi
23334
23335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
23336$as_echo "$ac_enable_assert" >&6; }
23337
23338ac_header_dirent=no
23339for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23340  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23342$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23343if eval \${$as_ac_Header+:} false; then :
23344  $as_echo_n "(cached) " >&6
23345else
23346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347/* end confdefs.h.  */
23348#include <sys/types.h>
23349#include <$ac_hdr>
23350
23351int
23352main ()
23353{
23354if ((DIR *) 0)
23355return 0;
23356  ;
23357  return 0;
23358}
23359_ACEOF
23360if ac_fn_c_try_compile "$LINENO"; then :
23361  eval "$as_ac_Header=yes"
23362else
23363  eval "$as_ac_Header=no"
23364fi
23365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366fi
23367eval ac_res=\$$as_ac_Header
23368	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23369$as_echo "$ac_res" >&6; }
23370if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23371  cat >>confdefs.h <<_ACEOF
23372#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23373_ACEOF
23374
23375ac_header_dirent=$ac_hdr; break
23376fi
23377
23378done
23379# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23380if test $ac_header_dirent = dirent.h; then
23381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23382$as_echo_n "checking for library containing opendir... " >&6; }
23383if ${ac_cv_search_opendir+:} false; then :
23384  $as_echo_n "(cached) " >&6
23385else
23386  ac_func_search_save_LIBS=$LIBS
23387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388/* end confdefs.h.  */
23389
23390/* Override any GCC internal prototype to avoid an error.
23391   Use char because int might match the return type of a GCC
23392   builtin and then its argument prototype would still apply.  */
23393#ifdef __cplusplus
23394extern "C"
23395#endif
23396char opendir ();
23397int
23398main ()
23399{
23400return opendir ();
23401  ;
23402  return 0;
23403}
23404_ACEOF
23405for ac_lib in '' dir; do
23406  if test -z "$ac_lib"; then
23407    ac_res="none required"
23408  else
23409    ac_res=-l$ac_lib
23410    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23411  fi
23412  if ac_fn_c_try_link "$LINENO"; then :
23413  ac_cv_search_opendir=$ac_res
23414fi
23415rm -f core conftest.err conftest.$ac_objext \
23416    conftest$ac_exeext
23417  if ${ac_cv_search_opendir+:} false; then :
23418  break
23419fi
23420done
23421if ${ac_cv_search_opendir+:} false; then :
23422
23423else
23424  ac_cv_search_opendir=no
23425fi
23426rm conftest.$ac_ext
23427LIBS=$ac_func_search_save_LIBS
23428fi
23429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23430$as_echo "$ac_cv_search_opendir" >&6; }
23431ac_res=$ac_cv_search_opendir
23432if test "$ac_res" != no; then :
23433  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23434
23435fi
23436
23437else
23438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23439$as_echo_n "checking for library containing opendir... " >&6; }
23440if ${ac_cv_search_opendir+:} false; then :
23441  $as_echo_n "(cached) " >&6
23442else
23443  ac_func_search_save_LIBS=$LIBS
23444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h.  */
23446
23447/* Override any GCC internal prototype to avoid an error.
23448   Use char because int might match the return type of a GCC
23449   builtin and then its argument prototype would still apply.  */
23450#ifdef __cplusplus
23451extern "C"
23452#endif
23453char opendir ();
23454int
23455main ()
23456{
23457return opendir ();
23458  ;
23459  return 0;
23460}
23461_ACEOF
23462for ac_lib in '' x; do
23463  if test -z "$ac_lib"; then
23464    ac_res="none required"
23465  else
23466    ac_res=-l$ac_lib
23467    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23468  fi
23469  if ac_fn_c_try_link "$LINENO"; then :
23470  ac_cv_search_opendir=$ac_res
23471fi
23472rm -f core conftest.err conftest.$ac_objext \
23473    conftest$ac_exeext
23474  if ${ac_cv_search_opendir+:} false; then :
23475  break
23476fi
23477done
23478if ${ac_cv_search_opendir+:} false; then :
23479
23480else
23481  ac_cv_search_opendir=no
23482fi
23483rm conftest.$ac_ext
23484LIBS=$ac_func_search_save_LIBS
23485fi
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23487$as_echo "$ac_cv_search_opendir" >&6; }
23488ac_res=$ac_cv_search_opendir
23489if test "$ac_res" != no; then :
23490  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23491
23492fi
23493
23494fi
23495
23496
23497# Check additional headers
23498for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h utime.h wchar.h xlocale.h
23499do :
23500  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23501ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23502if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23503  cat >>confdefs.h <<_ACEOF
23504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23505_ACEOF
23506
23507fi
23508
23509done
23510
23511
23512########
23513#
23514# Checks for typedefs, structures, and compiler characteristics.
23515#
23516########
23517
23518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
23519$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
23520if ${ac_cv_header_stdbool_h+:} false; then :
23521  $as_echo_n "(cached) " >&6
23522else
23523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23524/* end confdefs.h.  */
23525
23526             #include <stdbool.h>
23527             #ifndef bool
23528              "error: bool is not defined"
23529             #endif
23530             #ifndef false
23531              "error: false is not defined"
23532             #endif
23533             #if false
23534              "error: false is not 0"
23535             #endif
23536             #ifndef true
23537              "error: true is not defined"
23538             #endif
23539             #if true != 1
23540              "error: true is not 1"
23541             #endif
23542             #ifndef __bool_true_false_are_defined
23543              "error: __bool_true_false_are_defined is not defined"
23544             #endif
23545
23546             struct s { _Bool s: 1; _Bool t; } s;
23547
23548             char a[true == 1 ? 1 : -1];
23549             char b[false == 0 ? 1 : -1];
23550             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23551             char d[(bool) 0.5 == true ? 1 : -1];
23552             /* See body of main program for 'e'.  */
23553             char f[(_Bool) 0.0 == false ? 1 : -1];
23554             char g[true];
23555             char h[sizeof (_Bool)];
23556             char i[sizeof s.t];
23557             enum { j = false, k = true, l = false * true, m = true * 256 };
23558             /* The following fails for
23559                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23560             _Bool n[m];
23561             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23562             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23563             /* Catch a bug in an HP-UX C compiler.  See
23564                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23565                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23566              */
23567             _Bool q = true;
23568             _Bool *pq = &q;
23569
23570int
23571main ()
23572{
23573
23574             bool e = &s;
23575             *pq |= q;
23576             *pq |= ! q;
23577             /* Refer to every declared value, to avoid compiler optimizations.  */
23578             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23579                     + !m + !n + !o + !p + !q + !pq);
23580
23581  ;
23582  return 0;
23583}
23584_ACEOF
23585if ac_fn_c_try_compile "$LINENO"; then :
23586  ac_cv_header_stdbool_h=yes
23587else
23588  ac_cv_header_stdbool_h=no
23589fi
23590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591fi
23592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
23593$as_echo "$ac_cv_header_stdbool_h" >&6; }
23594   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
23595if test "x$ac_cv_type__Bool" = xyes; then :
23596
23597cat >>confdefs.h <<_ACEOF
23598#define HAVE__BOOL 1
23599_ACEOF
23600
23601
23602fi
23603
23604
23605if test $ac_cv_header_stdbool_h = yes; then
23606
23607$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
23608
23609fi
23610
23611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23612$as_echo_n "checking for working volatile... " >&6; }
23613if ${ac_cv_c_volatile+:} false; then :
23614  $as_echo_n "(cached) " >&6
23615else
23616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617/* end confdefs.h.  */
23618
23619int
23620main ()
23621{
23622
23623volatile int x;
23624int * volatile y = (int *) 0;
23625return !x && !y;
23626  ;
23627  return 0;
23628}
23629_ACEOF
23630if ac_fn_c_try_compile "$LINENO"; then :
23631  ac_cv_c_volatile=yes
23632else
23633  ac_cv_c_volatile=no
23634fi
23635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636fi
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23638$as_echo "$ac_cv_c_volatile" >&6; }
23639if test $ac_cv_c_volatile = no; then
23640
23641$as_echo "#define volatile /**/" >>confdefs.h
23642
23643fi
23644
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
23646$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
23647if ${ac_cv_c_stringize+:} false; then :
23648  $as_echo_n "(cached) " >&6
23649else
23650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651/* end confdefs.h.  */
23652#define x(y) #y
23653
23654char *s = x(teststring);
23655_ACEOF
23656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23657  $EGREP "#teststring" >/dev/null 2>&1; then :
23658  ac_cv_c_stringize=no
23659else
23660  ac_cv_c_stringize=yes
23661fi
23662rm -f conftest*
23663
23664fi
23665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
23666$as_echo "$ac_cv_c_stringize" >&6; }
23667if test $ac_cv_c_stringize = yes; then
23668
23669$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
23670
23671fi
23672
23673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
23674$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23675if ${ac_cv_header_stat_broken+:} false; then :
23676  $as_echo_n "(cached) " >&6
23677else
23678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679/* end confdefs.h.  */
23680#include <sys/types.h>
23681#include <sys/stat.h>
23682
23683#if defined S_ISBLK && defined S_IFDIR
23684extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23685#endif
23686
23687#if defined S_ISBLK && defined S_IFCHR
23688extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23689#endif
23690
23691#if defined S_ISLNK && defined S_IFREG
23692extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23693#endif
23694
23695#if defined S_ISSOCK && defined S_IFREG
23696extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23697#endif
23698
23699_ACEOF
23700if ac_fn_c_try_compile "$LINENO"; then :
23701  ac_cv_header_stat_broken=no
23702else
23703  ac_cv_header_stat_broken=yes
23704fi
23705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706fi
23707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
23708$as_echo "$ac_cv_header_stat_broken" >&6; }
23709if test $ac_cv_header_stat_broken = yes; then
23710
23711$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
23712
23713fi
23714
23715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23716$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23717if ${ac_cv_header_time+:} false; then :
23718  $as_echo_n "(cached) " >&6
23719else
23720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721/* end confdefs.h.  */
23722#include <sys/types.h>
23723#include <sys/time.h>
23724#include <time.h>
23725
23726int
23727main ()
23728{
23729if ((struct tm *) 0)
23730return 0;
23731  ;
23732  return 0;
23733}
23734_ACEOF
23735if ac_fn_c_try_compile "$LINENO"; then :
23736  ac_cv_header_time=yes
23737else
23738  ac_cv_header_time=no
23739fi
23740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741fi
23742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23743$as_echo "$ac_cv_header_time" >&6; }
23744if test $ac_cv_header_time = yes; then
23745
23746$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23747
23748fi
23749
23750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23751$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23752if ${ac_cv_struct_tm+:} false; then :
23753  $as_echo_n "(cached) " >&6
23754else
23755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23756/* end confdefs.h.  */
23757#include <sys/types.h>
23758#include <time.h>
23759
23760int
23761main ()
23762{
23763struct tm tm;
23764				     int *p = &tm.tm_sec;
23765				     return !p;
23766  ;
23767  return 0;
23768}
23769_ACEOF
23770if ac_fn_c_try_compile "$LINENO"; then :
23771  ac_cv_struct_tm=time.h
23772else
23773  ac_cv_struct_tm=sys/time.h
23774fi
23775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776fi
23777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23778$as_echo "$ac_cv_struct_tm" >&6; }
23779if test $ac_cv_struct_tm = sys/time.h; then
23780
23781$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23782
23783fi
23784
23785ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23786#include <$ac_cv_struct_tm>
23787
23788"
23789if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
23790
23791cat >>confdefs.h <<_ACEOF
23792#define HAVE_STRUCT_TM_TM_ZONE 1
23793_ACEOF
23794
23795
23796fi
23797
23798if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23799
23800$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23801
23802else
23803  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23804"
23805if test "x$ac_cv_have_decl_tzname" = xyes; then :
23806  ac_have_decl=1
23807else
23808  ac_have_decl=0
23809fi
23810
23811cat >>confdefs.h <<_ACEOF
23812#define HAVE_DECL_TZNAME $ac_have_decl
23813_ACEOF
23814
23815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23816$as_echo_n "checking for tzname... " >&6; }
23817if ${ac_cv_var_tzname+:} false; then :
23818  $as_echo_n "(cached) " >&6
23819else
23820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23821/* end confdefs.h.  */
23822#include <time.h>
23823#if !HAVE_DECL_TZNAME
23824extern char *tzname[];
23825#endif
23826
23827int
23828main ()
23829{
23830return tzname[0][0];
23831  ;
23832  return 0;
23833}
23834_ACEOF
23835if ac_fn_c_try_link "$LINENO"; then :
23836  ac_cv_var_tzname=yes
23837else
23838  ac_cv_var_tzname=no
23839fi
23840rm -f core conftest.err conftest.$ac_objext \
23841    conftest$ac_exeext conftest.$ac_ext
23842fi
23843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23844$as_echo "$ac_cv_var_tzname" >&6; }
23845  if test $ac_cv_var_tzname = yes; then
23846
23847$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23848
23849  fi
23850fi
23851
23852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
23853$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23854if ${ac_cv_sys_interpreter+:} false; then :
23855  $as_echo_n "(cached) " >&6
23856else
23857  echo '#! /bin/cat
23858exit 69
23859' >conftest
23860chmod u+x conftest
23861(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23862if test $? -ne 69; then
23863   ac_cv_sys_interpreter=yes
23864else
23865   ac_cv_sys_interpreter=no
23866fi
23867rm -f conftest
23868fi
23869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
23870$as_echo "$ac_cv_sys_interpreter" >&6; }
23871interpval=$ac_cv_sys_interpreter
23872
23873
23874#
23875# Checks for language qualifiers and semantics.
23876#
23877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23878$as_echo_n "checking whether char is unsigned... " >&6; }
23879if ${ac_cv_c_char_unsigned+:} false; then :
23880  $as_echo_n "(cached) " >&6
23881else
23882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883/* end confdefs.h.  */
23884$ac_includes_default
23885int
23886main ()
23887{
23888static int test_array [1 - 2 * !(((char) -1) < 0)];
23889test_array [0] = 0;
23890return test_array [0];
23891
23892  ;
23893  return 0;
23894}
23895_ACEOF
23896if ac_fn_c_try_compile "$LINENO"; then :
23897  ac_cv_c_char_unsigned=no
23898else
23899  ac_cv_c_char_unsigned=yes
23900fi
23901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902fi
23903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23904$as_echo "$ac_cv_c_char_unsigned" >&6; }
23905if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23906  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23907
23908fi
23909
23910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23911$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23912if ${ac_cv_c_const+:} false; then :
23913  $as_echo_n "(cached) " >&6
23914else
23915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916/* end confdefs.h.  */
23917
23918int
23919main ()
23920{
23921
23922#ifndef __cplusplus
23923  /* Ultrix mips cc rejects this sort of thing.  */
23924  typedef int charset[2];
23925  const charset cs = { 0, 0 };
23926  /* SunOS 4.1.1 cc rejects this.  */
23927  char const *const *pcpcc;
23928  char **ppc;
23929  /* NEC SVR4.0.2 mips cc rejects this.  */
23930  struct point {int x, y;};
23931  static struct point const zero = {0,0};
23932  /* AIX XL C 1.02.0.0 rejects this.
23933     It does not let you subtract one const X* pointer from another in
23934     an arm of an if-expression whose if-part is not a constant
23935     expression */
23936  const char *g = "string";
23937  pcpcc = &g + (g ? g-g : 0);
23938  /* HPUX 7.0 cc rejects these. */
23939  ++pcpcc;
23940  ppc = (char**) pcpcc;
23941  pcpcc = (char const *const *) ppc;
23942  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23943    char tx;
23944    char *t = &tx;
23945    char const *s = 0 ? (char *) 0 : (char const *) 0;
23946
23947    *t++ = 0;
23948    if (s) return 0;
23949  }
23950  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23951    int x[] = {25, 17};
23952    const int *foo = &x[0];
23953    ++foo;
23954  }
23955  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23956    typedef const int *iptr;
23957    iptr p = 0;
23958    ++p;
23959  }
23960  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23961       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23962    struct s { int j; const int *ap[3]; } bx;
23963    struct s *b = &bx; b->j = 5;
23964  }
23965  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23966    const int foo = 10;
23967    if (!foo) return 0;
23968  }
23969  return !cs[0] && !zero.x;
23970#endif
23971
23972  ;
23973  return 0;
23974}
23975_ACEOF
23976if ac_fn_c_try_compile "$LINENO"; then :
23977  ac_cv_c_const=yes
23978else
23979  ac_cv_c_const=no
23980fi
23981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982fi
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23984$as_echo "$ac_cv_c_const" >&6; }
23985if test $ac_cv_c_const = no; then
23986
23987$as_echo "#define const /**/" >>confdefs.h
23988
23989fi
23990
23991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23992$as_echo_n "checking for inline... " >&6; }
23993if ${ac_cv_c_inline+:} false; then :
23994  $as_echo_n "(cached) " >&6
23995else
23996  ac_cv_c_inline=no
23997for ac_kw in inline __inline__ __inline; do
23998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999/* end confdefs.h.  */
24000#ifndef __cplusplus
24001typedef int foo_t;
24002static $ac_kw foo_t static_foo () {return 0; }
24003$ac_kw foo_t foo () {return 0; }
24004#endif
24005
24006_ACEOF
24007if ac_fn_c_try_compile "$LINENO"; then :
24008  ac_cv_c_inline=$ac_kw
24009fi
24010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24011  test "$ac_cv_c_inline" != no && break
24012done
24013
24014fi
24015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24016$as_echo "$ac_cv_c_inline" >&6; }
24017
24018case $ac_cv_c_inline in
24019  inline | yes) ;;
24020  *)
24021    case $ac_cv_c_inline in
24022      no) ac_val=;;
24023      *) ac_val=$ac_cv_c_inline;;
24024    esac
24025    cat >>confdefs.h <<_ACEOF
24026#ifndef __cplusplus
24027#define inline $ac_val
24028#endif
24029_ACEOF
24030    ;;
24031esac
24032
24033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24034$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24035if ${ac_cv_c_restrict+:} false; then :
24036  $as_echo_n "(cached) " >&6
24037else
24038  ac_cv_c_restrict=no
24039   # The order here caters to the fact that C++ does not require restrict.
24040   for ac_kw in __restrict __restrict__ _Restrict restrict; do
24041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042/* end confdefs.h.  */
24043typedef int * int_ptr;
24044	int foo (int_ptr $ac_kw ip) {
24045	return ip[0];
24046       }
24047int
24048main ()
24049{
24050int s[1];
24051	int * $ac_kw t = s;
24052	t[0] = 0;
24053	return foo(t)
24054  ;
24055  return 0;
24056}
24057_ACEOF
24058if ac_fn_c_try_compile "$LINENO"; then :
24059  ac_cv_c_restrict=$ac_kw
24060fi
24061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062     test "$ac_cv_c_restrict" != no && break
24063   done
24064
24065fi
24066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24067$as_echo "$ac_cv_c_restrict" >&6; }
24068
24069 case $ac_cv_c_restrict in
24070   restrict) ;;
24071   no) $as_echo "#define restrict /**/" >>confdefs.h
24072 ;;
24073   *)  cat >>confdefs.h <<_ACEOF
24074#define restrict $ac_cv_c_restrict
24075_ACEOF
24076 ;;
24077 esac
24078
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24080$as_echo_n "checking for working volatile... " >&6; }
24081if ${ac_cv_c_volatile+:} false; then :
24082  $as_echo_n "(cached) " >&6
24083else
24084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085/* end confdefs.h.  */
24086
24087int
24088main ()
24089{
24090
24091volatile int x;
24092int * volatile y = (int *) 0;
24093return !x && !y;
24094  ;
24095  return 0;
24096}
24097_ACEOF
24098if ac_fn_c_try_compile "$LINENO"; then :
24099  ac_cv_c_volatile=yes
24100else
24101  ac_cv_c_volatile=no
24102fi
24103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104fi
24105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24106$as_echo "$ac_cv_c_volatile" >&6; }
24107if test $ac_cv_c_volatile = no; then
24108
24109$as_echo "#define volatile /**/" >>confdefs.h
24110
24111fi
24112
24113
24114# If words are stored with the most significant byte first (like
24115# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24117$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24118if ${ac_cv_c_bigendian+:} false; then :
24119  $as_echo_n "(cached) " >&6
24120else
24121  ac_cv_c_bigendian=unknown
24122    # See if we're dealing with a universal compiler.
24123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24124/* end confdefs.h.  */
24125#ifndef __APPLE_CC__
24126	       not a universal capable compiler
24127	     #endif
24128	     typedef int dummy;
24129
24130_ACEOF
24131if ac_fn_c_try_compile "$LINENO"; then :
24132
24133	# Check for potential -arch flags.  It is not universal unless
24134	# there are at least two -arch flags with different values.
24135	ac_arch=
24136	ac_prev=
24137	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24138	 if test -n "$ac_prev"; then
24139	   case $ac_word in
24140	     i?86 | x86_64 | ppc | ppc64)
24141	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24142		 ac_arch=$ac_word
24143	       else
24144		 ac_cv_c_bigendian=universal
24145		 break
24146	       fi
24147	       ;;
24148	   esac
24149	   ac_prev=
24150	 elif test "x$ac_word" = "x-arch"; then
24151	   ac_prev=arch
24152	 fi
24153       done
24154fi
24155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156    if test $ac_cv_c_bigendian = unknown; then
24157      # See if sys/param.h defines the BYTE_ORDER macro.
24158      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159/* end confdefs.h.  */
24160#include <sys/types.h>
24161	     #include <sys/param.h>
24162
24163int
24164main ()
24165{
24166#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24167		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24168		     && LITTLE_ENDIAN)
24169	      bogus endian macros
24170	     #endif
24171
24172  ;
24173  return 0;
24174}
24175_ACEOF
24176if ac_fn_c_try_compile "$LINENO"; then :
24177  # It does; now see whether it defined to BIG_ENDIAN or not.
24178	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179/* end confdefs.h.  */
24180#include <sys/types.h>
24181		#include <sys/param.h>
24182
24183int
24184main ()
24185{
24186#if BYTE_ORDER != BIG_ENDIAN
24187		 not big endian
24188		#endif
24189
24190  ;
24191  return 0;
24192}
24193_ACEOF
24194if ac_fn_c_try_compile "$LINENO"; then :
24195  ac_cv_c_bigendian=yes
24196else
24197  ac_cv_c_bigendian=no
24198fi
24199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24200fi
24201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202    fi
24203    if test $ac_cv_c_bigendian = unknown; then
24204      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206/* end confdefs.h.  */
24207#include <limits.h>
24208
24209int
24210main ()
24211{
24212#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24213	      bogus endian macros
24214	     #endif
24215
24216  ;
24217  return 0;
24218}
24219_ACEOF
24220if ac_fn_c_try_compile "$LINENO"; then :
24221  # It does; now see whether it defined to _BIG_ENDIAN or not.
24222	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223/* end confdefs.h.  */
24224#include <limits.h>
24225
24226int
24227main ()
24228{
24229#ifndef _BIG_ENDIAN
24230		 not big endian
24231		#endif
24232
24233  ;
24234  return 0;
24235}
24236_ACEOF
24237if ac_fn_c_try_compile "$LINENO"; then :
24238  ac_cv_c_bigendian=yes
24239else
24240  ac_cv_c_bigendian=no
24241fi
24242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24243fi
24244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24245    fi
24246    if test $ac_cv_c_bigendian = unknown; then
24247      # Compile a test program.
24248      if test "$cross_compiling" = yes; then :
24249  # Try to guess by grepping values from an object file.
24250	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251/* end confdefs.h.  */
24252short int ascii_mm[] =
24253		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24254		short int ascii_ii[] =
24255		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24256		int use_ascii (int i) {
24257		  return ascii_mm[i] + ascii_ii[i];
24258		}
24259		short int ebcdic_ii[] =
24260		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24261		short int ebcdic_mm[] =
24262		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24263		int use_ebcdic (int i) {
24264		  return ebcdic_mm[i] + ebcdic_ii[i];
24265		}
24266		extern int foo;
24267
24268int
24269main ()
24270{
24271return use_ascii (foo) == use_ebcdic (foo);
24272  ;
24273  return 0;
24274}
24275_ACEOF
24276if ac_fn_c_try_compile "$LINENO"; then :
24277  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24278	      ac_cv_c_bigendian=yes
24279	    fi
24280	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24281	      if test "$ac_cv_c_bigendian" = unknown; then
24282		ac_cv_c_bigendian=no
24283	      else
24284		# finding both strings is unlikely to happen, but who knows?
24285		ac_cv_c_bigendian=unknown
24286	      fi
24287	    fi
24288fi
24289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290else
24291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292/* end confdefs.h.  */
24293$ac_includes_default
24294int
24295main ()
24296{
24297
24298	     /* Are we little or big endian?  From Harbison&Steele.  */
24299	     union
24300	     {
24301	       long int l;
24302	       char c[sizeof (long int)];
24303	     } u;
24304	     u.l = 1;
24305	     return u.c[sizeof (long int) - 1] == 1;
24306
24307  ;
24308  return 0;
24309}
24310_ACEOF
24311if ac_fn_c_try_run "$LINENO"; then :
24312  ac_cv_c_bigendian=no
24313else
24314  ac_cv_c_bigendian=yes
24315fi
24316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24317  conftest.$ac_objext conftest.beam conftest.$ac_ext
24318fi
24319
24320    fi
24321fi
24322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24323$as_echo "$ac_cv_c_bigendian" >&6; }
24324 case $ac_cv_c_bigendian in #(
24325   yes)
24326     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24327;; #(
24328   no)
24329      ;; #(
24330   universal)
24331
24332$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24333
24334     ;; #(
24335   *)
24336     as_fn_error $? "unknown endianness
24337 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24338 esac
24339
24340
24341# Define to a suitable type, if standard headers do not define it.
24342ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
24343case $ac_cv_c_int8_t in #(
24344  no|yes) ;; #(
24345  *)
24346
24347cat >>confdefs.h <<_ACEOF
24348#define int8_t $ac_cv_c_int8_t
24349_ACEOF
24350;;
24351esac
24352
24353ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
24354case $ac_cv_c_int16_t in #(
24355  no|yes) ;; #(
24356  *)
24357
24358cat >>confdefs.h <<_ACEOF
24359#define int16_t $ac_cv_c_int16_t
24360_ACEOF
24361;;
24362esac
24363
24364ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
24365case $ac_cv_c_int32_t in #(
24366  no|yes) ;; #(
24367  *)
24368
24369cat >>confdefs.h <<_ACEOF
24370#define int32_t $ac_cv_c_int32_t
24371_ACEOF
24372;;
24373esac
24374
24375ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
24376case $ac_cv_c_int64_t in #(
24377  no|yes) ;; #(
24378  *)
24379
24380cat >>confdefs.h <<_ACEOF
24381#define int64_t $ac_cv_c_int64_t
24382_ACEOF
24383;;
24384esac
24385
24386
24387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24388$as_echo_n "checking for unsigned long long int... " >&6; }
24389if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24390  $as_echo_n "(cached) " >&6
24391else
24392  ac_cv_type_unsigned_long_long_int=yes
24393     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24394       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24395/* end confdefs.h.  */
24396
24397  /* For now, do not test the preprocessor; as of 2007 there are too many
24398	 implementations with broken preprocessors.  Perhaps this can
24399	 be revisited in 2012.  In the meantime, code should not expect
24400	 #if to work with literals wider than 32 bits.  */
24401      /* Test literals.  */
24402      long long int ll = 9223372036854775807ll;
24403      long long int nll = -9223372036854775807LL;
24404      unsigned long long int ull = 18446744073709551615ULL;
24405      /* Test constant expressions.   */
24406      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24407		     ? 1 : -1)];
24408      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24409		     ? 1 : -1)];
24410      int i = 63;
24411int
24412main ()
24413{
24414/* Test availability of runtime routines for shift and division.  */
24415      long long int llmax = 9223372036854775807ll;
24416      unsigned long long int ullmax = 18446744073709551615ull;
24417      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24418	      | (llmax / ll) | (llmax % ll)
24419	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24420	      | (ullmax / ull) | (ullmax % ull));
24421  ;
24422  return 0;
24423}
24424
24425_ACEOF
24426if ac_fn_c_try_link "$LINENO"; then :
24427
24428else
24429  ac_cv_type_unsigned_long_long_int=no
24430fi
24431rm -f core conftest.err conftest.$ac_objext \
24432    conftest$ac_exeext conftest.$ac_ext
24433     fi
24434fi
24435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24436$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24437  if test $ac_cv_type_unsigned_long_long_int = yes; then
24438
24439$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24440
24441  fi
24442
24443
24444
24445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24446$as_echo_n "checking for long long int... " >&6; }
24447if ${ac_cv_type_long_long_int+:} false; then :
24448  $as_echo_n "(cached) " >&6
24449else
24450  ac_cv_type_long_long_int=yes
24451      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24452	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24453	if test $ac_cv_type_long_long_int = yes; then
24454	  	  	  	  if test "$cross_compiling" = yes; then :
24455  :
24456else
24457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458/* end confdefs.h.  */
24459#include <limits.h>
24460		 #ifndef LLONG_MAX
24461		 # define HALF \
24462			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24463		 # define LLONG_MAX (HALF - 1 + HALF)
24464		 #endif
24465int
24466main ()
24467{
24468long long int n = 1;
24469		 int i;
24470		 for (i = 0; ; i++)
24471		   {
24472		     long long int m = n << i;
24473		     if (m >> i != n)
24474		       return 1;
24475		     if (LLONG_MAX / 2 < m)
24476		       break;
24477		   }
24478		 return 0;
24479  ;
24480  return 0;
24481}
24482_ACEOF
24483if ac_fn_c_try_run "$LINENO"; then :
24484
24485else
24486  ac_cv_type_long_long_int=no
24487fi
24488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24489  conftest.$ac_objext conftest.beam conftest.$ac_ext
24490fi
24491
24492	fi
24493      fi
24494fi
24495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24496$as_echo "$ac_cv_type_long_long_int" >&6; }
24497  if test $ac_cv_type_long_long_int = yes; then
24498
24499$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24500
24501  fi
24502
24503
24504
24505  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24506if test "x$ac_cv_type_intmax_t" = xyes; then :
24507
24508$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24509
24510else
24511  test $ac_cv_type_long_long_int = yes \
24512       && ac_type='long long int' \
24513       || ac_type='long int'
24514
24515cat >>confdefs.h <<_ACEOF
24516#define intmax_t $ac_type
24517_ACEOF
24518
24519fi
24520
24521
24522
24523  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24524if test "x$ac_cv_type_intptr_t" = xyes; then :
24525
24526$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
24527
24528else
24529  for ac_type in 'int' 'long int' 'long long int'; do
24530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531/* end confdefs.h.  */
24532$ac_includes_default
24533int
24534main ()
24535{
24536static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24537test_array [0] = 0;
24538return test_array [0];
24539
24540  ;
24541  return 0;
24542}
24543_ACEOF
24544if ac_fn_c_try_compile "$LINENO"; then :
24545
24546cat >>confdefs.h <<_ACEOF
24547#define intptr_t $ac_type
24548_ACEOF
24549
24550	  ac_type=
24551fi
24552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24553       test -z "$ac_type" && break
24554     done
24555fi
24556
24557
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24559$as_echo_n "checking for mbstate_t... " >&6; }
24560if ${ac_cv_type_mbstate_t+:} false; then :
24561  $as_echo_n "(cached) " >&6
24562else
24563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564/* end confdefs.h.  */
24565$ac_includes_default
24566#	    include <wchar.h>
24567int
24568main ()
24569{
24570mbstate_t x; return sizeof x;
24571  ;
24572  return 0;
24573}
24574_ACEOF
24575if ac_fn_c_try_compile "$LINENO"; then :
24576  ac_cv_type_mbstate_t=yes
24577else
24578  ac_cv_type_mbstate_t=no
24579fi
24580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24581fi
24582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24583$as_echo "$ac_cv_type_mbstate_t" >&6; }
24584   if test $ac_cv_type_mbstate_t = yes; then
24585
24586$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24587
24588   else
24589
24590$as_echo "#define mbstate_t int" >>confdefs.h
24591
24592   fi
24593ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24594if test "x$ac_cv_type_mode_t" = xyes; then :
24595
24596else
24597
24598cat >>confdefs.h <<_ACEOF
24599#define mode_t int
24600_ACEOF
24601
24602fi
24603
24604ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24605if test "x$ac_cv_type_off_t" = xyes; then :
24606
24607else
24608
24609cat >>confdefs.h <<_ACEOF
24610#define off_t long int
24611_ACEOF
24612
24613fi
24614
24615ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24616if test "x$ac_cv_type_pid_t" = xyes; then :
24617
24618else
24619
24620cat >>confdefs.h <<_ACEOF
24621#define pid_t int
24622_ACEOF
24623
24624fi
24625
24626ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24627if test "x$ac_cv_type_size_t" = xyes; then :
24628
24629else
24630
24631cat >>confdefs.h <<_ACEOF
24632#define size_t unsigned int
24633_ACEOF
24634
24635fi
24636
24637ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24638if test "x$ac_cv_type_ssize_t" = xyes; then :
24639
24640else
24641
24642cat >>confdefs.h <<_ACEOF
24643#define ssize_t int
24644_ACEOF
24645
24646fi
24647
24648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24649$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24650if ${ac_cv_type_uid_t+:} false; then :
24651  $as_echo_n "(cached) " >&6
24652else
24653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24654/* end confdefs.h.  */
24655#include <sys/types.h>
24656
24657_ACEOF
24658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24659  $EGREP "uid_t" >/dev/null 2>&1; then :
24660  ac_cv_type_uid_t=yes
24661else
24662  ac_cv_type_uid_t=no
24663fi
24664rm -f conftest*
24665
24666fi
24667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24668$as_echo "$ac_cv_type_uid_t" >&6; }
24669if test $ac_cv_type_uid_t = no; then
24670
24671$as_echo "#define uid_t int" >>confdefs.h
24672
24673
24674$as_echo "#define gid_t int" >>confdefs.h
24675
24676fi
24677
24678ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24679case $ac_cv_c_uint8_t in #(
24680  no|yes) ;; #(
24681  *)
24682
24683$as_echo "#define _UINT8_T 1" >>confdefs.h
24684
24685
24686cat >>confdefs.h <<_ACEOF
24687#define uint8_t $ac_cv_c_uint8_t
24688_ACEOF
24689;;
24690  esac
24691
24692ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24693case $ac_cv_c_uint16_t in #(
24694  no|yes) ;; #(
24695  *)
24696
24697
24698cat >>confdefs.h <<_ACEOF
24699#define uint16_t $ac_cv_c_uint16_t
24700_ACEOF
24701;;
24702  esac
24703
24704ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24705case $ac_cv_c_uint32_t in #(
24706  no|yes) ;; #(
24707  *)
24708
24709$as_echo "#define _UINT32_T 1" >>confdefs.h
24710
24711
24712cat >>confdefs.h <<_ACEOF
24713#define uint32_t $ac_cv_c_uint32_t
24714_ACEOF
24715;;
24716  esac
24717
24718ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24719case $ac_cv_c_uint64_t in #(
24720  no|yes) ;; #(
24721  *)
24722
24723$as_echo "#define _UINT64_T 1" >>confdefs.h
24724
24725
24726cat >>confdefs.h <<_ACEOF
24727#define uint64_t $ac_cv_c_uint64_t
24728_ACEOF
24729;;
24730  esac
24731
24732
24733
24734  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24735if test "x$ac_cv_type_uintmax_t" = xyes; then :
24736
24737$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24738
24739else
24740  test $ac_cv_type_unsigned_long_long_int = yes \
24741       && ac_type='unsigned long long int' \
24742       || ac_type='unsigned long int'
24743
24744cat >>confdefs.h <<_ACEOF
24745#define uintmax_t $ac_type
24746_ACEOF
24747
24748fi
24749
24750
24751
24752  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24753if test "x$ac_cv_type_uintptr_t" = xyes; then :
24754
24755$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24756
24757else
24758  for ac_type in 'unsigned int' 'unsigned long int' \
24759	'unsigned long long int'; do
24760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761/* end confdefs.h.  */
24762$ac_includes_default
24763int
24764main ()
24765{
24766static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24767test_array [0] = 0;
24768return test_array [0];
24769
24770  ;
24771  return 0;
24772}
24773_ACEOF
24774if ac_fn_c_try_compile "$LINENO"; then :
24775
24776cat >>confdefs.h <<_ACEOF
24777#define uintptr_t $ac_type
24778_ACEOF
24779
24780	  ac_type=
24781fi
24782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783       test -z "$ac_type" && break
24784     done
24785fi
24786
24787
24788
24789# Float_t and double_t are intended to be the the most efficient type.
24790# The cast to long int works around a bug in the HP C Compiler
24791# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24792# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24793# This bug is HP SR number 8606223364.
24794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
24795$as_echo_n "checking size of float_t... " >&6; }
24796if ${ac_cv_sizeof_float_t+:} false; then :
24797  $as_echo_n "(cached) " >&6
24798else
24799  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
24800"; then :
24801
24802else
24803  if test "$ac_cv_type_float_t" = yes; then
24804     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24806as_fn_error 77 "cannot compute sizeof (float_t)
24807See \`config.log' for more details" "$LINENO" 5; }
24808   else
24809     ac_cv_sizeof_float_t=0
24810   fi
24811fi
24812
24813fi
24814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
24815$as_echo "$ac_cv_sizeof_float_t" >&6; }
24816
24817
24818
24819cat >>confdefs.h <<_ACEOF
24820#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
24821_ACEOF
24822
24823
24824# The cast to long int works around a bug in the HP C Compiler
24825# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24826# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24827# This bug is HP SR number 8606223364.
24828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
24829$as_echo_n "checking size of double_t... " >&6; }
24830if ${ac_cv_sizeof_double_t+:} false; then :
24831  $as_echo_n "(cached) " >&6
24832else
24833  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
24834"; then :
24835
24836else
24837  if test "$ac_cv_type_double_t" = yes; then
24838     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24840as_fn_error 77 "cannot compute sizeof (double_t)
24841See \`config.log' for more details" "$LINENO" 5; }
24842   else
24843     ac_cv_sizeof_double_t=0
24844   fi
24845fi
24846
24847fi
24848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24849$as_echo "$ac_cv_sizeof_double_t" >&6; }
24850
24851
24852
24853cat >>confdefs.h <<_ACEOF
24854#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24855_ACEOF
24856
24857
24858
24859# Get size of float, double and long double for comparaison.
24860# The cast to long int works around a bug in the HP C Compiler
24861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24863# This bug is HP SR number 8606223364.
24864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24865$as_echo_n "checking size of float... " >&6; }
24866if ${ac_cv_sizeof_float+:} false; then :
24867  $as_echo_n "(cached) " >&6
24868else
24869  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
24870
24871else
24872  if test "$ac_cv_type_float" = yes; then
24873     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24875as_fn_error 77 "cannot compute sizeof (float)
24876See \`config.log' for more details" "$LINENO" 5; }
24877   else
24878     ac_cv_sizeof_float=0
24879   fi
24880fi
24881
24882fi
24883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24884$as_echo "$ac_cv_sizeof_float" >&6; }
24885
24886
24887
24888cat >>confdefs.h <<_ACEOF
24889#define SIZEOF_FLOAT $ac_cv_sizeof_float
24890_ACEOF
24891
24892
24893# The cast to long int works around a bug in the HP C Compiler
24894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24896# This bug is HP SR number 8606223364.
24897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24898$as_echo_n "checking size of double... " >&6; }
24899if ${ac_cv_sizeof_double+:} false; then :
24900  $as_echo_n "(cached) " >&6
24901else
24902  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
24903
24904else
24905  if test "$ac_cv_type_double" = yes; then
24906     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24908as_fn_error 77 "cannot compute sizeof (double)
24909See \`config.log' for more details" "$LINENO" 5; }
24910   else
24911     ac_cv_sizeof_double=0
24912   fi
24913fi
24914
24915fi
24916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24917$as_echo "$ac_cv_sizeof_double" >&6; }
24918
24919
24920
24921cat >>confdefs.h <<_ACEOF
24922#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24923_ACEOF
24924
24925
24926# The cast to long int works around a bug in the HP C Compiler
24927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24929# This bug is HP SR number 8606223364.
24930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24931$as_echo_n "checking size of long double... " >&6; }
24932if ${ac_cv_sizeof_long_double+:} false; then :
24933  $as_echo_n "(cached) " >&6
24934else
24935  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
24936
24937else
24938  if test "$ac_cv_type_long_double" = yes; then
24939     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24941as_fn_error 77 "cannot compute sizeof (long double)
24942See \`config.log' for more details" "$LINENO" 5; }
24943   else
24944     ac_cv_sizeof_long_double=0
24945   fi
24946fi
24947
24948fi
24949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24950$as_echo "$ac_cv_sizeof_long_double" >&6; }
24951
24952
24953
24954cat >>confdefs.h <<_ACEOF
24955#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24956_ACEOF
24957
24958
24959
24960# Obtain size of a 'unsigned long long' and define as
24961# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
24962# supported then the value defined is zero.
24963# The cast to long int works around a bug in the HP C Compiler
24964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24966# This bug is HP SR number 8606223364.
24967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
24968$as_echo_n "checking size of unsigned long long... " >&6; }
24969if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
24970  $as_echo_n "(cached) " >&6
24971else
24972  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
24973
24974else
24975  if test "$ac_cv_type_unsigned_long_long" = yes; then
24976     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24978as_fn_error 77 "cannot compute sizeof (unsigned long long)
24979See \`config.log' for more details" "$LINENO" 5; }
24980   else
24981     ac_cv_sizeof_unsigned_long_long=0
24982   fi
24983fi
24984
24985fi
24986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
24987$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24988
24989
24990
24991cat >>confdefs.h <<_ACEOF
24992#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24993_ACEOF
24994
24995
24996
24997# The cast to long int works around a bug in the HP C Compiler
24998# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24999# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25000# This bug is HP SR number 8606223364.
25001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
25002$as_echo_n "checking size of void *... " >&6; }
25003if ${ac_cv_sizeof_void_p+:} false; then :
25004  $as_echo_n "(cached) " >&6
25005else
25006  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
25007
25008else
25009  if test "$ac_cv_type_void_p" = yes; then
25010     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25012as_fn_error 77 "cannot compute sizeof (void *)
25013See \`config.log' for more details" "$LINENO" 5; }
25014   else
25015     ac_cv_sizeof_void_p=0
25016   fi
25017fi
25018
25019fi
25020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
25021$as_echo "$ac_cv_sizeof_void_p" >&6; }
25022
25023
25024
25025cat >>confdefs.h <<_ACEOF
25026#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25027_ACEOF
25028
25029
25030
25031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
25032$as_echo_n "checking whether our compiler supports __func__... " >&6; }
25033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034/* end confdefs.h.  */
25035
25036int
25037main ()
25038{
25039{ const char *func = __func__; return(func != 0 ? 0 : 1); }
25040  ;
25041  return 0;
25042}
25043_ACEOF
25044if ac_fn_c_try_compile "$LINENO"; then :
25045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25046$as_echo "yes" >&6; }
25047else
25048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25049$as_echo "no" >&6; }
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
25051$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
25052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053/* end confdefs.h.  */
25054
25055int
25056main ()
25057{
25058{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
25059  ;
25060  return 0;
25061}
25062_ACEOF
25063if ac_fn_c_try_compile "$LINENO"; then :
25064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25065$as_echo "yes" >&6; }
25066
25067$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
25068
25069else
25070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25071$as_echo "no" >&6; }
25072
25073$as_echo "#define __func__ __FILE__" >>confdefs.h
25074
25075fi
25076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077fi
25078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25079
25080########
25081#
25082# Check for functions
25083#
25084########
25085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
25086$as_echo_n "checking whether closedir returns void... " >&6; }
25087if ${ac_cv_func_closedir_void+:} false; then :
25088  $as_echo_n "(cached) " >&6
25089else
25090  if test "$cross_compiling" = yes; then :
25091  ac_cv_func_closedir_void=yes
25092else
25093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25094/* end confdefs.h.  */
25095$ac_includes_default
25096#include <$ac_header_dirent>
25097#ifndef __cplusplus
25098int closedir ();
25099#endif
25100
25101int
25102main ()
25103{
25104return closedir (opendir (".")) != 0;
25105  ;
25106  return 0;
25107}
25108_ACEOF
25109if ac_fn_c_try_run "$LINENO"; then :
25110  ac_cv_func_closedir_void=no
25111else
25112  ac_cv_func_closedir_void=yes
25113fi
25114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25115  conftest.$ac_objext conftest.beam conftest.$ac_ext
25116fi
25117
25118fi
25119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
25120$as_echo "$ac_cv_func_closedir_void" >&6; }
25121if test $ac_cv_func_closedir_void = yes; then
25122
25123$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
25124
25125fi
25126
25127
25128
25129
25130  for ac_header in $ac_header_list
25131do :
25132  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25133ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25134"
25135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25136  cat >>confdefs.h <<_ACEOF
25137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25138_ACEOF
25139
25140fi
25141
25142done
25143
25144
25145
25146
25147
25148
25149
25150
25151for ac_func in getpagesize
25152do :
25153  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25154if test "x$ac_cv_func_getpagesize" = xyes; then :
25155  cat >>confdefs.h <<_ACEOF
25156#define HAVE_GETPAGESIZE 1
25157_ACEOF
25158
25159fi
25160done
25161
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
25163$as_echo_n "checking for working mmap... " >&6; }
25164if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
25165  $as_echo_n "(cached) " >&6
25166else
25167  if test "$cross_compiling" = yes; then :
25168  ac_cv_func_mmap_fixed_mapped=no
25169else
25170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171/* end confdefs.h.  */
25172$ac_includes_default
25173/* malloc might have been renamed as rpl_malloc. */
25174#undef malloc
25175
25176/* Thanks to Mike Haertel and Jim Avera for this test.
25177   Here is a matrix of mmap possibilities:
25178	mmap private not fixed
25179	mmap private fixed at somewhere currently unmapped
25180	mmap private fixed at somewhere already mapped
25181	mmap shared not fixed
25182	mmap shared fixed at somewhere currently unmapped
25183	mmap shared fixed at somewhere already mapped
25184   For private mappings, we should verify that changes cannot be read()
25185   back from the file, nor mmap's back from the file at a different
25186   address.  (There have been systems where private was not correctly
25187   implemented like the infamous i386 svr4.0, and systems where the
25188   VM page cache was not coherent with the file system buffer cache
25189   like early versions of FreeBSD and possibly contemporary NetBSD.)
25190   For shared mappings, we should conversely verify that changes get
25191   propagated back to all the places they're supposed to be.
25192
25193   Grep wants private fixed already mapped.
25194   The main things grep needs to know about mmap are:
25195   * does it exist and is it safe to write into the mmap'd area
25196   * how to use it (BSD variants)  */
25197
25198#include <fcntl.h>
25199#include <sys/mman.h>
25200
25201#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25202char *malloc ();
25203#endif
25204
25205/* This mess was copied from the GNU getpagesize.h.  */
25206#ifndef HAVE_GETPAGESIZE
25207# ifdef _SC_PAGESIZE
25208#  define getpagesize() sysconf(_SC_PAGESIZE)
25209# else /* no _SC_PAGESIZE */
25210#  ifdef HAVE_SYS_PARAM_H
25211#   include <sys/param.h>
25212#   ifdef EXEC_PAGESIZE
25213#    define getpagesize() EXEC_PAGESIZE
25214#   else /* no EXEC_PAGESIZE */
25215#    ifdef NBPG
25216#     define getpagesize() NBPG * CLSIZE
25217#     ifndef CLSIZE
25218#      define CLSIZE 1
25219#     endif /* no CLSIZE */
25220#    else /* no NBPG */
25221#     ifdef NBPC
25222#      define getpagesize() NBPC
25223#     else /* no NBPC */
25224#      ifdef PAGESIZE
25225#       define getpagesize() PAGESIZE
25226#      endif /* PAGESIZE */
25227#     endif /* no NBPC */
25228#    endif /* no NBPG */
25229#   endif /* no EXEC_PAGESIZE */
25230#  else /* no HAVE_SYS_PARAM_H */
25231#   define getpagesize() 8192	/* punt totally */
25232#  endif /* no HAVE_SYS_PARAM_H */
25233# endif /* no _SC_PAGESIZE */
25234
25235#endif /* no HAVE_GETPAGESIZE */
25236
25237int
25238main ()
25239{
25240  char *data, *data2, *data3;
25241  const char *cdata2;
25242  int i, pagesize;
25243  int fd, fd2;
25244
25245  pagesize = getpagesize ();
25246
25247  /* First, make a file with some known garbage in it. */
25248  data = (char *) malloc (pagesize);
25249  if (!data)
25250    return 1;
25251  for (i = 0; i < pagesize; ++i)
25252    *(data + i) = rand ();
25253  umask (0);
25254  fd = creat ("conftest.mmap", 0600);
25255  if (fd < 0)
25256    return 2;
25257  if (write (fd, data, pagesize) != pagesize)
25258    return 3;
25259  close (fd);
25260
25261  /* Next, check that the tail of a page is zero-filled.  File must have
25262     non-zero length, otherwise we risk SIGBUS for entire page.  */
25263  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25264  if (fd2 < 0)
25265    return 4;
25266  cdata2 = "";
25267  if (write (fd2, cdata2, 1) != 1)
25268    return 5;
25269  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
25270  if (data2 == MAP_FAILED)
25271    return 6;
25272  for (i = 0; i < pagesize; ++i)
25273    if (*(data2 + i))
25274      return 7;
25275  close (fd2);
25276  if (munmap (data2, pagesize))
25277    return 8;
25278
25279  /* Next, try to mmap the file at a fixed address which already has
25280     something else allocated at it.  If we can, also make sure that
25281     we see the same garbage.  */
25282  fd = open ("conftest.mmap", O_RDWR);
25283  if (fd < 0)
25284    return 9;
25285  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25286		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25287    return 10;
25288  for (i = 0; i < pagesize; ++i)
25289    if (*(data + i) != *(data2 + i))
25290      return 11;
25291
25292  /* Finally, make sure that changes to the mapped area do not
25293     percolate back to the file as seen by read().  (This is a bug on
25294     some variants of i386 svr4.0.)  */
25295  for (i = 0; i < pagesize; ++i)
25296    *(data2 + i) = *(data2 + i) + 1;
25297  data3 = (char *) malloc (pagesize);
25298  if (!data3)
25299    return 12;
25300  if (read (fd, data3, pagesize) != pagesize)
25301    return 13;
25302  for (i = 0; i < pagesize; ++i)
25303    if (*(data + i) != *(data3 + i))
25304      return 14;
25305  close (fd);
25306  return 0;
25307}
25308_ACEOF
25309if ac_fn_c_try_run "$LINENO"; then :
25310  ac_cv_func_mmap_fixed_mapped=yes
25311else
25312  ac_cv_func_mmap_fixed_mapped=no
25313fi
25314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25315  conftest.$ac_objext conftest.beam conftest.$ac_ext
25316fi
25317
25318fi
25319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
25320$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25321if test $ac_cv_func_mmap_fixed_mapped = yes; then
25322
25323$as_echo "#define HAVE_MMAP 1" >>confdefs.h
25324
25325fi
25326rm -f conftest.mmap conftest.txt
25327
25328for ac_header in vfork.h
25329do :
25330  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25331if test "x$ac_cv_header_vfork_h" = xyes; then :
25332  cat >>confdefs.h <<_ACEOF
25333#define HAVE_VFORK_H 1
25334_ACEOF
25335
25336fi
25337
25338done
25339
25340for ac_func in fork vfork
25341do :
25342  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25343ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25344if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25345  cat >>confdefs.h <<_ACEOF
25346#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25347_ACEOF
25348
25349fi
25350done
25351
25352if test "x$ac_cv_func_fork" = xyes; then
25353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25354$as_echo_n "checking for working fork... " >&6; }
25355if ${ac_cv_func_fork_works+:} false; then :
25356  $as_echo_n "(cached) " >&6
25357else
25358  if test "$cross_compiling" = yes; then :
25359  ac_cv_func_fork_works=cross
25360else
25361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362/* end confdefs.h.  */
25363$ac_includes_default
25364int
25365main ()
25366{
25367
25368	  /* By Ruediger Kuhlmann. */
25369	  return fork () < 0;
25370
25371  ;
25372  return 0;
25373}
25374_ACEOF
25375if ac_fn_c_try_run "$LINENO"; then :
25376  ac_cv_func_fork_works=yes
25377else
25378  ac_cv_func_fork_works=no
25379fi
25380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25381  conftest.$ac_objext conftest.beam conftest.$ac_ext
25382fi
25383
25384fi
25385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25386$as_echo "$ac_cv_func_fork_works" >&6; }
25387
25388else
25389  ac_cv_func_fork_works=$ac_cv_func_fork
25390fi
25391if test "x$ac_cv_func_fork_works" = xcross; then
25392  case $host in
25393    *-*-amigaos* | *-*-msdosdjgpp*)
25394      # Override, as these systems have only a dummy fork() stub
25395      ac_cv_func_fork_works=no
25396      ;;
25397    *)
25398      ac_cv_func_fork_works=yes
25399      ;;
25400  esac
25401  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25402$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25403fi
25404ac_cv_func_vfork_works=$ac_cv_func_vfork
25405if test "x$ac_cv_func_vfork" = xyes; then
25406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25407$as_echo_n "checking for working vfork... " >&6; }
25408if ${ac_cv_func_vfork_works+:} false; then :
25409  $as_echo_n "(cached) " >&6
25410else
25411  if test "$cross_compiling" = yes; then :
25412  ac_cv_func_vfork_works=cross
25413else
25414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415/* end confdefs.h.  */
25416/* Thanks to Paul Eggert for this test.  */
25417$ac_includes_default
25418#include <sys/wait.h>
25419#ifdef HAVE_VFORK_H
25420# include <vfork.h>
25421#endif
25422/* On some sparc systems, changes by the child to local and incoming
25423   argument registers are propagated back to the parent.  The compiler
25424   is told about this with #include <vfork.h>, but some compilers
25425   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25426   static variable whose address is put into a register that is
25427   clobbered by the vfork.  */
25428static void
25429#ifdef __cplusplus
25430sparc_address_test (int arg)
25431# else
25432sparc_address_test (arg) int arg;
25433#endif
25434{
25435  static pid_t child;
25436  if (!child) {
25437    child = vfork ();
25438    if (child < 0) {
25439      perror ("vfork");
25440      _exit(2);
25441    }
25442    if (!child) {
25443      arg = getpid();
25444      write(-1, "", 0);
25445      _exit (arg);
25446    }
25447  }
25448}
25449
25450int
25451main ()
25452{
25453  pid_t parent = getpid ();
25454  pid_t child;
25455
25456  sparc_address_test (0);
25457
25458  child = vfork ();
25459
25460  if (child == 0) {
25461    /* Here is another test for sparc vfork register problems.  This
25462       test uses lots of local variables, at least as many local
25463       variables as main has allocated so far including compiler
25464       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25465       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25466       reuse the register of parent for one of the local variables,
25467       since it will think that parent can't possibly be used any more
25468       in this routine.  Assigning to the local variable will thus
25469       munge parent in the parent process.  */
25470    pid_t
25471      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25472      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25473    /* Convince the compiler that p..p7 are live; otherwise, it might
25474       use the same hardware register for all 8 local variables.  */
25475    if (p != p1 || p != p2 || p != p3 || p != p4
25476	|| p != p5 || p != p6 || p != p7)
25477      _exit(1);
25478
25479    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25480       from child file descriptors.  If the child closes a descriptor
25481       before it execs or exits, this munges the parent's descriptor
25482       as well.  Test for this by closing stdout in the child.  */
25483    _exit(close(fileno(stdout)) != 0);
25484  } else {
25485    int status;
25486    struct stat st;
25487
25488    while (wait(&status) != child)
25489      ;
25490    return (
25491	 /* Was there some problem with vforking?  */
25492	 child < 0
25493
25494	 /* Did the child fail?  (This shouldn't happen.)  */
25495	 || status
25496
25497	 /* Did the vfork/compiler bug occur?  */
25498	 || parent != getpid()
25499
25500	 /* Did the file descriptor bug occur?  */
25501	 || fstat(fileno(stdout), &st) != 0
25502	 );
25503  }
25504}
25505_ACEOF
25506if ac_fn_c_try_run "$LINENO"; then :
25507  ac_cv_func_vfork_works=yes
25508else
25509  ac_cv_func_vfork_works=no
25510fi
25511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25512  conftest.$ac_objext conftest.beam conftest.$ac_ext
25513fi
25514
25515fi
25516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25517$as_echo "$ac_cv_func_vfork_works" >&6; }
25518
25519fi;
25520if test "x$ac_cv_func_fork_works" = xcross; then
25521  ac_cv_func_vfork_works=$ac_cv_func_vfork
25522  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25523$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25524fi
25525
25526if test "x$ac_cv_func_vfork_works" = xyes; then
25527
25528$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25529
25530else
25531
25532$as_echo "#define vfork fork" >>confdefs.h
25533
25534fi
25535if test "x$ac_cv_func_fork_works" = xyes; then
25536
25537$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25538
25539fi
25540
25541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
25542$as_echo_n "checking for working memcmp... " >&6; }
25543if ${ac_cv_func_memcmp_working+:} false; then :
25544  $as_echo_n "(cached) " >&6
25545else
25546  if test "$cross_compiling" = yes; then :
25547  ac_cv_func_memcmp_working=no
25548else
25549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550/* end confdefs.h.  */
25551$ac_includes_default
25552int
25553main ()
25554{
25555
25556  /* Some versions of memcmp are not 8-bit clean.  */
25557  char c0 = '\100', c1 = '\200', c2 = '\201';
25558  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25559    return 1;
25560
25561  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25562     or more and with at least one buffer not starting on a 4-byte boundary.
25563     William Lewis provided this test program.   */
25564  {
25565    char foo[21];
25566    char bar[21];
25567    int i;
25568    for (i = 0; i < 4; i++)
25569      {
25570	char *a = foo + i;
25571	char *b = bar + i;
25572	strcpy (a, "--------01111111");
25573	strcpy (b, "--------10000000");
25574	if (memcmp (a, b, 16) >= 0)
25575	  return 1;
25576      }
25577    return 0;
25578  }
25579
25580  ;
25581  return 0;
25582}
25583_ACEOF
25584if ac_fn_c_try_run "$LINENO"; then :
25585  ac_cv_func_memcmp_working=yes
25586else
25587  ac_cv_func_memcmp_working=no
25588fi
25589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25590  conftest.$ac_objext conftest.beam conftest.$ac_ext
25591fi
25592
25593fi
25594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
25595$as_echo "$ac_cv_func_memcmp_working" >&6; }
25596test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25597  *" memcmp.$ac_objext "* ) ;;
25598  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25599 ;;
25600esac
25601
25602
25603for ac_header in sys/select.h sys/socket.h
25604do :
25605  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25606ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25608  cat >>confdefs.h <<_ACEOF
25609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25610_ACEOF
25611
25612fi
25613
25614done
25615
25616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
25617$as_echo_n "checking types of arguments for select... " >&6; }
25618if ${ac_cv_func_select_args+:} false; then :
25619  $as_echo_n "(cached) " >&6
25620else
25621  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25622 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25623  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625/* end confdefs.h.  */
25626$ac_includes_default
25627#ifdef HAVE_SYS_SELECT_H
25628# include <sys/select.h>
25629#endif
25630#ifdef HAVE_SYS_SOCKET_H
25631# include <sys/socket.h>
25632#endif
25633
25634int
25635main ()
25636{
25637extern int select ($ac_arg1,
25638					    $ac_arg234, $ac_arg234, $ac_arg234,
25639					    $ac_arg5);
25640  ;
25641  return 0;
25642}
25643_ACEOF
25644if ac_fn_c_try_compile "$LINENO"; then :
25645  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25646fi
25647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648  done
25649 done
25650done
25651# Provide a safe default value.
25652: "${ac_cv_func_select_args=int,int *,struct timeval *}"
25653
25654fi
25655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
25656$as_echo "$ac_cv_func_select_args" >&6; }
25657ac_save_IFS=$IFS; IFS=','
25658set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25659IFS=$ac_save_IFS
25660shift
25661
25662cat >>confdefs.h <<_ACEOF
25663#define SELECT_TYPE_ARG1 $1
25664_ACEOF
25665
25666
25667cat >>confdefs.h <<_ACEOF
25668#define SELECT_TYPE_ARG234 ($2)
25669_ACEOF
25670
25671
25672cat >>confdefs.h <<_ACEOF
25673#define SELECT_TYPE_ARG5 ($3)
25674_ACEOF
25675
25676rm -f conftest*
25677
25678if ${ac_cv_func_setvbuf_reversed+:} false; then :
25679  $as_echo_n "(cached) " >&6
25680else
25681  ac_cv_func_setvbuf_reversed=no
25682fi
25683
25684
25685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
25686$as_echo_n "checking for working strtod... " >&6; }
25687if ${ac_cv_func_strtod+:} false; then :
25688  $as_echo_n "(cached) " >&6
25689else
25690  if test "$cross_compiling" = yes; then :
25691  ac_cv_func_strtod=no
25692else
25693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25694/* end confdefs.h.  */
25695
25696$ac_includes_default
25697#ifndef strtod
25698double strtod ();
25699#endif
25700int
25701main()
25702{
25703  {
25704    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
25705    char *string = " +69";
25706    char *term;
25707    double value;
25708    value = strtod (string, &term);
25709    if (value != 69 || term != (string + 4))
25710      return 1;
25711  }
25712
25713  {
25714    /* Under Solaris 2.4, strtod returns the wrong value for the
25715       terminating character under some conditions.  */
25716    char *string = "NaN";
25717    char *term;
25718    strtod (string, &term);
25719    if (term != string && *(term - 1) == 0)
25720      return 1;
25721  }
25722  return 0;
25723}
25724
25725_ACEOF
25726if ac_fn_c_try_run "$LINENO"; then :
25727  ac_cv_func_strtod=yes
25728else
25729  ac_cv_func_strtod=no
25730fi
25731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25732  conftest.$ac_objext conftest.beam conftest.$ac_ext
25733fi
25734
25735fi
25736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
25737$as_echo "$ac_cv_func_strtod" >&6; }
25738if test $ac_cv_func_strtod = no; then
25739  case " $LIBOBJS " in
25740  *" strtod.$ac_objext "* ) ;;
25741  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25742 ;;
25743esac
25744
25745ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
25746if test "x$ac_cv_func_pow" = xyes; then :
25747
25748fi
25749
25750if test $ac_cv_func_pow = no; then
25751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
25752$as_echo_n "checking for pow in -lm... " >&6; }
25753if ${ac_cv_lib_m_pow+:} false; then :
25754  $as_echo_n "(cached) " >&6
25755else
25756  ac_check_lib_save_LIBS=$LIBS
25757LIBS="-lm  $LIBS"
25758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759/* end confdefs.h.  */
25760
25761/* Override any GCC internal prototype to avoid an error.
25762   Use char because int might match the return type of a GCC
25763   builtin and then its argument prototype would still apply.  */
25764#ifdef __cplusplus
25765extern "C"
25766#endif
25767char pow ();
25768int
25769main ()
25770{
25771return pow ();
25772  ;
25773  return 0;
25774}
25775_ACEOF
25776if ac_fn_c_try_link "$LINENO"; then :
25777  ac_cv_lib_m_pow=yes
25778else
25779  ac_cv_lib_m_pow=no
25780fi
25781rm -f core conftest.err conftest.$ac_objext \
25782    conftest$ac_exeext conftest.$ac_ext
25783LIBS=$ac_check_lib_save_LIBS
25784fi
25785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25786$as_echo "$ac_cv_lib_m_pow" >&6; }
25787if test "x$ac_cv_lib_m_pow" = xyes; then :
25788  POW_LIB=-lm
25789else
25790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25791$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25792fi
25793
25794fi
25795
25796fi
25797
25798ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25799if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25800  ac_have_decl=1
25801else
25802  ac_have_decl=0
25803fi
25804
25805cat >>confdefs.h <<_ACEOF
25806#define HAVE_DECL_STRERROR_R $ac_have_decl
25807_ACEOF
25808
25809for ac_func in strerror_r
25810do :
25811  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25812if test "x$ac_cv_func_strerror_r" = xyes; then :
25813  cat >>confdefs.h <<_ACEOF
25814#define HAVE_STRERROR_R 1
25815_ACEOF
25816
25817fi
25818done
25819
25820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25821$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25822if ${ac_cv_func_strerror_r_char_p+:} false; then :
25823  $as_echo_n "(cached) " >&6
25824else
25825
25826    ac_cv_func_strerror_r_char_p=no
25827    if test $ac_cv_have_decl_strerror_r = yes; then
25828      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829/* end confdefs.h.  */
25830$ac_includes_default
25831int
25832main ()
25833{
25834
25835	  char buf[100];
25836	  char x = *strerror_r (0, buf, sizeof buf);
25837	  char *p = strerror_r (0, buf, sizeof buf);
25838	  return !p || x;
25839
25840  ;
25841  return 0;
25842}
25843_ACEOF
25844if ac_fn_c_try_compile "$LINENO"; then :
25845  ac_cv_func_strerror_r_char_p=yes
25846fi
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848    else
25849      # strerror_r is not declared.  Choose between
25850      # systems that have relatively inaccessible declarations for the
25851      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25852      # former has a strerror_r that returns char*, while the latter
25853      # has a strerror_r that returns `int'.
25854      # This test should segfault on the DEC system.
25855      if test "$cross_compiling" = yes; then :
25856  :
25857else
25858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859/* end confdefs.h.  */
25860$ac_includes_default
25861	extern char *strerror_r ();
25862int
25863main ()
25864{
25865char buf[100];
25866	  char x = *strerror_r (0, buf, sizeof buf);
25867	  return ! isalpha (x);
25868  ;
25869  return 0;
25870}
25871_ACEOF
25872if ac_fn_c_try_run "$LINENO"; then :
25873  ac_cv_func_strerror_r_char_p=yes
25874fi
25875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25876  conftest.$ac_objext conftest.beam conftest.$ac_ext
25877fi
25878
25879    fi
25880
25881fi
25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25883$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25884if test $ac_cv_func_strerror_r_char_p = yes; then
25885
25886$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25887
25888fi
25889
25890for ac_func in vprintf
25891do :
25892  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25893if test "x$ac_cv_func_vprintf" = xyes; then :
25894  cat >>confdefs.h <<_ACEOF
25895#define HAVE_VPRINTF 1
25896_ACEOF
25897
25898ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25899if test "x$ac_cv_func__doprnt" = xyes; then :
25900
25901$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25902
25903fi
25904
25905fi
25906done
25907
25908
25909
25910#
25911# Find math library
25912#
25913MATH_LIBS=''
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25915$as_echo_n "checking for sqrt in -lm... " >&6; }
25916if ${ac_cv_lib_m_sqrt+:} false; then :
25917  $as_echo_n "(cached) " >&6
25918else
25919  ac_check_lib_save_LIBS=$LIBS
25920LIBS="-lm  $LIBS"
25921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922/* end confdefs.h.  */
25923
25924/* Override any GCC internal prototype to avoid an error.
25925   Use char because int might match the return type of a GCC
25926   builtin and then its argument prototype would still apply.  */
25927#ifdef __cplusplus
25928extern "C"
25929#endif
25930char sqrt ();
25931int
25932main ()
25933{
25934return sqrt ();
25935  ;
25936  return 0;
25937}
25938_ACEOF
25939if ac_fn_c_try_link "$LINENO"; then :
25940  ac_cv_lib_m_sqrt=yes
25941else
25942  ac_cv_lib_m_sqrt=no
25943fi
25944rm -f core conftest.err conftest.$ac_objext \
25945    conftest$ac_exeext conftest.$ac_ext
25946LIBS=$ac_check_lib_save_LIBS
25947fi
25948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25949$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25950if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25951  MATH_LIBS="-lm"
25952fi
25953
25954LIBS="$MATH_LIBS $LIBS"
25955
25956
25957#
25958# Find socket library
25959#
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25961$as_echo_n "checking for library containing gethostbyname... " >&6; }
25962if ${ac_cv_search_gethostbyname+:} false; then :
25963  $as_echo_n "(cached) " >&6
25964else
25965  ac_func_search_save_LIBS=$LIBS
25966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967/* end confdefs.h.  */
25968
25969/* Override any GCC internal prototype to avoid an error.
25970   Use char because int might match the return type of a GCC
25971   builtin and then its argument prototype would still apply.  */
25972#ifdef __cplusplus
25973extern "C"
25974#endif
25975char gethostbyname ();
25976int
25977main ()
25978{
25979return gethostbyname ();
25980  ;
25981  return 0;
25982}
25983_ACEOF
25984for ac_lib in '' resolv nsl; do
25985  if test -z "$ac_lib"; then
25986    ac_res="none required"
25987  else
25988    ac_res=-l$ac_lib
25989    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25990  fi
25991  if ac_fn_c_try_link "$LINENO"; then :
25992  ac_cv_search_gethostbyname=$ac_res
25993fi
25994rm -f core conftest.err conftest.$ac_objext \
25995    conftest$ac_exeext
25996  if ${ac_cv_search_gethostbyname+:} false; then :
25997  break
25998fi
25999done
26000if ${ac_cv_search_gethostbyname+:} false; then :
26001
26002else
26003  ac_cv_search_gethostbyname=no
26004fi
26005rm conftest.$ac_ext
26006LIBS=$ac_func_search_save_LIBS
26007fi
26008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26009$as_echo "$ac_cv_search_gethostbyname" >&6; }
26010ac_res=$ac_cv_search_gethostbyname
26011if test "$ac_res" != no; then :
26012  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26013
26014fi
26015
26016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26017$as_echo_n "checking for library containing socket... " >&6; }
26018if ${ac_cv_search_socket+:} false; then :
26019  $as_echo_n "(cached) " >&6
26020else
26021  ac_func_search_save_LIBS=$LIBS
26022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023/* end confdefs.h.  */
26024
26025/* Override any GCC internal prototype to avoid an error.
26026   Use char because int might match the return type of a GCC
26027   builtin and then its argument prototype would still apply.  */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031char socket ();
26032int
26033main ()
26034{
26035return socket ();
26036  ;
26037  return 0;
26038}
26039_ACEOF
26040for ac_lib in '' socket; do
26041  if test -z "$ac_lib"; then
26042    ac_res="none required"
26043  else
26044    ac_res=-l$ac_lib
26045    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26046  fi
26047  if ac_fn_c_try_link "$LINENO"; then :
26048  ac_cv_search_socket=$ac_res
26049fi
26050rm -f core conftest.err conftest.$ac_objext \
26051    conftest$ac_exeext
26052  if ${ac_cv_search_socket+:} false; then :
26053  break
26054fi
26055done
26056if ${ac_cv_search_socket+:} false; then :
26057
26058else
26059  ac_cv_search_socket=no
26060fi
26061rm conftest.$ac_ext
26062LIBS=$ac_func_search_save_LIBS
26063fi
26064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26065$as_echo "$ac_cv_search_socket" >&6; }
26066ac_res=$ac_cv_search_socket
26067if test "$ac_res" != no; then :
26068  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26069
26070
26071$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
26072
26073  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
26074
26075fi
26076
26077
26078#
26079# Check for clock_gettime().
26080#
26081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26082$as_echo_n "checking for library containing clock_gettime... " >&6; }
26083if ${ac_cv_search_clock_gettime+:} false; then :
26084  $as_echo_n "(cached) " >&6
26085else
26086  ac_func_search_save_LIBS=$LIBS
26087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088/* end confdefs.h.  */
26089
26090/* Override any GCC internal prototype to avoid an error.
26091   Use char because int might match the return type of a GCC
26092   builtin and then its argument prototype would still apply.  */
26093#ifdef __cplusplus
26094extern "C"
26095#endif
26096char clock_gettime ();
26097int
26098main ()
26099{
26100return clock_gettime ();
26101  ;
26102  return 0;
26103}
26104_ACEOF
26105for ac_lib in '' rt; do
26106  if test -z "$ac_lib"; then
26107    ac_res="none required"
26108  else
26109    ac_res=-l$ac_lib
26110    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26111  fi
26112  if ac_fn_c_try_link "$LINENO"; then :
26113  ac_cv_search_clock_gettime=$ac_res
26114fi
26115rm -f core conftest.err conftest.$ac_objext \
26116    conftest$ac_exeext
26117  if ${ac_cv_search_clock_gettime+:} false; then :
26118  break
26119fi
26120done
26121if ${ac_cv_search_clock_gettime+:} false; then :
26122
26123else
26124  ac_cv_search_clock_gettime=no
26125fi
26126rm conftest.$ac_ext
26127LIBS=$ac_func_search_save_LIBS
26128fi
26129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26130$as_echo "$ac_cv_search_clock_gettime" >&6; }
26131ac_res=$ac_cv_search_clock_gettime
26132if test "$ac_res" != no; then :
26133  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26134
26135
26136$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26137
26138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
26139$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
26140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141/* end confdefs.h.  */
26142
26143    #include <time.h>
26144int
26145main ()
26146{
26147clockid_t clockType = CLOCK_REALTIME;
26148  ;
26149  return 0;
26150}
26151_ACEOF
26152if ac_fn_c_try_compile "$LINENO"; then :
26153
26154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26155$as_echo "yes" >&6; }
26156
26157$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
26158
26159
26160else
26161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26162$as_echo "no" >&6; }
26163
26164fi
26165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166
26167else
26168
26169    for ac_func in gettimeofday ftime
26170do :
26171  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26174  cat >>confdefs.h <<_ACEOF
26175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26176_ACEOF
26177 break
26178fi
26179done
26180
26181
26182
26183fi
26184
26185
26186########
26187#
26188# Check for function prototypes
26189#
26190########
26191
26192ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
26193#include <unistd.h>
26194"
26195if test "x$ac_cv_have_decl_pread" = xyes; then :
26196  ac_have_decl=1
26197else
26198  ac_have_decl=0
26199fi
26200
26201cat >>confdefs.h <<_ACEOF
26202#define HAVE_DECL_PREAD $ac_have_decl
26203_ACEOF
26204ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
26205#include <unistd.h>
26206"
26207if test "x$ac_cv_have_decl_pwrite" = xyes; then :
26208  ac_have_decl=1
26209else
26210  ac_have_decl=0
26211fi
26212
26213cat >>confdefs.h <<_ACEOF
26214#define HAVE_DECL_PWRITE $ac_have_decl
26215_ACEOF
26216
26217
26218ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
26219#include <strings.h>
26220"
26221if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
26222  ac_have_decl=1
26223else
26224  ac_have_decl=0
26225fi
26226
26227cat >>confdefs.h <<_ACEOF
26228#define HAVE_DECL_STRLCPY $ac_have_decl
26229_ACEOF
26230
26231
26232ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
26233#include <stdio.h>
26234#include <stdarg.h>
26235"
26236if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
26237  ac_have_decl=1
26238else
26239  ac_have_decl=0
26240fi
26241
26242cat >>confdefs.h <<_ACEOF
26243#define HAVE_DECL_VSNPRINTF $ac_have_decl
26244_ACEOF
26245
26246
26247########
26248#
26249# C++ Support Tests (For Magick++)
26250#
26251########
26252have_magick_plus_plus='no'
26253if test "$with_magick_plus_plus" = 'yes'; then
26254    OLIBS="$LIBS"
26255    LIBS=''
26256    ac_ext=cpp
26257ac_cpp='$CXXCPP $CPPFLAGS'
26258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26261
26262
26263    # Full set of headers used...
26264    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
26265    # functional iomanip iosfwd iostream iterator list string strstream utility
26266    ac_ext=cpp
26267ac_cpp='$CXXCPP $CPPFLAGS'
26268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26271
26272    ac_ext=cpp
26273ac_cpp='$CXXCPP $CPPFLAGS'
26274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26277if test -z "$CXX"; then
26278  if test -n "$CCC"; then
26279    CXX=$CCC
26280  else
26281    if test -n "$ac_tool_prefix"; then
26282  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26283  do
26284    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26285set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26287$as_echo_n "checking for $ac_word... " >&6; }
26288if ${ac_cv_prog_CXX+:} false; then :
26289  $as_echo_n "(cached) " >&6
26290else
26291  if test -n "$CXX"; then
26292  ac_cv_prog_CXX="$CXX" # Let the user override the test.
26293else
26294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26295for as_dir in $PATH
26296do
26297  IFS=$as_save_IFS
26298  test -z "$as_dir" && as_dir=.
26299    for ac_exec_ext in '' $ac_executable_extensions; do
26300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26301    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26303    break 2
26304  fi
26305done
26306  done
26307IFS=$as_save_IFS
26308
26309fi
26310fi
26311CXX=$ac_cv_prog_CXX
26312if test -n "$CXX"; then
26313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26314$as_echo "$CXX" >&6; }
26315else
26316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26317$as_echo "no" >&6; }
26318fi
26319
26320
26321    test -n "$CXX" && break
26322  done
26323fi
26324if test -z "$CXX"; then
26325  ac_ct_CXX=$CXX
26326  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26327do
26328  # Extract the first word of "$ac_prog", so it can be a program name with args.
26329set dummy $ac_prog; ac_word=$2
26330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26331$as_echo_n "checking for $ac_word... " >&6; }
26332if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26333  $as_echo_n "(cached) " >&6
26334else
26335  if test -n "$ac_ct_CXX"; then
26336  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26337else
26338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26339for as_dir in $PATH
26340do
26341  IFS=$as_save_IFS
26342  test -z "$as_dir" && as_dir=.
26343    for ac_exec_ext in '' $ac_executable_extensions; do
26344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26345    ac_cv_prog_ac_ct_CXX="$ac_prog"
26346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26347    break 2
26348  fi
26349done
26350  done
26351IFS=$as_save_IFS
26352
26353fi
26354fi
26355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26356if test -n "$ac_ct_CXX"; then
26357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26358$as_echo "$ac_ct_CXX" >&6; }
26359else
26360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26361$as_echo "no" >&6; }
26362fi
26363
26364
26365  test -n "$ac_ct_CXX" && break
26366done
26367
26368  if test "x$ac_ct_CXX" = x; then
26369    CXX="g++"
26370  else
26371    case $cross_compiling:$ac_tool_warned in
26372yes:)
26373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26375ac_tool_warned=yes ;;
26376esac
26377    CXX=$ac_ct_CXX
26378  fi
26379fi
26380
26381  fi
26382fi
26383# Provide some information about the compiler.
26384$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
26385set X $ac_compile
26386ac_compiler=$2
26387for ac_option in --version -v -V -qversion; do
26388  { { ac_try="$ac_compiler $ac_option >&5"
26389case "(($ac_try" in
26390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391  *) ac_try_echo=$ac_try;;
26392esac
26393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26394$as_echo "$ac_try_echo"; } >&5
26395  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26396  ac_status=$?
26397  if test -s conftest.err; then
26398    sed '10a\
26399... rest of stderr output deleted ...
26400         10q' conftest.err >conftest.er1
26401    cat conftest.er1 >&5
26402  fi
26403  rm -f conftest.er1 conftest.err
26404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405  test $ac_status = 0; }
26406done
26407
26408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
26409$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
26410if ${ac_cv_cxx_compiler_gnu+:} false; then :
26411  $as_echo_n "(cached) " >&6
26412else
26413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414/* end confdefs.h.  */
26415
26416int
26417main ()
26418{
26419#ifndef __GNUC__
26420       choke me
26421#endif
26422
26423  ;
26424  return 0;
26425}
26426_ACEOF
26427if ac_fn_cxx_try_compile "$LINENO"; then :
26428  ac_compiler_gnu=yes
26429else
26430  ac_compiler_gnu=no
26431fi
26432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26433ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26434
26435fi
26436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
26437$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26438if test $ac_compiler_gnu = yes; then
26439  GXX=yes
26440else
26441  GXX=
26442fi
26443ac_test_CXXFLAGS=${CXXFLAGS+set}
26444ac_save_CXXFLAGS=$CXXFLAGS
26445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
26446$as_echo_n "checking whether $CXX accepts -g... " >&6; }
26447if ${ac_cv_prog_cxx_g+:} false; then :
26448  $as_echo_n "(cached) " >&6
26449else
26450  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26451   ac_cxx_werror_flag=yes
26452   ac_cv_prog_cxx_g=no
26453   CXXFLAGS="-g"
26454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26455/* end confdefs.h.  */
26456
26457int
26458main ()
26459{
26460
26461  ;
26462  return 0;
26463}
26464_ACEOF
26465if ac_fn_cxx_try_compile "$LINENO"; then :
26466  ac_cv_prog_cxx_g=yes
26467else
26468  CXXFLAGS=""
26469      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26470/* end confdefs.h.  */
26471
26472int
26473main ()
26474{
26475
26476  ;
26477  return 0;
26478}
26479_ACEOF
26480if ac_fn_cxx_try_compile "$LINENO"; then :
26481
26482else
26483  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26484	 CXXFLAGS="-g"
26485	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486/* end confdefs.h.  */
26487
26488int
26489main ()
26490{
26491
26492  ;
26493  return 0;
26494}
26495_ACEOF
26496if ac_fn_cxx_try_compile "$LINENO"; then :
26497  ac_cv_prog_cxx_g=yes
26498fi
26499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500fi
26501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26502fi
26503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26504   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26505fi
26506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
26507$as_echo "$ac_cv_prog_cxx_g" >&6; }
26508if test "$ac_test_CXXFLAGS" = set; then
26509  CXXFLAGS=$ac_save_CXXFLAGS
26510elif test $ac_cv_prog_cxx_g = yes; then
26511  if test "$GXX" = yes; then
26512    CXXFLAGS="-g -O2"
26513  else
26514    CXXFLAGS="-g"
26515  fi
26516else
26517  if test "$GXX" = yes; then
26518    CXXFLAGS="-O2"
26519  else
26520    CXXFLAGS=
26521  fi
26522fi
26523ac_ext=cpp
26524ac_cpp='$CXXCPP $CPPFLAGS'
26525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26528
26529depcc="$CXX"  am_compiler_list=
26530
26531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26532$as_echo_n "checking dependency style of $depcc... " >&6; }
26533if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26534  $as_echo_n "(cached) " >&6
26535else
26536  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26537  # We make a subdir and do the tests there.  Otherwise we can end up
26538  # making bogus files that we don't know about and never remove.  For
26539  # instance it was reported that on HP-UX the gcc test will end up
26540  # making a dummy file named 'D' -- because '-MD' means "put the output
26541  # in D".
26542  rm -rf conftest.dir
26543  mkdir conftest.dir
26544  # Copy depcomp to subdir because otherwise we won't find it if we're
26545  # using a relative directory.
26546  cp "$am_depcomp" conftest.dir
26547  cd conftest.dir
26548  # We will build objects and dependencies in a subdirectory because
26549  # it helps to detect inapplicable dependency modes.  For instance
26550  # both Tru64's cc and ICC support -MD to output dependencies as a
26551  # side effect of compilation, but ICC will put the dependencies in
26552  # the current directory while Tru64 will put them in the object
26553  # directory.
26554  mkdir sub
26555
26556  am_cv_CXX_dependencies_compiler_type=none
26557  if test "$am_compiler_list" = ""; then
26558     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26559  fi
26560  am__universal=false
26561  case " $depcc " in #(
26562     *\ -arch\ *\ -arch\ *) am__universal=true ;;
26563     esac
26564
26565  for depmode in $am_compiler_list; do
26566    # Setup a source with many dependencies, because some compilers
26567    # like to wrap large dependency lists on column 80 (with \), and
26568    # we should not choose a depcomp mode which is confused by this.
26569    #
26570    # We need to recreate these files for each test, as the compiler may
26571    # overwrite some of them when testing with obscure command lines.
26572    # This happens at least with the AIX C compiler.
26573    : > sub/conftest.c
26574    for i in 1 2 3 4 5 6; do
26575      echo '#include "conftst'$i'.h"' >> sub/conftest.c
26576      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26577      # Solaris 10 /bin/sh.
26578      echo '/* dummy */' > sub/conftst$i.h
26579    done
26580    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26581
26582    # We check with '-c' and '-o' for the sake of the "dashmstdout"
26583    # mode.  It turns out that the SunPro C++ compiler does not properly
26584    # handle '-M -o', and we need to detect this.  Also, some Intel
26585    # versions had trouble with output in subdirs.
26586    am__obj=sub/conftest.${OBJEXT-o}
26587    am__minus_obj="-o $am__obj"
26588    case $depmode in
26589    gcc)
26590      # This depmode causes a compiler race in universal mode.
26591      test "$am__universal" = false || continue
26592      ;;
26593    nosideeffect)
26594      # After this tag, mechanisms are not by side-effect, so they'll
26595      # only be used when explicitly requested.
26596      if test "x$enable_dependency_tracking" = xyes; then
26597	continue
26598      else
26599	break
26600      fi
26601      ;;
26602    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26603      # This compiler won't grok '-c -o', but also, the minuso test has
26604      # not run yet.  These depmodes are late enough in the game, and
26605      # so weak that their functioning should not be impacted.
26606      am__obj=conftest.${OBJEXT-o}
26607      am__minus_obj=
26608      ;;
26609    none) break ;;
26610    esac
26611    if depmode=$depmode \
26612       source=sub/conftest.c object=$am__obj \
26613       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26614       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26615         >/dev/null 2>conftest.err &&
26616       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26617       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26618       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26619       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26620      # icc doesn't choke on unknown options, it will just issue warnings
26621      # or remarks (even with -Werror).  So we grep stderr for any message
26622      # that says an option was ignored or not supported.
26623      # When given -MP, icc 7.0 and 7.1 complain thusly:
26624      #   icc: Command line warning: ignoring option '-M'; no argument required
26625      # The diagnosis changed in icc 8.0:
26626      #   icc: Command line remark: option '-MP' not supported
26627      if (grep 'ignoring option' conftest.err ||
26628          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26629        am_cv_CXX_dependencies_compiler_type=$depmode
26630        break
26631      fi
26632    fi
26633  done
26634
26635  cd ..
26636  rm -rf conftest.dir
26637else
26638  am_cv_CXX_dependencies_compiler_type=none
26639fi
26640
26641fi
26642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26643$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26644CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26645
26646 if
26647  test "x$enable_dependency_tracking" != xno \
26648  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26649  am__fastdepCXX_TRUE=
26650  am__fastdepCXX_FALSE='#'
26651else
26652  am__fastdepCXX_TRUE='#'
26653  am__fastdepCXX_FALSE=
26654fi
26655
26656
26657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26658$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
26659if ${ax_cv_cxx_bool+:} false; then :
26660  $as_echo_n "(cached) " >&6
26661else
26662       ac_ext=cpp
26663ac_cpp='$CXXCPP $CPPFLAGS'
26664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26667
26668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669/* end confdefs.h.  */
26670       int f(int  x){return 1;}
26671                        int f(char x){return 1;}
26672                        int f(bool x){return 1;}
26673int
26674main ()
26675{
26676bool b = true; return f(b);
26677  ;
26678  return 0;
26679}
26680_ACEOF
26681if ac_fn_cxx_try_compile "$LINENO"; then :
26682  ax_cv_cxx_bool=yes
26683else
26684  ax_cv_cxx_bool=no
26685fi
26686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687     ac_ext=cpp
26688ac_cpp='$CXXCPP $CPPFLAGS'
26689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26692
26693
26694fi
26695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26696$as_echo "$ax_cv_cxx_bool" >&6; }
26697  if test "X$ax_cv_cxx_bool" = Xyes; then :
26698
26699$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26700
26701fi
26702
26703    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26704$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
26705if ${ax_cv_cxx_namespaces+:} false; then :
26706  $as_echo_n "(cached) " >&6
26707else
26708  ac_ext=cpp
26709ac_cpp='$CXXCPP $CPPFLAGS'
26710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26713
26714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715/* end confdefs.h.  */
26716namespace Outer { namespace Inner { int i = 0; }}
26717                                   using namespace Outer::Inner; int foo(void) { return i;}
26718_ACEOF
26719if ac_fn_cxx_try_compile "$LINENO"; then :
26720  ax_cv_cxx_namespaces=yes
26721else
26722  ax_cv_cxx_namespaces=no
26723fi
26724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725 ac_ext=cpp
26726ac_cpp='$CXXCPP $CPPFLAGS'
26727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26730
26731
26732fi
26733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26734$as_echo "$ax_cv_cxx_namespaces" >&6; }
26735if test "$ax_cv_cxx_namespaces" = yes; then
26736
26737$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26738
26739fi
26740
26741
26742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26743$as_echo_n "checking if g++ supports namespace std... " >&6; }
26744if ${ax_cv_cxx_have_std_namespace+:} false; then :
26745  $as_echo_n "(cached) " >&6
26746else
26747  ac_ext=cpp
26748ac_cpp='$CXXCPP $CPPFLAGS'
26749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26752
26753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754/* end confdefs.h.  */
26755#include <iostream>
26756                  std::istream& is = std::cin;
26757int
26758main ()
26759{
26760
26761  ;
26762  return 0;
26763}
26764_ACEOF
26765if ac_fn_cxx_try_compile "$LINENO"; then :
26766  ax_cv_cxx_have_std_namespace=yes
26767else
26768  ax_cv_cxx_have_std_namespace=no
26769fi
26770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771  ac_ext=cpp
26772ac_cpp='$CXXCPP $CPPFLAGS'
26773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26776
26777
26778fi
26779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26780$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26781  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26782
26783$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26784
26785  fi
26786
26787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26788$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26789if ${ac_cv_cxx_have_std_libs+:} false; then :
26790  $as_echo_n "(cached) " >&6
26791else
26792
26793
26794 ac_ext=cpp
26795ac_cpp='$CXXCPP $CPPFLAGS'
26796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26799
26800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801/* end confdefs.h.  */
26802#include <iostream>
26803#include <map>
26804#include <iomanip>
26805#include <cmath>
26806#ifdef HAVE_NAMESPACES
26807using namespace std;
26808#endif
26809int
26810main ()
26811{
26812return 0;
26813  ;
26814  return 0;
26815}
26816_ACEOF
26817if ac_fn_cxx_try_compile "$LINENO"; then :
26818  ac_cv_cxx_have_std_libs=yes
26819else
26820  ac_cv_cxx_have_std_libs=no
26821fi
26822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823 ac_ext=cpp
26824ac_cpp='$CXXCPP $CPPFLAGS'
26825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26828
26829
26830fi
26831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26832$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26833if test "$ac_cv_cxx_have_std_libs" = yes; then
26834
26835$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26836
26837fi
26838
26839
26840  OPENMP_CXXFLAGS=
26841  # Check whether --enable-openmp was given.
26842if test "${enable_openmp+set}" = set; then :
26843  enableval=$enable_openmp;
26844fi
26845
26846  if test "$enable_openmp" != no; then
26847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26848$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26849if ${ac_cv_prog_cxx_openmp+:} false; then :
26850  $as_echo_n "(cached) " >&6
26851else
26852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853/* end confdefs.h.  */
26854
26855#ifndef _OPENMP
26856 choke me
26857#endif
26858#include <omp.h>
26859int main () { return omp_get_num_threads (); }
26860
26861_ACEOF
26862if ac_fn_cxx_try_link "$LINENO"; then :
26863  ac_cv_prog_cxx_openmp='none needed'
26864else
26865  ac_cv_prog_cxx_openmp='unsupported'
26866	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26867                           -Popenmp --openmp; do
26868	    ac_save_CXXFLAGS=$CXXFLAGS
26869	    CXXFLAGS="$CXXFLAGS $ac_option"
26870	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26871/* end confdefs.h.  */
26872
26873#ifndef _OPENMP
26874 choke me
26875#endif
26876#include <omp.h>
26877int main () { return omp_get_num_threads (); }
26878
26879_ACEOF
26880if ac_fn_cxx_try_link "$LINENO"; then :
26881  ac_cv_prog_cxx_openmp=$ac_option
26882fi
26883rm -f core conftest.err conftest.$ac_objext \
26884    conftest$ac_exeext conftest.$ac_ext
26885	    CXXFLAGS=$ac_save_CXXFLAGS
26886	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26887	      break
26888	    fi
26889	  done
26890fi
26891rm -f core conftest.err conftest.$ac_objext \
26892    conftest$ac_exeext conftest.$ac_ext
26893fi
26894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26895$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26896    case $ac_cv_prog_cxx_openmp in #(
26897      "none needed" | unsupported)
26898	;; #(
26899      *)
26900	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26901    esac
26902  fi
26903
26904
26905    ac_ext=c
26906ac_cpp='$CPP $CPPFLAGS'
26907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26909ac_compiler_gnu=$ac_cv_c_compiler_gnu
26910
26911
26912    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26913$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26914    if \
26915        test $ax_cv_cxx_bool = 'yes' && \
26916        test $ax_cv_cxx_namespaces = 'yes' && \
26917        test $ac_cv_cxx_have_std_libs = 'yes' && \
26918        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26919        have_magick_plus_plus='yes'
26920    else
26921        have_magick_plus_plus='no (failed tests)'
26922    fi
26923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26924$as_echo "$have_magick_plus_plus" >&6; }
26925    LIBS="$OLIBS"
26926fi
26927 if test "$have_magick_plus_plus" = 'yes'; then
26928  WITH_MAGICK_PLUS_PLUS_TRUE=
26929  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26930else
26931  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26932  WITH_MAGICK_PLUS_PLUS_FALSE=
26933fi
26934
26935
26936# Only check for delegate libraries in subdirectories if requested.
26937if test "$enable_delegate_build" != 'no'; then
26938    # Check for delegate sub-directories and add -I & -L options as required.
26939    # This presumes that delegates are installed as detailed in the ImageMagick
26940    # README. If delegates are installed in a standard location where the
26941    # compiler will automatically find them then these options should not be
26942    # required.
26943
26944    #
26945    # Most delegates have includes in the same directory as the library, but not all...
26946    #
26947    # Includes
26948    for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
26949        if test -d "$builddir/$dir"; then
26950            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26951        else
26952            if test -d "$srcdirfull/$dir"; then
26953                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26954            fi
26955        fi
26956    done
26957
26958    # Libraries
26959    for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
26960    if test -d "$builddir/$dir/.libs"; then
26961        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26962    else
26963        if test -d "$srcdirfull/$dir/.libs"; then
26964            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26965        fi
26966    fi
26967    if test -d "$builddir/$dir"; then
26968        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26969    else
26970        if test -d "$srcdirfull/$dir"; then
26971            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26972        fi
26973    fi
26974  done
26975fi
26976
26977# Assume that delegate headers reside under same directory as ImageMagick
26978# installation prefix.
26979MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
26980
26981#
26982# Find the X11 RGB database
26983#
26984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26985$as_echo_n "checking for X11 configure files... " >&6; }
26986if ${im_cv_x_configure+:} false; then :
26987  $as_echo_n "(cached) " >&6
26988else
26989  # Look for the header file in a standard set of common directories.
26990# Check X11 before X11Rn because it is often a symlink to the current release.
26991    for ac_dir in          \
26992    /lib/usr/lib/X11       \
26993    /usr/X11/lib           \
26994    /usr/X11R4/lib         \
26995    /usr/X11R5/lib         \
26996    /usr/X11R6/lib         \
26997    /usr/X11R7/lib         \
26998    /usr/X386/lib          \
26999    /usr/XFree86/lib/X11   \
27000    /usr/athena/lib        \
27001    /usr/lib               \
27002    /usr/lib/X11           \
27003    /usr/lib/X11R4         \
27004    /usr/lib/X11R5         \
27005    /usr/lib/X11R6         \
27006    /usr/lib/X11R7         \
27007    /usr/local/X11/lib     \
27008    /usr/local/X11R4/lib   \
27009    /usr/local/X11R5/lib   \
27010    /usr/local/X11R6/lib   \
27011    /usr/local/lib         \
27012    /usr/local/lib/X11     \
27013    /usr/local/lib/X11R4   \
27014    /usr/local/lib/X11R5   \
27015    /usr/local/lib/X11R6   \
27016    /usr/local/lib/X11R7   \
27017    /usr/local/x11r5/lib   \
27018    /usr/lpp/Xamples/lib   \
27019    /usr/openwin/lib       \
27020    /usr/openwin/share/lib \
27021    /usr/unsupported/lib   \
27022    /usr/x386/lib          \
27023    ; do
27024    if test -f "$ac_dir/X11/rgb.txt"; then
27025      im_cv_x_configure="$ac_dir/X11/"
27026      break
27027    elif test -f "$ac_dir/rgb.txt"; then
27028      im_cv_x_configure="$ac_dir/"
27029      break
27030    fi
27031
27032  done
27033fi
27034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
27035$as_echo "$im_cv_x_configure" >&6; }
27036X11_CONFIGURE_PATH="$im_cv_x_configure"
27037case "${build_os}" in
27038  mingw* )
27039    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
27040  ;;
27041esac
27042
27043cat >>confdefs.h <<_ACEOF
27044#define X11_CONFIGURE_PATH "$X11ConfigurePath"
27045_ACEOF
27046
27047
27048#
27049# Find OpenMP library
27050#
27051GOMP_LIBS=''
27052if test "$enable_openmp" != 'no'; then
27053  if test "${GCC}" = "yes"; then
27054    # Open64 (passes for GCC but uses different OpenMP implementation)
27055    if test "x$GOMP_LIBS" = x ; then
27056      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
27057        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
27058$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
27059if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
27060  $as_echo_n "(cached) " >&6
27061else
27062  ac_check_lib_save_LIBS=$LIBS
27063LIBS="-lopenmp  $LIBS"
27064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27065/* end confdefs.h.  */
27066
27067/* Override any GCC internal prototype to avoid an error.
27068   Use char because int might match the return type of a GCC
27069   builtin and then its argument prototype would still apply.  */
27070#ifdef __cplusplus
27071extern "C"
27072#endif
27073char omp_get_num_procs ();
27074int
27075main ()
27076{
27077return omp_get_num_procs ();
27078  ;
27079  return 0;
27080}
27081_ACEOF
27082if ac_fn_c_try_link "$LINENO"; then :
27083  ac_cv_lib_openmp_omp_get_num_procs=yes
27084else
27085  ac_cv_lib_openmp_omp_get_num_procs=no
27086fi
27087rm -f core conftest.err conftest.$ac_objext \
27088    conftest$ac_exeext conftest.$ac_ext
27089LIBS=$ac_check_lib_save_LIBS
27090fi
27091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
27092$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
27093if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
27094  GOMP_LIBS="-lopenmp"
27095fi
27096
27097      fi
27098    fi
27099    # Clang (passes for GCC but uses different OpenMP implementation)
27100    if test "x$LIB_OMP" = x ; then
27101      if $CC --version 2>&1 | grep clang > /dev/null ; then
27102        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lomp" >&5
27103$as_echo_n "checking for GOMP_parallel_start in -lomp... " >&6; }
27104if ${ac_cv_lib_omp_GOMP_parallel_start+:} false; then :
27105  $as_echo_n "(cached) " >&6
27106else
27107  ac_check_lib_save_LIBS=$LIBS
27108LIBS="-lomp  $LIBS"
27109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27110/* end confdefs.h.  */
27111
27112/* Override any GCC internal prototype to avoid an error.
27113   Use char because int might match the return type of a GCC
27114   builtin and then its argument prototype would still apply.  */
27115#ifdef __cplusplus
27116extern "C"
27117#endif
27118char GOMP_parallel_start ();
27119int
27120main ()
27121{
27122return GOMP_parallel_start ();
27123  ;
27124  return 0;
27125}
27126_ACEOF
27127if ac_fn_c_try_link "$LINENO"; then :
27128  ac_cv_lib_omp_GOMP_parallel_start=yes
27129else
27130  ac_cv_lib_omp_GOMP_parallel_start=no
27131fi
27132rm -f core conftest.err conftest.$ac_objext \
27133    conftest$ac_exeext conftest.$ac_ext
27134LIBS=$ac_check_lib_save_LIBS
27135fi
27136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_omp_GOMP_parallel_start" >&5
27137$as_echo "$ac_cv_lib_omp_GOMP_parallel_start" >&6; }
27138if test "x$ac_cv_lib_omp_GOMP_parallel_start" = xyes; then :
27139  LIB_OMP="-lomp"
27140fi
27141
27142      fi
27143    fi
27144    # GCC
27145    if test "x$GOMP_LIBS" = x ; then
27146      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
27147$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
27148if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
27149  $as_echo_n "(cached) " >&6
27150else
27151  ac_check_lib_save_LIBS=$LIBS
27152LIBS="-lgomp  $LIBS"
27153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27154/* end confdefs.h.  */
27155
27156/* Override any GCC internal prototype to avoid an error.
27157   Use char because int might match the return type of a GCC
27158   builtin and then its argument prototype would still apply.  */
27159#ifdef __cplusplus
27160extern "C"
27161#endif
27162char GOMP_parallel_start ();
27163int
27164main ()
27165{
27166return GOMP_parallel_start ();
27167  ;
27168  return 0;
27169}
27170_ACEOF
27171if ac_fn_c_try_link "$LINENO"; then :
27172  ac_cv_lib_gomp_GOMP_parallel_start=yes
27173else
27174  ac_cv_lib_gomp_GOMP_parallel_start=no
27175fi
27176rm -f core conftest.err conftest.$ac_objext \
27177    conftest$ac_exeext conftest.$ac_ext
27178LIBS=$ac_check_lib_save_LIBS
27179fi
27180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
27181$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
27182if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
27183  GOMP_LIBS="-lgomp"
27184fi
27185
27186    fi
27187  else
27188    # Sun CC
27189    if test "x$GOMP_LIBS" = x ; then
27190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
27191$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
27192if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
27193  $as_echo_n "(cached) " >&6
27194else
27195  ac_check_lib_save_LIBS=$LIBS
27196LIBS="-lmtsk  $LIBS"
27197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198/* end confdefs.h.  */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201   Use char because int might match the return type of a GCC
27202   builtin and then its argument prototype would still apply.  */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char sunw_mp_register_warn ();
27207int
27208main ()
27209{
27210return sunw_mp_register_warn ();
27211  ;
27212  return 0;
27213}
27214_ACEOF
27215if ac_fn_c_try_link "$LINENO"; then :
27216  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
27217else
27218  ac_cv_lib_mtsk_sunw_mp_register_warn=no
27219fi
27220rm -f core conftest.err conftest.$ac_objext \
27221    conftest$ac_exeext conftest.$ac_ext
27222LIBS=$ac_check_lib_save_LIBS
27223fi
27224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
27225$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
27226if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
27227  GOMP_LIBS="-lmtsk"
27228fi
27229
27230    fi
27231    # AIX xlc
27232    if test "x$GOMP_LIBS" = x ; then
27233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
27234$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
27235if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
27236  $as_echo_n "(cached) " >&6
27237else
27238  ac_check_lib_save_LIBS=$LIBS
27239LIBS="-lxlsmp  $LIBS"
27240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27241/* end confdefs.h.  */
27242
27243/* Override any GCC internal prototype to avoid an error.
27244   Use char because int might match the return type of a GCC
27245   builtin and then its argument prototype would still apply.  */
27246#ifdef __cplusplus
27247extern "C"
27248#endif
27249char _xlsmpFlush ();
27250int
27251main ()
27252{
27253return _xlsmpFlush ();
27254  ;
27255  return 0;
27256}
27257_ACEOF
27258if ac_fn_c_try_link "$LINENO"; then :
27259  ac_cv_lib_xlsmp__xlsmpFlush=yes
27260else
27261  ac_cv_lib_xlsmp__xlsmpFlush=no
27262fi
27263rm -f core conftest.err conftest.$ac_objext \
27264    conftest$ac_exeext conftest.$ac_ext
27265LIBS=$ac_check_lib_save_LIBS
27266fi
27267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
27268$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
27269if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
27270  GOMP_LIBS="-lxlsmp"
27271fi
27272
27273    fi
27274    # SGI IRIX 6.5 MIPSpro C/C++
27275    if test "x$GOMP_LIBS" = x ; then
27276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
27277$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
27278if ${ac_cv_lib_mp_mp_destroy+:} false; then :
27279  $as_echo_n "(cached) " >&6
27280else
27281  ac_check_lib_save_LIBS=$LIBS
27282LIBS="-lmp  $LIBS"
27283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27284/* end confdefs.h.  */
27285
27286/* Override any GCC internal prototype to avoid an error.
27287   Use char because int might match the return type of a GCC
27288   builtin and then its argument prototype would still apply.  */
27289#ifdef __cplusplus
27290extern "C"
27291#endif
27292char mp_destroy ();
27293int
27294main ()
27295{
27296return mp_destroy ();
27297  ;
27298  return 0;
27299}
27300_ACEOF
27301if ac_fn_c_try_link "$LINENO"; then :
27302  ac_cv_lib_mp_mp_destroy=yes
27303else
27304  ac_cv_lib_mp_mp_destroy=no
27305fi
27306rm -f core conftest.err conftest.$ac_objext \
27307    conftest$ac_exeext conftest.$ac_ext
27308LIBS=$ac_check_lib_save_LIBS
27309fi
27310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
27311$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
27312if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
27313  GOMP_LIBS="-lmp"
27314fi
27315
27316    fi
27317  fi
27318  LIBS="$GOMP_LIBS $LIBS"
27319fi
27320
27321
27322#
27323# Check for jemalloc.
27324#
27325have_jemalloc='no'
27326JEMALLOC_LIBS=''
27327if test "$with_jemalloc" != 'no'; then
27328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
27329$as_echo_n "checking for JEMALLOC support ... " >&6; }
27330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27331$as_echo "" >&6; }
27332  failed=0
27333  passed=0
27334  ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
27335if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
27336  passed=`expr $passed + 1`
27337else
27338  failed=`expr $failed + 1`
27339fi
27340
27341
27342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
27343$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
27344if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
27345  $as_echo_n "(cached) " >&6
27346else
27347  ac_check_lib_save_LIBS=$LIBS
27348LIBS="-ljemalloc  $LIBS"
27349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27350/* end confdefs.h.  */
27351
27352/* Override any GCC internal prototype to avoid an error.
27353   Use char because int might match the return type of a GCC
27354   builtin and then its argument prototype would still apply.  */
27355#ifdef __cplusplus
27356extern "C"
27357#endif
27358char malloc_stats_print ();
27359int
27360main ()
27361{
27362return malloc_stats_print ();
27363  ;
27364  return 0;
27365}
27366_ACEOF
27367if ac_fn_c_try_link "$LINENO"; then :
27368  ac_cv_lib_jemalloc_malloc_stats_print=yes
27369else
27370  ac_cv_lib_jemalloc_malloc_stats_print=no
27371fi
27372rm -f core conftest.err conftest.$ac_objext \
27373    conftest$ac_exeext conftest.$ac_ext
27374LIBS=$ac_check_lib_save_LIBS
27375fi
27376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27377$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27378if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
27379  passed=`expr $passed + 1`
27380else
27381  failed=`expr $failed + 1`
27382fi
27383
27384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27385$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27386  if test $passed -gt 0; then
27387    if test $failed -gt 0; then
27388      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27389$as_echo "no -- some components failed test" >&6; }
27390      have_jemalloc='no (failed tests)'
27391    else
27392      JEMALLOC_LIBS='-ljemalloc'
27393      LIBS="$JEMALLOC_LIBS $LIBS"
27394
27395$as_echo "#define HasJEMALLOC 1" >>confdefs.h
27396
27397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27398$as_echo "yes" >&6; }
27399      have_jemalloc='yes'
27400    fi
27401  else
27402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27403$as_echo "no" >&6; }
27404  fi
27405fi
27406 if test "$have_jemalloc" = 'yes'; then
27407  HasJEMALLOC_TRUE=
27408  HasJEMALLOC_FALSE='#'
27409else
27410  HasJEMALLOC_TRUE='#'
27411  HasJEMALLOC_FALSE=
27412fi
27413
27414
27415
27416#
27417# Check for TCMalloc library
27418#
27419have_tcmalloc='no'
27420TCMALLOC_LIBS=''
27421OLIBS="$LIBS"
27422if test "$have_threads" = 'yes' -a "$with_tcmalloc" != 'no'; then
27423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking tcmalloc library support " >&5
27424$as_echo_n "checking tcmalloc library support ... " >&6; }
27425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27426$as_echo "" >&6; }
27427    failed=0
27428    passed=0
27429
27430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mallinfo in -ltcmalloc_minimal" >&5
27431$as_echo_n "checking for mallinfo in -ltcmalloc_minimal... " >&6; }
27432if ${ac_cv_lib_tcmalloc_minimal_mallinfo+:} false; then :
27433  $as_echo_n "(cached) " >&6
27434else
27435  ac_check_lib_save_LIBS=$LIBS
27436LIBS="-ltcmalloc_minimal  $LIBS"
27437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438/* end confdefs.h.  */
27439
27440/* Override any GCC internal prototype to avoid an error.
27441   Use char because int might match the return type of a GCC
27442   builtin and then its argument prototype would still apply.  */
27443#ifdef __cplusplus
27444extern "C"
27445#endif
27446char mallinfo ();
27447int
27448main ()
27449{
27450return mallinfo ();
27451  ;
27452  return 0;
27453}
27454_ACEOF
27455if ac_fn_c_try_link "$LINENO"; then :
27456  ac_cv_lib_tcmalloc_minimal_mallinfo=yes
27457else
27458  ac_cv_lib_tcmalloc_minimal_mallinfo=no
27459fi
27460rm -f core conftest.err conftest.$ac_objext \
27461    conftest$ac_exeext conftest.$ac_ext
27462LIBS=$ac_check_lib_save_LIBS
27463fi
27464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_mallinfo" >&5
27465$as_echo "$ac_cv_lib_tcmalloc_minimal_mallinfo" >&6; }
27466if test "x$ac_cv_lib_tcmalloc_minimal_mallinfo" = xyes; then :
27467  passed=`expr $passed + 1`
27468else
27469  failed=`expr $failed + 1`
27470fi
27471
27472
27473    if test $passed -gt 0; then
27474        if test $failed -gt 0; then
27475            have_tcmalloc='no (some components failed test)'
27476        else
27477            TCMALLOC_LIBS=-ltcmalloc_minimal
27478            LIBS="$TCMALLOC_LIBS $LIBS"
27479            CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
27480
27481$as_echo "#define HAVE_TCMALLOC 1" >>confdefs.h
27482
27483            have_tcmalloc='yes'
27484        fi
27485    fi
27486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcmalloc memory allocation library is complete " >&5
27487$as_echo_n "checking if tcmalloc memory allocation library is complete ... " >&6; }
27488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tcmalloc" >&5
27489$as_echo "$have_tcmalloc" >&6; }
27490fi
27491 if test "$have_tcmalloc" = 'yes'; then
27492  HAVE_TCMALLOC_TRUE=
27493  HAVE_TCMALLOC_FALSE='#'
27494else
27495  HAVE_TCMALLOC_TRUE='#'
27496  HAVE_TCMALLOC_FALSE=
27497fi
27498
27499
27500
27501#
27502# Check for umem.
27503#
27504have_umem='no'
27505UMEM_LIBS=''
27506if test "$with_umem" != 'no'; then
27507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
27508$as_echo_n "checking for UMEM support ... " >&6; }
27509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27510$as_echo "" >&6; }
27511  failed=0
27512  passed=0
27513  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
27514if test "x$ac_cv_header_umem_h" = xyes; then :
27515  passed=`expr $passed + 1`
27516else
27517  failed=`expr $failed + 1`
27518fi
27519
27520
27521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
27522$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
27523if ${ac_cv_lib_umem_umem_alloc+:} false; then :
27524  $as_echo_n "(cached) " >&6
27525else
27526  ac_check_lib_save_LIBS=$LIBS
27527LIBS="-lumem  $LIBS"
27528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27529/* end confdefs.h.  */
27530
27531/* Override any GCC internal prototype to avoid an error.
27532   Use char because int might match the return type of a GCC
27533   builtin and then its argument prototype would still apply.  */
27534#ifdef __cplusplus
27535extern "C"
27536#endif
27537char umem_alloc ();
27538int
27539main ()
27540{
27541return umem_alloc ();
27542  ;
27543  return 0;
27544}
27545_ACEOF
27546if ac_fn_c_try_link "$LINENO"; then :
27547  ac_cv_lib_umem_umem_alloc=yes
27548else
27549  ac_cv_lib_umem_umem_alloc=no
27550fi
27551rm -f core conftest.err conftest.$ac_objext \
27552    conftest$ac_exeext conftest.$ac_ext
27553LIBS=$ac_check_lib_save_LIBS
27554fi
27555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
27556$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
27557if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
27558  passed=`expr $passed + 1`
27559else
27560  failed=`expr $failed + 1`
27561fi
27562
27563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
27564$as_echo_n "checking for umem_free in -lumem... " >&6; }
27565if ${ac_cv_lib_umem_umem_free+:} false; then :
27566  $as_echo_n "(cached) " >&6
27567else
27568  ac_check_lib_save_LIBS=$LIBS
27569LIBS="-lumem  $LIBS"
27570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27571/* end confdefs.h.  */
27572
27573/* Override any GCC internal prototype to avoid an error.
27574   Use char because int might match the return type of a GCC
27575   builtin and then its argument prototype would still apply.  */
27576#ifdef __cplusplus
27577extern "C"
27578#endif
27579char umem_free ();
27580int
27581main ()
27582{
27583return umem_free ();
27584  ;
27585  return 0;
27586}
27587_ACEOF
27588if ac_fn_c_try_link "$LINENO"; then :
27589  ac_cv_lib_umem_umem_free=yes
27590else
27591  ac_cv_lib_umem_umem_free=no
27592fi
27593rm -f core conftest.err conftest.$ac_objext \
27594    conftest$ac_exeext conftest.$ac_ext
27595LIBS=$ac_check_lib_save_LIBS
27596fi
27597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
27598$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
27599if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
27600  passed=`expr $passed + 1`
27601else
27602  failed=`expr $failed + 1`
27603fi
27604
27605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
27606$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27607  if test $passed -gt 0; then
27608    if test $failed -gt 0; then
27609      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27610$as_echo "no -- some components failed test" >&6; }
27611      have_umem='no (failed tests)'
27612    else
27613      UMEM_LIBS='-lumem'
27614      LIBS="$UMEM_LIBS $LIBS"
27615
27616$as_echo "#define HAVE_UMEM 1" >>confdefs.h
27617
27618      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27619$as_echo "yes" >&6; }
27620      have_umem='yes'
27621    fi
27622  else
27623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27624$as_echo "no" >&6; }
27625  fi
27626fi
27627 if test "$have_umem" = 'yes'; then
27628  HAVE_UMEM_TRUE=
27629  HAVE_UMEM_FALSE='#'
27630else
27631  HAVE_UMEM_TRUE='#'
27632  HAVE_UMEM_FALSE=
27633fi
27634
27635
27636
27637#
27638# Add support for ccmalloc memory debugging library if requested
27639#
27640have_ccmalloc='no'
27641CCMALLOC_LIBS=''
27642if test "$enable_ccmalloc" = 'yes'; then
27643    # Extract the first word of "ccmalloc", so it can be a program name with args.
27644set dummy ccmalloc; ac_word=$2
27645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27646$as_echo_n "checking for $ac_word... " >&6; }
27647if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
27648  $as_echo_n "(cached) " >&6
27649else
27650  case $CCMALLOCDelegate in
27651  [\\/]* | ?:[\\/]*)
27652  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27653  ;;
27654  *)
27655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656for as_dir in $PATH
27657do
27658  IFS=$as_save_IFS
27659  test -z "$as_dir" && as_dir=.
27660    for ac_exec_ext in '' $ac_executable_extensions; do
27661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27662    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
27663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27664    break 2
27665  fi
27666done
27667  done
27668IFS=$as_save_IFS
27669
27670  ;;
27671esac
27672fi
27673CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27674if test -n "$CCMALLOCDelegate"; then
27675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
27676$as_echo "$CCMALLOCDelegate" >&6; }
27677else
27678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27679$as_echo "no" >&6; }
27680fi
27681
27682
27683    if test -n "$CCMALLOCDelegate"; then
27684        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27685        OLIBS="$LIBS"
27686        # Assume that gcc is used with ccmalloc.
27687        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
27688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
27689$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
27690if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
27691  $as_echo_n "(cached) " >&6
27692else
27693  ac_check_lib_save_LIBS=$LIBS
27694LIBS="-lccmalloc -ldl $LIBS"
27695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27696/* end confdefs.h.  */
27697
27698/* Override any GCC internal prototype to avoid an error.
27699   Use char because int might match the return type of a GCC
27700   builtin and then its argument prototype would still apply.  */
27701#ifdef __cplusplus
27702extern "C"
27703#endif
27704char ccmalloc_malloc ();
27705int
27706main ()
27707{
27708return ccmalloc_malloc ();
27709  ;
27710  return 0;
27711}
27712_ACEOF
27713if ac_fn_c_try_link "$LINENO"; then :
27714  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27715else
27716  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
27717fi
27718rm -f core conftest.err conftest.$ac_objext \
27719    conftest$ac_exeext conftest.$ac_ext
27720LIBS=$ac_check_lib_save_LIBS
27721fi
27722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
27723$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
27724if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
27725  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27726fi
27727
27728        if test -n "$CCMALLOC_LIBS"; then
27729            LIBS="$OLIBS"
27730            LIBS="$LIBS $CCMALLOC_LIBS"
27731            have_ccmalloc='yes'
27732        else
27733            LIBS="$OLIBS"
27734        fi
27735    fi
27736fi
27737
27738#
27739# Add support for 'huge pages' if requested
27740#
27741if test "x$enable_hugepages" != "xno"; then :
27742
27743
27744$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27745
27746
27747fi
27748
27749#
27750# Add support for efence memory debugging library if requested
27751#
27752if test "$enable_efence" = 'yes'; then
27753    EFENCE_LIBS='-lefence'
27754    LIBS="$EFENCE_LIBS $LIBS"
27755fi
27756
27757
27758#
27759# Check for BZLIB
27760#
27761
27762
27763# Check whether --with-bzlib was given.
27764if test "${with_bzlib+set}" = set; then :
27765  withval=$with_bzlib; with_bzlib=$withval
27766else
27767  with_bzlib='yes'
27768fi
27769
27770
27771if test "$with_bzlib" != 'yes'; then
27772    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27773fi
27774
27775have_bzlib='no'
27776if test "$with_bzlib" != 'no'; then
27777    BZLIB_LIBS=''
27778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27779$as_echo "-------------------------------------------------------------" >&6; }
27780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
27781$as_echo_n "checking for BZLIB... " >&6; }
27782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27783$as_echo "" >&6; }
27784    failed=0
27785    passed=0
27786    found_libbz=0
27787    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
27788if test "x$ac_cv_header_bzlib_h" = xyes; then :
27789  passed=`expr $passed + 1`
27790else
27791  failed=`expr $failed + 1`
27792fi
27793
27794
27795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
27796$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
27797if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
27798  $as_echo_n "(cached) " >&6
27799else
27800  ac_check_lib_save_LIBS=$LIBS
27801LIBS="-lbz2  $LIBS"
27802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27803/* end confdefs.h.  */
27804
27805/* Override any GCC internal prototype to avoid an error.
27806   Use char because int might match the return type of a GCC
27807   builtin and then its argument prototype would still apply.  */
27808#ifdef __cplusplus
27809extern "C"
27810#endif
27811char BZ2_bzDecompress ();
27812int
27813main ()
27814{
27815return BZ2_bzDecompress ();
27816  ;
27817  return 0;
27818}
27819_ACEOF
27820if ac_fn_c_try_link "$LINENO"; then :
27821  ac_cv_lib_bz2_BZ2_bzDecompress=yes
27822else
27823  ac_cv_lib_bz2_BZ2_bzDecompress=no
27824fi
27825rm -f core conftest.err conftest.$ac_objext \
27826    conftest$ac_exeext conftest.$ac_ext
27827LIBS=$ac_check_lib_save_LIBS
27828fi
27829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
27830$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
27831if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
27832  found_libbz=`expr $found_libbz + 1`
27833fi
27834
27835    if test "$native_win32_build" = 'yes'; then
27836      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
27837$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
27838if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
27839  $as_echo_n "(cached) " >&6
27840else
27841  ac_check_lib_save_LIBS=$LIBS
27842LIBS="-lbz2  $LIBS"
27843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844/* end confdefs.h.  */
27845
27846/* Override any GCC internal prototype to avoid an error.
27847   Use char because int might match the return type of a GCC
27848   builtin and then its argument prototype would still apply.  */
27849#ifdef __cplusplus
27850extern "C"
27851#endif
27852char _imp__BZ2_decompress ();
27853int
27854main ()
27855{
27856return _imp__BZ2_decompress ();
27857  ;
27858  return 0;
27859}
27860_ACEOF
27861if ac_fn_c_try_link "$LINENO"; then :
27862  ac_cv_lib_bz2__imp__BZ2_decompress=yes
27863else
27864  ac_cv_lib_bz2__imp__BZ2_decompress=no
27865fi
27866rm -f core conftest.err conftest.$ac_objext \
27867    conftest$ac_exeext conftest.$ac_ext
27868LIBS=$ac_check_lib_save_LIBS
27869fi
27870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
27871$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
27872if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
27873  found_libbz=`expr $found_libbz + 1`
27874fi
27875
27876    fi
27877    if test $found_libbz -gt 0; then
27878      passed=`expr $passed + 1`
27879    else
27880      failed=`expr $failed + 1`
27881    fi
27882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
27883$as_echo_n "checking if BZLIB package is complete... " >&6; }
27884    if test $passed -gt 0; then
27885      if test $failed -gt 0; then
27886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27887$as_echo "no -- some components failed test" >&6; }
27888        have_bzlib='no (failed tests)'
27889      else
27890        BZLIB_LIBS='-lbz2'
27891        LIBS="$BZLIB_LIBS $LIBS"
27892
27893$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
27894
27895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27896$as_echo "yes" >&6; }
27897        have_bzlib='yes'
27898      fi
27899    else
27900      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27901$as_echo "no" >&6; }
27902    fi
27903fi
27904 if test "$have_bzlib" = 'yes'; then
27905  BZLIB_DELEGATE_TRUE=
27906  BZLIB_DELEGATE_FALSE='#'
27907else
27908  BZLIB_DELEGATE_TRUE='#'
27909  BZLIB_DELEGATE_FALSE=
27910fi
27911
27912
27913
27914#
27915# Find the X11 include and library directories.
27916#
27917IPC_LIBS=''
27918X11_LIBS=''
27919XEXT_LIBS=''
27920XT_LIBS=''
27921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27922$as_echo_n "checking for X... " >&6; }
27923
27924
27925# Check whether --with-x was given.
27926if test "${with_x+set}" = set; then :
27927  withval=$with_x;
27928fi
27929
27930# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27931if test "x$with_x" = xno; then
27932  # The user explicitly disabled X.
27933  have_x=disabled
27934else
27935  case $x_includes,$x_libraries in #(
27936    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27937    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27938  $as_echo_n "(cached) " >&6
27939else
27940  # One or both of the vars are not set, and there is no cached value.
27941ac_x_includes=no ac_x_libraries=no
27942rm -f -r conftest.dir
27943if mkdir conftest.dir; then
27944  cd conftest.dir
27945  cat >Imakefile <<'_ACEOF'
27946incroot:
27947	@echo incroot='${INCROOT}'
27948usrlibdir:
27949	@echo usrlibdir='${USRLIBDIR}'
27950libdir:
27951	@echo libdir='${LIBDIR}'
27952_ACEOF
27953  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27954    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27955    for ac_var in incroot usrlibdir libdir; do
27956      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27957    done
27958    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27959    for ac_extension in a so sl dylib la dll; do
27960      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27961	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27962	ac_im_usrlibdir=$ac_im_libdir; break
27963      fi
27964    done
27965    # Screen out bogus values from the imake configuration.  They are
27966    # bogus both because they are the default anyway, and because
27967    # using them would break gcc on systems where it needs fixed includes.
27968    case $ac_im_incroot in
27969	/usr/include) ac_x_includes= ;;
27970	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27971    esac
27972    case $ac_im_usrlibdir in
27973	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27974	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27975    esac
27976  fi
27977  cd ..
27978  rm -f -r conftest.dir
27979fi
27980
27981# Standard set of common directories for X headers.
27982# Check X11 before X11Rn because it is often a symlink to the current release.
27983ac_x_header_dirs='
27984/usr/X11/include
27985/usr/X11R7/include
27986/usr/X11R6/include
27987/usr/X11R5/include
27988/usr/X11R4/include
27989
27990/usr/include/X11
27991/usr/include/X11R7
27992/usr/include/X11R6
27993/usr/include/X11R5
27994/usr/include/X11R4
27995
27996/usr/local/X11/include
27997/usr/local/X11R7/include
27998/usr/local/X11R6/include
27999/usr/local/X11R5/include
28000/usr/local/X11R4/include
28001
28002/usr/local/include/X11
28003/usr/local/include/X11R7
28004/usr/local/include/X11R6
28005/usr/local/include/X11R5
28006/usr/local/include/X11R4
28007
28008/usr/X386/include
28009/usr/x386/include
28010/usr/XFree86/include/X11
28011
28012/usr/include
28013/usr/local/include
28014/usr/unsupported/include
28015/usr/athena/include
28016/usr/local/x11r5/include
28017/usr/lpp/Xamples/include
28018
28019/usr/openwin/include
28020/usr/openwin/share/include'
28021
28022if test "$ac_x_includes" = no; then
28023  # Guess where to find include files, by looking for Xlib.h.
28024  # First, try using that file with no special directory specified.
28025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28026/* end confdefs.h.  */
28027#include <X11/Xlib.h>
28028_ACEOF
28029if ac_fn_c_try_cpp "$LINENO"; then :
28030  # We can compile using X headers with no special include directory.
28031ac_x_includes=
28032else
28033  for ac_dir in $ac_x_header_dirs; do
28034  if test -r "$ac_dir/X11/Xlib.h"; then
28035    ac_x_includes=$ac_dir
28036    break
28037  fi
28038done
28039fi
28040rm -f conftest.err conftest.i conftest.$ac_ext
28041fi # $ac_x_includes = no
28042
28043if test "$ac_x_libraries" = no; then
28044  # Check for the libraries.
28045  # See if we find them without any special options.
28046  # Don't add to $LIBS permanently.
28047  ac_save_LIBS=$LIBS
28048  LIBS="-lX11 $LIBS"
28049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050/* end confdefs.h.  */
28051#include <X11/Xlib.h>
28052int
28053main ()
28054{
28055XrmInitialize ()
28056  ;
28057  return 0;
28058}
28059_ACEOF
28060if ac_fn_c_try_link "$LINENO"; then :
28061  LIBS=$ac_save_LIBS
28062# We can link X programs with no special library path.
28063ac_x_libraries=
28064else
28065  LIBS=$ac_save_LIBS
28066for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28067do
28068  # Don't even attempt the hair of trying to link an X program!
28069  for ac_extension in a so sl dylib la dll; do
28070    if test -r "$ac_dir/libX11.$ac_extension"; then
28071      ac_x_libraries=$ac_dir
28072      break 2
28073    fi
28074  done
28075done
28076fi
28077rm -f core conftest.err conftest.$ac_objext \
28078    conftest$ac_exeext conftest.$ac_ext
28079fi # $ac_x_libraries = no
28080
28081case $ac_x_includes,$ac_x_libraries in #(
28082  no,* | *,no | *\'*)
28083    # Didn't find X, or a directory has "'" in its name.
28084    ac_cv_have_x="have_x=no";; #(
28085  *)
28086    # Record where we found X for the cache.
28087    ac_cv_have_x="have_x=yes\
28088	ac_x_includes='$ac_x_includes'\
28089	ac_x_libraries='$ac_x_libraries'"
28090esac
28091fi
28092;; #(
28093    *) have_x=yes;;
28094  esac
28095  eval "$ac_cv_have_x"
28096fi # $with_x != no
28097
28098if test "$have_x" != yes; then
28099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
28100$as_echo "$have_x" >&6; }
28101  no_x=yes
28102else
28103  # If each of the values was on the command line, it overrides each guess.
28104  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28105  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28106  # Update the cache value to reflect the command line values.
28107  ac_cv_have_x="have_x=yes\
28108	ac_x_includes='$x_includes'\
28109	ac_x_libraries='$x_libraries'"
28110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
28111$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
28112fi
28113
28114if test "$no_x" = yes; then
28115  # Not all programs may use this symbol, but it does not hurt to define it.
28116
28117$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
28118
28119  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28120else
28121  if test -n "$x_includes"; then
28122    X_CFLAGS="$X_CFLAGS -I$x_includes"
28123  fi
28124
28125  # It would also be nice to do this for all -L options, not just this one.
28126  if test -n "$x_libraries"; then
28127    X_LIBS="$X_LIBS -L$x_libraries"
28128    # For Solaris; some versions of Sun CC require a space after -R and
28129    # others require no space.  Words are not sufficient . . . .
28130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
28131$as_echo_n "checking whether -R must be followed by a space... " >&6; }
28132    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28133    ac_xsave_c_werror_flag=$ac_c_werror_flag
28134    ac_c_werror_flag=yes
28135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28136/* end confdefs.h.  */
28137
28138int
28139main ()
28140{
28141
28142  ;
28143  return 0;
28144}
28145_ACEOF
28146if ac_fn_c_try_link "$LINENO"; then :
28147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28148$as_echo "no" >&6; }
28149       X_LIBS="$X_LIBS -R$x_libraries"
28150else
28151  LIBS="$ac_xsave_LIBS -R $x_libraries"
28152       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28153/* end confdefs.h.  */
28154
28155int
28156main ()
28157{
28158
28159  ;
28160  return 0;
28161}
28162_ACEOF
28163if ac_fn_c_try_link "$LINENO"; then :
28164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28165$as_echo "yes" >&6; }
28166	  X_LIBS="$X_LIBS -R $x_libraries"
28167else
28168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
28169$as_echo "neither works" >&6; }
28170fi
28171rm -f core conftest.err conftest.$ac_objext \
28172    conftest$ac_exeext conftest.$ac_ext
28173fi
28174rm -f core conftest.err conftest.$ac_objext \
28175    conftest$ac_exeext conftest.$ac_ext
28176    ac_c_werror_flag=$ac_xsave_c_werror_flag
28177    LIBS=$ac_xsave_LIBS
28178  fi
28179
28180  # Check for system-dependent libraries X programs must link with.
28181  # Do this before checking for the system-independent R6 libraries
28182  # (-lICE), since we may need -lsocket or whatever for X linking.
28183
28184  if test "$ISC" = yes; then
28185    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28186  else
28187    # Martyn Johnson says this is needed for Ultrix, if the X
28188    # libraries were built with DECnet support.  And Karl Berry says
28189    # the Alpha needs dnet_stub (dnet does not exist).
28190    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192/* end confdefs.h.  */
28193
28194/* Override any GCC internal prototype to avoid an error.
28195   Use char because int might match the return type of a GCC
28196   builtin and then its argument prototype would still apply.  */
28197#ifdef __cplusplus
28198extern "C"
28199#endif
28200char XOpenDisplay ();
28201int
28202main ()
28203{
28204return XOpenDisplay ();
28205  ;
28206  return 0;
28207}
28208_ACEOF
28209if ac_fn_c_try_link "$LINENO"; then :
28210
28211else
28212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
28213$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
28214if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
28215  $as_echo_n "(cached) " >&6
28216else
28217  ac_check_lib_save_LIBS=$LIBS
28218LIBS="-ldnet  $LIBS"
28219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28220/* end confdefs.h.  */
28221
28222/* Override any GCC internal prototype to avoid an error.
28223   Use char because int might match the return type of a GCC
28224   builtin and then its argument prototype would still apply.  */
28225#ifdef __cplusplus
28226extern "C"
28227#endif
28228char dnet_ntoa ();
28229int
28230main ()
28231{
28232return dnet_ntoa ();
28233  ;
28234  return 0;
28235}
28236_ACEOF
28237if ac_fn_c_try_link "$LINENO"; then :
28238  ac_cv_lib_dnet_dnet_ntoa=yes
28239else
28240  ac_cv_lib_dnet_dnet_ntoa=no
28241fi
28242rm -f core conftest.err conftest.$ac_objext \
28243    conftest$ac_exeext conftest.$ac_ext
28244LIBS=$ac_check_lib_save_LIBS
28245fi
28246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28247$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
28248if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
28249  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28250fi
28251
28252    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28253      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
28254$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
28255if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
28256  $as_echo_n "(cached) " >&6
28257else
28258  ac_check_lib_save_LIBS=$LIBS
28259LIBS="-ldnet_stub  $LIBS"
28260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28261/* end confdefs.h.  */
28262
28263/* Override any GCC internal prototype to avoid an error.
28264   Use char because int might match the return type of a GCC
28265   builtin and then its argument prototype would still apply.  */
28266#ifdef __cplusplus
28267extern "C"
28268#endif
28269char dnet_ntoa ();
28270int
28271main ()
28272{
28273return dnet_ntoa ();
28274  ;
28275  return 0;
28276}
28277_ACEOF
28278if ac_fn_c_try_link "$LINENO"; then :
28279  ac_cv_lib_dnet_stub_dnet_ntoa=yes
28280else
28281  ac_cv_lib_dnet_stub_dnet_ntoa=no
28282fi
28283rm -f core conftest.err conftest.$ac_objext \
28284    conftest$ac_exeext conftest.$ac_ext
28285LIBS=$ac_check_lib_save_LIBS
28286fi
28287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28288$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
28289if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
28290  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28291fi
28292
28293    fi
28294fi
28295rm -f core conftest.err conftest.$ac_objext \
28296    conftest$ac_exeext conftest.$ac_ext
28297    LIBS="$ac_xsave_LIBS"
28298
28299    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28300    # to get the SysV transport functions.
28301    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28302    # needs -lnsl.
28303    # The nsl library prevents programs from opening the X display
28304    # on Irix 5.2, according to T.E. Dickey.
28305    # The functions gethostbyname, getservbyname, and inet_addr are
28306    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28307    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
28308if test "x$ac_cv_func_gethostbyname" = xyes; then :
28309
28310fi
28311
28312    if test $ac_cv_func_gethostbyname = no; then
28313      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
28314$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28315if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
28316  $as_echo_n "(cached) " >&6
28317else
28318  ac_check_lib_save_LIBS=$LIBS
28319LIBS="-lnsl  $LIBS"
28320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321/* end confdefs.h.  */
28322
28323/* Override any GCC internal prototype to avoid an error.
28324   Use char because int might match the return type of a GCC
28325   builtin and then its argument prototype would still apply.  */
28326#ifdef __cplusplus
28327extern "C"
28328#endif
28329char gethostbyname ();
28330int
28331main ()
28332{
28333return gethostbyname ();
28334  ;
28335  return 0;
28336}
28337_ACEOF
28338if ac_fn_c_try_link "$LINENO"; then :
28339  ac_cv_lib_nsl_gethostbyname=yes
28340else
28341  ac_cv_lib_nsl_gethostbyname=no
28342fi
28343rm -f core conftest.err conftest.$ac_objext \
28344    conftest$ac_exeext conftest.$ac_ext
28345LIBS=$ac_check_lib_save_LIBS
28346fi
28347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
28348$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28349if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
28350  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28351fi
28352
28353      if test $ac_cv_lib_nsl_gethostbyname = no; then
28354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
28355$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
28356if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
28357  $as_echo_n "(cached) " >&6
28358else
28359  ac_check_lib_save_LIBS=$LIBS
28360LIBS="-lbsd  $LIBS"
28361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28362/* end confdefs.h.  */
28363
28364/* Override any GCC internal prototype to avoid an error.
28365   Use char because int might match the return type of a GCC
28366   builtin and then its argument prototype would still apply.  */
28367#ifdef __cplusplus
28368extern "C"
28369#endif
28370char gethostbyname ();
28371int
28372main ()
28373{
28374return gethostbyname ();
28375  ;
28376  return 0;
28377}
28378_ACEOF
28379if ac_fn_c_try_link "$LINENO"; then :
28380  ac_cv_lib_bsd_gethostbyname=yes
28381else
28382  ac_cv_lib_bsd_gethostbyname=no
28383fi
28384rm -f core conftest.err conftest.$ac_objext \
28385    conftest$ac_exeext conftest.$ac_ext
28386LIBS=$ac_check_lib_save_LIBS
28387fi
28388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
28389$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
28390if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
28391  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28392fi
28393
28394      fi
28395    fi
28396
28397    # lieder@skyler.mavd.honeywell.com says without -lsocket,
28398    # socket/setsockopt and other routines are undefined under SCO ODT
28399    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
28400    # on later versions), says Simon Leinen: it contains gethostby*
28401    # variants that don't use the name server (or something).  -lsocket
28402    # must be given before -lnsl if both are needed.  We assume that
28403    # if connect needs -lnsl, so does gethostbyname.
28404    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
28405if test "x$ac_cv_func_connect" = xyes; then :
28406
28407fi
28408
28409    if test $ac_cv_func_connect = no; then
28410      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
28411$as_echo_n "checking for connect in -lsocket... " >&6; }
28412if ${ac_cv_lib_socket_connect+:} false; then :
28413  $as_echo_n "(cached) " >&6
28414else
28415  ac_check_lib_save_LIBS=$LIBS
28416LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28418/* end confdefs.h.  */
28419
28420/* Override any GCC internal prototype to avoid an error.
28421   Use char because int might match the return type of a GCC
28422   builtin and then its argument prototype would still apply.  */
28423#ifdef __cplusplus
28424extern "C"
28425#endif
28426char connect ();
28427int
28428main ()
28429{
28430return connect ();
28431  ;
28432  return 0;
28433}
28434_ACEOF
28435if ac_fn_c_try_link "$LINENO"; then :
28436  ac_cv_lib_socket_connect=yes
28437else
28438  ac_cv_lib_socket_connect=no
28439fi
28440rm -f core conftest.err conftest.$ac_objext \
28441    conftest$ac_exeext conftest.$ac_ext
28442LIBS=$ac_check_lib_save_LIBS
28443fi
28444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
28445$as_echo "$ac_cv_lib_socket_connect" >&6; }
28446if test "x$ac_cv_lib_socket_connect" = xyes; then :
28447  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28448fi
28449
28450    fi
28451
28452    # Guillermo Gomez says -lposix is necessary on A/UX.
28453    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
28454if test "x$ac_cv_func_remove" = xyes; then :
28455
28456fi
28457
28458    if test $ac_cv_func_remove = no; then
28459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
28460$as_echo_n "checking for remove in -lposix... " >&6; }
28461if ${ac_cv_lib_posix_remove+:} false; then :
28462  $as_echo_n "(cached) " >&6
28463else
28464  ac_check_lib_save_LIBS=$LIBS
28465LIBS="-lposix  $LIBS"
28466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28467/* end confdefs.h.  */
28468
28469/* Override any GCC internal prototype to avoid an error.
28470   Use char because int might match the return type of a GCC
28471   builtin and then its argument prototype would still apply.  */
28472#ifdef __cplusplus
28473extern "C"
28474#endif
28475char remove ();
28476int
28477main ()
28478{
28479return remove ();
28480  ;
28481  return 0;
28482}
28483_ACEOF
28484if ac_fn_c_try_link "$LINENO"; then :
28485  ac_cv_lib_posix_remove=yes
28486else
28487  ac_cv_lib_posix_remove=no
28488fi
28489rm -f core conftest.err conftest.$ac_objext \
28490    conftest$ac_exeext conftest.$ac_ext
28491LIBS=$ac_check_lib_save_LIBS
28492fi
28493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
28494$as_echo "$ac_cv_lib_posix_remove" >&6; }
28495if test "x$ac_cv_lib_posix_remove" = xyes; then :
28496  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28497fi
28498
28499    fi
28500
28501    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28502    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
28503if test "x$ac_cv_func_shmat" = xyes; then :
28504
28505fi
28506
28507    if test $ac_cv_func_shmat = no; then
28508      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
28509$as_echo_n "checking for shmat in -lipc... " >&6; }
28510if ${ac_cv_lib_ipc_shmat+:} false; then :
28511  $as_echo_n "(cached) " >&6
28512else
28513  ac_check_lib_save_LIBS=$LIBS
28514LIBS="-lipc  $LIBS"
28515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28516/* end confdefs.h.  */
28517
28518/* Override any GCC internal prototype to avoid an error.
28519   Use char because int might match the return type of a GCC
28520   builtin and then its argument prototype would still apply.  */
28521#ifdef __cplusplus
28522extern "C"
28523#endif
28524char shmat ();
28525int
28526main ()
28527{
28528return shmat ();
28529  ;
28530  return 0;
28531}
28532_ACEOF
28533if ac_fn_c_try_link "$LINENO"; then :
28534  ac_cv_lib_ipc_shmat=yes
28535else
28536  ac_cv_lib_ipc_shmat=no
28537fi
28538rm -f core conftest.err conftest.$ac_objext \
28539    conftest$ac_exeext conftest.$ac_ext
28540LIBS=$ac_check_lib_save_LIBS
28541fi
28542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
28543$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
28544if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
28545  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28546fi
28547
28548    fi
28549  fi
28550
28551  # Check for libraries that X11R6 Xt/Xaw programs need.
28552  ac_save_LDFLAGS=$LDFLAGS
28553  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28554  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28555  # check for ICE first), but we must link in the order -lSM -lICE or
28556  # we get undefined symbols.  So assume we have SM if we have ICE.
28557  # These have to be linked with before -lX11, unlike the other
28558  # libraries we check for below, so use a different variable.
28559  # John Interrante, Karl Berry
28560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
28561$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
28562if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
28563  $as_echo_n "(cached) " >&6
28564else
28565  ac_check_lib_save_LIBS=$LIBS
28566LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28568/* end confdefs.h.  */
28569
28570/* Override any GCC internal prototype to avoid an error.
28571   Use char because int might match the return type of a GCC
28572   builtin and then its argument prototype would still apply.  */
28573#ifdef __cplusplus
28574extern "C"
28575#endif
28576char IceConnectionNumber ();
28577int
28578main ()
28579{
28580return IceConnectionNumber ();
28581  ;
28582  return 0;
28583}
28584_ACEOF
28585if ac_fn_c_try_link "$LINENO"; then :
28586  ac_cv_lib_ICE_IceConnectionNumber=yes
28587else
28588  ac_cv_lib_ICE_IceConnectionNumber=no
28589fi
28590rm -f core conftest.err conftest.$ac_objext \
28591    conftest$ac_exeext conftest.$ac_ext
28592LIBS=$ac_check_lib_save_LIBS
28593fi
28594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28595$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28596if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
28597  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28598fi
28599
28600  LDFLAGS=$ac_save_LDFLAGS
28601
28602fi
28603
28604if test "$no_x" != 'yes'; then
28605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28606$as_echo "-------------------------------------------------------------" >&6; }
28607    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
28608$as_echo_n "checking for X11... " >&6; }
28609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28610$as_echo "" >&6; }
28611    LDFLAGS="$LDFLAGS $X_LIBS"
28612    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28613    LIBS="$X11_LIBS $LIBS"
28614    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28615
28616
28617$as_echo "#define X11_DELEGATE 1" >>confdefs.h
28618
28619    #
28620    # Check for X11 shared memory extension
28621    #
28622    # shmctl is required to support the shared memory extension
28623    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
28624if test "x$ac_cv_func_shmctl" = xyes; then :
28625  have_shmctl='yes'
28626fi
28627
28628    if test "$have_shmctl" != 'yes'; then
28629        PERSIST_LIBS=$LIBS
28630        LIBS="$LIBS -lcygipc"
28631        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28632/* end confdefs.h.  */
28633
28634/* Override any GCC internal prototype to avoid an error.
28635   Use char because int might match the return type of a GCC
28636   builtin and then its argument prototype would still apply.  */
28637#ifdef __cplusplus
28638extern "C"
28639#endif
28640char shmctl ();
28641int
28642main ()
28643{
28644return shmctl ();
28645  ;
28646  return 0;
28647}
28648_ACEOF
28649if ac_fn_c_try_link "$LINENO"; then :
28650  have_shmctl='yes'; IPC_LIBS='-lcygipc'
28651fi
28652rm -f core conftest.err conftest.$ac_objext \
28653    conftest$ac_exeext conftest.$ac_ext
28654        LIBS=$PERSIST_LIBS
28655    fi
28656
28657    if test "$have_shmctl" = 'yes'; then
28658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
28659$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
28660if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
28661  $as_echo_n "(cached) " >&6
28662else
28663  ac_check_lib_save_LIBS=$LIBS
28664LIBS="-lXext  $LIBS"
28665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28666/* end confdefs.h.  */
28667
28668/* Override any GCC internal prototype to avoid an error.
28669   Use char because int might match the return type of a GCC
28670   builtin and then its argument prototype would still apply.  */
28671#ifdef __cplusplus
28672extern "C"
28673#endif
28674char XShmAttach ();
28675int
28676main ()
28677{
28678return XShmAttach ();
28679  ;
28680  return 0;
28681}
28682_ACEOF
28683if ac_fn_c_try_link "$LINENO"; then :
28684  ac_cv_lib_Xext_XShmAttach=yes
28685else
28686  ac_cv_lib_Xext_XShmAttach=no
28687fi
28688rm -f core conftest.err conftest.$ac_objext \
28689    conftest$ac_exeext conftest.$ac_ext
28690LIBS=$ac_check_lib_save_LIBS
28691fi
28692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
28693$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
28694if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
28695  XEXT_LIBS='-lXext' ;
28696$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
28697
28698fi
28699
28700    fi
28701
28702    #
28703    # Check for X11 shape extension
28704    #
28705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
28706$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
28707if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
28708  $as_echo_n "(cached) " >&6
28709else
28710  ac_check_lib_save_LIBS=$LIBS
28711LIBS="-lXext  $LIBS"
28712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713/* end confdefs.h.  */
28714
28715/* Override any GCC internal prototype to avoid an error.
28716   Use char because int might match the return type of a GCC
28717   builtin and then its argument prototype would still apply.  */
28718#ifdef __cplusplus
28719extern "C"
28720#endif
28721char XShapeCombineMask ();
28722int
28723main ()
28724{
28725return XShapeCombineMask ();
28726  ;
28727  return 0;
28728}
28729_ACEOF
28730if ac_fn_c_try_link "$LINENO"; then :
28731  ac_cv_lib_Xext_XShapeCombineMask=yes
28732else
28733  ac_cv_lib_Xext_XShapeCombineMask=no
28734fi
28735rm -f core conftest.err conftest.$ac_objext \
28736    conftest$ac_exeext conftest.$ac_ext
28737LIBS=$ac_check_lib_save_LIBS
28738fi
28739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
28740$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
28741if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
28742  XEXT_LIBS='-lXext' ;
28743$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
28744
28745fi
28746
28747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
28748$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
28749if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
28750  $as_echo_n "(cached) " >&6
28751else
28752  ac_check_lib_save_LIBS=$LIBS
28753LIBS="-lXt  $LIBS"
28754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28755/* end confdefs.h.  */
28756
28757/* Override any GCC internal prototype to avoid an error.
28758   Use char because int might match the return type of a GCC
28759   builtin and then its argument prototype would still apply.  */
28760#ifdef __cplusplus
28761extern "C"
28762#endif
28763char XtSetEventDispatcher ();
28764int
28765main ()
28766{
28767return XtSetEventDispatcher ();
28768  ;
28769  return 0;
28770}
28771_ACEOF
28772if ac_fn_c_try_link "$LINENO"; then :
28773  ac_cv_lib_Xt_XtSetEventDispatcher=yes
28774else
28775  ac_cv_lib_Xt_XtSetEventDispatcher=no
28776fi
28777rm -f core conftest.err conftest.$ac_objext \
28778    conftest$ac_exeext conftest.$ac_ext
28779LIBS=$ac_check_lib_save_LIBS
28780fi
28781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
28782$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
28783if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
28784  XT_LIBS='-lXt'
28785fi
28786
28787    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28788fi
28789if test "$no_x" != 'yes'; then
28790  have_x='yes'
28791else
28792  have_x='no'
28793fi
28794 if test "$have_x" = 'yes'; then
28795  X11_DELEGATE_TRUE=
28796  X11_DELEGATE_FALSE='#'
28797else
28798  X11_DELEGATE_TRUE='#'
28799  X11_DELEGATE_FALSE=
28800fi
28801
28802
28803
28804
28805
28806#
28807# Check for ZLIB
28808#
28809
28810# Check whether --with-zlib was given.
28811if test "${with_zlib+set}" = set; then :
28812  withval=$with_zlib; with_zlib=$withval
28813else
28814  with_zlib='yes'
28815fi
28816
28817
28818if test "$with_zlib" != 'yes'; then
28819    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28820fi
28821
28822have_zlib='no'
28823ZLIB_CFLAGS=""
28824ZLIB_LIBS=""
28825ZLIB_PKG=""
28826if test "x$with_zlib" = "xyes"; then
28827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28828$as_echo "-------------------------------------------------------------" >&6; }
28829
28830pkg_failed=no
28831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.0.0" >&5
28832$as_echo_n "checking for zlib >= 1.0.0... " >&6; }
28833
28834if test -n "$ZLIB_CFLAGS"; then
28835    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28836 elif test -n "$PKG_CONFIG"; then
28837    if test -n "$PKG_CONFIG" && \
28838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28839  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28840  ac_status=$?
28841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28842  test $ac_status = 0; }; then
28843  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28844		      test "x$?" != "x0" && pkg_failed=yes
28845else
28846  pkg_failed=yes
28847fi
28848 else
28849    pkg_failed=untried
28850fi
28851if test -n "$ZLIB_LIBS"; then
28852    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28853 elif test -n "$PKG_CONFIG"; then
28854    if test -n "$PKG_CONFIG" && \
28855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28856  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28857  ac_status=$?
28858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28859  test $ac_status = 0; }; then
28860  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28861		      test "x$?" != "x0" && pkg_failed=yes
28862else
28863  pkg_failed=yes
28864fi
28865 else
28866    pkg_failed=untried
28867fi
28868
28869
28870
28871if test $pkg_failed = yes; then
28872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28873$as_echo "no" >&6; }
28874
28875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28876        _pkg_short_errors_supported=yes
28877else
28878        _pkg_short_errors_supported=no
28879fi
28880        if test $_pkg_short_errors_supported = yes; then
28881	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28882        else
28883	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28884        fi
28885	# Put the nasty error message in config.log where it belongs
28886	echo "$ZLIB_PKG_ERRORS" >&5
28887
28888	have_zlib=no
28889elif test $pkg_failed = untried; then
28890        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28891$as_echo "no" >&6; }
28892	have_zlib=no
28893else
28894	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28895	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28897$as_echo "yes" >&6; }
28898	have_zlib=yes
28899fi
28900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28901$as_echo "" >&6; }
28902fi
28903
28904if test "$have_zlib" = 'yes'; then
28905
28906$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28907
28908  CFLAGS="$ZLIB_CFLAGS $CFLAGS"
28909  LIBS="$ZLIB_LIBS $LIBS"
28910fi
28911
28912 if test "$have_zlib" = 'yes'; then
28913  ZLIB_DELEGATE_TRUE=
28914  ZLIB_DELEGATE_FALSE='#'
28915else
28916  ZLIB_DELEGATE_TRUE='#'
28917  ZLIB_DELEGATE_FALSE=
28918fi
28919
28920
28921
28922
28923
28924#
28925# Check for ZSTD
28926#
28927
28928# Check whether --with-zstd was given.
28929if test "${with_zstd+set}" = set; then :
28930  withval=$with_zstd; with_zstd=$withval
28931else
28932  with_zstd='yes'
28933fi
28934
28935
28936if test "$with_zstd" != 'yes'; then
28937    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd "
28938fi
28939
28940have_zstd='no'
28941ZSTD_CFLAGS=""
28942ZSTD_LIBS=""
28943ZSTD_PKG=""
28944if test "x$with_zstd" = "xyes"; then
28945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28946$as_echo "-------------------------------------------------------------" >&6; }
28947
28948pkg_failed=no
28949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.0.0" >&5
28950$as_echo_n "checking for libzstd >= 1.0.0... " >&6; }
28951
28952if test -n "$LIBZSTD_CFLAGS"; then
28953    pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
28954 elif test -n "$PKG_CONFIG"; then
28955    if test -n "$PKG_CONFIG" && \
28956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
28957  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
28958  ac_status=$?
28959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960  test $ac_status = 0; }; then
28961  pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.0.0" 2>/dev/null`
28962		      test "x$?" != "x0" && pkg_failed=yes
28963else
28964  pkg_failed=yes
28965fi
28966 else
28967    pkg_failed=untried
28968fi
28969if test -n "$LIBZSTD_LIBS"; then
28970    pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
28971 elif test -n "$PKG_CONFIG"; then
28972    if test -n "$PKG_CONFIG" && \
28973    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
28974  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
28975  ac_status=$?
28976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28977  test $ac_status = 0; }; then
28978  pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.0.0" 2>/dev/null`
28979		      test "x$?" != "x0" && pkg_failed=yes
28980else
28981  pkg_failed=yes
28982fi
28983 else
28984    pkg_failed=untried
28985fi
28986
28987
28988
28989if test $pkg_failed = yes; then
28990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28991$as_echo "no" >&6; }
28992
28993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28994        _pkg_short_errors_supported=yes
28995else
28996        _pkg_short_errors_supported=no
28997fi
28998        if test $_pkg_short_errors_supported = yes; then
28999	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
29000        else
29001	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
29002        fi
29003	# Put the nasty error message in config.log where it belongs
29004	echo "$LIBZSTD_PKG_ERRORS" >&5
29005
29006	have_zstd=no
29007elif test $pkg_failed = untried; then
29008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009$as_echo "no" >&6; }
29010	have_zstd=no
29011else
29012	LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
29013	LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
29014        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29015$as_echo "yes" >&6; }
29016	have_zstd=yes
29017fi
29018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29019$as_echo "" >&6; }
29020fi
29021
29022if test "$have_zstd" = 'yes'; then
29023
29024$as_echo "#define ZSTD_DELEGATE 1" >>confdefs.h
29025
29026  CFLAGS="$ZSTD_CFLAGS $CFLAGS"
29027  LIBS="$ZSTD_LIBS $LIBS"
29028fi
29029
29030 if test "$have_zstd" = 'yes'; then
29031  ZSTD_DELEGATE_TRUE=
29032  ZSTD_DELEGATE_FALSE='#'
29033else
29034  ZSTD_DELEGATE_TRUE='#'
29035  ZSTD_DELEGATE_FALSE=
29036fi
29037
29038
29039
29040
29041
29042# whether modules are built or not.
29043with_ltdl='yes'
29044have_ltdl='no'
29045LTDL_LIBS=''
29046if test "$build_modules" != 'no' || test "X$ax_cv_check_cl_libcl" != Xno; then
29047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29048$as_echo "-------------------------------------------------------------" >&6; }
29049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
29050$as_echo_n "checking for libltdl... " >&6; }
29051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29052$as_echo "" >&6; }
29053  failed=0
29054  passed=0
29055  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
29056if test "x$ac_cv_header_ltdl_h" = xyes; then :
29057  passed=`expr $passed + 1`
29058else
29059  failed=`expr $failed + 1`
29060fi
29061
29062
29063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
29064$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
29065if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
29066  $as_echo_n "(cached) " >&6
29067else
29068  ac_check_lib_save_LIBS=$LIBS
29069LIBS="-lltdl  $LIBS"
29070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29071/* end confdefs.h.  */
29072
29073/* Override any GCC internal prototype to avoid an error.
29074   Use char because int might match the return type of a GCC
29075   builtin and then its argument prototype would still apply.  */
29076#ifdef __cplusplus
29077extern "C"
29078#endif
29079char lt_dlinit ();
29080int
29081main ()
29082{
29083return lt_dlinit ();
29084  ;
29085  return 0;
29086}
29087_ACEOF
29088if ac_fn_c_try_link "$LINENO"; then :
29089  ac_cv_lib_ltdl_lt_dlinit=yes
29090else
29091  ac_cv_lib_ltdl_lt_dlinit=no
29092fi
29093rm -f core conftest.err conftest.$ac_objext \
29094    conftest$ac_exeext conftest.$ac_ext
29095LIBS=$ac_check_lib_save_LIBS
29096fi
29097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
29098$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
29099if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
29100  passed=`expr $passed + 1`
29101else
29102  failed=`expr $failed + 1`
29103fi
29104
29105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
29106$as_echo_n "checking if libltdl package is complete... " >&6; }
29107  if test $passed -gt 0 ; then
29108    if test $failed -gt 0 ; then
29109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29110$as_echo "no -- some components failed test" >&6; }
29111      have_ltdl='no (failed tests)'
29112    else
29113      LTDL_LIBS='-lltdl'
29114      LIBS="$LTDL_LIBS $LIBS"
29115
29116$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
29117
29118
29119cat >>confdefs.h <<_ACEOF
29120#define LTDL_MODULE_EXT "${shrext_cmds}"
29121_ACEOF
29122
29123      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124$as_echo "yes" >&6; }
29125      have_ltdl='yes'
29126    fi
29127  else
29128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29129$as_echo "no" >&6; }
29130  fi
29131  if test "$have_ltdl" != 'yes' ; then
29132    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29134as_fn_error 1 "libltdl is required for modules and OpenCL builds
29135See \`config.log' for more details" "$LINENO" 5; }
29136  fi
29137fi
29138 if test "$have_ltdl" != 'no'; then
29139  WITH_LTDL_TRUE=
29140  WITH_LTDL_FALSE='#'
29141else
29142  WITH_LTDL_TRUE='#'
29143  WITH_LTDL_FALSE=
29144fi
29145
29146
29147#
29148# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
29149#
29150LIB_DL=''
29151if test "$enable_profiling" = 'yes'; then
29152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29153$as_echo_n "checking for dlopen in -ldl... " >&6; }
29154if ${ac_cv_lib_dl_dlopen+:} false; then :
29155  $as_echo_n "(cached) " >&6
29156else
29157  ac_check_lib_save_LIBS=$LIBS
29158LIBS="-ldl  $LIBS"
29159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29160/* end confdefs.h.  */
29161
29162/* Override any GCC internal prototype to avoid an error.
29163   Use char because int might match the return type of a GCC
29164   builtin and then its argument prototype would still apply.  */
29165#ifdef __cplusplus
29166extern "C"
29167#endif
29168char dlopen ();
29169int
29170main ()
29171{
29172return dlopen ();
29173  ;
29174  return 0;
29175}
29176_ACEOF
29177if ac_fn_c_try_link "$LINENO"; then :
29178  ac_cv_lib_dl_dlopen=yes
29179else
29180  ac_cv_lib_dl_dlopen=no
29181fi
29182rm -f core conftest.err conftest.$ac_objext \
29183    conftest$ac_exeext conftest.$ac_ext
29184LIBS=$ac_check_lib_save_LIBS
29185fi
29186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29187$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
29188if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
29189  LIB_DL='-ldl'
29190fi
29191
29192    LIBS="$LIB_DL $LIBS"
29193fi
29194
29195
29196
29197#
29198# Set Apple font directory.
29199#
29200
29201# Check whether --with-apple-font-dir was given.
29202if test "${with_apple_font_dir+set}" = set; then :
29203  withval=$with_apple_font_dir; with_apple_font_dir=$withval
29204else
29205  with_apple_font_dir='default'
29206fi
29207
29208
29209if test "$with_apple_font_dir" != 'default'; then
29210    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
29211fi
29212
29213
29214#
29215# Check for Autotrace delegate library.
29216#
29217
29218# Check whether --with-autotrace was given.
29219if test "${with_autotrace+set}" = set; then :
29220  withval=$with_autotrace; with_autotrace=$withval
29221else
29222  with_autotrace='no'
29223fi
29224
29225
29226if test "$with_autotrace" != 'yes'; then
29227    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
29228fi
29229
29230have_autotrace='no'
29231AUTOTRACE_CFLAGS=""
29232AUTOTRACE_LIBS=""
29233AUTOTRACE_PKG=""
29234if test "x$with_autotrace" = "xyes"; then
29235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29236$as_echo "-------------------------------------------------------------" >&6; }
29237
29238pkg_failed=no
29239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autotrace >= 0.31.1" >&5
29240$as_echo_n "checking for autotrace >= 0.31.1... " >&6; }
29241
29242if test -n "$AUTOTRACE_CFLAGS"; then
29243    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
29244 elif test -n "$PKG_CONFIG"; then
29245    if test -n "$PKG_CONFIG" && \
29246    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29247  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29248  ac_status=$?
29249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29250  test $ac_status = 0; }; then
29251  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
29252		      test "x$?" != "x0" && pkg_failed=yes
29253else
29254  pkg_failed=yes
29255fi
29256 else
29257    pkg_failed=untried
29258fi
29259if test -n "$AUTOTRACE_LIBS"; then
29260    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
29261 elif test -n "$PKG_CONFIG"; then
29262    if test -n "$PKG_CONFIG" && \
29263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29264  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29265  ac_status=$?
29266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29267  test $ac_status = 0; }; then
29268  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
29269		      test "x$?" != "x0" && pkg_failed=yes
29270else
29271  pkg_failed=yes
29272fi
29273 else
29274    pkg_failed=untried
29275fi
29276
29277
29278
29279if test $pkg_failed = yes; then
29280        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29281$as_echo "no" >&6; }
29282
29283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29284        _pkg_short_errors_supported=yes
29285else
29286        _pkg_short_errors_supported=no
29287fi
29288        if test $_pkg_short_errors_supported = yes; then
29289	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
29290        else
29291	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
29292        fi
29293	# Put the nasty error message in config.log where it belongs
29294	echo "$AUTOTRACE_PKG_ERRORS" >&5
29295
29296	have_autotrace=no
29297elif test $pkg_failed = untried; then
29298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299$as_echo "no" >&6; }
29300	have_autotrace=no
29301else
29302	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
29303	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
29304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29305$as_echo "yes" >&6; }
29306	have_autotrace=yes
29307fi
29308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29309$as_echo "" >&6; }
29310fi
29311
29312if test "$have_autotrace" = 'yes'; then
29313
29314$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
29315
29316  CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
29317fi
29318
29319 if test "$have_autotrace" = 'yes'; then
29320  AUTOTRACE_DELEGATE_TRUE=
29321  AUTOTRACE_DELEGATE_FALSE='#'
29322else
29323  AUTOTRACE_DELEGATE_TRUE='#'
29324  AUTOTRACE_DELEGATE_FALSE=
29325fi
29326
29327
29328
29329
29330
29331#
29332# Check for Display Postscript delegate library.
29333#
29334
29335# Check whether --with-dps was given.
29336if test "${with_dps+set}" = set; then :
29337  withval=$with_dps; with_dps=$withval
29338else
29339  with_dps='yes'
29340fi
29341
29342
29343if test "$with_dps" != 'yes'; then
29344    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
29345fi
29346
29347have_dps='no'
29348DPS_LIBS=''
29349if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
29350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29351$as_echo "-------------------------------------------------------------" >&6; }
29352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
29353$as_echo_n "checking for DPS... " >&6; }
29354    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29355$as_echo "" >&6; }
29356    failed=0
29357    passed=0
29358    PERSIST_CPPFLAGS="$CPPFLAGS"
29359    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
29360    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
29361if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
29362  passed=`expr $passed + 1`
29363else
29364  failed=`expr $failed + 1`
29365fi
29366
29367
29368    # DPS issues:
29369    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
29370    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
29371    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
29372    # ImageMagick itself doesn't use -lXt.
29373    have_libdps='no'
29374    LIBDPS_XT=''
29375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
29376$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
29377if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
29378  $as_echo_n "(cached) " >&6
29379else
29380  ac_check_lib_save_LIBS=$LIBS
29381LIBS="-ldps  $LIBS"
29382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29383/* end confdefs.h.  */
29384
29385/* Override any GCC internal prototype to avoid an error.
29386   Use char because int might match the return type of a GCC
29387   builtin and then its argument prototype would still apply.  */
29388#ifdef __cplusplus
29389extern "C"
29390#endif
29391char DPSInitialize ();
29392int
29393main ()
29394{
29395return DPSInitialize ();
29396  ;
29397  return 0;
29398}
29399_ACEOF
29400if ac_fn_c_try_link "$LINENO"; then :
29401  ac_cv_lib_dps_DPSInitialize=yes
29402else
29403  ac_cv_lib_dps_DPSInitialize=no
29404fi
29405rm -f core conftest.err conftest.$ac_objext \
29406    conftest$ac_exeext conftest.$ac_ext
29407LIBS=$ac_check_lib_save_LIBS
29408fi
29409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
29410$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
29411if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
29412  have_libdps='yes'
29413else
29414  have_libdps='no'
29415fi
29416
29417    if test "$have_libdps" != 'yes'; then
29418        # Unset cache variable so we can try again.
29419        unset ac_cv_lib_dps_DPSInitialize
29420        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
29421$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
29422if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
29423  $as_echo_n "(cached) " >&6
29424else
29425  ac_check_lib_save_LIBS=$LIBS
29426LIBS="-ldps -lXt $LIBS"
29427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428/* end confdefs.h.  */
29429
29430/* Override any GCC internal prototype to avoid an error.
29431   Use char because int might match the return type of a GCC
29432   builtin and then its argument prototype would still apply.  */
29433#ifdef __cplusplus
29434extern "C"
29435#endif
29436char DPSInitialize ();
29437int
29438main ()
29439{
29440return DPSInitialize ();
29441  ;
29442  return 0;
29443}
29444_ACEOF
29445if ac_fn_c_try_link "$LINENO"; then :
29446  ac_cv_lib_dps_DPSInitialize=yes
29447else
29448  ac_cv_lib_dps_DPSInitialize=no
29449fi
29450rm -f core conftest.err conftest.$ac_objext \
29451    conftest$ac_exeext conftest.$ac_ext
29452LIBS=$ac_check_lib_save_LIBS
29453fi
29454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
29455$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
29456if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
29457  have_libdps='yes'
29458else
29459  have_libdps='no'
29460fi
29461
29462        if test "$have_libdps" = 'yes'; then
29463            LIBDPS_XT='-lXt'
29464        fi
29465    fi
29466    if test "$have_libdps" = 'yes'; then
29467        passed=`expr $passed + 1`
29468    else
29469        failed=`expr $failed + 1`
29470    fi
29471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
29472$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
29473if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
29474  $as_echo_n "(cached) " >&6
29475else
29476  ac_check_lib_save_LIBS=$LIBS
29477LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
29478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29479/* end confdefs.h.  */
29480
29481/* Override any GCC internal prototype to avoid an error.
29482   Use char because int might match the return type of a GCC
29483   builtin and then its argument prototype would still apply.  */
29484#ifdef __cplusplus
29485extern "C"
29486#endif
29487char XDPSPixelsPerPoint ();
29488int
29489main ()
29490{
29491return XDPSPixelsPerPoint ();
29492  ;
29493  return 0;
29494}
29495_ACEOF
29496if ac_fn_c_try_link "$LINENO"; then :
29497  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29498else
29499  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
29500fi
29501rm -f core conftest.err conftest.$ac_objext \
29502    conftest$ac_exeext conftest.$ac_ext
29503LIBS=$ac_check_lib_save_LIBS
29504fi
29505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
29506$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
29507if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
29508  passed=`expr $passed + 1`
29509else
29510  failed=`expr $failed + 1`
29511fi
29512
29513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
29514$as_echo_n "checking if DPS package is complete... " >&6; }
29515    if test $passed -gt 0; then
29516        if test $failed -gt 0; then
29517            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29518$as_echo "no -- some components failed test" >&6; }
29519            have_dps='no (failed tests)'
29520            CPPFLAGS="$PERSIST_CPPFLAGS"
29521        else
29522            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29523            LIBS="$DPS_LIBS $LIBS"
29524
29525$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
29526
29527            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29528$as_echo "yes" >&6; }
29529            have_dps='yes'
29530        fi
29531    else
29532        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533$as_echo "no" >&6; }
29534        CPPFLAGS=$PERSIST_CPPFLAGS
29535    fi
29536fi
29537 if test "$have_dps" = 'yes'; then
29538  DPS_DELEGATE_TRUE=
29539  DPS_DELEGATE_FALSE='#'
29540else
29541  DPS_DELEGATE_TRUE='#'
29542  DPS_DELEGATE_FALSE=
29543fi
29544
29545
29546
29547
29548#
29549# Set DejaVu font directory.
29550#
29551
29552# Check whether --with-dejavu-font-dir was given.
29553if test "${with_dejavu_font_dir+set}" = set; then :
29554  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29555else
29556  with_dejavu_font_dir='default'
29557fi
29558
29559
29560if test "$with_dejavu_font_dir" != 'default'; then
29561    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29562fi
29563
29564
29565#
29566# Check for FFTW delegate library.
29567#
29568
29569# Check whether --with-fftw was given.
29570if test "${with_fftw+set}" = set; then :
29571  withval=$with_fftw; with_fftw=$withval
29572else
29573  with_fftw='yes'
29574fi
29575
29576
29577if test "$with_fftw" != 'yes'; then
29578    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29579fi
29580
29581have_fftw='no'
29582FFTW_CFLAGS=""
29583FFTW_LIBS=""
29584FFTW_PKG=""
29585if test "x$with_fftw" = "xyes"; then
29586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29587$as_echo "-------------------------------------------------------------" >&6; }
29588
29589pkg_failed=no
29590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0.0" >&5
29591$as_echo_n "checking for fftw3 >= 3.0.0... " >&6; }
29592
29593if test -n "$fftw3_CFLAGS"; then
29594    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29595 elif test -n "$PKG_CONFIG"; then
29596    if test -n "$PKG_CONFIG" && \
29597    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29598  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29599  ac_status=$?
29600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29601  test $ac_status = 0; }; then
29602  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29603		      test "x$?" != "x0" && pkg_failed=yes
29604else
29605  pkg_failed=yes
29606fi
29607 else
29608    pkg_failed=untried
29609fi
29610if test -n "$fftw3_LIBS"; then
29611    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29612 elif test -n "$PKG_CONFIG"; then
29613    if test -n "$PKG_CONFIG" && \
29614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29615  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29616  ac_status=$?
29617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29618  test $ac_status = 0; }; then
29619  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29620		      test "x$?" != "x0" && pkg_failed=yes
29621else
29622  pkg_failed=yes
29623fi
29624 else
29625    pkg_failed=untried
29626fi
29627
29628
29629
29630if test $pkg_failed = yes; then
29631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29632$as_echo "no" >&6; }
29633
29634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29635        _pkg_short_errors_supported=yes
29636else
29637        _pkg_short_errors_supported=no
29638fi
29639        if test $_pkg_short_errors_supported = yes; then
29640	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29641        else
29642	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29643        fi
29644	# Put the nasty error message in config.log where it belongs
29645	echo "$fftw3_PKG_ERRORS" >&5
29646
29647	have_fftw=no
29648elif test $pkg_failed = untried; then
29649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29650$as_echo "no" >&6; }
29651	have_fftw=no
29652else
29653	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29654	fftw3_LIBS=$pkg_cv_fftw3_LIBS
29655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29656$as_echo "yes" >&6; }
29657	have_fftw=yes
29658fi
29659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29660$as_echo "" >&6; }
29661fi
29662
29663if test "$have_fftw" = 'yes'; then
29664
29665$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
29666
29667  FFTW_CFLAGS="$fftw3_CFLAGS"
29668  FFTW_LIBS="$fftw3_LIBS"
29669  CFLAGS="$fftw3_CFLAGS $CFLAGS"
29670fi
29671
29672 if test "$have_fftw" = 'yes'; then
29673  FFTW_DELEGATE_TRUE=
29674  FFTW_DELEGATE_FALSE='#'
29675else
29676  FFTW_DELEGATE_TRUE='#'
29677  FFTW_DELEGATE_FALSE=
29678fi
29679
29680
29681
29682
29683
29684#
29685# Check for FLIF delegate library.
29686#
29687
29688# Check whether --with-flif was given.
29689if test "${with_flif+set}" = set; then :
29690  withval=$with_flif; with_flif=$withval
29691else
29692  with_flif='yes'
29693fi
29694
29695
29696if test "$with_flif" != 'yes'; then
29697    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
29698fi
29699
29700have_flif='no'
29701FLIF_LIBS=''
29702if test "$with_flif" != 'no'; then
29703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29704$as_echo "-------------------------------------------------------------" >&6; }
29705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
29706$as_echo_n "checking for FLIF... " >&6; }
29707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29708$as_echo "" >&6; }
29709    failed=0
29710    passed=0
29711    ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
29712if test "x$ac_cv_header_flif_h" = xyes; then :
29713  passed=`expr $passed + 1`
29714else
29715  failed=`expr $failed + 1`
29716fi
29717
29718
29719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
29720$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; }
29721if ${ac_cv_lib_flif_flif_create_decoder+:} false; then :
29722  $as_echo_n "(cached) " >&6
29723else
29724  ac_check_lib_save_LIBS=$LIBS
29725LIBS="-lflif  $LIBS"
29726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29727/* end confdefs.h.  */
29728
29729/* Override any GCC internal prototype to avoid an error.
29730   Use char because int might match the return type of a GCC
29731   builtin and then its argument prototype would still apply.  */
29732#ifdef __cplusplus
29733extern "C"
29734#endif
29735char flif_create_decoder ();
29736int
29737main ()
29738{
29739return flif_create_decoder ();
29740  ;
29741  return 0;
29742}
29743_ACEOF
29744if ac_fn_c_try_link "$LINENO"; then :
29745  ac_cv_lib_flif_flif_create_decoder=yes
29746else
29747  ac_cv_lib_flif_flif_create_decoder=no
29748fi
29749rm -f core conftest.err conftest.$ac_objext \
29750    conftest$ac_exeext conftest.$ac_ext
29751LIBS=$ac_check_lib_save_LIBS
29752fi
29753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
29754$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; }
29755if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then :
29756  passed=`expr $passed + 1`
29757else
29758  failed=`expr $failed + 1`
29759fi
29760
29761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
29762$as_echo_n "checking if FLIF package is complete... " >&6; }
29763    if test $passed -gt 0; then
29764        if test $failed -gt 0; then
29765            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29766$as_echo "no -- some components failed test" >&6; }
29767            have_flif='no (failed tests)'
29768        else
29769            FLIF_LIBS='-lflif'
29770            LIBS="$FLIF_LIBS $LIBS"
29771
29772$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h
29773
29774            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29775$as_echo "yes" >&6; }
29776            have_flif='yes'
29777        fi
29778    else
29779        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29780$as_echo "no" >&6; }
29781    fi
29782fi
29783 if test "$have_flif" = 'yes'; then
29784  FLIF_DELEGATE_TRUE=
29785  FLIF_DELEGATE_FALSE='#'
29786else
29787  FLIF_DELEGATE_TRUE='#'
29788  FLIF_DELEGATE_FALSE=
29789fi
29790
29791
29792
29793
29794#
29795# Check for FlashPIX delegate library.
29796#
29797
29798# Check whether --with-fpx was given.
29799if test "${with_fpx+set}" = set; then :
29800  withval=$with_fpx; with_fpx=$withval
29801else
29802  with_fpx='yes'
29803fi
29804
29805
29806if test "$with_fpx" != 'yes'; then
29807    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29808fi
29809
29810have_fpx='no'
29811FPX_LIBS=''
29812if test "$with_fpx" != 'no'; then
29813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29814$as_echo "-------------------------------------------------------------" >&6; }
29815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
29816$as_echo_n "checking for FlashPIX... " >&6; }
29817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29818$as_echo "" >&6; }
29819    failed=0
29820    passed=0
29821    ac_ext=cpp
29822ac_cpp='$CXXCPP $CPPFLAGS'
29823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29826
29827
29828ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
29829if test "x$ac_cv_header_fpxlib_h" = xyes; then :
29830  passed=`expr $passed + 1`
29831else
29832  failed=`expr $failed + 1`
29833fi
29834
29835
29836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
29837$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
29838if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
29839  $as_echo_n "(cached) " >&6
29840else
29841  ac_check_lib_save_LIBS=$LIBS
29842LIBS="-lfpx  $LIBS"
29843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29844/* end confdefs.h.  */
29845
29846/* Override any GCC internal prototype to avoid an error.
29847   Use char because int might match the return type of a GCC
29848   builtin and then its argument prototype would still apply.  */
29849#ifdef __cplusplus
29850extern "C"
29851#endif
29852char FPX_OpenImageByFilename ();
29853int
29854main ()
29855{
29856return FPX_OpenImageByFilename ();
29857  ;
29858  return 0;
29859}
29860_ACEOF
29861if ac_fn_cxx_try_link "$LINENO"; then :
29862  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29863else
29864  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
29865fi
29866rm -f core conftest.err conftest.$ac_objext \
29867    conftest$ac_exeext conftest.$ac_ext
29868LIBS=$ac_check_lib_save_LIBS
29869fi
29870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
29871$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
29872if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
29873  passed=`expr $passed + 1`
29874else
29875  failed=`expr $failed + 1`
29876fi
29877
29878    ac_ext=c
29879ac_cpp='$CPP $CPPFLAGS'
29880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29882ac_compiler_gnu=$ac_cv_c_compiler_gnu
29883
29884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
29885$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29886    if test $passed -gt 0; then
29887        if test $failed -gt 0; then
29888            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29889$as_echo "no -- some components failed test" >&6; }
29890            have_fpx='no (failed tests)'
29891        else
29892            FPX_LIBS='-lfpx'
29893
29894$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
29895
29896            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897$as_echo "yes" >&6; }
29898            have_fpx='yes'
29899            PERLMAINCC="$CXX"
29900        fi
29901    else
29902        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29903$as_echo "no" >&6; }
29904    fi
29905fi
29906 if test "$have_fpx" = 'yes'; then
29907  FPX_DELEGATE_TRUE=
29908  FPX_DELEGATE_FALSE='#'
29909else
29910  FPX_DELEGATE_TRUE='#'
29911  FPX_DELEGATE_FALSE=
29912fi
29913
29914
29915
29916
29917#
29918# Check for DJVU delegate library.
29919#
29920
29921# Check whether --with-djvu was given.
29922if test "${with_djvu+set}" = set; then :
29923  withval=$with_djvu; with_djvu=$withval
29924else
29925  with_djvu='yes'
29926fi
29927
29928
29929if test "$with_djvu" != 'yes'; then
29930    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29931fi
29932
29933have_djvu='no'
29934DJVU_CFLAGS=""
29935DJVU_LIBS=""
29936DJVU_PKG=""
29937if test "x$with_djvu" = "xyes"; then
29938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29939$as_echo "-------------------------------------------------------------" >&6; }
29940
29941pkg_failed=no
29942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi >= 3.5.0" >&5
29943$as_echo_n "checking for ddjvuapi >= 3.5.0... " >&6; }
29944
29945if test -n "$ddjvuapi_CFLAGS"; then
29946    pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29947 elif test -n "$PKG_CONFIG"; then
29948    if test -n "$PKG_CONFIG" && \
29949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29950  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29951  ac_status=$?
29952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29953  test $ac_status = 0; }; then
29954  pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29955		      test "x$?" != "x0" && pkg_failed=yes
29956else
29957  pkg_failed=yes
29958fi
29959 else
29960    pkg_failed=untried
29961fi
29962if test -n "$ddjvuapi_LIBS"; then
29963    pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29964 elif test -n "$PKG_CONFIG"; then
29965    if test -n "$PKG_CONFIG" && \
29966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29967  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29968  ac_status=$?
29969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29970  test $ac_status = 0; }; then
29971  pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29972		      test "x$?" != "x0" && pkg_failed=yes
29973else
29974  pkg_failed=yes
29975fi
29976 else
29977    pkg_failed=untried
29978fi
29979
29980
29981
29982if test $pkg_failed = yes; then
29983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984$as_echo "no" >&6; }
29985
29986if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29987        _pkg_short_errors_supported=yes
29988else
29989        _pkg_short_errors_supported=no
29990fi
29991        if test $_pkg_short_errors_supported = yes; then
29992	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29993        else
29994	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29995        fi
29996	# Put the nasty error message in config.log where it belongs
29997	echo "$ddjvuapi_PKG_ERRORS" >&5
29998
29999	have_djvu=no
30000elif test $pkg_failed = untried; then
30001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30002$as_echo "no" >&6; }
30003	have_djvu=no
30004else
30005	ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
30006	ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
30007        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30008$as_echo "yes" >&6; }
30009	have_djvu=yes
30010fi
30011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30012$as_echo "" >&6; }
30013fi
30014
30015if test "$have_djvu" = 'yes'; then
30016
30017$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
30018
30019  DJVU_CFLAGS="$ddjvuapi_CFLAGS"
30020  DJVU_LIBS="$ddjvuapi_LIBS"
30021  CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
30022fi
30023
30024 if test "$have_djvu" = 'yes'; then
30025  DJVU_DELEGATE_TRUE=
30026  DJVU_DELEGATE_FALSE='#'
30027else
30028  DJVU_DELEGATE_TRUE='#'
30029  DJVU_DELEGATE_FALSE=
30030fi
30031
30032
30033
30034
30035
30036#
30037# Check for fontconfig delegate library.
30038#
30039
30040# Check whether --with-fontconfig was given.
30041if test "${with_fontconfig+set}" = set; then :
30042  withval=$with_fontconfig; with_fontconfig=$withval
30043else
30044  with_fontconfig='yes'
30045fi
30046
30047
30048if test "$with_fontconfig" != 'yes'; then
30049    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
30050fi
30051
30052have_fontconfig='no'
30053FONTCONFIG_CFLAGS=""
30054FONTCONFIG_LIBS=""
30055FONTCONFIG_PKG=""
30056if test "x$with_fontconfig" = "xyes"; then
30057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30058$as_echo "-------------------------------------------------------------" >&6; }
30059
30060pkg_failed=no
30061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.1.0" >&5
30062$as_echo_n "checking for fontconfig >= 2.1.0... " >&6; }
30063
30064if test -n "$FONTCONFIG_CFLAGS"; then
30065    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
30066 elif test -n "$PKG_CONFIG"; then
30067    if test -n "$PKG_CONFIG" && \
30068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30069  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30070  ac_status=$?
30071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30072  test $ac_status = 0; }; then
30073  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
30074		      test "x$?" != "x0" && pkg_failed=yes
30075else
30076  pkg_failed=yes
30077fi
30078 else
30079    pkg_failed=untried
30080fi
30081if test -n "$FONTCONFIG_LIBS"; then
30082    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
30083 elif test -n "$PKG_CONFIG"; then
30084    if test -n "$PKG_CONFIG" && \
30085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30086  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30087  ac_status=$?
30088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30089  test $ac_status = 0; }; then
30090  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
30091		      test "x$?" != "x0" && pkg_failed=yes
30092else
30093  pkg_failed=yes
30094fi
30095 else
30096    pkg_failed=untried
30097fi
30098
30099
30100
30101if test $pkg_failed = yes; then
30102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30103$as_echo "no" >&6; }
30104
30105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30106        _pkg_short_errors_supported=yes
30107else
30108        _pkg_short_errors_supported=no
30109fi
30110        if test $_pkg_short_errors_supported = yes; then
30111	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
30112        else
30113	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
30114        fi
30115	# Put the nasty error message in config.log where it belongs
30116	echo "$FONTCONFIG_PKG_ERRORS" >&5
30117
30118	have_fontconfig=no
30119elif test $pkg_failed = untried; then
30120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30121$as_echo "no" >&6; }
30122	have_fontconfig=no
30123else
30124	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
30125	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
30126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30127$as_echo "yes" >&6; }
30128	have_fontconfig=yes
30129fi
30130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30131$as_echo "" >&6; }
30132fi
30133
30134if test "$have_fontconfig" = 'yes'; then
30135
30136$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
30137
30138  CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
30139fi
30140
30141 if test "$have_fontconfig" = 'yes'; then
30142  FONTCONFIG_DELEGATE_TRUE=
30143  FONTCONFIG_DELEGATE_FALSE='#'
30144else
30145  FONTCONFIG_DELEGATE_TRUE='#'
30146  FONTCONFIG_DELEGATE_FALSE=
30147fi
30148
30149
30150
30151
30152
30153#
30154# Check for the Freetype delegate library.
30155#
30156
30157# Check whether --with-freetype was given.
30158if test "${with_freetype+set}" = set; then :
30159  withval=$with_freetype; with_freetype=$withval
30160else
30161  with_freetype='yes'
30162fi
30163
30164
30165if test "$with_freetype" != 'yes'; then
30166    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
30167fi
30168
30169have_freetype='no'
30170FREETYPE_CFLAGS=""
30171FREETYPE_LIBS=""
30172FREETYPE_PKG=""
30173if test "x$with_freetype" = "xyes"; then
30174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30175$as_echo "-------------------------------------------------------------" >&6; }
30176
30177pkg_failed=no
30178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
30179$as_echo_n "checking for freetype2... " >&6; }
30180
30181if test -n "$FREETYPE_CFLAGS"; then
30182    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
30183 elif test -n "$PKG_CONFIG"; then
30184    if test -n "$PKG_CONFIG" && \
30185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30186  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30187  ac_status=$?
30188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30189  test $ac_status = 0; }; then
30190  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
30191		      test "x$?" != "x0" && pkg_failed=yes
30192else
30193  pkg_failed=yes
30194fi
30195 else
30196    pkg_failed=untried
30197fi
30198if test -n "$FREETYPE_LIBS"; then
30199    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
30200 elif test -n "$PKG_CONFIG"; then
30201    if test -n "$PKG_CONFIG" && \
30202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30203  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30204  ac_status=$?
30205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30206  test $ac_status = 0; }; then
30207  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
30208		      test "x$?" != "x0" && pkg_failed=yes
30209else
30210  pkg_failed=yes
30211fi
30212 else
30213    pkg_failed=untried
30214fi
30215
30216
30217
30218if test $pkg_failed = yes; then
30219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30220$as_echo "no" >&6; }
30221
30222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30223        _pkg_short_errors_supported=yes
30224else
30225        _pkg_short_errors_supported=no
30226fi
30227        if test $_pkg_short_errors_supported = yes; then
30228	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
30229        else
30230	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
30231        fi
30232	# Put the nasty error message in config.log where it belongs
30233	echo "$FREETYPE_PKG_ERRORS" >&5
30234
30235	have_freetype=no
30236elif test $pkg_failed = untried; then
30237        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30238$as_echo "no" >&6; }
30239	have_freetype=no
30240else
30241	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
30242	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
30243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30244$as_echo "yes" >&6; }
30245	have_freetype=yes
30246fi
30247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30248$as_echo "" >&6; }
30249fi
30250
30251if test "$have_freetype" = 'yes'; then
30252
30253$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
30254
30255  CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
30256  MAGICKCORE_FREETYPE_DELEGATE=1
30257else
30258  MAGICKCORE_FREETYPE_DELEGATE=0
30259fi
30260
30261
30262
30263
30264
30265
30266#
30267# Check for the raqm delegate library.
30268#
30269
30270# Check whether --with-raqm was given.
30271if test "${with_raqm+set}" = set; then :
30272  withval=$with_raqm; with_raqm=$withval
30273else
30274  with_raqm='yes'
30275fi
30276
30277
30278if test "$with_raqm" != 'yes'; then
30279    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
30280fi
30281
30282have_raqm='no'
30283RAQM_CFLAGS=""
30284RAQM_LIBS=""
30285RAQM_PKG=""
30286if test "x$with_raqm" = "xyes"; then
30287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30288$as_echo "-------------------------------------------------------------" >&6; }
30289
30290pkg_failed=no
30291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm" >&5
30292$as_echo_n "checking for raqm... " >&6; }
30293
30294if test -n "$RAQM_CFLAGS"; then
30295    pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
30296 elif test -n "$PKG_CONFIG"; then
30297    if test -n "$PKG_CONFIG" && \
30298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
30299  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
30300  ac_status=$?
30301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30302  test $ac_status = 0; }; then
30303  pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
30304		      test "x$?" != "x0" && pkg_failed=yes
30305else
30306  pkg_failed=yes
30307fi
30308 else
30309    pkg_failed=untried
30310fi
30311if test -n "$RAQM_LIBS"; then
30312    pkg_cv_RAQM_LIBS="$RAQM_LIBS"
30313 elif test -n "$PKG_CONFIG"; then
30314    if test -n "$PKG_CONFIG" && \
30315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
30316  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
30317  ac_status=$?
30318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30319  test $ac_status = 0; }; then
30320  pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
30321		      test "x$?" != "x0" && pkg_failed=yes
30322else
30323  pkg_failed=yes
30324fi
30325 else
30326    pkg_failed=untried
30327fi
30328
30329
30330
30331if test $pkg_failed = yes; then
30332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30333$as_echo "no" >&6; }
30334
30335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30336        _pkg_short_errors_supported=yes
30337else
30338        _pkg_short_errors_supported=no
30339fi
30340        if test $_pkg_short_errors_supported = yes; then
30341	        RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
30342        else
30343	        RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
30344        fi
30345	# Put the nasty error message in config.log where it belongs
30346	echo "$RAQM_PKG_ERRORS" >&5
30347
30348	have_raqm=no
30349elif test $pkg_failed = untried; then
30350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30351$as_echo "no" >&6; }
30352	have_raqm=no
30353else
30354	RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
30355	RAQM_LIBS=$pkg_cv_RAQM_LIBS
30356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30357$as_echo "yes" >&6; }
30358	have_raqm=yes
30359fi
30360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30361$as_echo "" >&6; }
30362fi
30363
30364if test "$have_raqm" = 'yes'; then
30365
30366$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h
30367
30368  CFLAGS="$RAQM_CFLAGS $CFLAGS"
30369fi
30370
30371 if test "$have_raqm" = 'yes'; then
30372  RAQM_DELEGATE_TRUE=
30373  RAQM_DELEGATE_FALSE='#'
30374else
30375  RAQM_DELEGATE_TRUE='#'
30376  RAQM_DELEGATE_FALSE=
30377fi
30378
30379
30380
30381
30382
30383#
30384# Check for Ghostscript library or framework.
30385#
30386# Test for iapi.h & test for gsapi_new_instance in -lgs
30387# or -framework Ghostscript
30388
30389
30390# Check whether --with-gslib was given.
30391if test "${with_gslib+set}" = set; then :
30392  withval=$with_gslib; with_gslib=$withval
30393else
30394  with_gslib='no'
30395fi
30396
30397
30398gslib_framework='no'
30399if test "$with_gslib" != 'yes'; then
30400    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
30401fi
30402
30403have_gslib='no'
30404GS_LIBS=''
30405if test "$with_gslib" != 'no'; then
30406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30407$as_echo "-------------------------------------------------------------" >&6; }
30408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30409$as_echo_n "checking for Ghostscript... " >&6; }
30410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30411$as_echo "" >&6; }
30412    framework=0
30413    failed=0
30414    passed=0
30415    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
30416if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
30417  passed=`expr $passed + 1`
30418else
30419  failed=`expr $failed + 1`
30420fi
30421
30422
30423    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
30424if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
30425  passed=`expr $passed + 1`
30426else
30427  failed=`expr $failed + 1`
30428fi
30429
30430
30431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
30432$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
30433if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
30434  $as_echo_n "(cached) " >&6
30435else
30436  ac_check_framework_save_LIBS=$LIBS
30437LIBS="-framework Ghostscript  $LIBS"
30438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30439/* end confdefs.h.  */
30440
30441/* Override any GCC internal prototype to avoid an error.
30442   Use char because int might match the return type of a GCC
30443   builtin and then its argument prototype would still apply.  */
30444#ifdef __cplusplus
30445extern "C"
30446#endif
30447char gsapi_new_instance ();
30448int
30449main ()
30450{
30451return gsapi_new_instance ();
30452  ;
30453  return 0;
30454}
30455_ACEOF
30456if ac_fn_c_try_link "$LINENO"; then :
30457  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
30458else
30459  ac_cv_framework_Ghostscript_gsapi_new_instance=no
30460fi
30461rm -f core conftest.err conftest.$ac_objext \
30462    conftest$ac_exeext conftest.$ac_ext
30463LIBS=$ac_check_framework_save_LIBS
30464fi
30465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
30466$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
30467if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
30468  framework=`expr $framework + 1`
30469else
30470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
30471$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
30472if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
30473  $as_echo_n "(cached) " >&6
30474else
30475  ac_check_lib_save_LIBS=$LIBS
30476LIBS="-lgs  $LIBS"
30477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30478/* end confdefs.h.  */
30479
30480/* Override any GCC internal prototype to avoid an error.
30481   Use char because int might match the return type of a GCC
30482   builtin and then its argument prototype would still apply.  */
30483#ifdef __cplusplus
30484extern "C"
30485#endif
30486char gsapi_new_instance ();
30487int
30488main ()
30489{
30490return gsapi_new_instance ();
30491  ;
30492  return 0;
30493}
30494_ACEOF
30495if ac_fn_c_try_link "$LINENO"; then :
30496  ac_cv_lib_gs_gsapi_new_instance=yes
30497else
30498  ac_cv_lib_gs_gsapi_new_instance=no
30499fi
30500rm -f core conftest.err conftest.$ac_objext \
30501    conftest$ac_exeext conftest.$ac_ext
30502LIBS=$ac_check_lib_save_LIBS
30503fi
30504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
30505$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
30506if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
30507  passed=`expr $passed + 1`
30508else
30509  failed=`expr $failed + 1`
30510fi
30511
30512fi
30513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
30514$as_echo_n "checking if Ghostscript package is complete... " >&6; }
30515    if test $passed -gt 0; then
30516        if test $failed -gt 0; then
30517            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30518$as_echo "no -- some components failed test" >&6; }
30519            have_gslib='no (failed tests)'
30520        else
30521            if test $framework -gt 0; then
30522                GS_LIBS='-framework Ghostscript'
30523                gslib_framework='yes'
30524                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
30525$as_echo "yes, using framework." >&6; }
30526            else
30527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
30528$as_echo "yes, using library." >&6; }
30529                GS_LIBS='-lgs'
30530            fi
30531            LIBS="$GS_LIBS $LIBS"
30532
30533$as_echo "#define GS_DELEGATE 1" >>confdefs.h
30534
30535            have_gslib='yes'
30536        fi
30537    else
30538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30539$as_echo "no" >&6; }
30540    fi
30541fi
30542 if test "$have_gslib" = 'yes'; then
30543  GS_DELEGATE_TRUE=
30544  GS_DELEGATE_FALSE='#'
30545else
30546  GS_DELEGATE_TRUE='#'
30547  GS_DELEGATE_FALSE=
30548fi
30549
30550
30551
30552# Set default font search path
30553
30554# Check whether --with-fontpath was given.
30555if test "${with_fontpath+set}" = set; then :
30556  withval=$with_fontpath; with_fontpath=$withval
30557else
30558  with_fontpath=''
30559fi
30560
30561
30562if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
30563    with_fontpath=''
30564else
30565
30566cat >>confdefs.h <<_ACEOF
30567#define MAGICK_FONT_PATH "$with_fontpath"
30568_ACEOF
30569
30570fi
30571if test "$with_fontpath=" != ''; then
30572    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
30573fi
30574
30575# Set Ghostscript font directory
30576
30577# Check whether --with-gs-font-dir was given.
30578if test "${with_gs_font_dir+set}" = set; then :
30579  withval=$with_gs_font_dir; with_gs_font_dir=$withval
30580else
30581  with_gs_font_dir='default'
30582fi
30583
30584
30585if test "$with_gs_font_dir" != 'default'; then
30586    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
30587fi
30588
30589
30590#
30591# Check for GVC delegate library.
30592#
30593
30594# Check whether --with-gvc was given.
30595if test "${with_gvc+set}" = set; then :
30596  withval=$with_gvc; with_gvc=$withval
30597else
30598  with_gvc='yes'
30599fi
30600
30601
30602if test "$with_gvc" != 'yes'; then
30603    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
30604fi
30605
30606GVC_PKG=""
30607if test "x$with_gvc" = "xyes"; then
30608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30609$as_echo "-------------------------------------------------------------" >&6; }
30610
30611pkg_failed=no
30612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgvc >= 2.9.0" >&5
30613$as_echo_n "checking for libgvc >= 2.9.0... " >&6; }
30614
30615if test -n "$GVC_CFLAGS"; then
30616    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30617 elif test -n "$PKG_CONFIG"; then
30618    if test -n "$PKG_CONFIG" && \
30619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30620  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30621  ac_status=$?
30622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30623  test $ac_status = 0; }; then
30624  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
30625		      test "x$?" != "x0" && pkg_failed=yes
30626else
30627  pkg_failed=yes
30628fi
30629 else
30630    pkg_failed=untried
30631fi
30632if test -n "$GVC_LIBS"; then
30633    pkg_cv_GVC_LIBS="$GVC_LIBS"
30634 elif test -n "$PKG_CONFIG"; then
30635    if test -n "$PKG_CONFIG" && \
30636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30637  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30638  ac_status=$?
30639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30640  test $ac_status = 0; }; then
30641  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
30642		      test "x$?" != "x0" && pkg_failed=yes
30643else
30644  pkg_failed=yes
30645fi
30646 else
30647    pkg_failed=untried
30648fi
30649
30650
30651
30652if test $pkg_failed = yes; then
30653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30654$as_echo "no" >&6; }
30655
30656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30657        _pkg_short_errors_supported=yes
30658else
30659        _pkg_short_errors_supported=no
30660fi
30661        if test $_pkg_short_errors_supported = yes; then
30662	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
30663        else
30664	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
30665        fi
30666	# Put the nasty error message in config.log where it belongs
30667	echo "$GVC_PKG_ERRORS" >&5
30668
30669	have_gvc=no
30670elif test $pkg_failed = untried; then
30671        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30672$as_echo "no" >&6; }
30673	have_gvc=no
30674else
30675	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30676	GVC_LIBS=$pkg_cv_GVC_LIBS
30677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30678$as_echo "yes" >&6; }
30679	have_gvc=yes
30680fi
30681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30682$as_echo "" >&6; }
30683fi
30684
30685if test "$have_gvc" = 'yes'; then
30686
30687$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
30688
30689  CFLAGS="$GVC_CFLAGS $CFLAGS"
30690fi
30691
30692 if test "$have_gvc" = 'yes'; then
30693  GVC_DELEGATE_TRUE=
30694  GVC_DELEGATE_FALSE='#'
30695else
30696  GVC_DELEGATE_TRUE='#'
30697  GVC_DELEGATE_FALSE=
30698fi
30699
30700
30701
30702
30703
30704#
30705# Check for the HEIC delegate library.
30706#
30707
30708# Check whether --with-heic was given.
30709if test "${with_heic+set}" = set; then :
30710  withval=$with_heic; with_heic=$withval
30711else
30712  with_heic='yes'
30713fi
30714
30715
30716if test "$with_heic" != 'yes'; then
30717    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic "
30718fi
30719
30720have_heic='no'
30721HEIF_CFLAGS=""
30722HEIF_LIBS=""
30723HEIF_PKG=""
30724if test "x$with_heic" = "xyes"; then
30725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30726$as_echo "-------------------------------------------------------------" >&6; }
30727
30728pkg_failed=no
30729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libheif" >&5
30730$as_echo_n "checking for libheif... " >&6; }
30731
30732if test -n "$HEIF_CFLAGS"; then
30733    pkg_cv_HEIF_CFLAGS="$HEIF_CFLAGS"
30734 elif test -n "$PKG_CONFIG"; then
30735    if test -n "$PKG_CONFIG" && \
30736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
30737  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
30738  ac_status=$?
30739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30740  test $ac_status = 0; }; then
30741  pkg_cv_HEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif" 2>/dev/null`
30742		      test "x$?" != "x0" && pkg_failed=yes
30743else
30744  pkg_failed=yes
30745fi
30746 else
30747    pkg_failed=untried
30748fi
30749if test -n "$HEIF_LIBS"; then
30750    pkg_cv_HEIF_LIBS="$HEIF_LIBS"
30751 elif test -n "$PKG_CONFIG"; then
30752    if test -n "$PKG_CONFIG" && \
30753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
30754  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
30755  ac_status=$?
30756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30757  test $ac_status = 0; }; then
30758  pkg_cv_HEIF_LIBS=`$PKG_CONFIG --libs "libheif" 2>/dev/null`
30759		      test "x$?" != "x0" && pkg_failed=yes
30760else
30761  pkg_failed=yes
30762fi
30763 else
30764    pkg_failed=untried
30765fi
30766
30767
30768
30769if test $pkg_failed = yes; then
30770        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30771$as_echo "no" >&6; }
30772
30773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30774        _pkg_short_errors_supported=yes
30775else
30776        _pkg_short_errors_supported=no
30777fi
30778        if test $_pkg_short_errors_supported = yes; then
30779	        HEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif" 2>&1`
30780        else
30781	        HEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif" 2>&1`
30782        fi
30783	# Put the nasty error message in config.log where it belongs
30784	echo "$HEIF_PKG_ERRORS" >&5
30785
30786	have_heic=no
30787elif test $pkg_failed = untried; then
30788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30789$as_echo "no" >&6; }
30790	have_heic=no
30791else
30792	HEIF_CFLAGS=$pkg_cv_HEIF_CFLAGS
30793	HEIF_LIBS=$pkg_cv_HEIF_LIBS
30794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30795$as_echo "yes" >&6; }
30796	have_heic=yes
30797fi
30798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30799$as_echo "" >&6; }
30800fi
30801
30802if test "$have_heic" = 'yes'; then
30803
30804$as_echo "#define HEIC_DELEGATE 1" >>confdefs.h
30805
30806  CFLAGS="$HEIF_CFLAGS $CFLAGS"
30807fi
30808
30809 if test "$have_heic" = 'yes'; then
30810  HEIC_DELEGATE_TRUE=
30811  HEIC_DELEGATE_FALSE='#'
30812else
30813  HEIC_DELEGATE_TRUE='#'
30814  HEIC_DELEGATE_FALSE=
30815fi
30816
30817
30818
30819
30820
30821#
30822# Check for JBIG delegate library.
30823#
30824
30825# Check whether --with-jbig was given.
30826if test "${with_jbig+set}" = set; then :
30827  withval=$with_jbig; with_jbig=$withval
30828else
30829  with_jbig='yes'
30830fi
30831
30832
30833have_jbig='no'
30834JBIG_LIBS=''
30835if test "$with_jbig" != 'no'; then
30836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30837$as_echo "-------------------------------------------------------------" >&6; }
30838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
30839$as_echo_n "checking for JBIG... " >&6; }
30840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30841$as_echo "" >&6; }
30842    failed=0
30843    passed=0
30844    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
30845if test "x$ac_cv_header_jbig_h" = xyes; then :
30846  passed=`expr $passed + 1`
30847else
30848  failed=`expr $failed + 1`
30849fi
30850
30851
30852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
30853$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
30854if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
30855  $as_echo_n "(cached) " >&6
30856else
30857  ac_check_lib_save_LIBS=$LIBS
30858LIBS="-ljbig  $LIBS"
30859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30860/* end confdefs.h.  */
30861
30862/* Override any GCC internal prototype to avoid an error.
30863   Use char because int might match the return type of a GCC
30864   builtin and then its argument prototype would still apply.  */
30865#ifdef __cplusplus
30866extern "C"
30867#endif
30868char jbg_dec_init ();
30869int
30870main ()
30871{
30872return jbg_dec_init ();
30873  ;
30874  return 0;
30875}
30876_ACEOF
30877if ac_fn_c_try_link "$LINENO"; then :
30878  ac_cv_lib_jbig_jbg_dec_init=yes
30879else
30880  ac_cv_lib_jbig_jbg_dec_init=no
30881fi
30882rm -f core conftest.err conftest.$ac_objext \
30883    conftest$ac_exeext conftest.$ac_ext
30884LIBS=$ac_check_lib_save_LIBS
30885fi
30886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
30887$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
30888if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
30889  passed=`expr $passed + 1`
30890else
30891  failed=`expr $failed + 1`
30892fi
30893
30894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
30895$as_echo_n "checking if JBIG package is complete... " >&6; }
30896    if test $passed -gt 0; then
30897        if test $failed -gt 0; then
30898            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30899$as_echo "no -- some components failed test" >&6; }
30900            have_jbig='no (failed tests)'
30901        else
30902            JBIG_LIBS='-ljbig'
30903            LIBS="$JBIG_LIBS $LIBS"
30904
30905$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
30906
30907            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30908$as_echo "yes" >&6; }
30909            have_jbig='yes'
30910        fi
30911    else
30912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30913$as_echo "no" >&6; }
30914    fi
30915fi
30916 if test "$have_jbig" = 'yes'; then
30917  JBIG_DELEGATE_TRUE=
30918  JBIG_DELEGATE_FALSE='#'
30919else
30920  JBIG_DELEGATE_TRUE='#'
30921  JBIG_DELEGATE_FALSE=
30922fi
30923
30924
30925
30926
30927#
30928# Check for JPEG delegate library.
30929#
30930
30931# Check whether --with-jpeg was given.
30932if test "${with_jpeg+set}" = set; then :
30933  withval=$with_jpeg; with_jpeg=$withval
30934else
30935  with_jpeg='yes'
30936fi
30937
30938
30939if test "$with_jpeg" != 'yes'; then
30940    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30941fi
30942
30943have_jpeg='no'
30944JPEG_LIBS=''
30945if test "$with_jpeg" != 'no'; then
30946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30947$as_echo "-------------------------------------------------------------" >&6; }
30948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
30949$as_echo_n "checking for JPEG... " >&6; }
30950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30951$as_echo "" >&6; }
30952    failed=0
30953    passed=0
30954    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
30955if test "x$ac_cv_header_jconfig_h" = xyes; then :
30956  passed=`expr $passed + 1`
30957else
30958  failed=`expr $failed + 1`
30959fi
30960
30961
30962    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
30963if test "x$ac_cv_header_jerror_h" = xyes; then :
30964  passed=`expr $passed + 1`
30965else
30966  failed=`expr $failed + 1`
30967fi
30968
30969
30970    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
30971if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
30972  passed=`expr $passed + 1`
30973else
30974  failed=`expr $failed + 1`
30975fi
30976
30977
30978    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
30979if test "x$ac_cv_header_jpeglib_h" = xyes; then :
30980  passed=`expr $passed + 1`
30981else
30982  failed=`expr $failed + 1`
30983fi
30984
30985
30986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
30987$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
30988if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
30989  $as_echo_n "(cached) " >&6
30990else
30991  ac_check_lib_save_LIBS=$LIBS
30992LIBS="-ljpeg  $LIBS"
30993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30994/* end confdefs.h.  */
30995
30996/* Override any GCC internal prototype to avoid an error.
30997   Use char because int might match the return type of a GCC
30998   builtin and then its argument prototype would still apply.  */
30999#ifdef __cplusplus
31000extern "C"
31001#endif
31002char jpeg_read_header ();
31003int
31004main ()
31005{
31006return jpeg_read_header ();
31007  ;
31008  return 0;
31009}
31010_ACEOF
31011if ac_fn_c_try_link "$LINENO"; then :
31012  ac_cv_lib_jpeg_jpeg_read_header=yes
31013else
31014  ac_cv_lib_jpeg_jpeg_read_header=no
31015fi
31016rm -f core conftest.err conftest.$ac_objext \
31017    conftest$ac_exeext conftest.$ac_ext
31018LIBS=$ac_check_lib_save_LIBS
31019fi
31020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
31021$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
31022if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
31023  passed=`expr $passed + 1`
31024else
31025  failed=`expr $failed + 1`
31026fi
31027
31028
31029# Test for compatible JPEG library
31030if test "$ac_cv_jpeg_version_ok" != 'yes'; then
31031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
31032$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
31033if ${ac_cv_jpeg_version_ok+:} false; then :
31034  $as_echo_n "(cached) " >&6
31035else
31036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31037/* end confdefs.h.  */
31038#include <stdio.h>
31039#include <stdlib.h>
31040#include <jpeglib.h>
31041
31042int
31043main ()
31044{
31045
31046#if JPEG_LIB_VERSION < 62
31047#error IJG JPEG library must be version 6b or newer!
31048#endif
31049return 0;
31050
31051  ;
31052  return 0;
31053}
31054_ACEOF
31055if ac_fn_c_try_compile "$LINENO"; then :
31056  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
31057else
31058  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
31059fi
31060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31061fi
31062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
31063$as_echo "$ac_cv_jpeg_version_ok" >&6; }
31064fi
31065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
31066$as_echo_n "checking if JPEG package is complete... " >&6; }
31067    if test $passed -gt 0; then
31068        if test $failed -gt 0; then
31069            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31070$as_echo "no -- some components failed test" >&6; }
31071            have_jpeg='no (failed tests)'
31072        else
31073            JPEG_LIBS='-ljpeg'
31074            LIBS="$JPEG_LIBS $LIBS"
31075
31076$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
31077
31078            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31079$as_echo "yes" >&6; }
31080            have_jpeg='yes'
31081        fi
31082    else
31083        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31084$as_echo "no" >&6; }
31085    fi
31086fi
31087 if test "$have_jpeg" = 'yes'; then
31088  JPEG_DELEGATE_TRUE=
31089  JPEG_DELEGATE_FALSE='#'
31090else
31091  JPEG_DELEGATE_TRUE='#'
31092  JPEG_DELEGATE_FALSE=
31093fi
31094
31095
31096
31097
31098#
31099# Check for Jpegxl delegate library.
31100#
31101
31102# Check whether --with-jxl was given.
31103if test "${with_jxl+set}" = set; then :
31104  withval=$with_jxl; with_jxl=$withval
31105else
31106  with_jxl='yes'
31107fi
31108
31109
31110if test "$with_jxl" != 'yes'; then
31111    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jxl=$with_jxl "
31112fi
31113
31114# Check for the brunsli libraries, currently the only libraries used by the jxl coder.
31115# Full jxl support will be added once the full libraries are released.
31116have_jxl='no'
31117JXL_LIBS=''
31118if test "$with_jxl" != 'no'; then
31119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31120$as_echo "-------------------------------------------------------------" >&6; }
31121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brunsli" >&5
31122$as_echo_n "checking for brunsli... " >&6; }
31123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31124$as_echo "" >&6; }
31125  failed=0
31126  passed=0
31127  ac_fn_c_check_header_mongrel "$LINENO" "brunsli/decode.h" "ac_cv_header_brunsli_decode_h" "$ac_includes_default"
31128if test "x$ac_cv_header_brunsli_decode_h" = xyes; then :
31129  passed=`expr $passed + 1`
31130else
31131  failed=`expr $failed + 1`
31132fi
31133
31134
31135  ac_fn_c_check_header_mongrel "$LINENO" "brunsli/encode.h" "ac_cv_header_brunsli_encode_h" "$ac_includes_default"
31136if test "x$ac_cv_header_brunsli_encode_h" = xyes; then :
31137  passed=`expr $passed + 1`
31138else
31139  failed=`expr $failed + 1`
31140fi
31141
31142
31143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DecodeBrunsli in -lbrunslidec-c" >&5
31144$as_echo_n "checking for DecodeBrunsli in -lbrunslidec-c... " >&6; }
31145if ${ac_cv_lib_brunslidec_c_DecodeBrunsli+:} false; then :
31146  $as_echo_n "(cached) " >&6
31147else
31148  ac_check_lib_save_LIBS=$LIBS
31149LIBS="-lbrunslidec-c  $LIBS"
31150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31151/* end confdefs.h.  */
31152
31153/* Override any GCC internal prototype to avoid an error.
31154   Use char because int might match the return type of a GCC
31155   builtin and then its argument prototype would still apply.  */
31156#ifdef __cplusplus
31157extern "C"
31158#endif
31159char DecodeBrunsli ();
31160int
31161main ()
31162{
31163return DecodeBrunsli ();
31164  ;
31165  return 0;
31166}
31167_ACEOF
31168if ac_fn_c_try_link "$LINENO"; then :
31169  ac_cv_lib_brunslidec_c_DecodeBrunsli=yes
31170else
31171  ac_cv_lib_brunslidec_c_DecodeBrunsli=no
31172fi
31173rm -f core conftest.err conftest.$ac_objext \
31174    conftest$ac_exeext conftest.$ac_ext
31175LIBS=$ac_check_lib_save_LIBS
31176fi
31177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brunslidec_c_DecodeBrunsli" >&5
31178$as_echo "$ac_cv_lib_brunslidec_c_DecodeBrunsli" >&6; }
31179if test "x$ac_cv_lib_brunslidec_c_DecodeBrunsli" = xyes; then :
31180  passed=`expr $passed + 1`
31181else
31182  failed=`expr $failed + 1`
31183fi
31184
31185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EncodeBrunsli in -lbrunslienc-c" >&5
31186$as_echo_n "checking for EncodeBrunsli in -lbrunslienc-c... " >&6; }
31187if ${ac_cv_lib_brunslienc_c_EncodeBrunsli+:} false; then :
31188  $as_echo_n "(cached) " >&6
31189else
31190  ac_check_lib_save_LIBS=$LIBS
31191LIBS="-lbrunslienc-c  $LIBS"
31192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31193/* end confdefs.h.  */
31194
31195/* Override any GCC internal prototype to avoid an error.
31196   Use char because int might match the return type of a GCC
31197   builtin and then its argument prototype would still apply.  */
31198#ifdef __cplusplus
31199extern "C"
31200#endif
31201char EncodeBrunsli ();
31202int
31203main ()
31204{
31205return EncodeBrunsli ();
31206  ;
31207  return 0;
31208}
31209_ACEOF
31210if ac_fn_c_try_link "$LINENO"; then :
31211  ac_cv_lib_brunslienc_c_EncodeBrunsli=yes
31212else
31213  ac_cv_lib_brunslienc_c_EncodeBrunsli=no
31214fi
31215rm -f core conftest.err conftest.$ac_objext \
31216    conftest$ac_exeext conftest.$ac_ext
31217LIBS=$ac_check_lib_save_LIBS
31218fi
31219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brunslienc_c_EncodeBrunsli" >&5
31220$as_echo "$ac_cv_lib_brunslienc_c_EncodeBrunsli" >&6; }
31221if test "x$ac_cv_lib_brunslienc_c_EncodeBrunsli" = xyes; then :
31222  passed=`expr $passed + 1`
31223else
31224  failed=`expr $failed + 1`
31225fi
31226
31227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if brunsli package is complete" >&5
31228$as_echo_n "checking if brunsli package is complete... " >&6; }
31229  if test $passed -gt 0; then
31230      if test $failed -gt 0; then
31231          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31232$as_echo "no -- some components failed test" >&6; }
31233          have_jxl='no (failed tests)'
31234      else
31235          JXL_LIBS='-lbrunslidec-c -lbrunslienc-c'
31236          LIBS="$JXL_LIBS $LIBS"
31237
31238$as_echo "#define JXL_DELEGATE 1" >>confdefs.h
31239
31240          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241$as_echo "yes" >&6; }
31242          have_jxl='yes'
31243      fi
31244  else
31245      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31246$as_echo "no" >&6; }
31247  fi
31248fi
31249 if test "$have_jxl" = 'yes'; then
31250  JXL_DELEGATE_TRUE=
31251  JXL_DELEGATE_FALSE='#'
31252else
31253  JXL_DELEGATE_TRUE='#'
31254  JXL_DELEGATE_FALSE=
31255fi
31256
31257
31258
31259
31260#
31261# Check for LCMS delegate library.
31262#
31263
31264# Check whether --with-lcms was given.
31265if test "${with_lcms+set}" = set; then :
31266  withval=$with_lcms; with_lcms=$withval
31267else
31268  with_lcms='yes'
31269fi
31270
31271if test "$with_lcms" != 'yes' ; then
31272    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
31273fi
31274
31275have_lcms='no'
31276LCMS_CFLAGS=""
31277LCMS_LIBS=""
31278LCMS_PKG=""
31279if test "x$with_lcms" = "xyes"; then
31280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31281$as_echo "-------------------------------------------------------------" >&6; }
31282
31283pkg_failed=no
31284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms2 >= 2.0.0" >&5
31285$as_echo_n "checking for lcms2 >= 2.0.0... " >&6; }
31286
31287if test -n "$LCMS2_CFLAGS"; then
31288    pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
31289 elif test -n "$PKG_CONFIG"; then
31290    if test -n "$PKG_CONFIG" && \
31291    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
31292  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
31293  ac_status=$?
31294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31295  test $ac_status = 0; }; then
31296  pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
31297		      test "x$?" != "x0" && pkg_failed=yes
31298else
31299  pkg_failed=yes
31300fi
31301 else
31302    pkg_failed=untried
31303fi
31304if test -n "$LCMS2_LIBS"; then
31305    pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
31306 elif test -n "$PKG_CONFIG"; then
31307    if test -n "$PKG_CONFIG" && \
31308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
31309  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
31310  ac_status=$?
31311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31312  test $ac_status = 0; }; then
31313  pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
31314		      test "x$?" != "x0" && pkg_failed=yes
31315else
31316  pkg_failed=yes
31317fi
31318 else
31319    pkg_failed=untried
31320fi
31321
31322
31323
31324if test $pkg_failed = yes; then
31325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326$as_echo "no" >&6; }
31327
31328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31329        _pkg_short_errors_supported=yes
31330else
31331        _pkg_short_errors_supported=no
31332fi
31333        if test $_pkg_short_errors_supported = yes; then
31334	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31335        else
31336	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31337        fi
31338	# Put the nasty error message in config.log where it belongs
31339	echo "$LCMS2_PKG_ERRORS" >&5
31340
31341	have_lcms=no
31342elif test $pkg_failed = untried; then
31343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31344$as_echo "no" >&6; }
31345	have_lcms=no
31346else
31347	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
31348	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
31349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31350$as_echo "yes" >&6; }
31351	have_lcms=yes
31352fi
31353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31354$as_echo "" >&6; }
31355fi
31356
31357if test "$have_lcms" = 'yes'; then
31358
31359$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
31360
31361  LCMS_CFLAGS="$LCMS2_CFLAGS"
31362  LCMS_LIBS="$LCMS2_LIBS"
31363  CFLAGS="$LCMS2_CFLAGS $CFLAGS"
31364  ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
31365if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
31366  have_lcms_header='yes'
31367fi
31368
31369
31370  if test "$have_lcms_header" = 'yes'; then
31371
31372$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
31373
31374  else
31375
31376$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
31377
31378  fi
31379fi
31380
31381 if test "$have_lcms" = 'yes'; then
31382  LCMS_DELEGATE_TRUE=
31383  LCMS_DELEGATE_FALSE='#'
31384else
31385  LCMS_DELEGATE_TRUE='#'
31386  LCMS_DELEGATE_FALSE=
31387fi
31388
31389
31390
31391
31392
31393#
31394# Check for the OpenJP2 delegate library.
31395#
31396
31397# Check whether --with-openjp2 was given.
31398if test "${with_openjp2+set}" = set; then :
31399  withval=$with_openjp2; with_openjp2=$withval
31400else
31401  with_openjp2='yes'
31402fi
31403
31404
31405if test "$with_openjp2" != 'yes'; then
31406    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
31407fi
31408
31409have_openjp2='no'
31410LIBOPENJP2_CFLAGS=""
31411LIBOPENJP2_LIBS=""
31412LIBOPENJP2_PKG=""
31413if test "x$with_openjp2" = "xyes"; then
31414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31415$as_echo "-------------------------------------------------------------" >&6; }
31416
31417pkg_failed=no
31418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libopenjp2 >= 2.1.0" >&5
31419$as_echo_n "checking for libopenjp2 >= 2.1.0... " >&6; }
31420
31421if test -n "$LIBOPENJP2_CFLAGS"; then
31422    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
31423 elif test -n "$PKG_CONFIG"; then
31424    if test -n "$PKG_CONFIG" && \
31425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31426  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31427  ac_status=$?
31428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31429  test $ac_status = 0; }; then
31430  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
31431		      test "x$?" != "x0" && pkg_failed=yes
31432else
31433  pkg_failed=yes
31434fi
31435 else
31436    pkg_failed=untried
31437fi
31438if test -n "$LIBOPENJP2_LIBS"; then
31439    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
31440 elif test -n "$PKG_CONFIG"; then
31441    if test -n "$PKG_CONFIG" && \
31442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31443  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31444  ac_status=$?
31445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31446  test $ac_status = 0; }; then
31447  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
31448		      test "x$?" != "x0" && pkg_failed=yes
31449else
31450  pkg_failed=yes
31451fi
31452 else
31453    pkg_failed=untried
31454fi
31455
31456
31457
31458if test $pkg_failed = yes; then
31459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31460$as_echo "no" >&6; }
31461
31462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31463        _pkg_short_errors_supported=yes
31464else
31465        _pkg_short_errors_supported=no
31466fi
31467        if test $_pkg_short_errors_supported = yes; then
31468	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
31469        else
31470	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
31471        fi
31472	# Put the nasty error message in config.log where it belongs
31473	echo "$LIBOPENJP2_PKG_ERRORS" >&5
31474
31475	have_openjp2=no
31476elif test $pkg_failed = untried; then
31477        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31478$as_echo "no" >&6; }
31479	have_openjp2=no
31480else
31481	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
31482	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
31483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31484$as_echo "yes" >&6; }
31485	have_openjp2=yes
31486fi
31487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31488$as_echo "" >&6; }
31489fi
31490
31491if test "$have_openjp2" = 'yes'; then
31492
31493$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
31494
31495  CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
31496fi
31497
31498 if test "$have_openjp2" = 'yes'; then
31499  LIBOPENJP2_DELEGATE_TRUE=
31500  LIBOPENJP2_DELEGATE_FALSE='#'
31501else
31502  LIBOPENJP2_DELEGATE_TRUE='#'
31503  LIBOPENJP2_DELEGATE_FALSE=
31504fi
31505
31506
31507
31508
31509
31510
31511#
31512# Check for the LQR (Liquid Rescale) delegate library.
31513#
31514
31515# Check whether --with-lqr was given.
31516if test "${with_lqr+set}" = set; then :
31517  withval=$with_lqr; with_lqr=$withval
31518else
31519  with_lqr='yes'
31520fi
31521
31522
31523if test "$with_lqr" != 'yes'; then
31524    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
31525fi
31526
31527have_lqr='no'
31528LQR_CFLAGS=""
31529LQR_LIBS=""
31530LQR_PKG=""
31531if test "x$with_lqr" = "xyes"; then
31532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31533$as_echo "-------------------------------------------------------------" >&6; }
31534
31535pkg_failed=no
31536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqr-1 >= 0.1.0" >&5
31537$as_echo_n "checking for lqr-1 >= 0.1.0... " >&6; }
31538
31539if test -n "$LQR_CFLAGS"; then
31540    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
31541 elif test -n "$PKG_CONFIG"; then
31542    if test -n "$PKG_CONFIG" && \
31543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31544  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31545  ac_status=$?
31546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547  test $ac_status = 0; }; then
31548  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
31549		      test "x$?" != "x0" && pkg_failed=yes
31550else
31551  pkg_failed=yes
31552fi
31553 else
31554    pkg_failed=untried
31555fi
31556if test -n "$LQR_LIBS"; then
31557    pkg_cv_LQR_LIBS="$LQR_LIBS"
31558 elif test -n "$PKG_CONFIG"; then
31559    if test -n "$PKG_CONFIG" && \
31560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31561  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31562  ac_status=$?
31563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31564  test $ac_status = 0; }; then
31565  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
31566		      test "x$?" != "x0" && pkg_failed=yes
31567else
31568  pkg_failed=yes
31569fi
31570 else
31571    pkg_failed=untried
31572fi
31573
31574
31575
31576if test $pkg_failed = yes; then
31577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31578$as_echo "no" >&6; }
31579
31580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31581        _pkg_short_errors_supported=yes
31582else
31583        _pkg_short_errors_supported=no
31584fi
31585        if test $_pkg_short_errors_supported = yes; then
31586	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
31587        else
31588	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
31589        fi
31590	# Put the nasty error message in config.log where it belongs
31591	echo "$LQR_PKG_ERRORS" >&5
31592
31593	have_lqr=no
31594elif test $pkg_failed = untried; then
31595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31596$as_echo "no" >&6; }
31597	have_lqr=no
31598else
31599	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
31600	LQR_LIBS=$pkg_cv_LQR_LIBS
31601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31602$as_echo "yes" >&6; }
31603	have_lqr=yes
31604fi
31605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31606$as_echo "" >&6; }
31607fi
31608
31609if test "$have_lqr" = 'yes'; then
31610
31611$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
31612
31613  CFLAGS="$LQR_CFLAGS $CFLAGS"
31614fi
31615
31616 if test "$have_lqr" = 'yes'; then
31617  LQR_DELEGATE_TRUE=
31618  LQR_DELEGATE_FALSE='#'
31619else
31620  LQR_DELEGATE_TRUE='#'
31621  LQR_DELEGATE_FALSE=
31622fi
31623
31624
31625
31626
31627
31628# Disable LZMA (lzma library)
31629
31630# Check whether --with-lzma was given.
31631if test "${with_lzma+set}" = set; then :
31632  withval=$with_lzma; with_lzma=$withval
31633else
31634  with_lzma='yes'
31635fi
31636
31637if test "$with_lzma" != 'yes' ; then
31638    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
31639fi
31640
31641LZMA_PKG=""
31642if test "x$with_lzma" = "xyes"; then
31643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31644$as_echo "-------------------------------------------------------------" >&6; }
31645
31646pkg_failed=no
31647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma >= 2.9.0" >&5
31648$as_echo_n "checking for liblzma >= 2.9.0... " >&6; }
31649
31650if test -n "$LZMA_CFLAGS"; then
31651    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
31652 elif test -n "$PKG_CONFIG"; then
31653    if test -n "$PKG_CONFIG" && \
31654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31655  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31656  ac_status=$?
31657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31658  test $ac_status = 0; }; then
31659  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
31660		      test "x$?" != "x0" && pkg_failed=yes
31661else
31662  pkg_failed=yes
31663fi
31664 else
31665    pkg_failed=untried
31666fi
31667if test -n "$LZMA_LIBS"; then
31668    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
31669 elif test -n "$PKG_CONFIG"; then
31670    if test -n "$PKG_CONFIG" && \
31671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31672  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31673  ac_status=$?
31674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31675  test $ac_status = 0; }; then
31676  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
31677		      test "x$?" != "x0" && pkg_failed=yes
31678else
31679  pkg_failed=yes
31680fi
31681 else
31682    pkg_failed=untried
31683fi
31684
31685
31686
31687if test $pkg_failed = yes; then
31688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689$as_echo "no" >&6; }
31690
31691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31692        _pkg_short_errors_supported=yes
31693else
31694        _pkg_short_errors_supported=no
31695fi
31696        if test $_pkg_short_errors_supported = yes; then
31697	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
31698        else
31699	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
31700        fi
31701	# Put the nasty error message in config.log where it belongs
31702	echo "$LZMA_PKG_ERRORS" >&5
31703
31704	have_lzma=no
31705elif test $pkg_failed = untried; then
31706        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31707$as_echo "no" >&6; }
31708	have_lzma=no
31709else
31710	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
31711	LZMA_LIBS=$pkg_cv_LZMA_LIBS
31712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31713$as_echo "yes" >&6; }
31714	have_lzma=yes
31715fi
31716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31717$as_echo "" >&6; }
31718fi
31719
31720if test "$have_lzma" = 'yes'; then
31721
31722$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
31723
31724  CFLAGS="$LZMA_CFLAGS $CFLAGS"
31725fi
31726
31727 if test "$have_lzma" = 'yes'; then
31728  LZMA_DELEGATE_TRUE=
31729  LZMA_DELEGATE_FALSE='#'
31730else
31731  LZMA_DELEGATE_TRUE='#'
31732  LZMA_DELEGATE_FALSE=
31733fi
31734
31735
31736
31737
31738
31739#
31740# Check for the OpenEXR delegate library.
31741#
31742
31743# Check whether --with-openexr was given.
31744if test "${with_openexr+set}" = set; then :
31745  withval=$with_openexr; with_openexr=$withval
31746else
31747  with_openexr='yes'
31748fi
31749
31750
31751if test "$with_openexr" != 'yes'; then
31752    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31753fi
31754
31755have_openexr='no'
31756OPENEXR_CFLAGS=""
31757OPENEXR_LIBS=""
31758OPENEXR_PKG=""
31759if test "x$with_openexr" = "xyes"; then
31760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31761$as_echo "-------------------------------------------------------------" >&6; }
31762
31763pkg_failed=no
31764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenEXR >= 1.0.6" >&5
31765$as_echo_n "checking for OpenEXR >= 1.0.6... " >&6; }
31766
31767if test -n "$OPENEXR_CFLAGS"; then
31768    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31769 elif test -n "$PKG_CONFIG"; then
31770    if test -n "$PKG_CONFIG" && \
31771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31772  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31773  ac_status=$?
31774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775  test $ac_status = 0; }; then
31776  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
31777		      test "x$?" != "x0" && pkg_failed=yes
31778else
31779  pkg_failed=yes
31780fi
31781 else
31782    pkg_failed=untried
31783fi
31784if test -n "$OPENEXR_LIBS"; then
31785    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31786 elif test -n "$PKG_CONFIG"; then
31787    if test -n "$PKG_CONFIG" && \
31788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31789  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31790  ac_status=$?
31791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31792  test $ac_status = 0; }; then
31793  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
31794		      test "x$?" != "x0" && pkg_failed=yes
31795else
31796  pkg_failed=yes
31797fi
31798 else
31799    pkg_failed=untried
31800fi
31801
31802
31803
31804if test $pkg_failed = yes; then
31805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31806$as_echo "no" >&6; }
31807
31808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31809        _pkg_short_errors_supported=yes
31810else
31811        _pkg_short_errors_supported=no
31812fi
31813        if test $_pkg_short_errors_supported = yes; then
31814	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
31815        else
31816	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
31817        fi
31818	# Put the nasty error message in config.log where it belongs
31819	echo "$OPENEXR_PKG_ERRORS" >&5
31820
31821	have_openexr=no
31822elif test $pkg_failed = untried; then
31823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31824$as_echo "no" >&6; }
31825	have_openexr=no
31826else
31827	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31828	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31829        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31830$as_echo "yes" >&6; }
31831	have_openexr=yes
31832fi
31833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31834$as_echo "" >&6; }
31835fi
31836
31837if test "$have_openexr" = 'yes'; then
31838
31839$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
31840
31841  CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31842fi
31843
31844 if test "$have_openexr" = 'yes'; then
31845  OPENEXR_DELEGATE_TRUE=
31846  OPENEXR_DELEGATE_FALSE='#'
31847else
31848  OPENEXR_DELEGATE_TRUE='#'
31849  OPENEXR_DELEGATE_FALSE=
31850fi
31851
31852
31853
31854
31855
31856#
31857# Check for PANGO delegate library.
31858#
31859
31860# Check whether --with-pango was given.
31861if test "${with_pango+set}" = set; then :
31862  withval=$with_pango; with_pango=$withval
31863else
31864  with_pango='yes'
31865fi
31866
31867
31868if test "$with_pango" != 'yes'; then
31869    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31870fi
31871
31872have_pango='no'
31873have_pangocairo='no'
31874PANGO_CFLAGS=""
31875PANGO_LIBS=""
31876PANGO_PKG=""
31877if test "x$with_pango" = "xyes"; then
31878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31879$as_echo "-------------------------------------------------------------" >&6; }
31880
31881pkg_failed=no
31882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangocairo >= 1.28.1" >&5
31883$as_echo_n "checking for pangocairo >= 1.28.1... " >&6; }
31884
31885if test -n "$PANGO_CFLAGS"; then
31886    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31887 elif test -n "$PKG_CONFIG"; then
31888    if test -n "$PKG_CONFIG" && \
31889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31890  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31891  ac_status=$?
31892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31893  test $ac_status = 0; }; then
31894  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
31895		      test "x$?" != "x0" && pkg_failed=yes
31896else
31897  pkg_failed=yes
31898fi
31899 else
31900    pkg_failed=untried
31901fi
31902if test -n "$PANGO_LIBS"; then
31903    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31904 elif test -n "$PKG_CONFIG"; then
31905    if test -n "$PKG_CONFIG" && \
31906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31907  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31908  ac_status=$?
31909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31910  test $ac_status = 0; }; then
31911  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
31912		      test "x$?" != "x0" && pkg_failed=yes
31913else
31914  pkg_failed=yes
31915fi
31916 else
31917    pkg_failed=untried
31918fi
31919
31920
31921
31922if test $pkg_failed = yes; then
31923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31924$as_echo "no" >&6; }
31925
31926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31927        _pkg_short_errors_supported=yes
31928else
31929        _pkg_short_errors_supported=no
31930fi
31931        if test $_pkg_short_errors_supported = yes; then
31932	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
31933        else
31934	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
31935        fi
31936	# Put the nasty error message in config.log where it belongs
31937	echo "$PANGO_PKG_ERRORS" >&5
31938
31939	have_pangocairo=no
31940elif test $pkg_failed = untried; then
31941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943	have_pangocairo=no
31944else
31945	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31946	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31947        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31948$as_echo "yes" >&6; }
31949	have_pangocairo=yes
31950fi
31951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31952$as_echo "" >&6; }
31953
31954pkg_failed=no
31955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.28.1" >&5
31956$as_echo_n "checking for pango >= 1.28.1... " >&6; }
31957
31958if test -n "$PANGO_CFLAGS"; then
31959    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31960 elif test -n "$PKG_CONFIG"; then
31961    if test -n "$PKG_CONFIG" && \
31962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31963  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31964  ac_status=$?
31965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31966  test $ac_status = 0; }; then
31967  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
31968		      test "x$?" != "x0" && pkg_failed=yes
31969else
31970  pkg_failed=yes
31971fi
31972 else
31973    pkg_failed=untried
31974fi
31975if test -n "$PANGO_LIBS"; then
31976    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31977 elif test -n "$PKG_CONFIG"; then
31978    if test -n "$PKG_CONFIG" && \
31979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31980  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31981  ac_status=$?
31982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31983  test $ac_status = 0; }; then
31984  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
31985		      test "x$?" != "x0" && pkg_failed=yes
31986else
31987  pkg_failed=yes
31988fi
31989 else
31990    pkg_failed=untried
31991fi
31992
31993
31994
31995if test $pkg_failed = yes; then
31996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31997$as_echo "no" >&6; }
31998
31999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32000        _pkg_short_errors_supported=yes
32001else
32002        _pkg_short_errors_supported=no
32003fi
32004        if test $_pkg_short_errors_supported = yes; then
32005	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
32006        else
32007	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
32008        fi
32009	# Put the nasty error message in config.log where it belongs
32010	echo "$PANGO_PKG_ERRORS" >&5
32011
32012	have_pango=no
32013elif test $pkg_failed = untried; then
32014        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32015$as_echo "no" >&6; }
32016	have_pango=no
32017else
32018	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
32019	PANGO_LIBS=$pkg_cv_PANGO_LIBS
32020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32021$as_echo "yes" >&6; }
32022	have_pango=yes
32023fi
32024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32025$as_echo "" >&6; }
32026fi
32027
32028if test "$have_pango" = 'yes'; then
32029
32030$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
32031
32032  CFLAGS="$PANGO_CFLAGS $CFLAGS"
32033fi
32034
32035if test "$have_pangocairo" = 'yes'; then
32036
32037$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
32038
32039  CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
32040fi
32041
32042 if test "$have_pango" = 'yes'; then
32043  PANGO_DELEGATE_TRUE=
32044  PANGO_DELEGATE_FALSE='#'
32045else
32046  PANGO_DELEGATE_TRUE='#'
32047  PANGO_DELEGATE_FALSE=
32048fi
32049
32050 if test "$have_pangocairo" = 'yes'; then
32051  PANGOCAIRO_DELEGATE_TRUE=
32052  PANGOCAIRO_DELEGATE_FALSE='#'
32053else
32054  PANGOCAIRO_DELEGATE_TRUE='#'
32055  PANGOCAIRO_DELEGATE_FALSE=
32056fi
32057
32058
32059
32060
32061
32062#
32063# Check for PNG delegate library.
32064#
32065
32066# Check whether --with-png was given.
32067if test "${with_png+set}" = set; then :
32068  withval=$with_png; with_png=$withval
32069else
32070  with_png='yes'
32071fi
32072
32073
32074if test "$with_png" != 'yes'; then
32075    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
32076fi
32077
32078have_png='no'
32079PNG_CFLAGS=""
32080PNG_LIBS=""
32081PNG_PKG=""
32082if test "x$with_png" = "xyes"; then
32083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32084$as_echo "-------------------------------------------------------------" >&6; }
32085
32086pkg_failed=no
32087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5
32088$as_echo_n "checking for libpng >= 1.0.0... " >&6; }
32089
32090if test -n "$PNG_CFLAGS"; then
32091    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
32092 elif test -n "$PKG_CONFIG"; then
32093    if test -n "$PKG_CONFIG" && \
32094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
32095  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
32096  ac_status=$?
32097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32098  test $ac_status = 0; }; then
32099  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
32100		      test "x$?" != "x0" && pkg_failed=yes
32101else
32102  pkg_failed=yes
32103fi
32104 else
32105    pkg_failed=untried
32106fi
32107if test -n "$PNG_LIBS"; then
32108    pkg_cv_PNG_LIBS="$PNG_LIBS"
32109 elif test -n "$PKG_CONFIG"; then
32110    if test -n "$PKG_CONFIG" && \
32111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
32112  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
32113  ac_status=$?
32114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32115  test $ac_status = 0; }; then
32116  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
32117		      test "x$?" != "x0" && pkg_failed=yes
32118else
32119  pkg_failed=yes
32120fi
32121 else
32122    pkg_failed=untried
32123fi
32124
32125
32126
32127if test $pkg_failed = yes; then
32128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129$as_echo "no" >&6; }
32130
32131if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32132        _pkg_short_errors_supported=yes
32133else
32134        _pkg_short_errors_supported=no
32135fi
32136        if test $_pkg_short_errors_supported = yes; then
32137	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
32138        else
32139	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
32140        fi
32141	# Put the nasty error message in config.log where it belongs
32142	echo "$PNG_PKG_ERRORS" >&5
32143
32144	have_png=no
32145elif test $pkg_failed = untried; then
32146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32147$as_echo "no" >&6; }
32148	have_png=no
32149else
32150	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
32151	PNG_LIBS=$pkg_cv_PNG_LIBS
32152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32153$as_echo "yes" >&6; }
32154	have_png=yes
32155fi
32156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32157$as_echo "" >&6; }
32158fi
32159
32160if test "$have_png" = 'yes'; then
32161
32162$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
32163
32164  CFLAGS="$PNG_CFLAGS $CFLAGS"
32165fi
32166
32167 if test "$have_png" = 'yes'; then
32168  PNG_DELEGATE_TRUE=
32169  PNG_DELEGATE_FALSE='#'
32170else
32171  PNG_DELEGATE_TRUE='#'
32172  PNG_DELEGATE_FALSE=
32173fi
32174
32175
32176
32177
32178
32179#
32180# Check for the Raw delegate library.
32181#
32182
32183# Check whether --with-raw was given.
32184if test "${with_raw+set}" = set; then :
32185  withval=$with_raw; with_raw=$withval
32186else
32187  with_raw='yes'
32188fi
32189
32190
32191if test "$with_raw" != 'yes'; then
32192    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw "
32193fi
32194
32195have_raw='no'
32196RAW_R_CFLAGS=""
32197RAW_R_LIBS=""
32198RAW_R_PKG=""
32199if test "x$with_raw" = "xyes"; then
32200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32201$as_echo "-------------------------------------------------------------" >&6; }
32202
32203pkg_failed=no
32204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw_r >= 0.14.8" >&5
32205$as_echo_n "checking for libraw_r >= 0.14.8... " >&6; }
32206
32207if test -n "$RAW_R_CFLAGS"; then
32208    pkg_cv_RAW_R_CFLAGS="$RAW_R_CFLAGS"
32209 elif test -n "$PKG_CONFIG"; then
32210    if test -n "$PKG_CONFIG" && \
32211    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
32212  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
32213  ac_status=$?
32214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32215  test $ac_status = 0; }; then
32216  pkg_cv_RAW_R_CFLAGS=`$PKG_CONFIG --cflags "libraw_r >= 0.14.8" 2>/dev/null`
32217		      test "x$?" != "x0" && pkg_failed=yes
32218else
32219  pkg_failed=yes
32220fi
32221 else
32222    pkg_failed=untried
32223fi
32224if test -n "$RAW_R_LIBS"; then
32225    pkg_cv_RAW_R_LIBS="$RAW_R_LIBS"
32226 elif test -n "$PKG_CONFIG"; then
32227    if test -n "$PKG_CONFIG" && \
32228    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
32229  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
32230  ac_status=$?
32231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32232  test $ac_status = 0; }; then
32233  pkg_cv_RAW_R_LIBS=`$PKG_CONFIG --libs "libraw_r >= 0.14.8" 2>/dev/null`
32234		      test "x$?" != "x0" && pkg_failed=yes
32235else
32236  pkg_failed=yes
32237fi
32238 else
32239    pkg_failed=untried
32240fi
32241
32242
32243
32244if test $pkg_failed = yes; then
32245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32246$as_echo "no" >&6; }
32247
32248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32249        _pkg_short_errors_supported=yes
32250else
32251        _pkg_short_errors_supported=no
32252fi
32253        if test $_pkg_short_errors_supported = yes; then
32254	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
32255        else
32256	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
32257        fi
32258	# Put the nasty error message in config.log where it belongs
32259	echo "$RAW_R_PKG_ERRORS" >&5
32260
32261	have_raw=no
32262elif test $pkg_failed = untried; then
32263        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32264$as_echo "no" >&6; }
32265	have_raw=no
32266else
32267	RAW_R_CFLAGS=$pkg_cv_RAW_R_CFLAGS
32268	RAW_R_LIBS=$pkg_cv_RAW_R_LIBS
32269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32270$as_echo "yes" >&6; }
32271	have_raw=yes
32272fi
32273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32274$as_echo "" >&6; }
32275fi
32276
32277if test "$have_raw" = 'yes'; then
32278
32279$as_echo "#define RAW_R_DELEGATE 1" >>confdefs.h
32280
32281  CFLAGS="$RAW_R_CFLAGS $CFLAGS"
32282fi
32283
32284 if test "$have_raw" = 'yes'; then
32285  RAW_R_DELEGATE_TRUE=
32286  RAW_R_DELEGATE_FALSE='#'
32287else
32288  RAW_R_DELEGATE_TRUE='#'
32289  RAW_R_DELEGATE_FALSE=
32290fi
32291
32292
32293
32294
32295
32296#
32297# Check for RSVG delegate library.
32298#
32299
32300# Check whether --with-rsvg was given.
32301if test "${with_rsvg+set}" = set; then :
32302  withval=$with_rsvg; with_rsvg=$withval
32303else
32304  with_rsvg='no'
32305fi
32306
32307
32308if test "$with_rsvg" != 'yes'; then
32309    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
32310fi
32311
32312have_rsvg='no'
32313have_cairo='no'
32314RSVG_CFLAGS=""
32315RSVG_LIBS=""
32316RSVG_PKG=""
32317if test "x$with_rsvg" = "xyes"; then
32318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32319$as_echo "-------------------------------------------------------------" >&6; }
32320
32321pkg_failed=no
32322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librsvg-2.0 >= 2.9.0" >&5
32323$as_echo_n "checking for librsvg-2.0 >= 2.9.0... " >&6; }
32324
32325if test -n "$RSVG_CFLAGS"; then
32326    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
32327 elif test -n "$PKG_CONFIG"; then
32328    if test -n "$PKG_CONFIG" && \
32329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32330  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32331  ac_status=$?
32332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32333  test $ac_status = 0; }; then
32334  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32335		      test "x$?" != "x0" && pkg_failed=yes
32336else
32337  pkg_failed=yes
32338fi
32339 else
32340    pkg_failed=untried
32341fi
32342if test -n "$RSVG_LIBS"; then
32343    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
32344 elif test -n "$PKG_CONFIG"; then
32345    if test -n "$PKG_CONFIG" && \
32346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32347  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32348  ac_status=$?
32349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32350  test $ac_status = 0; }; then
32351  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32352		      test "x$?" != "x0" && pkg_failed=yes
32353else
32354  pkg_failed=yes
32355fi
32356 else
32357    pkg_failed=untried
32358fi
32359
32360
32361
32362if test $pkg_failed = yes; then
32363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32364$as_echo "no" >&6; }
32365
32366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32367        _pkg_short_errors_supported=yes
32368else
32369        _pkg_short_errors_supported=no
32370fi
32371        if test $_pkg_short_errors_supported = yes; then
32372	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32373        else
32374	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32375        fi
32376	# Put the nasty error message in config.log where it belongs
32377	echo "$RSVG_PKG_ERRORS" >&5
32378
32379	have_rsvg=no
32380elif test $pkg_failed = untried; then
32381        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32382$as_echo "no" >&6; }
32383	have_rsvg=no
32384else
32385	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
32386	RSVG_LIBS=$pkg_cv_RSVG_LIBS
32387        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32388$as_echo "yes" >&6; }
32389	have_rsvg=yes
32390fi
32391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32392$as_echo "" >&6; }
32393
32394pkg_failed=no
32395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-svg" >&5
32396$as_echo_n "checking for cairo-svg... " >&6; }
32397
32398if test -n "$CAIRO_SVG_CFLAGS"; then
32399    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
32400 elif test -n "$PKG_CONFIG"; then
32401    if test -n "$PKG_CONFIG" && \
32402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32403  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32404  ac_status=$?
32405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32406  test $ac_status = 0; }; then
32407  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
32408		      test "x$?" != "x0" && pkg_failed=yes
32409else
32410  pkg_failed=yes
32411fi
32412 else
32413    pkg_failed=untried
32414fi
32415if test -n "$CAIRO_SVG_LIBS"; then
32416    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32417 elif test -n "$PKG_CONFIG"; then
32418    if test -n "$PKG_CONFIG" && \
32419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32420  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32421  ac_status=$?
32422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32423  test $ac_status = 0; }; then
32424  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
32425		      test "x$?" != "x0" && pkg_failed=yes
32426else
32427  pkg_failed=yes
32428fi
32429 else
32430    pkg_failed=untried
32431fi
32432
32433
32434
32435if test $pkg_failed = yes; then
32436        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32437$as_echo "no" >&6; }
32438
32439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32440        _pkg_short_errors_supported=yes
32441else
32442        _pkg_short_errors_supported=no
32443fi
32444        if test $_pkg_short_errors_supported = yes; then
32445	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
32446        else
32447	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
32448        fi
32449	# Put the nasty error message in config.log where it belongs
32450	echo "$CAIRO_SVG_PKG_ERRORS" >&5
32451
32452	have_cairo=no
32453elif test $pkg_failed = untried; then
32454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455$as_echo "no" >&6; }
32456	have_cairo=no
32457else
32458	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32459	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32461$as_echo "yes" >&6; }
32462	have_cairo=yes
32463fi
32464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32465$as_echo "" >&6; }
32466fi
32467
32468if test "$have_rsvg" = 'yes'; then
32469
32470$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
32471
32472  CFLAGS="$RSVG_CFLAGS $CFLAGS"
32473fi
32474
32475if test "$have_cairo" = 'yes'; then
32476
32477$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
32478
32479  CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
32480fi
32481
32482 if test "$have_rsvg" = 'yes'; then
32483  RSVG_DELEGATE_TRUE=
32484  RSVG_DELEGATE_FALSE='#'
32485else
32486  RSVG_DELEGATE_TRUE='#'
32487  RSVG_DELEGATE_FALSE=
32488fi
32489
32490 if test "$have_cairo" = 'yes'; then
32491  CAIRO_DELEGATE_TRUE=
32492  CAIRO_DELEGATE_FALSE='#'
32493else
32494  CAIRO_DELEGATE_TRUE='#'
32495  CAIRO_DELEGATE_FALSE=
32496fi
32497
32498
32499
32500
32501
32502#
32503# Check for TIFF delegate library.
32504#
32505
32506# Check whether --with-tiff was given.
32507if test "${with_tiff+set}" = set; then :
32508  withval=$with_tiff; with_tiff=$withval
32509else
32510  with_tiff='yes'
32511fi
32512
32513
32514if test "$with_tiff" != 'yes'; then
32515    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32516fi
32517
32518have_tiff='no'
32519TIFF_LIBS=''
32520if test "$with_tiff" != 'no'; then
32521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32522$as_echo "-------------------------------------------------------------" >&6; }
32523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
32524$as_echo_n "checking for TIFF... " >&6; }
32525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32526$as_echo "" >&6; }
32527    failed=0
32528    passed=0
32529    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
32530if test "x$ac_cv_header_tiff_h" = xyes; then :
32531  passed=`expr $passed + 1`
32532else
32533  failed=`expr $failed + 1`
32534fi
32535
32536
32537    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
32538if test "x$ac_cv_header_tiffio_h" = xyes; then :
32539  passed=`expr $passed + 1`
32540else
32541  failed=`expr $failed + 1`
32542fi
32543
32544
32545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
32546$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
32547if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
32548  $as_echo_n "(cached) " >&6
32549else
32550  ac_check_lib_save_LIBS=$LIBS
32551LIBS="-ltiff  $LIBS"
32552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32553/* end confdefs.h.  */
32554
32555/* Override any GCC internal prototype to avoid an error.
32556   Use char because int might match the return type of a GCC
32557   builtin and then its argument prototype would still apply.  */
32558#ifdef __cplusplus
32559extern "C"
32560#endif
32561char TIFFOpen ();
32562int
32563main ()
32564{
32565return TIFFOpen ();
32566  ;
32567  return 0;
32568}
32569_ACEOF
32570if ac_fn_c_try_link "$LINENO"; then :
32571  ac_cv_lib_tiff_TIFFOpen=yes
32572else
32573  ac_cv_lib_tiff_TIFFOpen=no
32574fi
32575rm -f core conftest.err conftest.$ac_objext \
32576    conftest$ac_exeext conftest.$ac_ext
32577LIBS=$ac_check_lib_save_LIBS
32578fi
32579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
32580$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
32581if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
32582  passed=`expr $passed + 1`
32583else
32584  failed=`expr $failed + 1`
32585fi
32586
32587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
32588$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
32589if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
32590  $as_echo_n "(cached) " >&6
32591else
32592  ac_check_lib_save_LIBS=$LIBS
32593LIBS="-ltiff  $LIBS"
32594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32595/* end confdefs.h.  */
32596
32597/* Override any GCC internal prototype to avoid an error.
32598   Use char because int might match the return type of a GCC
32599   builtin and then its argument prototype would still apply.  */
32600#ifdef __cplusplus
32601extern "C"
32602#endif
32603char TIFFClientOpen ();
32604int
32605main ()
32606{
32607return TIFFClientOpen ();
32608  ;
32609  return 0;
32610}
32611_ACEOF
32612if ac_fn_c_try_link "$LINENO"; then :
32613  ac_cv_lib_tiff_TIFFClientOpen=yes
32614else
32615  ac_cv_lib_tiff_TIFFClientOpen=no
32616fi
32617rm -f core conftest.err conftest.$ac_objext \
32618    conftest$ac_exeext conftest.$ac_ext
32619LIBS=$ac_check_lib_save_LIBS
32620fi
32621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
32622$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
32623if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
32624  passed=`expr $passed + 1`
32625else
32626  failed=`expr $failed + 1`
32627fi
32628
32629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
32630$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
32631if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
32632  $as_echo_n "(cached) " >&6
32633else
32634  ac_check_lib_save_LIBS=$LIBS
32635LIBS="-ltiff  $LIBS"
32636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32637/* end confdefs.h.  */
32638
32639/* Override any GCC internal prototype to avoid an error.
32640   Use char because int might match the return type of a GCC
32641   builtin and then its argument prototype would still apply.  */
32642#ifdef __cplusplus
32643extern "C"
32644#endif
32645char TIFFIsByteSwapped ();
32646int
32647main ()
32648{
32649return TIFFIsByteSwapped ();
32650  ;
32651  return 0;
32652}
32653_ACEOF
32654if ac_fn_c_try_link "$LINENO"; then :
32655  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32656else
32657  ac_cv_lib_tiff_TIFFIsByteSwapped=no
32658fi
32659rm -f core conftest.err conftest.$ac_objext \
32660    conftest$ac_exeext conftest.$ac_ext
32661LIBS=$ac_check_lib_save_LIBS
32662fi
32663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
32664$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
32665if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
32666  passed=`expr $passed + 1`
32667else
32668  failed=`expr $failed + 1`
32669fi
32670
32671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
32672$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
32673if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
32674  $as_echo_n "(cached) " >&6
32675else
32676  ac_check_lib_save_LIBS=$LIBS
32677LIBS="-ltiff  $LIBS"
32678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32679/* end confdefs.h.  */
32680
32681/* Override any GCC internal prototype to avoid an error.
32682   Use char because int might match the return type of a GCC
32683   builtin and then its argument prototype would still apply.  */
32684#ifdef __cplusplus
32685extern "C"
32686#endif
32687char TIFFReadRGBATile ();
32688int
32689main ()
32690{
32691return TIFFReadRGBATile ();
32692  ;
32693  return 0;
32694}
32695_ACEOF
32696if ac_fn_c_try_link "$LINENO"; then :
32697  ac_cv_lib_tiff_TIFFReadRGBATile=yes
32698else
32699  ac_cv_lib_tiff_TIFFReadRGBATile=no
32700fi
32701rm -f core conftest.err conftest.$ac_objext \
32702    conftest$ac_exeext conftest.$ac_ext
32703LIBS=$ac_check_lib_save_LIBS
32704fi
32705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
32706$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
32707if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
32708  passed=`expr $passed + 1`
32709else
32710  failed=`expr $failed + 1`
32711fi
32712
32713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
32714$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
32715if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
32716  $as_echo_n "(cached) " >&6
32717else
32718  ac_check_lib_save_LIBS=$LIBS
32719LIBS="-ltiff  $LIBS"
32720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32721/* end confdefs.h.  */
32722
32723/* Override any GCC internal prototype to avoid an error.
32724   Use char because int might match the return type of a GCC
32725   builtin and then its argument prototype would still apply.  */
32726#ifdef __cplusplus
32727extern "C"
32728#endif
32729char TIFFReadRGBAStrip ();
32730int
32731main ()
32732{
32733return TIFFReadRGBAStrip ();
32734  ;
32735  return 0;
32736}
32737_ACEOF
32738if ac_fn_c_try_link "$LINENO"; then :
32739  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32740else
32741  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
32742fi
32743rm -f core conftest.err conftest.$ac_objext \
32744    conftest$ac_exeext conftest.$ac_ext
32745LIBS=$ac_check_lib_save_LIBS
32746fi
32747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
32748$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
32749if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
32750  passed=`expr $passed + 1`
32751else
32752  failed=`expr $failed + 1`
32753fi
32754
32755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
32756$as_echo_n "checking if TIFF package is complete... " >&6; }
32757    if test $passed -gt 0; then
32758        if test $failed -gt 0; then
32759            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32760$as_echo "no -- some components failed test" >&6; }
32761            have_tiff='no (failed tests)'
32762        else
32763            TIFF_LIBS='-ltiff'
32764            LIBS="$TIFF_LIBS $LIBS"
32765
32766$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
32767
32768            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32769$as_echo "yes" >&6; }
32770            have_tiff='yes'
32771            for ac_header in tiffconf.h
32772do :
32773  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
32774if test "x$ac_cv_header_tiffconf_h" = xyes; then :
32775  cat >>confdefs.h <<_ACEOF
32776#define HAVE_TIFFCONF_H 1
32777_ACEOF
32778
32779fi
32780
32781done
32782
32783            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
32784              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32785              TIFFSetTagExtender TIFFSetWarningHandlerExt \
32786              TIFFSwabArrayOfTriples
32787do :
32788  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32790if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32791  cat >>confdefs.h <<_ACEOF
32792#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32793_ACEOF
32794
32795fi
32796done
32797
32798        fi
32799    else
32800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32801$as_echo "no" >&6; }
32802    fi
32803fi
32804 if test "$have_tiff" = 'yes'; then
32805  TIFF_DELEGATE_TRUE=
32806  TIFF_DELEGATE_FALSE='#'
32807else
32808  TIFF_DELEGATE_TRUE='#'
32809  TIFF_DELEGATE_FALSE=
32810fi
32811
32812
32813
32814
32815#
32816# Set URW Base35 font directory.
32817#
32818
32819# Check whether --with-urw-base35-font-dir was given.
32820if test "${with_urw_base35_font_dir+set}" = set; then :
32821  withval=$with_urw_base35_font_dir; with_urw_base35_font_dir=$withval
32822else
32823  with_urw_base35_font_dir='default'
32824fi
32825
32826
32827if test "$with_urw_base35_font_dir" != 'default'; then
32828    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir "
32829fi
32830
32831
32832#
32833# Check for the WEBP delegate library.
32834#
32835
32836# Check whether --with-webp was given.
32837if test "${with_webp+set}" = set; then :
32838  withval=$with_webp; with_webp=$withval
32839else
32840  with_webp='yes'
32841fi
32842
32843
32844if test "$with_webp" != 'yes'; then
32845    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32846fi
32847
32848have_webp='no'
32849have_webpmux='no'
32850WEBP_CFLAGS=""
32851WEBP_LIBS=""
32852WEBP_PKG=""
32853WEBPMUX_CFLAGS=""
32854WEBPMUX_LIBS=""
32855WEBPMUX_PKG=""
32856if test "x$with_webp" = "xyes"; then
32857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32858$as_echo "-------------------------------------------------------------" >&6; }
32859
32860pkg_failed=no
32861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5
32862$as_echo_n "checking for libwebp... " >&6; }
32863
32864if test -n "$WEBP_CFLAGS"; then
32865    pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
32866 elif test -n "$PKG_CONFIG"; then
32867    if test -n "$PKG_CONFIG" && \
32868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
32869  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
32870  ac_status=$?
32871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32872  test $ac_status = 0; }; then
32873  pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
32874		      test "x$?" != "x0" && pkg_failed=yes
32875else
32876  pkg_failed=yes
32877fi
32878 else
32879    pkg_failed=untried
32880fi
32881if test -n "$WEBP_LIBS"; then
32882    pkg_cv_WEBP_LIBS="$WEBP_LIBS"
32883 elif test -n "$PKG_CONFIG"; then
32884    if test -n "$PKG_CONFIG" && \
32885    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
32886  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
32887  ac_status=$?
32888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32889  test $ac_status = 0; }; then
32890  pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
32891		      test "x$?" != "x0" && pkg_failed=yes
32892else
32893  pkg_failed=yes
32894fi
32895 else
32896    pkg_failed=untried
32897fi
32898
32899
32900
32901if test $pkg_failed = yes; then
32902        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32903$as_echo "no" >&6; }
32904
32905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32906        _pkg_short_errors_supported=yes
32907else
32908        _pkg_short_errors_supported=no
32909fi
32910        if test $_pkg_short_errors_supported = yes; then
32911	        WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1`
32912        else
32913	        WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1`
32914        fi
32915	# Put the nasty error message in config.log where it belongs
32916	echo "$WEBP_PKG_ERRORS" >&5
32917
32918	have_webp=no
32919elif test $pkg_failed = untried; then
32920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32921$as_echo "no" >&6; }
32922	have_webp=no
32923else
32924	WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
32925	WEBP_LIBS=$pkg_cv_WEBP_LIBS
32926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32927$as_echo "yes" >&6; }
32928	have_webp=yes
32929fi
32930
32931pkg_failed=no
32932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" >&5
32933$as_echo_n "checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... " >&6; }
32934
32935if test -n "$WEBPMUX_CFLAGS"; then
32936    pkg_cv_WEBPMUX_CFLAGS="$WEBPMUX_CFLAGS"
32937 elif test -n "$PKG_CONFIG"; then
32938    if test -n "$PKG_CONFIG" && \
32939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
32940  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
32941  ac_status=$?
32942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32943  test $ac_status = 0; }; then
32944  pkg_cv_WEBPMUX_CFLAGS=`$PKG_CONFIG --cflags "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
32945		      test "x$?" != "x0" && pkg_failed=yes
32946else
32947  pkg_failed=yes
32948fi
32949 else
32950    pkg_failed=untried
32951fi
32952if test -n "$WEBPMUX_LIBS"; then
32953    pkg_cv_WEBPMUX_LIBS="$WEBPMUX_LIBS"
32954 elif test -n "$PKG_CONFIG"; then
32955    if test -n "$PKG_CONFIG" && \
32956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
32957  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
32958  ac_status=$?
32959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32960  test $ac_status = 0; }; then
32961  pkg_cv_WEBPMUX_LIBS=`$PKG_CONFIG --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
32962		      test "x$?" != "x0" && pkg_failed=yes
32963else
32964  pkg_failed=yes
32965fi
32966 else
32967    pkg_failed=untried
32968fi
32969
32970
32971
32972if test $pkg_failed = yes; then
32973        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974$as_echo "no" >&6; }
32975
32976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32977        _pkg_short_errors_supported=yes
32978else
32979        _pkg_short_errors_supported=no
32980fi
32981        if test $_pkg_short_errors_supported = yes; then
32982	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
32983        else
32984	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
32985        fi
32986	# Put the nasty error message in config.log where it belongs
32987	echo "$WEBPMUX_PKG_ERRORS" >&5
32988
32989	have_webpmux=no
32990elif test $pkg_failed = untried; then
32991        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32992$as_echo "no" >&6; }
32993	have_webpmux=no
32994else
32995	WEBPMUX_CFLAGS=$pkg_cv_WEBPMUX_CFLAGS
32996	WEBPMUX_LIBS=$pkg_cv_WEBPMUX_LIBS
32997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32998$as_echo "yes" >&6; }
32999	have_webpmux=yes
33000fi
33001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33002$as_echo "" >&6; }
33003fi
33004
33005if test "$have_webp" = 'yes'; then
33006
33007$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
33008
33009  CFLAGS="$WEBP_CFLAGS $CFLAGS"
33010fi
33011
33012if test "$have_webpmux" = 'yes'; then
33013
33014$as_echo "#define WEBPMUX_DELEGATE 1" >>confdefs.h
33015
33016  CFLAGS="$WEBPMUX_CFLAGS $CFLAGS"
33017fi
33018
33019 if test "$have_webp" = 'yes'; then
33020  WEBP_DELEGATE_TRUE=
33021  WEBP_DELEGATE_FALSE='#'
33022else
33023  WEBP_DELEGATE_TRUE='#'
33024  WEBP_DELEGATE_FALSE=
33025fi
33026
33027 if test "$have_webpmux" = 'yes'; then
33028  WEBPMUX_DELEGATE_TRUE=
33029  WEBPMUX_DELEGATE_FALSE='#'
33030else
33031  WEBPMUX_DELEGATE_TRUE='#'
33032  WEBPMUX_DELEGATE_FALSE=
33033fi
33034
33035
33036
33037
33038
33039
33040
33041#
33042# Set Windows font directory.
33043#
33044
33045# Check whether --with-windows-font-dir was given.
33046if test "${with_windows_font_dir+set}" = set; then :
33047  withval=$with_windows_font_dir; with_windows_font_dir=$withval
33048else
33049  with_windows_font_dir='default'
33050fi
33051
33052
33053if test "$with_windows_font_dir" != 'default'; then
33054    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
33055fi
33056
33057
33058#
33059# Check for WMF delegate library.
33060#
33061
33062# Check whether --with-wmf was given.
33063if test "${with_wmf+set}" = set; then :
33064  withval=$with_wmf; with_wmf=$withval
33065else
33066  with_wmf='yes'
33067fi
33068
33069
33070if test "$with_wmf" != 'yes'; then
33071    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
33072fi
33073
33074have_wmf='no'
33075WMF_LIBS=''
33076WMF_CFLAGS=''
33077OLIBS="$LIBS"
33078if test "$with_wmf" != 'no'; then
33079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
33080$as_echo_n "checking for WMF support ... " >&6; }
33081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33082$as_echo "" >&6; }
33083
33084  have_libwmflite='no'
33085  have_libwmf_ipa_h='no'
33086
33087  ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
33088"
33089if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
33090  have_libwmf_ipa_h='yes'
33091fi
33092
33093
33094  if test "$have_libwmf_ipa_h" = 'yes'; then
33095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
33096$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
33097if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
33098  $as_echo_n "(cached) " >&6
33099else
33100  ac_check_lib_save_LIBS=$LIBS
33101LIBS="-lwmflite  $LIBS"
33102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33103/* end confdefs.h.  */
33104
33105/* Override any GCC internal prototype to avoid an error.
33106   Use char because int might match the return type of a GCC
33107   builtin and then its argument prototype would still apply.  */
33108#ifdef __cplusplus
33109extern "C"
33110#endif
33111char wmf_lite_create ();
33112int
33113main ()
33114{
33115return wmf_lite_create ();
33116  ;
33117  return 0;
33118}
33119_ACEOF
33120if ac_fn_c_try_link "$LINENO"; then :
33121  ac_cv_lib_wmflite_wmf_lite_create=yes
33122else
33123  ac_cv_lib_wmflite_wmf_lite_create=no
33124fi
33125rm -f core conftest.err conftest.$ac_objext \
33126    conftest$ac_exeext conftest.$ac_ext
33127LIBS=$ac_check_lib_save_LIBS
33128fi
33129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
33130$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
33131if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
33132  have_libwmflite='yes'
33133fi
33134
33135    if test "$have_libwmflite" = 'yes'; then
33136
33137$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
33138
33139      WMF_LIBS='-lwmflite'
33140      LIBS="$WMF_LIBS $LIBS"
33141      have_wmf='yes'
33142    else
33143      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33144$as_echo "no -- some components failed test" >&6; }
33145      have_wmf='no (failed tests)'
33146      have_wmflite='no (failed tests)'
33147      LIBS="$OLIBS"
33148      WMF_LIBS=''
33149    fi
33150  fi
33151fi
33152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
33153$as_echo_n "checking if WMF package is complete ... " >&6; }
33154if test "$have_wmf" = 'yes'; then
33155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33156$as_echo "yes" >&6; }
33157else
33158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33159$as_echo "no" >&6; }
33160fi
33161 if test "$have_wmf" = 'yes'; then
33162  WMF_DELEGATE_TRUE=
33163  WMF_DELEGATE_FALSE='#'
33164else
33165  WMF_DELEGATE_TRUE='#'
33166  WMF_DELEGATE_FALSE=
33167fi
33168
33169
33170
33171
33172
33173#
33174# Check for XML delegate library.
33175#
33176
33177# Check whether --with-xml was given.
33178if test "${with_xml+set}" = set; then :
33179  withval=$with_xml; with_xml=$withval
33180else
33181  with_xml='yes'
33182fi
33183
33184
33185if test "$with_xml" != 'yes' ; then
33186    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
33187fi
33188
33189have_xml='no'
33190XML_CFLAGS=""
33191XML_LIBS=""
33192XML_PKG=""
33193if test "x$with_xml" = "xyes"; then
33194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33195$as_echo "-------------------------------------------------------------" >&6; }
33196
33197pkg_failed=no
33198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0.0" >&5
33199$as_echo_n "checking for libxml-2.0 >= 2.0.0... " >&6; }
33200
33201if test -n "$XML_CFLAGS"; then
33202    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
33203 elif test -n "$PKG_CONFIG"; then
33204    if test -n "$PKG_CONFIG" && \
33205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
33206  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
33207  ac_status=$?
33208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33209  test $ac_status = 0; }; then
33210  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
33211		      test "x$?" != "x0" && pkg_failed=yes
33212else
33213  pkg_failed=yes
33214fi
33215 else
33216    pkg_failed=untried
33217fi
33218if test -n "$XML_LIBS"; then
33219    pkg_cv_XML_LIBS="$XML_LIBS"
33220 elif test -n "$PKG_CONFIG"; then
33221    if test -n "$PKG_CONFIG" && \
33222    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
33223  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
33224  ac_status=$?
33225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33226  test $ac_status = 0; }; then
33227  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
33228		      test "x$?" != "x0" && pkg_failed=yes
33229else
33230  pkg_failed=yes
33231fi
33232 else
33233    pkg_failed=untried
33234fi
33235
33236
33237
33238if test $pkg_failed = yes; then
33239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33240$as_echo "no" >&6; }
33241
33242if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33243        _pkg_short_errors_supported=yes
33244else
33245        _pkg_short_errors_supported=no
33246fi
33247        if test $_pkg_short_errors_supported = yes; then
33248	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
33249        else
33250	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
33251        fi
33252	# Put the nasty error message in config.log where it belongs
33253	echo "$XML_PKG_ERRORS" >&5
33254
33255	have_xml=no
33256elif test $pkg_failed = untried; then
33257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258$as_echo "no" >&6; }
33259	have_xml=no
33260else
33261	XML_CFLAGS=$pkg_cv_XML_CFLAGS
33262	XML_LIBS=$pkg_cv_XML_LIBS
33263        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33264$as_echo "yes" >&6; }
33265	have_xml=yes
33266fi
33267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33268$as_echo "" >&6; }
33269fi
33270
33271if test "$have_xml" = 'yes'; then
33272
33273$as_echo "#define XML_DELEGATE 1" >>confdefs.h
33274
33275  CFLAGS="$XML_CFLAGS $CFLAGS"
33276fi
33277
33278 if test "$have_xml" = 'yes'; then
33279  XML_DELEGATE_TRUE=
33280  XML_DELEGATE_FALSE='#'
33281else
33282  XML_DELEGATE_TRUE='#'
33283  XML_DELEGATE_FALSE=
33284fi
33285
33286
33287
33288
33289
33290# Check for functions
33291#
33292for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getpwnam_r getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strcasestr strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
33293do :
33294  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33296if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33297  cat >>confdefs.h <<_ACEOF
33298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33299_ACEOF
33300
33301fi
33302done
33303
33304
33305# Substitute compiler name to build/link PerlMagick
33306#
33307
33308
33309#
33310# Configure install Paths
33311#
33312
33313# Path to ImageMagick header files
33314INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33315INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
33316DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
33317case "${build_os}" in
33318  mingw* )
33319    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
33320    ;;
33321esac
33322
33323cat >>confdefs.h <<_ACEOF
33324#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
33325_ACEOF
33326
33327
33328
33329# Path to ImageMagick header files (arch part)
33330INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
33331DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
33332case "${build_os}" in
33333  mingw* )
33334    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
33335    ;;
33336esac
33337
33338cat >>confdefs.h <<_ACEOF
33339#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
33340_ACEOF
33341
33342
33343
33344# Subdirectory under lib to place ImageMagick lib files
33345LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
33346
33347cat >>confdefs.h <<_ACEOF
33348#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
33349_ACEOF
33350
33351
33352# Path to ImageMagick bin directory
33353EXECUTABLE_PATH="${BIN_DIR}"
33354DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33355case "${build_os}" in
33356  mingw* )
33357    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33358    ;;
33359esac
33360
33361cat >>confdefs.h <<_ACEOF
33362#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33363_ACEOF
33364
33365
33366
33367# Path to ImageMagick lib
33368LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33369DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33370case "${build_os}" in
33371  mingw* )
33372    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33373    ;;
33374esac
33375
33376cat >>confdefs.h <<_ACEOF
33377#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33378_ACEOF
33379
33380
33381
33382#
33383# path to local binaries
33384if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33385   LIB_BIN_BASEDIRNAME="bin"
33386fi
33387
33388cat >>confdefs.h <<_ACEOF
33389#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33390_ACEOF
33391
33392
33393
33394if test "x$LIB_BIN_DIR" = "x"; then
33395   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33396fi
33397
33398
33399LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33400
33401LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33402
33403
33404#
33405# path to modules lib
33406if test "x$MODULES_BASEDIRNAME" = "x"; then
33407   MODULES_BASEDIRNAME="modules"
33408fi
33409
33410cat >>confdefs.h <<_ACEOF
33411#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
33412_ACEOF
33413
33414
33415
33416if test "x$MODULES_DIRNAME" = "x"; then
33417  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33418else
33419
33420cat >>confdefs.h <<_ACEOF
33421#define MODULES_DIRNAME "$MODULES_DIRNAME"
33422_ACEOF
33423
33424fi
33425
33426
33427MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
33428
33429MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33430
33431
33432#
33433# path to coders lib
33434if test "x$CODER_DIRNAME" = "x"; then
33435   CODER_DIRNAME="coders"
33436fi
33437
33438cat >>confdefs.h <<_ACEOF
33439#define CODER_DIRNAME "$CODER_DIRNAME"
33440_ACEOF
33441
33442
33443
33444CODER_RELATIVE_PATH="${CODER_DIRNAME}"
33445CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
33446
33447
33448#
33449# Subdirectory under lib to place ImageMagick filter module files
33450#
33451# path to coders lib
33452if test "x$FILTER_DIRNAME" = "x"; then
33453   FILTER_DIRNAME="filters"
33454fi
33455
33456cat >>confdefs.h <<_ACEOF
33457#define FILTER_DIRNAME "$FILTER_DIRNAME"
33458_ACEOF
33459
33460
33461
33462FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
33463FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
33464
33465
33466#
33467# Path to ImageMagick documentation files
33468DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33469DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33470DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
33471case "${build_os}" in
33472  mingw* )
33473    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33474    ;;
33475esac
33476
33477cat >>confdefs.h <<_ACEOF
33478#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33479_ACEOF
33480
33481
33482
33483#
33484# Enable/Disable documentation
33485# Check whether --enable-docs was given.
33486if test "${enable_docs+set}" = set; then :
33487  enableval=$enable_docs; wantdocs=$enableval
33488else
33489  wantdocs=yes
33490fi
33491
33492 if test "$wantdocs" = "yes"; then
33493  INSTALL_DOC_TRUE=
33494  INSTALL_DOC_FALSE='#'
33495else
33496  INSTALL_DOC_TRUE='#'
33497  INSTALL_DOC_FALSE=
33498fi
33499
33500
33501# Subdirectory to place architecture-dependent configuration files
33502CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33503
33504cat >>confdefs.h <<_ACEOF
33505#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33506_ACEOF
33507
33508CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33509DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33510case "${build_os}" in
33511  mingw* )
33512    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33513    ;;
33514esac
33515
33516cat >>confdefs.h <<_ACEOF
33517#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33518_ACEOF
33519
33520
33521
33522# Subdirectory to place architecture-independent configuration files
33523SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33524
33525cat >>confdefs.h <<_ACEOF
33526#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
33527_ACEOF
33528
33529SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
33530DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
33531case "${build_os}" in
33532  mingw* )
33533    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
33534    ;;
33535esac
33536
33537cat >>confdefs.h <<_ACEOF
33538#define SHARE_PATH "$DEFINE_SHARE_PATH"
33539_ACEOF
33540
33541
33542
33543#
33544# Subdirectory to place architecture-dependent configuration files.
33545if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33546   SHAREARCH_BASEDIRNAME="config"
33547fi
33548
33549cat >>confdefs.h <<_ACEOF
33550#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
33551_ACEOF
33552
33553
33554
33555if test "x$SHAREARCH_DIRNAME" = "x"; then
33556  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33557else
33558
33559cat >>confdefs.h <<_ACEOF
33560#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
33561_ACEOF
33562
33563fi
33564
33565
33566SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33567
33568SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
33569
33570
33571#
33572# program_transform_name is formed for use in a Makefile, so create a
33573# modified version for use in a shell script.
33574configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33575
33576# Default delegate definitions
33577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33578$as_echo "-------------------------------------------------------------" >&6; }
33579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
33580$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33582$as_echo "" >&6; }
33583BPGDecodeDelegateDefault='bpgdec'
33584BPGEncodeDelegateDefault='bpgenc'
33585BlenderDecodeDelegateDefault='blender'
33586BrowseDelegateDefault='xdg-open'
33587DNGDecodeDelegateDefault='ufraw-batch'
33588DOCDecodeDelegateDefault='soffice'
33589GVCDecodeDelegateDefault='dot'
33590DVIDecodeDelegateDefault='dvips'
33591EditorDelegateDefault='xterm'
33592ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
33593DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
33594MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
33595HPGLDecodeDelegateDefault='hp2xx'
33596HTMLDecodeDelegateDefault='html2ps'
33597ILBMDecodeDelegateDefault='ilbmtoppm'
33598ILBMEncodeDelegateDefault='ppmtoilbm'
33599JXRDecodeDelegateDefault='JxrDecApp'
33600JXREncodeDelegateDefault='JxrEncApp'
33601LEPDelegateDefault='lepton'
33602LPDelegateDefault='lp'
33603LPRDelegateDefault='lpr'
33604LaunchDelegateDefault='gimp'
33605MPEGDecodeDelegateDefault='avconv'
33606MPEGEncodeDelegateDefault='avconv'
33607MrSIDDecodeDelegateDefault='mrsidgeodecode'
33608MVDelegateDefault='mv'
33609PCLDelegateDefault='pcl6'
33610if test "$native_win32_build" = 'yes'; then
33611    PSDelegateDefault='gswin32c'
33612elif test "$gslib_framework" = 'yes'; then
33613    PSDelegateDefault='gsc'
33614else
33615    PSDelegateDefault='gs'
33616fi
33617RMDelegateDefault='rm'
33618RSVGDecodeDelegateDefault='rsvg-convert'
33619SVGDecodeDelegateDefault='inkscape'
33620TraceEncodeDelegateDefault='potrace'
33621UniconvertorDelegateDefault='uniconvertor'
33622WebPDecodeDelegateDefault='dwebp'
33623WebPEncodeDelegateDefault='cwebp'
33624WWWDecodeDelegateDefault='curl'
33625XPSDelegateDefault='gxps'
33626
33627# Search for delegates
33628# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
33629set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
33630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33631$as_echo_n "checking for $ac_word... " >&6; }
33632if ${ac_cv_path_BPGDecodeDelegate+:} false; then :
33633  $as_echo_n "(cached) " >&6
33634else
33635  case $BPGDecodeDelegate in
33636  [\\/]* | ?:[\\/]*)
33637  ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
33638  ;;
33639  *)
33640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33641for as_dir in $PATH
33642do
33643  IFS=$as_save_IFS
33644  test -z "$as_dir" && as_dir=.
33645    for ac_exec_ext in '' $ac_executable_extensions; do
33646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33647    ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33649    break 2
33650  fi
33651done
33652  done
33653IFS=$as_save_IFS
33654
33655  test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
33656  ;;
33657esac
33658fi
33659BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
33660if test -n "$BPGDecodeDelegate"; then
33661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
33662$as_echo "$BPGDecodeDelegate" >&6; }
33663else
33664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33665$as_echo "no" >&6; }
33666fi
33667
33668
33669# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
33670set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
33671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33672$as_echo_n "checking for $ac_word... " >&6; }
33673if ${ac_cv_path_BPGEncodeDelegate+:} false; then :
33674  $as_echo_n "(cached) " >&6
33675else
33676  case $BPGEncodeDelegate in
33677  [\\/]* | ?:[\\/]*)
33678  ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
33679  ;;
33680  *)
33681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33682for as_dir in $PATH
33683do
33684  IFS=$as_save_IFS
33685  test -z "$as_dir" && as_dir=.
33686    for ac_exec_ext in '' $ac_executable_extensions; do
33687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33688    ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33690    break 2
33691  fi
33692done
33693  done
33694IFS=$as_save_IFS
33695
33696  test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
33697  ;;
33698esac
33699fi
33700BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
33701if test -n "$BPGEncodeDelegate"; then
33702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
33703$as_echo "$BPGEncodeDelegate" >&6; }
33704else
33705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33706$as_echo "no" >&6; }
33707fi
33708
33709
33710# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33711set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
33712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33713$as_echo_n "checking for $ac_word... " >&6; }
33714if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
33715  $as_echo_n "(cached) " >&6
33716else
33717  case $BlenderDecodeDelegate in
33718  [\\/]* | ?:[\\/]*)
33719  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33720  ;;
33721  *)
33722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33723for as_dir in $PATH
33724do
33725  IFS=$as_save_IFS
33726  test -z "$as_dir" && as_dir=.
33727    for ac_exec_ext in '' $ac_executable_extensions; do
33728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33729    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33731    break 2
33732  fi
33733done
33734  done
33735IFS=$as_save_IFS
33736
33737  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33738  ;;
33739esac
33740fi
33741BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33742if test -n "$BlenderDecodeDelegate"; then
33743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
33744$as_echo "$BlenderDecodeDelegate" >&6; }
33745else
33746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33747$as_echo "no" >&6; }
33748fi
33749
33750
33751for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33752do
33753  # Extract the first word of "$ac_prog", so it can be a program name with args.
33754set dummy $ac_prog; ac_word=$2
33755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33756$as_echo_n "checking for $ac_word... " >&6; }
33757if ${ac_cv_path_BrowseDelegate+:} false; then :
33758  $as_echo_n "(cached) " >&6
33759else
33760  case $BrowseDelegate in
33761  [\\/]* | ?:[\\/]*)
33762  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33763  ;;
33764  *)
33765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766for as_dir in $PATH
33767do
33768  IFS=$as_save_IFS
33769  test -z "$as_dir" && as_dir=.
33770    for ac_exec_ext in '' $ac_executable_extensions; do
33771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33772    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
33773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33774    break 2
33775  fi
33776done
33777  done
33778IFS=$as_save_IFS
33779
33780  ;;
33781esac
33782fi
33783BrowseDelegate=$ac_cv_path_BrowseDelegate
33784if test -n "$BrowseDelegate"; then
33785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
33786$as_echo "$BrowseDelegate" >&6; }
33787else
33788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33789$as_echo "no" >&6; }
33790fi
33791
33792
33793  test -n "$BrowseDelegate" && break
33794done
33795test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33796
33797# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33798set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33800$as_echo_n "checking for $ac_word... " >&6; }
33801if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33802  $as_echo_n "(cached) " >&6
33803else
33804  case $DNGDecodeDelegate in
33805  [\\/]* | ?:[\\/]*)
33806  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33807  ;;
33808  *)
33809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812  IFS=$as_save_IFS
33813  test -z "$as_dir" && as_dir=.
33814    for ac_exec_ext in '' $ac_executable_extensions; do
33815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33816    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33818    break 2
33819  fi
33820done
33821  done
33822IFS=$as_save_IFS
33823
33824  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33825  ;;
33826esac
33827fi
33828DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33829if test -n "$DNGDecodeDelegate"; then
33830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33831$as_echo "$DNGDecodeDelegate" >&6; }
33832else
33833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33834$as_echo "no" >&6; }
33835fi
33836
33837
33838# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33839set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
33840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33841$as_echo_n "checking for $ac_word... " >&6; }
33842if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
33843  $as_echo_n "(cached) " >&6
33844else
33845  case $DOCDecodeDelegate in
33846  [\\/]* | ?:[\\/]*)
33847  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
33848  ;;
33849  *)
33850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853  IFS=$as_save_IFS
33854  test -z "$as_dir" && as_dir=.
33855    for ac_exec_ext in '' $ac_executable_extensions; do
33856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33857    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33859    break 2
33860  fi
33861done
33862  done
33863IFS=$as_save_IFS
33864
33865  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
33866  ;;
33867esac
33868fi
33869DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33870if test -n "$DOCDecodeDelegate"; then
33871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33872$as_echo "$DOCDecodeDelegate" >&6; }
33873else
33874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33875$as_echo "no" >&6; }
33876fi
33877
33878
33879# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33880set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33882$as_echo_n "checking for $ac_word... " >&6; }
33883if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33884  $as_echo_n "(cached) " >&6
33885else
33886  case $DVIDecodeDelegate in
33887  [\\/]* | ?:[\\/]*)
33888  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33889  ;;
33890  *)
33891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894  IFS=$as_save_IFS
33895  test -z "$as_dir" && as_dir=.
33896    for ac_exec_ext in '' $ac_executable_extensions; do
33897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33898    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33900    break 2
33901  fi
33902done
33903  done
33904IFS=$as_save_IFS
33905
33906  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33907  ;;
33908esac
33909fi
33910DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33911if test -n "$DVIDecodeDelegate"; then
33912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33913$as_echo "$DVIDecodeDelegate" >&6; }
33914else
33915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33916$as_echo "no" >&6; }
33917fi
33918
33919
33920# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33921set dummy "$ConvertDelegateDefault"; ac_word=$2
33922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33923$as_echo_n "checking for $ac_word... " >&6; }
33924if ${ac_cv_path_ConvertDelegate+:} false; then :
33925  $as_echo_n "(cached) " >&6
33926else
33927  case $ConvertDelegate in
33928  [\\/]* | ?:[\\/]*)
33929  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33930  ;;
33931  *)
33932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935  IFS=$as_save_IFS
33936  test -z "$as_dir" && as_dir=.
33937    for ac_exec_ext in '' $ac_executable_extensions; do
33938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33939    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33941    break 2
33942  fi
33943done
33944  done
33945IFS=$as_save_IFS
33946
33947  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33948  ;;
33949esac
33950fi
33951ConvertDelegate=$ac_cv_path_ConvertDelegate
33952if test -n "$ConvertDelegate"; then
33953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33954$as_echo "$ConvertDelegate" >&6; }
33955else
33956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33957$as_echo "no" >&6; }
33958fi
33959
33960
33961# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33962set dummy "$DisplayDelegateDefault"; ac_word=$2
33963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33964$as_echo_n "checking for $ac_word... " >&6; }
33965if ${ac_cv_path_DisplayDelegate+:} false; then :
33966  $as_echo_n "(cached) " >&6
33967else
33968  case $DisplayDelegate in
33969  [\\/]* | ?:[\\/]*)
33970  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33971  ;;
33972  *)
33973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33974for as_dir in $PATH
33975do
33976  IFS=$as_save_IFS
33977  test -z "$as_dir" && as_dir=.
33978    for ac_exec_ext in '' $ac_executable_extensions; do
33979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33980    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33982    break 2
33983  fi
33984done
33985  done
33986IFS=$as_save_IFS
33987
33988  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33989  ;;
33990esac
33991fi
33992DisplayDelegate=$ac_cv_path_DisplayDelegate
33993if test -n "$DisplayDelegate"; then
33994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33995$as_echo "$DisplayDelegate" >&6; }
33996else
33997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998$as_echo "no" >&6; }
33999fi
34000
34001
34002# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
34003set dummy "$EditorDelegateDefault"; ac_word=$2
34004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34005$as_echo_n "checking for $ac_word... " >&6; }
34006if ${ac_cv_path_EditorDelegate+:} false; then :
34007  $as_echo_n "(cached) " >&6
34008else
34009  case $EditorDelegate in
34010  [\\/]* | ?:[\\/]*)
34011  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
34012  ;;
34013  *)
34014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34015for as_dir in $PATH
34016do
34017  IFS=$as_save_IFS
34018  test -z "$as_dir" && as_dir=.
34019    for ac_exec_ext in '' $ac_executable_extensions; do
34020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34021    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
34022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34023    break 2
34024  fi
34025done
34026  done
34027IFS=$as_save_IFS
34028
34029  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
34030  ;;
34031esac
34032fi
34033EditorDelegate=$ac_cv_path_EditorDelegate
34034if test -n "$EditorDelegate"; then
34035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
34036$as_echo "$EditorDelegate" >&6; }
34037else
34038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34039$as_echo "no" >&6; }
34040fi
34041
34042
34043# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
34044set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
34045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34046$as_echo_n "checking for $ac_word... " >&6; }
34047if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
34048  $as_echo_n "(cached) " >&6
34049else
34050  case $GVCDecodeDelegate in
34051  [\\/]* | ?:[\\/]*)
34052  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
34053  ;;
34054  *)
34055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34056for as_dir in $PATH
34057do
34058  IFS=$as_save_IFS
34059  test -z "$as_dir" && as_dir=.
34060    for ac_exec_ext in '' $ac_executable_extensions; do
34061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34062    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34064    break 2
34065  fi
34066done
34067  done
34068IFS=$as_save_IFS
34069
34070  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
34071  ;;
34072esac
34073fi
34074GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
34075if test -n "$GVCDecodeDelegate"; then
34076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
34077$as_echo "$GVCDecodeDelegate" >&6; }
34078else
34079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34080$as_echo "no" >&6; }
34081fi
34082
34083
34084# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
34085set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
34086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34087$as_echo_n "checking for $ac_word... " >&6; }
34088if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
34089  $as_echo_n "(cached) " >&6
34090else
34091  case $HPGLDecodeDelegate in
34092  [\\/]* | ?:[\\/]*)
34093  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
34094  ;;
34095  *)
34096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099  IFS=$as_save_IFS
34100  test -z "$as_dir" && as_dir=.
34101    for ac_exec_ext in '' $ac_executable_extensions; do
34102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34103    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34105    break 2
34106  fi
34107done
34108  done
34109IFS=$as_save_IFS
34110
34111  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
34112  ;;
34113esac
34114fi
34115HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
34116if test -n "$HPGLDecodeDelegate"; then
34117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
34118$as_echo "$HPGLDecodeDelegate" >&6; }
34119else
34120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34121$as_echo "no" >&6; }
34122fi
34123
34124
34125# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
34126set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
34127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34128$as_echo_n "checking for $ac_word... " >&6; }
34129if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
34130  $as_echo_n "(cached) " >&6
34131else
34132  case $HTMLDecodeDelegate in
34133  [\\/]* | ?:[\\/]*)
34134  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34135  ;;
34136  *)
34137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34138for as_dir in $PATH
34139do
34140  IFS=$as_save_IFS
34141  test -z "$as_dir" && as_dir=.
34142    for ac_exec_ext in '' $ac_executable_extensions; do
34143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34144    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34146    break 2
34147  fi
34148done
34149  done
34150IFS=$as_save_IFS
34151
34152  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34153  ;;
34154esac
34155fi
34156HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34157if test -n "$HTMLDecodeDelegate"; then
34158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
34159$as_echo "$HTMLDecodeDelegate" >&6; }
34160else
34161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34162$as_echo "no" >&6; }
34163fi
34164
34165
34166# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34167set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
34168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34169$as_echo_n "checking for $ac_word... " >&6; }
34170if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
34171  $as_echo_n "(cached) " >&6
34172else
34173  case $ILBMDecodeDelegate in
34174  [\\/]* | ?:[\\/]*)
34175  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34176  ;;
34177  *)
34178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34179for as_dir in $PATH
34180do
34181  IFS=$as_save_IFS
34182  test -z "$as_dir" && as_dir=.
34183    for ac_exec_ext in '' $ac_executable_extensions; do
34184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34185    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34187    break 2
34188  fi
34189done
34190  done
34191IFS=$as_save_IFS
34192
34193  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34194  ;;
34195esac
34196fi
34197ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34198if test -n "$ILBMDecodeDelegate"; then
34199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
34200$as_echo "$ILBMDecodeDelegate" >&6; }
34201else
34202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203$as_echo "no" >&6; }
34204fi
34205
34206
34207# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34208set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
34209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34210$as_echo_n "checking for $ac_word... " >&6; }
34211if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
34212  $as_echo_n "(cached) " >&6
34213else
34214  case $ILBMEncodeDelegate in
34215  [\\/]* | ?:[\\/]*)
34216  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34217  ;;
34218  *)
34219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34220for as_dir in $PATH
34221do
34222  IFS=$as_save_IFS
34223  test -z "$as_dir" && as_dir=.
34224    for ac_exec_ext in '' $ac_executable_extensions; do
34225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34226    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34228    break 2
34229  fi
34230done
34231  done
34232IFS=$as_save_IFS
34233
34234  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34235  ;;
34236esac
34237fi
34238ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34239if test -n "$ILBMEncodeDelegate"; then
34240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
34241$as_echo "$ILBMEncodeDelegate" >&6; }
34242else
34243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34244$as_echo "no" >&6; }
34245fi
34246
34247
34248# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34249set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34251$as_echo_n "checking for $ac_word... " >&6; }
34252if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34253  $as_echo_n "(cached) " >&6
34254else
34255  case $JXRDecodeDelegate in
34256  [\\/]* | ?:[\\/]*)
34257  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34258  ;;
34259  *)
34260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34261for as_dir in $PATH
34262do
34263  IFS=$as_save_IFS
34264  test -z "$as_dir" && as_dir=.
34265    for ac_exec_ext in '' $ac_executable_extensions; do
34266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34267    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34269    break 2
34270  fi
34271done
34272  done
34273IFS=$as_save_IFS
34274
34275  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34276  ;;
34277esac
34278fi
34279JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34280if test -n "$JXRDecodeDelegate"; then
34281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34282$as_echo "$JXRDecodeDelegate" >&6; }
34283else
34284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34285$as_echo "no" >&6; }
34286fi
34287
34288
34289# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34290set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34292$as_echo_n "checking for $ac_word... " >&6; }
34293if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34294  $as_echo_n "(cached) " >&6
34295else
34296  case $JXREncodeDelegate in
34297  [\\/]* | ?:[\\/]*)
34298  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34299  ;;
34300  *)
34301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34302for as_dir in $PATH
34303do
34304  IFS=$as_save_IFS
34305  test -z "$as_dir" && as_dir=.
34306    for ac_exec_ext in '' $ac_executable_extensions; do
34307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34308    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34310    break 2
34311  fi
34312done
34313  done
34314IFS=$as_save_IFS
34315
34316  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34317  ;;
34318esac
34319fi
34320JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34321if test -n "$JXREncodeDelegate"; then
34322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34323$as_echo "$JXREncodeDelegate" >&6; }
34324else
34325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34326$as_echo "no" >&6; }
34327fi
34328
34329
34330# Extract the first word of ""$LEPDelegateDefault"", so it can be a program name with args.
34331set dummy "$LEPDelegateDefault"; ac_word=$2
34332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34333$as_echo_n "checking for $ac_word... " >&6; }
34334if ${ac_cv_path_LEPDelegate+:} false; then :
34335  $as_echo_n "(cached) " >&6
34336else
34337  case $LEPDelegate in
34338  [\\/]* | ?:[\\/]*)
34339  ac_cv_path_LEPDelegate="$LEPDelegate" # Let the user override the test with a path.
34340  ;;
34341  *)
34342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34343for as_dir in $PATH
34344do
34345  IFS=$as_save_IFS
34346  test -z "$as_dir" && as_dir=.
34347    for ac_exec_ext in '' $ac_executable_extensions; do
34348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34349    ac_cv_path_LEPDelegate="$as_dir/$ac_word$ac_exec_ext"
34350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34351    break 2
34352  fi
34353done
34354  done
34355IFS=$as_save_IFS
34356
34357  test -z "$ac_cv_path_LEPDelegate" && ac_cv_path_LEPDelegate=""$LEPDelegateDefault""
34358  ;;
34359esac
34360fi
34361LEPDelegate=$ac_cv_path_LEPDelegate
34362if test -n "$LEPDelegate"; then
34363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEPDelegate" >&5
34364$as_echo "$LEPDelegate" >&6; }
34365else
34366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34367$as_echo "no" >&6; }
34368fi
34369
34370
34371# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34372set dummy "$LPDelegateDefault"; ac_word=$2
34373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34374$as_echo_n "checking for $ac_word... " >&6; }
34375if ${ac_cv_path_LPDelegate+:} false; then :
34376  $as_echo_n "(cached) " >&6
34377else
34378  case $LPDelegate in
34379  [\\/]* | ?:[\\/]*)
34380  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34381  ;;
34382  *)
34383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34384for as_dir in $PATH
34385do
34386  IFS=$as_save_IFS
34387  test -z "$as_dir" && as_dir=.
34388    for ac_exec_ext in '' $ac_executable_extensions; do
34389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34390    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
34391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34392    break 2
34393  fi
34394done
34395  done
34396IFS=$as_save_IFS
34397
34398  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34399  ;;
34400esac
34401fi
34402LPDelegate=$ac_cv_path_LPDelegate
34403if test -n "$LPDelegate"; then
34404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
34405$as_echo "$LPDelegate" >&6; }
34406else
34407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34408$as_echo "no" >&6; }
34409fi
34410
34411
34412# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34413set dummy "$LPRDelegateDefault"; ac_word=$2
34414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34415$as_echo_n "checking for $ac_word... " >&6; }
34416if ${ac_cv_path_LPRDelegate+:} false; then :
34417  $as_echo_n "(cached) " >&6
34418else
34419  case $LPRDelegate in
34420  [\\/]* | ?:[\\/]*)
34421  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34422  ;;
34423  *)
34424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34425for as_dir in $PATH
34426do
34427  IFS=$as_save_IFS
34428  test -z "$as_dir" && as_dir=.
34429    for ac_exec_ext in '' $ac_executable_extensions; do
34430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34431    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
34432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34433    break 2
34434  fi
34435done
34436  done
34437IFS=$as_save_IFS
34438
34439  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34440  ;;
34441esac
34442fi
34443LPRDelegate=$ac_cv_path_LPRDelegate
34444if test -n "$LPRDelegate"; then
34445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
34446$as_echo "$LPRDelegate" >&6; }
34447else
34448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34449$as_echo "no" >&6; }
34450fi
34451
34452
34453# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34454set dummy "$LaunchDelegateDefault"; ac_word=$2
34455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34456$as_echo_n "checking for $ac_word... " >&6; }
34457if ${ac_cv_path_LaunchDelegate+:} false; then :
34458  $as_echo_n "(cached) " >&6
34459else
34460  case $LaunchDelegate in
34461  [\\/]* | ?:[\\/]*)
34462  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34463  ;;
34464  *)
34465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34466for as_dir in $PATH
34467do
34468  IFS=$as_save_IFS
34469  test -z "$as_dir" && as_dir=.
34470    for ac_exec_ext in '' $ac_executable_extensions; do
34471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34472    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
34473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34474    break 2
34475  fi
34476done
34477  done
34478IFS=$as_save_IFS
34479
34480  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34481  ;;
34482esac
34483fi
34484LaunchDelegate=$ac_cv_path_LaunchDelegate
34485if test -n "$LaunchDelegate"; then
34486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
34487$as_echo "$LaunchDelegate" >&6; }
34488else
34489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34490$as_echo "no" >&6; }
34491fi
34492
34493
34494# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34495set dummy "$MogrifyDelegateDefault"; ac_word=$2
34496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34497$as_echo_n "checking for $ac_word... " >&6; }
34498if ${ac_cv_path_MogrifyDelegate+:} false; then :
34499  $as_echo_n "(cached) " >&6
34500else
34501  case $MogrifyDelegate in
34502  [\\/]* | ?:[\\/]*)
34503  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34504  ;;
34505  *)
34506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34507for as_dir in $PATH
34508do
34509  IFS=$as_save_IFS
34510  test -z "$as_dir" && as_dir=.
34511    for ac_exec_ext in '' $ac_executable_extensions; do
34512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34513    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34515    break 2
34516  fi
34517done
34518  done
34519IFS=$as_save_IFS
34520
34521  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34522  ;;
34523esac
34524fi
34525MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34526if test -n "$MogrifyDelegate"; then
34527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34528$as_echo "$MogrifyDelegate" >&6; }
34529else
34530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34531$as_echo "no" >&6; }
34532fi
34533
34534
34535# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34536set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34538$as_echo_n "checking for $ac_word... " >&6; }
34539if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34540  $as_echo_n "(cached) " >&6
34541else
34542  case $MPEGDecodeDelegate in
34543  [\\/]* | ?:[\\/]*)
34544  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34545  ;;
34546  *)
34547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34548for as_dir in $PATH
34549do
34550  IFS=$as_save_IFS
34551  test -z "$as_dir" && as_dir=.
34552    for ac_exec_ext in '' $ac_executable_extensions; do
34553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34554    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34556    break 2
34557  fi
34558done
34559  done
34560IFS=$as_save_IFS
34561
34562  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34563  ;;
34564esac
34565fi
34566MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34567if test -n "$MPEGDecodeDelegate"; then
34568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34569$as_echo "$MPEGDecodeDelegate" >&6; }
34570else
34571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572$as_echo "no" >&6; }
34573fi
34574
34575
34576if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
34577  MPEGDecodeDelegateDefault='ffmpeg'
34578  # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34579set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34581$as_echo_n "checking for $ac_word... " >&6; }
34582if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34583  $as_echo_n "(cached) " >&6
34584else
34585  case $MPEGDecodeDelegate in
34586  [\\/]* | ?:[\\/]*)
34587  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34588  ;;
34589  *)
34590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34591for as_dir in $PATH
34592do
34593  IFS=$as_save_IFS
34594  test -z "$as_dir" && as_dir=.
34595    for ac_exec_ext in '' $ac_executable_extensions; do
34596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34597    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34599    break 2
34600  fi
34601done
34602  done
34603IFS=$as_save_IFS
34604
34605  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34606  ;;
34607esac
34608fi
34609MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34610if test -n "$MPEGDecodeDelegate"; then
34611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34612$as_echo "$MPEGDecodeDelegate" >&6; }
34613else
34614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34615$as_echo "no" >&6; }
34616fi
34617
34618
34619fi;
34620# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34621set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34623$as_echo_n "checking for $ac_word... " >&6; }
34624if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34625  $as_echo_n "(cached) " >&6
34626else
34627  case $MPEGEncodeDelegate in
34628  [\\/]* | ?:[\\/]*)
34629  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34630  ;;
34631  *)
34632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34633for as_dir in $PATH
34634do
34635  IFS=$as_save_IFS
34636  test -z "$as_dir" && as_dir=.
34637    for ac_exec_ext in '' $ac_executable_extensions; do
34638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34639    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34641    break 2
34642  fi
34643done
34644  done
34645IFS=$as_save_IFS
34646
34647  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34648  ;;
34649esac
34650fi
34651MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34652if test -n "$MPEGEncodeDelegate"; then
34653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34654$as_echo "$MPEGEncodeDelegate" >&6; }
34655else
34656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34657$as_echo "no" >&6; }
34658fi
34659
34660
34661if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
34662  MPEGEncodeDelegateDefault='ffmpeg'
34663  # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34664set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34666$as_echo_n "checking for $ac_word... " >&6; }
34667if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34668  $as_echo_n "(cached) " >&6
34669else
34670  case $MPEGEncodeDelegate in
34671  [\\/]* | ?:[\\/]*)
34672  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34673  ;;
34674  *)
34675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34676for as_dir in $PATH
34677do
34678  IFS=$as_save_IFS
34679  test -z "$as_dir" && as_dir=.
34680    for ac_exec_ext in '' $ac_executable_extensions; do
34681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34682    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34684    break 2
34685  fi
34686done
34687  done
34688IFS=$as_save_IFS
34689
34690  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34691  ;;
34692esac
34693fi
34694MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34695if test -n "$MPEGEncodeDelegate"; then
34696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34697$as_echo "$MPEGEncodeDelegate" >&6; }
34698else
34699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34700$as_echo "no" >&6; }
34701fi
34702
34703
34704fi;
34705# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34706set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34708$as_echo_n "checking for $ac_word... " >&6; }
34709if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
34710  $as_echo_n "(cached) " >&6
34711else
34712  case $MrSIDDecodeDelegate in
34713  [\\/]* | ?:[\\/]*)
34714  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34715  ;;
34716  *)
34717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34718for as_dir in $PATH
34719do
34720  IFS=$as_save_IFS
34721  test -z "$as_dir" && as_dir=.
34722    for ac_exec_ext in '' $ac_executable_extensions; do
34723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34724    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34726    break 2
34727  fi
34728done
34729  done
34730IFS=$as_save_IFS
34731
34732  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34733  ;;
34734esac
34735fi
34736MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34737if test -n "$MrSIDDecodeDelegate"; then
34738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34739$as_echo "$MrSIDDecodeDelegate" >&6; }
34740else
34741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34742$as_echo "no" >&6; }
34743fi
34744
34745
34746# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34747set dummy "$MVDelegateDefault"; ac_word=$2
34748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34749$as_echo_n "checking for $ac_word... " >&6; }
34750if ${ac_cv_path_MVDelegate+:} false; then :
34751  $as_echo_n "(cached) " >&6
34752else
34753  case $MVDelegate in
34754  [\\/]* | ?:[\\/]*)
34755  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34756  ;;
34757  *)
34758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34759for as_dir in $PATH
34760do
34761  IFS=$as_save_IFS
34762  test -z "$as_dir" && as_dir=.
34763    for ac_exec_ext in '' $ac_executable_extensions; do
34764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34765    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
34766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34767    break 2
34768  fi
34769done
34770  done
34771IFS=$as_save_IFS
34772
34773  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34774  ;;
34775esac
34776fi
34777MVDelegate=$ac_cv_path_MVDelegate
34778if test -n "$MVDelegate"; then
34779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
34780$as_echo "$MVDelegate" >&6; }
34781else
34782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34783$as_echo "no" >&6; }
34784fi
34785
34786
34787# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34788set dummy "$PCLDelegateDefault"; ac_word=$2
34789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34790$as_echo_n "checking for $ac_word... " >&6; }
34791if ${ac_cv_path_PCLDelegate+:} false; then :
34792  $as_echo_n "(cached) " >&6
34793else
34794  case $PCLDelegate in
34795  [\\/]* | ?:[\\/]*)
34796  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34797  ;;
34798  *)
34799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34800for as_dir in $PATH
34801do
34802  IFS=$as_save_IFS
34803  test -z "$as_dir" && as_dir=.
34804    for ac_exec_ext in '' $ac_executable_extensions; do
34805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34806    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34808    break 2
34809  fi
34810done
34811  done
34812IFS=$as_save_IFS
34813
34814  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34815  ;;
34816esac
34817fi
34818PCLDelegate=$ac_cv_path_PCLDelegate
34819if test -n "$PCLDelegate"; then
34820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34821$as_echo "$PCLDelegate" >&6; }
34822else
34823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34824$as_echo "no" >&6; }
34825fi
34826
34827
34828for ac_prog in gsx gsc "$PSDelegateDefault"
34829do
34830  # Extract the first word of "$ac_prog", so it can be a program name with args.
34831set dummy $ac_prog; ac_word=$2
34832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34833$as_echo_n "checking for $ac_word... " >&6; }
34834if ${ac_cv_path_PSDelegate+:} false; then :
34835  $as_echo_n "(cached) " >&6
34836else
34837  case $PSDelegate in
34838  [\\/]* | ?:[\\/]*)
34839  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34840  ;;
34841  *)
34842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34843for as_dir in $PATH
34844do
34845  IFS=$as_save_IFS
34846  test -z "$as_dir" && as_dir=.
34847    for ac_exec_ext in '' $ac_executable_extensions; do
34848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34849    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34851    break 2
34852  fi
34853done
34854  done
34855IFS=$as_save_IFS
34856
34857  ;;
34858esac
34859fi
34860PSDelegate=$ac_cv_path_PSDelegate
34861if test -n "$PSDelegate"; then
34862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34863$as_echo "$PSDelegate" >&6; }
34864else
34865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34866$as_echo "no" >&6; }
34867fi
34868
34869
34870  test -n "$PSDelegate" && break
34871done
34872test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34873
34874# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34875set dummy "$RMDelegateDefault"; ac_word=$2
34876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34877$as_echo_n "checking for $ac_word... " >&6; }
34878if ${ac_cv_path_RMDelegate+:} false; then :
34879  $as_echo_n "(cached) " >&6
34880else
34881  case $RMDelegate in
34882  [\\/]* | ?:[\\/]*)
34883  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34884  ;;
34885  *)
34886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34887for as_dir in $PATH
34888do
34889  IFS=$as_save_IFS
34890  test -z "$as_dir" && as_dir=.
34891    for ac_exec_ext in '' $ac_executable_extensions; do
34892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34893    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34895    break 2
34896  fi
34897done
34898  done
34899IFS=$as_save_IFS
34900
34901  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34902  ;;
34903esac
34904fi
34905RMDelegate=$ac_cv_path_RMDelegate
34906if test -n "$RMDelegate"; then
34907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34908$as_echo "$RMDelegate" >&6; }
34909else
34910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34911$as_echo "no" >&6; }
34912fi
34913
34914
34915# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34916set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34918$as_echo_n "checking for $ac_word... " >&6; }
34919if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34920  $as_echo_n "(cached) " >&6
34921else
34922  case $RSVGDecodeDelegate in
34923  [\\/]* | ?:[\\/]*)
34924  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34925  ;;
34926  *)
34927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34928for as_dir in $PATH
34929do
34930  IFS=$as_save_IFS
34931  test -z "$as_dir" && as_dir=.
34932    for ac_exec_ext in '' $ac_executable_extensions; do
34933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34934    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34936    break 2
34937  fi
34938done
34939  done
34940IFS=$as_save_IFS
34941
34942  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34943  ;;
34944esac
34945fi
34946RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34947if test -n "$RSVGDecodeDelegate"; then
34948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34949$as_echo "$RSVGDecodeDelegate" >&6; }
34950else
34951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34952$as_echo "no" >&6; }
34953fi
34954
34955
34956# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34957set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34959$as_echo_n "checking for $ac_word... " >&6; }
34960if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34961  $as_echo_n "(cached) " >&6
34962else
34963  case $SVGDecodeDelegate in
34964  [\\/]* | ?:[\\/]*)
34965  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34966  ;;
34967  *)
34968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34969for as_dir in $PATH
34970do
34971  IFS=$as_save_IFS
34972  test -z "$as_dir" && as_dir=.
34973    for ac_exec_ext in '' $ac_executable_extensions; do
34974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34975    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34977    break 2
34978  fi
34979done
34980  done
34981IFS=$as_save_IFS
34982
34983  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34984  ;;
34985esac
34986fi
34987SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34988if test -n "$SVGDecodeDelegate"; then
34989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34990$as_echo "$SVGDecodeDelegate" >&6; }
34991else
34992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34993$as_echo "no" >&6; }
34994fi
34995
34996
34997# Extract the first word of ""$TraceEncodeDelegateDefault"", so it can be a program name with args.
34998set dummy "$TraceEncodeDelegateDefault"; ac_word=$2
34999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35000$as_echo_n "checking for $ac_word... " >&6; }
35001if ${ac_cv_path_TraceEncodeDelegate+:} false; then :
35002  $as_echo_n "(cached) " >&6
35003else
35004  case $TraceEncodeDelegate in
35005  [\\/]* | ?:[\\/]*)
35006  ac_cv_path_TraceEncodeDelegate="$TraceEncodeDelegate" # Let the user override the test with a path.
35007  ;;
35008  *)
35009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35010for as_dir in $PATH
35011do
35012  IFS=$as_save_IFS
35013  test -z "$as_dir" && as_dir=.
35014    for ac_exec_ext in '' $ac_executable_extensions; do
35015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35016    ac_cv_path_TraceEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35018    break 2
35019  fi
35020done
35021  done
35022IFS=$as_save_IFS
35023
35024  test -z "$ac_cv_path_TraceEncodeDelegate" && ac_cv_path_TraceEncodeDelegate=""$TraceEncodeDelegateDefault""
35025  ;;
35026esac
35027fi
35028TraceEncodeDelegate=$ac_cv_path_TraceEncodeDelegate
35029if test -n "$TraceEncodeDelegate"; then
35030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TraceEncodeDelegate" >&5
35031$as_echo "$TraceEncodeDelegate" >&6; }
35032else
35033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35034$as_echo "no" >&6; }
35035fi
35036
35037
35038# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35039set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35041$as_echo_n "checking for $ac_word... " >&6; }
35042if ${ac_cv_path_UniconvertorDelegate+:} false; then :
35043  $as_echo_n "(cached) " >&6
35044else
35045  case $UniconvertorDelegate in
35046  [\\/]* | ?:[\\/]*)
35047  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35048  ;;
35049  *)
35050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35051for as_dir in $PATH
35052do
35053  IFS=$as_save_IFS
35054  test -z "$as_dir" && as_dir=.
35055    for ac_exec_ext in '' $ac_executable_extensions; do
35056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35057    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35059    break 2
35060  fi
35061done
35062  done
35063IFS=$as_save_IFS
35064
35065  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35066  ;;
35067esac
35068fi
35069UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35070if test -n "$UniconvertorDelegate"; then
35071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35072$as_echo "$UniconvertorDelegate" >&6; }
35073else
35074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35075$as_echo "no" >&6; }
35076fi
35077
35078
35079# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35080set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35082$as_echo_n "checking for $ac_word... " >&6; }
35083if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35084  $as_echo_n "(cached) " >&6
35085else
35086  case $WebPDecodeDelegate in
35087  [\\/]* | ?:[\\/]*)
35088  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35089  ;;
35090  *)
35091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35092for as_dir in $PATH
35093do
35094  IFS=$as_save_IFS
35095  test -z "$as_dir" && as_dir=.
35096    for ac_exec_ext in '' $ac_executable_extensions; do
35097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35098    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35100    break 2
35101  fi
35102done
35103  done
35104IFS=$as_save_IFS
35105
35106  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35107  ;;
35108esac
35109fi
35110WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35111if test -n "$WebPDecodeDelegate"; then
35112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35113$as_echo "$WebPDecodeDelegate" >&6; }
35114else
35115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116$as_echo "no" >&6; }
35117fi
35118
35119
35120# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35121set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35123$as_echo_n "checking for $ac_word... " >&6; }
35124if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35125  $as_echo_n "(cached) " >&6
35126else
35127  case $WebPEncodeDelegate in
35128  [\\/]* | ?:[\\/]*)
35129  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35130  ;;
35131  *)
35132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35133for as_dir in $PATH
35134do
35135  IFS=$as_save_IFS
35136  test -z "$as_dir" && as_dir=.
35137    for ac_exec_ext in '' $ac_executable_extensions; do
35138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35139    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35141    break 2
35142  fi
35143done
35144  done
35145IFS=$as_save_IFS
35146
35147  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35148  ;;
35149esac
35150fi
35151WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35152if test -n "$WebPEncodeDelegate"; then
35153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35154$as_echo "$WebPEncodeDelegate" >&6; }
35155else
35156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35157$as_echo "no" >&6; }
35158fi
35159
35160
35161# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35162set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
35163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35164$as_echo_n "checking for $ac_word... " >&6; }
35165if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
35166  $as_echo_n "(cached) " >&6
35167else
35168  case $WWWDecodeDelegate in
35169  [\\/]* | ?:[\\/]*)
35170  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35171  ;;
35172  *)
35173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35174for as_dir in $PATH
35175do
35176  IFS=$as_save_IFS
35177  test -z "$as_dir" && as_dir=.
35178    for ac_exec_ext in '' $ac_executable_extensions; do
35179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35180    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35182    break 2
35183  fi
35184done
35185  done
35186IFS=$as_save_IFS
35187
35188  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
35189  ;;
35190esac
35191fi
35192WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35193if test -n "$WWWDecodeDelegate"; then
35194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
35195$as_echo "$WWWDecodeDelegate" >&6; }
35196else
35197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35198$as_echo "no" >&6; }
35199fi
35200
35201
35202# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35203set dummy "$XPSDelegateDefault"; ac_word=$2
35204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35205$as_echo_n "checking for $ac_word... " >&6; }
35206if ${ac_cv_path_XPSDelegate+:} false; then :
35207  $as_echo_n "(cached) " >&6
35208else
35209  case $XPSDelegate in
35210  [\\/]* | ?:[\\/]*)
35211  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35212  ;;
35213  *)
35214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35215for as_dir in $PATH
35216do
35217  IFS=$as_save_IFS
35218  test -z "$as_dir" && as_dir=.
35219    for ac_exec_ext in '' $ac_executable_extensions; do
35220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35221    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
35222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35223    break 2
35224  fi
35225done
35226  done
35227IFS=$as_save_IFS
35228
35229  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35230  ;;
35231esac
35232fi
35233XPSDelegate=$ac_cv_path_XPSDelegate
35234if test -n "$XPSDelegate"; then
35235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
35236$as_echo "$XPSDelegate" >&6; }
35237else
35238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35239$as_echo "no" >&6; }
35240fi
35241
35242
35243
35244# Prefer lpr to lp; lp needs options tacked on.
35245if test "$LPRDelegate" != no; then
35246    PrintDelegate="$LPRDelegate"
35247else
35248    PrintDelegate="$LPDelegate -c -s"
35249fi
35250
35251
35252# Installed ImageMagick utiltity paths
35253ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35254DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35255MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35256
35257# Set delegate booleans
35258have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
35259have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35260have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35261have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
35262have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
35263have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35264have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
35265have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35266
35267#
35268# Test for font directories
35269#
35270type_include_files=''
35271
35272# Apple fonts.
35273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35274$as_echo_n "checking for Apple fonts directory... " >&6; }
35275apple_font_dir=''
35276if test "${with_apple_font_dir}" != 'default'; then
35277  apple_font_dir="${with_apple_font_dir}/"
35278else
35279  for font_dir in '/Library/Fonts/'; do
35280    if test -f "${font_dir}Arial.ttf"; then
35281      apple_font_dir="${font_dir}"
35282      break 1
35283    fi
35284  done
35285fi
35286if test "${apple_font_dir}x" != 'x'; then
35287  type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35289$as_echo "$apple_font_dir" >&6; }
35290else
35291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35292$as_echo "not found!" >&6; };
35293fi
35294
35295
35296# Dejavu fonts.
35297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35298$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35299dejavu_font_dir=''
35300if test "${with_dejavu_font_dir}" != 'default'; then
35301  dejavu_font_dir="${with_dejavu_font_dir}/"
35302else
35303  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35304    if test -f "${font_dir}DejaVuSerif.ttf"; then
35305      dejavu_font_dir="${font_dir}"
35306      break 1
35307    fi
35308  done
35309fi
35310if test "${dejavu_font_dir}x" != 'x'; then
35311  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
35312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35313$as_echo "$dejavu_font_dir" >&6; }
35314else
35315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35316$as_echo "not found!" >&6; };
35317fi
35318
35319
35320# Ghostscript
35321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
35322$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35323ghostscript_font_dir=''
35324if test "${with_gs_font_dir}" != 'default'; then
35325  ghostscript_font_dir="${with_gs_font_dir}/"
35326else
35327  if test "${native_win32_build}" = 'yes'; then
35328    # Native Windows Build
35329    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35330      if test -f "${font_dir}a010013l.pfb"; then
35331        ghostscript_font_dir="$font_dir"
35332        break 1
35333      fi
35334    done
35335    if test "${PSDelegate}" != 'gswin32c'; then
35336      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35337    fi
35338  else
35339    # Linux / Mac OS X / Unix Build
35340    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
35341      if test -f "${font_dir}a010013l.pfb"; then
35342        ghostscript_font_dir="${font_dir}"
35343        break 1
35344      fi
35345    done
35346    if test "${ghostscript_font_dir}x" = 'x'; then
35347      if test "$PSDelegate" != 'gs'; then
35348        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35349      fi
35350    fi
35351  fi
35352fi
35353if test "${ghostscript_font_dir}x" != 'x'; then
35354  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
35355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35356$as_echo "$ghostscript_font_dir" >&6; }
35357else
35358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35359$as_echo "not found!" >&6; };
35360fi
35361
35362case "${build_os}" in
35363  mingw* )
35364    PSDelegate=`$WinPathScript "$PSDelegate" 1`
35365    ;;
35366esac
35367
35368# URW-base35 fonts.
35369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for URW-base35 fonts directory" >&5
35370$as_echo_n "checking for URW-base35 fonts directory... " >&6; }
35371urw_base35_font_dir=''
35372if test "${with_urw_base35_font_dir}" != 'default'; then
35373  urw_base35_font_dir="${with_urw_base35_font_dir}/"
35374else
35375  for font_dir in "${prefix}/share/urw-base35/fonts/" '/usr/share/fonts/urw-base35/'; do
35376    if test -f "${font_dir}StandardSymbolsPS.t1"; then
35377      urw_base35_font_dir="${font_dir}"
35378      break 1
35379    fi
35380  done
35381fi
35382if test "${urw_base35_font_dir}x" != 'x'; then
35383  type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />'
35384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $urw_base35_font_dir" >&5
35385$as_echo "$urw_base35_font_dir" >&6; }
35386else
35387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35388$as_echo "not found!" >&6; };
35389fi
35390
35391
35392# Windows fonts.
35393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35394$as_echo_n "checking for Windows fonts directory... " >&6; }
35395windows_font_dir=''
35396if test "${with_windows_font_dir}" != 'default'; then
35397  windows_font_dir="${with_windows_font_dir}/"
35398else
35399  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do
35400    if test -f "${font_dir}arial.ttf"; then
35401      windows_font_dir="${font_dir}"
35402      break 1
35403    fi
35404  done
35405fi
35406if test "${windows_font_dir}x" != 'x'; then
35407  type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35409$as_echo "$windows_font_dir" >&6; }
35410else
35411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35412$as_echo "not found!" >&6; };
35413fi
35414
35415
35416
35417
35418#
35419# Handle case where user doesn't want frozen paths
35420#
35421if test "$with_frozenpaths" != 'yes'; then
35422  # Re-set delegate definitions to default (no paths)
35423  BPGDecodeDelegate="$BPGDecodeDelegateDefault"
35424  BPGEncodeDelegate="$BPGEncodeDelegateDefault"
35425  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35426  BrowseDelegate="$BrowseDelegateDefault"
35427  ConvertDelegate="$ConvertDelegateDefault"
35428  DisplayDelegate="$DisplayDelegateDefault"
35429  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
35430  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
35431  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35432  EditorDelegate="$EditorDelegateDefault"
35433  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
35434  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35435  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35436  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35437  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
35438  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35439  JXREncodeDelegate="$JXREncodeDelegateDefault"
35440  LEPDelegate="$LEPDelegateDefault"
35441  LPDelegate="$LPDelegateDefault"
35442  LaunchDelegate="$LaunchDelegateDefault"
35443  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35444  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
35445  MogrifyDelegate="$MogrifyDelegateDefault"
35446  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35447  PCLDelegate="$PCLDelegateDefault"
35448  PSDelegate="$PSDelegateDefault"
35449  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
35450  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
35451  ShowImageDelegate="$ShowImageDelegateDefault"
35452  TraceEncodeDelegate="$TraceEncodeDelegateDefault"
35453  UniconvertorDelegate="$UniconvertorDelegateDefault"
35454  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35455  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
35456  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35457  XPSDelegate="$XPSDelegateDefault"
35458fi
35459
35460# Delegate substitutions
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492#
35493# RPM support.
35494#
35495RPM=''
35496for ac_prog in gnutar gtar tar
35497do
35498  # Extract the first word of "$ac_prog", so it can be a program name with args.
35499set dummy $ac_prog; ac_word=$2
35500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35501$as_echo_n "checking for $ac_word... " >&6; }
35502if ${ac_cv_prog_TAR+:} false; then :
35503  $as_echo_n "(cached) " >&6
35504else
35505  if test -n "$TAR"; then
35506  ac_cv_prog_TAR="$TAR" # Let the user override the test.
35507else
35508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35509for as_dir in $PATH
35510do
35511  IFS=$as_save_IFS
35512  test -z "$as_dir" && as_dir=.
35513    for ac_exec_ext in '' $ac_executable_extensions; do
35514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35515    ac_cv_prog_TAR="$ac_prog"
35516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35517    break 2
35518  fi
35519done
35520  done
35521IFS=$as_save_IFS
35522
35523fi
35524fi
35525TAR=$ac_cv_prog_TAR
35526if test -n "$TAR"; then
35527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
35528$as_echo "$TAR" >&6; }
35529else
35530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35531$as_echo "no" >&6; }
35532fi
35533
35534
35535  test -n "$TAR" && break
35536done
35537
35538for ac_prog in perl
35539do
35540  # Extract the first word of "$ac_prog", so it can be a program name with args.
35541set dummy $ac_prog; ac_word=$2
35542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35543$as_echo_n "checking for $ac_word... " >&6; }
35544if ${ac_cv_prog_PERL+:} false; then :
35545  $as_echo_n "(cached) " >&6
35546else
35547  if test -n "$PERL"; then
35548  ac_cv_prog_PERL="$PERL" # Let the user override the test.
35549else
35550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35551for as_dir in $PATH
35552do
35553  IFS=$as_save_IFS
35554  test -z "$as_dir" && as_dir=.
35555    for ac_exec_ext in '' $ac_executable_extensions; do
35556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35557    ac_cv_prog_PERL="$ac_prog"
35558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35559    break 2
35560  fi
35561done
35562  done
35563IFS=$as_save_IFS
35564
35565fi
35566fi
35567PERL=$ac_cv_prog_PERL
35568if test -n "$PERL"; then
35569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35570$as_echo "$PERL" >&6; }
35571else
35572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35573$as_echo "no" >&6; }
35574fi
35575
35576
35577  test -n "$PERL" && break
35578done
35579
35580for ac_prog in rpmbuild rpm
35581do
35582  # Extract the first word of "$ac_prog", so it can be a program name with args.
35583set dummy $ac_prog; ac_word=$2
35584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35585$as_echo_n "checking for $ac_word... " >&6; }
35586if ${ac_cv_prog_RPM+:} false; then :
35587  $as_echo_n "(cached) " >&6
35588else
35589  if test -n "$RPM"; then
35590  ac_cv_prog_RPM="$RPM" # Let the user override the test.
35591else
35592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35593for as_dir in $PATH
35594do
35595  IFS=$as_save_IFS
35596  test -z "$as_dir" && as_dir=.
35597    for ac_exec_ext in '' $ac_executable_extensions; do
35598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35599    ac_cv_prog_RPM="$ac_prog"
35600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35601    break 2
35602  fi
35603done
35604  done
35605IFS=$as_save_IFS
35606
35607fi
35608fi
35609RPM=$ac_cv_prog_RPM
35610if test -n "$RPM"; then
35611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35612$as_echo "$RPM" >&6; }
35613else
35614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35615$as_echo "no" >&6; }
35616fi
35617
35618
35619  test -n "$RPM" && break
35620done
35621
35622
35623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35624
35625
35626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35627
35628
35629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35630
35631
35632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35633
35634
35635 if test "x$RPM" != "x" ; then
35636  RPM_DELEGATE_TRUE=
35637  RPM_DELEGATE_FALSE='#'
35638else
35639  RPM_DELEGATE_TRUE='#'
35640  RPM_DELEGATE_FALSE=
35641fi
35642
35643
35644#
35645# 7ZIP support (http://p7zip.sourceforge.net/)
35646#
35647P7ZIP=''
35648for ac_prog in 7za
35649do
35650  # Extract the first word of "$ac_prog", so it can be a program name with args.
35651set dummy $ac_prog; ac_word=$2
35652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35653$as_echo_n "checking for $ac_word... " >&6; }
35654if ${ac_cv_prog_P7ZIP+:} false; then :
35655  $as_echo_n "(cached) " >&6
35656else
35657  if test -n "$P7ZIP"; then
35658  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35659else
35660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35661for as_dir in $PATH
35662do
35663  IFS=$as_save_IFS
35664  test -z "$as_dir" && as_dir=.
35665    for ac_exec_ext in '' $ac_executable_extensions; do
35666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35667    ac_cv_prog_P7ZIP="$ac_prog"
35668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35669    break 2
35670  fi
35671done
35672  done
35673IFS=$as_save_IFS
35674
35675fi
35676fi
35677P7ZIP=$ac_cv_prog_P7ZIP
35678if test -n "$P7ZIP"; then
35679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35680$as_echo "$P7ZIP" >&6; }
35681else
35682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35683$as_echo "no" >&6; }
35684fi
35685
35686
35687  test -n "$P7ZIP" && break
35688done
35689
35690
35691 if test "x$P7ZIP" != "x" ; then
35692  P7ZIP_DELEGATE_TRUE=
35693  P7ZIP_DELEGATE_FALSE='#'
35694else
35695  P7ZIP_DELEGATE_TRUE='#'
35696  P7ZIP_DELEGATE_FALSE=
35697fi
35698
35699
35700#
35701# ZIP support (http://www.info-zip.org/Zip.html)
35702#
35703ZIP=''
35704for ac_prog in zip
35705do
35706  # Extract the first word of "$ac_prog", so it can be a program name with args.
35707set dummy $ac_prog; ac_word=$2
35708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35709$as_echo_n "checking for $ac_word... " >&6; }
35710if ${ac_cv_prog_ZIP+:} false; then :
35711  $as_echo_n "(cached) " >&6
35712else
35713  if test -n "$ZIP"; then
35714  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35715else
35716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35717for as_dir in $PATH
35718do
35719  IFS=$as_save_IFS
35720  test -z "$as_dir" && as_dir=.
35721    for ac_exec_ext in '' $ac_executable_extensions; do
35722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35723    ac_cv_prog_ZIP="$ac_prog"
35724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35725    break 2
35726  fi
35727done
35728  done
35729IFS=$as_save_IFS
35730
35731fi
35732fi
35733ZIP=$ac_cv_prog_ZIP
35734if test -n "$ZIP"; then
35735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35736$as_echo "$ZIP" >&6; }
35737else
35738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35739$as_echo "no" >&6; }
35740fi
35741
35742
35743  test -n "$ZIP" && break
35744done
35745
35746
35747 if test "x$ZIP" != "x" ; then
35748  ZIP_DELEGATE_TRUE=
35749  ZIP_DELEGATE_FALSE='#'
35750else
35751  ZIP_DELEGATE_TRUE='#'
35752  ZIP_DELEGATE_FALSE=
35753fi
35754
35755
35756#
35757# GhostPCL related configuration.
35758#
35759PCLColorDevice=ppmraw
35760PCLCMYKDevice=pamcmyk32
35761PCLMonoDevice=pbmraw
35762if test -z "$PCLVersion"; then
35763    PCLVersion='unknown'
35764fi
35765if test $have_pcl = 'yes'; then
35766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35767$as_echo "-------------------------------------------------------------" >&6; }
35768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35769$as_echo_n "checking for PCL... " >&6; }
35770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35771$as_echo "" >&6; }
35772    # PCLColorDevice
35773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35774$as_echo_n "checking for pcl color device... " >&6; }
35775    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35776        :
35777    else
35778        PCLColorDevice=ppmraw
35779    fi
35780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35781$as_echo "$PCLColorDevice" >&6; }
35782
35783    # PCLCMYKDevice
35784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35785$as_echo_n "checking for pcl CMYK device... " >&6; }
35786    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35787        :
35788    else
35789        PCLCMYKDevice=$PCLColorDevice
35790    fi
35791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35792$as_echo "$PCLCMYKDevice" >&6; }
35793
35794    # PCLMonoDevice
35795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35796$as_echo_n "checking for pcl mono device... " >&6; }
35797    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35798        :
35799    else
35800        PCLMonoDevice=$PCLColorDevice
35801    fi
35802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35803$as_echo "$PCLMonoDevice" >&6; }
35804fi
35805
35806
35807
35808
35809
35810
35811#
35812# GhostXPS related configuration.
35813#
35814XPSColorDevice=ppmraw
35815XPSCMYKDevice=bmpsep8
35816XPSMonoDevice=pbmraw
35817if test -z "$XPSVersion"; then
35818    XPSVersion='unknown'
35819fi
35820if test $have_xps = 'yes'; then
35821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35822$as_echo "-------------------------------------------------------------" >&6; }
35823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35824$as_echo_n "checking for XPS... " >&6; }
35825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35826$as_echo "" >&6; }
35827    # XPSColorDevice
35828    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35829$as_echo_n "checking for xps color device... " >&6; }
35830    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35831        :
35832    else
35833        XPSColorDevice=ppmraw
35834    fi
35835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35836$as_echo "$XPSColorDevice" >&6; }
35837
35838    # XPSCMYKDevice
35839    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35840$as_echo_n "checking for xps CMYK device... " >&6; }
35841    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35842        :
35843    else
35844        XPSCMYKDevice=$XPSColorDevice
35845    fi
35846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35847$as_echo "$XPSCMYKDevice" >&6; }
35848
35849    # XPSMonoDevice
35850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35851$as_echo_n "checking for xps mono device... " >&6; }
35852    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35853        :
35854    else
35855        XPSMonoDevice=$XPSColorDevice
35856    fi
35857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35858$as_echo "$XPSMonoDevice" >&6; }
35859fi
35860
35861
35862
35863
35864
35865
35866#
35867# Ghostscript related configuration.
35868#
35869GSAlphaDevice=pngalpha
35870GSColorDevice=png16m
35871GSCMYKDevice=pamcmyk32
35872GSMonoDevice=pbmraw
35873GSPDFDevice=pdfwrite
35874GSPSDevice=ps2write
35875GSEPSDevice=eps2write
35876GSVersion='unknown'
35877if test $have_gs = 'yes'; then
35878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35879$as_echo "-------------------------------------------------------------" >&6; }
35880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35881$as_echo_n "checking for Ghostscript... " >&6; }
35882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35883$as_echo "" >&6; }
35884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35885$as_echo_n "checking for Ghostscript version... " >&6; }
35886    if GSVersion=`$PSDelegate --version`; then
35887        :
35888    else
35889        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35890    fi
35891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35892$as_echo "$GSVersion" >&6; }
35893
35894    # GSColorDevice
35895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35896$as_echo_n "checking for gs color device... " >&6; }
35897    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35898        :
35899    else
35900        GSColorDevice=ppmraw
35901    fi
35902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35903$as_echo "$GSColorDevice" >&6; }
35904
35905    # GSAlphaDevice
35906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35907$as_echo_n "checking for gs alpha device... " >&6; }
35908    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35909        :
35910    else
35911        GSAlphaDevice=$GSColorDevice
35912    fi
35913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35914$as_echo "$GSAlphaDevice" >&6; }
35915
35916    # GSCMYKDevice
35917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35918$as_echo_n "checking for gs CMYK device... " >&6; }
35919    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35920        :
35921    else
35922        GSCMYKDevice=pam
35923    fi
35924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35925$as_echo "$GSCMYKDevice" >&6; }
35926
35927    # GSMonoDevice
35928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35929$as_echo_n "checking for gs mono device... " >&6; }
35930    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35931        :
35932    else
35933        GSMonoDevice=$GSColorDevice
35934    fi
35935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35936$as_echo "$GSMonoDevice" >&6; }
35937
35938    # GSPDFDevice
35939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35940$as_echo_n "checking for gs PDF writing device... " >&6; }
35941    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35942        :
35943    else
35944        GSPDFDevice=nodevice
35945    fi
35946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35947$as_echo "$GSPDFDevice" >&6; }
35948
35949    # GSPSDevice
35950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35951$as_echo_n "checking for gs PS writing device... " >&6; }
35952    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35953        :
35954    else
35955        GSPSDevice=pswrite
35956    fi
35957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35958$as_echo "$GSPSDevice" >&6; }
35959
35960    # GSEPSDevice
35961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35962$as_echo_n "checking for gs EPS writing device... " >&6; }
35963    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35964        :
35965    else
35966        GSEPSDevice=epswrite
35967    fi
35968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35969$as_echo "$GSEPSDevice" >&6; }
35970fi
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981#
35982# PerlMagick-related configuration
35983#
35984
35985# Look for PERL if PerlMagick requested
35986# If name/path of desired PERL interpreter is specified, look for that one first
35987have_perl='no'
35988if test "$with_perl" != 'no'; then
35989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35990$as_echo "-------------------------------------------------------------" >&6; }
35991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35992$as_echo_n "checking for Perl... " >&6; }
35993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35994$as_echo "" >&6; }
35995    if test "$with_perl" != 'yes'; then
35996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35997$as_echo_n "checking for perl... " >&6; }
35998if ${ac_cv_path_PERL+:} false; then :
35999  $as_echo_n "(cached) " >&6
36000else
36001  ac_cv_path_PERL="$with_perl"
36002fi
36003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
36004$as_echo "$ac_cv_path_PERL" >&6; };
36005        PERL=$ac_cv_path_PERL
36006                have_perl="$ac_cv_path_PERL"
36007    else
36008        for ac_prog in perl perl5
36009do
36010  # Extract the first word of "$ac_prog", so it can be a program name with args.
36011set dummy $ac_prog; ac_word=$2
36012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36013$as_echo_n "checking for $ac_word... " >&6; }
36014if ${ac_cv_path_PERL+:} false; then :
36015  $as_echo_n "(cached) " >&6
36016else
36017  case $PERL in
36018  [\\/]* | ?:[\\/]*)
36019  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36020  ;;
36021  *)
36022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36023for as_dir in $PATH
36024do
36025  IFS=$as_save_IFS
36026  test -z "$as_dir" && as_dir=.
36027    for ac_exec_ext in '' $ac_executable_extensions; do
36028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36029    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36031    break 2
36032  fi
36033done
36034  done
36035IFS=$as_save_IFS
36036
36037  ;;
36038esac
36039fi
36040PERL=$ac_cv_path_PERL
36041if test -n "$PERL"; then
36042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36043$as_echo "$PERL" >&6; }
36044else
36045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36046$as_echo "no" >&6; }
36047fi
36048
36049
36050  test -n "$PERL" && break
36051done
36052        if test "$ac_cv_path_PERL"; then
36053            have_perl="$ac_cv_path_PERL"
36054        fi
36055    fi
36056fi
36057
36058if test "$with_perl" != 'yes' ; then
36059    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36060fi
36061
36062PERL_SUPPORTS_DESTDIR='no'
36063
36064with_perl_static='no'
36065with_perl_dynamic='no'
36066if test "$have_perl" != 'no'; then
36067    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36068        with_perl_static='yes'
36069    fi
36070    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36071        with_perl_dynamic='yes'
36072    fi
36073    # Is PERL's MakeMaker new enough to support DESTDIR?
36074
36075
36076
36077
36078    if test -n "$PERL"; then :
36079
36080        ax_perl_version="5.8.1"
36081
36082        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36083$as_echo_n "checking for perl version... " >&6; }
36084
36085        perl_version=`$PERL --version 2>&1 \
36086          | $SED -n -e '/This is perl/b inspect
36087b
36088: inspect
36089s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
36090
36091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36092$as_echo "$perl_version" >&6; }
36093
36094	PERL_VERSION=$perl_version
36095
36096
36097
36098
36099
36100  # Used to indicate true or false condition
36101  ax_compare_version=false
36102
36103  # Convert the two version strings to be compared into a format that
36104  # allows a simple string comparison.  The end result is that a version
36105  # string of the form 1.12.5-r617 will be converted to the form
36106  # 0001001200050617.  In other words, each number is zero padded to four
36107  # digits, and non digits are removed.
36108
36109  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36110                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36111                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36112                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36113                     -e 's/[^0-9]//g'`
36114
36115
36116  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36117                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36118                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36119                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36120                     -e 's/[^0-9]//g'`
36121
36122
36123    ax_compare_version=`echo "x$ax_compare_version_A
36124x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36125
36126
36127
36128    if test "$ax_compare_version" = "true" ; then
36129
36130	    :
36131            PERL_SUPPORTS_DESTDIR='yes'
36132
36133    else
36134	    :
36135            PERL_SUPPORTS_DESTDIR='no'
36136
36137  fi
36138
36139
36140else
36141
36142        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36143$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36144        PERL_SUPPORTS_DESTDIR='no'
36145
36146fi
36147
36148fi
36149 if test "$have_perl" != 'no'; then
36150  WITH_PERL_TRUE=
36151  WITH_PERL_FALSE='#'
36152else
36153  WITH_PERL_TRUE='#'
36154  WITH_PERL_FALSE=
36155fi
36156
36157 if test $with_perl_static = 'yes'; then
36158  WITH_PERL_STATIC_TRUE=
36159  WITH_PERL_STATIC_FALSE='#'
36160else
36161  WITH_PERL_STATIC_TRUE='#'
36162  WITH_PERL_STATIC_FALSE=
36163fi
36164
36165 if test $with_perl_dynamic = 'yes'; then
36166  WITH_PERL_DYNAMIC_TRUE=
36167  WITH_PERL_DYNAMIC_FALSE='#'
36168else
36169  WITH_PERL_DYNAMIC_TRUE='#'
36170  WITH_PERL_DYNAMIC_FALSE=
36171fi
36172
36173
36174
36175# Determine path to pick up MagickCore library from for use with building PerlMagick
36176MAGICKCORE_PATH="${LIB_DIR}"
36177if test $with_perl_static = 'yes'; then
36178    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36179    libtool_objdir=$objdir
36180
36181    # Linker search path to library, followed by -lMagickCore
36182    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
36183fi
36184
36185
36186# Create a simple string containing format names for all delegate libraries.
36187MAGICK_DELEGATES=''
36188if test "$have_autotrace"  = 'yes' ; then
36189   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
36190fi
36191if test "$have_bzlib"  = 'yes' ; then
36192   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
36193fi
36194if test "$have_dps"    = 'yes' ; then
36195   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
36196fi
36197if test "$have_djvu"    = 'yes' ; then
36198   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
36199fi
36200if test "$have_avconv"   = 'yes' ; then
36201   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
36202fi
36203if test "$have_fftw"    = 'yes' ; then
36204   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
36205fi
36206if test "$have_flif"    = 'yes' ; then
36207   MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
36208fi
36209if test "$have_fpx"    = 'yes' ; then
36210   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
36211fi
36212if test "$have_fontconfig"    = 'yes' ; then
36213   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
36214fi
36215if test "$have_freetype"    = 'yes' ; then
36216   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
36217fi
36218if test "$have_gslib"    = 'yes' ; then
36219   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
36220fi
36221if test "$have_heic"    = 'yes' ; then
36222   MAGICK_DELEGATES="$MAGICK_DELEGATES heic"
36223fi
36224if test "$have_jbig"    = 'yes' ; then
36225   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
36226fi
36227if test "$have_png$have_jpeg" = 'yesyes' ; then
36228   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
36229fi
36230if test "$have_jpeg"   = 'yes' ; then
36231   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
36232fi
36233if test "$have_jxl"   = 'yes' ; then
36234   MAGICK_DELEGATES="$MAGICK_DELEGATES jxl"
36235fi
36236if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
36237   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
36238fi
36239if test "$have_lqr"    = 'yes' ; then
36240   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
36241fi
36242if test "$have_lzma"    = 'yes' ; then
36243   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
36244fi
36245if test "$have_openexr"    = 'yes' ; then
36246   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
36247fi
36248if test "$have_openjp2"    = 'yes' ; then
36249   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
36250fi
36251if test "$have_pango"    = 'yes' ; then
36252   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
36253fi
36254if test "$have_png"    = 'yes' ; then
36255   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
36256fi
36257have_ps='no'
36258if test "$have_dps"    = 'yes' || \
36259   test "$have_gs" = 'yes' || \
36260   test "${native_win32_build}" = 'yes' ; then
36261   have_ps='yes'
36262fi
36263if test "$have_ps"     = 'yes' ; then
36264   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
36265fi
36266if test "$have_raqm"    = 'yes' ; then
36267   MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
36268fi
36269if test "$have_raw"    = 'yes' ; then
36270   MAGICK_DELEGATES="$MAGICK_DELEGATES raw"
36271fi
36272if test "$have_ra_ppm" = 'yes' ; then
36273   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
36274fi
36275if test "$have_rsvg"   = 'yes' ; then
36276   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
36277fi
36278if test "$have_tiff"   = 'yes' ; then
36279   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
36280fi
36281if test "$have_ttf"    = 'yes' ; then
36282   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
36283fi
36284if test "$have_webp"    = 'yes' ; then
36285   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36286fi
36287if test "$have_wmf"    = 'yes' ; then
36288   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
36289fi
36290if test "$have_x"      = 'yes' ; then
36291   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
36292fi
36293if test "$have_xml"      = 'yes' ; then
36294   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
36295fi
36296if test "$have_zlib"   = 'yes' ; then
36297   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
36298fi
36299if test "$have_zstd"   = 'yes' ; then
36300   MAGICK_DELEGATES="$MAGICK_DELEGATES zstd"
36301fi
36302
36303# Remove extraneous spaces from output variables (asthetic)
36304MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
36305MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
36306
36307
36308
36309#
36310# Handle special compiler flags
36311#
36312
36313# Add '-p' if prof source profiling support enabled
36314if test "$enable_prof" = 'yes'; then
36315    CFLAGS="-p $CFLAGS"
36316    CXXFLAGS="-p $CXXFLAGS"
36317    LDFLAGS="-p $LDFLAGS"
36318fi
36319
36320# Add '-pg' if gprof source profiling support enabled
36321if test "$enable_gprof" = 'yes'; then
36322    CFLAGS="-pg $CFLAGS"
36323    CXXFLAGS="-pg $CXXFLAGS"
36324    LDFLAGS="-pg $LDFLAGS"
36325fi
36326
36327# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36328# This is a gcc-specific feature
36329if test "$enable_gcov" = 'yes'; then
36330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
36331$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
36332if ${ac_cv_lib_gcov__gcov_init+:} false; then :
36333  $as_echo_n "(cached) " >&6
36334else
36335  ac_check_lib_save_LIBS=$LIBS
36336LIBS="-lgcov  $LIBS"
36337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36338/* end confdefs.h.  */
36339
36340/* Override any GCC internal prototype to avoid an error.
36341   Use char because int might match the return type of a GCC
36342   builtin and then its argument prototype would still apply.  */
36343#ifdef __cplusplus
36344extern "C"
36345#endif
36346char _gcov_init ();
36347int
36348main ()
36349{
36350return _gcov_init ();
36351  ;
36352  return 0;
36353}
36354_ACEOF
36355if ac_fn_c_try_link "$LINENO"; then :
36356  ac_cv_lib_gcov__gcov_init=yes
36357else
36358  ac_cv_lib_gcov__gcov_init=no
36359fi
36360rm -f core conftest.err conftest.$ac_objext \
36361    conftest$ac_exeext conftest.$ac_ext
36362LIBS=$ac_check_lib_save_LIBS
36363fi
36364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
36365$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
36366if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
36367  cat >>confdefs.h <<_ACEOF
36368#define HAVE_LIBGCOV 1
36369_ACEOF
36370
36371  LIBS="-lgcov $LIBS"
36372
36373fi
36374
36375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
36376$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
36377if ${ac_cv_lib_gcov___gcov_init+:} false; then :
36378  $as_echo_n "(cached) " >&6
36379else
36380  ac_check_lib_save_LIBS=$LIBS
36381LIBS="-lgcov  $LIBS"
36382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36383/* end confdefs.h.  */
36384
36385/* Override any GCC internal prototype to avoid an error.
36386   Use char because int might match the return type of a GCC
36387   builtin and then its argument prototype would still apply.  */
36388#ifdef __cplusplus
36389extern "C"
36390#endif
36391char __gcov_init ();
36392int
36393main ()
36394{
36395return __gcov_init ();
36396  ;
36397  return 0;
36398}
36399_ACEOF
36400if ac_fn_c_try_link "$LINENO"; then :
36401  ac_cv_lib_gcov___gcov_init=yes
36402else
36403  ac_cv_lib_gcov___gcov_init=no
36404fi
36405rm -f core conftest.err conftest.$ac_objext \
36406    conftest$ac_exeext conftest.$ac_ext
36407LIBS=$ac_check_lib_save_LIBS
36408fi
36409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
36410$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
36411if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
36412  cat >>confdefs.h <<_ACEOF
36413#define HAVE_LIBGCOV 1
36414_ACEOF
36415
36416  LIBS="-lgcov $LIBS"
36417
36418fi
36419
36420    case "$target_os" in
36421        darwin*)
36422            OSX_GCOV_LDFLAG="-Wl,-single_module"
36423        ;;
36424        *)
36425            OSX_GCOV_LDFLAG=""
36426        ;;
36427    esac
36428
36429    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
36430    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
36431    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36432fi
36433
36434#
36435# Build library dependency list for libMagickCore
36436#
36437
36438if test "$build_modules" != 'no'; then
36439    MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $XML_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS"
36440else
36441    MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $JXL_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $HEIF_LIBS $WEBPMUX_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RAW_R_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS"
36442fi
36443MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS"
36444
36445
36446
36447# Pass only user-provided LIBS as "global" libraries
36448LIBS=$USER_LIBS
36449
36450#AC_SUBST(CPPFLAGS)
36451
36452#AC_SUBST(LDFLAGS)
36453#AC_SUBST(X_PRE_LIBS)
36454#AC_SUBST(X_LIBS)
36455#AC_SUBST(X_EXTRA_LIBS)
36456
36457MAGICK_CFLAGS=$CFLAGS
36458MAGICK_CXXFLAGS="$CXXFLAGS"
36459MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
36460MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
36461MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
36462MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
36463
36464
36465
36466
36467
36468
36469
36470
36471# Set configured scripts to executable.
36472ac_config_commands="$ac_config_commands default"
36473
36474ac_config_commands="$ac_config_commands magick.sh.in"
36475
36476ac_config_commands="$ac_config_commands MagickCore-config.in"
36477
36478ac_config_commands="$ac_config_commands MagickWand-config.in"
36479
36480ac_config_commands="$ac_config_commands Magick++-config.in"
36481
36482ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36483
36484
36485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36486$as_echo "-------------------------------------------------------------" >&6; }
36487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36488$as_echo "Update ImageMagick configuration" >&6; }
36489
36490rm -f magick-version
36491
36492result_dejavu_font_dir='none'
36493if test "${dejavu_font_dir}x" != 'x'; then
36494    result_dejavu_font_dir=$dejavu_font_dir
36495fi
36496
36497result_ghostscript_font_dir='none'
36498if test "${ghostscript_font_dir}x" != 'x'; then
36499    result_ghostscript_font_dir=$ghostscript_font_dir
36500fi
36501
36502result_urw_base35_font_dir='none'
36503if test "${urw_base35_font_dir}x" != 'x'; then
36504    result_urw_base35_font_dir=$urw_base35_font_dir
36505fi
36506
36507result_windows_font_dir='none'
36508if test "${windows_font_dir}x" != 'x'; then
36509    result_windows_font_dir=${windows_font_dir}
36510fi
36511
36512# ==============================================================================
36513# Generate build environment
36514# ==============================================================================
36515ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-urw-base35.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap 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/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36516
36517cat >confcache <<\_ACEOF
36518# This file is a shell script that caches the results of configure
36519# tests run on this system so they can be shared between configure
36520# scripts and configure runs, see configure's option --config-cache.
36521# It is not useful on other systems.  If it contains results you don't
36522# want to keep, you may remove or edit it.
36523#
36524# config.status only pays attention to the cache file if you give it
36525# the --recheck option to rerun configure.
36526#
36527# `ac_cv_env_foo' variables (set or unset) will be overridden when
36528# loading this file, other *unset* `ac_cv_foo' will be assigned the
36529# following values.
36530
36531_ACEOF
36532
36533# The following way of writing the cache mishandles newlines in values,
36534# but we know of no workaround that is simple, portable, and efficient.
36535# So, we kill variables containing newlines.
36536# Ultrix sh set writes to stderr and can't be redirected directly,
36537# and sets the high bit in the cache file unless we assign to the vars.
36538(
36539  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36540    eval ac_val=\$$ac_var
36541    case $ac_val in #(
36542    *${as_nl}*)
36543      case $ac_var in #(
36544      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36546      esac
36547      case $ac_var in #(
36548      _ | IFS | as_nl) ;; #(
36549      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36550      *) { eval $ac_var=; unset $ac_var;} ;;
36551      esac ;;
36552    esac
36553  done
36554
36555  (set) 2>&1 |
36556    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36557    *${as_nl}ac_space=\ *)
36558      # `set' does not quote correctly, so add quotes: double-quote
36559      # substitution turns \\\\ into \\, and sed turns \\ into \.
36560      sed -n \
36561	"s/'/'\\\\''/g;
36562	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36563      ;; #(
36564    *)
36565      # `set' quotes correctly as required by POSIX, so do not add quotes.
36566      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36567      ;;
36568    esac |
36569    sort
36570) |
36571  sed '
36572     /^ac_cv_env_/b end
36573     t clear
36574     :clear
36575     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36576     t end
36577     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36578     :end' >>confcache
36579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36580  if test -w "$cache_file"; then
36581    if test "x$cache_file" != "x/dev/null"; then
36582      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36583$as_echo "$as_me: updating cache $cache_file" >&6;}
36584      if test ! -f "$cache_file" || test -h "$cache_file"; then
36585	cat confcache >"$cache_file"
36586      else
36587        case $cache_file in #(
36588        */* | ?:*)
36589	  mv -f confcache "$cache_file"$$ &&
36590	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36591        *)
36592	  mv -f confcache "$cache_file" ;;
36593	esac
36594      fi
36595    fi
36596  else
36597    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36599  fi
36600fi
36601rm -f confcache
36602
36603test "x$prefix" = xNONE && prefix=$ac_default_prefix
36604# Let make expand exec_prefix.
36605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36606
36607DEFS=-DHAVE_CONFIG_H
36608
36609ac_libobjs=
36610ac_ltlibobjs=
36611U=
36612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36613  # 1. Remove the extension, and $U if already installed.
36614  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36615  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36616  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36617  #    will be set to the directory where LIBOBJS objects are built.
36618  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36619  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36620done
36621LIBOBJS=$ac_libobjs
36622
36623LTLIBOBJS=$ac_ltlibobjs
36624
36625
36626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36627$as_echo_n "checking that generated files are newer than configure... " >&6; }
36628   if test -n "$am_sleep_pid"; then
36629     # Hide warnings about reused PIDs.
36630     wait $am_sleep_pid 2>/dev/null
36631   fi
36632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36633$as_echo "done" >&6; }
36634 if test -n "$EXEEXT"; then
36635  am__EXEEXT_TRUE=
36636  am__EXEEXT_FALSE='#'
36637else
36638  am__EXEEXT_TRUE='#'
36639  am__EXEEXT_FALSE=
36640fi
36641
36642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36643$as_echo_n "checking that generated files are newer than configure... " >&6; }
36644   if test -n "$am_sleep_pid"; then
36645     # Hide warnings about reused PIDs.
36646     wait $am_sleep_pid 2>/dev/null
36647   fi
36648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36649$as_echo "done" >&6; }
36650if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36651  as_fn_error $? "conditional \"AMDEP\" was never defined.
36652Usually this means the macro was only invoked conditionally." "$LINENO" 5
36653fi
36654if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36655  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36656Usually this means the macro was only invoked conditionally." "$LINENO" 5
36657fi
36658if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36659  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36660Usually this means the macro was only invoked conditionally." "$LINENO" 5
36661fi
36662if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36663  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36664Usually this means the macro was only invoked conditionally." "$LINENO" 5
36665fi
36666if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36667  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36668Usually this means the macro was only invoked conditionally." "$LINENO" 5
36669fi
36670if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
36671  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
36672Usually this means the macro was only invoked conditionally." "$LINENO" 5
36673fi
36674if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
36675  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
36676Usually this means the macro was only invoked conditionally." "$LINENO" 5
36677fi
36678if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
36679  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
36680Usually this means the macro was only invoked conditionally." "$LINENO" 5
36681fi
36682if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
36683  as_fn_error $? "conditional \"USING_CL\" was never defined.
36684Usually this means the macro was only invoked conditionally." "$LINENO" 5
36685fi
36686if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36687  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36688Usually this means the macro was only invoked conditionally." "$LINENO" 5
36689fi
36690if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36691  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36692Usually this means the macro was only invoked conditionally." "$LINENO" 5
36693fi
36694if test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE}" && test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE}"; then
36695  as_fn_error $? "conditional \"MAGICKCORE_ZERO_CONFIGURATION_SUPPORT\" was never defined.
36696Usually this means the macro was only invoked conditionally." "$LINENO" 5
36697fi
36698if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36699  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36700Usually this means the macro was only invoked conditionally." "$LINENO" 5
36701fi
36702if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36703  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36704Usually this means the macro was only invoked conditionally." "$LINENO" 5
36705fi
36706if test -z "${WITH_UTILITIES_TRUE}" && test -z "${WITH_UTILITIES_FALSE}"; then
36707  as_fn_error $? "conditional \"WITH_UTILITIES\" was never defined.
36708Usually this means the macro was only invoked conditionally." "$LINENO" 5
36709fi
36710
36711if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36712  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36713Usually this means the macro was only invoked conditionally." "$LINENO" 5
36714fi
36715if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36716  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36717Usually this means the macro was only invoked conditionally." "$LINENO" 5
36718fi
36719if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36720  as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36721Usually this means the macro was only invoked conditionally." "$LINENO" 5
36722fi
36723if test -z "${HAVE_TCMALLOC_TRUE}" && test -z "${HAVE_TCMALLOC_FALSE}"; then
36724  as_fn_error $? "conditional \"HAVE_TCMALLOC\" was never defined.
36725Usually this means the macro was only invoked conditionally." "$LINENO" 5
36726fi
36727if test -z "${HAVE_UMEM_TRUE}" && test -z "${HAVE_UMEM_FALSE}"; then
36728  as_fn_error $? "conditional \"HAVE_UMEM\" was never defined.
36729Usually this means the macro was only invoked conditionally." "$LINENO" 5
36730fi
36731if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36732  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36733Usually this means the macro was only invoked conditionally." "$LINENO" 5
36734fi
36735if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36736  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36737Usually this means the macro was only invoked conditionally." "$LINENO" 5
36738fi
36739if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36740  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36741Usually this means the macro was only invoked conditionally." "$LINENO" 5
36742fi
36743if test -z "${ZSTD_DELEGATE_TRUE}" && test -z "${ZSTD_DELEGATE_FALSE}"; then
36744  as_fn_error $? "conditional \"ZSTD_DELEGATE\" was never defined.
36745Usually this means the macro was only invoked conditionally." "$LINENO" 5
36746fi
36747if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36748  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36749Usually this means the macro was only invoked conditionally." "$LINENO" 5
36750fi
36751if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36752  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36753Usually this means the macro was only invoked conditionally." "$LINENO" 5
36754fi
36755if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36756  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36757Usually this means the macro was only invoked conditionally." "$LINENO" 5
36758fi
36759if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36760  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36761Usually this means the macro was only invoked conditionally." "$LINENO" 5
36762fi
36763if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
36764  as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
36765Usually this means the macro was only invoked conditionally." "$LINENO" 5
36766fi
36767if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36768  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36769Usually this means the macro was only invoked conditionally." "$LINENO" 5
36770fi
36771if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36772  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36773Usually this means the macro was only invoked conditionally." "$LINENO" 5
36774fi
36775if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36776  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36777Usually this means the macro was only invoked conditionally." "$LINENO" 5
36778fi
36779if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
36780  as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
36781Usually this means the macro was only invoked conditionally." "$LINENO" 5
36782fi
36783if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36784  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36785Usually this means the macro was only invoked conditionally." "$LINENO" 5
36786fi
36787if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36788  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36789Usually this means the macro was only invoked conditionally." "$LINENO" 5
36790fi
36791if test -z "${HEIC_DELEGATE_TRUE}" && test -z "${HEIC_DELEGATE_FALSE}"; then
36792  as_fn_error $? "conditional \"HEIC_DELEGATE\" was never defined.
36793Usually this means the macro was only invoked conditionally." "$LINENO" 5
36794fi
36795if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36796  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36797Usually this means the macro was only invoked conditionally." "$LINENO" 5
36798fi
36799if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36800  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36801Usually this means the macro was only invoked conditionally." "$LINENO" 5
36802fi
36803if test -z "${JXL_DELEGATE_TRUE}" && test -z "${JXL_DELEGATE_FALSE}"; then
36804  as_fn_error $? "conditional \"JXL_DELEGATE\" was never defined.
36805Usually this means the macro was only invoked conditionally." "$LINENO" 5
36806fi
36807if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36808  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36809Usually this means the macro was only invoked conditionally." "$LINENO" 5
36810fi
36811if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36812  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
36815if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36816  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
36819if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36820  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36821Usually this means the macro was only invoked conditionally." "$LINENO" 5
36822fi
36823if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36824  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36825Usually this means the macro was only invoked conditionally." "$LINENO" 5
36826fi
36827if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36828  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36829Usually this means the macro was only invoked conditionally." "$LINENO" 5
36830fi
36831if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36832  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36833Usually this means the macro was only invoked conditionally." "$LINENO" 5
36834fi
36835if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36836  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36837Usually this means the macro was only invoked conditionally." "$LINENO" 5
36838fi
36839if test -z "${RAW_R_DELEGATE_TRUE}" && test -z "${RAW_R_DELEGATE_FALSE}"; then
36840  as_fn_error $? "conditional \"RAW_R_DELEGATE\" was never defined.
36841Usually this means the macro was only invoked conditionally." "$LINENO" 5
36842fi
36843if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36844  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36845Usually this means the macro was only invoked conditionally." "$LINENO" 5
36846fi
36847if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36848  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36849Usually this means the macro was only invoked conditionally." "$LINENO" 5
36850fi
36851if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36852  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36853Usually this means the macro was only invoked conditionally." "$LINENO" 5
36854fi
36855if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36856  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36857Usually this means the macro was only invoked conditionally." "$LINENO" 5
36858fi
36859if test -z "${WEBPMUX_DELEGATE_TRUE}" && test -z "${WEBPMUX_DELEGATE_FALSE}"; then
36860  as_fn_error $? "conditional \"WEBPMUX_DELEGATE\" was never defined.
36861Usually this means the macro was only invoked conditionally." "$LINENO" 5
36862fi
36863if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36864  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36865Usually this means the macro was only invoked conditionally." "$LINENO" 5
36866fi
36867if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36868  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36869Usually this means the macro was only invoked conditionally." "$LINENO" 5
36870fi
36871if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36872  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36873Usually this means the macro was only invoked conditionally." "$LINENO" 5
36874fi
36875if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36876  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36877Usually this means the macro was only invoked conditionally." "$LINENO" 5
36878fi
36879if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36880  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36881Usually this means the macro was only invoked conditionally." "$LINENO" 5
36882fi
36883if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36884  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36885Usually this means the macro was only invoked conditionally." "$LINENO" 5
36886fi
36887if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36888  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36889Usually this means the macro was only invoked conditionally." "$LINENO" 5
36890fi
36891if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36892  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36893Usually this means the macro was only invoked conditionally." "$LINENO" 5
36894fi
36895if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36896  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36897Usually this means the macro was only invoked conditionally." "$LINENO" 5
36898fi
36899
36900: "${CONFIG_STATUS=./config.status}"
36901ac_write_fail=0
36902ac_clean_files_save=$ac_clean_files
36903ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36904{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36905$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36906as_write_fail=0
36907cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36908#! $SHELL
36909# Generated by $as_me.
36910# Run this file to recreate the current configuration.
36911# Compiler output produced by configure, useful for debugging
36912# configure, is in config.log if it exists.
36913
36914debug=false
36915ac_cs_recheck=false
36916ac_cs_silent=false
36917
36918SHELL=\${CONFIG_SHELL-$SHELL}
36919export SHELL
36920_ASEOF
36921cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36922## -------------------- ##
36923## M4sh Initialization. ##
36924## -------------------- ##
36925
36926# Be more Bourne compatible
36927DUALCASE=1; export DUALCASE # for MKS sh
36928if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36929  emulate sh
36930  NULLCMD=:
36931  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36932  # is contrary to our usage.  Disable this feature.
36933  alias -g '${1+"$@"}'='"$@"'
36934  setopt NO_GLOB_SUBST
36935else
36936  case `(set -o) 2>/dev/null` in #(
36937  *posix*) :
36938    set -o posix ;; #(
36939  *) :
36940     ;;
36941esac
36942fi
36943
36944
36945as_nl='
36946'
36947export as_nl
36948# Printing a long string crashes Solaris 7 /usr/bin/printf.
36949as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36950as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36952# Prefer a ksh shell builtin over an external printf program on Solaris,
36953# but without wasting forks for bash or zsh.
36954if test -z "$BASH_VERSION$ZSH_VERSION" \
36955    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36956  as_echo='print -r --'
36957  as_echo_n='print -rn --'
36958elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36959  as_echo='printf %s\n'
36960  as_echo_n='printf %s'
36961else
36962  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36963    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36964    as_echo_n='/usr/ucb/echo -n'
36965  else
36966    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36967    as_echo_n_body='eval
36968      arg=$1;
36969      case $arg in #(
36970      *"$as_nl"*)
36971	expr "X$arg" : "X\\(.*\\)$as_nl";
36972	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36973      esac;
36974      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36975    '
36976    export as_echo_n_body
36977    as_echo_n='sh -c $as_echo_n_body as_echo'
36978  fi
36979  export as_echo_body
36980  as_echo='sh -c $as_echo_body as_echo'
36981fi
36982
36983# The user is always right.
36984if test "${PATH_SEPARATOR+set}" != set; then
36985  PATH_SEPARATOR=:
36986  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36987    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36988      PATH_SEPARATOR=';'
36989  }
36990fi
36991
36992
36993# IFS
36994# We need space, tab and new line, in precisely that order.  Quoting is
36995# there to prevent editors from complaining about space-tab.
36996# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36997# splitting by setting IFS to empty value.)
36998IFS=" ""	$as_nl"
36999
37000# Find who we are.  Look in the path if we contain no directory separator.
37001as_myself=
37002case $0 in #((
37003  *[\\/]* ) as_myself=$0 ;;
37004  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37005for as_dir in $PATH
37006do
37007  IFS=$as_save_IFS
37008  test -z "$as_dir" && as_dir=.
37009    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37010  done
37011IFS=$as_save_IFS
37012
37013     ;;
37014esac
37015# We did not find ourselves, most probably we were run as `sh COMMAND'
37016# in which case we are not to be found in the path.
37017if test "x$as_myself" = x; then
37018  as_myself=$0
37019fi
37020if test ! -f "$as_myself"; then
37021  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37022  exit 1
37023fi
37024
37025# Unset variables that we do not need and which cause bugs (e.g. in
37026# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37027# suppresses any "Segmentation fault" message there.  '((' could
37028# trigger a bug in pdksh 5.2.14.
37029for as_var in BASH_ENV ENV MAIL MAILPATH
37030do eval test x\${$as_var+set} = xset \
37031  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37032done
37033PS1='$ '
37034PS2='> '
37035PS4='+ '
37036
37037# NLS nuisances.
37038LC_ALL=C
37039export LC_ALL
37040LANGUAGE=C
37041export LANGUAGE
37042
37043# CDPATH.
37044(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37045
37046
37047# as_fn_error STATUS ERROR [LINENO LOG_FD]
37048# ----------------------------------------
37049# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37050# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37051# script with STATUS, using 1 if that was 0.
37052as_fn_error ()
37053{
37054  as_status=$1; test $as_status -eq 0 && as_status=1
37055  if test "$4"; then
37056    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37057    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37058  fi
37059  $as_echo "$as_me: error: $2" >&2
37060  as_fn_exit $as_status
37061} # as_fn_error
37062
37063
37064# as_fn_set_status STATUS
37065# -----------------------
37066# Set $? to STATUS, without forking.
37067as_fn_set_status ()
37068{
37069  return $1
37070} # as_fn_set_status
37071
37072# as_fn_exit STATUS
37073# -----------------
37074# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37075as_fn_exit ()
37076{
37077  set +e
37078  as_fn_set_status $1
37079  exit $1
37080} # as_fn_exit
37081
37082# as_fn_unset VAR
37083# ---------------
37084# Portably unset VAR.
37085as_fn_unset ()
37086{
37087  { eval $1=; unset $1;}
37088}
37089as_unset=as_fn_unset
37090# as_fn_append VAR VALUE
37091# ----------------------
37092# Append the text in VALUE to the end of the definition contained in VAR. Take
37093# advantage of any shell optimizations that allow amortized linear growth over
37094# repeated appends, instead of the typical quadratic growth present in naive
37095# implementations.
37096if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37097  eval 'as_fn_append ()
37098  {
37099    eval $1+=\$2
37100  }'
37101else
37102  as_fn_append ()
37103  {
37104    eval $1=\$$1\$2
37105  }
37106fi # as_fn_append
37107
37108# as_fn_arith ARG...
37109# ------------------
37110# Perform arithmetic evaluation on the ARGs, and store the result in the
37111# global $as_val. Take advantage of shells that can avoid forks. The arguments
37112# must be portable across $(()) and expr.
37113if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37114  eval 'as_fn_arith ()
37115  {
37116    as_val=$(( $* ))
37117  }'
37118else
37119  as_fn_arith ()
37120  {
37121    as_val=`expr "$@" || test $? -eq 1`
37122  }
37123fi # as_fn_arith
37124
37125
37126if expr a : '\(a\)' >/dev/null 2>&1 &&
37127   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37128  as_expr=expr
37129else
37130  as_expr=false
37131fi
37132
37133if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37134  as_basename=basename
37135else
37136  as_basename=false
37137fi
37138
37139if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37140  as_dirname=dirname
37141else
37142  as_dirname=false
37143fi
37144
37145as_me=`$as_basename -- "$0" ||
37146$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37147	 X"$0" : 'X\(//\)$' \| \
37148	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37149$as_echo X/"$0" |
37150    sed '/^.*\/\([^/][^/]*\)\/*$/{
37151	    s//\1/
37152	    q
37153	  }
37154	  /^X\/\(\/\/\)$/{
37155	    s//\1/
37156	    q
37157	  }
37158	  /^X\/\(\/\).*/{
37159	    s//\1/
37160	    q
37161	  }
37162	  s/.*/./; q'`
37163
37164# Avoid depending upon Character Ranges.
37165as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37167as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37168as_cr_digits='0123456789'
37169as_cr_alnum=$as_cr_Letters$as_cr_digits
37170
37171ECHO_C= ECHO_N= ECHO_T=
37172case `echo -n x` in #(((((
37173-n*)
37174  case `echo 'xy\c'` in
37175  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37176  xy)  ECHO_C='\c';;
37177  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37178       ECHO_T='	';;
37179  esac;;
37180*)
37181  ECHO_N='-n';;
37182esac
37183
37184rm -f conf$$ conf$$.exe conf$$.file
37185if test -d conf$$.dir; then
37186  rm -f conf$$.dir/conf$$.file
37187else
37188  rm -f conf$$.dir
37189  mkdir conf$$.dir 2>/dev/null
37190fi
37191if (echo >conf$$.file) 2>/dev/null; then
37192  if ln -s conf$$.file conf$$ 2>/dev/null; then
37193    as_ln_s='ln -s'
37194    # ... but there are two gotchas:
37195    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37196    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37197    # In both cases, we have to default to `cp -pR'.
37198    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37199      as_ln_s='cp -pR'
37200  elif ln conf$$.file conf$$ 2>/dev/null; then
37201    as_ln_s=ln
37202  else
37203    as_ln_s='cp -pR'
37204  fi
37205else
37206  as_ln_s='cp -pR'
37207fi
37208rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37209rmdir conf$$.dir 2>/dev/null
37210
37211
37212# as_fn_mkdir_p
37213# -------------
37214# Create "$as_dir" as a directory, including parents if necessary.
37215as_fn_mkdir_p ()
37216{
37217
37218  case $as_dir in #(
37219  -*) as_dir=./$as_dir;;
37220  esac
37221  test -d "$as_dir" || eval $as_mkdir_p || {
37222    as_dirs=
37223    while :; do
37224      case $as_dir in #(
37225      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37226      *) as_qdir=$as_dir;;
37227      esac
37228      as_dirs="'$as_qdir' $as_dirs"
37229      as_dir=`$as_dirname -- "$as_dir" ||
37230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37231	 X"$as_dir" : 'X\(//\)[^/]' \| \
37232	 X"$as_dir" : 'X\(//\)$' \| \
37233	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37234$as_echo X"$as_dir" |
37235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37236	    s//\1/
37237	    q
37238	  }
37239	  /^X\(\/\/\)[^/].*/{
37240	    s//\1/
37241	    q
37242	  }
37243	  /^X\(\/\/\)$/{
37244	    s//\1/
37245	    q
37246	  }
37247	  /^X\(\/\).*/{
37248	    s//\1/
37249	    q
37250	  }
37251	  s/.*/./; q'`
37252      test -d "$as_dir" && break
37253    done
37254    test -z "$as_dirs" || eval "mkdir $as_dirs"
37255  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37256
37257
37258} # as_fn_mkdir_p
37259if mkdir -p . 2>/dev/null; then
37260  as_mkdir_p='mkdir -p "$as_dir"'
37261else
37262  test -d ./-p && rmdir ./-p
37263  as_mkdir_p=false
37264fi
37265
37266
37267# as_fn_executable_p FILE
37268# -----------------------
37269# Test if FILE is an executable regular file.
37270as_fn_executable_p ()
37271{
37272  test -f "$1" && test -x "$1"
37273} # as_fn_executable_p
37274as_test_x='test -x'
37275as_executable_p=as_fn_executable_p
37276
37277# Sed expression to map a string onto a valid CPP name.
37278as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37279
37280# Sed expression to map a string onto a valid variable name.
37281as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37282
37283
37284exec 6>&1
37285## ----------------------------------- ##
37286## Main body of $CONFIG_STATUS script. ##
37287## ----------------------------------- ##
37288_ASEOF
37289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37290
37291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37292# Save the log message, to keep $0 and so on meaningful, and to
37293# report actual input values of CONFIG_FILES etc. instead of their
37294# values after options handling.
37295ac_log="
37296This file was extended by ImageMagick $as_me 7.0.9-15, which was
37297generated by GNU Autoconf 2.69.  Invocation command line was
37298
37299  CONFIG_FILES    = $CONFIG_FILES
37300  CONFIG_HEADERS  = $CONFIG_HEADERS
37301  CONFIG_LINKS    = $CONFIG_LINKS
37302  CONFIG_COMMANDS = $CONFIG_COMMANDS
37303  $ $0 $@
37304
37305on `(hostname || uname -n) 2>/dev/null | sed 1q`
37306"
37307
37308_ACEOF
37309
37310case $ac_config_files in *"
37311"*) set x $ac_config_files; shift; ac_config_files=$*;;
37312esac
37313
37314case $ac_config_headers in *"
37315"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37316esac
37317
37318
37319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37320# Files that config.status was made for.
37321config_files="$ac_config_files"
37322config_headers="$ac_config_headers"
37323config_commands="$ac_config_commands"
37324
37325_ACEOF
37326
37327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37328ac_cs_usage="\
37329\`$as_me' instantiates files and other configuration actions
37330from templates according to the current configuration.  Unless the files
37331and actions are specified as TAGs, all are instantiated by default.
37332
37333Usage: $0 [OPTION]... [TAG]...
37334
37335  -h, --help       print this help, then exit
37336  -V, --version    print version number and configuration settings, then exit
37337      --config     print configuration, then exit
37338  -q, --quiet, --silent
37339                   do not print progress messages
37340  -d, --debug      don't remove temporary files
37341      --recheck    update $as_me by reconfiguring in the same conditions
37342      --file=FILE[:TEMPLATE]
37343                   instantiate the configuration file FILE
37344      --header=FILE[:TEMPLATE]
37345                   instantiate the configuration header FILE
37346
37347Configuration files:
37348$config_files
37349
37350Configuration headers:
37351$config_headers
37352
37353Configuration commands:
37354$config_commands
37355
37356Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
37357ImageMagick home page: <https://imagemagick.org>."
37358
37359_ACEOF
37360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37361ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37362ac_cs_version="\\
37363ImageMagick config.status 7.0.9-15
37364configured by $0, generated by GNU Autoconf 2.69,
37365  with options \\"\$ac_cs_config\\"
37366
37367Copyright (C) 2012 Free Software Foundation, Inc.
37368This config.status script is free software; the Free Software Foundation
37369gives unlimited permission to copy, distribute and modify it."
37370
37371ac_pwd='$ac_pwd'
37372srcdir='$srcdir'
37373INSTALL='$INSTALL'
37374MKDIR_P='$MKDIR_P'
37375AWK='$AWK'
37376test -n "\$AWK" || AWK=awk
37377_ACEOF
37378
37379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37380# The default lists apply if the user does not specify any file.
37381ac_need_defaults=:
37382while test $# != 0
37383do
37384  case $1 in
37385  --*=?*)
37386    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37387    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37388    ac_shift=:
37389    ;;
37390  --*=)
37391    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37392    ac_optarg=
37393    ac_shift=:
37394    ;;
37395  *)
37396    ac_option=$1
37397    ac_optarg=$2
37398    ac_shift=shift
37399    ;;
37400  esac
37401
37402  case $ac_option in
37403  # Handling of the options.
37404  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37405    ac_cs_recheck=: ;;
37406  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37407    $as_echo "$ac_cs_version"; exit ;;
37408  --config | --confi | --conf | --con | --co | --c )
37409    $as_echo "$ac_cs_config"; exit ;;
37410  --debug | --debu | --deb | --de | --d | -d )
37411    debug=: ;;
37412  --file | --fil | --fi | --f )
37413    $ac_shift
37414    case $ac_optarg in
37415    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37416    '') as_fn_error $? "missing file argument" ;;
37417    esac
37418    as_fn_append CONFIG_FILES " '$ac_optarg'"
37419    ac_need_defaults=false;;
37420  --header | --heade | --head | --hea )
37421    $ac_shift
37422    case $ac_optarg in
37423    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37424    esac
37425    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37426    ac_need_defaults=false;;
37427  --he | --h)
37428    # Conflict between --help and --header
37429    as_fn_error $? "ambiguous option: \`$1'
37430Try \`$0 --help' for more information.";;
37431  --help | --hel | -h )
37432    $as_echo "$ac_cs_usage"; exit ;;
37433  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37434  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37435    ac_cs_silent=: ;;
37436
37437  # This is an error.
37438  -*) as_fn_error $? "unrecognized option: \`$1'
37439Try \`$0 --help' for more information." ;;
37440
37441  *) as_fn_append ac_config_targets " $1"
37442     ac_need_defaults=false ;;
37443
37444  esac
37445  shift
37446done
37447
37448ac_configure_extra_args=
37449
37450if $ac_cs_silent; then
37451  exec 6>/dev/null
37452  ac_configure_extra_args="$ac_configure_extra_args --silent"
37453fi
37454
37455_ACEOF
37456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37457if \$ac_cs_recheck; then
37458  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37459  shift
37460  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37461  CONFIG_SHELL='$SHELL'
37462  export CONFIG_SHELL
37463  exec "\$@"
37464fi
37465
37466_ACEOF
37467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37468exec 5>>config.log
37469{
37470  echo
37471  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37472## Running $as_me. ##
37473_ASBOX
37474  $as_echo "$ac_log"
37475} >&5
37476
37477_ACEOF
37478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37479#
37480# INIT-COMMANDS
37481#
37482PACKAGE="$PACKAGE"
37483AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
37484
37485
37486# The HP-UX ksh and POSIX shell print the target directory to stdout
37487# if CDPATH is set.
37488(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37489
37490sed_quote_subst='$sed_quote_subst'
37491double_quote_subst='$double_quote_subst'
37492delay_variable_subst='$delay_variable_subst'
37493SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37494Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37495GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37496EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37497FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37498SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37499ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37500LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37501macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37502macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37503AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37504DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37505OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37506enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37507enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37508pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37509enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37510shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37511PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37512host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37513host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37514host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37515build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37516build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37517build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37518NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37519LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37520max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37521ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37522exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37523lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37524lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37525lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37526lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37527lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37528reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37529reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37530deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37531file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37532file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37533want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37534sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37535AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37536AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37537archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37538STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37539RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37540old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37541old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37542old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37543lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37544CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37545CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37546compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37547GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37548lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37549lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37550lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37551lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
37553lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37554nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37555lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37556lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37557objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37558MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37559lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37560lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37561lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37562lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37563lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37564need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37565MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37566DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37567NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37568LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37569OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37570OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37571libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37572shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37573extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37574archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37575enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37576export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37577whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37578compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37579old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37580old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37581archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37582archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37583module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37584module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37585with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37586allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37587no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37588hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37589hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37590hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37591hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37592hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37593hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37594hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37595inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37596link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37597always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37598export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37599exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37600include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37601prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37602postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37603file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37604variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37605need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37606need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37607version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37608runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37609shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37610shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37611libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37612library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37613soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37614install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37615postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37616postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37617finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37618finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37619hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37620sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37621configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37622configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37623hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37624enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37625enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37626enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37627old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37628striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37629compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37630predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37631postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37632predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37633postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37634compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37635LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37636reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37637reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37638old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37639compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37640GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37641lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37642lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37643lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37644lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37645lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37646archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37647enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37648export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37649whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37650compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37651old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37652old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37653archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37654archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37655module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37656module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37657with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37658allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37659no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37660hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37661hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37662hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37663hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37664hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37665hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37666hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37667inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37668link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37669always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37670export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37671exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37672include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37673prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37674postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37675file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37676hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37677compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37678predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37679postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37680predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37681postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37682compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37683
37684LTCC='$LTCC'
37685LTCFLAGS='$LTCFLAGS'
37686compiler='$compiler_DEFAULT'
37687
37688# A function that is used when there is no print builtin or printf.
37689func_fallback_echo ()
37690{
37691  eval 'cat <<_LTECHO_EOF
37692\$1
37693_LTECHO_EOF'
37694}
37695
37696# Quote evaled strings.
37697for var in SED \
37698GREP \
37699EGREP \
37700FGREP \
37701SHELL \
37702ECHO \
37703LD \
37704AS \
37705DLLTOOL \
37706OBJDUMP \
37707PATH_SEPARATOR \
37708NM \
37709LN_S \
37710lt_SP2NL \
37711lt_NL2SP \
37712reload_flag \
37713deplibs_check_method \
37714file_magic_cmd \
37715file_magic_glob \
37716want_nocaseglob \
37717sharedlib_from_linklib_cmd \
37718AR \
37719AR_FLAGS \
37720archiver_list_spec \
37721STRIP \
37722RANLIB \
37723CC \
37724CFLAGS \
37725compiler \
37726lt_cv_sys_global_symbol_pipe \
37727lt_cv_sys_global_symbol_to_cdecl \
37728lt_cv_sys_global_symbol_to_import \
37729lt_cv_sys_global_symbol_to_c_name_address \
37730lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37731lt_cv_nm_interface \
37732nm_file_list_spec \
37733lt_cv_truncate_bin \
37734lt_prog_compiler_no_builtin_flag \
37735lt_prog_compiler_pic \
37736lt_prog_compiler_wl \
37737lt_prog_compiler_static \
37738lt_cv_prog_compiler_c_o \
37739need_locks \
37740MANIFEST_TOOL \
37741DSYMUTIL \
37742NMEDIT \
37743LIPO \
37744OTOOL \
37745OTOOL64 \
37746shrext_cmds \
37747export_dynamic_flag_spec \
37748whole_archive_flag_spec \
37749compiler_needs_object \
37750with_gnu_ld \
37751allow_undefined_flag \
37752no_undefined_flag \
37753hardcode_libdir_flag_spec \
37754hardcode_libdir_separator \
37755exclude_expsyms \
37756include_expsyms \
37757file_list_spec \
37758variables_saved_for_relink \
37759libname_spec \
37760library_names_spec \
37761soname_spec \
37762install_override_mode \
37763finish_eval \
37764old_striplib \
37765striplib \
37766compiler_lib_search_dirs \
37767predep_objects \
37768postdep_objects \
37769predeps \
37770postdeps \
37771compiler_lib_search_path \
37772LD_CXX \
37773reload_flag_CXX \
37774compiler_CXX \
37775lt_prog_compiler_no_builtin_flag_CXX \
37776lt_prog_compiler_pic_CXX \
37777lt_prog_compiler_wl_CXX \
37778lt_prog_compiler_static_CXX \
37779lt_cv_prog_compiler_c_o_CXX \
37780export_dynamic_flag_spec_CXX \
37781whole_archive_flag_spec_CXX \
37782compiler_needs_object_CXX \
37783with_gnu_ld_CXX \
37784allow_undefined_flag_CXX \
37785no_undefined_flag_CXX \
37786hardcode_libdir_flag_spec_CXX \
37787hardcode_libdir_separator_CXX \
37788exclude_expsyms_CXX \
37789include_expsyms_CXX \
37790file_list_spec_CXX \
37791compiler_lib_search_dirs_CXX \
37792predep_objects_CXX \
37793postdep_objects_CXX \
37794predeps_CXX \
37795postdeps_CXX \
37796compiler_lib_search_path_CXX; do
37797    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37798    *[\\\\\\\`\\"\\\$]*)
37799      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37800      ;;
37801    *)
37802      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37803      ;;
37804    esac
37805done
37806
37807# Double-quote double-evaled strings.
37808for var in reload_cmds \
37809old_postinstall_cmds \
37810old_postuninstall_cmds \
37811old_archive_cmds \
37812extract_expsyms_cmds \
37813old_archive_from_new_cmds \
37814old_archive_from_expsyms_cmds \
37815archive_cmds \
37816archive_expsym_cmds \
37817module_cmds \
37818module_expsym_cmds \
37819export_symbols_cmds \
37820prelink_cmds \
37821postlink_cmds \
37822postinstall_cmds \
37823postuninstall_cmds \
37824finish_cmds \
37825sys_lib_search_path_spec \
37826configure_time_dlsearch_path \
37827configure_time_lt_sys_library_path \
37828reload_cmds_CXX \
37829old_archive_cmds_CXX \
37830old_archive_from_new_cmds_CXX \
37831old_archive_from_expsyms_cmds_CXX \
37832archive_cmds_CXX \
37833archive_expsym_cmds_CXX \
37834module_cmds_CXX \
37835module_expsym_cmds_CXX \
37836export_symbols_cmds_CXX \
37837prelink_cmds_CXX \
37838postlink_cmds_CXX; do
37839    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37840    *[\\\\\\\`\\"\\\$]*)
37841      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37842      ;;
37843    *)
37844      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37845      ;;
37846    esac
37847done
37848
37849ac_aux_dir='$ac_aux_dir'
37850
37851# See if we are running on zsh, and set the options that allow our
37852# commands through without removal of \ escapes INIT.
37853if test -n "\${ZSH_VERSION+set}"; then
37854   setopt NO_GLOB_SUBST
37855fi
37856
37857
37858    PACKAGE='$PACKAGE'
37859    VERSION='$VERSION'
37860    RM='$RM'
37861    ofile='$ofile'
37862
37863
37864
37865
37866
37867
37868_ACEOF
37869
37870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37871
37872# Handling of arguments.
37873for ac_config_target in $ac_config_targets
37874do
37875  case $ac_config_target in
37876    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37877    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
37878    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37879    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37880    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37881    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37882    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37883    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37884    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37885    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37886    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37887    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37888    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37889    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37890    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37891    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37892    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37893    "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
37894    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37895    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37896    "config/type-urw-base35.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35.xml" ;;
37897    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37898    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37899    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37900    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37901    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37902    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37903    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37904    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37905    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37906    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37907    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37908    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37909    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
37910    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37911    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
37912    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37913    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37914    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37915    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
37916    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37917    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37918    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37919    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37920    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37921    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37922    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37923    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37924    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37925    "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
37926    "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
37927    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37928    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37929    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37930    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37931    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37932
37933  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37934  esac
37935done
37936
37937
37938# If the user did not use the arguments to specify the items to instantiate,
37939# then the envvar interface is used.  Set only those that are not.
37940# We use the long form for the default assignment because of an extremely
37941# bizarre bug on SunOS 4.1.3.
37942if $ac_need_defaults; then
37943  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37944  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37945  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37946fi
37947
37948# Have a temporary directory for convenience.  Make it in the build tree
37949# simply because there is no reason against having it here, and in addition,
37950# creating and moving files from /tmp can sometimes cause problems.
37951# Hook for its removal unless debugging.
37952# Note that there is a small window in which the directory will not be cleaned:
37953# after its creation but before its name has been assigned to `$tmp'.
37954$debug ||
37955{
37956  tmp= ac_tmp=
37957  trap 'exit_status=$?
37958  : "${ac_tmp:=$tmp}"
37959  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37960' 0
37961  trap 'as_fn_exit 1' 1 2 13 15
37962}
37963# Create a (secure) tmp directory for tmp files.
37964
37965{
37966  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37967  test -d "$tmp"
37968}  ||
37969{
37970  tmp=./conf$$-$RANDOM
37971  (umask 077 && mkdir "$tmp")
37972} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37973ac_tmp=$tmp
37974
37975# Set up the scripts for CONFIG_FILES section.
37976# No need to generate them if there are no CONFIG_FILES.
37977# This happens for instance with `./config.status config.h'.
37978if test -n "$CONFIG_FILES"; then
37979
37980
37981ac_cr=`echo X | tr X '\015'`
37982# On cygwin, bash can eat \r inside `` if the user requested igncr.
37983# But we know of no other shell where ac_cr would be empty at this
37984# point, so we can use a bashism as a fallback.
37985if test "x$ac_cr" = x; then
37986  eval ac_cr=\$\'\\r\'
37987fi
37988ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37989if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37990  ac_cs_awk_cr='\\r'
37991else
37992  ac_cs_awk_cr=$ac_cr
37993fi
37994
37995echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37996_ACEOF
37997
37998
37999{
38000  echo "cat >conf$$subs.awk <<_ACEOF" &&
38001  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38002  echo "_ACEOF"
38003} >conf$$subs.sh ||
38004  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38005ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38006ac_delim='%!_!# '
38007for ac_last_try in false false false false false :; do
38008  . ./conf$$subs.sh ||
38009    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38010
38011  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38012  if test $ac_delim_n = $ac_delim_num; then
38013    break
38014  elif $ac_last_try; then
38015    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38016  else
38017    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38018  fi
38019done
38020rm -f conf$$subs.sh
38021
38022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38023cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38024_ACEOF
38025sed -n '
38026h
38027s/^/S["/; s/!.*/"]=/
38028p
38029g
38030s/^[^!]*!//
38031:repl
38032t repl
38033s/'"$ac_delim"'$//
38034t delim
38035:nl
38036h
38037s/\(.\{148\}\)..*/\1/
38038t more1
38039s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38040p
38041n
38042b repl
38043:more1
38044s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38045p
38046g
38047s/.\{148\}//
38048t nl
38049:delim
38050h
38051s/\(.\{148\}\)..*/\1/
38052t more2
38053s/["\\]/\\&/g; s/^/"/; s/$/"/
38054p
38055b
38056:more2
38057s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38058p
38059g
38060s/.\{148\}//
38061t delim
38062' <conf$$subs.awk | sed '
38063/^[^""]/{
38064  N
38065  s/\n//
38066}
38067' >>$CONFIG_STATUS || ac_write_fail=1
38068rm -f conf$$subs.awk
38069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38070_ACAWK
38071cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38072  for (key in S) S_is_set[key] = 1
38073  FS = ""
38074
38075}
38076{
38077  line = $ 0
38078  nfields = split(line, field, "@")
38079  substed = 0
38080  len = length(field[1])
38081  for (i = 2; i < nfields; i++) {
38082    key = field[i]
38083    keylen = length(key)
38084    if (S_is_set[key]) {
38085      value = S[key]
38086      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38087      len += length(value) + length(field[++i])
38088      substed = 1
38089    } else
38090      len += 1 + keylen
38091  }
38092
38093  print line
38094}
38095
38096_ACAWK
38097_ACEOF
38098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38099if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38100  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38101else
38102  cat
38103fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38104  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38105_ACEOF
38106
38107# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38108# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38109# trailing colons and then remove the whole line if VPATH becomes empty
38110# (actually we leave an empty line to preserve line numbers).
38111if test "x$srcdir" = x.; then
38112  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38113h
38114s///
38115s/^/:/
38116s/[	 ]*$/:/
38117s/:\$(srcdir):/:/g
38118s/:\${srcdir}:/:/g
38119s/:@srcdir@:/:/g
38120s/^:*//
38121s/:*$//
38122x
38123s/\(=[	 ]*\).*/\1/
38124G
38125s/\n//
38126s/^[^=]*=[	 ]*$//
38127}'
38128fi
38129
38130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38131fi # test -n "$CONFIG_FILES"
38132
38133# Set up the scripts for CONFIG_HEADERS section.
38134# No need to generate them if there are no CONFIG_HEADERS.
38135# This happens for instance with `./config.status Makefile'.
38136if test -n "$CONFIG_HEADERS"; then
38137cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38138BEGIN {
38139_ACEOF
38140
38141# Transform confdefs.h into an awk script `defines.awk', embedded as
38142# here-document in config.status, that substitutes the proper values into
38143# config.h.in to produce config.h.
38144
38145# Create a delimiter string that does not exist in confdefs.h, to ease
38146# handling of long lines.
38147ac_delim='%!_!# '
38148for ac_last_try in false false :; do
38149  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38150  if test -z "$ac_tt"; then
38151    break
38152  elif $ac_last_try; then
38153    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38154  else
38155    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38156  fi
38157done
38158
38159# For the awk script, D is an array of macro values keyed by name,
38160# likewise P contains macro parameters if any.  Preserve backslash
38161# newline sequences.
38162
38163ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38164sed -n '
38165s/.\{148\}/&'"$ac_delim"'/g
38166t rset
38167:rset
38168s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38169t def
38170d
38171:def
38172s/\\$//
38173t bsnl
38174s/["\\]/\\&/g
38175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38176D["\1"]=" \3"/p
38177s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38178d
38179:bsnl
38180s/["\\]/\\&/g
38181s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38182D["\1"]=" \3\\\\\\n"\\/p
38183t cont
38184s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38185t cont
38186d
38187:cont
38188n
38189s/.\{148\}/&'"$ac_delim"'/g
38190t clear
38191:clear
38192s/\\$//
38193t bsnlc
38194s/["\\]/\\&/g; s/^/"/; s/$/"/p
38195d
38196:bsnlc
38197s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38198b cont
38199' <confdefs.h | sed '
38200s/'"$ac_delim"'/"\\\
38201"/g' >>$CONFIG_STATUS || ac_write_fail=1
38202
38203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38204  for (key in D) D_is_set[key] = 1
38205  FS = ""
38206}
38207/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38208  line = \$ 0
38209  split(line, arg, " ")
38210  if (arg[1] == "#") {
38211    defundef = arg[2]
38212    mac1 = arg[3]
38213  } else {
38214    defundef = substr(arg[1], 2)
38215    mac1 = arg[2]
38216  }
38217  split(mac1, mac2, "(") #)
38218  macro = mac2[1]
38219  prefix = substr(line, 1, index(line, defundef) - 1)
38220  if (D_is_set[macro]) {
38221    # Preserve the white space surrounding the "#".
38222    print prefix "define", macro P[macro] D[macro]
38223    next
38224  } else {
38225    # Replace #undef with comments.  This is necessary, for example,
38226    # in the case of _POSIX_SOURCE, which is predefined and required
38227    # on some systems where configure will not decide to define it.
38228    if (defundef == "undef") {
38229      print "/*", prefix defundef, macro, "*/"
38230      next
38231    }
38232  }
38233}
38234{ print }
38235_ACAWK
38236_ACEOF
38237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38238  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38239fi # test -n "$CONFIG_HEADERS"
38240
38241
38242eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38243shift
38244for ac_tag
38245do
38246  case $ac_tag in
38247  :[FHLC]) ac_mode=$ac_tag; continue;;
38248  esac
38249  case $ac_mode$ac_tag in
38250  :[FHL]*:*);;
38251  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38252  :[FH]-) ac_tag=-:-;;
38253  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38254  esac
38255  ac_save_IFS=$IFS
38256  IFS=:
38257  set x $ac_tag
38258  IFS=$ac_save_IFS
38259  shift
38260  ac_file=$1
38261  shift
38262
38263  case $ac_mode in
38264  :L) ac_source=$1;;
38265  :[FH])
38266    ac_file_inputs=
38267    for ac_f
38268    do
38269      case $ac_f in
38270      -) ac_f="$ac_tmp/stdin";;
38271      *) # Look for the file first in the build tree, then in the source tree
38272	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38273	 # because $ac_f cannot contain `:'.
38274	 test -f "$ac_f" ||
38275	   case $ac_f in
38276	   [\\/$]*) false;;
38277	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38278	   esac ||
38279	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38280      esac
38281      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38282      as_fn_append ac_file_inputs " '$ac_f'"
38283    done
38284
38285    # Let's still pretend it is `configure' which instantiates (i.e., don't
38286    # use $as_me), people would be surprised to read:
38287    #    /* config.h.  Generated by config.status.  */
38288    configure_input='Generated from '`
38289	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38290	`' by configure.'
38291    if test x"$ac_file" != x-; then
38292      configure_input="$ac_file.  $configure_input"
38293      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38294$as_echo "$as_me: creating $ac_file" >&6;}
38295    fi
38296    # Neutralize special characters interpreted by sed in replacement strings.
38297    case $configure_input in #(
38298    *\&* | *\|* | *\\* )
38299       ac_sed_conf_input=`$as_echo "$configure_input" |
38300       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38301    *) ac_sed_conf_input=$configure_input;;
38302    esac
38303
38304    case $ac_tag in
38305    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38306      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38307    esac
38308    ;;
38309  esac
38310
38311  ac_dir=`$as_dirname -- "$ac_file" ||
38312$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38313	 X"$ac_file" : 'X\(//\)[^/]' \| \
38314	 X"$ac_file" : 'X\(//\)$' \| \
38315	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38316$as_echo X"$ac_file" |
38317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38318	    s//\1/
38319	    q
38320	  }
38321	  /^X\(\/\/\)[^/].*/{
38322	    s//\1/
38323	    q
38324	  }
38325	  /^X\(\/\/\)$/{
38326	    s//\1/
38327	    q
38328	  }
38329	  /^X\(\/\).*/{
38330	    s//\1/
38331	    q
38332	  }
38333	  s/.*/./; q'`
38334  as_dir="$ac_dir"; as_fn_mkdir_p
38335  ac_builddir=.
38336
38337case "$ac_dir" in
38338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38339*)
38340  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38341  # A ".." for each directory in $ac_dir_suffix.
38342  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38343  case $ac_top_builddir_sub in
38344  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38345  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38346  esac ;;
38347esac
38348ac_abs_top_builddir=$ac_pwd
38349ac_abs_builddir=$ac_pwd$ac_dir_suffix
38350# for backward compatibility:
38351ac_top_builddir=$ac_top_build_prefix
38352
38353case $srcdir in
38354  .)  # We are building in place.
38355    ac_srcdir=.
38356    ac_top_srcdir=$ac_top_builddir_sub
38357    ac_abs_top_srcdir=$ac_pwd ;;
38358  [\\/]* | ?:[\\/]* )  # Absolute name.
38359    ac_srcdir=$srcdir$ac_dir_suffix;
38360    ac_top_srcdir=$srcdir
38361    ac_abs_top_srcdir=$srcdir ;;
38362  *) # Relative name.
38363    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38364    ac_top_srcdir=$ac_top_build_prefix$srcdir
38365    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38366esac
38367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38368
38369
38370  case $ac_mode in
38371  :F)
38372  #
38373  # CONFIG_FILE
38374  #
38375
38376  case $INSTALL in
38377  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38378  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38379  esac
38380  ac_MKDIR_P=$MKDIR_P
38381  case $MKDIR_P in
38382  [\\/$]* | ?:[\\/]* ) ;;
38383  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38384  esac
38385_ACEOF
38386
38387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38388# If the template does not know about datarootdir, expand it.
38389# FIXME: This hack should be removed a few years after 2.60.
38390ac_datarootdir_hack=; ac_datarootdir_seen=
38391ac_sed_dataroot='
38392/datarootdir/ {
38393  p
38394  q
38395}
38396/@datadir@/p
38397/@docdir@/p
38398/@infodir@/p
38399/@localedir@/p
38400/@mandir@/p'
38401case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38402*datarootdir*) ac_datarootdir_seen=yes;;
38403*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38404  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38405$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38406_ACEOF
38407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38408  ac_datarootdir_hack='
38409  s&@datadir@&$datadir&g
38410  s&@docdir@&$docdir&g
38411  s&@infodir@&$infodir&g
38412  s&@localedir@&$localedir&g
38413  s&@mandir@&$mandir&g
38414  s&\\\${datarootdir}&$datarootdir&g' ;;
38415esac
38416_ACEOF
38417
38418# Neutralize VPATH when `$srcdir' = `.'.
38419# Shell code in configure.ac might set extrasub.
38420# FIXME: do we really want to maintain this feature?
38421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38422ac_sed_extra="$ac_vpsub
38423$extrasub
38424_ACEOF
38425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38426:t
38427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38428s|@configure_input@|$ac_sed_conf_input|;t t
38429s&@top_builddir@&$ac_top_builddir_sub&;t t
38430s&@top_build_prefix@&$ac_top_build_prefix&;t t
38431s&@srcdir@&$ac_srcdir&;t t
38432s&@abs_srcdir@&$ac_abs_srcdir&;t t
38433s&@top_srcdir@&$ac_top_srcdir&;t t
38434s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38435s&@builddir@&$ac_builddir&;t t
38436s&@abs_builddir@&$ac_abs_builddir&;t t
38437s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38438s&@INSTALL@&$ac_INSTALL&;t t
38439s&@MKDIR_P@&$ac_MKDIR_P&;t t
38440$ac_datarootdir_hack
38441"
38442eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38443  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38444
38445test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38446  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38447  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38448      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38449  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38450which seems to be undefined.  Please make sure it is defined" >&5
38451$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38452which seems to be undefined.  Please make sure it is defined" >&2;}
38453
38454  rm -f "$ac_tmp/stdin"
38455  case $ac_file in
38456  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38457  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38458  esac \
38459  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38460 ;;
38461  :H)
38462  #
38463  # CONFIG_HEADER
38464  #
38465  if test x"$ac_file" != x-; then
38466    {
38467      $as_echo "/* $configure_input  */" \
38468      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38469    } >"$ac_tmp/config.h" \
38470      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38471    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38472      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38473$as_echo "$as_me: $ac_file is unchanged" >&6;}
38474    else
38475      rm -f "$ac_file"
38476      mv "$ac_tmp/config.h" "$ac_file" \
38477	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38478    fi
38479  else
38480    $as_echo "/* $configure_input  */" \
38481      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38482      || as_fn_error $? "could not create -" "$LINENO" 5
38483  fi
38484# Compute "$ac_file"'s index in $config_headers.
38485_am_arg="$ac_file"
38486_am_stamp_count=1
38487for _am_header in $config_headers :; do
38488  case $_am_header in
38489    $_am_arg | $_am_arg:* )
38490      break ;;
38491    * )
38492      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38493  esac
38494done
38495echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38496$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38497	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38498	 X"$_am_arg" : 'X\(//\)$' \| \
38499	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38500$as_echo X"$_am_arg" |
38501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38502	    s//\1/
38503	    q
38504	  }
38505	  /^X\(\/\/\)[^/].*/{
38506	    s//\1/
38507	    q
38508	  }
38509	  /^X\(\/\/\)$/{
38510	    s//\1/
38511	    q
38512	  }
38513	  /^X\(\/\).*/{
38514	    s//\1/
38515	    q
38516	  }
38517	  s/.*/./; q'`/stamp-h$_am_stamp_count
38518 ;;
38519
38520  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38521$as_echo "$as_me: executing $ac_file commands" >&6;}
38522 ;;
38523  esac
38524
38525
38526  case $ac_file$ac_mode in
38527    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
38528ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38529ac_prefix_conf_PKG=`echo MagickCore`
38530ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38531ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
38532ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38533if test ".$ac_prefix_conf_INP" = "."; then
38534   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38535     case "$ac_file" in
38536        *.h) ac_prefix_conf_INP=$ac_file ;;
38537        *)
38538     esac
38539     test ".$ac_prefix_conf_INP" != "." && break
38540   done
38541fi
38542if test ".$ac_prefix_conf_INP" = "."; then
38543   case "$ac_prefix_conf_OUT" in
38544      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38545      ;;
38546      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38547      ;;
38548      *) ac_prefix_conf_INP=config.h
38549      ;;
38550   esac
38551fi
38552if test -z "$ac_prefix_conf_PKG" ; then
38553   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
38554else
38555  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38556     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38557  fi fi
38558  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38559$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38560  if test -f $ac_prefix_conf_INP ; then
38561    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38562    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38563    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38564    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38565    $as_echo "#endif/" >> conftest.prefix
38566    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38567    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38568    $as_echo "#endif/" >> conftest.prefix
38569    # now executing _script on _DEF input to create _OUT output file
38570    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
38571    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38572    echo ' ' >>$tmp/pconfig.h
38573    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38574
38575    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38576    echo ' ' >>$tmp/pconfig.h
38577    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38578    echo "#endif" >>$tmp/pconfig.h
38579    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38580      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38581$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38582    else
38583      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38584$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38585	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38586	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38587	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38588$as_echo X"$ac_prefix_conf_OUT" |
38589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38590	    s//\1/
38591	    q
38592	  }
38593	  /^X\(\/\/\)[^/].*/{
38594	    s//\1/
38595	    q
38596	  }
38597	  /^X\(\/\/\)$/{
38598	    s//\1/
38599	    q
38600	  }
38601	  /^X\(\/\).*/{
38602	    s//\1/
38603	    q
38604	  }
38605	  s/.*/./; q'`
38606      as_dir="$ac_dir"; as_fn_mkdir_p
38607      rm -f "$ac_prefix_conf_OUT"
38608      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38609    fi
38610  else
38611    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
38612  fi
38613  rm -f conftest.*
38614fi
38615 ;;
38616    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38617  # Older Autoconf quotes --file arguments for eval, but not when files
38618  # are listed without --file.  Let's play safe and only enable the eval
38619  # if we detect the quoting.
38620  # TODO: see whether this extra hack can be removed once we start
38621  # requiring Autoconf 2.70 or later.
38622  case $CONFIG_FILES in #(
38623  *\'*) :
38624    eval set x "$CONFIG_FILES" ;; #(
38625  *) :
38626    set x $CONFIG_FILES ;; #(
38627  *) :
38628     ;;
38629esac
38630  shift
38631  # Used to flag and report bootstrapping failures.
38632  am_rc=0
38633  for am_mf
38634  do
38635    # Strip MF so we end up with the name of the file.
38636    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
38637    # Check whether this is an Automake generated Makefile which includes
38638    # dependency-tracking related rules and includes.
38639    # Grep'ing the whole file directly is not great: AIX grep has a line
38640    # limit of 2048, but all sed's we know have understand at least 4000.
38641    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
38642      || continue
38643    am_dirpart=`$as_dirname -- "$am_mf" ||
38644$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38645	 X"$am_mf" : 'X\(//\)[^/]' \| \
38646	 X"$am_mf" : 'X\(//\)$' \| \
38647	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38648$as_echo X"$am_mf" |
38649    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38650	    s//\1/
38651	    q
38652	  }
38653	  /^X\(\/\/\)[^/].*/{
38654	    s//\1/
38655	    q
38656	  }
38657	  /^X\(\/\/\)$/{
38658	    s//\1/
38659	    q
38660	  }
38661	  /^X\(\/\).*/{
38662	    s//\1/
38663	    q
38664	  }
38665	  s/.*/./; q'`
38666    am_filepart=`$as_basename -- "$am_mf" ||
38667$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
38668	 X"$am_mf" : 'X\(//\)$' \| \
38669	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38670$as_echo X/"$am_mf" |
38671    sed '/^.*\/\([^/][^/]*\)\/*$/{
38672	    s//\1/
38673	    q
38674	  }
38675	  /^X\/\(\/\/\)$/{
38676	    s//\1/
38677	    q
38678	  }
38679	  /^X\/\(\/\).*/{
38680	    s//\1/
38681	    q
38682	  }
38683	  s/.*/./; q'`
38684    { echo "$as_me:$LINENO: cd "$am_dirpart" \
38685      && sed -e '/# am--include-marker/d' "$am_filepart" \
38686        | $MAKE -f - am--depfiles" >&5
38687   (cd "$am_dirpart" \
38688      && sed -e '/# am--include-marker/d' "$am_filepart" \
38689        | $MAKE -f - am--depfiles) >&5 2>&5
38690   ac_status=$?
38691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692   (exit $ac_status); } || am_rc=$?
38693  done
38694  if test $am_rc -ne 0; then
38695    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38697as_fn_error $? "Something went wrong bootstrapping makefile fragments
38698    for automatic dependency tracking.  Try re-running configure with the
38699    '--disable-dependency-tracking' option to at least be able to build
38700    the package (albeit without support for automatic dependency tracking).
38701See \`config.log' for more details" "$LINENO" 5; }
38702  fi
38703  { am_dirpart=; unset am_dirpart;}
38704  { am_filepart=; unset am_filepart;}
38705  { am_mf=; unset am_mf;}
38706  { am_rc=; unset am_rc;}
38707  rm -f conftest-deps.mk
38708}
38709 ;;
38710    "libtool":C)
38711
38712    # See if we are running on zsh, and set the options that allow our
38713    # commands through without removal of \ escapes.
38714    if test -n "${ZSH_VERSION+set}"; then
38715      setopt NO_GLOB_SUBST
38716    fi
38717
38718    cfgfile=${ofile}T
38719    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38720    $RM "$cfgfile"
38721
38722    cat <<_LT_EOF >> "$cfgfile"
38723#! $SHELL
38724# Generated automatically by $as_me ($PACKAGE) $VERSION
38725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38726# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38727
38728# Provide generalized library-building support services.
38729# Written by Gordon Matzigkeit, 1996
38730
38731# Copyright (C) 2014 Free Software Foundation, Inc.
38732# This is free software; see the source for copying conditions.  There is NO
38733# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38734
38735# GNU Libtool is free software; you can redistribute it and/or modify
38736# it under the terms of the GNU General Public License as published by
38737# the Free Software Foundation; either version 2 of of the License, or
38738# (at your option) any later version.
38739#
38740# As a special exception to the GNU General Public License, if you
38741# distribute this file as part of a program or library that is built
38742# using GNU Libtool, you may include this file under the  same
38743# distribution terms that you use for the rest of that program.
38744#
38745# GNU Libtool is distributed in the hope that it will be useful, but
38746# WITHOUT ANY WARRANTY; without even the implied warranty of
38747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38748# GNU General Public License for more details.
38749#
38750# You should have received a copy of the GNU General Public License
38751# along with this program.  If not, see <http://www.gnu.org/licenses/>.
38752
38753
38754# The names of the tagged configurations supported by this script.
38755available_tags='CXX '
38756
38757# Configured defaults for sys_lib_dlsearch_path munging.
38758: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38759
38760# ### BEGIN LIBTOOL CONFIG
38761
38762# A sed program that does not truncate output.
38763SED=$lt_SED
38764
38765# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38766Xsed="\$SED -e 1s/^X//"
38767
38768# A grep program that handles long lines.
38769GREP=$lt_GREP
38770
38771# An ERE matcher.
38772EGREP=$lt_EGREP
38773
38774# A literal string matcher.
38775FGREP=$lt_FGREP
38776
38777# Shell to use when invoking shell scripts.
38778SHELL=$lt_SHELL
38779
38780# An echo program that protects backslashes.
38781ECHO=$lt_ECHO
38782
38783# Which release of libtool.m4 was used?
38784macro_version=$macro_version
38785macro_revision=$macro_revision
38786
38787# Assembler program.
38788AS=$lt_AS
38789
38790# DLL creation program.
38791DLLTOOL=$lt_DLLTOOL
38792
38793# Object dumper program.
38794OBJDUMP=$lt_OBJDUMP
38795
38796# Whether or not to build shared libraries.
38797build_libtool_libs=$enable_shared
38798
38799# Whether or not to build static libraries.
38800build_old_libs=$enable_static
38801
38802# What type of objects to build.
38803pic_mode=$pic_mode
38804
38805# Whether or not to optimize for fast installation.
38806fast_install=$enable_fast_install
38807
38808# Shared archive member basename,for filename based shared library versioning on AIX.
38809shared_archive_member_spec=$shared_archive_member_spec
38810
38811# The PATH separator for the build system.
38812PATH_SEPARATOR=$lt_PATH_SEPARATOR
38813
38814# The host system.
38815host_alias=$host_alias
38816host=$host
38817host_os=$host_os
38818
38819# The build system.
38820build_alias=$build_alias
38821build=$build
38822build_os=$build_os
38823
38824# A BSD- or MS-compatible name lister.
38825NM=$lt_NM
38826
38827# Whether we need soft or hard links.
38828LN_S=$lt_LN_S
38829
38830# What is the maximum length of a command?
38831max_cmd_len=$max_cmd_len
38832
38833# Object file suffix (normally "o").
38834objext=$ac_objext
38835
38836# Executable file suffix (normally "").
38837exeext=$exeext
38838
38839# whether the shell understands "unset".
38840lt_unset=$lt_unset
38841
38842# turn spaces into newlines.
38843SP2NL=$lt_lt_SP2NL
38844
38845# turn newlines into spaces.
38846NL2SP=$lt_lt_NL2SP
38847
38848# convert \$build file names to \$host format.
38849to_host_file_cmd=$lt_cv_to_host_file_cmd
38850
38851# convert \$build files to toolchain format.
38852to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38853
38854# Method to check whether dependent libraries are shared objects.
38855deplibs_check_method=$lt_deplibs_check_method
38856
38857# Command to use when deplibs_check_method = "file_magic".
38858file_magic_cmd=$lt_file_magic_cmd
38859
38860# How to find potential files when deplibs_check_method = "file_magic".
38861file_magic_glob=$lt_file_magic_glob
38862
38863# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38864want_nocaseglob=$lt_want_nocaseglob
38865
38866# Command to associate shared and link libraries.
38867sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38868
38869# The archiver.
38870AR=$lt_AR
38871
38872# Flags to create an archive.
38873AR_FLAGS=$lt_AR_FLAGS
38874
38875# How to feed a file listing to the archiver.
38876archiver_list_spec=$lt_archiver_list_spec
38877
38878# A symbol stripping program.
38879STRIP=$lt_STRIP
38880
38881# Commands used to install an old-style archive.
38882RANLIB=$lt_RANLIB
38883old_postinstall_cmds=$lt_old_postinstall_cmds
38884old_postuninstall_cmds=$lt_old_postuninstall_cmds
38885
38886# Whether to use a lock for old archive extraction.
38887lock_old_archive_extraction=$lock_old_archive_extraction
38888
38889# A C compiler.
38890LTCC=$lt_CC
38891
38892# LTCC compiler flags.
38893LTCFLAGS=$lt_CFLAGS
38894
38895# Take the output of nm and produce a listing of raw symbols and C names.
38896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38897
38898# Transform the output of nm in a proper C declaration.
38899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38900
38901# Transform the output of nm into a list of symbols to manually relocate.
38902global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38903
38904# Transform the output of nm in a C name address pair.
38905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38906
38907# Transform the output of nm in a C name address pair when lib prefix is needed.
38908global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38909
38910# The name lister interface.
38911nm_interface=$lt_lt_cv_nm_interface
38912
38913# Specify filename containing input files for \$NM.
38914nm_file_list_spec=$lt_nm_file_list_spec
38915
38916# The root where to search for dependent libraries,and where our libraries should be installed.
38917lt_sysroot=$lt_sysroot
38918
38919# Command to truncate a binary pipe.
38920lt_truncate_bin=$lt_lt_cv_truncate_bin
38921
38922# The name of the directory that contains temporary libtool files.
38923objdir=$objdir
38924
38925# Used to examine libraries when file_magic_cmd begins with "file".
38926MAGIC_CMD=$MAGIC_CMD
38927
38928# Must we lock files when doing compilation?
38929need_locks=$lt_need_locks
38930
38931# Manifest tool.
38932MANIFEST_TOOL=$lt_MANIFEST_TOOL
38933
38934# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38935DSYMUTIL=$lt_DSYMUTIL
38936
38937# Tool to change global to local symbols on Mac OS X.
38938NMEDIT=$lt_NMEDIT
38939
38940# Tool to manipulate fat objects and archives on Mac OS X.
38941LIPO=$lt_LIPO
38942
38943# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38944OTOOL=$lt_OTOOL
38945
38946# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38947OTOOL64=$lt_OTOOL64
38948
38949# Old archive suffix (normally "a").
38950libext=$libext
38951
38952# Shared library suffix (normally ".so").
38953shrext_cmds=$lt_shrext_cmds
38954
38955# The commands to extract the exported symbol list from a shared archive.
38956extract_expsyms_cmds=$lt_extract_expsyms_cmds
38957
38958# Variables whose values should be saved in libtool wrapper scripts and
38959# restored at link time.
38960variables_saved_for_relink=$lt_variables_saved_for_relink
38961
38962# Do we need the "lib" prefix for modules?
38963need_lib_prefix=$need_lib_prefix
38964
38965# Do we need a version for libraries?
38966need_version=$need_version
38967
38968# Library versioning type.
38969version_type=$version_type
38970
38971# Shared library runtime path variable.
38972runpath_var=$runpath_var
38973
38974# Shared library path variable.
38975shlibpath_var=$shlibpath_var
38976
38977# Is shlibpath searched before the hard-coded library search path?
38978shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38979
38980# Format of library name prefix.
38981libname_spec=$lt_libname_spec
38982
38983# List of archive names.  First name is the real one, the rest are links.
38984# The last name is the one that the linker finds with -lNAME
38985library_names_spec=$lt_library_names_spec
38986
38987# The coded name of the library, if different from the real name.
38988soname_spec=$lt_soname_spec
38989
38990# Permission mode override for installation of shared libraries.
38991install_override_mode=$lt_install_override_mode
38992
38993# Command to use after installation of a shared archive.
38994postinstall_cmds=$lt_postinstall_cmds
38995
38996# Command to use after uninstallation of a shared archive.
38997postuninstall_cmds=$lt_postuninstall_cmds
38998
38999# Commands used to finish a libtool library installation in a directory.
39000finish_cmds=$lt_finish_cmds
39001
39002# As "finish_cmds", except a single script fragment to be evaled but
39003# not shown.
39004finish_eval=$lt_finish_eval
39005
39006# Whether we should hardcode library paths into libraries.
39007hardcode_into_libs=$hardcode_into_libs
39008
39009# Compile-time system search path for libraries.
39010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39011
39012# Detected run-time system search path for libraries.
39013sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39014
39015# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39016configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39017
39018# Whether dlopen is supported.
39019dlopen_support=$enable_dlopen
39020
39021# Whether dlopen of programs is supported.
39022dlopen_self=$enable_dlopen_self
39023
39024# Whether dlopen of statically linked programs is supported.
39025dlopen_self_static=$enable_dlopen_self_static
39026
39027# Commands to strip libraries.
39028old_striplib=$lt_old_striplib
39029striplib=$lt_striplib
39030
39031
39032# The linker used to build libraries.
39033LD=$lt_LD
39034
39035# How to create reloadable object files.
39036reload_flag=$lt_reload_flag
39037reload_cmds=$lt_reload_cmds
39038
39039# Commands used to build an old-style archive.
39040old_archive_cmds=$lt_old_archive_cmds
39041
39042# A language specific compiler.
39043CC=$lt_compiler
39044
39045# Is the compiler the GNU compiler?
39046with_gcc=$GCC
39047
39048# Compiler flag to turn off builtin functions.
39049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39050
39051# Additional compiler flags for building library objects.
39052pic_flag=$lt_lt_prog_compiler_pic
39053
39054# How to pass a linker flag through the compiler.
39055wl=$lt_lt_prog_compiler_wl
39056
39057# Compiler flag to prevent dynamic linking.
39058link_static_flag=$lt_lt_prog_compiler_static
39059
39060# Does compiler simultaneously support -c and -o options?
39061compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39062
39063# Whether or not to add -lc for building shared libraries.
39064build_libtool_need_lc=$archive_cmds_need_lc
39065
39066# Whether or not to disallow shared libs when runtime libs are static.
39067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39068
39069# Compiler flag to allow reflexive dlopens.
39070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39071
39072# Compiler flag to generate shared objects directly from archives.
39073whole_archive_flag_spec=$lt_whole_archive_flag_spec
39074
39075# Whether the compiler copes with passing no objects directly.
39076compiler_needs_object=$lt_compiler_needs_object
39077
39078# Create an old-style archive from a shared archive.
39079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39080
39081# Create a temporary old-style archive to link instead of a shared archive.
39082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39083
39084# Commands used to build a shared archive.
39085archive_cmds=$lt_archive_cmds
39086archive_expsym_cmds=$lt_archive_expsym_cmds
39087
39088# Commands used to build a loadable module if different from building
39089# a shared archive.
39090module_cmds=$lt_module_cmds
39091module_expsym_cmds=$lt_module_expsym_cmds
39092
39093# Whether we are building with GNU ld or not.
39094with_gnu_ld=$lt_with_gnu_ld
39095
39096# Flag that allows shared libraries with undefined symbols to be built.
39097allow_undefined_flag=$lt_allow_undefined_flag
39098
39099# Flag that enforces no undefined symbols.
39100no_undefined_flag=$lt_no_undefined_flag
39101
39102# Flag to hardcode \$libdir into a binary during linking.
39103# This must work even if \$libdir does not exist
39104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39105
39106# Whether we need a single "-rpath" flag with a separated argument.
39107hardcode_libdir_separator=$lt_hardcode_libdir_separator
39108
39109# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39110# DIR into the resulting binary.
39111hardcode_direct=$hardcode_direct
39112
39113# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39114# DIR into the resulting binary and the resulting library dependency is
39115# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39116# library is relocated.
39117hardcode_direct_absolute=$hardcode_direct_absolute
39118
39119# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39120# into the resulting binary.
39121hardcode_minus_L=$hardcode_minus_L
39122
39123# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39124# into the resulting binary.
39125hardcode_shlibpath_var=$hardcode_shlibpath_var
39126
39127# Set to "yes" if building a shared library automatically hardcodes DIR
39128# into the library and all subsequent libraries and executables linked
39129# against it.
39130hardcode_automatic=$hardcode_automatic
39131
39132# Set to yes if linker adds runtime paths of dependent libraries
39133# to runtime path list.
39134inherit_rpath=$inherit_rpath
39135
39136# Whether libtool must link a program against all its dependency libraries.
39137link_all_deplibs=$link_all_deplibs
39138
39139# Set to "yes" if exported symbols are required.
39140always_export_symbols=$always_export_symbols
39141
39142# The commands to list exported symbols.
39143export_symbols_cmds=$lt_export_symbols_cmds
39144
39145# Symbols that should not be listed in the preloaded symbols.
39146exclude_expsyms=$lt_exclude_expsyms
39147
39148# Symbols that must always be exported.
39149include_expsyms=$lt_include_expsyms
39150
39151# Commands necessary for linking programs (against libraries) with templates.
39152prelink_cmds=$lt_prelink_cmds
39153
39154# Commands necessary for finishing linking programs.
39155postlink_cmds=$lt_postlink_cmds
39156
39157# Specify filename containing input files.
39158file_list_spec=$lt_file_list_spec
39159
39160# How to hardcode a shared library path into an executable.
39161hardcode_action=$hardcode_action
39162
39163# The directories searched by this compiler when creating a shared library.
39164compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39165
39166# Dependencies to place before and after the objects being linked to
39167# create a shared library.
39168predep_objects=$lt_predep_objects
39169postdep_objects=$lt_postdep_objects
39170predeps=$lt_predeps
39171postdeps=$lt_postdeps
39172
39173# The library search path used internally by the compiler when linking
39174# a shared library.
39175compiler_lib_search_path=$lt_compiler_lib_search_path
39176
39177# ### END LIBTOOL CONFIG
39178
39179_LT_EOF
39180
39181    cat <<'_LT_EOF' >> "$cfgfile"
39182
39183# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
39184
39185# func_munge_path_list VARIABLE PATH
39186# -----------------------------------
39187# VARIABLE is name of variable containing _space_ separated list of
39188# directories to be munged by the contents of PATH, which is string
39189# having a format:
39190# "DIR[:DIR]:"
39191#       string "DIR[ DIR]" will be prepended to VARIABLE
39192# ":DIR[:DIR]"
39193#       string "DIR[ DIR]" will be appended to VARIABLE
39194# "DIRP[:DIRP]::[DIRA:]DIRA"
39195#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39196#       "DIRA[ DIRA]" will be appended to VARIABLE
39197# "DIR[:DIR]"
39198#       VARIABLE will be replaced by "DIR[ DIR]"
39199func_munge_path_list ()
39200{
39201    case x$2 in
39202    x)
39203        ;;
39204    *:)
39205        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39206        ;;
39207    x:*)
39208        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39209        ;;
39210    *::*)
39211        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39212        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39213        ;;
39214    *)
39215        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39216        ;;
39217    esac
39218}
39219
39220
39221# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
39222func_cc_basename ()
39223{
39224    for cc_temp in $*""; do
39225      case $cc_temp in
39226        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39227        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39228        \-*) ;;
39229        *) break;;
39230      esac
39231    done
39232    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39233}
39234
39235
39236# ### END FUNCTIONS SHARED WITH CONFIGURE
39237
39238_LT_EOF
39239
39240  case $host_os in
39241  aix3*)
39242    cat <<\_LT_EOF >> "$cfgfile"
39243# AIX sometimes has problems with the GCC collect2 program.  For some
39244# reason, if we set the COLLECT_NAMES environment variable, the problems
39245# vanish in a puff of smoke.
39246if test set != "${COLLECT_NAMES+set}"; then
39247  COLLECT_NAMES=
39248  export COLLECT_NAMES
39249fi
39250_LT_EOF
39251    ;;
39252  esac
39253
39254
39255ltmain=$ac_aux_dir/ltmain.sh
39256
39257
39258  # We use sed instead of cat because bash on DJGPP gets confused if
39259  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39260  # text mode, it properly converts lines to CR/LF.  This bash problem
39261  # is reportedly fixed, but why not run on old versions too?
39262  sed '$q' "$ltmain" >> "$cfgfile" \
39263     || (rm -f "$cfgfile"; exit 1)
39264
39265   mv -f "$cfgfile" "$ofile" ||
39266    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39267  chmod +x "$ofile"
39268
39269
39270    cat <<_LT_EOF >> "$ofile"
39271
39272# ### BEGIN LIBTOOL TAG CONFIG: CXX
39273
39274# The linker used to build libraries.
39275LD=$lt_LD_CXX
39276
39277# How to create reloadable object files.
39278reload_flag=$lt_reload_flag_CXX
39279reload_cmds=$lt_reload_cmds_CXX
39280
39281# Commands used to build an old-style archive.
39282old_archive_cmds=$lt_old_archive_cmds_CXX
39283
39284# A language specific compiler.
39285CC=$lt_compiler_CXX
39286
39287# Is the compiler the GNU compiler?
39288with_gcc=$GCC_CXX
39289
39290# Compiler flag to turn off builtin functions.
39291no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39292
39293# Additional compiler flags for building library objects.
39294pic_flag=$lt_lt_prog_compiler_pic_CXX
39295
39296# How to pass a linker flag through the compiler.
39297wl=$lt_lt_prog_compiler_wl_CXX
39298
39299# Compiler flag to prevent dynamic linking.
39300link_static_flag=$lt_lt_prog_compiler_static_CXX
39301
39302# Does compiler simultaneously support -c and -o options?
39303compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39304
39305# Whether or not to add -lc for building shared libraries.
39306build_libtool_need_lc=$archive_cmds_need_lc_CXX
39307
39308# Whether or not to disallow shared libs when runtime libs are static.
39309allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39310
39311# Compiler flag to allow reflexive dlopens.
39312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39313
39314# Compiler flag to generate shared objects directly from archives.
39315whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39316
39317# Whether the compiler copes with passing no objects directly.
39318compiler_needs_object=$lt_compiler_needs_object_CXX
39319
39320# Create an old-style archive from a shared archive.
39321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39322
39323# Create a temporary old-style archive to link instead of a shared archive.
39324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39325
39326# Commands used to build a shared archive.
39327archive_cmds=$lt_archive_cmds_CXX
39328archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39329
39330# Commands used to build a loadable module if different from building
39331# a shared archive.
39332module_cmds=$lt_module_cmds_CXX
39333module_expsym_cmds=$lt_module_expsym_cmds_CXX
39334
39335# Whether we are building with GNU ld or not.
39336with_gnu_ld=$lt_with_gnu_ld_CXX
39337
39338# Flag that allows shared libraries with undefined symbols to be built.
39339allow_undefined_flag=$lt_allow_undefined_flag_CXX
39340
39341# Flag that enforces no undefined symbols.
39342no_undefined_flag=$lt_no_undefined_flag_CXX
39343
39344# Flag to hardcode \$libdir into a binary during linking.
39345# This must work even if \$libdir does not exist
39346hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39347
39348# Whether we need a single "-rpath" flag with a separated argument.
39349hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39350
39351# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39352# DIR into the resulting binary.
39353hardcode_direct=$hardcode_direct_CXX
39354
39355# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39356# DIR into the resulting binary and the resulting library dependency is
39357# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39358# library is relocated.
39359hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39360
39361# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39362# into the resulting binary.
39363hardcode_minus_L=$hardcode_minus_L_CXX
39364
39365# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39366# into the resulting binary.
39367hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39368
39369# Set to "yes" if building a shared library automatically hardcodes DIR
39370# into the library and all subsequent libraries and executables linked
39371# against it.
39372hardcode_automatic=$hardcode_automatic_CXX
39373
39374# Set to yes if linker adds runtime paths of dependent libraries
39375# to runtime path list.
39376inherit_rpath=$inherit_rpath_CXX
39377
39378# Whether libtool must link a program against all its dependency libraries.
39379link_all_deplibs=$link_all_deplibs_CXX
39380
39381# Set to "yes" if exported symbols are required.
39382always_export_symbols=$always_export_symbols_CXX
39383
39384# The commands to list exported symbols.
39385export_symbols_cmds=$lt_export_symbols_cmds_CXX
39386
39387# Symbols that should not be listed in the preloaded symbols.
39388exclude_expsyms=$lt_exclude_expsyms_CXX
39389
39390# Symbols that must always be exported.
39391include_expsyms=$lt_include_expsyms_CXX
39392
39393# Commands necessary for linking programs (against libraries) with templates.
39394prelink_cmds=$lt_prelink_cmds_CXX
39395
39396# Commands necessary for finishing linking programs.
39397postlink_cmds=$lt_postlink_cmds_CXX
39398
39399# Specify filename containing input files.
39400file_list_spec=$lt_file_list_spec_CXX
39401
39402# How to hardcode a shared library path into an executable.
39403hardcode_action=$hardcode_action_CXX
39404
39405# The directories searched by this compiler when creating a shared library.
39406compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39407
39408# Dependencies to place before and after the objects being linked to
39409# create a shared library.
39410predep_objects=$lt_predep_objects_CXX
39411postdep_objects=$lt_postdep_objects_CXX
39412predeps=$lt_predeps_CXX
39413postdeps=$lt_postdeps_CXX
39414
39415# The library search path used internally by the compiler when linking
39416# a shared library.
39417compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39418
39419# ### END LIBTOOL TAG CONFIG: CXX
39420_LT_EOF
39421
39422 ;;
39423    "magick.sh.in":C) chmod +x magick.sh ;;
39424    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
39425    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
39426    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39427    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39428
39429  esac
39430done # for ac_tag
39431
39432
39433as_fn_exit 0
39434_ACEOF
39435ac_clean_files=$ac_clean_files_save
39436
39437test $ac_write_fail = 0 ||
39438  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39439
39440
39441# configure is writing to config.log, and then calls config.status.
39442# config.status does its own redirection, appending to config.log.
39443# Unfortunately, on DOS this fails, as config.log is still kept open
39444# by configure, so config.status won't be able to write to it; its
39445# output is simply discarded.  So we exec the FD to /dev/null,
39446# effectively closing config.log, so it can be properly (re)opened and
39447# appended to by config.status.  When coming back to configure, we
39448# need to make the FD available again.
39449if test "$no_create" != yes; then
39450  ac_cs_success=:
39451  ac_config_status_args=
39452  test "$silent" = yes &&
39453    ac_config_status_args="$ac_config_status_args --quiet"
39454  exec 5>/dev/null
39455  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39456  exec 5>>config.log
39457  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39458  # would make configure fail if this is the last instruction.
39459  $ac_cs_success || as_fn_exit 1
39460fi
39461if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39462  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39463$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39464fi
39465
39466
39467# ==============================================================================
39468# ImageMagick Configuration
39469# ==============================================================================
39470{ $as_echo "$as_me:${as_lineno-$LINENO}:
39471==============================================================================
39472${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM} is configured as follows. Please verify that this
39473configuration matches your expectations.
39474
39475Host system type: $host
39476Build system type: $build
39477
39478               Option                        Value
39479------------------------------------------------------------------------------
39480Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39481Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39482Build utilities   --with-utilities=$with_utilities		$with_utilities
39483Module support    --with-modules=$build_modules		$build_modules
39484GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39485Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39486High Dynamic Range Imagery
39487                  --enable-hdri=$enable_hdri		$enable_hdri
39488
39489Install documentation:				$wantdocs
39490
39491Memory allocation library:
39492  JEMalloc          --with-jemalloc=$with_jemalloc		$have_jemalloc
39493  TCMalloc          --with-tcmalloc=$with_tcmalloc		$have_tcmalloc
39494  UMem              --with-umem=$with_umem		$have_umem
39495
39496Delegate library configuration:
39497  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39498  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39499  DJVU              --with-djvu=$with_djvu		$have_djvu
39500  DPS               --with-dps=$with_dps		$have_dps
39501  FFTW              --with-fftw=$with_fftw		$have_fftw
39502  FLIF              --with-flif=$with_flif		$have_flif
39503  FlashPIX          --with-fpx=$with_fpx		$have_fpx
39504  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
39505  FreeType          --with-freetype=$with_freetype		$have_freetype
39506  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39507  Graphviz          --with-gvc=$with_gvc		$have_gvc
39508  HEIC              --with-heic=$with_heic             $have_heic
39509  JBIG              --with-jbig=$with_jbig		$have_jbig
39510  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39511  JPEG XL           --with-jxl=$with_jxl    $have_jxl
39512  LCMS              --with-lcms=$with_lcms		$have_lcms
39513  LQR               --with-lqr=$with_lqr		$have_lqr
39514  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39515  LZMA              --with-lzma=$with_lzma		$have_lzma
39516  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39517  OpenEXR           --with-openexr=$with_openexr		$have_openexr
39518  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
39519  PANGO             --with-pango=$with_pango		$have_pango
39520  PERL              --with-perl=$with_perl		$have_perl
39521  PNG               --with-png=$with_png		$have_png
39522  RAQM              --with-raqm=$with_raqm		$have_raqm
39523  RAW               --with-raw=$with_raw 	   	$have_raw
39524  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39525  TIFF              --with-tiff=$with_tiff		$have_tiff
39526  WEBP              --with-webp=$with_webp		$have_webp
39527  WMF               --with-wmf=$with_wmf		$have_wmf
39528  X11               --with-x=$with_x			$have_x
39529  XML               --with-xml=$with_xml		$have_xml
39530  ZLIB              --with-zlib=$with_zlib		$have_zlib
39531  ZSTD              --with-zstd=$with_zstd		$have_zstd
39532
39533Delegate program configuration:
39534  GhostPCL          None			$PCLDelegate ($PCLVersion)
39535  GhostXPS          None			$XPSDelegate ($XPSVersion)
39536  Ghostscript       None			$PSDelegate ($GSVersion)
39537
39538Font configuration:
39539  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
39540  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39541  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir		$result_ghostscript_font_dir
39542  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir	$result_urw_base35_font_dir
39543  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39544
39545X11 configuration:
39546  X_CFLAGS        = $X_CFLAGS
39547  X_PRE_LIBS      = $X_PRE_LIBS
39548  X_LIBS          = $X_LIBS
39549  X_EXTRA_LIBS    = $X_EXTRA_LIBS
39550
39551Options used to compile and link:
39552  PREFIX          = $PREFIX_DIR
39553  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39554  VERSION         = $PACKAGE_VERSION
39555  CC              = $CC
39556  CFLAGS          = $CFLAGS
39557  CPPFLAGS        = $CPPFLAGS
39558  PCFLAGS         = $PCFLAGS
39559  DEFS            = $DEFS
39560  LDFLAGS         = $LDFLAGS
39561  LIBS            = $MAGICK_DEP_LIBS
39562  CXX             = $CXX
39563  CXXFLAGS        = $CXXFLAGS
39564  FEATURES        = $MAGICK_FEATURES
39565  DELEGATES       = $MAGICK_DELEGATES
39566==============================================================================
39567" >&5
39568$as_echo "$as_me:
39569==============================================================================
39570${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM} is configured as follows. Please verify that this
39571configuration matches your expectations.
39572
39573Host system type: $host
39574Build system type: $build
39575
39576               Option                        Value
39577------------------------------------------------------------------------------
39578Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39579Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39580Build utilities   --with-utilities=$with_utilities		$with_utilities
39581Module support    --with-modules=$build_modules		$build_modules
39582GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39583Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39584High Dynamic Range Imagery
39585                  --enable-hdri=$enable_hdri		$enable_hdri
39586
39587Install documentation:				$wantdocs
39588
39589Memory allocation library:
39590  JEMalloc          --with-jemalloc=$with_jemalloc		$have_jemalloc
39591  TCMalloc          --with-tcmalloc=$with_tcmalloc		$have_tcmalloc
39592  UMem              --with-umem=$with_umem		$have_umem
39593
39594Delegate library configuration:
39595  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39596  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39597  DJVU              --with-djvu=$with_djvu		$have_djvu
39598  DPS               --with-dps=$with_dps		$have_dps
39599  FFTW              --with-fftw=$with_fftw		$have_fftw
39600  FLIF              --with-flif=$with_flif		$have_flif
39601  FlashPIX          --with-fpx=$with_fpx		$have_fpx
39602  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
39603  FreeType          --with-freetype=$with_freetype		$have_freetype
39604  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39605  Graphviz          --with-gvc=$with_gvc		$have_gvc
39606  HEIC              --with-heic=$with_heic             $have_heic
39607  JBIG              --with-jbig=$with_jbig		$have_jbig
39608  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39609  JPEG XL           --with-jxl=$with_jxl    $have_jxl
39610  LCMS              --with-lcms=$with_lcms		$have_lcms
39611  LQR               --with-lqr=$with_lqr		$have_lqr
39612  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39613  LZMA              --with-lzma=$with_lzma		$have_lzma
39614  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39615  OpenEXR           --with-openexr=$with_openexr		$have_openexr
39616  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
39617  PANGO             --with-pango=$with_pango		$have_pango
39618  PERL              --with-perl=$with_perl		$have_perl
39619  PNG               --with-png=$with_png		$have_png
39620  RAQM              --with-raqm=$with_raqm		$have_raqm
39621  RAW               --with-raw=$with_raw 	   	$have_raw
39622  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39623  TIFF              --with-tiff=$with_tiff		$have_tiff
39624  WEBP              --with-webp=$with_webp		$have_webp
39625  WMF               --with-wmf=$with_wmf		$have_wmf
39626  X11               --with-x=$with_x			$have_x
39627  XML               --with-xml=$with_xml		$have_xml
39628  ZLIB              --with-zlib=$with_zlib		$have_zlib
39629  ZSTD              --with-zstd=$with_zstd		$have_zstd
39630
39631Delegate program configuration:
39632  GhostPCL          None			$PCLDelegate ($PCLVersion)
39633  GhostXPS          None			$XPSDelegate ($XPSVersion)
39634  Ghostscript       None			$PSDelegate ($GSVersion)
39635
39636Font configuration:
39637  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
39638  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39639  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir		$result_ghostscript_font_dir
39640  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir	$result_urw_base35_font_dir
39641  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39642
39643X11 configuration:
39644  X_CFLAGS        = $X_CFLAGS
39645  X_PRE_LIBS      = $X_PRE_LIBS
39646  X_LIBS          = $X_LIBS
39647  X_EXTRA_LIBS    = $X_EXTRA_LIBS
39648
39649Options used to compile and link:
39650  PREFIX          = $PREFIX_DIR
39651  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39652  VERSION         = $PACKAGE_VERSION
39653  CC              = $CC
39654  CFLAGS          = $CFLAGS
39655  CPPFLAGS        = $CPPFLAGS
39656  PCFLAGS         = $PCFLAGS
39657  DEFS            = $DEFS
39658  LDFLAGS         = $LDFLAGS
39659  LIBS            = $MAGICK_DEP_LIBS
39660  CXX             = $CXX
39661  CXXFLAGS        = $CXXFLAGS
39662  FEATURES        = $MAGICK_FEATURES
39663  DELEGATES       = $MAGICK_DELEGATES
39664==============================================================================
39665" >&6;}
39666