configure revision 30841e6deb8306e8b6103121209a9f7fd76161f5
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
4#
5# Report bugs to <http://www.imagemagick.org>.
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: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
595PACKAGE_BUGREPORT='http://www.imagemagick.org'
596PACKAGE_URL=''
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_DEP_LIBS
646OSX_GCOV_LDFLAG
647MAGICK_FEATURES
648MAGICK_DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
676ZIP
677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
679P7ZIP
680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
689dejavu_font_dir
690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
695WebPEncodeDelegate
696WebPDecodeDelegate
697UniconvertorDelegate
698TXTDelegate
699SVGDecodeDelegate
700SCANDecodeDelegate
701RSVGDecodeDelegate
702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
709MrSIDDecodeDelegate
710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MogrifyDelegate
713MANDelegate
714LaunchDelegate
715LPRDelegate
716LPDelegate
717JXREncodeDelegate
718JXRDecodeDelegate
719ILBMEncodeDelegate
720ILBMDecodeDelegate
721HTMLDecodeDelegate
722HPGLDecodeDelegate
723GVCDecodeDelegate
724GnuplotDecodeDelegate
725EditorDelegate
726EchoDelegate
727DisplayDelegate
728ConvertDelegate
729DVIDecodeDelegate
730DOCDecodeDelegate
731DNGDecodeDelegate
732CatDelegate
733BrowseDelegate
734BZIPDelegate
735BlenderDecodeDelegate
736AutotraceDecodeDelegate
737SHAREARCH_PATH
738SHAREARCH_RELATIVE_PATH
739SHAREARCH_DIRNAME
740SHAREARCH_BASEDIRNAME
741SHARE_PATH
742CONFIGURE_PATH
743INSTALL_DOC_FALSE
744INSTALL_DOC_TRUE
745DOCUMENTATION_PATH
746FILTER_PATH
747FILTER_DIRNAME
748CODER_PATH
749CODER_DIRNAME
750MODULES_PATH
751MODULES_RELATIVE_PATH
752MODULES_DIRNAME
753MODULES_BASEDIRNAME
754LIB_BIN_DIR_PATH
755LIB_BIN_DIR_RELATIVE_PATH
756LIB_BIN_DIR
757LIB_BIN_BASEDIRNAME
758LIBRARY_PATH
759EXECUTABLE_PATH
760INCLUDEARCH_PATH
761INCLUDE_PATH
762PERLMAINCC
763XML_LIBS
764XML_DELEGATE_FALSE
765XML_DELEGATE_TRUE
766xml2_config
767WMF_LIBS_DEPS
768WMF_LIBS
769WMF_DELEGATE_FALSE
770WMF_DELEGATE_TRUE
771WEBP_LIBS
772WEBP_DELEGATE_FALSE
773WEBP_DELEGATE_TRUE
774TIFF_LIBS
775TIFF_DELEGATE_FALSE
776TIFF_DELEGATE_TRUE
777CAIRO_DELEGATE_FALSE
778CAIRO_DELEGATE_TRUE
779RSVG_DELEGATE_FALSE
780RSVG_DELEGATE_TRUE
781CAIRO_SVG_LIBS
782CAIRO_SVG_CFLAGS
783RSVG_LIBS
784RSVG_CFLAGS
785PNG_LIBS
786PNG_DELEGATE_FALSE
787PNG_DELEGATE_TRUE
788PANGOCAIRO_DELEGATE_FALSE
789PANGOCAIRO_DELEGATE_TRUE
790PANGO_DELEGATE_FALSE
791PANGO_DELEGATE_TRUE
792PANGO_LIBS
793PANGO_CFLAGS
794OPENEXR_DELEGATE_FALSE
795OPENEXR_DELEGATE_TRUE
796OPENEXR_LIBS
797OPENEXR_CFLAGS
798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
800LZMA_LIBS
801LZMA_CFLAGS
802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
804LQR_LIBS
805LQR_CFLAGS
806LIBOPENJP2_DELEGATE_FALSE
807LIBOPENJP2_DELEGATE_TRUE
808LIBOPENJP2_LIBS
809LIBOPENJP2_CFLAGS
810LCMS_LIBS
811LCMS_DELEGATE_FALSE
812LCMS_DELEGATE_TRUE
813JPEG_LIBS
814JPEG_DELEGATE_FALSE
815JPEG_DELEGATE_TRUE
816JBIG_LIBS
817JBIG_DELEGATE_FALSE
818JBIG_DELEGATE_TRUE
819GVC_DELEGATE_FALSE
820GVC_DELEGATE_TRUE
821GVC_LIBS
822GVC_CFLAGS
823GS_LIBS
824GS_DELEGATE_FALSE
825GS_DELEGATE_TRUE
826FREETYPE_DELEGATE_FALSE
827FREETYPE_DELEGATE_TRUE
828FREETYPE_LIBS
829FREETYPE_CFLAGS
830FONTCONFIG_DELEGATE_FALSE
831FONTCONFIG_DELEGATE_TRUE
832FONTCONFIG_LIBS
833FONTCONFIG_CFLAGS
834FPX_LIBS
835FPX_DELEGATE_FALSE
836FPX_DELEGATE_TRUE
837FFTW_LIBS
838FFTW_DELEGATE_FALSE
839FFTW_DELEGATE_TRUE
840DJVU_LIBS
841DJVU_DELEGATE_FALSE
842DJVU_DELEGATE_TRUE
843DPS_LIBS
844DPS_DELEGATE_FALSE
845DPS_DELEGATE_TRUE
846AUTOTRACE_DELEGATE_FALSE
847AUTOTRACE_DELEGATE_TRUE
848AUTOTRACE_LIBS
849AUTOTRACE_CFLAGS
850LIB_DL
851WITH_LTDL_FALSE
852WITH_LTDL_TRUE
853ZLIB_LIBS
854ZLIB_DELEGATE_FALSE
855ZLIB_DELEGATE_TRUE
856XEXT_LIBS
857X11_LIBS
858X11_DELEGATE_FALSE
859X11_DELEGATE_TRUE
860X_EXTRA_LIBS
861X_LIBS
862X_PRE_LIBS
863X_CFLAGS
864XMKMF
865BZLIB_LIBS
866BZLIB_DELEGATE_FALSE
867BZLIB_DELEGATE_TRUE
868CCMALLOCDelegate
869UMEM_LIBS
870HasUMEM_FALSE
871HasUMEM_TRUE
872GOMP_LIBS
873WITH_MAGICK_PLUS_PLUS_FALSE
874WITH_MAGICK_PLUS_PLUS_TRUE
875OPENMP_CXXFLAGS
876MATH_LIBS
877POW_LIB
878LIBOBJS
879UINTPTR_F
880UINTPTR_T
881UINTMAX_F
882UINTMAX_T
883UINT64_F
884UINT64_T
885INT64_F
886INT64_T
887UINT32_F
888UINT32_T
889INT32_F
890INT32_T
891UINT16_T
892INT16_T
893UINT8_T
894INT8_T
895LIBRARY_EXTRA_CPPFLAGS
896MODULE_EXTRA_CPPFLAGS
897LIBSTDCLDFLAGS
898PERL_MAKE_OPTIONS
899MAGICK_LT_RELEASE_OPTS
900MAGICK_ABI_SUFFIX
901QUANTUM_DEPTH
902LEGACY_SUPPORT_FALSE
903LEGACY_SUPPORT_TRUE
904MAINT
905MAINTAINER_MODE_FALSE
906MAINTAINER_MODE_TRUE
907MAGICK_HDRI
908WITH_MODULES_FALSE
909WITH_MODULES_TRUE
910WITH_SHARED_LIBS_FALSE
911WITH_SHARED_LIBS_TRUE
912LIBTOOL_DEPS
913CXXCPP
914OTOOL64
915OTOOL
916LIPO
917NMEDIT
918DSYMUTIL
919MANIFEST_TOOL
920RANLIB
921ac_ct_AR
922AR
923NM
924ac_ct_DUMPBIN
925DUMPBIN
926LIBTOOL
927OBJDUMP
928DLLTOOL
929AS
930LFS_CPPFLAGS
931CL_LIBS
932CL_CFLAGS
933OPENMP_CFLAGS
934THREAD_LIBS
935PTHREAD_CFLAGS
936PTHREAD_LIBS
937PTHREAD_CC
938ax_pthread_config
939pkgconfigdir
940SHAREARCH_DIR
941INCLUDEARCH_DIR
942WinPathScript
943USING_CL_FALSE
944USING_CL_TRUE
945CYGWIN_BUILD_FALSE
946CYGWIN_BUILD_TRUE
947WIN32_NATIVE_BUILD_FALSE
948WIN32_NATIVE_BUILD_TRUE
949WINGDI32_DELEGATE_FALSE
950WINGDI32_DELEGATE_TRUE
951GDI32_LIBS
952HAVE_LD_VERSION_SCRIPT_FALSE
953HAVE_LD_VERSION_SCRIPT_TRUE
954PKG_CONFIG
955PRTDIAG
956LN_S
957LD
958FGREP
959SED
960am__fastdepCXX_FALSE
961am__fastdepCXX_TRUE
962CXXDEPMODE
963ac_ct_CXX
964CXXFLAGS
965CXX
966EGREP
967GREP
968CPP
969am__fastdepCC_FALSE
970am__fastdepCC_TRUE
971CCDEPMODE
972am__nodep
973AMDEPBACKSLASH
974AMDEP_FALSE
975AMDEP_TRUE
976am__quote
977am__include
978DEPDIR
979OBJEXT
980EXEEXT
981ac_ct_CC
982CPPFLAGS
983LDFLAGS
984CFLAGS
985CC
986DIRSEP
987MAGICK_FILTER_MODULE_PATH
988MAGICK_CONFIGURE_BUILD_PATH
989MAGICK_CONFIGURE_SRC_PATH
990MAGICK_CODER_MODULE_PATH
991MAN_DIR
992INFO_DIR
993PERSISTINCLUDE_DIR
994INCLUDE_DIR
995LIB_DIR
996LOCALSTATE_DIR
997SHAREDSTATE_DIR
998SYSCONF_DIR
999DOC_DIR
1000DATA_DIR
1001LIBEXEC_DIR
1002SBIN_DIR
1003BIN_DIR
1004EXEC_PREFIX_DIR
1005PREFIX_DIR
1006CONFIG_STATUS_DEPENDENCIES
1007MAGICKPP_LIB_VERSION_TEXT
1008MAGICKPP_LIB_VERSION
1009MAGICK_LIB_VERSION_NUMBER
1010MAGICK_LIB_VERSION_TEXT
1011MAGICK_LIB_VERSION
1012AM_BACKSLASH
1013AM_DEFAULT_VERBOSITY
1014AM_DEFAULT_V
1015AM_V
1016am__untar
1017am__tar
1018AMTAR
1019am__leading_dot
1020SET_MAKE
1021AWK
1022mkdir_p
1023MKDIR_P
1024INSTALL_STRIP_PROGRAM
1025STRIP
1026install_sh
1027MAKEINFO
1028AUTOHEADER
1029AUTOMAKE
1030AUTOCONF
1031ACLOCAL
1032VERSION
1033PACKAGE
1034CYGPATH_W
1035am__isrc
1036INSTALL_DATA
1037INSTALL_SCRIPT
1038INSTALL_PROGRAM
1039PACKAGE_VERSION_ADDENDUM
1040PACKAGE_RELEASE_DATE
1041PACKAGE_LIB_VERSION_NUMBER
1042PACKAGE_LIB_VERSION
1043PACKAGE_CHANGE_DATE
1044PACKAGE_RELEASE
1045PACKAGE_PERL_VERSION
1046MAGICKPP_LIBRARY_VERSION_INFO
1047MAGICKPP_LIBRARY_CURRENT_MIN
1048MAGICKPP_LIBRARY_AGE
1049MAGICKPP_LIBRARY_REVISION
1050MAGICKPP_LIBRARY_CURRENT
1051MAGICK_LIBRARY_VERSION_INFO
1052MAGICK_LIBRARY_CURRENT_MIN
1053MAGICK_LIBRARY_AGE
1054MAGICK_LIBRARY_REVISION
1055MAGICK_LIBRARY_CURRENT
1056MAGICK_SVN_REVISION
1057MAGICK_VERSION
1058MAGICK_PATCHLEVEL_VERSION
1059MAGICK_MICRO_VERSION
1060MAGICK_MINOR_VERSION
1061MAGICK_MAJOR_VERSION
1062MAGICK_TARGET_OS
1063MAGICK_TARGET_VENDOR
1064MAGICK_TARGET_CPU
1065target_os
1066target_vendor
1067target_cpu
1068target
1069host_os
1070host_vendor
1071host_cpu
1072host
1073build_os
1074build_vendor
1075build_cpu
1076build
1077CONFIGURE_ARGS
1078DISTCHECK_CONFIG_FLAGS
1079target_alias
1080host_alias
1081build_alias
1082LIBS
1083ECHO_T
1084ECHO_N
1085ECHO_C
1086DEFS
1087mandir
1088localedir
1089libdir
1090psdir
1091pdfdir
1092dvidir
1093htmldir
1094infodir
1095docdir
1096oldincludedir
1097includedir
1098localstatedir
1099sharedstatedir
1100sysconfdir
1101datadir
1102datarootdir
1103libexecdir
1104sbindir
1105bindir
1106program_transform_name
1107prefix
1108exec_prefix
1109PACKAGE_URL
1110PACKAGE_BUGREPORT
1111PACKAGE_STRING
1112PACKAGE_VERSION
1113PACKAGE_TARNAME
1114PACKAGE_NAME
1115PATH_SEPARATOR
1116SHELL'
1117ac_subst_files=''
1118ac_user_opts='
1119enable_option_checking
1120enable_silent_rules
1121enable_dependency_tracking
1122with_gnu_ld
1123with_dmalloc
1124with_gcc_arch
1125enable_ld_version_script
1126enable_bounds_checking
1127enable_osx_universal_binary
1128with_includearch_dir
1129with_sharearch_dir
1130with_pkgconfigdir
1131with_threads
1132enable_openmp
1133enable_opencl
1134enable_largefile
1135enable_shared
1136enable_static
1137with_pic
1138enable_fast_install
1139with_sysroot
1140enable_libtool_lock
1141with_modules
1142enable_delegate_build
1143enable_deprecated
1144enable_installed
1145enable_cipher
1146enable_zero_configuration
1147enable_hdri
1148enable_assert
1149enable_maintainer_mode
1150enable_hugepages
1151enable_ccmalloc
1152enable_efence
1153enable_prof
1154enable_gprof
1155enable_gcov
1156with_method_prefix
1157enable_legacy_support
1158with_quantum_depth
1159with_cache
1160with_frozenpaths
1161with_magick_plus_plus
1162with_package_release_name
1163with_perl
1164with_perl_options
1165with_umem
1166with_libstdc
1167with_bzlib
1168with_x
1169with_zlib
1170with_autotrace
1171with_dps
1172with_djvu
1173with_dejavu_font_dir
1174with_fftw
1175with_fpx
1176with_fontconfig
1177with_freetype
1178with_gslib
1179with_fontpath
1180with_gs_font_dir
1181with_gvc
1182with_jbig
1183with_jpeg
1184with_lcms
1185with_lcms2
1186with_openjp2
1187with_lqr
1188with_lzma
1189with_openexr
1190with_pango
1191with_png
1192with_rsvg
1193with_tiff
1194with_webp
1195with_windows_font_dir
1196with_wmf
1197with_xml
1198enable_docs
1199'
1200      ac_precious_vars='build_alias
1201host_alias
1202target_alias
1203CC
1204CFLAGS
1205LDFLAGS
1206LIBS
1207CPPFLAGS
1208CPP
1209CXX
1210CXXFLAGS
1211CCC
1212PKG_CONFIG
1213CXXCPP
1214XMKMF
1215AUTOTRACE_CFLAGS
1216AUTOTRACE_LIBS
1217FONTCONFIG_CFLAGS
1218FONTCONFIG_LIBS
1219FREETYPE_CFLAGS
1220FREETYPE_LIBS
1221GVC_CFLAGS
1222GVC_LIBS
1223LIBOPENJP2_CFLAGS
1224LIBOPENJP2_LIBS
1225LQR_CFLAGS
1226LQR_LIBS
1227LZMA_CFLAGS
1228LZMA_LIBS
1229OPENEXR_CFLAGS
1230OPENEXR_LIBS
1231PANGO_CFLAGS
1232PANGO_LIBS
1233RSVG_CFLAGS
1234RSVG_LIBS
1235CAIRO_SVG_CFLAGS
1236CAIRO_SVG_LIBS'
1237
1238
1239# Initialize some variables set by options.
1240ac_init_help=
1241ac_init_version=false
1242ac_unrecognized_opts=
1243ac_unrecognized_sep=
1244# The variables have the same names as the options, with
1245# dashes changed to underlines.
1246cache_file=/dev/null
1247exec_prefix=NONE
1248no_create=
1249no_recursion=
1250prefix=NONE
1251program_prefix=NONE
1252program_suffix=NONE
1253program_transform_name=s,x,x,
1254silent=
1255site=
1256srcdir=
1257verbose=
1258x_includes=NONE
1259x_libraries=NONE
1260
1261# Installation directory options.
1262# These are left unexpanded so users can "make install exec_prefix=/foo"
1263# and all the variables that are supposed to be based on exec_prefix
1264# by default will actually change.
1265# Use braces instead of parens because sh, perl, etc. also accept them.
1266# (The list follows the same order as the GNU Coding Standards.)
1267bindir='${exec_prefix}/bin'
1268sbindir='${exec_prefix}/sbin'
1269libexecdir='${exec_prefix}/libexec'
1270datarootdir='${prefix}/share'
1271datadir='${datarootdir}'
1272sysconfdir='${prefix}/etc'
1273sharedstatedir='${prefix}/com'
1274localstatedir='${prefix}/var'
1275includedir='${prefix}/include'
1276oldincludedir='/usr/include'
1277docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1278infodir='${datarootdir}/info'
1279htmldir='${docdir}'
1280dvidir='${docdir}'
1281pdfdir='${docdir}'
1282psdir='${docdir}'
1283libdir='${exec_prefix}/lib'
1284localedir='${datarootdir}/locale'
1285mandir='${datarootdir}/man'
1286
1287ac_prev=
1288ac_dashdash=
1289for ac_option
1290do
1291  # If the previous option needs an argument, assign it.
1292  if test -n "$ac_prev"; then
1293    eval $ac_prev=\$ac_option
1294    ac_prev=
1295    continue
1296  fi
1297
1298  case $ac_option in
1299  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1300  *=)   ac_optarg= ;;
1301  *)    ac_optarg=yes ;;
1302  esac
1303
1304  # Accept the important Cygnus configure options, so we can diagnose typos.
1305
1306  case $ac_dashdash$ac_option in
1307  --)
1308    ac_dashdash=yes ;;
1309
1310  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1311    ac_prev=bindir ;;
1312  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1313    bindir=$ac_optarg ;;
1314
1315  -build | --build | --buil | --bui | --bu)
1316    ac_prev=build_alias ;;
1317  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1318    build_alias=$ac_optarg ;;
1319
1320  -cache-file | --cache-file | --cache-fil | --cache-fi \
1321  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1322    ac_prev=cache_file ;;
1323  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1324  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1325    cache_file=$ac_optarg ;;
1326
1327  --config-cache | -C)
1328    cache_file=config.cache ;;
1329
1330  -datadir | --datadir | --datadi | --datad)
1331    ac_prev=datadir ;;
1332  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1333    datadir=$ac_optarg ;;
1334
1335  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1336  | --dataroo | --dataro | --datar)
1337    ac_prev=datarootdir ;;
1338  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1339  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1340    datarootdir=$ac_optarg ;;
1341
1342  -disable-* | --disable-*)
1343    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1344    # Reject names that are not valid shell variable names.
1345    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346      as_fn_error $? "invalid feature name: $ac_useropt"
1347    ac_useropt_orig=$ac_useropt
1348    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349    case $ac_user_opts in
1350      *"
1351"enable_$ac_useropt"
1352"*) ;;
1353      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1354	 ac_unrecognized_sep=', ';;
1355    esac
1356    eval enable_$ac_useropt=no ;;
1357
1358  -docdir | --docdir | --docdi | --doc | --do)
1359    ac_prev=docdir ;;
1360  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1361    docdir=$ac_optarg ;;
1362
1363  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1364    ac_prev=dvidir ;;
1365  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1366    dvidir=$ac_optarg ;;
1367
1368  -enable-* | --enable-*)
1369    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1370    # Reject names that are not valid shell variable names.
1371    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372      as_fn_error $? "invalid feature name: $ac_useropt"
1373    ac_useropt_orig=$ac_useropt
1374    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375    case $ac_user_opts in
1376      *"
1377"enable_$ac_useropt"
1378"*) ;;
1379      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1380	 ac_unrecognized_sep=', ';;
1381    esac
1382    eval enable_$ac_useropt=\$ac_optarg ;;
1383
1384  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1385  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1386  | --exec | --exe | --ex)
1387    ac_prev=exec_prefix ;;
1388  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1389  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1390  | --exec=* | --exe=* | --ex=*)
1391    exec_prefix=$ac_optarg ;;
1392
1393  -gas | --gas | --ga | --g)
1394    # Obsolete; use --with-gas.
1395    with_gas=yes ;;
1396
1397  -help | --help | --hel | --he | -h)
1398    ac_init_help=long ;;
1399  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1400    ac_init_help=recursive ;;
1401  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1402    ac_init_help=short ;;
1403
1404  -host | --host | --hos | --ho)
1405    ac_prev=host_alias ;;
1406  -host=* | --host=* | --hos=* | --ho=*)
1407    host_alias=$ac_optarg ;;
1408
1409  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1410    ac_prev=htmldir ;;
1411  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1412  | --ht=*)
1413    htmldir=$ac_optarg ;;
1414
1415  -includedir | --includedir | --includedi | --included | --include \
1416  | --includ | --inclu | --incl | --inc)
1417    ac_prev=includedir ;;
1418  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1419  | --includ=* | --inclu=* | --incl=* | --inc=*)
1420    includedir=$ac_optarg ;;
1421
1422  -infodir | --infodir | --infodi | --infod | --info | --inf)
1423    ac_prev=infodir ;;
1424  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1425    infodir=$ac_optarg ;;
1426
1427  -libdir | --libdir | --libdi | --libd)
1428    ac_prev=libdir ;;
1429  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1430    libdir=$ac_optarg ;;
1431
1432  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1433  | --libexe | --libex | --libe)
1434    ac_prev=libexecdir ;;
1435  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1436  | --libexe=* | --libex=* | --libe=*)
1437    libexecdir=$ac_optarg ;;
1438
1439  -localedir | --localedir | --localedi | --localed | --locale)
1440    ac_prev=localedir ;;
1441  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1442    localedir=$ac_optarg ;;
1443
1444  -localstatedir | --localstatedir | --localstatedi | --localstated \
1445  | --localstate | --localstat | --localsta | --localst | --locals)
1446    ac_prev=localstatedir ;;
1447  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1448  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1449    localstatedir=$ac_optarg ;;
1450
1451  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1452    ac_prev=mandir ;;
1453  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1454    mandir=$ac_optarg ;;
1455
1456  -nfp | --nfp | --nf)
1457    # Obsolete; use --without-fp.
1458    with_fp=no ;;
1459
1460  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1461  | --no-cr | --no-c | -n)
1462    no_create=yes ;;
1463
1464  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1465  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1466    no_recursion=yes ;;
1467
1468  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1469  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1470  | --oldin | --oldi | --old | --ol | --o)
1471    ac_prev=oldincludedir ;;
1472  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1473  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1474  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1475    oldincludedir=$ac_optarg ;;
1476
1477  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1478    ac_prev=prefix ;;
1479  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1480    prefix=$ac_optarg ;;
1481
1482  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1483  | --program-pre | --program-pr | --program-p)
1484    ac_prev=program_prefix ;;
1485  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1486  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1487    program_prefix=$ac_optarg ;;
1488
1489  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1490  | --program-suf | --program-su | --program-s)
1491    ac_prev=program_suffix ;;
1492  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1493  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1494    program_suffix=$ac_optarg ;;
1495
1496  -program-transform-name | --program-transform-name \
1497  | --program-transform-nam | --program-transform-na \
1498  | --program-transform-n | --program-transform- \
1499  | --program-transform | --program-transfor \
1500  | --program-transfo | --program-transf \
1501  | --program-trans | --program-tran \
1502  | --progr-tra | --program-tr | --program-t)
1503    ac_prev=program_transform_name ;;
1504  -program-transform-name=* | --program-transform-name=* \
1505  | --program-transform-nam=* | --program-transform-na=* \
1506  | --program-transform-n=* | --program-transform-=* \
1507  | --program-transform=* | --program-transfor=* \
1508  | --program-transfo=* | --program-transf=* \
1509  | --program-trans=* | --program-tran=* \
1510  | --progr-tra=* | --program-tr=* | --program-t=*)
1511    program_transform_name=$ac_optarg ;;
1512
1513  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1514    ac_prev=pdfdir ;;
1515  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1516    pdfdir=$ac_optarg ;;
1517
1518  -psdir | --psdir | --psdi | --psd | --ps)
1519    ac_prev=psdir ;;
1520  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1521    psdir=$ac_optarg ;;
1522
1523  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524  | -silent | --silent | --silen | --sile | --sil)
1525    silent=yes ;;
1526
1527  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1528    ac_prev=sbindir ;;
1529  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1530  | --sbi=* | --sb=*)
1531    sbindir=$ac_optarg ;;
1532
1533  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1534  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1535  | --sharedst | --shareds | --shared | --share | --shar \
1536  | --sha | --sh)
1537    ac_prev=sharedstatedir ;;
1538  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1539  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1540  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1541  | --sha=* | --sh=*)
1542    sharedstatedir=$ac_optarg ;;
1543
1544  -site | --site | --sit)
1545    ac_prev=site ;;
1546  -site=* | --site=* | --sit=*)
1547    site=$ac_optarg ;;
1548
1549  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1550    ac_prev=srcdir ;;
1551  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1552    srcdir=$ac_optarg ;;
1553
1554  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1555  | --syscon | --sysco | --sysc | --sys | --sy)
1556    ac_prev=sysconfdir ;;
1557  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1558  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1559    sysconfdir=$ac_optarg ;;
1560
1561  -target | --target | --targe | --targ | --tar | --ta | --t)
1562    ac_prev=target_alias ;;
1563  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1564    target_alias=$ac_optarg ;;
1565
1566  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1567    verbose=yes ;;
1568
1569  -version | --version | --versio | --versi | --vers | -V)
1570    ac_init_version=: ;;
1571
1572  -with-* | --with-*)
1573    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1574    # Reject names that are not valid shell variable names.
1575    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1576      as_fn_error $? "invalid package name: $ac_useropt"
1577    ac_useropt_orig=$ac_useropt
1578    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579    case $ac_user_opts in
1580      *"
1581"with_$ac_useropt"
1582"*) ;;
1583      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1584	 ac_unrecognized_sep=', ';;
1585    esac
1586    eval with_$ac_useropt=\$ac_optarg ;;
1587
1588  -without-* | --without-*)
1589    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1590    # Reject names that are not valid shell variable names.
1591    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592      as_fn_error $? "invalid package name: $ac_useropt"
1593    ac_useropt_orig=$ac_useropt
1594    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595    case $ac_user_opts in
1596      *"
1597"with_$ac_useropt"
1598"*) ;;
1599      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1600	 ac_unrecognized_sep=', ';;
1601    esac
1602    eval with_$ac_useropt=no ;;
1603
1604  --x)
1605    # Obsolete; use --with-x.
1606    with_x=yes ;;
1607
1608  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1609  | --x-incl | --x-inc | --x-in | --x-i)
1610    ac_prev=x_includes ;;
1611  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1612  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1613    x_includes=$ac_optarg ;;
1614
1615  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1616  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1617    ac_prev=x_libraries ;;
1618  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1619  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1620    x_libraries=$ac_optarg ;;
1621
1622  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1623Try \`$0 --help' for more information"
1624    ;;
1625
1626  *=*)
1627    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1628    # Reject names that are not valid shell variable names.
1629    case $ac_envvar in #(
1630      '' | [0-9]* | *[!_$as_cr_alnum]* )
1631      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1632    esac
1633    eval $ac_envvar=\$ac_optarg
1634    export $ac_envvar ;;
1635
1636  *)
1637    # FIXME: should be removed in autoconf 3.0.
1638    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1639    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1640      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1641    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1642    ;;
1643
1644  esac
1645done
1646
1647if test -n "$ac_prev"; then
1648  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1649  as_fn_error $? "missing argument to $ac_option"
1650fi
1651
1652if test -n "$ac_unrecognized_opts"; then
1653  case $enable_option_checking in
1654    no) ;;
1655    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1656    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1657  esac
1658fi
1659
1660# Check all directory arguments for consistency.
1661for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1662		datadir sysconfdir sharedstatedir localstatedir includedir \
1663		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1664		libdir localedir mandir
1665do
1666  eval ac_val=\$$ac_var
1667  # Remove trailing slashes.
1668  case $ac_val in
1669    */ )
1670      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1671      eval $ac_var=\$ac_val;;
1672  esac
1673  # Be sure to have absolute directory names.
1674  case $ac_val in
1675    [\\/$]* | ?:[\\/]* )  continue;;
1676    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1677  esac
1678  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1679done
1680
1681# There might be people who depend on the old broken behavior: `$host'
1682# used to hold the argument of --host etc.
1683# FIXME: To remove some day.
1684build=$build_alias
1685host=$host_alias
1686target=$target_alias
1687
1688# FIXME: To remove some day.
1689if test "x$host_alias" != x; then
1690  if test "x$build_alias" = x; then
1691    cross_compiling=maybe
1692  elif test "x$build_alias" != "x$host_alias"; then
1693    cross_compiling=yes
1694  fi
1695fi
1696
1697ac_tool_prefix=
1698test -n "$host_alias" && ac_tool_prefix=$host_alias-
1699
1700test "$silent" = yes && exec 6>/dev/null
1701
1702
1703ac_pwd=`pwd` && test -n "$ac_pwd" &&
1704ac_ls_di=`ls -di .` &&
1705ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1706  as_fn_error $? "working directory cannot be determined"
1707test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1708  as_fn_error $? "pwd does not report name of working directory"
1709
1710
1711# Find the source files, if location was not specified.
1712if test -z "$srcdir"; then
1713  ac_srcdir_defaulted=yes
1714  # Try the directory containing this script, then the parent directory.
1715  ac_confdir=`$as_dirname -- "$as_myself" ||
1716$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1717	 X"$as_myself" : 'X\(//\)[^/]' \| \
1718	 X"$as_myself" : 'X\(//\)$' \| \
1719	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1720$as_echo X"$as_myself" |
1721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1722	    s//\1/
1723	    q
1724	  }
1725	  /^X\(\/\/\)[^/].*/{
1726	    s//\1/
1727	    q
1728	  }
1729	  /^X\(\/\/\)$/{
1730	    s//\1/
1731	    q
1732	  }
1733	  /^X\(\/\).*/{
1734	    s//\1/
1735	    q
1736	  }
1737	  s/.*/./; q'`
1738  srcdir=$ac_confdir
1739  if test ! -r "$srcdir/$ac_unique_file"; then
1740    srcdir=..
1741  fi
1742else
1743  ac_srcdir_defaulted=no
1744fi
1745if test ! -r "$srcdir/$ac_unique_file"; then
1746  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1747  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1748fi
1749ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1750ac_abs_confdir=`(
1751	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1752	pwd)`
1753# When building in place, set srcdir=.
1754if test "$ac_abs_confdir" = "$ac_pwd"; then
1755  srcdir=.
1756fi
1757# Remove unnecessary trailing slashes from srcdir.
1758# Double slashes in file names in object file debugging info
1759# mess up M-x gdb in Emacs.
1760case $srcdir in
1761*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1762esac
1763for ac_var in $ac_precious_vars; do
1764  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1765  eval ac_env_${ac_var}_value=\$${ac_var}
1766  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1767  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1768done
1769
1770#
1771# Report the --help message.
1772#
1773if test "$ac_init_help" = "long"; then
1774  # Omit some internal or obsolete options to make the list less imposing.
1775  # This message is too long to be a string in the A/UX 3.1 sh.
1776  cat <<_ACEOF
1777\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
1778
1779Usage: $0 [OPTION]... [VAR=VALUE]...
1780
1781To assign environment variables (e.g., CC, CFLAGS...), specify them as
1782VAR=VALUE.  See below for descriptions of some of the useful variables.
1783
1784Defaults for the options are specified in brackets.
1785
1786Configuration:
1787  -h, --help              display this help and exit
1788      --help=short        display options specific to this package
1789      --help=recursive    display the short help of all the included packages
1790  -V, --version           display version information and exit
1791  -q, --quiet, --silent   do not print \`checking ...' messages
1792      --cache-file=FILE   cache test results in FILE [disabled]
1793  -C, --config-cache      alias for \`--cache-file=config.cache'
1794  -n, --no-create         do not create output files
1795      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1796
1797Installation directories:
1798  --prefix=PREFIX         install architecture-independent files in PREFIX
1799                          [$ac_default_prefix]
1800  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1801                          [PREFIX]
1802
1803By default, \`make install' will install all the files in
1804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1806for instance \`--prefix=\$HOME'.
1807
1808For better control, use the options below.
1809
1810Fine tuning of the installation directories:
1811  --bindir=DIR            user executables [EPREFIX/bin]
1812  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1813  --libexecdir=DIR        program executables [EPREFIX/libexec]
1814  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1815  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1816  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1817  --libdir=DIR            object code libraries [EPREFIX/lib]
1818  --includedir=DIR        C header files [PREFIX/include]
1819  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1820  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1821  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1822  --infodir=DIR           info documentation [DATAROOTDIR/info]
1823  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1824  --mandir=DIR            man documentation [DATAROOTDIR/man]
1825  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1826  --htmldir=DIR           html documentation [DOCDIR]
1827  --dvidir=DIR            dvi documentation [DOCDIR]
1828  --pdfdir=DIR            pdf documentation [DOCDIR]
1829  --psdir=DIR             ps documentation [DOCDIR]
1830_ACEOF
1831
1832  cat <<\_ACEOF
1833
1834Program names:
1835  --program-prefix=PREFIX            prepend PREFIX to installed program names
1836  --program-suffix=SUFFIX            append SUFFIX to installed program names
1837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1838
1839X features:
1840  --x-includes=DIR    X include files are in DIR
1841  --x-libraries=DIR   X library files are in DIR
1842
1843System types:
1844  --build=BUILD     configure for building on BUILD [guessed]
1845  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1846  --target=TARGET   configure for building compilers for TARGET [HOST]
1847_ACEOF
1848fi
1849
1850if test -n "$ac_init_help"; then
1851  case $ac_init_help in
1852     short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
1853   esac
1854  cat <<\_ACEOF
1855
1856Optional Features:
1857  --disable-option-checking  ignore unrecognized --enable/--with options
1858  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1859  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1860  --enable-silent-rules   less verbose build output (undo: "make V=1")
1861  --disable-silent-rules  verbose build output (undo: "make V=0")
1862  --enable-dependency-tracking
1863                          do not reject slow dependency extractors
1864  --disable-dependency-tracking
1865                          speeds up one-time build
1866  --enable-ld-version-script
1867                          enable linker version script (default is enabled
1868                          when possible)
1869  --enable-bounds-checking
1870                          enable run-time bounds-checking
1871  --enable-osx-universal-binary
1872                          build universal binary on OS X [[default=no]]
1873  --disable-openmp        do not use OpenMP
1874  --enable-opencl         enable OpenCL support
1875  --disable-largefile     omit support for large files
1876  --enable-shared[=PKGS]  build shared libraries [default=yes]
1877  --enable-static[=PKGS]  build static libraries [default=yes]
1878  --enable-fast-install[=PKGS]
1879                          optimize for fast installation [default=yes]
1880  --disable-libtool-lock  avoid locking (might break parallel builds)
1881  --enable-delegate-build look for delegate libraries in build directory
1882  --disable-deprecated    exclude deprecated methods in MagickCore and
1883                          MagickWand APIs
1884  --disable-installed     Formally install ImageMagick under PREFIX
1885  --disable-cipher        disable enciphering and deciphering image pixels
1886  --enable-zero-configuration
1887                          enable self-contained, embeddable,
1888                          zero-configuration ImageMagick
1889  --enable-hdri           accurately represent the wide range of intensity
1890                          levels found in real scenes
1891  --disable-assert        disable assert() statements in build
1892  --enable-maintainer-mode
1893                          enable make rules and dependencies not useful (and
1894                          sometimes confusing) to the casual installer
1895  --enable-hugepages      enable 'huge pages' support
1896  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1897  --enable-efence         enable 'efence' memory debug support
1898  --enable-prof           enable 'prof' profiling support
1899  --enable-gprof          enable 'gprof' profiling support
1900  --enable-gcov           enable 'gcov' profiling support
1901  --enable-legacy-support  install legacy command-line utilities (default disabled)
1902  --disable-assert        turn off assertions
1903  --disable-docs          disable building of documentation
1904
1905Optional Packages:
1906  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1907  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1908  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1909  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1910  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1911                          instead of guessing
1912  --includearch-dir=DIR   ARCH specific include directory
1913  --sharearch-dir=DIR     ARCH specific config directory
1914  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1915  --without-threads       disable threads support
1916  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1917                          both]
1918  --with-sysroot=DIR Search for dependent libraries within DIR
1919                        (or the compiler's sysroot if not specified).
1920  --with-modules          enable building dynamically loadable modules
1921  --with-method-prefix=PREFIX
1922                          prefix MagickCore API methods
1923  --with-quantum-depth=DEPTH
1924                          number of bits in a pixel quantum (default 16)
1925  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1926                          memory)
1927  --with-frozenpaths      freeze delegate paths
1928  --without-magick-plus-plus
1929                          disable build/install of Magick++
1930  --with-package-release-name=NAME
1931                          encode this name into the shared library
1932  --with-perl             enable build/install of PerlMagick
1933  --with-perl-options=OPTIONS
1934                          options to pass on command-line when generating
1935                          PerlMagick build file
1936  --with-umem             enable umem memory allocation library support
1937  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1938  --without-bzlib         disable BZLIB support
1939  --with-x                use the X Window System
1940  --without-zlib          disable ZLIB support
1941  --with-autotrace        enable autotrace support
1942  --without-dps           disable Display Postscript support
1943  --without-djvu          disable DjVu support
1944  --with-dejavu-font-dir=DIR
1945                          DejaVu font directory
1946  --without-fftw          disable FFTW support
1947  --without-fpx           disable FlashPIX support
1948  --without-fontconfig    disable fontconfig support
1949  --without-freetype      disable Freetype support
1950  --with-gslib            enable Ghostscript library support
1951  --with-fontpath=DIR     prepend to default font search path
1952  --with-gs-font-dir=DIR  Ghostscript font directory
1953  --with-gvc              enable GVC support
1954  --without-jbig          disable JBIG support
1955  --without-jpeg          disable JPEG support
1956  --without-lcms          disable lcms (v1.1X) support
1957  --without-lcms2         disable lcms (v2.X) support
1958  --without-openjp2       disable OpenJP2 support
1959  --without-lqr           disable Liquid Rescale support
1960  --without-lzma          disable LZMA support
1961  --without-openexr       disable OpenEXR support
1962  --without-pango         disable PANGO support
1963  --without-png           disable PNG support
1964  --with-rsvg             enable RSVG support
1965  --without-tiff          disable TIFF support
1966  --without-webp          disable WEBP support
1967  --with-windows-font-dir=DIR
1968                          directory containing MS-Windows fonts
1969  --with-wmf              enable WMF support
1970  --without-xml           disable XML support
1971
1972Some influential environment variables:
1973  CC          C compiler command
1974  CFLAGS      C compiler flags
1975  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1976              nonstandard directory <lib dir>
1977  LIBS        libraries to pass to the linker, e.g. -l<library>
1978  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1979              you have headers in a nonstandard directory <include dir>
1980  CPP         C preprocessor
1981  CXX         C++ compiler command
1982  CXXFLAGS    C++ compiler flags
1983  PKG_CONFIG  path to pkg-config utility
1984  CXXCPP      C++ preprocessor
1985  XMKMF       Path to xmkmf, Makefile generator for X Window System
1986  AUTOTRACE_CFLAGS
1987              C compiler flags for AUTOTRACE, overriding pkg-config
1988  AUTOTRACE_LIBS
1989              linker flags for AUTOTRACE, overriding pkg-config
1990  FONTCONFIG_CFLAGS
1991              C compiler flags for FONTCONFIG, overriding pkg-config
1992  FONTCONFIG_LIBS
1993              linker flags for FONTCONFIG, overriding pkg-config
1994  FREETYPE_CFLAGS
1995              C compiler flags for FREETYPE, overriding pkg-config
1996  FREETYPE_LIBS
1997              linker flags for FREETYPE, overriding pkg-config
1998  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1999  GVC_LIBS    linker flags for GVC, overriding pkg-config
2000  LIBOPENJP2_CFLAGS
2001              C compiler flags for LIBOPENJP2, overriding pkg-config
2002  LIBOPENJP2_LIBS
2003              linker flags for LIBOPENJP2, overriding pkg-config
2004  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2005  LQR_LIBS    linker flags for LQR, overriding pkg-config
2006  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2007  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
2008  OPENEXR_CFLAGS
2009              C compiler flags for OPENEXR, overriding pkg-config
2010  OPENEXR_LIBS
2011              linker flags for OPENEXR, overriding pkg-config
2012  PANGO_CFLAGS
2013              C compiler flags for PANGO, overriding pkg-config
2014  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2015  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2016  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2017  CAIRO_SVG_CFLAGS
2018              C compiler flags for CAIRO_SVG, overriding pkg-config
2019  CAIRO_SVG_LIBS
2020              linker flags for CAIRO_SVG, overriding pkg-config
2021
2022Use these variables to override the choices made by `configure' or to help
2023it to find libraries and programs with nonstandard names/locations.
2024
2025Report bugs to <http://www.imagemagick.org>.
2026_ACEOF
2027ac_status=$?
2028fi
2029
2030if test "$ac_init_help" = "recursive"; then
2031  # If there are subdirs, report their specific --help.
2032  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033    test -d "$ac_dir" ||
2034      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2035      continue
2036    ac_builddir=.
2037
2038case "$ac_dir" in
2039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040*)
2041  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042  # A ".." for each directory in $ac_dir_suffix.
2043  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044  case $ac_top_builddir_sub in
2045  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047  esac ;;
2048esac
2049ac_abs_top_builddir=$ac_pwd
2050ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051# for backward compatibility:
2052ac_top_builddir=$ac_top_build_prefix
2053
2054case $srcdir in
2055  .)  # We are building in place.
2056    ac_srcdir=.
2057    ac_top_srcdir=$ac_top_builddir_sub
2058    ac_abs_top_srcdir=$ac_pwd ;;
2059  [\\/]* | ?:[\\/]* )  # Absolute name.
2060    ac_srcdir=$srcdir$ac_dir_suffix;
2061    ac_top_srcdir=$srcdir
2062    ac_abs_top_srcdir=$srcdir ;;
2063  *) # Relative name.
2064    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065    ac_top_srcdir=$ac_top_build_prefix$srcdir
2066    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067esac
2068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069
2070    cd "$ac_dir" || { ac_status=$?; continue; }
2071    # Check for guested configure.
2072    if test -f "$ac_srcdir/configure.gnu"; then
2073      echo &&
2074      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075    elif test -f "$ac_srcdir/configure"; then
2076      echo &&
2077      $SHELL "$ac_srcdir/configure" --help=recursive
2078    else
2079      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080    fi || ac_status=$?
2081    cd "$ac_pwd" || { ac_status=$?; break; }
2082  done
2083fi
2084
2085test -n "$ac_init_help" && exit $ac_status
2086if $ac_init_version; then
2087  cat <<\_ACEOF
2088ImageMagick configure 7.0.0-0
2089generated by GNU Autoconf 2.69
2090
2091Copyright (C) 2012 Free Software Foundation, Inc.
2092This configure script is free software; the Free Software Foundation
2093gives unlimited permission to copy, distribute and modify it.
2094_ACEOF
2095  exit
2096fi
2097
2098## ------------------------ ##
2099## Autoconf initialization. ##
2100## ------------------------ ##
2101
2102# ac_fn_c_try_compile LINENO
2103# --------------------------
2104# Try to compile conftest.$ac_ext, and return whether this succeeded.
2105ac_fn_c_try_compile ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  rm -f conftest.$ac_objext
2109  if { { ac_try="$ac_compile"
2110case "(($ac_try" in
2111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112  *) ac_try_echo=$ac_try;;
2113esac
2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115$as_echo "$ac_try_echo"; } >&5
2116  (eval "$ac_compile") 2>conftest.err
2117  ac_status=$?
2118  if test -s conftest.err; then
2119    grep -v '^ *+' conftest.err >conftest.er1
2120    cat conftest.er1 >&5
2121    mv -f conftest.er1 conftest.err
2122  fi
2123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124  test $ac_status = 0; } && {
2125	 test -z "$ac_c_werror_flag" ||
2126	 test ! -s conftest.err
2127       } && test -s conftest.$ac_objext; then :
2128  ac_retval=0
2129else
2130  $as_echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
2133	ac_retval=1
2134fi
2135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136  as_fn_set_status $ac_retval
2137
2138} # ac_fn_c_try_compile
2139
2140# ac_fn_c_try_cpp LINENO
2141# ----------------------
2142# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_c_try_cpp ()
2144{
2145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146  if { { ac_try="$ac_cpp conftest.$ac_ext"
2147case "(($ac_try" in
2148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149  *) ac_try_echo=$ac_try;;
2150esac
2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152$as_echo "$ac_try_echo"; } >&5
2153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154  ac_status=$?
2155  if test -s conftest.err; then
2156    grep -v '^ *+' conftest.err >conftest.er1
2157    cat conftest.er1 >&5
2158    mv -f conftest.er1 conftest.err
2159  fi
2160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161  test $ac_status = 0; } > conftest.i && {
2162	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163	 test ! -s conftest.err
2164       }; then :
2165  ac_retval=0
2166else
2167  $as_echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170    ac_retval=1
2171fi
2172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173  as_fn_set_status $ac_retval
2174
2175} # ac_fn_c_try_cpp
2176
2177# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178# -------------------------------------------------------
2179# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180# the include files in INCLUDES and setting the cache variable VAR
2181# accordingly.
2182ac_fn_c_check_header_mongrel ()
2183{
2184  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185  if eval \${$3+:} false; then :
2186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187$as_echo_n "checking for $2... " >&6; }
2188if eval \${$3+:} false; then :
2189  $as_echo_n "(cached) " >&6
2190fi
2191eval ac_res=\$$3
2192	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
2194else
2195  # Is the header compilable?
2196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197$as_echo_n "checking $2 usability... " >&6; }
2198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201#include <$2>
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204  ac_header_compiler=yes
2205else
2206  ac_header_compiler=no
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210$as_echo "$ac_header_compiler" >&6; }
2211
2212# Is the header present?
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214$as_echo_n "checking $2 presence... " >&6; }
2215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h.  */
2217#include <$2>
2218_ACEOF
2219if ac_fn_c_try_cpp "$LINENO"; then :
2220  ac_header_preproc=yes
2221else
2222  ac_header_preproc=no
2223fi
2224rm -f conftest.err conftest.i conftest.$ac_ext
2225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226$as_echo "$ac_header_preproc" >&6; }
2227
2228# So?  What about this header?
2229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2230  yes:no: )
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235    ;;
2236  no:yes:* )
2237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2240$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2244$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247( $as_echo "## ----------------------------------------- ##
2248## Report this to http://www.imagemagick.org ##
2249## ----------------------------------------- ##"
2250     ) | sed "s/^/$as_me: WARNING:     /" >&2
2251    ;;
2252esac
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
2255if eval \${$3+:} false; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  eval "$3=\$ac_header_compiler"
2259fi
2260eval ac_res=\$$3
2261	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262$as_echo "$ac_res" >&6; }
2263fi
2264  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266} # ac_fn_c_check_header_mongrel
2267
2268# ac_fn_c_try_run LINENO
2269# ----------------------
2270# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271# that executables *can* be run.
2272ac_fn_c_try_run ()
2273{
2274  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275  if { { ac_try="$ac_link"
2276case "(($ac_try" in
2277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278  *) ac_try_echo=$ac_try;;
2279esac
2280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281$as_echo "$ac_try_echo"; } >&5
2282  (eval "$ac_link") 2>&5
2283  ac_status=$?
2284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2286  { { case "(($ac_try" in
2287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288  *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292  (eval "$ac_try") 2>&5
2293  ac_status=$?
2294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295  test $ac_status = 0; }; }; then :
2296  ac_retval=0
2297else
2298  $as_echo "$as_me: program exited with status $ac_status" >&5
2299       $as_echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302       ac_retval=$ac_status
2303fi
2304  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306  as_fn_set_status $ac_retval
2307
2308} # ac_fn_c_try_run
2309
2310# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2311# -------------------------------------------------------
2312# Tests whether HEADER exists and can be compiled using the include files in
2313# INCLUDES, setting the cache variable VAR accordingly.
2314ac_fn_c_check_header_compile ()
2315{
2316  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
2319if eval \${$3+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324$4
2325#include <$2>
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328  eval "$3=yes"
2329else
2330  eval "$3=no"
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$3
2335	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
2337  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338
2339} # ac_fn_c_check_header_compile
2340
2341# ac_fn_cxx_try_compile LINENO
2342# ----------------------------
2343# Try to compile conftest.$ac_ext, and return whether this succeeded.
2344ac_fn_cxx_try_compile ()
2345{
2346  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347  rm -f conftest.$ac_objext
2348  if { { ac_try="$ac_compile"
2349case "(($ac_try" in
2350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351  *) ac_try_echo=$ac_try;;
2352esac
2353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354$as_echo "$ac_try_echo"; } >&5
2355  (eval "$ac_compile") 2>conftest.err
2356  ac_status=$?
2357  if test -s conftest.err; then
2358    grep -v '^ *+' conftest.err >conftest.er1
2359    cat conftest.er1 >&5
2360    mv -f conftest.er1 conftest.err
2361  fi
2362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363  test $ac_status = 0; } && {
2364	 test -z "$ac_cxx_werror_flag" ||
2365	 test ! -s conftest.err
2366       } && test -s conftest.$ac_objext; then :
2367  ac_retval=0
2368else
2369  $as_echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372	ac_retval=1
2373fi
2374  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375  as_fn_set_status $ac_retval
2376
2377} # ac_fn_cxx_try_compile
2378
2379# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2380# --------------------------------------------
2381# Tries to find the compile-time value of EXPR in a program that includes
2382# INCLUDES, setting VAR accordingly. Returns whether the value could be
2383# computed
2384ac_fn_c_compute_int ()
2385{
2386  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387  if test "$cross_compiling" = yes; then
2388    # Depending upon the size, compute the lo and hi bounds.
2389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h.  */
2391$4
2392int
2393main ()
2394{
2395static int test_array [1 - 2 * !(($2) >= 0)];
2396test_array [0] = 0;
2397return test_array [0];
2398
2399  ;
2400  return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404  ac_lo=0 ac_mid=0
2405  while :; do
2406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h.  */
2408$4
2409int
2410main ()
2411{
2412static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2413test_array [0] = 0;
2414return test_array [0];
2415
2416  ;
2417  return 0;
2418}
2419_ACEOF
2420if ac_fn_c_try_compile "$LINENO"; then :
2421  ac_hi=$ac_mid; break
2422else
2423  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2424			if test $ac_lo -le $ac_mid; then
2425			  ac_lo= ac_hi=
2426			  break
2427			fi
2428			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2429fi
2430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431  done
2432else
2433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434/* end confdefs.h.  */
2435$4
2436int
2437main ()
2438{
2439static int test_array [1 - 2 * !(($2) < 0)];
2440test_array [0] = 0;
2441return test_array [0];
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_compile "$LINENO"; then :
2448  ac_hi=-1 ac_mid=-1
2449  while :; do
2450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h.  */
2452$4
2453int
2454main ()
2455{
2456static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2457test_array [0] = 0;
2458return test_array [0];
2459
2460  ;
2461  return 0;
2462}
2463_ACEOF
2464if ac_fn_c_try_compile "$LINENO"; then :
2465  ac_lo=$ac_mid; break
2466else
2467  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2468			if test $ac_mid -le $ac_hi; then
2469			  ac_lo= ac_hi=
2470			  break
2471			fi
2472			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2473fi
2474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475  done
2476else
2477  ac_lo= ac_hi=
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482# Binary search between lo and hi bounds.
2483while test "x$ac_lo" != "x$ac_hi"; do
2484  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h.  */
2487$4
2488int
2489main ()
2490{
2491static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492test_array [0] = 0;
2493return test_array [0];
2494
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500  ac_hi=$ac_mid
2501else
2502  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2503fi
2504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505done
2506case $ac_lo in #((
2507?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2508'') ac_retval=1 ;;
2509esac
2510  else
2511    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h.  */
2513$4
2514static long int longval () { return $2; }
2515static unsigned long int ulongval () { return $2; }
2516#include <stdio.h>
2517#include <stdlib.h>
2518int
2519main ()
2520{
2521
2522  FILE *f = fopen ("conftest.val", "w");
2523  if (! f)
2524    return 1;
2525  if (($2) < 0)
2526    {
2527      long int i = longval ();
2528      if (i != ($2))
2529	return 1;
2530      fprintf (f, "%ld", i);
2531    }
2532  else
2533    {
2534      unsigned long int i = ulongval ();
2535      if (i != ($2))
2536	return 1;
2537      fprintf (f, "%lu", i);
2538    }
2539  /* Do not output a trailing newline, as this causes \r\n confusion
2540     on some platforms.  */
2541  return ferror (f) || fclose (f) != 0;
2542
2543  ;
2544  return 0;
2545}
2546_ACEOF
2547if ac_fn_c_try_run "$LINENO"; then :
2548  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2549else
2550  ac_retval=1
2551fi
2552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2553  conftest.$ac_objext conftest.beam conftest.$ac_ext
2554rm -f conftest.val
2555
2556  fi
2557  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558  as_fn_set_status $ac_retval
2559
2560} # ac_fn_c_compute_int
2561
2562# ac_fn_c_try_link LINENO
2563# -----------------------
2564# Try to link conftest.$ac_ext, and return whether this succeeded.
2565ac_fn_c_try_link ()
2566{
2567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568  rm -f conftest.$ac_objext conftest$ac_exeext
2569  if { { ac_try="$ac_link"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576  (eval "$ac_link") 2>conftest.err
2577  ac_status=$?
2578  if test -s conftest.err; then
2579    grep -v '^ *+' conftest.err >conftest.er1
2580    cat conftest.er1 >&5
2581    mv -f conftest.er1 conftest.err
2582  fi
2583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584  test $ac_status = 0; } && {
2585	 test -z "$ac_c_werror_flag" ||
2586	 test ! -s conftest.err
2587       } && test -s conftest$ac_exeext && {
2588	 test "$cross_compiling" = yes ||
2589	 test -x conftest$ac_exeext
2590       }; then :
2591  ac_retval=0
2592else
2593  $as_echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596	ac_retval=1
2597fi
2598  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2599  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2600  # interfere with the next link command; also delete a directory that is
2601  # left behind by Apple's compiler.  We do this before executing the actions.
2602  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604  as_fn_set_status $ac_retval
2605
2606} # ac_fn_c_try_link
2607
2608# ac_fn_c_check_func LINENO FUNC VAR
2609# ----------------------------------
2610# Tests whether FUNC exists, setting the cache variable VAR accordingly
2611ac_fn_c_check_func ()
2612{
2613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615$as_echo_n "checking for $2... " >&6; }
2616if eval \${$3+:} false; then :
2617  $as_echo_n "(cached) " >&6
2618else
2619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h.  */
2621/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2622   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2623#define $2 innocuous_$2
2624
2625/* System header to define __stub macros and hopefully few prototypes,
2626    which can conflict with char $2 (); below.
2627    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2628    <limits.h> exists even on freestanding compilers.  */
2629
2630#ifdef __STDC__
2631# include <limits.h>
2632#else
2633# include <assert.h>
2634#endif
2635
2636#undef $2
2637
2638/* Override any GCC internal prototype to avoid an error.
2639   Use char because int might match the return type of a GCC
2640   builtin and then its argument prototype would still apply.  */
2641#ifdef __cplusplus
2642extern "C"
2643#endif
2644char $2 ();
2645/* The GNU C library defines this for functions which it implements
2646    to always fail with ENOSYS.  Some functions are actually named
2647    something starting with __ and the normal name is an alias.  */
2648#if defined __stub_$2 || defined __stub___$2
2649choke me
2650#endif
2651
2652int
2653main ()
2654{
2655return $2 ();
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_link "$LINENO"; then :
2661  eval "$3=yes"
2662else
2663  eval "$3=no"
2664fi
2665rm -f core conftest.err conftest.$ac_objext \
2666    conftest$ac_exeext conftest.$ac_ext
2667fi
2668eval ac_res=\$$3
2669	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2670$as_echo "$ac_res" >&6; }
2671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672
2673} # ac_fn_c_check_func
2674
2675# ac_fn_cxx_try_cpp LINENO
2676# ------------------------
2677# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2678ac_fn_cxx_try_cpp ()
2679{
2680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681  if { { ac_try="$ac_cpp conftest.$ac_ext"
2682case "(($ac_try" in
2683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684  *) ac_try_echo=$ac_try;;
2685esac
2686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687$as_echo "$ac_try_echo"; } >&5
2688  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2689  ac_status=$?
2690  if test -s conftest.err; then
2691    grep -v '^ *+' conftest.err >conftest.er1
2692    cat conftest.er1 >&5
2693    mv -f conftest.er1 conftest.err
2694  fi
2695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696  test $ac_status = 0; } > conftest.i && {
2697	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2698	 test ! -s conftest.err
2699       }; then :
2700  ac_retval=0
2701else
2702  $as_echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705    ac_retval=1
2706fi
2707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708  as_fn_set_status $ac_retval
2709
2710} # ac_fn_cxx_try_cpp
2711
2712# ac_fn_cxx_try_link LINENO
2713# -------------------------
2714# Try to link conftest.$ac_ext, and return whether this succeeded.
2715ac_fn_cxx_try_link ()
2716{
2717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718  rm -f conftest.$ac_objext conftest$ac_exeext
2719  if { { ac_try="$ac_link"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726  (eval "$ac_link") 2>conftest.err
2727  ac_status=$?
2728  if test -s conftest.err; then
2729    grep -v '^ *+' conftest.err >conftest.er1
2730    cat conftest.er1 >&5
2731    mv -f conftest.er1 conftest.err
2732  fi
2733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734  test $ac_status = 0; } && {
2735	 test -z "$ac_cxx_werror_flag" ||
2736	 test ! -s conftest.err
2737       } && test -s conftest$ac_exeext && {
2738	 test "$cross_compiling" = yes ||
2739	 test -x conftest$ac_exeext
2740       }; then :
2741  ac_retval=0
2742else
2743  $as_echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746	ac_retval=1
2747fi
2748  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2749  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2750  # interfere with the next link command; also delete a directory that is
2751  # left behind by Apple's compiler.  We do this before executing the actions.
2752  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754  as_fn_set_status $ac_retval
2755
2756} # ac_fn_cxx_try_link
2757
2758# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2759# -------------------------------------------
2760# Tests whether TYPE exists after having included INCLUDES, setting cache
2761# variable VAR accordingly.
2762ac_fn_c_check_type ()
2763{
2764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766$as_echo_n "checking for $2... " >&6; }
2767if eval \${$3+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  eval "$3=no"
2771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h.  */
2773$4
2774int
2775main ()
2776{
2777if (sizeof ($2))
2778	 return 0;
2779  ;
2780  return 0;
2781}
2782_ACEOF
2783if ac_fn_c_try_compile "$LINENO"; then :
2784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h.  */
2786$4
2787int
2788main ()
2789{
2790if (sizeof (($2)))
2791	    return 0;
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796if ac_fn_c_try_compile "$LINENO"; then :
2797
2798else
2799  eval "$3=yes"
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805eval ac_res=\$$3
2806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2807$as_echo "$ac_res" >&6; }
2808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2809
2810} # ac_fn_c_check_type
2811
2812# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2813# ----------------------------------------------------
2814# Tries to find if the field MEMBER exists in type AGGR, after including
2815# INCLUDES, setting cache variable VAR accordingly.
2816ac_fn_c_check_member ()
2817{
2818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2820$as_echo_n "checking for $2.$3... " >&6; }
2821if eval \${$4+:} false; then :
2822  $as_echo_n "(cached) " >&6
2823else
2824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h.  */
2826$5
2827int
2828main ()
2829{
2830static $2 ac_aggr;
2831if (ac_aggr.$3)
2832return 0;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837if ac_fn_c_try_compile "$LINENO"; then :
2838  eval "$4=yes"
2839else
2840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841/* end confdefs.h.  */
2842$5
2843int
2844main ()
2845{
2846static $2 ac_aggr;
2847if (sizeof ac_aggr.$3)
2848return 0;
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_compile "$LINENO"; then :
2854  eval "$4=yes"
2855else
2856  eval "$4=no"
2857fi
2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859fi
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862eval ac_res=\$$4
2863	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864$as_echo "$ac_res" >&6; }
2865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866
2867} # ac_fn_c_check_member
2868
2869# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2870# ---------------------------------------------
2871# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2872# accordingly.
2873ac_fn_c_check_decl ()
2874{
2875  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876  as_decl_name=`echo $2|sed 's/ *(.*//'`
2877  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2879$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2880if eval \${$3+:} false; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h.  */
2885$4
2886int
2887main ()
2888{
2889#ifndef $as_decl_name
2890#ifdef __cplusplus
2891  (void) $as_decl_use;
2892#else
2893  (void) $as_decl_name;
2894#endif
2895#endif
2896
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901if ac_fn_c_try_compile "$LINENO"; then :
2902  eval "$3=yes"
2903else
2904  eval "$3=no"
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907fi
2908eval ac_res=\$$3
2909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910$as_echo "$ac_res" >&6; }
2911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912
2913} # ac_fn_c_check_decl
2914
2915# ac_fn_c_find_intX_t LINENO BITS VAR
2916# -----------------------------------
2917# Finds a signed integer type with width BITS, setting cache variable VAR
2918# accordingly.
2919ac_fn_c_find_intX_t ()
2920{
2921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2923$as_echo_n "checking for int$2_t... " >&6; }
2924if eval \${$3+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  eval "$3=no"
2928     # Order is important - never check a type that is potentially smaller
2929     # than half of the expected target width.
2930     for ac_type in int$2_t 'int' 'long int' \
2931	 'long long int' 'short int' 'signed char'; do
2932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h.  */
2934$ac_includes_default
2935	     enum { N = $2 / 2 - 1 };
2936int
2937main ()
2938{
2939static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2940test_array [0] = 0;
2941return test_array [0];
2942
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947if ac_fn_c_try_compile "$LINENO"; then :
2948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h.  */
2950$ac_includes_default
2951	        enum { N = $2 / 2 - 1 };
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2956		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2957test_array [0] = 0;
2958return test_array [0];
2959
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964if ac_fn_c_try_compile "$LINENO"; then :
2965
2966else
2967  case $ac_type in #(
2968  int$2_t) :
2969    eval "$3=yes" ;; #(
2970  *) :
2971    eval "$3=\$ac_type" ;;
2972esac
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977       if eval test \"x\$"$3"\" = x"no"; then :
2978
2979else
2980  break
2981fi
2982     done
2983fi
2984eval ac_res=\$$3
2985	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986$as_echo "$ac_res" >&6; }
2987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988
2989} # ac_fn_c_find_intX_t
2990
2991# ac_fn_c_find_uintX_t LINENO BITS VAR
2992# ------------------------------------
2993# Finds an unsigned integer type with width BITS, setting cache variable VAR
2994# accordingly.
2995ac_fn_c_find_uintX_t ()
2996{
2997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2999$as_echo_n "checking for uint$2_t... " >&6; }
3000if eval \${$3+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  eval "$3=no"
3004     # Order is important - never check a type that is potentially smaller
3005     # than half of the expected target width.
3006     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3007	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h.  */
3010$ac_includes_default
3011int
3012main ()
3013{
3014static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
3015test_array [0] = 0;
3016return test_array [0];
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022if ac_fn_c_try_compile "$LINENO"; then :
3023  case $ac_type in #(
3024  uint$2_t) :
3025    eval "$3=yes" ;; #(
3026  *) :
3027    eval "$3=\$ac_type" ;;
3028esac
3029fi
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031       if eval test \"x\$"$3"\" = x"no"; then :
3032
3033else
3034  break
3035fi
3036     done
3037fi
3038eval ac_res=\$$3
3039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040$as_echo "$ac_res" >&6; }
3041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3042
3043} # ac_fn_c_find_uintX_t
3044
3045# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3046# ---------------------------------------------------------
3047# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3048# the include files in INCLUDES and setting the cache variable VAR
3049# accordingly.
3050ac_fn_cxx_check_header_mongrel ()
3051{
3052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3053  if eval \${$3+:} false; then :
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055$as_echo_n "checking for $2... " >&6; }
3056if eval \${$3+:} false; then :
3057  $as_echo_n "(cached) " >&6
3058fi
3059eval ac_res=\$$3
3060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061$as_echo "$ac_res" >&6; }
3062else
3063  # Is the header compilable?
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3065$as_echo_n "checking $2 usability... " >&6; }
3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068$4
3069#include <$2>
3070_ACEOF
3071if ac_fn_cxx_try_compile "$LINENO"; then :
3072  ac_header_compiler=yes
3073else
3074  ac_header_compiler=no
3075fi
3076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3078$as_echo "$ac_header_compiler" >&6; }
3079
3080# Is the header present?
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3082$as_echo_n "checking $2 presence... " >&6; }
3083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084/* end confdefs.h.  */
3085#include <$2>
3086_ACEOF
3087if ac_fn_cxx_try_cpp "$LINENO"; then :
3088  ac_header_preproc=yes
3089else
3090  ac_header_preproc=no
3091fi
3092rm -f conftest.err conftest.i conftest.$ac_ext
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3094$as_echo "$ac_header_preproc" >&6; }
3095
3096# So?  What about this header?
3097case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3098  yes:no: )
3099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3100$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3101    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3103    ;;
3104  no:yes:* )
3105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3106$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3107    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3108$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3109    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3110$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3112$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3115( $as_echo "## ----------------------------------------- ##
3116## Report this to http://www.imagemagick.org ##
3117## ----------------------------------------- ##"
3118     ) | sed "s/^/$as_me: WARNING:     /" >&2
3119    ;;
3120esac
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3122$as_echo_n "checking for $2... " >&6; }
3123if eval \${$3+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  eval "$3=\$ac_header_compiler"
3127fi
3128eval ac_res=\$$3
3129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3130$as_echo "$ac_res" >&6; }
3131fi
3132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3133
3134} # ac_fn_cxx_check_header_mongrel
3135cat >config.log <<_ACEOF
3136This file contains any messages produced by compilers while
3137running configure, to aid debugging if configure makes a mistake.
3138
3139It was created by ImageMagick $as_me 7.0.0-0, which was
3140generated by GNU Autoconf 2.69.  Invocation command line was
3141
3142  $ $0 $@
3143
3144_ACEOF
3145exec 5>>config.log
3146{
3147cat <<_ASUNAME
3148## --------- ##
3149## Platform. ##
3150## --------- ##
3151
3152hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3153uname -m = `(uname -m) 2>/dev/null || echo unknown`
3154uname -r = `(uname -r) 2>/dev/null || echo unknown`
3155uname -s = `(uname -s) 2>/dev/null || echo unknown`
3156uname -v = `(uname -v) 2>/dev/null || echo unknown`
3157
3158/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3159/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3160
3161/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3162/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3163/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3164/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3165/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3166/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3167/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3168
3169_ASUNAME
3170
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    $as_echo "PATH: $as_dir"
3177  done
3178IFS=$as_save_IFS
3179
3180} >&5
3181
3182cat >&5 <<_ACEOF
3183
3184
3185## ----------- ##
3186## Core tests. ##
3187## ----------- ##
3188
3189_ACEOF
3190
3191
3192# Keep a trace of the command line.
3193# Strip out --no-create and --no-recursion so they do not pile up.
3194# Strip out --silent because we don't want to record it for future runs.
3195# Also quote any args containing shell meta-characters.
3196# Make two passes to allow for proper duplicate-argument suppression.
3197ac_configure_args=
3198ac_configure_args0=
3199ac_configure_args1=
3200ac_must_keep_next=false
3201for ac_pass in 1 2
3202do
3203  for ac_arg
3204  do
3205    case $ac_arg in
3206    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3207    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3208    | -silent | --silent | --silen | --sile | --sil)
3209      continue ;;
3210    *\'*)
3211      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3212    esac
3213    case $ac_pass in
3214    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3215    2)
3216      as_fn_append ac_configure_args1 " '$ac_arg'"
3217      if test $ac_must_keep_next = true; then
3218	ac_must_keep_next=false # Got value, back to normal.
3219      else
3220	case $ac_arg in
3221	  *=* | --config-cache | -C | -disable-* | --disable-* \
3222	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3223	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3224	  | -with-* | --with-* | -without-* | --without-* | --x)
3225	    case "$ac_configure_args0 " in
3226	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3227	    esac
3228	    ;;
3229	  -* ) ac_must_keep_next=true ;;
3230	esac
3231      fi
3232      as_fn_append ac_configure_args " '$ac_arg'"
3233      ;;
3234    esac
3235  done
3236done
3237{ ac_configure_args0=; unset ac_configure_args0;}
3238{ ac_configure_args1=; unset ac_configure_args1;}
3239
3240# When interrupted or exit'd, cleanup temporary files, and complete
3241# config.log.  We remove comments because anyway the quotes in there
3242# would cause problems or look ugly.
3243# WARNING: Use '\'' to represent an apostrophe within the trap.
3244# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3245trap 'exit_status=$?
3246  # Save into config.log some information that might help in debugging.
3247  {
3248    echo
3249
3250    $as_echo "## ---------------- ##
3251## Cache variables. ##
3252## ---------------- ##"
3253    echo
3254    # The following way of writing the cache mishandles newlines in values,
3255(
3256  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3257    eval ac_val=\$$ac_var
3258    case $ac_val in #(
3259    *${as_nl}*)
3260      case $ac_var in #(
3261      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3262$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3263      esac
3264      case $ac_var in #(
3265      _ | IFS | as_nl) ;; #(
3266      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3267      *) { eval $ac_var=; unset $ac_var;} ;;
3268      esac ;;
3269    esac
3270  done
3271  (set) 2>&1 |
3272    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3273    *${as_nl}ac_space=\ *)
3274      sed -n \
3275	"s/'\''/'\''\\\\'\'''\''/g;
3276	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3277      ;; #(
3278    *)
3279      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3280      ;;
3281    esac |
3282    sort
3283)
3284    echo
3285
3286    $as_echo "## ----------------- ##
3287## Output variables. ##
3288## ----------------- ##"
3289    echo
3290    for ac_var in $ac_subst_vars
3291    do
3292      eval ac_val=\$$ac_var
3293      case $ac_val in
3294      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3295      esac
3296      $as_echo "$ac_var='\''$ac_val'\''"
3297    done | sort
3298    echo
3299
3300    if test -n "$ac_subst_files"; then
3301      $as_echo "## ------------------- ##
3302## File substitutions. ##
3303## ------------------- ##"
3304      echo
3305      for ac_var in $ac_subst_files
3306      do
3307	eval ac_val=\$$ac_var
3308	case $ac_val in
3309	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3310	esac
3311	$as_echo "$ac_var='\''$ac_val'\''"
3312      done | sort
3313      echo
3314    fi
3315
3316    if test -s confdefs.h; then
3317      $as_echo "## ----------- ##
3318## confdefs.h. ##
3319## ----------- ##"
3320      echo
3321      cat confdefs.h
3322      echo
3323    fi
3324    test "$ac_signal" != 0 &&
3325      $as_echo "$as_me: caught signal $ac_signal"
3326    $as_echo "$as_me: exit $exit_status"
3327  } >&5
3328  rm -f core *.core core.conftest.* &&
3329    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3330    exit $exit_status
3331' 0
3332for ac_signal in 1 2 13 15; do
3333  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3334done
3335ac_signal=0
3336
3337# confdefs.h avoids OS command line length limits that DEFS can exceed.
3338rm -f -r conftest* confdefs.h
3339
3340$as_echo "/* confdefs.h */" > confdefs.h
3341
3342# Predefined preprocessor variables.
3343
3344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_NAME "$PACKAGE_NAME"
3346_ACEOF
3347
3348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3350_ACEOF
3351
3352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_VERSION "$PACKAGE_VERSION"
3354_ACEOF
3355
3356cat >>confdefs.h <<_ACEOF
3357#define PACKAGE_STRING "$PACKAGE_STRING"
3358_ACEOF
3359
3360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3362_ACEOF
3363
3364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_URL "$PACKAGE_URL"
3366_ACEOF
3367
3368
3369# Let the site file select an alternate cache file if it wants to.
3370# Prefer an explicitly selected file to automatically selected ones.
3371ac_site_file1=NONE
3372ac_site_file2=NONE
3373if test -n "$CONFIG_SITE"; then
3374  # We do not want a PATH search for config.site.
3375  case $CONFIG_SITE in #((
3376    -*)  ac_site_file1=./$CONFIG_SITE;;
3377    */*) ac_site_file1=$CONFIG_SITE;;
3378    *)   ac_site_file1=./$CONFIG_SITE;;
3379  esac
3380elif test "x$prefix" != xNONE; then
3381  ac_site_file1=$prefix/share/config.site
3382  ac_site_file2=$prefix/etc/config.site
3383else
3384  ac_site_file1=$ac_default_prefix/share/config.site
3385  ac_site_file2=$ac_default_prefix/etc/config.site
3386fi
3387for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3388do
3389  test "x$ac_site_file" = xNONE && continue
3390  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3391    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3392$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3393    sed 's/^/| /' "$ac_site_file" >&5
3394    . "$ac_site_file" \
3395      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "failed to load site script $ac_site_file
3398See \`config.log' for more details" "$LINENO" 5; }
3399  fi
3400done
3401
3402if test -r "$cache_file"; then
3403  # Some versions of bash will fail to source /dev/null (special files
3404  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3405  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3407$as_echo "$as_me: loading cache $cache_file" >&6;}
3408    case $cache_file in
3409      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3410      *)                      . "./$cache_file";;
3411    esac
3412  fi
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3415$as_echo "$as_me: creating cache $cache_file" >&6;}
3416  >$cache_file
3417fi
3418
3419as_fn_append ac_header_list " stdlib.h"
3420as_fn_append ac_header_list " unistd.h"
3421as_fn_append ac_header_list " sys/param.h"
3422# Check that the precious variables saved in the cache have kept the same
3423# value.
3424ac_cache_corrupted=false
3425for ac_var in $ac_precious_vars; do
3426  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3427  eval ac_new_set=\$ac_env_${ac_var}_set
3428  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3429  eval ac_new_val=\$ac_env_${ac_var}_value
3430  case $ac_old_set,$ac_new_set in
3431    set,)
3432      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3433$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3434      ac_cache_corrupted=: ;;
3435    ,set)
3436      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3437$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3438      ac_cache_corrupted=: ;;
3439    ,);;
3440    *)
3441      if test "x$ac_old_val" != "x$ac_new_val"; then
3442	# differences in whitespace do not lead to failure.
3443	ac_old_val_w=`echo x $ac_old_val`
3444	ac_new_val_w=`echo x $ac_new_val`
3445	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3446	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3447$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3448	  ac_cache_corrupted=:
3449	else
3450	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3451$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3452	  eval $ac_var=\$ac_old_val
3453	fi
3454	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3455$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3456	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3457$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3458      fi;;
3459  esac
3460  # Pass precious variables to config.status.
3461  if test "$ac_new_set" = set; then
3462    case $ac_new_val in
3463    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3464    *) ac_arg=$ac_var=$ac_new_val ;;
3465    esac
3466    case " $ac_configure_args " in
3467      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3468      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3469    esac
3470  fi
3471done
3472if $ac_cache_corrupted; then
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3476$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3477  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3478fi
3479## -------------------- ##
3480## Main body of script. ##
3481## -------------------- ##
3482
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490
3491ac_aux_dir=
3492for ac_dir in config "$srcdir"/config; do
3493  if test -f "$ac_dir/install-sh"; then
3494    ac_aux_dir=$ac_dir
3495    ac_install_sh="$ac_aux_dir/install-sh -c"
3496    break
3497  elif test -f "$ac_dir/install.sh"; then
3498    ac_aux_dir=$ac_dir
3499    ac_install_sh="$ac_aux_dir/install.sh -c"
3500    break
3501  elif test -f "$ac_dir/shtool"; then
3502    ac_aux_dir=$ac_dir
3503    ac_install_sh="$ac_aux_dir/shtool install -c"
3504    break
3505  fi
3506done
3507if test -z "$ac_aux_dir"; then
3508  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3509fi
3510
3511# These three variables are undocumented and unsupported,
3512# and are intended to be withdrawn in a future Autoconf release.
3513# They can cause serious problems if a builder's source tree is in a directory
3514# whose full name contains unusual characters.
3515ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3516ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3517ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3518
3519
3520
3521
3522ac_config_headers="$ac_config_headers config/config.h"
3523
3524
3525ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3526
3527ac_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-dejavu.xml config/type-ghostscript.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/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3528
3529
3530#
3531# Save initial user-tunable values
3532#
3533USER_LIBS=$LIBS
3534for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3535  eval isset=\${$var+set}
3536    if test "$isset" = 'set'; then
3537        eval val=$`echo $var`
3538        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3539    fi
3540done
3541
3542
3543CONFIGURE_ARGS="$0 ${ac_configure_args}"
3544
3545
3546# Source file containing package/library versioning information.
3547. ${srcdir}/version.sh
3548
3549echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3550# Make sure we can run config.sub.
3551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3552  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3553
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3555$as_echo_n "checking build system type... " >&6; }
3556if ${ac_cv_build+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  ac_build_alias=$build_alias
3560test "x$ac_build_alias" = x &&
3561  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562test "x$ac_build_alias" = x &&
3563  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3566
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3569$as_echo "$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
3572*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3573esac
3574build=$ac_cv_build
3575ac_save_IFS=$IFS; IFS='-'
3576set x $ac_cv_build
3577shift
3578build_cpu=$1
3579build_vendor=$2
3580shift; shift
3581# Remember, the first character of IFS is used to create $*,
3582# except with old shells:
3583build_os=$*
3584IFS=$ac_save_IFS
3585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3589$as_echo_n "checking host system type... " >&6; }
3590if ${ac_cv_host+:} false; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  if test "x$host_alias" = x; then
3594  ac_cv_host=$ac_cv_build
3595else
3596  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3598fi
3599
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3602$as_echo "$ac_cv_host" >&6; }
3603case $ac_cv_host in
3604*-*-*) ;;
3605*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3622$as_echo_n "checking target system type... " >&6; }
3623if ${ac_cv_target+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test "x$target_alias" = x; then
3627  ac_cv_target=$ac_cv_host
3628else
3629  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3631fi
3632
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3635$as_echo "$ac_cv_target" >&6; }
3636case $ac_cv_target in
3637*-*-*) ;;
3638*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657  test "$program_prefix$program_suffix$program_transform_name" = \
3658    NONENONEs,x,x, &&
3659  program_prefix=${target_alias}-
3660
3661
3662
3663
3664
3665MAGICK_TARGET_CPU=$host_cpu
3666
3667
3668cat >>confdefs.h <<_ACEOF
3669#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3670_ACEOF
3671
3672
3673MAGICK_TARGET_VENDOR=$host_vendor
3674
3675
3676cat >>confdefs.h <<_ACEOF
3677#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3678_ACEOF
3679
3680
3681MAGICK_TARGET_OS=$host_os
3682
3683
3684cat >>confdefs.h <<_ACEOF
3685#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3686_ACEOF
3687
3688
3689
3690# Substitute versioning
3691MAGICK_MAJOR_VERSION=7
3692
3693MAGICK_MINOR_VERSION=0
3694
3695MAGICK_MICRO_VERSION=0
3696
3697MAGICK_PATCHLEVEL_VERSION=0
3698
3699MAGICK_VERSION=7.0.0-0
3700
3701MAGICK_SVN_REVISION=15759:15803M
3702
3703
3704# Substitute library versioning
3705MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3706
3707MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3708
3709
3710MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3711
3712MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3713
3714
3715
3716# Ensure that make can run correctly
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3718$as_echo_n "checking whether build environment is sane... " >&6; }
3719# Reject unsafe characters in $srcdir or the absolute working directory
3720# name.  Accept space and tab only in the latter.
3721am_lf='
3722'
3723case `pwd` in
3724  *[\\\"\#\$\&\'\`$am_lf]*)
3725    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3726esac
3727case $srcdir in
3728  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3729    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3730esac
3731
3732# Do 'set' in a subshell so we don't clobber the current shell's
3733# arguments.  Must try -L first in case configure is actually a
3734# symlink; some systems play weird games with the mod time of symlinks
3735# (eg FreeBSD returns the mod time of the symlink's containing
3736# directory).
3737if (
3738   am_has_slept=no
3739   for am_try in 1 2; do
3740     echo "timestamp, slept: $am_has_slept" > conftest.file
3741     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3742     if test "$*" = "X"; then
3743	# -L didn't work.
3744	set X `ls -t "$srcdir/configure" conftest.file`
3745     fi
3746     if test "$*" != "X $srcdir/configure conftest.file" \
3747	&& test "$*" != "X conftest.file $srcdir/configure"; then
3748
3749	# If neither matched, then we have a broken ls.  This can happen
3750	# if, for instance, CONFIG_SHELL is bash and it inherits a
3751	# broken ls alias from the environment.  This has actually
3752	# happened.  Such a system could not be considered "sane".
3753	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3754  alias in your environment" "$LINENO" 5
3755     fi
3756     if test "$2" = conftest.file || test $am_try -eq 2; then
3757       break
3758     fi
3759     # Just in case.
3760     sleep 1
3761     am_has_slept=yes
3762   done
3763   test "$2" = conftest.file
3764   )
3765then
3766   # Ok.
3767   :
3768else
3769   as_fn_error $? "newly created file is older than distributed files!
3770Check your system clock" "$LINENO" 5
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773$as_echo "yes" >&6; }
3774# If we didn't sleep, we still need to ensure time stamps of config.status and
3775# generated files are strictly newer.
3776am_sleep_pid=
3777if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3778  ( sleep 1 ) &
3779  am_sleep_pid=$!
3780fi
3781
3782rm -f conftest.file
3783
3784
3785am__api_version='1.14'
3786
3787# Find a good install program.  We prefer a C program (faster),
3788# so one script is as good as another.  But avoid the broken or
3789# incompatible versions:
3790# SysV /etc/install, /usr/sbin/install
3791# SunOS /usr/etc/install
3792# IRIX /sbin/install
3793# AIX /bin/install
3794# AmigaOS /C/install, which installs bootblocks on floppy discs
3795# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798# OS/2's system install, which has a completely different semantic
3799# ./install, which can be erroneously created by make from ./install.sh.
3800# Reject install programs that cannot install multiple files.
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3802$as_echo_n "checking for a BSD-compatible install... " >&6; }
3803if test -z "$INSTALL"; then
3804if ${ac_cv_path_install+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812    # Account for people who put trailing slashes in PATH elements.
3813case $as_dir/ in #((
3814  ./ | .// | /[cC]/* | \
3815  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3817  /usr/ucb/* ) ;;
3818  *)
3819    # OSF1 and SCO ODT 3.0 have their own names for install.
3820    # Don't use installbsd from OSF since it installs stuff as root
3821    # by default.
3822    for ac_prog in ginstall scoinst install; do
3823      for ac_exec_ext in '' $ac_executable_extensions; do
3824	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3825	  if test $ac_prog = install &&
3826	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827	    # AIX install.  It has an incompatible calling convention.
3828	    :
3829	  elif test $ac_prog = install &&
3830	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831	    # program-specific install script used by HP pwplus--don't use.
3832	    :
3833	  else
3834	    rm -rf conftest.one conftest.two conftest.dir
3835	    echo one > conftest.one
3836	    echo two > conftest.two
3837	    mkdir conftest.dir
3838	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3839	      test -s conftest.one && test -s conftest.two &&
3840	      test -s conftest.dir/conftest.one &&
3841	      test -s conftest.dir/conftest.two
3842	    then
3843	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844	      break 3
3845	    fi
3846	  fi
3847	fi
3848      done
3849    done
3850    ;;
3851esac
3852
3853  done
3854IFS=$as_save_IFS
3855
3856rm -rf conftest.one conftest.two conftest.dir
3857
3858fi
3859  if test "${ac_cv_path_install+set}" = set; then
3860    INSTALL=$ac_cv_path_install
3861  else
3862    # As a last resort, use the slow shell script.  Don't cache a
3863    # value for INSTALL within a source directory, because that will
3864    # break other packages using the cache if that directory is
3865    # removed, or if the value is a relative name.
3866    INSTALL=$ac_install_sh
3867  fi
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3870$as_echo "$INSTALL" >&6; }
3871
3872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873# It thinks the first close brace ends the variable substitution.
3874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880test "$program_prefix" != NONE &&
3881  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3882# Use a double $ so make ignores it.
3883test "$program_suffix" != NONE &&
3884  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3885# Double any \ or $.
3886# By default was `s,x,x', remove it if useless.
3887ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3888program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3889
3890# expand $ac_aux_dir to an absolute path
3891am_aux_dir=`cd $ac_aux_dir && pwd`
3892
3893if test x"${MISSING+set}" != xset; then
3894  case $am_aux_dir in
3895  *\ * | *\	*)
3896    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3897  *)
3898    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3899  esac
3900fi
3901# Use eval to expand $SHELL
3902if eval "$MISSING --is-lightweight"; then
3903  am_missing_run="$MISSING "
3904else
3905  am_missing_run=
3906  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3907$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3908fi
3909
3910if test x"${install_sh}" != xset; then
3911  case $am_aux_dir in
3912  *\ * | *\	*)
3913    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3914  *)
3915    install_sh="\${SHELL} $am_aux_dir/install-sh"
3916  esac
3917fi
3918
3919# Installed binaries are usually stripped using 'strip' when the user
3920# run "make install-strip".  However 'strip' might not be the right
3921# tool to use in cross-compilation environments, therefore Automake
3922# will honor the 'STRIP' environment variable to overrule this program.
3923if test "$cross_compiling" != no; then
3924  if test -n "$ac_tool_prefix"; then
3925  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}strip; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
3929if ${ac_cv_prog_STRIP+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932  if test -n "$STRIP"; then
3933  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940    for ac_exec_ext in '' $ac_executable_extensions; do
3941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947  done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952STRIP=$ac_cv_prog_STRIP
3953if test -n "$STRIP"; then
3954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3955$as_echo "$STRIP" >&6; }
3956else
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961
3962fi
3963if test -z "$ac_cv_prog_STRIP"; then
3964  ac_ct_STRIP=$STRIP
3965  # Extract the first word of "strip", so it can be a program name with args.
3966set dummy strip; ac_word=$2
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968$as_echo_n "checking for $ac_word... " >&6; }
3969if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3970  $as_echo_n "(cached) " >&6
3971else
3972  if test -n "$ac_ct_STRIP"; then
3973  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3974else
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978  IFS=$as_save_IFS
3979  test -z "$as_dir" && as_dir=.
3980    for ac_exec_ext in '' $ac_executable_extensions; do
3981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982    ac_cv_prog_ac_ct_STRIP="strip"
3983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984    break 2
3985  fi
3986done
3987  done
3988IFS=$as_save_IFS
3989
3990fi
3991fi
3992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3993if test -n "$ac_ct_STRIP"; then
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3995$as_echo "$ac_ct_STRIP" >&6; }
3996else
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001  if test "x$ac_ct_STRIP" = x; then
4002    STRIP=":"
4003  else
4004    case $cross_compiling:$ac_tool_warned in
4005yes:)
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008ac_tool_warned=yes ;;
4009esac
4010    STRIP=$ac_ct_STRIP
4011  fi
4012else
4013  STRIP="$ac_cv_prog_STRIP"
4014fi
4015
4016fi
4017INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4020$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4021if test -z "$MKDIR_P"; then
4022  if ${ac_cv_path_mkdir+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_prog in mkdir gmkdir; do
4031	 for ac_exec_ext in '' $ac_executable_extensions; do
4032	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4033	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4034	     'mkdir (GNU coreutils) '* | \
4035	     'mkdir (coreutils) '* | \
4036	     'mkdir (fileutils) '4.1*)
4037	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4038	       break 3;;
4039	   esac
4040	 done
4041       done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046
4047  test -d ./--version && rmdir ./--version
4048  if test "${ac_cv_path_mkdir+set}" = set; then
4049    MKDIR_P="$ac_cv_path_mkdir -p"
4050  else
4051    # As a last resort, use the slow shell script.  Don't cache a
4052    # value for MKDIR_P within a source directory, because that will
4053    # break other packages using the cache if that directory is
4054    # removed, or if the value is a relative name.
4055    MKDIR_P="$ac_install_sh -d"
4056  fi
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4059$as_echo "$MKDIR_P" >&6; }
4060
4061for ac_prog in gawk mawk nawk awk
4062do
4063  # Extract the first word of "$ac_prog", so it can be a program name with args.
4064set dummy $ac_prog; ac_word=$2
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066$as_echo_n "checking for $ac_word... " >&6; }
4067if ${ac_cv_prog_AWK+:} false; then :
4068  $as_echo_n "(cached) " >&6
4069else
4070  if test -n "$AWK"; then
4071  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076  IFS=$as_save_IFS
4077  test -z "$as_dir" && as_dir=.
4078    for ac_exec_ext in '' $ac_executable_extensions; do
4079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080    ac_cv_prog_AWK="$ac_prog"
4081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082    break 2
4083  fi
4084done
4085  done
4086IFS=$as_save_IFS
4087
4088fi
4089fi
4090AWK=$ac_cv_prog_AWK
4091if test -n "$AWK"; then
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4093$as_echo "$AWK" >&6; }
4094else
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099
4100  test -n "$AWK" && break
4101done
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4105set x ${MAKE-make}
4106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  cat >conftest.make <<\_ACEOF
4111SHELL = /bin/sh
4112all:
4113	@echo '@@@%%%=$(MAKE)=@@@%%%'
4114_ACEOF
4115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4116case `${MAKE-make} -f conftest.make 2>/dev/null` in
4117  *@@@%%%=?*=@@@%%%*)
4118    eval ac_cv_prog_make_${ac_make}_set=yes;;
4119  *)
4120    eval ac_cv_prog_make_${ac_make}_set=no;;
4121esac
4122rm -f conftest.make
4123fi
4124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126$as_echo "yes" >&6; }
4127  SET_MAKE=
4128else
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131  SET_MAKE="MAKE=${MAKE-make}"
4132fi
4133
4134rm -rf .tst 2>/dev/null
4135mkdir .tst 2>/dev/null
4136if test -d .tst; then
4137  am__leading_dot=.
4138else
4139  am__leading_dot=_
4140fi
4141rmdir .tst 2>/dev/null
4142
4143# Check whether --enable-silent-rules was given.
4144if test "${enable_silent_rules+set}" = set; then :
4145  enableval=$enable_silent_rules;
4146fi
4147
4148case $enable_silent_rules in # (((
4149  yes) AM_DEFAULT_VERBOSITY=0;;
4150   no) AM_DEFAULT_VERBOSITY=1;;
4151    *) AM_DEFAULT_VERBOSITY=1;;
4152esac
4153am_make=${MAKE-make}
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4155$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4156if ${am_cv_make_support_nested_variables+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  if $as_echo 'TRUE=$(BAR$(V))
4160BAR0=false
4161BAR1=true
4162V=1
4163am__doit:
4164	@$(TRUE)
4165.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4166  am_cv_make_support_nested_variables=yes
4167else
4168  am_cv_make_support_nested_variables=no
4169fi
4170fi
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4172$as_echo "$am_cv_make_support_nested_variables" >&6; }
4173if test $am_cv_make_support_nested_variables = yes; then
4174    AM_V='$(V)'
4175  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4176else
4177  AM_V=$AM_DEFAULT_VERBOSITY
4178  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4179fi
4180AM_BACKSLASH='\'
4181
4182if test "`cd $srcdir && pwd`" != "`pwd`"; then
4183  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4184  # is not polluted with repeated "-I."
4185  am__isrc=' -I$(srcdir)'
4186  # test to see if srcdir already configured
4187  if test -f $srcdir/config.status; then
4188    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4189  fi
4190fi
4191
4192# test whether we have cygpath
4193if test -z "$CYGPATH_W"; then
4194  if (cygpath --version) >/dev/null 2>/dev/null; then
4195    CYGPATH_W='cygpath -w'
4196  else
4197    CYGPATH_W=echo
4198  fi
4199fi
4200
4201
4202# Define the identity of the package.
4203 PACKAGE='ImageMagick'
4204 VERSION='7.0.0-0'
4205
4206
4207cat >>confdefs.h <<_ACEOF
4208#define PACKAGE "$PACKAGE"
4209_ACEOF
4210
4211
4212cat >>confdefs.h <<_ACEOF
4213#define VERSION "$VERSION"
4214_ACEOF
4215
4216# Some tools Automake needs.
4217
4218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4219
4220
4221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4222
4223
4224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4225
4226
4227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4228
4229
4230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4231
4232# For better backward compatibility.  To be removed once Automake 1.9.x
4233# dies out for good.  For more background, see:
4234# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4235# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4236mkdir_p='$(MKDIR_P)'
4237
4238# We need awk for the "check" target.  The system "awk" is bad on
4239# some platforms.
4240# Always define AMTAR for backward compatibility.  Yes, it's still used
4241# in the wild :-(  We should find a proper way to deprecate it ...
4242AMTAR='$${TAR-tar}'
4243
4244
4245# We'll loop over all known methods to create a tar archive until one works.
4246_am_tools='gnutar  pax cpio none'
4247
4248am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4249
4250
4251
4252
4253
4254
4255# POSIX will say in a future version that running "rm -f" with no argument
4256# is OK; and we want to be able to make that assumption in our Makefile
4257# recipes.  So use an aggressive probe to check that the usage we want is
4258# actually supported "in the wild" to an acceptable degree.
4259# See automake bug#10828.
4260# To make any issue more visible, cause the running configure to be aborted
4261# by default if the 'rm' program in use doesn't match our expectations; the
4262# user can still override this though.
4263if rm -f && rm -fr && rm -rf; then : OK; else
4264  cat >&2 <<'END'
4265Oops!
4266
4267Your 'rm' program seems unable to run without file operands specified
4268on the command line, even when the '-f' option is present.  This is contrary
4269to the behaviour of most rm programs out there, and not conforming with
4270the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4271
4272Please tell bug-automake@gnu.org about your system, including the value
4273of your $PATH and any error possibly output before this message.  This
4274can help us improve future automake versions.
4275
4276END
4277  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4278    echo 'Configuration will proceed anyway, since you have set the' >&2
4279    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4280    echo >&2
4281  else
4282    cat >&2 <<'END'
4283Aborting the configuration process, to ensure you take notice of the issue.
4284
4285You can download and install GNU coreutils to get an 'rm' implementation
4286that behaves properly: <http://www.gnu.org/software/coreutils/>.
4287
4288If you want to complete the configuration process using your problematic
4289'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4290to "yes", and re-run configure.
4291
4292END
4293    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4294  fi
4295fi
4296
4297# Enable support for silent build rules
4298# Check whether --enable-silent-rules was given.
4299if test "${enable_silent_rules+set}" = set; then :
4300  enableval=$enable_silent_rules;
4301fi
4302
4303case $enable_silent_rules in # (((
4304  yes) AM_DEFAULT_VERBOSITY=0;;
4305   no) AM_DEFAULT_VERBOSITY=1;;
4306    *) AM_DEFAULT_VERBOSITY=0;;
4307esac
4308am_make=${MAKE-make}
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4310$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4311if ${am_cv_make_support_nested_variables+:} false; then :
4312  $as_echo_n "(cached) " >&6
4313else
4314  if $as_echo 'TRUE=$(BAR$(V))
4315BAR0=false
4316BAR1=true
4317V=1
4318am__doit:
4319	@$(TRUE)
4320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4321  am_cv_make_support_nested_variables=yes
4322else
4323  am_cv_make_support_nested_variables=no
4324fi
4325fi
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4327$as_echo "$am_cv_make_support_nested_variables" >&6; }
4328if test $am_cv_make_support_nested_variables = yes; then
4329    AM_V='$(V)'
4330  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4331else
4332  AM_V=$AM_DEFAULT_VERBOSITY
4333  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4334fi
4335AM_BACKSLASH='\'
4336
4337
4338# versionning of library
4339MAGICK_LIB_VERSION="0x"
4340if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4341  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4342fi
4343MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4344if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4345  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4346fi
4347MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4348if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4349  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4350fi
4351MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4352
4353
4354# Definition used to define MagickLibVersionText in version.h
4355MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4356
4357
4358# Definition used to define MagickLibVersionNumber in version.h
4359MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4360
4361
4362MAGICKPP_LIB_VERSION="0x"
4363if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4364  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4365fi
4366MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4367if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4368  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4369fi
4370MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4371if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4372  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4373fi
4374MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4375
4376
4377# Definition used to define MagickLibVersionText in version.h
4378MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4379
4380
4381# Definition used to define MagickLibVersionNumber in version.h
4382MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4383
4384
4385
4386
4387# Regenerate config.status if ChangeLog or version.sh is updated.
4388CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4389
4390
4391PERLMAINCC=$CC
4392
4393MAGICK_CFLAGS=''
4394MAGICK_CPPFLAGS=$CPPFLAGS_USER
4395MAGICK_PCFLAGS=$CPPFLAGS_USER
4396MAGICK_LDFLAGS=''
4397MAGICK_LIBS=''
4398MAGICK_FEATURES=''
4399
4400#
4401# Evaluate shell variable equivalents to Makefile directory variables
4402#
4403if test "x$prefix" = xNONE; then
4404    prefix=$ac_default_prefix
4405fi
4406# Let make expand exec_prefix.
4407if test "x$exec_prefix" = xNONE; then
4408    exec_prefix='${prefix}'
4409fi
4410
4411#
4412eval "eval PREFIX_DIR=${prefix}"
4413
4414eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4415
4416eval "eval BIN_DIR=$bindir"
4417
4418eval "eval SBIN_DIR=$sbindir"
4419
4420eval "eval LIBEXEC_DIR=$libexecdir"
4421
4422eval "eval DATA_DIR=$datadir"
4423
4424eval "eval DOC_DIR=$datadir/doc"
4425
4426eval "eval SYSCONF_DIR=$sysconfdir"
4427
4428eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4429
4430eval "eval LOCALSTATE_DIR=$localstatedir"
4431
4432eval "eval LIB_DIR=$libdir"
4433
4434eval "eval INCLUDE_DIR=$includedir"
4435
4436eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4437
4438eval "eval INFO_DIR=$infodir"
4439
4440eval "eval MAN_DIR=$mandir"
4441
4442
4443# Get full paths to source and build directories
4444srcdirfull="`cd $srcdir && pwd`"
4445builddir="`pwd`"
4446
4447#
4448# Compute variables useful for running uninstalled software.
4449#
4450MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4451MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4452MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4453MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4454DIRSEP=':'
4455case "${build_os}" in
4456    mingw* )
4457        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4458        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4459        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4460        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4461        DIRSEP=';'
4462    ;;
4463esac
4464case "${host_os}" in
4465  mingw* )
4466    DIRSEP=';'
4467    ;;
4468esac
4469
4470
4471
4472
4473
4474
4475
4476#
4477# Enable OS features.
4478#
4479DEPDIR="${am__leading_dot}deps"
4480
4481ac_config_commands="$ac_config_commands depfiles"
4482
4483
4484am_make=${MAKE-make}
4485cat > confinc << 'END'
4486am__doit:
4487	@echo this is the am__doit target
4488.PHONY: am__doit
4489END
4490# If we don't find an include directive, just comment out the code.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4492$as_echo_n "checking for style of include used by $am_make... " >&6; }
4493am__include="#"
4494am__quote=
4495_am_result=none
4496# First try GNU make style include.
4497echo "include confinc" > confmf
4498# Ignore all kinds of additional output from 'make'.
4499case `$am_make -s -f confmf 2> /dev/null` in #(
4500*the\ am__doit\ target*)
4501  am__include=include
4502  am__quote=
4503  _am_result=GNU
4504  ;;
4505esac
4506# Now try BSD make style include.
4507if test "$am__include" = "#"; then
4508   echo '.include "confinc"' > confmf
4509   case `$am_make -s -f confmf 2> /dev/null` in #(
4510   *the\ am__doit\ target*)
4511     am__include=.include
4512     am__quote="\""
4513     _am_result=BSD
4514     ;;
4515   esac
4516fi
4517
4518
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4520$as_echo "$_am_result" >&6; }
4521rm -f confinc confmf
4522
4523# Check whether --enable-dependency-tracking was given.
4524if test "${enable_dependency_tracking+set}" = set; then :
4525  enableval=$enable_dependency_tracking;
4526fi
4527
4528if test "x$enable_dependency_tracking" != xno; then
4529  am_depcomp="$ac_aux_dir/depcomp"
4530  AMDEPBACKSLASH='\'
4531  am__nodep='_no'
4532fi
4533 if test "x$enable_dependency_tracking" != xno; then
4534  AMDEP_TRUE=
4535  AMDEP_FALSE='#'
4536else
4537  AMDEP_TRUE='#'
4538  AMDEP_FALSE=
4539fi
4540
4541
4542ac_ext=c
4543ac_cpp='$CPP $CPPFLAGS'
4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547if test -n "$ac_tool_prefix"; then
4548  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4549set dummy ${ac_tool_prefix}gcc; ac_word=$2
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551$as_echo_n "checking for $ac_word... " >&6; }
4552if ${ac_cv_prog_CC+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -n "$CC"; then
4556  ac_cv_prog_CC="$CC" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  test -z "$as_dir" && as_dir=.
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567    break 2
4568  fi
4569done
4570  done
4571IFS=$as_save_IFS
4572
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578$as_echo "$CC" >&6; }
4579else
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584
4585fi
4586if test -z "$ac_cv_prog_CC"; then
4587  ac_ct_CC=$CC
4588  # Extract the first word of "gcc", so it can be a program name with args.
4589set dummy gcc; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if ${ac_cv_prog_ac_ct_CC+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test -n "$ac_ct_CC"; then
4596  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603    for ac_exec_ext in '' $ac_executable_extensions; do
4604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605    ac_cv_prog_ac_ct_CC="gcc"
4606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607    break 2
4608  fi
4609done
4610  done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615ac_ct_CC=$ac_cv_prog_ac_ct_CC
4616if test -n "$ac_ct_CC"; then
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4618$as_echo "$ac_ct_CC" >&6; }
4619else
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624  if test "x$ac_ct_CC" = x; then
4625    CC=""
4626  else
4627    case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633    CC=$ac_ct_CC
4634  fi
4635else
4636  CC="$ac_cv_prog_CC"
4637fi
4638
4639if test -z "$CC"; then
4640          if test -n "$ac_tool_prefix"; then
4641    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4642set dummy ${ac_tool_prefix}cc; ac_word=$2
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644$as_echo_n "checking for $ac_word... " >&6; }
4645if ${ac_cv_prog_CC+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  if test -n "$CC"; then
4649  ac_cv_prog_CC="$CC" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658    ac_cv_prog_CC="${ac_tool_prefix}cc"
4659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663  done
4664IFS=$as_save_IFS
4665
4666fi
4667fi
4668CC=$ac_cv_prog_CC
4669if test -n "$CC"; then
4670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4671$as_echo "$CC" >&6; }
4672else
4673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674$as_echo "no" >&6; }
4675fi
4676
4677
4678  fi
4679fi
4680if test -z "$CC"; then
4681  # Extract the first word of "cc", so it can be a program name with args.
4682set dummy cc; ac_word=$2
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
4685if ${ac_cv_prog_CC+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if test -n "$CC"; then
4689  ac_cv_prog_CC="$CC" # Let the user override the test.
4690else
4691  ac_prog_rejected=no
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700       ac_prog_rejected=yes
4701       continue
4702     fi
4703    ac_cv_prog_CC="cc"
4704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705    break 2
4706  fi
4707done
4708  done
4709IFS=$as_save_IFS
4710
4711if test $ac_prog_rejected = yes; then
4712  # We found a bogon in the path, so make sure we never use it.
4713  set dummy $ac_cv_prog_CC
4714  shift
4715  if test $# != 0; then
4716    # We chose a different compiler from the bogus one.
4717    # However, it has the same basename, so the bogon will be chosen
4718    # first if we set CC to just the basename; use the full file name.
4719    shift
4720    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4721  fi
4722fi
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728$as_echo "$CC" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735fi
4736if test -z "$CC"; then
4737  if test -n "$ac_tool_prefix"; then
4738  for ac_prog in cl.exe
4739  do
4740    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if ${ac_cv_prog_CC+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  if test -n "$CC"; then
4748  ac_cv_prog_CC="$CC" # Let the user override the test.
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753  IFS=$as_save_IFS
4754  test -z "$as_dir" && as_dir=.
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765fi
4766fi
4767CC=$ac_cv_prog_CC
4768if test -n "$CC"; then
4769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770$as_echo "$CC" >&6; }
4771else
4772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777    test -n "$CC" && break
4778  done
4779fi
4780if test -z "$CC"; then
4781  ac_ct_CC=$CC
4782  for ac_prog in cl.exe
4783do
4784  # Extract the first word of "$ac_prog", so it can be a program name with args.
4785set dummy $ac_prog; ac_word=$2
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787$as_echo_n "checking for $ac_word... " >&6; }
4788if ${ac_cv_prog_ac_ct_CC+:} false; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791  if test -n "$ac_ct_CC"; then
4792  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799    for ac_exec_ext in '' $ac_executable_extensions; do
4800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801    ac_cv_prog_ac_ct_CC="$ac_prog"
4802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803    break 2
4804  fi
4805done
4806  done
4807IFS=$as_save_IFS
4808
4809fi
4810fi
4811ac_ct_CC=$ac_cv_prog_ac_ct_CC
4812if test -n "$ac_ct_CC"; then
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4814$as_echo "$ac_ct_CC" >&6; }
4815else
4816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817$as_echo "no" >&6; }
4818fi
4819
4820
4821  test -n "$ac_ct_CC" && break
4822done
4823
4824  if test "x$ac_ct_CC" = x; then
4825    CC=""
4826  else
4827    case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833    CC=$ac_ct_CC
4834  fi
4835fi
4836
4837fi
4838
4839
4840test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4842as_fn_error $? "no acceptable C compiler found in \$PATH
4843See \`config.log' for more details" "$LINENO" 5; }
4844
4845# Provide some information about the compiler.
4846$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4847set X $ac_compile
4848ac_compiler=$2
4849for ac_option in --version -v -V -qversion; do
4850  { { ac_try="$ac_compiler $ac_option >&5"
4851case "(($ac_try" in
4852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853  *) ac_try_echo=$ac_try;;
4854esac
4855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
4857  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4858  ac_status=$?
4859  if test -s conftest.err; then
4860    sed '10a\
4861... rest of stderr output deleted ...
4862         10q' conftest.err >conftest.er1
4863    cat conftest.er1 >&5
4864  fi
4865  rm -f conftest.er1 conftest.err
4866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867  test $ac_status = 0; }
4868done
4869
4870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h.  */
4872
4873int
4874main ()
4875{
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881ac_clean_files_save=$ac_clean_files
4882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4883# Try to create an executable without -o first, disregard a.out.
4884# It will help us diagnose broken compilers, and finding out an intuition
4885# of exeext.
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4887$as_echo_n "checking whether the C compiler works... " >&6; }
4888ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4889
4890# The possible output files:
4891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4892
4893ac_rmfiles=
4894for ac_file in $ac_files
4895do
4896  case $ac_file in
4897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4898    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4899  esac
4900done
4901rm -f $ac_rmfiles
4902
4903if { { ac_try="$ac_link_default"
4904case "(($ac_try" in
4905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906  *) ac_try_echo=$ac_try;;
4907esac
4908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
4910  (eval "$ac_link_default") 2>&5
4911  ac_status=$?
4912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913  test $ac_status = 0; }; then :
4914  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4916# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4917# so that the user can short-circuit this test for compilers unknown to
4918# Autoconf.
4919for ac_file in $ac_files ''
4920do
4921  test -f "$ac_file" || continue
4922  case $ac_file in
4923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4924	;;
4925    [ab].out )
4926	# We found the default executable, but exeext='' is most
4927	# certainly right.
4928	break;;
4929    *.* )
4930	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4931	then :; else
4932	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4933	fi
4934	# We set ac_cv_exeext here because the later test for it is not
4935	# safe: cross compilers may not add the suffix if given an `-o'
4936	# argument, so we may need to know it at that point already.
4937	# Even if this section looks crufty: it has the advantage of
4938	# actually working.
4939	break;;
4940    * )
4941	break;;
4942  esac
4943done
4944test "$ac_cv_exeext" = no && ac_cv_exeext=
4945
4946else
4947  ac_file=''
4948fi
4949if test -z "$ac_file"; then :
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952$as_echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
4955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957as_fn_error 77 "C compiler cannot create executables
4958See \`config.log' for more details" "$LINENO" 5; }
4959else
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961$as_echo "yes" >&6; }
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4964$as_echo_n "checking for C compiler default output file name... " >&6; }
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4966$as_echo "$ac_file" >&6; }
4967ac_exeext=$ac_cv_exeext
4968
4969rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4970ac_clean_files=$ac_clean_files_save
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4972$as_echo_n "checking for suffix of executables... " >&6; }
4973if { { ac_try="$ac_link"
4974case "(($ac_try" in
4975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976  *) ac_try_echo=$ac_try;;
4977esac
4978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979$as_echo "$ac_try_echo"; } >&5
4980  (eval "$ac_link") 2>&5
4981  ac_status=$?
4982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983  test $ac_status = 0; }; then :
4984  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4985# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4986# work properly (i.e., refer to `conftest.exe'), while it won't with
4987# `rm'.
4988for ac_file in conftest.exe conftest conftest.*; do
4989  test -f "$ac_file" || continue
4990  case $ac_file in
4991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4992    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993	  break;;
4994    * ) break;;
4995  esac
4996done
4997else
4998  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5001See \`config.log' for more details" "$LINENO" 5; }
5002fi
5003rm -f conftest conftest$ac_cv_exeext
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5005$as_echo "$ac_cv_exeext" >&6; }
5006
5007rm -f conftest.$ac_ext
5008EXEEXT=$ac_cv_exeext
5009ac_exeext=$EXEEXT
5010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012#include <stdio.h>
5013int
5014main ()
5015{
5016FILE *f = fopen ("conftest.out", "w");
5017 return ferror (f) || fclose (f) != 0;
5018
5019  ;
5020  return 0;
5021}
5022_ACEOF
5023ac_clean_files="$ac_clean_files conftest.out"
5024# Check that the compiler produces executables we can run.  If not, either
5025# the compiler is broken, or we cross compile.
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5027$as_echo_n "checking whether we are cross compiling... " >&6; }
5028if test "$cross_compiling" != yes; then
5029  { { ac_try="$ac_link"
5030case "(($ac_try" in
5031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032  *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035$as_echo "$ac_try_echo"; } >&5
5036  (eval "$ac_link") 2>&5
5037  ac_status=$?
5038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5039  test $ac_status = 0; }
5040  if { ac_try='./conftest$ac_cv_exeext'
5041  { { case "(($ac_try" in
5042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043  *) ac_try_echo=$ac_try;;
5044esac
5045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
5047  (eval "$ac_try") 2>&5
5048  ac_status=$?
5049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050  test $ac_status = 0; }; }; then
5051    cross_compiling=no
5052  else
5053    if test "$cross_compiling" = maybe; then
5054	cross_compiling=yes
5055    else
5056	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058as_fn_error $? "cannot run C compiled programs.
5059If you meant to cross compile, use \`--host'.
5060See \`config.log' for more details" "$LINENO" 5; }
5061    fi
5062  fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5065$as_echo "$cross_compiling" >&6; }
5066
5067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5068ac_clean_files=$ac_clean_files_save
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5070$as_echo_n "checking for suffix of object files... " >&6; }
5071if ${ac_cv_objext+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076
5077int
5078main ()
5079{
5080
5081  ;
5082  return 0;
5083}
5084_ACEOF
5085rm -f conftest.o conftest.obj
5086if { { ac_try="$ac_compile"
5087case "(($ac_try" in
5088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089  *) ac_try_echo=$ac_try;;
5090esac
5091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5092$as_echo "$ac_try_echo"; } >&5
5093  (eval "$ac_compile") 2>&5
5094  ac_status=$?
5095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096  test $ac_status = 0; }; then :
5097  for ac_file in conftest.o conftest.obj conftest.*; do
5098  test -f "$ac_file" || continue;
5099  case $ac_file in
5100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5101    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5102       break;;
5103  esac
5104done
5105else
5106  $as_echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5111as_fn_error $? "cannot compute suffix of object files: cannot compile
5112See \`config.log' for more details" "$LINENO" 5; }
5113fi
5114rm -f conftest.$ac_cv_objext conftest.$ac_ext
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5117$as_echo "$ac_cv_objext" >&6; }
5118OBJEXT=$ac_cv_objext
5119ac_objext=$OBJEXT
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5122if ${ac_cv_c_compiler_gnu+:} false; then :
5123  $as_echo_n "(cached) " >&6
5124else
5125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h.  */
5127
5128int
5129main ()
5130{
5131#ifndef __GNUC__
5132       choke me
5133#endif
5134
5135  ;
5136  return 0;
5137}
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140  ac_compiler_gnu=yes
5141else
5142  ac_compiler_gnu=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145ac_cv_c_compiler_gnu=$ac_compiler_gnu
5146
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5149$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5150if test $ac_compiler_gnu = yes; then
5151  GCC=yes
5152else
5153  GCC=
5154fi
5155ac_test_CFLAGS=${CFLAGS+set}
5156ac_save_CFLAGS=$CFLAGS
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5158$as_echo_n "checking whether $CC accepts -g... " >&6; }
5159if ${ac_cv_prog_cc_g+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  ac_save_c_werror_flag=$ac_c_werror_flag
5163   ac_c_werror_flag=yes
5164   ac_cv_prog_cc_g=no
5165   CFLAGS="-g"
5166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h.  */
5168
5169int
5170main ()
5171{
5172
5173  ;
5174  return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178  ac_cv_prog_cc_g=yes
5179else
5180  CFLAGS=""
5181      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183
5184int
5185main ()
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192if ac_fn_c_try_compile "$LINENO"; then :
5193
5194else
5195  ac_c_werror_flag=$ac_save_c_werror_flag
5196	 CFLAGS="-g"
5197	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199
5200int
5201main ()
5202{
5203
5204  ;
5205  return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_compile "$LINENO"; then :
5209  ac_cv_prog_cc_g=yes
5210fi
5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212fi
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214fi
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216   ac_c_werror_flag=$ac_save_c_werror_flag
5217fi
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5219$as_echo "$ac_cv_prog_cc_g" >&6; }
5220if test "$ac_test_CFLAGS" = set; then
5221  CFLAGS=$ac_save_CFLAGS
5222elif test $ac_cv_prog_cc_g = yes; then
5223  if test "$GCC" = yes; then
5224    CFLAGS="-g -O2"
5225  else
5226    CFLAGS="-g"
5227  fi
5228else
5229  if test "$GCC" = yes; then
5230    CFLAGS="-O2"
5231  else
5232    CFLAGS=
5233  fi
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5237if ${ac_cv_prog_cc_c89+:} false; then :
5238  $as_echo_n "(cached) " >&6
5239else
5240  ac_cv_prog_cc_c89=no
5241ac_save_CC=$CC
5242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244#include <stdarg.h>
5245#include <stdio.h>
5246struct stat;
5247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5248struct buf { int x; };
5249FILE * (*rcsopen) (struct buf *, struct stat *, int);
5250static char *e (p, i)
5251     char **p;
5252     int i;
5253{
5254  return p[i];
5255}
5256static char *f (char * (*g) (char **, int), char **p, ...)
5257{
5258  char *s;
5259  va_list v;
5260  va_start (v,p);
5261  s = g (p, va_arg (v,int));
5262  va_end (v);
5263  return s;
5264}
5265
5266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5267   function prototypes and stuff, but not '\xHH' hex character constants.
5268   These don't provoke an error unfortunately, instead are silently treated
5269   as 'x'.  The following induces an error, until -std is added to get
5270   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5271   array size at least.  It's necessary to write '\x00'==0 to get something
5272   that's true only with -std.  */
5273int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5274
5275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5276   inside strings and character constants.  */
5277#define FOO(x) 'x'
5278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5279
5280int test (int i, double x);
5281struct s1 {int (*f) (int a);};
5282struct s2 {int (*f) (double a);};
5283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5284int argc;
5285char **argv;
5286int
5287main ()
5288{
5289return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5295	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5296do
5297  CC="$ac_save_CC $ac_arg"
5298  if ac_fn_c_try_compile "$LINENO"; then :
5299  ac_cv_prog_cc_c89=$ac_arg
5300fi
5301rm -f core conftest.err conftest.$ac_objext
5302  test "x$ac_cv_prog_cc_c89" != "xno" && break
5303done
5304rm -f conftest.$ac_ext
5305CC=$ac_save_CC
5306
5307fi
5308# AC_CACHE_VAL
5309case "x$ac_cv_prog_cc_c89" in
5310  x)
5311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5312$as_echo "none needed" >&6; } ;;
5313  xno)
5314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5315$as_echo "unsupported" >&6; } ;;
5316  *)
5317    CC="$CC $ac_cv_prog_cc_c89"
5318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5320esac
5321if test "x$ac_cv_prog_cc_c89" != xno; then :
5322
5323fi
5324
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
5331ac_ext=c
5332ac_cpp='$CPP $CPPFLAGS'
5333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5337$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5338if ${am_cv_prog_cc_c_o+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343
5344int
5345main ()
5346{
5347
5348  ;
5349  return 0;
5350}
5351_ACEOF
5352  # Make sure it works both with $CC and with simple cc.
5353  # Following AC_PROG_CC_C_O, we do the test twice because some
5354  # compilers refuse to overwrite an existing .o file with -o,
5355  # though they will create one.
5356  am_cv_prog_cc_c_o=yes
5357  for am_i in 1 2; do
5358    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5359   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } \
5363         && test -f conftest2.$ac_objext; then
5364      : OK
5365    else
5366      am_cv_prog_cc_c_o=no
5367      break
5368    fi
5369  done
5370  rm -f core conftest*
5371  unset am_i
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5374$as_echo "$am_cv_prog_cc_c_o" >&6; }
5375if test "$am_cv_prog_cc_c_o" != yes; then
5376   # Losing compiler, so override with the script.
5377   # FIXME: It is wrong to rewrite CC.
5378   # But if we don't then we get into trouble of one sort or another.
5379   # A longer-term fix would be to have automake use am__CC in this case,
5380   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5381   CC="$am_aux_dir/compile $CC"
5382fi
5383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390depcc="$CC"   am_compiler_list=
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393$as_echo_n "checking dependency style of $depcc... " >&6; }
5394if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5398  # We make a subdir and do the tests there.  Otherwise we can end up
5399  # making bogus files that we don't know about and never remove.  For
5400  # instance it was reported that on HP-UX the gcc test will end up
5401  # making a dummy file named 'D' -- because '-MD' means "put the output
5402  # in D".
5403  rm -rf conftest.dir
5404  mkdir conftest.dir
5405  # Copy depcomp to subdir because otherwise we won't find it if we're
5406  # using a relative directory.
5407  cp "$am_depcomp" conftest.dir
5408  cd conftest.dir
5409  # We will build objects and dependencies in a subdirectory because
5410  # it helps to detect inapplicable dependency modes.  For instance
5411  # both Tru64's cc and ICC support -MD to output dependencies as a
5412  # side effect of compilation, but ICC will put the dependencies in
5413  # the current directory while Tru64 will put them in the object
5414  # directory.
5415  mkdir sub
5416
5417  am_cv_CC_dependencies_compiler_type=none
5418  if test "$am_compiler_list" = ""; then
5419     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5420  fi
5421  am__universal=false
5422  case " $depcc " in #(
5423     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5424     esac
5425
5426  for depmode in $am_compiler_list; do
5427    # Setup a source with many dependencies, because some compilers
5428    # like to wrap large dependency lists on column 80 (with \), and
5429    # we should not choose a depcomp mode which is confused by this.
5430    #
5431    # We need to recreate these files for each test, as the compiler may
5432    # overwrite some of them when testing with obscure command lines.
5433    # This happens at least with the AIX C compiler.
5434    : > sub/conftest.c
5435    for i in 1 2 3 4 5 6; do
5436      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5437      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5438      # Solaris 10 /bin/sh.
5439      echo '/* dummy */' > sub/conftst$i.h
5440    done
5441    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5442
5443    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5444    # mode.  It turns out that the SunPro C++ compiler does not properly
5445    # handle '-M -o', and we need to detect this.  Also, some Intel
5446    # versions had trouble with output in subdirs.
5447    am__obj=sub/conftest.${OBJEXT-o}
5448    am__minus_obj="-o $am__obj"
5449    case $depmode in
5450    gcc)
5451      # This depmode causes a compiler race in universal mode.
5452      test "$am__universal" = false || continue
5453      ;;
5454    nosideeffect)
5455      # After this tag, mechanisms are not by side-effect, so they'll
5456      # only be used when explicitly requested.
5457      if test "x$enable_dependency_tracking" = xyes; then
5458	continue
5459      else
5460	break
5461      fi
5462      ;;
5463    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5464      # This compiler won't grok '-c -o', but also, the minuso test has
5465      # not run yet.  These depmodes are late enough in the game, and
5466      # so weak that their functioning should not be impacted.
5467      am__obj=conftest.${OBJEXT-o}
5468      am__minus_obj=
5469      ;;
5470    none) break ;;
5471    esac
5472    if depmode=$depmode \
5473       source=sub/conftest.c object=$am__obj \
5474       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5475       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5476         >/dev/null 2>conftest.err &&
5477       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5478       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5480       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481      # icc doesn't choke on unknown options, it will just issue warnings
5482      # or remarks (even with -Werror).  So we grep stderr for any message
5483      # that says an option was ignored or not supported.
5484      # When given -MP, icc 7.0 and 7.1 complain thusly:
5485      #   icc: Command line warning: ignoring option '-M'; no argument required
5486      # The diagnosis changed in icc 8.0:
5487      #   icc: Command line remark: option '-MP' not supported
5488      if (grep 'ignoring option' conftest.err ||
5489          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490        am_cv_CC_dependencies_compiler_type=$depmode
5491        break
5492      fi
5493    fi
5494  done
5495
5496  cd ..
5497  rm -rf conftest.dir
5498else
5499  am_cv_CC_dependencies_compiler_type=none
5500fi
5501
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5504$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506
5507 if
5508  test "x$enable_dependency_tracking" != xno \
5509  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5510  am__fastdepCC_TRUE=
5511  am__fastdepCC_FALSE='#'
5512else
5513  am__fastdepCC_TRUE='#'
5514  am__fastdepCC_FALSE=
5515fi
5516
5517
5518
5519ac_ext=c
5520ac_cpp='$CPP $CPPFLAGS'
5521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5525$as_echo_n "checking how to run the C preprocessor... " >&6; }
5526# On Suns, sometimes $CPP names a directory.
5527if test -n "$CPP" && test -d "$CPP"; then
5528  CPP=
5529fi
5530if test -z "$CPP"; then
5531  if ${ac_cv_prog_CPP+:} false; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534      # Double quotes because CPP needs to be expanded
5535    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536    do
5537      ac_preproc_ok=false
5538for ac_c_preproc_warn_flag in '' yes
5539do
5540  # Use a header file that comes with gcc, so configuring glibc
5541  # with a fresh cross-compiler works.
5542  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543  # <limits.h> exists even on freestanding compilers.
5544  # On the NeXT, cc -E runs the code through the compiler's parser,
5545  # not just through cpp. "Syntax error" is here to catch this case.
5546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h.  */
5548#ifdef __STDC__
5549# include <limits.h>
5550#else
5551# include <assert.h>
5552#endif
5553		     Syntax error
5554_ACEOF
5555if ac_fn_c_try_cpp "$LINENO"; then :
5556
5557else
5558  # Broken: fails on valid input.
5559continue
5560fi
5561rm -f conftest.err conftest.i conftest.$ac_ext
5562
5563  # OK, works on sane cases.  Now check whether nonexistent headers
5564  # can be detected and how.
5565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h.  */
5567#include <ac_nonexistent.h>
5568_ACEOF
5569if ac_fn_c_try_cpp "$LINENO"; then :
5570  # Broken: success on invalid input.
5571continue
5572else
5573  # Passes both tests.
5574ac_preproc_ok=:
5575break
5576fi
5577rm -f conftest.err conftest.i conftest.$ac_ext
5578
5579done
5580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581rm -f conftest.i conftest.err conftest.$ac_ext
5582if $ac_preproc_ok; then :
5583  break
5584fi
5585
5586    done
5587    ac_cv_prog_CPP=$CPP
5588
5589fi
5590  CPP=$ac_cv_prog_CPP
5591else
5592  ac_cv_prog_CPP=$CPP
5593fi
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5595$as_echo "$CPP" >&6; }
5596ac_preproc_ok=false
5597for ac_c_preproc_warn_flag in '' yes
5598do
5599  # Use a header file that comes with gcc, so configuring glibc
5600  # with a fresh cross-compiler works.
5601  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602  # <limits.h> exists even on freestanding compilers.
5603  # On the NeXT, cc -E runs the code through the compiler's parser,
5604  # not just through cpp. "Syntax error" is here to catch this case.
5605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607#ifdef __STDC__
5608# include <limits.h>
5609#else
5610# include <assert.h>
5611#endif
5612		     Syntax error
5613_ACEOF
5614if ac_fn_c_try_cpp "$LINENO"; then :
5615
5616else
5617  # Broken: fails on valid input.
5618continue
5619fi
5620rm -f conftest.err conftest.i conftest.$ac_ext
5621
5622  # OK, works on sane cases.  Now check whether nonexistent headers
5623  # can be detected and how.
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626#include <ac_nonexistent.h>
5627_ACEOF
5628if ac_fn_c_try_cpp "$LINENO"; then :
5629  # Broken: success on invalid input.
5630continue
5631else
5632  # Passes both tests.
5633ac_preproc_ok=:
5634break
5635fi
5636rm -f conftest.err conftest.i conftest.$ac_ext
5637
5638done
5639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640rm -f conftest.i conftest.err conftest.$ac_ext
5641if $ac_preproc_ok; then :
5642
5643else
5644  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5647See \`config.log' for more details" "$LINENO" 5; }
5648fi
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5658$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5659if ${ac_cv_path_GREP+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  if test -z "$GREP"; then
5663  ac_path_GREP_found=false
5664  # Loop through the user's path and test for each of PROGNAME-LIST
5665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5667do
5668  IFS=$as_save_IFS
5669  test -z "$as_dir" && as_dir=.
5670    for ac_prog in grep ggrep; do
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5673      as_fn_executable_p "$ac_path_GREP" || continue
5674# Check for GNU ac_path_GREP and select it if it is found.
5675  # Check for GNU $ac_path_GREP
5676case `"$ac_path_GREP" --version 2>&1` in
5677*GNU*)
5678  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5679*)
5680  ac_count=0
5681  $as_echo_n 0123456789 >"conftest.in"
5682  while :
5683  do
5684    cat "conftest.in" "conftest.in" >"conftest.tmp"
5685    mv "conftest.tmp" "conftest.in"
5686    cp "conftest.in" "conftest.nl"
5687    $as_echo 'GREP' >> "conftest.nl"
5688    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690    as_fn_arith $ac_count + 1 && ac_count=$as_val
5691    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5692      # Best one so far, save it but keep looking for a better one
5693      ac_cv_path_GREP="$ac_path_GREP"
5694      ac_path_GREP_max=$ac_count
5695    fi
5696    # 10*(2^10) chars as input seems more than enough
5697    test $ac_count -gt 10 && break
5698  done
5699  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700esac
5701
5702      $ac_path_GREP_found && break 3
5703    done
5704  done
5705  done
5706IFS=$as_save_IFS
5707  if test -z "$ac_cv_path_GREP"; then
5708    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5709  fi
5710else
5711  ac_cv_path_GREP=$GREP
5712fi
5713
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5716$as_echo "$ac_cv_path_GREP" >&6; }
5717 GREP="$ac_cv_path_GREP"
5718
5719
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5721$as_echo_n "checking for egrep... " >&6; }
5722if ${ac_cv_path_EGREP+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5726   then ac_cv_path_EGREP="$GREP -E"
5727   else
5728     if test -z "$EGREP"; then
5729  ac_path_EGREP_found=false
5730  # Loop through the user's path and test for each of PROGNAME-LIST
5731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_prog in egrep; do
5737    for ac_exec_ext in '' $ac_executable_extensions; do
5738      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5739      as_fn_executable_p "$ac_path_EGREP" || continue
5740# Check for GNU ac_path_EGREP and select it if it is found.
5741  # Check for GNU $ac_path_EGREP
5742case `"$ac_path_EGREP" --version 2>&1` in
5743*GNU*)
5744  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5745*)
5746  ac_count=0
5747  $as_echo_n 0123456789 >"conftest.in"
5748  while :
5749  do
5750    cat "conftest.in" "conftest.in" >"conftest.tmp"
5751    mv "conftest.tmp" "conftest.in"
5752    cp "conftest.in" "conftest.nl"
5753    $as_echo 'EGREP' >> "conftest.nl"
5754    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756    as_fn_arith $ac_count + 1 && ac_count=$as_val
5757    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5758      # Best one so far, save it but keep looking for a better one
5759      ac_cv_path_EGREP="$ac_path_EGREP"
5760      ac_path_EGREP_max=$ac_count
5761    fi
5762    # 10*(2^10) chars as input seems more than enough
5763    test $ac_count -gt 10 && break
5764  done
5765  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
5767
5768      $ac_path_EGREP_found && break 3
5769    done
5770  done
5771  done
5772IFS=$as_save_IFS
5773  if test -z "$ac_cv_path_EGREP"; then
5774    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5775  fi
5776else
5777  ac_cv_path_EGREP=$EGREP
5778fi
5779
5780   fi
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5783$as_echo "$ac_cv_path_EGREP" >&6; }
5784 EGREP="$ac_cv_path_EGREP"
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5788$as_echo_n "checking for ANSI C header files... " >&6; }
5789if ${ac_cv_header_stdc+:} false; then :
5790  $as_echo_n "(cached) " >&6
5791else
5792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h.  */
5794#include <stdlib.h>
5795#include <stdarg.h>
5796#include <string.h>
5797#include <float.h>
5798
5799int
5800main ()
5801{
5802
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808  ac_cv_header_stdc=yes
5809else
5810  ac_cv_header_stdc=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814if test $ac_cv_header_stdc = yes; then
5815  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818#include <string.h>
5819
5820_ACEOF
5821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822  $EGREP "memchr" >/dev/null 2>&1; then :
5823
5824else
5825  ac_cv_header_stdc=no
5826fi
5827rm -f conftest*
5828
5829fi
5830
5831if test $ac_cv_header_stdc = yes; then
5832  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835#include <stdlib.h>
5836
5837_ACEOF
5838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839  $EGREP "free" >/dev/null 2>&1; then :
5840
5841else
5842  ac_cv_header_stdc=no
5843fi
5844rm -f conftest*
5845
5846fi
5847
5848if test $ac_cv_header_stdc = yes; then
5849  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5850  if test "$cross_compiling" = yes; then :
5851  :
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855#include <ctype.h>
5856#include <stdlib.h>
5857#if ((' ' & 0x0FF) == 0x020)
5858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5860#else
5861# define ISLOWER(c) \
5862		   (('a' <= (c) && (c) <= 'i') \
5863		     || ('j' <= (c) && (c) <= 'r') \
5864		     || ('s' <= (c) && (c) <= 'z'))
5865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5866#endif
5867
5868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5869int
5870main ()
5871{
5872  int i;
5873  for (i = 0; i < 256; i++)
5874    if (XOR (islower (i), ISLOWER (i))
5875	|| toupper (i) != TOUPPER (i))
5876      return 2;
5877  return 0;
5878}
5879_ACEOF
5880if ac_fn_c_try_run "$LINENO"; then :
5881
5882else
5883  ac_cv_header_stdc=no
5884fi
5885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5886  conftest.$ac_objext conftest.beam conftest.$ac_ext
5887fi
5888
5889fi
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5892$as_echo "$ac_cv_header_stdc" >&6; }
5893if test $ac_cv_header_stdc = yes; then
5894
5895$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5896
5897fi
5898
5899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5901		  inttypes.h stdint.h unistd.h
5902do :
5903  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5905"
5906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5907  cat >>confdefs.h <<_ACEOF
5908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912
5913done
5914
5915
5916
5917  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5918if test "x$ac_cv_header_minix_config_h" = xyes; then :
5919  MINIX=yes
5920else
5921  MINIX=
5922fi
5923
5924
5925  if test "$MINIX" = yes; then
5926
5927$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5928
5929
5930$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5931
5932
5933$as_echo "#define _MINIX 1" >>confdefs.h
5934
5935  fi
5936
5937
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5939$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5940if ${ac_cv_safe_to_define___extensions__+:} false; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945
5946#         define __EXTENSIONS__ 1
5947          $ac_includes_default
5948int
5949main ()
5950{
5951
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957  ac_cv_safe_to_define___extensions__=yes
5958else
5959  ac_cv_safe_to_define___extensions__=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5965  test $ac_cv_safe_to_define___extensions__ = yes &&
5966    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5967
5968  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5969
5970  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5971
5972  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5973
5974  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5975
5976
5977
5978# Check for programs
5979ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984if test -n "$ac_tool_prefix"; then
5985  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}gcc; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
5989if ${ac_cv_prog_CC+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  if test -n "$CC"; then
5993  ac_cv_prog_CC="$CC" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007  done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012CC=$ac_cv_prog_CC
6013if test -n "$CC"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015$as_echo "$CC" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$ac_cv_prog_CC"; then
6024  ac_ct_CC=$CC
6025  # Extract the first word of "gcc", so it can be a program name with args.
6026set dummy gcc; ac_word=$2
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if ${ac_cv_prog_ac_ct_CC+:} false; then :
6030  $as_echo_n "(cached) " >&6
6031else
6032  if test -n "$ac_ct_CC"; then
6033  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042    ac_cv_prog_ac_ct_CC="gcc"
6043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047  done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052ac_ct_CC=$ac_cv_prog_ac_ct_CC
6053if test -n "$ac_ct_CC"; then
6054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6055$as_echo "$ac_ct_CC" >&6; }
6056else
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061  if test "x$ac_ct_CC" = x; then
6062    CC=""
6063  else
6064    case $cross_compiling:$ac_tool_warned in
6065yes:)
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068ac_tool_warned=yes ;;
6069esac
6070    CC=$ac_ct_CC
6071  fi
6072else
6073  CC="$ac_cv_prog_CC"
6074fi
6075
6076if test -z "$CC"; then
6077          if test -n "$ac_tool_prefix"; then
6078    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}cc; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if ${ac_cv_prog_CC+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  if test -n "$CC"; then
6086  ac_cv_prog_CC="$CC" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091  IFS=$as_save_IFS
6092  test -z "$as_dir" && as_dir=.
6093    for ac_exec_ext in '' $ac_executable_extensions; do
6094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095    ac_cv_prog_CC="${ac_tool_prefix}cc"
6096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097    break 2
6098  fi
6099done
6100  done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105CC=$ac_cv_prog_CC
6106if test -n "$CC"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6108$as_echo "$CC" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115  fi
6116fi
6117if test -z "$CC"; then
6118  # Extract the first word of "cc", so it can be a program name with args.
6119set dummy cc; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_CC+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  if test -n "$CC"; then
6126  ac_cv_prog_CC="$CC" # Let the user override the test.
6127else
6128  ac_prog_rejected=no
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6137       ac_prog_rejected=yes
6138       continue
6139     fi
6140    ac_cv_prog_CC="cc"
6141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142    break 2
6143  fi
6144done
6145  done
6146IFS=$as_save_IFS
6147
6148if test $ac_prog_rejected = yes; then
6149  # We found a bogon in the path, so make sure we never use it.
6150  set dummy $ac_cv_prog_CC
6151  shift
6152  if test $# != 0; then
6153    # We chose a different compiler from the bogus one.
6154    # However, it has the same basename, so the bogon will be chosen
6155    # first if we set CC to just the basename; use the full file name.
6156    shift
6157    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6158  fi
6159fi
6160fi
6161fi
6162CC=$ac_cv_prog_CC
6163if test -n "$CC"; then
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6165$as_echo "$CC" >&6; }
6166else
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172fi
6173if test -z "$CC"; then
6174  if test -n "$ac_tool_prefix"; then
6175  for ac_prog in cl.exe
6176  do
6177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if ${ac_cv_prog_CC+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  if test -n "$CC"; then
6185  ac_cv_prog_CC="$CC" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192    for ac_exec_ext in '' $ac_executable_extensions; do
6193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199  done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204CC=$ac_cv_prog_CC
6205if test -n "$CC"; then
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6207$as_echo "$CC" >&6; }
6208else
6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214    test -n "$CC" && break
6215  done
6216fi
6217if test -z "$CC"; then
6218  ac_ct_CC=$CC
6219  for ac_prog in cl.exe
6220do
6221  # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if ${ac_cv_prog_ac_ct_CC+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$ac_ct_CC"; then
6229  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_ac_ct_CC="$ac_prog"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_CC=$ac_cv_prog_ac_ct_CC
6249if test -n "$ac_ct_CC"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6251$as_echo "$ac_ct_CC" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258  test -n "$ac_ct_CC" && break
6259done
6260
6261  if test "x$ac_ct_CC" = x; then
6262    CC=""
6263  else
6264    case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270    CC=$ac_ct_CC
6271  fi
6272fi
6273
6274fi
6275
6276
6277test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6279as_fn_error $? "no acceptable C compiler found in \$PATH
6280See \`config.log' for more details" "$LINENO" 5; }
6281
6282# Provide some information about the compiler.
6283$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6284set X $ac_compile
6285ac_compiler=$2
6286for ac_option in --version -v -V -qversion; do
6287  { { ac_try="$ac_compiler $ac_option >&5"
6288case "(($ac_try" in
6289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290  *) ac_try_echo=$ac_try;;
6291esac
6292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293$as_echo "$ac_try_echo"; } >&5
6294  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6295  ac_status=$?
6296  if test -s conftest.err; then
6297    sed '10a\
6298... rest of stderr output deleted ...
6299         10q' conftest.err >conftest.er1
6300    cat conftest.er1 >&5
6301  fi
6302  rm -f conftest.er1 conftest.err
6303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304  test $ac_status = 0; }
6305done
6306
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6308$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6309if ${ac_cv_c_compiler_gnu+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h.  */
6314
6315int
6316main ()
6317{
6318#ifndef __GNUC__
6319       choke me
6320#endif
6321
6322  ;
6323  return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327  ac_compiler_gnu=yes
6328else
6329  ac_compiler_gnu=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_c_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6336$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6337if test $ac_compiler_gnu = yes; then
6338  GCC=yes
6339else
6340  GCC=
6341fi
6342ac_test_CFLAGS=${CFLAGS+set}
6343ac_save_CFLAGS=$CFLAGS
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6345$as_echo_n "checking whether $CC accepts -g... " >&6; }
6346if ${ac_cv_prog_cc_g+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  ac_save_c_werror_flag=$ac_c_werror_flag
6350   ac_c_werror_flag=yes
6351   ac_cv_prog_cc_g=no
6352   CFLAGS="-g"
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355
6356int
6357main ()
6358{
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  ac_cv_prog_cc_g=yes
6366else
6367  CFLAGS=""
6368      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h.  */
6370
6371int
6372main ()
6373{
6374
6375  ;
6376  return 0;
6377}
6378_ACEOF
6379if ac_fn_c_try_compile "$LINENO"; then :
6380
6381else
6382  ac_c_werror_flag=$ac_save_c_werror_flag
6383	 CFLAGS="-g"
6384	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386
6387int
6388main ()
6389{
6390
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396  ac_cv_prog_cc_g=yes
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403   ac_c_werror_flag=$ac_save_c_werror_flag
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6406$as_echo "$ac_cv_prog_cc_g" >&6; }
6407if test "$ac_test_CFLAGS" = set; then
6408  CFLAGS=$ac_save_CFLAGS
6409elif test $ac_cv_prog_cc_g = yes; then
6410  if test "$GCC" = yes; then
6411    CFLAGS="-g -O2"
6412  else
6413    CFLAGS="-g"
6414  fi
6415else
6416  if test "$GCC" = yes; then
6417    CFLAGS="-O2"
6418  else
6419    CFLAGS=
6420  fi
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6423$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6424if ${ac_cv_prog_cc_c89+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  ac_cv_prog_cc_c89=no
6428ac_save_CC=$CC
6429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431#include <stdarg.h>
6432#include <stdio.h>
6433struct stat;
6434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6435struct buf { int x; };
6436FILE * (*rcsopen) (struct buf *, struct stat *, int);
6437static char *e (p, i)
6438     char **p;
6439     int i;
6440{
6441  return p[i];
6442}
6443static char *f (char * (*g) (char **, int), char **p, ...)
6444{
6445  char *s;
6446  va_list v;
6447  va_start (v,p);
6448  s = g (p, va_arg (v,int));
6449  va_end (v);
6450  return s;
6451}
6452
6453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6454   function prototypes and stuff, but not '\xHH' hex character constants.
6455   These don't provoke an error unfortunately, instead are silently treated
6456   as 'x'.  The following induces an error, until -std is added to get
6457   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6458   array size at least.  It's necessary to write '\x00'==0 to get something
6459   that's true only with -std.  */
6460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6461
6462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6463   inside strings and character constants.  */
6464#define FOO(x) 'x'
6465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6466
6467int test (int i, double x);
6468struct s1 {int (*f) (int a);};
6469struct s2 {int (*f) (double a);};
6470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6471int argc;
6472char **argv;
6473int
6474main ()
6475{
6476return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6482	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6483do
6484  CC="$ac_save_CC $ac_arg"
6485  if ac_fn_c_try_compile "$LINENO"; then :
6486  ac_cv_prog_cc_c89=$ac_arg
6487fi
6488rm -f core conftest.err conftest.$ac_objext
6489  test "x$ac_cv_prog_cc_c89" != "xno" && break
6490done
6491rm -f conftest.$ac_ext
6492CC=$ac_save_CC
6493
6494fi
6495# AC_CACHE_VAL
6496case "x$ac_cv_prog_cc_c89" in
6497  x)
6498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6499$as_echo "none needed" >&6; } ;;
6500  xno)
6501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6502$as_echo "unsupported" >&6; } ;;
6503  *)
6504    CC="$CC $ac_cv_prog_cc_c89"
6505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6507esac
6508if test "x$ac_cv_prog_cc_c89" != xno; then :
6509
6510fi
6511
6512ac_ext=c
6513ac_cpp='$CPP $CPPFLAGS'
6514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
6518ac_ext=c
6519ac_cpp='$CPP $CPPFLAGS'
6520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6524$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6525if ${am_cv_prog_cc_c_o+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530
6531int
6532main ()
6533{
6534
6535  ;
6536  return 0;
6537}
6538_ACEOF
6539  # Make sure it works both with $CC and with simple cc.
6540  # Following AC_PROG_CC_C_O, we do the test twice because some
6541  # compilers refuse to overwrite an existing .o file with -o,
6542  # though they will create one.
6543  am_cv_prog_cc_c_o=yes
6544  for am_i in 1 2; do
6545    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6546   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } \
6550         && test -f conftest2.$ac_objext; then
6551      : OK
6552    else
6553      am_cv_prog_cc_c_o=no
6554      break
6555    fi
6556  done
6557  rm -f core conftest*
6558  unset am_i
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6561$as_echo "$am_cv_prog_cc_c_o" >&6; }
6562if test "$am_cv_prog_cc_c_o" != yes; then
6563   # Losing compiler, so override with the script.
6564   # FIXME: It is wrong to rewrite CC.
6565   # But if we don't then we get into trouble of one sort or another.
6566   # A longer-term fix would be to have automake use am__CC in this case,
6567   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6568   CC="$am_aux_dir/compile $CC"
6569fi
6570ac_ext=c
6571ac_cpp='$CPP $CPPFLAGS'
6572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576
6577depcc="$CC"   am_compiler_list=
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6580$as_echo_n "checking dependency style of $depcc... " >&6; }
6581if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6585  # We make a subdir and do the tests there.  Otherwise we can end up
6586  # making bogus files that we don't know about and never remove.  For
6587  # instance it was reported that on HP-UX the gcc test will end up
6588  # making a dummy file named 'D' -- because '-MD' means "put the output
6589  # in D".
6590  rm -rf conftest.dir
6591  mkdir conftest.dir
6592  # Copy depcomp to subdir because otherwise we won't find it if we're
6593  # using a relative directory.
6594  cp "$am_depcomp" conftest.dir
6595  cd conftest.dir
6596  # We will build objects and dependencies in a subdirectory because
6597  # it helps to detect inapplicable dependency modes.  For instance
6598  # both Tru64's cc and ICC support -MD to output dependencies as a
6599  # side effect of compilation, but ICC will put the dependencies in
6600  # the current directory while Tru64 will put them in the object
6601  # directory.
6602  mkdir sub
6603
6604  am_cv_CC_dependencies_compiler_type=none
6605  if test "$am_compiler_list" = ""; then
6606     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6607  fi
6608  am__universal=false
6609  case " $depcc " in #(
6610     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6611     esac
6612
6613  for depmode in $am_compiler_list; do
6614    # Setup a source with many dependencies, because some compilers
6615    # like to wrap large dependency lists on column 80 (with \), and
6616    # we should not choose a depcomp mode which is confused by this.
6617    #
6618    # We need to recreate these files for each test, as the compiler may
6619    # overwrite some of them when testing with obscure command lines.
6620    # This happens at least with the AIX C compiler.
6621    : > sub/conftest.c
6622    for i in 1 2 3 4 5 6; do
6623      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6624      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6625      # Solaris 10 /bin/sh.
6626      echo '/* dummy */' > sub/conftst$i.h
6627    done
6628    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6629
6630    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6631    # mode.  It turns out that the SunPro C++ compiler does not properly
6632    # handle '-M -o', and we need to detect this.  Also, some Intel
6633    # versions had trouble with output in subdirs.
6634    am__obj=sub/conftest.${OBJEXT-o}
6635    am__minus_obj="-o $am__obj"
6636    case $depmode in
6637    gcc)
6638      # This depmode causes a compiler race in universal mode.
6639      test "$am__universal" = false || continue
6640      ;;
6641    nosideeffect)
6642      # After this tag, mechanisms are not by side-effect, so they'll
6643      # only be used when explicitly requested.
6644      if test "x$enable_dependency_tracking" = xyes; then
6645	continue
6646      else
6647	break
6648      fi
6649      ;;
6650    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6651      # This compiler won't grok '-c -o', but also, the minuso test has
6652      # not run yet.  These depmodes are late enough in the game, and
6653      # so weak that their functioning should not be impacted.
6654      am__obj=conftest.${OBJEXT-o}
6655      am__minus_obj=
6656      ;;
6657    none) break ;;
6658    esac
6659    if depmode=$depmode \
6660       source=sub/conftest.c object=$am__obj \
6661       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6662       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6663         >/dev/null 2>conftest.err &&
6664       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6665       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6666       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6667       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6668      # icc doesn't choke on unknown options, it will just issue warnings
6669      # or remarks (even with -Werror).  So we grep stderr for any message
6670      # that says an option was ignored or not supported.
6671      # When given -MP, icc 7.0 and 7.1 complain thusly:
6672      #   icc: Command line warning: ignoring option '-M'; no argument required
6673      # The diagnosis changed in icc 8.0:
6674      #   icc: Command line remark: option '-MP' not supported
6675      if (grep 'ignoring option' conftest.err ||
6676          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6677        am_cv_CC_dependencies_compiler_type=$depmode
6678        break
6679      fi
6680    fi
6681  done
6682
6683  cd ..
6684  rm -rf conftest.dir
6685else
6686  am_cv_CC_dependencies_compiler_type=none
6687fi
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6691$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6692CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6693
6694 if
6695  test "x$enable_dependency_tracking" != xno \
6696  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6697  am__fastdepCC_TRUE=
6698  am__fastdepCC_FALSE='#'
6699else
6700  am__fastdepCC_TRUE='#'
6701  am__fastdepCC_FALSE=
6702fi
6703
6704
6705ac_ext=cpp
6706ac_cpp='$CXXCPP $CPPFLAGS'
6707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710if test -z "$CXX"; then
6711  if test -n "$CCC"; then
6712    CXX=$CCC
6713  else
6714    if test -n "$ac_tool_prefix"; then
6715  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6716  do
6717    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_CXX+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  if test -n "$CXX"; then
6725  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732    for ac_exec_ext in '' $ac_executable_extensions; do
6733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739  done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744CXX=$ac_cv_prog_CXX
6745if test -n "$CXX"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6747$as_echo "$CXX" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754    test -n "$CXX" && break
6755  done
6756fi
6757if test -z "$CXX"; then
6758  ac_ct_CXX=$CXX
6759  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6760do
6761  # Extract the first word of "$ac_prog", so it can be a program name with args.
6762set dummy $ac_prog; ac_word=$2
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
6765if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  if test -n "$ac_ct_CXX"; then
6769  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776    for ac_exec_ext in '' $ac_executable_extensions; do
6777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778    ac_cv_prog_ac_ct_CXX="$ac_prog"
6779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783  done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6789if test -n "$ac_ct_CXX"; then
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6791$as_echo "$ac_ct_CXX" >&6; }
6792else
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797
6798  test -n "$ac_ct_CXX" && break
6799done
6800
6801  if test "x$ac_ct_CXX" = x; then
6802    CXX="g++"
6803  else
6804    case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810    CXX=$ac_ct_CXX
6811  fi
6812fi
6813
6814  fi
6815fi
6816# Provide some information about the compiler.
6817$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6818set X $ac_compile
6819ac_compiler=$2
6820for ac_option in --version -v -V -qversion; do
6821  { { ac_try="$ac_compiler $ac_option >&5"
6822case "(($ac_try" in
6823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824  *) ac_try_echo=$ac_try;;
6825esac
6826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6827$as_echo "$ac_try_echo"; } >&5
6828  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6829  ac_status=$?
6830  if test -s conftest.err; then
6831    sed '10a\
6832... rest of stderr output deleted ...
6833         10q' conftest.err >conftest.er1
6834    cat conftest.er1 >&5
6835  fi
6836  rm -f conftest.er1 conftest.err
6837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838  test $ac_status = 0; }
6839done
6840
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6842$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6843if ${ac_cv_cxx_compiler_gnu+:} false; then :
6844  $as_echo_n "(cached) " >&6
6845else
6846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h.  */
6848
6849int
6850main ()
6851{
6852#ifndef __GNUC__
6853       choke me
6854#endif
6855
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_cxx_try_compile "$LINENO"; then :
6861  ac_compiler_gnu=yes
6862else
6863  ac_compiler_gnu=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6867
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6870$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6871if test $ac_compiler_gnu = yes; then
6872  GXX=yes
6873else
6874  GXX=
6875fi
6876ac_test_CXXFLAGS=${CXXFLAGS+set}
6877ac_save_CXXFLAGS=$CXXFLAGS
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6879$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6880if ${ac_cv_prog_cxx_g+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6884   ac_cxx_werror_flag=yes
6885   ac_cv_prog_cxx_g=no
6886   CXXFLAGS="-g"
6887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889
6890int
6891main ()
6892{
6893
6894  ;
6895  return 0;
6896}
6897_ACEOF
6898if ac_fn_cxx_try_compile "$LINENO"; then :
6899  ac_cv_prog_cxx_g=yes
6900else
6901  CXXFLAGS=""
6902      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h.  */
6904
6905int
6906main ()
6907{
6908
6909  ;
6910  return 0;
6911}
6912_ACEOF
6913if ac_fn_cxx_try_compile "$LINENO"; then :
6914
6915else
6916  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6917	 CXXFLAGS="-g"
6918	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920
6921int
6922main ()
6923{
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_cxx_try_compile "$LINENO"; then :
6930  ac_cv_prog_cxx_g=yes
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6940$as_echo "$ac_cv_prog_cxx_g" >&6; }
6941if test "$ac_test_CXXFLAGS" = set; then
6942  CXXFLAGS=$ac_save_CXXFLAGS
6943elif test $ac_cv_prog_cxx_g = yes; then
6944  if test "$GXX" = yes; then
6945    CXXFLAGS="-g -O2"
6946  else
6947    CXXFLAGS="-g"
6948  fi
6949else
6950  if test "$GXX" = yes; then
6951    CXXFLAGS="-O2"
6952  else
6953    CXXFLAGS=
6954  fi
6955fi
6956ac_ext=c
6957ac_cpp='$CPP $CPPFLAGS'
6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
6962depcc="$CXX"  am_compiler_list=
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6965$as_echo_n "checking dependency style of $depcc... " >&6; }
6966if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6970  # We make a subdir and do the tests there.  Otherwise we can end up
6971  # making bogus files that we don't know about and never remove.  For
6972  # instance it was reported that on HP-UX the gcc test will end up
6973  # making a dummy file named 'D' -- because '-MD' means "put the output
6974  # in D".
6975  rm -rf conftest.dir
6976  mkdir conftest.dir
6977  # Copy depcomp to subdir because otherwise we won't find it if we're
6978  # using a relative directory.
6979  cp "$am_depcomp" conftest.dir
6980  cd conftest.dir
6981  # We will build objects and dependencies in a subdirectory because
6982  # it helps to detect inapplicable dependency modes.  For instance
6983  # both Tru64's cc and ICC support -MD to output dependencies as a
6984  # side effect of compilation, but ICC will put the dependencies in
6985  # the current directory while Tru64 will put them in the object
6986  # directory.
6987  mkdir sub
6988
6989  am_cv_CXX_dependencies_compiler_type=none
6990  if test "$am_compiler_list" = ""; then
6991     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6992  fi
6993  am__universal=false
6994  case " $depcc " in #(
6995     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6996     esac
6997
6998  for depmode in $am_compiler_list; do
6999    # Setup a source with many dependencies, because some compilers
7000    # like to wrap large dependency lists on column 80 (with \), and
7001    # we should not choose a depcomp mode which is confused by this.
7002    #
7003    # We need to recreate these files for each test, as the compiler may
7004    # overwrite some of them when testing with obscure command lines.
7005    # This happens at least with the AIX C compiler.
7006    : > sub/conftest.c
7007    for i in 1 2 3 4 5 6; do
7008      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7009      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7010      # Solaris 10 /bin/sh.
7011      echo '/* dummy */' > sub/conftst$i.h
7012    done
7013    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7014
7015    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7016    # mode.  It turns out that the SunPro C++ compiler does not properly
7017    # handle '-M -o', and we need to detect this.  Also, some Intel
7018    # versions had trouble with output in subdirs.
7019    am__obj=sub/conftest.${OBJEXT-o}
7020    am__minus_obj="-o $am__obj"
7021    case $depmode in
7022    gcc)
7023      # This depmode causes a compiler race in universal mode.
7024      test "$am__universal" = false || continue
7025      ;;
7026    nosideeffect)
7027      # After this tag, mechanisms are not by side-effect, so they'll
7028      # only be used when explicitly requested.
7029      if test "x$enable_dependency_tracking" = xyes; then
7030	continue
7031      else
7032	break
7033      fi
7034      ;;
7035    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7036      # This compiler won't grok '-c -o', but also, the minuso test has
7037      # not run yet.  These depmodes are late enough in the game, and
7038      # so weak that their functioning should not be impacted.
7039      am__obj=conftest.${OBJEXT-o}
7040      am__minus_obj=
7041      ;;
7042    none) break ;;
7043    esac
7044    if depmode=$depmode \
7045       source=sub/conftest.c object=$am__obj \
7046       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7047       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7048         >/dev/null 2>conftest.err &&
7049       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7050       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7051       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7052       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7053      # icc doesn't choke on unknown options, it will just issue warnings
7054      # or remarks (even with -Werror).  So we grep stderr for any message
7055      # that says an option was ignored or not supported.
7056      # When given -MP, icc 7.0 and 7.1 complain thusly:
7057      #   icc: Command line warning: ignoring option '-M'; no argument required
7058      # The diagnosis changed in icc 8.0:
7059      #   icc: Command line remark: option '-MP' not supported
7060      if (grep 'ignoring option' conftest.err ||
7061          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7062        am_cv_CXX_dependencies_compiler_type=$depmode
7063        break
7064      fi
7065    fi
7066  done
7067
7068  cd ..
7069  rm -rf conftest.dir
7070else
7071  am_cv_CXX_dependencies_compiler_type=none
7072fi
7073
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7076$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7077CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7078
7079 if
7080  test "x$enable_dependency_tracking" != xno \
7081  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7082  am__fastdepCXX_TRUE=
7083  am__fastdepCXX_FALSE='#'
7084else
7085  am__fastdepCXX_TRUE='#'
7086  am__fastdepCXX_FALSE=
7087fi
7088
7089
7090   case $ac_cv_prog_cc_stdc in #(
7091  no) :
7092    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7093  *) :
7094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7095$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7096if ${ac_cv_prog_cc_c99+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  ac_cv_prog_cc_c99=no
7100ac_save_CC=$CC
7101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103#include <stdarg.h>
7104#include <stdbool.h>
7105#include <stdlib.h>
7106#include <wchar.h>
7107#include <stdio.h>
7108
7109// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7110#define debug(...) fprintf (stderr, __VA_ARGS__)
7111#define showlist(...) puts (#__VA_ARGS__)
7112#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7113static void
7114test_varargs_macros (void)
7115{
7116  int x = 1234;
7117  int y = 5678;
7118  debug ("Flag");
7119  debug ("X = %d\n", x);
7120  showlist (The first, second, and third items.);
7121  report (x>y, "x is %d but y is %d", x, y);
7122}
7123
7124// Check long long types.
7125#define BIG64 18446744073709551615ull
7126#define BIG32 4294967295ul
7127#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7128#if !BIG_OK
7129  your preprocessor is broken;
7130#endif
7131#if BIG_OK
7132#else
7133  your preprocessor is broken;
7134#endif
7135static long long int bignum = -9223372036854775807LL;
7136static unsigned long long int ubignum = BIG64;
7137
7138struct incomplete_array
7139{
7140  int datasize;
7141  double data[];
7142};
7143
7144struct named_init {
7145  int number;
7146  const wchar_t *name;
7147  double average;
7148};
7149
7150typedef const char *ccp;
7151
7152static inline int
7153test_restrict (ccp restrict text)
7154{
7155  // See if C++-style comments work.
7156  // Iterate through items via the restricted pointer.
7157  // Also check for declarations in for loops.
7158  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7159    continue;
7160  return 0;
7161}
7162
7163// Check varargs and va_copy.
7164static void
7165test_varargs (const char *format, ...)
7166{
7167  va_list args;
7168  va_start (args, format);
7169  va_list args_copy;
7170  va_copy (args_copy, args);
7171
7172  const char *str;
7173  int number;
7174  float fnumber;
7175
7176  while (*format)
7177    {
7178      switch (*format++)
7179	{
7180	case 's': // string
7181	  str = va_arg (args_copy, const char *);
7182	  break;
7183	case 'd': // int
7184	  number = va_arg (args_copy, int);
7185	  break;
7186	case 'f': // float
7187	  fnumber = va_arg (args_copy, double);
7188	  break;
7189	default:
7190	  break;
7191	}
7192    }
7193  va_end (args_copy);
7194  va_end (args);
7195}
7196
7197int
7198main ()
7199{
7200
7201  // Check bool.
7202  _Bool success = false;
7203
7204  // Check restrict.
7205  if (test_restrict ("String literal") == 0)
7206    success = true;
7207  char *restrict newvar = "Another string";
7208
7209  // Check varargs.
7210  test_varargs ("s, d' f .", "string", 65, 34.234);
7211  test_varargs_macros ();
7212
7213  // Check flexible array members.
7214  struct incomplete_array *ia =
7215    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7216  ia->datasize = 10;
7217  for (int i = 0; i < ia->datasize; ++i)
7218    ia->data[i] = i * 1.234;
7219
7220  // Check named initializers.
7221  struct named_init ni = {
7222    .number = 34,
7223    .name = L"Test wide string",
7224    .average = 543.34343,
7225  };
7226
7227  ni.number = 58;
7228
7229  int dynamic_array[ni.number];
7230  dynamic_array[ni.number - 1] = 543;
7231
7232  // work around unused variable warnings
7233  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7234	  || dynamic_array[ni.number - 1] != 543);
7235
7236  ;
7237  return 0;
7238}
7239_ACEOF
7240for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7241do
7242  CC="$ac_save_CC $ac_arg"
7243  if ac_fn_c_try_compile "$LINENO"; then :
7244  ac_cv_prog_cc_c99=$ac_arg
7245fi
7246rm -f core conftest.err conftest.$ac_objext
7247  test "x$ac_cv_prog_cc_c99" != "xno" && break
7248done
7249rm -f conftest.$ac_ext
7250CC=$ac_save_CC
7251
7252fi
7253# AC_CACHE_VAL
7254case "x$ac_cv_prog_cc_c99" in
7255  x)
7256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7257$as_echo "none needed" >&6; } ;;
7258  xno)
7259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7260$as_echo "unsupported" >&6; } ;;
7261  *)
7262    CC="$CC $ac_cv_prog_cc_c99"
7263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7264$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7265esac
7266if test "x$ac_cv_prog_cc_c99" != xno; then :
7267  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7271if ${ac_cv_prog_cc_c89+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  ac_cv_prog_cc_c89=no
7275ac_save_CC=$CC
7276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277/* end confdefs.h.  */
7278#include <stdarg.h>
7279#include <stdio.h>
7280struct stat;
7281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7282struct buf { int x; };
7283FILE * (*rcsopen) (struct buf *, struct stat *, int);
7284static char *e (p, i)
7285     char **p;
7286     int i;
7287{
7288  return p[i];
7289}
7290static char *f (char * (*g) (char **, int), char **p, ...)
7291{
7292  char *s;
7293  va_list v;
7294  va_start (v,p);
7295  s = g (p, va_arg (v,int));
7296  va_end (v);
7297  return s;
7298}
7299
7300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7301   function prototypes and stuff, but not '\xHH' hex character constants.
7302   These don't provoke an error unfortunately, instead are silently treated
7303   as 'x'.  The following induces an error, until -std is added to get
7304   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7305   array size at least.  It's necessary to write '\x00'==0 to get something
7306   that's true only with -std.  */
7307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7308
7309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7310   inside strings and character constants.  */
7311#define FOO(x) 'x'
7312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7313
7314int test (int i, double x);
7315struct s1 {int (*f) (int a);};
7316struct s2 {int (*f) (double a);};
7317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7318int argc;
7319char **argv;
7320int
7321main ()
7322{
7323return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7329	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7330do
7331  CC="$ac_save_CC $ac_arg"
7332  if ac_fn_c_try_compile "$LINENO"; then :
7333  ac_cv_prog_cc_c89=$ac_arg
7334fi
7335rm -f core conftest.err conftest.$ac_objext
7336  test "x$ac_cv_prog_cc_c89" != "xno" && break
7337done
7338rm -f conftest.$ac_ext
7339CC=$ac_save_CC
7340
7341fi
7342# AC_CACHE_VAL
7343case "x$ac_cv_prog_cc_c89" in
7344  x)
7345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7346$as_echo "none needed" >&6; } ;;
7347  xno)
7348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7349$as_echo "unsupported" >&6; } ;;
7350  *)
7351    CC="$CC $ac_cv_prog_cc_c89"
7352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7354esac
7355if test "x$ac_cv_prog_cc_c89" != xno; then :
7356  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7357else
7358  ac_cv_prog_cc_stdc=no
7359fi
7360
7361fi
7362 ;;
7363esac
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7365$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7366  if ${ac_cv_prog_cc_stdc+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368fi
7369
7370  case $ac_cv_prog_cc_stdc in #(
7371  no) :
7372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7373$as_echo "unsupported" >&6; } ;; #(
7374  '') :
7375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7376$as_echo "none needed" >&6; } ;; #(
7377  *) :
7378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7379$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7380esac
7381
7382ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7388$as_echo_n "checking how to run the C preprocessor... " >&6; }
7389# On Suns, sometimes $CPP names a directory.
7390if test -n "$CPP" && test -d "$CPP"; then
7391  CPP=
7392fi
7393if test -z "$CPP"; then
7394  if ${ac_cv_prog_CPP+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397      # Double quotes because CPP needs to be expanded
7398    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7399    do
7400      ac_preproc_ok=false
7401for ac_c_preproc_warn_flag in '' yes
7402do
7403  # Use a header file that comes with gcc, so configuring glibc
7404  # with a fresh cross-compiler works.
7405  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406  # <limits.h> exists even on freestanding compilers.
7407  # On the NeXT, cc -E runs the code through the compiler's parser,
7408  # not just through cpp. "Syntax error" is here to catch this case.
7409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411#ifdef __STDC__
7412# include <limits.h>
7413#else
7414# include <assert.h>
7415#endif
7416		     Syntax error
7417_ACEOF
7418if ac_fn_c_try_cpp "$LINENO"; then :
7419
7420else
7421  # Broken: fails on valid input.
7422continue
7423fi
7424rm -f conftest.err conftest.i conftest.$ac_ext
7425
7426  # OK, works on sane cases.  Now check whether nonexistent headers
7427  # can be detected and how.
7428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430#include <ac_nonexistent.h>
7431_ACEOF
7432if ac_fn_c_try_cpp "$LINENO"; then :
7433  # Broken: success on invalid input.
7434continue
7435else
7436  # Passes both tests.
7437ac_preproc_ok=:
7438break
7439fi
7440rm -f conftest.err conftest.i conftest.$ac_ext
7441
7442done
7443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7444rm -f conftest.i conftest.err conftest.$ac_ext
7445if $ac_preproc_ok; then :
7446  break
7447fi
7448
7449    done
7450    ac_cv_prog_CPP=$CPP
7451
7452fi
7453  CPP=$ac_cv_prog_CPP
7454else
7455  ac_cv_prog_CPP=$CPP
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7458$as_echo "$CPP" >&6; }
7459ac_preproc_ok=false
7460for ac_c_preproc_warn_flag in '' yes
7461do
7462  # Use a header file that comes with gcc, so configuring glibc
7463  # with a fresh cross-compiler works.
7464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7465  # <limits.h> exists even on freestanding compilers.
7466  # On the NeXT, cc -E runs the code through the compiler's parser,
7467  # not just through cpp. "Syntax error" is here to catch this case.
7468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470#ifdef __STDC__
7471# include <limits.h>
7472#else
7473# include <assert.h>
7474#endif
7475		     Syntax error
7476_ACEOF
7477if ac_fn_c_try_cpp "$LINENO"; then :
7478
7479else
7480  # Broken: fails on valid input.
7481continue
7482fi
7483rm -f conftest.err conftest.i conftest.$ac_ext
7484
7485  # OK, works on sane cases.  Now check whether nonexistent headers
7486  # can be detected and how.
7487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488/* end confdefs.h.  */
7489#include <ac_nonexistent.h>
7490_ACEOF
7491if ac_fn_c_try_cpp "$LINENO"; then :
7492  # Broken: success on invalid input.
7493continue
7494else
7495  # Passes both tests.
7496ac_preproc_ok=:
7497break
7498fi
7499rm -f conftest.err conftest.i conftest.$ac_ext
7500
7501done
7502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7503rm -f conftest.i conftest.err conftest.$ac_ext
7504if $ac_preproc_ok; then :
7505
7506else
7507  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7509as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7510See \`config.log' for more details" "$LINENO" 5; }
7511fi
7512
7513ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7520$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7521if ${ac_cv_path_SED+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7525     for ac_i in 1 2 3 4 5 6 7; do
7526       ac_script="$ac_script$as_nl$ac_script"
7527     done
7528     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7529     { ac_script=; unset ac_script;}
7530     if test -z "$SED"; then
7531  ac_path_SED_found=false
7532  # Loop through the user's path and test for each of PROGNAME-LIST
7533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536  IFS=$as_save_IFS
7537  test -z "$as_dir" && as_dir=.
7538    for ac_prog in sed gsed; do
7539    for ac_exec_ext in '' $ac_executable_extensions; do
7540      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7541      as_fn_executable_p "$ac_path_SED" || continue
7542# Check for GNU ac_path_SED and select it if it is found.
7543  # Check for GNU $ac_path_SED
7544case `"$ac_path_SED" --version 2>&1` in
7545*GNU*)
7546  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7547*)
7548  ac_count=0
7549  $as_echo_n 0123456789 >"conftest.in"
7550  while :
7551  do
7552    cat "conftest.in" "conftest.in" >"conftest.tmp"
7553    mv "conftest.tmp" "conftest.in"
7554    cp "conftest.in" "conftest.nl"
7555    $as_echo '' >> "conftest.nl"
7556    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7558    as_fn_arith $ac_count + 1 && ac_count=$as_val
7559    if test $ac_count -gt ${ac_path_SED_max-0}; then
7560      # Best one so far, save it but keep looking for a better one
7561      ac_cv_path_SED="$ac_path_SED"
7562      ac_path_SED_max=$ac_count
7563    fi
7564    # 10*(2^10) chars as input seems more than enough
7565    test $ac_count -gt 10 && break
7566  done
7567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7568esac
7569
7570      $ac_path_SED_found && break 3
7571    done
7572  done
7573  done
7574IFS=$as_save_IFS
7575  if test -z "$ac_cv_path_SED"; then
7576    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7577  fi
7578else
7579  ac_cv_path_SED=$SED
7580fi
7581
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7584$as_echo "$ac_cv_path_SED" >&6; }
7585 SED="$ac_cv_path_SED"
7586  rm -f conftest.sed
7587
7588test -z "$SED" && SED=sed
7589Xsed="$SED -e 1s/^X//"
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7602$as_echo_n "checking for fgrep... " >&6; }
7603if ${ac_cv_path_FGREP+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7607   then ac_cv_path_FGREP="$GREP -F"
7608   else
7609     if test -z "$FGREP"; then
7610  ac_path_FGREP_found=false
7611  # Loop through the user's path and test for each of PROGNAME-LIST
7612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_prog in fgrep; do
7618    for ac_exec_ext in '' $ac_executable_extensions; do
7619      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7620      as_fn_executable_p "$ac_path_FGREP" || continue
7621# Check for GNU ac_path_FGREP and select it if it is found.
7622  # Check for GNU $ac_path_FGREP
7623case `"$ac_path_FGREP" --version 2>&1` in
7624*GNU*)
7625  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7626*)
7627  ac_count=0
7628  $as_echo_n 0123456789 >"conftest.in"
7629  while :
7630  do
7631    cat "conftest.in" "conftest.in" >"conftest.tmp"
7632    mv "conftest.tmp" "conftest.in"
7633    cp "conftest.in" "conftest.nl"
7634    $as_echo 'FGREP' >> "conftest.nl"
7635    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7636    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7637    as_fn_arith $ac_count + 1 && ac_count=$as_val
7638    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7639      # Best one so far, save it but keep looking for a better one
7640      ac_cv_path_FGREP="$ac_path_FGREP"
7641      ac_path_FGREP_max=$ac_count
7642    fi
7643    # 10*(2^10) chars as input seems more than enough
7644    test $ac_count -gt 10 && break
7645  done
7646  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7647esac
7648
7649      $ac_path_FGREP_found && break 3
7650    done
7651  done
7652  done
7653IFS=$as_save_IFS
7654  if test -z "$ac_cv_path_FGREP"; then
7655    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7656  fi
7657else
7658  ac_cv_path_FGREP=$FGREP
7659fi
7660
7661   fi
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7664$as_echo "$ac_cv_path_FGREP" >&6; }
7665 FGREP="$ac_cv_path_FGREP"
7666
7667
7668test -z "$GREP" && GREP=grep
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7691$as_echo_n "checking how to print strings... " >&6; }
7692# Test print first, because it will be a builtin if present.
7693if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7694   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7695  ECHO='print -r --'
7696elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7697  ECHO='printf %s\n'
7698else
7699  # Use this function as a fallback that always works.
7700  func_fallback_echo ()
7701  {
7702    eval 'cat <<_LTECHO_EOF
7703$1
7704_LTECHO_EOF'
7705  }
7706  ECHO='func_fallback_echo'
7707fi
7708
7709# func_echo_all arg...
7710# Invoke $ECHO with all args, space-separated.
7711func_echo_all ()
7712{
7713    $ECHO ""
7714}
7715
7716case "$ECHO" in
7717  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7718$as_echo "printf" >&6; } ;;
7719  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7720$as_echo "print -r" >&6; } ;;
7721  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7722$as_echo "cat" >&6; } ;;
7723esac
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740# Check whether --with-gnu-ld was given.
7741if test "${with_gnu_ld+set}" = set; then :
7742  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7743else
7744  with_gnu_ld=no
7745fi
7746
7747ac_prog=ld
7748if test "$GCC" = yes; then
7749  # Check if gcc -print-prog-name=ld gives a path.
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7751$as_echo_n "checking for ld used by $CC... " >&6; }
7752  case $host in
7753  *-*-mingw*)
7754    # gcc leaves a trailing carriage return which upsets mingw
7755    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7756  *)
7757    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7758  esac
7759  case $ac_prog in
7760    # Accept absolute paths.
7761    [\\/]* | ?:[\\/]*)
7762      re_direlt='/[^/][^/]*/\.\./'
7763      # Canonicalize the pathname of ld
7764      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7765      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7766	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7767      done
7768      test -z "$LD" && LD="$ac_prog"
7769      ;;
7770  "")
7771    # If it fails, then pretend we aren't using GCC.
7772    ac_prog=ld
7773    ;;
7774  *)
7775    # If it is relative, then search for the first ld in PATH.
7776    with_gnu_ld=unknown
7777    ;;
7778  esac
7779elif test "$with_gnu_ld" = yes; then
7780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7781$as_echo_n "checking for GNU ld... " >&6; }
7782else
7783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7784$as_echo_n "checking for non-GNU ld... " >&6; }
7785fi
7786if ${lt_cv_path_LD+:} false; then :
7787  $as_echo_n "(cached) " >&6
7788else
7789  if test -z "$LD"; then
7790  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7791  for ac_dir in $PATH; do
7792    IFS="$lt_save_ifs"
7793    test -z "$ac_dir" && ac_dir=.
7794    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7795      lt_cv_path_LD="$ac_dir/$ac_prog"
7796      # Check to see if the program is GNU ld.  I'd rather use --version,
7797      # but apparently some variants of GNU ld only accept -v.
7798      # Break only if it was the GNU/non-GNU ld that we prefer.
7799      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7800      *GNU* | *'with BFD'*)
7801	test "$with_gnu_ld" != no && break
7802	;;
7803      *)
7804	test "$with_gnu_ld" != yes && break
7805	;;
7806      esac
7807    fi
7808  done
7809  IFS="$lt_save_ifs"
7810else
7811  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7812fi
7813fi
7814
7815LD="$lt_cv_path_LD"
7816if test -n "$LD"; then
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7818$as_echo "$LD" >&6; }
7819else
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822fi
7823test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7825$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7826if ${lt_cv_prog_gnu_ld+:} false; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7830case `$LD -v 2>&1 </dev/null` in
7831*GNU* | *'with BFD'*)
7832  lt_cv_prog_gnu_ld=yes
7833  ;;
7834*)
7835  lt_cv_prog_gnu_ld=no
7836  ;;
7837esac
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7840$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7841with_gnu_ld=$lt_cv_prog_gnu_ld
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7853$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7854if ${ac_cv_prog_cc_c99+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  ac_cv_prog_cc_c99=no
7858ac_save_CC=$CC
7859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861#include <stdarg.h>
7862#include <stdbool.h>
7863#include <stdlib.h>
7864#include <wchar.h>
7865#include <stdio.h>
7866
7867// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7868#define debug(...) fprintf (stderr, __VA_ARGS__)
7869#define showlist(...) puts (#__VA_ARGS__)
7870#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7871static void
7872test_varargs_macros (void)
7873{
7874  int x = 1234;
7875  int y = 5678;
7876  debug ("Flag");
7877  debug ("X = %d\n", x);
7878  showlist (The first, second, and third items.);
7879  report (x>y, "x is %d but y is %d", x, y);
7880}
7881
7882// Check long long types.
7883#define BIG64 18446744073709551615ull
7884#define BIG32 4294967295ul
7885#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7886#if !BIG_OK
7887  your preprocessor is broken;
7888#endif
7889#if BIG_OK
7890#else
7891  your preprocessor is broken;
7892#endif
7893static long long int bignum = -9223372036854775807LL;
7894static unsigned long long int ubignum = BIG64;
7895
7896struct incomplete_array
7897{
7898  int datasize;
7899  double data[];
7900};
7901
7902struct named_init {
7903  int number;
7904  const wchar_t *name;
7905  double average;
7906};
7907
7908typedef const char *ccp;
7909
7910static inline int
7911test_restrict (ccp restrict text)
7912{
7913  // See if C++-style comments work.
7914  // Iterate through items via the restricted pointer.
7915  // Also check for declarations in for loops.
7916  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7917    continue;
7918  return 0;
7919}
7920
7921// Check varargs and va_copy.
7922static void
7923test_varargs (const char *format, ...)
7924{
7925  va_list args;
7926  va_start (args, format);
7927  va_list args_copy;
7928  va_copy (args_copy, args);
7929
7930  const char *str;
7931  int number;
7932  float fnumber;
7933
7934  while (*format)
7935    {
7936      switch (*format++)
7937	{
7938	case 's': // string
7939	  str = va_arg (args_copy, const char *);
7940	  break;
7941	case 'd': // int
7942	  number = va_arg (args_copy, int);
7943	  break;
7944	case 'f': // float
7945	  fnumber = va_arg (args_copy, double);
7946	  break;
7947	default:
7948	  break;
7949	}
7950    }
7951  va_end (args_copy);
7952  va_end (args);
7953}
7954
7955int
7956main ()
7957{
7958
7959  // Check bool.
7960  _Bool success = false;
7961
7962  // Check restrict.
7963  if (test_restrict ("String literal") == 0)
7964    success = true;
7965  char *restrict newvar = "Another string";
7966
7967  // Check varargs.
7968  test_varargs ("s, d' f .", "string", 65, 34.234);
7969  test_varargs_macros ();
7970
7971  // Check flexible array members.
7972  struct incomplete_array *ia =
7973    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7974  ia->datasize = 10;
7975  for (int i = 0; i < ia->datasize; ++i)
7976    ia->data[i] = i * 1.234;
7977
7978  // Check named initializers.
7979  struct named_init ni = {
7980    .number = 34,
7981    .name = L"Test wide string",
7982    .average = 543.34343,
7983  };
7984
7985  ni.number = 58;
7986
7987  int dynamic_array[ni.number];
7988  dynamic_array[ni.number - 1] = 543;
7989
7990  // work around unused variable warnings
7991  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7992	  || dynamic_array[ni.number - 1] != 543);
7993
7994  ;
7995  return 0;
7996}
7997_ACEOF
7998for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7999do
8000  CC="$ac_save_CC $ac_arg"
8001  if ac_fn_c_try_compile "$LINENO"; then :
8002  ac_cv_prog_cc_c99=$ac_arg
8003fi
8004rm -f core conftest.err conftest.$ac_objext
8005  test "x$ac_cv_prog_cc_c99" != "xno" && break
8006done
8007rm -f conftest.$ac_ext
8008CC=$ac_save_CC
8009
8010fi
8011# AC_CACHE_VAL
8012case "x$ac_cv_prog_cc_c99" in
8013  x)
8014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8015$as_echo "none needed" >&6; } ;;
8016  xno)
8017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8018$as_echo "unsupported" >&6; } ;;
8019  *)
8020    CC="$CC $ac_cv_prog_cc_c99"
8021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8022$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8023esac
8024if test "x$ac_cv_prog_cc_c99" != xno; then :
8025
8026fi
8027
8028
8029
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8031$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8032if ${ac_cv_cflags_warn_all+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  ac_cv_cflags_warn_all="no, unknown"
8036 ac_ext=c
8037ac_cpp='$CPP $CPPFLAGS'
8038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041
8042 ac_save_CFLAGS="$CFLAGS"
8043for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
8044do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047
8048int
8049main ()
8050{
8051
8052  ;
8053  return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_compile "$LINENO"; then :
8057  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060done
8061 CFLAGS="$ac_save_CFLAGS"
8062 ac_ext=c
8063ac_cpp='$CPP $CPPFLAGS'
8064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068
8069fi
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8071$as_echo "$ac_cv_cflags_warn_all" >&6; }
8072case ".$ac_cv_cflags_warn_all" in
8073     .ok|.ok,*)  ;;
8074   .|.no|.no,*)
8075 ;;
8076   *)
8077   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8078   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8079  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8080  ac_status=$?
8081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082  test $ac_status = 0; }
8083   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8084  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8085  ac_status=$?
8086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087  test $ac_status = 0; }
8088                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8089   fi
8090 ;;
8091esac
8092
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8095$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8096set x ${MAKE-make}
8097ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8098if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  cat >conftest.make <<\_ACEOF
8102SHELL = /bin/sh
8103all:
8104	@echo '@@@%%%=$(MAKE)=@@@%%%'
8105_ACEOF
8106# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8107case `${MAKE-make} -f conftest.make 2>/dev/null` in
8108  *@@@%%%=?*=@@@%%%*)
8109    eval ac_cv_prog_make_${ac_make}_set=yes;;
8110  *)
8111    eval ac_cv_prog_make_${ac_make}_set=no;;
8112esac
8113rm -f conftest.make
8114fi
8115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8117$as_echo "yes" >&6; }
8118  SET_MAKE=
8119else
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122  SET_MAKE="MAKE=${MAKE-make}"
8123fi
8124
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8126$as_echo_n "checking whether ln -s works... " >&6; }
8127LN_S=$as_ln_s
8128if test "$LN_S" = "ln -s"; then
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130$as_echo "yes" >&6; }
8131else
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8133$as_echo "no, using $LN_S" >&6; }
8134fi
8135
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8137$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8138if ${ac_cv_path_SED+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8142     for ac_i in 1 2 3 4 5 6 7; do
8143       ac_script="$ac_script$as_nl$ac_script"
8144     done
8145     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8146     { ac_script=; unset ac_script;}
8147     if test -z "$SED"; then
8148  ac_path_SED_found=false
8149  # Loop through the user's path and test for each of PROGNAME-LIST
8150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155    for ac_prog in sed gsed; do
8156    for ac_exec_ext in '' $ac_executable_extensions; do
8157      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8158      as_fn_executable_p "$ac_path_SED" || continue
8159# Check for GNU ac_path_SED and select it if it is found.
8160  # Check for GNU $ac_path_SED
8161case `"$ac_path_SED" --version 2>&1` in
8162*GNU*)
8163  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8164*)
8165  ac_count=0
8166  $as_echo_n 0123456789 >"conftest.in"
8167  while :
8168  do
8169    cat "conftest.in" "conftest.in" >"conftest.tmp"
8170    mv "conftest.tmp" "conftest.in"
8171    cp "conftest.in" "conftest.nl"
8172    $as_echo '' >> "conftest.nl"
8173    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8175    as_fn_arith $ac_count + 1 && ac_count=$as_val
8176    if test $ac_count -gt ${ac_path_SED_max-0}; then
8177      # Best one so far, save it but keep looking for a better one
8178      ac_cv_path_SED="$ac_path_SED"
8179      ac_path_SED_max=$ac_count
8180    fi
8181    # 10*(2^10) chars as input seems more than enough
8182    test $ac_count -gt 10 && break
8183  done
8184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8185esac
8186
8187      $ac_path_SED_found && break 3
8188    done
8189  done
8190  done
8191IFS=$as_save_IFS
8192  if test -z "$ac_cv_path_SED"; then
8193    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8194  fi
8195else
8196  ac_cv_path_SED=$SED
8197fi
8198
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8201$as_echo "$ac_cv_path_SED" >&6; }
8202 SED="$ac_cv_path_SED"
8203  rm -f conftest.sed
8204
8205for ac_prog in gawk mawk nawk awk
8206do
8207  # Extract the first word of "$ac_prog", so it can be a program name with args.
8208set dummy $ac_prog; ac_word=$2
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210$as_echo_n "checking for $ac_word... " >&6; }
8211if ${ac_cv_prog_AWK+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  if test -n "$AWK"; then
8215  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8216else
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220  IFS=$as_save_IFS
8221  test -z "$as_dir" && as_dir=.
8222    for ac_exec_ext in '' $ac_executable_extensions; do
8223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224    ac_cv_prog_AWK="$ac_prog"
8225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226    break 2
8227  fi
8228done
8229  done
8230IFS=$as_save_IFS
8231
8232fi
8233fi
8234AWK=$ac_cv_prog_AWK
8235if test -n "$AWK"; then
8236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8237$as_echo "$AWK" >&6; }
8238else
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
8241fi
8242
8243
8244  test -n "$AWK" && break
8245done
8246
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8248$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8249
8250# Check whether --with-dmalloc was given.
8251if test "${with_dmalloc+set}" = set; then :
8252  withval=$with_dmalloc; if test "$withval" = yes; then
8253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254$as_echo "yes" >&6; }
8255
8256$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8257
8258  LIBS="$LIBS -ldmalloc"
8259  LDFLAGS="$LDFLAGS -g"
8260else
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264else
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268
8269
8270
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8272$as_echo_n "checking for __attribute__... " >&6; }
8273if ${ax_cv___attribute__+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278#include <stdlib.h>
8279	  static void foo(void) __attribute__ ((__unused__));
8280	  static void
8281	  foo(void) {
8282	      exit(1);
8283	  }
8284
8285int
8286main ()
8287{
8288
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294  ax_cv___attribute__=yes
8295else
8296  ax_cv___attribute__=no
8297
8298fi
8299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8303$as_echo "$ax_cv___attribute__" >&6; }
8304  if test "$ax_cv___attribute__" = "yes"; then
8305
8306$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8307
8308  fi
8309
8310
8311
8312
8313
8314# Check whether --with-gcc-arch was given.
8315if test "${with_gcc_arch+set}" = set; then :
8316  withval=$with_gcc_arch; ax_gcc_arch=$withval
8317else
8318  ax_gcc_arch=no
8319fi
8320
8321
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8323$as_echo_n "checking for gcc architecture flag... " >&6; }
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8325$as_echo "" >&6; }
8326if ${ax_cv_gcc_archflag+:} false; then :
8327  $as_echo_n "(cached) " >&6
8328else
8329
8330ax_cv_gcc_archflag="unknown"
8331
8332if test "$GCC" = yes; then
8333
8334if test "x$ax_gcc_arch" = xyes; then
8335ax_gcc_arch=""
8336if test "$cross_compiling" = no; then
8337case $host_cpu in
8338  i[3456]86*|x86_64*) # use cpuid codes
8339
8340ac_ext=c
8341ac_cpp='$CPP $CPPFLAGS'
8342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8344ac_compiler_gnu=$ac_cv_c_compiler_gnu
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8347$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8348if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8349  $as_echo_n "(cached) " >&6
8350else
8351  if test "$cross_compiling" = yes; then :
8352  ax_cv_gcc_x86_cpuid_0=unknown
8353else
8354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356#include <stdio.h>
8357int
8358main ()
8359{
8360
8361     int op = 0, eax, ebx, ecx, edx;
8362     FILE *f;
8363      __asm__("cpuid"
8364        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8365        : "a" (op));
8366     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8367     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8368     fclose(f);
8369     return 0;
8370
8371  ;
8372  return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_run "$LINENO"; then :
8376  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8377else
8378  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8379fi
8380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8381  conftest.$ac_objext conftest.beam conftest.$ac_ext
8382fi
8383
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8386$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8387ac_ext=c
8388ac_cpp='$CPP $CPPFLAGS'
8389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391ac_compiler_gnu=$ac_cv_c_compiler_gnu
8392
8393
8394
8395ac_ext=c
8396ac_cpp='$CPP $CPPFLAGS'
8397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399ac_compiler_gnu=$ac_cv_c_compiler_gnu
8400
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8402$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8403if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  if test "$cross_compiling" = yes; then :
8407  ax_cv_gcc_x86_cpuid_1=unknown
8408else
8409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411#include <stdio.h>
8412int
8413main ()
8414{
8415
8416     int op = 1, eax, ebx, ecx, edx;
8417     FILE *f;
8418      __asm__("cpuid"
8419        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8420        : "a" (op));
8421     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8422     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8423     fclose(f);
8424     return 0;
8425
8426  ;
8427  return 0;
8428}
8429_ACEOF
8430if ac_fn_c_try_run "$LINENO"; then :
8431  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8432else
8433  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8434fi
8435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8436  conftest.$ac_objext conftest.beam conftest.$ac_ext
8437fi
8438
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8441$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8442ac_ext=c
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
8449     case $ax_cv_gcc_x86_cpuid_0 in
8450       *:756e6547:*:*) # Intel
8451          case $ax_cv_gcc_x86_cpuid_1 in
8452	    *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8453	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8454	    *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8455	    *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8456	    *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8457	    *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8458	    *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8459	    *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8460	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8461	    *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8462	    *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8463	    *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8464	    *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8465	    *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8466	    ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8467		case $host_cpu in
8468	          x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8469	          *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8470	        esac ;;
8471	    ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8472          esac ;;
8473       *:68747541:*:*) # AMD
8474          case $ax_cv_gcc_x86_cpuid_1 in
8475	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8476	    *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8477	    *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8478	    *60?:*:*:*) ax_gcc_arch=k7 ;;
8479	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8480	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8481	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8482	    *6[68a]?:*:*:*)
8483
8484ac_ext=c
8485ac_cpp='$CPP $CPPFLAGS'
8486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8491$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8492if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  if test "$cross_compiling" = yes; then :
8496  ax_cv_gcc_x86_cpuid_0x80000006=unknown
8497else
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500#include <stdio.h>
8501int
8502main ()
8503{
8504
8505     int op = 0x80000006, eax, ebx, ecx, edx;
8506     FILE *f;
8507      __asm__("cpuid"
8508        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8509        : "a" (op));
8510     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8511     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8512     fclose(f);
8513     return 0;
8514
8515  ;
8516  return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_run "$LINENO"; then :
8520  ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8521else
8522  ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8523fi
8524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8525  conftest.$ac_objext conftest.beam conftest.$ac_ext
8526fi
8527
8528fi
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8530$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8531ac_ext=c
8532ac_cpp='$CPP $CPPFLAGS'
8533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536
8537 # L2 cache size
8538	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
8539                 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8540			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8541                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8542	       esac ;;
8543	    ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8544	    ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8545	    ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8546	    ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8547	    ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8548	    ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8549	    *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8550          esac ;;
8551	*:746e6543:*:*) # IDT
8552	   case $ax_cv_gcc_x86_cpuid_1 in
8553	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8554	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8555	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8556	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8557	   esac ;;
8558     esac
8559     if test x"$ax_gcc_arch" = x; then # fallback
8560	case $host_cpu in
8561	  i586*) ax_gcc_arch=pentium ;;
8562	  i686*) ax_gcc_arch=pentiumpro ;;
8563        esac
8564     fi
8565     ;;
8566
8567  sparc*)
8568     # Extract the first word of "prtdiag", so it can be a program name with args.
8569set dummy prtdiag; ac_word=$2
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571$as_echo_n "checking for $ac_word... " >&6; }
8572if ${ac_cv_path_PRTDIAG+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  case $PRTDIAG in
8576  [\\/]* | ?:[\\/]*)
8577  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8578  ;;
8579  *)
8580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8582for as_dir in $as_dummy
8583do
8584  IFS=$as_save_IFS
8585  test -z "$as_dir" && as_dir=.
8586    for ac_exec_ext in '' $ac_executable_extensions; do
8587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590    break 2
8591  fi
8592done
8593  done
8594IFS=$as_save_IFS
8595
8596  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8597  ;;
8598esac
8599fi
8600PRTDIAG=$ac_cv_path_PRTDIAG
8601if test -n "$PRTDIAG"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8603$as_echo "$PRTDIAG" >&6; }
8604else
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609
8610     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`
8611     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8612     case $cputype in
8613         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8614         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8615         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8616         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8617         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8618         *cypress*) ax_gcc_arch=cypress ;;
8619     esac ;;
8620
8621  alphaev5) ax_gcc_arch=ev5 ;;
8622  alphaev56) ax_gcc_arch=ev56 ;;
8623  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8624  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8625  alphaev6) ax_gcc_arch=ev6 ;;
8626  alphaev67) ax_gcc_arch=ev67 ;;
8627  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8628  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8629  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8630  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8631
8632  powerpc*)
8633     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`
8634     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8635     case $cputype in
8636       *750*) ax_gcc_arch="750 G3" ;;
8637       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8638       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8639       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8640       *970*) ax_gcc_arch="970 G5 power4";;
8641       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8642       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8643       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8644       *) ax_gcc_arch=$cputype ;;
8645     esac
8646     ax_gcc_arch="$ax_gcc_arch powerpc"
8647     ;;
8648esac
8649fi # not cross-compiling
8650fi # guess arch
8651
8652if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8653for arch in $ax_gcc_arch; do
8654  if test "xno" = xyes; then # if we require portable code
8655    flags="-mtune=$arch"
8656    # -mcpu=$arch and m$arch generate nonportable code on every arch except
8657    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8658    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8659  else
8660    flags="-march=$arch -mcpu=$arch -m$arch"
8661  fi
8662  for flag in $flags; do
8663    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8665$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8666if eval \${$as_CACHEVAR+:} false; then :
8667  $as_echo_n "(cached) " >&6
8668else
8669
8670  ax_check_save_flags=$CFLAGS
8671  CFLAGS="$CFLAGS  $flag"
8672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h.  */
8674
8675int
8676main ()
8677{
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  eval "$as_CACHEVAR=yes"
8685else
8686  eval "$as_CACHEVAR=no"
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689  CFLAGS=$ax_check_save_flags
8690fi
8691eval ac_res=\$$as_CACHEVAR
8692	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8693$as_echo "$ac_res" >&6; }
8694if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8695  ax_cv_gcc_archflag=$flag; break
8696else
8697  :
8698fi
8699
8700  done
8701  test "x$ax_cv_gcc_archflag" = xunknown || break
8702done
8703fi
8704
8705fi # $GCC=yes
8706
8707fi
8708
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8710$as_echo_n "checking for gcc architecture flag... " >&6; }
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8712$as_echo "$ax_cv_gcc_archflag" >&6; }
8713if test "x$ax_cv_gcc_archflag" = xunknown; then
8714  :
8715else
8716  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8717fi
8718
8719
8720
8721if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8722	if test -n "$ac_tool_prefix"; then
8723  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8724set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726$as_echo_n "checking for $ac_word... " >&6; }
8727if ${ac_cv_path_PKG_CONFIG+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  case $PKG_CONFIG in
8731  [\\/]* | ?:[\\/]*)
8732  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8733  ;;
8734  *)
8735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738  IFS=$as_save_IFS
8739  test -z "$as_dir" && as_dir=.
8740    for ac_exec_ext in '' $ac_executable_extensions; do
8741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744    break 2
8745  fi
8746done
8747  done
8748IFS=$as_save_IFS
8749
8750  ;;
8751esac
8752fi
8753PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8754if test -n "$PKG_CONFIG"; then
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8756$as_echo "$PKG_CONFIG" >&6; }
8757else
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
8760fi
8761
8762
8763fi
8764if test -z "$ac_cv_path_PKG_CONFIG"; then
8765  ac_pt_PKG_CONFIG=$PKG_CONFIG
8766  # Extract the first word of "pkg-config", so it can be a program name with args.
8767set dummy pkg-config; ac_word=$2
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769$as_echo_n "checking for $ac_word... " >&6; }
8770if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  case $ac_pt_PKG_CONFIG in
8774  [\\/]* | ?:[\\/]*)
8775  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8776  ;;
8777  *)
8778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781  IFS=$as_save_IFS
8782  test -z "$as_dir" && as_dir=.
8783    for ac_exec_ext in '' $ac_executable_extensions; do
8784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787    break 2
8788  fi
8789done
8790  done
8791IFS=$as_save_IFS
8792
8793  ;;
8794esac
8795fi
8796ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8797if test -n "$ac_pt_PKG_CONFIG"; then
8798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8799$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8800else
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804
8805  if test "x$ac_pt_PKG_CONFIG" = x; then
8806    PKG_CONFIG=""
8807  else
8808    case $cross_compiling:$ac_tool_warned in
8809yes:)
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812ac_tool_warned=yes ;;
8813esac
8814    PKG_CONFIG=$ac_pt_PKG_CONFIG
8815  fi
8816else
8817  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8818fi
8819
8820fi
8821if test -n "$PKG_CONFIG"; then
8822	_pkg_min_version=0.9.0
8823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8824$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8825	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8827$as_echo "yes" >&6; }
8828	else
8829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830$as_echo "no" >&6; }
8831		PKG_CONFIG=""
8832	fi
8833
8834fi
8835
8836# Test for 64-bit build.
8837# The cast to long int works around a bug in the HP C Compiler
8838# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8839# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8840# This bug is HP SR number 8606223364.
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8842$as_echo_n "checking size of size_t... " >&6; }
8843if ${ac_cv_sizeof_size_t+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
8847
8848else
8849  if test "$ac_cv_type_size_t" = yes; then
8850     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8852as_fn_error 77 "cannot compute sizeof (size_t)
8853See \`config.log' for more details" "$LINENO" 5; }
8854   else
8855     ac_cv_sizeof_size_t=0
8856   fi
8857fi
8858
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8861$as_echo "$ac_cv_sizeof_size_t" >&6; }
8862
8863
8864
8865cat >>confdefs.h <<_ACEOF
8866#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8867_ACEOF
8868
8869
8870
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8872$as_echo_n "checking for C compiler vendor... " >&6; }
8873if ${ax_cv_c_compiler_vendor+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  # note: don't check for gcc first since some other compilers define __GNUC__
8877  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8878           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8879           pathscale: __PATHCC__,__PATHSCALE__
8880           clang:     __clang__
8881           gnu:       __GNUC__
8882           sun:       __SUNPRO_C,__SUNPRO_CC
8883           hp:        __HP_cc,__HP_aCC
8884           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8885           borland:   __BORLANDC__,__TURBOC__
8886           comeau:    __COMO__
8887           cray:      _CRAYC
8888           kai:       __KCC
8889           lcc:       __LCC__
8890           sgi:       __sgi,sgi
8891           microsoft: _MSC_VER
8892           metrowerks: __MWERKS__
8893           watcom:    __WATCOMC__
8894           portland:  __PGI
8895           unknown:   UNKNOWN"
8896  for ventest in $vendors; do
8897    case $ventest in
8898      *:) vendor=$ventest; continue ;;
8899      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8900    esac
8901    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h.  */
8903
8904int
8905main ()
8906{
8907
8908      #if !($vencpp)
8909        thisisanerror;
8910      #endif
8911
8912  ;
8913  return 0;
8914}
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"; then :
8917  break
8918fi
8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920  done
8921  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8922
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8925$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8926
8927# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8928# compiler.
8929if test "$ax_cv_c_compiler_vendor" != "sun"; then
8930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8931$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8932if ${ac_cv_cflags_warn_all+:} false; then :
8933  $as_echo_n "(cached) " >&6
8934else
8935  ac_cv_cflags_warn_all="no, unknown"
8936 ac_ext=c
8937ac_cpp='$CPP $CPPFLAGS'
8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942 ac_save_CFLAGS="$CFLAGS"
8943for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
8944do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947
8948int
8949main ()
8950{
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_compile "$LINENO"; then :
8957  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960done
8961 CFLAGS="$ac_save_CFLAGS"
8962 ac_ext=c
8963ac_cpp='$CPP $CPPFLAGS'
8964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8966ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8971$as_echo "$ac_cv_cflags_warn_all" >&6; }
8972case ".$ac_cv_cflags_warn_all" in
8973     .ok|.ok,*)  ;;
8974   .|.no|.no,*)
8975 ;;
8976   *)
8977   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8978   then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8979  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8980  ac_status=$?
8981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982  test $ac_status = 0; }
8983   else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8984  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8985  ac_status=$?
8986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8987  test $ac_status = 0; }
8988                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8989   fi
8990 ;;
8991esac
8992
8993fi
8994
8995if test "x$GCC" = "xyes"; then
8996  CFLAGS="$CFLAGS -fexceptions"
8997  touch local.exp
8998else
8999  cat > local.exp <<EOF
9000set CC_FOR_TARGET "$CC"
9001EOF
9002fi
9003
9004# Check for linker script support
9005
9006  # Check whether --enable-ld-version-script was given.
9007if test "${enable_ld_version_script+set}" = set; then :
9008  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9009fi
9010
9011  if test -z "$have_ld_version_script"; then
9012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9013$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9014    save_LDFLAGS="$LDFLAGS"
9015    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9016    cat > conftest.map <<EOF
9017foo
9018EOF
9019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021
9022int
9023main ()
9024{
9025
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_link "$LINENO"; then :
9031  accepts_syntax_errors=yes
9032else
9033  accepts_syntax_errors=no
9034fi
9035rm -f core conftest.err conftest.$ac_objext \
9036    conftest$ac_exeext conftest.$ac_ext
9037    if test "$accepts_syntax_errors" = no; then
9038      cat > conftest.map <<EOF
9039VERS_1 {
9040        global: sym;
9041};
9042
9043VERS_2 {
9044        global: sym;
9045} VERS_1;
9046EOF
9047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049
9050int
9051main ()
9052{
9053
9054  ;
9055  return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_link "$LINENO"; then :
9059  have_ld_version_script=yes
9060else
9061  have_ld_version_script=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064    conftest$ac_exeext conftest.$ac_ext
9065    else
9066      have_ld_version_script=no
9067    fi
9068    rm -f conftest.map
9069    LDFLAGS="$save_LDFLAGS"
9070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9071$as_echo "$have_ld_version_script" >&6; }
9072  fi
9073   if test "$have_ld_version_script" = "yes"; then
9074  HAVE_LD_VERSION_SCRIPT_TRUE=
9075  HAVE_LD_VERSION_SCRIPT_FALSE='#'
9076else
9077  HAVE_LD_VERSION_SCRIPT_TRUE='#'
9078  HAVE_LD_VERSION_SCRIPT_FALSE=
9079fi
9080
9081
9082
9083#
9084# Enable run-time checking.
9085#
9086# Check whether --enable-bounds-checking was given.
9087if test "${enable_bounds_checking+set}" = set; then :
9088  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9089else
9090  enable_bounds_checking='no'
9091fi
9092
9093
9094if test "$enable_bounds_checking" = yes; then
9095
9096$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
9097
9098fi
9099
9100#
9101# Tests for Windows
9102#
9103
9104
9105
9106GDI32_LIBS=''
9107native_win32_build='no'
9108cygwin_build='no'
9109case "${host_os}" in
9110    cygwin* )
9111        cygwin_build='yes'
9112        GDI32_LIBS='-lgdi32'
9113    ;;
9114    mingw* )
9115        native_win32_build='yes'
9116        GDI32_LIBS='-lgdi32'
9117    ;;
9118esac
9119if test "${GDI32_LIBS}x" != 'x'; then
9120
9121$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
9122
9123fi
9124
9125 if test "${GDI32_LIBS}x" != 'x' ; then
9126  WINGDI32_DELEGATE_TRUE=
9127  WINGDI32_DELEGATE_FALSE='#'
9128else
9129  WINGDI32_DELEGATE_TRUE='#'
9130  WINGDI32_DELEGATE_FALSE=
9131fi
9132
9133 if test "${native_win32_build}" = 'yes' ; then
9134  WIN32_NATIVE_BUILD_TRUE=
9135  WIN32_NATIVE_BUILD_FALSE='#'
9136else
9137  WIN32_NATIVE_BUILD_TRUE='#'
9138  WIN32_NATIVE_BUILD_FALSE=
9139fi
9140
9141 if test "${cygwin_build}" = 'yes' ; then
9142  CYGWIN_BUILD_TRUE=
9143  CYGWIN_BUILD_FALSE='#'
9144else
9145  CYGWIN_BUILD_TRUE='#'
9146  CYGWIN_BUILD_FALSE=
9147fi
9148
9149 if test "x${CC}" = 'xcl.exe' ; then
9150  USING_CL_TRUE=
9151  USING_CL_FALSE='#'
9152else
9153  USING_CL_TRUE='#'
9154  USING_CL_FALSE=
9155fi
9156
9157
9158WinPathScript="${srcdirfull}/winpath.sh"
9159
9160
9161#
9162# Compiler flags tweaks
9163#
9164if test "${GCC}" != "yes"; then
9165    case "${host}" in
9166        *-*-hpux* )
9167            # aCC: HP ANSI C++ B3910B A.03.34
9168            CFLAGS="${CFLAGS} -Wp,-H30000"
9169            if test -n "${CXXFLAGS}"; then
9170                CXXFLAGS='-AA'
9171            else
9172                CXXFLAGS="${CXXFLAGS} -AA"
9173            fi
9174        ;;
9175        *-dec-osf5.* )
9176            # Compaq alphaev68-dec-osf5.1 compiler
9177            if test -n "${CXXFLAGS}"; then
9178                CXXFLAGS='-std strict_ansi -noimplicit_include'
9179            else
9180                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9181            fi
9182  esac
9183fi
9184
9185# Check for lazy-loading.
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
9187$as_echo_n "checking for linker lazyload option... " >&6; }
9188if ${im_cv_ld_lazyload+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191
9192im_cv_ld_lazyload='none'
9193case "${host}" in
9194  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9195    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9196       im_cv_ld_lazyload='-Wl,-zlazyload'
9197    fi
9198    ;;
9199esac
9200
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9203$as_echo "$im_cv_ld_lazyload" >&6; }
9204if test "${im_cv_ld_lazyload}" != 'none' ; then
9205  if test -z "${LDFLAGS}" ; then
9206    LDFLAGS="${im_cv_ld_lazyload}"
9207  else
9208    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9209  fi
9210fi
9211
9212case "$host" in
9213  *darwin* | *-macos10*)
9214        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9215        # Check whether --enable-osx-universal-binary was given.
9216if test "${enable_osx_universal_binary+set}" = set; then :
9217  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9218else
9219  build_osxuniversal=no
9220fi
9221
9222
9223    if test "${build_osxuniversal}" != no ; then
9224      if test "$enable_dependency_tracking" != no ; then
9225        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9226Please re-run configure with these options:
9227  --disable-dependency-tracking --enable-osx-universal-binary
9228        " "$LINENO" 5
9229      fi
9230      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9231      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9232      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9233  fi
9234  ;;
9235esac
9236
9237#
9238# ARCH specific include directory
9239#
9240
9241# Check whether --with-includearch-dir was given.
9242if test "${with_includearch_dir+set}" = set; then :
9243  withval=$with_includearch_dir; includearch_dir=$withval
9244else
9245  includearch_dir=$INCLUDE_DIR
9246fi
9247
9248
9249eval "eval INCLUDEARCH_DIR=$includearch_dir"
9250
9251
9252#
9253# ARCH specific configuration directory
9254#
9255
9256# Check whether --with-sharearch-dir was given.
9257if test "${with_sharearch_dir+set}" = set; then :
9258  withval=$with_sharearch_dir; sharearch_dir=$withval
9259else
9260  sharearch_dir="${LIB_DIR}"
9261fi
9262
9263
9264eval "eval SHAREARCH_DIR=$sharearch_dir"
9265
9266
9267# Path to the pkgconfig folder
9268
9269# Check whether --with-pkgconfigdir was given.
9270if test "${with_pkgconfigdir+set}" = set; then :
9271  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9272else
9273  pkgconfigdir='${libdir}/pkgconfig'
9274fi
9275
9276
9277
9278#
9279# Enable support for threads
9280#
9281# Find Posix threads library
9282#
9283
9284# Check whether --with-threads was given.
9285if test "${with_threads+set}" = set; then :
9286  withval=$with_threads; with_threads=$withval
9287else
9288  with_threads='yes'
9289fi
9290
9291
9292THREAD_LIBS=''
9293have_threads=no
9294if test "$with_threads" != 'no'; then
9295
9296
9297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303ax_pthread_ok=no
9304
9305# We used to check for pthread.h first, but this fails if pthread.h
9306# requires special compiler flags (e.g. on True64 or Sequent).
9307# It gets checked for in the link test anyway.
9308
9309# First of all, check if the user has set any of the PTHREAD_LIBS,
9310# etcetera environment variables, and if threads linking works using
9311# them:
9312if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9313        save_CFLAGS="$CFLAGS"
9314        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9315        save_LIBS="$LIBS"
9316        LIBS="$PTHREAD_LIBS $LIBS"
9317        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9318$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9319        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321
9322/* Override any GCC internal prototype to avoid an error.
9323   Use char because int might match the return type of a GCC
9324   builtin and then its argument prototype would still apply.  */
9325#ifdef __cplusplus
9326extern "C"
9327#endif
9328char pthread_join ();
9329int
9330main ()
9331{
9332return pthread_join ();
9333  ;
9334  return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338  ax_pthread_ok=yes
9339fi
9340rm -f core conftest.err conftest.$ac_objext \
9341    conftest$ac_exeext conftest.$ac_ext
9342        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9343$as_echo "$ax_pthread_ok" >&6; }
9344        if test x"$ax_pthread_ok" = xno; then
9345                PTHREAD_LIBS=""
9346                PTHREAD_CFLAGS=""
9347        fi
9348        LIBS="$save_LIBS"
9349        CFLAGS="$save_CFLAGS"
9350fi
9351
9352# We must check for the threads library under a number of different
9353# names; the ordering is very important because some systems
9354# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9355# libraries is broken (non-POSIX).
9356
9357# Create a list of thread flags to try.  Items starting with a "-" are
9358# C compiler flags, and other items are library names, except for "none"
9359# which indicates that we try without any flags at all, and "pthread-config"
9360# which is a program returning the flags for the Pth emulation library.
9361
9362ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9363
9364# The ordering *is* (sometimes) important.  Some notes on the
9365# individual items follow:
9366
9367# pthreads: AIX (must check this before -lpthread)
9368# none: in case threads are in libc; should be tried before -Kthread and
9369#       other compiler flags to prevent continual compiler warnings
9370# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9371# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9372# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9373# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9374# -pthreads: Solaris/gcc
9375# -mthreads: Mingw32/gcc, Lynx/gcc
9376# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9377#      doesn't hurt to check since this sometimes defines pthreads too;
9378#      also defines -D_REENTRANT)
9379#      ... -mt is also the pthreads flag for HP/aCC
9380# pthread: Linux, etcetera
9381# --thread-safe: KAI C++
9382# pthread-config: use pthread-config program (for GNU Pth library)
9383
9384case ${host_os} in
9385        solaris*)
9386
9387        # On Solaris (at least, for some versions), libc contains stubbed
9388        # (non-functional) versions of the pthreads routines, so link-based
9389        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9390        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9391        # a function called by this macro, so we could check for that, but
9392        # who knows whether they'll stub that too in a future libc.)  So,
9393        # we'll just look for -pthreads and -lpthread first:
9394
9395        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9396        ;;
9397
9398        darwin*)
9399        ax_pthread_flags="-pthread $ax_pthread_flags"
9400        ;;
9401esac
9402
9403if test x"$ax_pthread_ok" = xno; then
9404for flag in $ax_pthread_flags; do
9405
9406        case $flag in
9407                none)
9408                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9409$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9410                ;;
9411
9412                -*)
9413                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9414$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9415                PTHREAD_CFLAGS="$flag"
9416                ;;
9417
9418                pthread-config)
9419                # Extract the first word of "pthread-config", so it can be a program name with args.
9420set dummy pthread-config; ac_word=$2
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422$as_echo_n "checking for $ac_word... " >&6; }
9423if ${ac_cv_prog_ax_pthread_config+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  if test -n "$ax_pthread_config"; then
9427  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9428else
9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $PATH
9431do
9432  IFS=$as_save_IFS
9433  test -z "$as_dir" && as_dir=.
9434    for ac_exec_ext in '' $ac_executable_extensions; do
9435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436    ac_cv_prog_ax_pthread_config="yes"
9437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438    break 2
9439  fi
9440done
9441  done
9442IFS=$as_save_IFS
9443
9444  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9445fi
9446fi
9447ax_pthread_config=$ac_cv_prog_ax_pthread_config
9448if test -n "$ax_pthread_config"; then
9449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9450$as_echo "$ax_pthread_config" >&6; }
9451else
9452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
9454fi
9455
9456
9457                if test x"$ax_pthread_config" = xno; then continue; fi
9458                PTHREAD_CFLAGS="`pthread-config --cflags`"
9459                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9460                ;;
9461
9462                *)
9463                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9464$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9465                PTHREAD_LIBS="-l$flag"
9466                ;;
9467        esac
9468
9469        save_LIBS="$LIBS"
9470        save_CFLAGS="$CFLAGS"
9471        LIBS="$PTHREAD_LIBS $LIBS"
9472        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9473
9474        # Check for various functions.  We must include pthread.h,
9475        # since some functions may be macros.  (On the Sequent, we
9476        # need a special flag -Kthread to make this header compile.)
9477        # We check for pthread_join because it is in -lpthread on IRIX
9478        # while pthread_create is in libc.  We check for pthread_attr_init
9479        # due to DEC craziness with -lpthreads.  We check for
9480        # pthread_cleanup_push because it is one of the few pthread
9481        # functions on Solaris that doesn't have a non-functional libc stub.
9482        # We try pthread_create on general principles.
9483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485#include <pthread.h>
9486                        static void routine(void *a) { a = 0; }
9487                        static void *start_routine(void *a) { return a; }
9488int
9489main ()
9490{
9491pthread_t th; pthread_attr_t attr;
9492                        pthread_create(&th, 0, start_routine, 0);
9493                        pthread_join(th, 0);
9494                        pthread_attr_init(&attr);
9495                        pthread_cleanup_push(routine, 0);
9496                        pthread_cleanup_pop(0) /* ; */
9497  ;
9498  return 0;
9499}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502  ax_pthread_ok=yes
9503fi
9504rm -f core conftest.err conftest.$ac_objext \
9505    conftest$ac_exeext conftest.$ac_ext
9506
9507        LIBS="$save_LIBS"
9508        CFLAGS="$save_CFLAGS"
9509
9510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9511$as_echo "$ax_pthread_ok" >&6; }
9512        if test "x$ax_pthread_ok" = xyes; then
9513                break;
9514        fi
9515
9516        PTHREAD_LIBS=""
9517        PTHREAD_CFLAGS=""
9518done
9519fi
9520
9521# Various other checks:
9522if test "x$ax_pthread_ok" = xyes; then
9523        save_LIBS="$LIBS"
9524        LIBS="$PTHREAD_LIBS $LIBS"
9525        save_CFLAGS="$CFLAGS"
9526        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9527
9528        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9529        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9530$as_echo_n "checking for joinable pthread attribute... " >&6; }
9531        attr_name=unknown
9532        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9533            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535#include <pthread.h>
9536int
9537main ()
9538{
9539int attr = $attr; return attr /* ; */
9540  ;
9541  return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545  attr_name=$attr; break
9546fi
9547rm -f core conftest.err conftest.$ac_objext \
9548    conftest$ac_exeext conftest.$ac_ext
9549        done
9550        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9551$as_echo "$attr_name" >&6; }
9552        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9553
9554cat >>confdefs.h <<_ACEOF
9555#define PTHREAD_CREATE_JOINABLE $attr_name
9556_ACEOF
9557
9558        fi
9559
9560        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9561$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9562        flag=no
9563        case ${host_os} in
9564            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9565            osf* | hpux*) flag="-D_REENTRANT";;
9566            solaris*)
9567            if test "$GCC" = "yes"; then
9568                flag="-D_REENTRANT"
9569            else
9570                flag="-mt -D_REENTRANT"
9571            fi
9572            ;;
9573        esac
9574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9575$as_echo "${flag}" >&6; }
9576        if test "x$flag" != xno; then
9577            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9578        fi
9579
9580        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9581$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9582if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585
9586                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h.  */
9588
9589                    #include <pthread.h>
9590int
9591main ()
9592{
9593int i = PTHREAD_PRIO_INHERIT;
9594  ;
9595  return 0;
9596}
9597_ACEOF
9598if ac_fn_c_try_link "$LINENO"; then :
9599  ax_cv_PTHREAD_PRIO_INHERIT=yes
9600else
9601  ax_cv_PTHREAD_PRIO_INHERIT=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604    conftest$ac_exeext conftest.$ac_ext
9605
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9608$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9609        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9610
9611$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9612
9613fi
9614
9615        LIBS="$save_LIBS"
9616        CFLAGS="$save_CFLAGS"
9617
9618        # More AIX lossage: compile with *_r variant
9619        if test "x$GCC" != xyes; then
9620            case $host_os in
9621                aix*)
9622                case "x/$CC" in #(
9623  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9624    #handle absolute path differently from PATH based program lookup
9625                   case "x$CC" in #(
9626  x/*) :
9627    if as_fn_executable_p ${CC}_r; then :
9628  PTHREAD_CC="${CC}_r"
9629fi ;; #(
9630  *) :
9631    for ac_prog in ${CC}_r
9632do
9633  # Extract the first word of "$ac_prog", so it can be a program name with args.
9634set dummy $ac_prog; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  if test -n "$PTHREAD_CC"; then
9641  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646  IFS=$as_save_IFS
9647  test -z "$as_dir" && as_dir=.
9648    for ac_exec_ext in '' $ac_executable_extensions; do
9649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650    ac_cv_prog_PTHREAD_CC="$ac_prog"
9651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652    break 2
9653  fi
9654done
9655  done
9656IFS=$as_save_IFS
9657
9658fi
9659fi
9660PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9661if test -n "$PTHREAD_CC"; then
9662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9663$as_echo "$PTHREAD_CC" >&6; }
9664else
9665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
9667fi
9668
9669
9670  test -n "$PTHREAD_CC" && break
9671done
9672test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9673 ;;
9674esac ;; #(
9675  *) :
9676     ;;
9677esac
9678                ;;
9679            esac
9680        fi
9681fi
9682
9683test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9684
9685
9686
9687
9688
9689# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9690if test x"$ax_pthread_ok" = xyes; then
9691
9692$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9693
9694        :
9695else
9696        ax_pthread_ok=no
9697
9698fi
9699ac_ext=c
9700ac_cpp='$CPP $CPPFLAGS'
9701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703ac_compiler_gnu=$ac_cv_c_compiler_gnu
9704
9705
9706    if test "$ax_pthread_ok" = yes; then
9707        have_threads=yes
9708        DEF_THREAD="$PTHREAD_CFLAGS"
9709        CFLAGS="$CFLAGS $DEF_THREAD"
9710        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9711	THREAD_LIBS="$PTHREAD_LIBS"
9712        if test "$CC" != "$PTHREAD_CC"; then
9713            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9714$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9715            CC="$PTHREAD_CC"
9716        fi
9717
9718$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9719
9720    fi
9721fi
9722LIBS="$LIBS $THREAD_LIBS"
9723
9724
9725# Enable support for OpenMP
9726if test "$have_threads" != 'yes'; then
9727  ac_cv_prog_c_openmp=unsupported
9728fi
9729
9730  OPENMP_CFLAGS=
9731  # Check whether --enable-openmp was given.
9732if test "${enable_openmp+set}" = set; then :
9733  enableval=$enable_openmp;
9734fi
9735
9736  if test "$enable_openmp" != no; then
9737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
9738$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
9739if ${ac_cv_prog_c_openmp+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h.  */
9744
9745#ifndef _OPENMP
9746 choke me
9747#endif
9748#include <omp.h>
9749int main () { return omp_get_num_threads (); }
9750
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753  ac_cv_prog_c_openmp='none needed'
9754else
9755  ac_cv_prog_c_openmp='unsupported'
9756	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9757                           -Popenmp --openmp; do
9758	    ac_save_CFLAGS=$CFLAGS
9759	    CFLAGS="$CFLAGS $ac_option"
9760	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h.  */
9762
9763#ifndef _OPENMP
9764 choke me
9765#endif
9766#include <omp.h>
9767int main () { return omp_get_num_threads (); }
9768
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"; then :
9771  ac_cv_prog_c_openmp=$ac_option
9772fi
9773rm -f core conftest.err conftest.$ac_objext \
9774    conftest$ac_exeext conftest.$ac_ext
9775	    CFLAGS=$ac_save_CFLAGS
9776	    if test "$ac_cv_prog_c_openmp" != unsupported; then
9777	      break
9778	    fi
9779	  done
9780fi
9781rm -f core conftest.err conftest.$ac_objext \
9782    conftest$ac_exeext conftest.$ac_ext
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
9785$as_echo "$ac_cv_prog_c_openmp" >&6; }
9786    case $ac_cv_prog_c_openmp in #(
9787      "none needed" | unsupported)
9788	;; #(
9789      *)
9790	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
9791    esac
9792  fi
9793
9794
9795CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9796MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9797
9798if test "$enable_openmp" != no; then
9799  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9800    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9801  fi
9802fi
9803
9804# Enable support for OpenCL
9805
9806
9807ac_ext=c
9808ac_cpp='$CPP $CPPFLAGS'
9809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812
9813ax_pthread_ok=no
9814
9815# We used to check for pthread.h first, but this fails if pthread.h
9816# requires special compiler flags (e.g. on True64 or Sequent).
9817# It gets checked for in the link test anyway.
9818
9819# First of all, check if the user has set any of the PTHREAD_LIBS,
9820# etcetera environment variables, and if threads linking works using
9821# them:
9822if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9823        save_CFLAGS="$CFLAGS"
9824        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9825        save_LIBS="$LIBS"
9826        LIBS="$PTHREAD_LIBS $LIBS"
9827        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9828$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9829        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831
9832/* Override any GCC internal prototype to avoid an error.
9833   Use char because int might match the return type of a GCC
9834   builtin and then its argument prototype would still apply.  */
9835#ifdef __cplusplus
9836extern "C"
9837#endif
9838char pthread_join ();
9839int
9840main ()
9841{
9842return pthread_join ();
9843  ;
9844  return 0;
9845}
9846_ACEOF
9847if ac_fn_c_try_link "$LINENO"; then :
9848  ax_pthread_ok=yes
9849fi
9850rm -f core conftest.err conftest.$ac_objext \
9851    conftest$ac_exeext conftest.$ac_ext
9852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9853$as_echo "$ax_pthread_ok" >&6; }
9854        if test x"$ax_pthread_ok" = xno; then
9855                PTHREAD_LIBS=""
9856                PTHREAD_CFLAGS=""
9857        fi
9858        LIBS="$save_LIBS"
9859        CFLAGS="$save_CFLAGS"
9860fi
9861
9862# We must check for the threads library under a number of different
9863# names; the ordering is very important because some systems
9864# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9865# libraries is broken (non-POSIX).
9866
9867# Create a list of thread flags to try.  Items starting with a "-" are
9868# C compiler flags, and other items are library names, except for "none"
9869# which indicates that we try without any flags at all, and "pthread-config"
9870# which is a program returning the flags for the Pth emulation library.
9871
9872ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9873
9874# The ordering *is* (sometimes) important.  Some notes on the
9875# individual items follow:
9876
9877# pthreads: AIX (must check this before -lpthread)
9878# none: in case threads are in libc; should be tried before -Kthread and
9879#       other compiler flags to prevent continual compiler warnings
9880# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9881# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9882# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9883# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9884# -pthreads: Solaris/gcc
9885# -mthreads: Mingw32/gcc, Lynx/gcc
9886# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9887#      doesn't hurt to check since this sometimes defines pthreads too;
9888#      also defines -D_REENTRANT)
9889#      ... -mt is also the pthreads flag for HP/aCC
9890# pthread: Linux, etcetera
9891# --thread-safe: KAI C++
9892# pthread-config: use pthread-config program (for GNU Pth library)
9893
9894case ${host_os} in
9895        solaris*)
9896
9897        # On Solaris (at least, for some versions), libc contains stubbed
9898        # (non-functional) versions of the pthreads routines, so link-based
9899        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
9900        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
9901        # a function called by this macro, so we could check for that, but
9902        # who knows whether they'll stub that too in a future libc.)  So,
9903        # we'll just look for -pthreads and -lpthread first:
9904
9905        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9906        ;;
9907
9908        darwin*)
9909        ax_pthread_flags="-pthread $ax_pthread_flags"
9910        ;;
9911esac
9912
9913if test x"$ax_pthread_ok" = xno; then
9914for flag in $ax_pthread_flags; do
9915
9916        case $flag in
9917                none)
9918                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9919$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9920                ;;
9921
9922                -*)
9923                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9924$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9925                PTHREAD_CFLAGS="$flag"
9926                ;;
9927
9928                pthread-config)
9929                # Extract the first word of "pthread-config", so it can be a program name with args.
9930set dummy pthread-config; ac_word=$2
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
9933if ${ac_cv_prog_ax_pthread_config+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  if test -n "$ax_pthread_config"; then
9937  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9938else
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942  IFS=$as_save_IFS
9943  test -z "$as_dir" && as_dir=.
9944    for ac_exec_ext in '' $ac_executable_extensions; do
9945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946    ac_cv_prog_ax_pthread_config="yes"
9947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948    break 2
9949  fi
9950done
9951  done
9952IFS=$as_save_IFS
9953
9954  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9955fi
9956fi
9957ax_pthread_config=$ac_cv_prog_ax_pthread_config
9958if test -n "$ax_pthread_config"; then
9959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9960$as_echo "$ax_pthread_config" >&6; }
9961else
9962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9964fi
9965
9966
9967                if test x"$ax_pthread_config" = xno; then continue; fi
9968                PTHREAD_CFLAGS="`pthread-config --cflags`"
9969                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9970                ;;
9971
9972                *)
9973                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9974$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9975                PTHREAD_LIBS="-l$flag"
9976                ;;
9977        esac
9978
9979        save_LIBS="$LIBS"
9980        save_CFLAGS="$CFLAGS"
9981        LIBS="$PTHREAD_LIBS $LIBS"
9982        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9983
9984        # Check for various functions.  We must include pthread.h,
9985        # since some functions may be macros.  (On the Sequent, we
9986        # need a special flag -Kthread to make this header compile.)
9987        # We check for pthread_join because it is in -lpthread on IRIX
9988        # while pthread_create is in libc.  We check for pthread_attr_init
9989        # due to DEC craziness with -lpthreads.  We check for
9990        # pthread_cleanup_push because it is one of the few pthread
9991        # functions on Solaris that doesn't have a non-functional libc stub.
9992        # We try pthread_create on general principles.
9993        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995#include <pthread.h>
9996                        static void routine(void *a) { a = 0; }
9997                        static void *start_routine(void *a) { return a; }
9998int
9999main ()
10000{
10001pthread_t th; pthread_attr_t attr;
10002                        pthread_create(&th, 0, start_routine, 0);
10003                        pthread_join(th, 0);
10004                        pthread_attr_init(&attr);
10005                        pthread_cleanup_push(routine, 0);
10006                        pthread_cleanup_pop(0) /* ; */
10007  ;
10008  return 0;
10009}
10010_ACEOF
10011if ac_fn_c_try_link "$LINENO"; then :
10012  ax_pthread_ok=yes
10013fi
10014rm -f core conftest.err conftest.$ac_objext \
10015    conftest$ac_exeext conftest.$ac_ext
10016
10017        LIBS="$save_LIBS"
10018        CFLAGS="$save_CFLAGS"
10019
10020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10021$as_echo "$ax_pthread_ok" >&6; }
10022        if test "x$ax_pthread_ok" = xyes; then
10023                break;
10024        fi
10025
10026        PTHREAD_LIBS=""
10027        PTHREAD_CFLAGS=""
10028done
10029fi
10030
10031# Various other checks:
10032if test "x$ax_pthread_ok" = xyes; then
10033        save_LIBS="$LIBS"
10034        LIBS="$PTHREAD_LIBS $LIBS"
10035        save_CFLAGS="$CFLAGS"
10036        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10037
10038        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10039        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10040$as_echo_n "checking for joinable pthread attribute... " >&6; }
10041        attr_name=unknown
10042        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10043            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045#include <pthread.h>
10046int
10047main ()
10048{
10049int attr = $attr; return attr /* ; */
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054if ac_fn_c_try_link "$LINENO"; then :
10055  attr_name=$attr; break
10056fi
10057rm -f core conftest.err conftest.$ac_objext \
10058    conftest$ac_exeext conftest.$ac_ext
10059        done
10060        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10061$as_echo "$attr_name" >&6; }
10062        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10063
10064cat >>confdefs.h <<_ACEOF
10065#define PTHREAD_CREATE_JOINABLE $attr_name
10066_ACEOF
10067
10068        fi
10069
10070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10071$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10072        flag=no
10073        case ${host_os} in
10074            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10075            osf* | hpux*) flag="-D_REENTRANT";;
10076            solaris*)
10077            if test "$GCC" = "yes"; then
10078                flag="-D_REENTRANT"
10079            else
10080                flag="-mt -D_REENTRANT"
10081            fi
10082            ;;
10083        esac
10084        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10085$as_echo "${flag}" >&6; }
10086        if test "x$flag" != xno; then
10087            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10088        fi
10089
10090        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10091$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10092if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095
10096                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097/* end confdefs.h.  */
10098
10099                    #include <pthread.h>
10100int
10101main ()
10102{
10103int i = PTHREAD_PRIO_INHERIT;
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
10109  ax_cv_PTHREAD_PRIO_INHERIT=yes
10110else
10111  ax_cv_PTHREAD_PRIO_INHERIT=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext \
10114    conftest$ac_exeext conftest.$ac_ext
10115
10116fi
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10118$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10119        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10120
10121$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10122
10123fi
10124
10125        LIBS="$save_LIBS"
10126        CFLAGS="$save_CFLAGS"
10127
10128        # More AIX lossage: compile with *_r variant
10129        if test "x$GCC" != xyes; then
10130            case $host_os in
10131                aix*)
10132                case "x/$CC" in #(
10133  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10134    #handle absolute path differently from PATH based program lookup
10135                   case "x$CC" in #(
10136  x/*) :
10137    if as_fn_executable_p ${CC}_r; then :
10138  PTHREAD_CC="${CC}_r"
10139fi ;; #(
10140  *) :
10141    for ac_prog in ${CC}_r
10142do
10143  # Extract the first word of "$ac_prog", so it can be a program name with args.
10144set dummy $ac_prog; ac_word=$2
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146$as_echo_n "checking for $ac_word... " >&6; }
10147if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  if test -n "$PTHREAD_CC"; then
10151  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10152else
10153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154for as_dir in $PATH
10155do
10156  IFS=$as_save_IFS
10157  test -z "$as_dir" && as_dir=.
10158    for ac_exec_ext in '' $ac_executable_extensions; do
10159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160    ac_cv_prog_PTHREAD_CC="$ac_prog"
10161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162    break 2
10163  fi
10164done
10165  done
10166IFS=$as_save_IFS
10167
10168fi
10169fi
10170PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10171if test -n "$PTHREAD_CC"; then
10172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10173$as_echo "$PTHREAD_CC" >&6; }
10174else
10175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176$as_echo "no" >&6; }
10177fi
10178
10179
10180  test -n "$PTHREAD_CC" && break
10181done
10182test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10183 ;;
10184esac ;; #(
10185  *) :
10186     ;;
10187esac
10188                ;;
10189            esac
10190        fi
10191fi
10192
10193test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10194
10195
10196
10197
10198
10199# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10200if test x"$ax_pthread_ok" = xyes; then
10201
10202$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10203
10204        :
10205else
10206        ax_pthread_ok=no
10207
10208fi
10209ac_ext=c
10210ac_cpp='$CPP $CPPFLAGS'
10211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10213ac_compiler_gnu=$ac_cv_c_compiler_gnu
10214
10215
10216
10217# Check whether --enable-opencl was given.
10218if test "${enable_opencl+set}" = set; then :
10219  enableval=$enable_opencl; enable_opencl=$enableval
10220else
10221  enable_opencl='no'
10222fi
10223
10224
10225if test "$enable_opencl" = 'yes'; then
10226  ac_ext=c
10227ac_cpp='$CPP $CPPFLAGS'
10228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10230ac_compiler_gnu=$ac_cv_c_compiler_gnu
10231
10232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10233$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10234if ${ax_cv_c_compiler_ms+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239
10240int
10241main ()
10242{
10243#ifndef _MSC_VER
10244       choke me
10245#endif
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"; then :
10252  ax_compiler_ms=yes
10253else
10254  ax_compiler_ms=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257ax_cv_c_compiler_ms=$ax_compiler_ms
10258
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10261$as_echo "$ax_cv_c_compiler_ms" >&6; }
10262  if test X$ax_compiler_ms = Xno; then :
10263  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10264fi
10265
10266  ax_save_CPPFLAGS=$CPPFLAGS
10267  ax_save_CL_CFLAGS=$CL_CFLAGS
10268
10269  found_opencl_header='no'
10270  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10271  for ac_header in CL/cl.h OpenCL/cl.h
10272do :
10273  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10276  cat >>confdefs.h <<_ACEOF
10277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278_ACEOF
10279 found_opencl_header='yes'
10280                    break;
10281else
10282  found_opencl_header='no'
10283fi
10284
10285done
10286
10287
10288  if test X$found_opencl_header = Xno; then :
10289  { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10290         { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10291         CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10292         CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10293         for ac_header in CL/cl.h OpenCL/cl.h
10294do :
10295  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10296ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10297if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10298  cat >>confdefs.h <<_ACEOF
10299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10300_ACEOF
10301 found_opencl_header='yes'
10302                           break;
10303else
10304  found_opencl_header='no'
10305fi
10306
10307done
10308
10309
10310fi
10311
10312  CPPFLAGS="$ax_save_CPPFLAGS"
10313
10314  for ac_header in windows.h
10315do :
10316  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10317if test "x$ac_cv_header_windows_h" = xyes; then :
10318  cat >>confdefs.h <<_ACEOF
10319#define HAVE_WINDOWS_H 1
10320_ACEOF
10321
10322fi
10323
10324done
10325
10326
10327
10328
10329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10330$as_echo_n "checking for OpenCL library... " >&6; }
10331if ${ax_cv_check_cl_libcl+:} false; then :
10332  $as_echo_n "(cached) " >&6
10333else
10334  ax_cv_check_cl_libcl=no
10335  case $host_cpu in
10336    x86_64) ax_check_cl_libdir=lib64
10337            ax_check_cl_amd_libdir=x86_64
10338	    ;;
10339    *)      ax_check_cl_libdir=lib
10340            ax_check_cl_amd_libdir=x86
10341            ;;
10342  esac
10343  ax_save_CPPFLAGS=$CPPFLAGS
10344  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10345  ax_save_LIBS=$LIBS
10346  LIBS=""
10347  ax_check_libs="-lOpenCL -lCL -lclparser"
10348  for ax_lib in $ax_check_libs; do
10349    if test X$ax_compiler_ms = Xyes; then :
10350  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10351else
10352  ax_try_lib=$ax_lib
10353fi
10354    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357
10358  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10359  #   include <windows.h>
10360  # endif
10361  # ifdef HAVE_CL_CL_H
10362  #   include <CL/cl.h>
10363  # elif defined(HAVE_OPENCL_CL_H)
10364  #   include <OpenCL/cl.h>
10365  # else
10366  #   error no CL.h
10367  # endif
10368int
10369main ()
10370{
10371clCreateContextFromType(0,0,0,0,0)
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"; then :
10377  ax_cv_check_cl_libcl=$ax_try_lib; break
10378else
10379  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"
10380                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381/* end confdefs.h.  */
10382
10383  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10384  #   include <windows.h>
10385  # endif
10386  # ifdef HAVE_CL_CL_H
10387  #   include <CL/cl.h>
10388  # elif defined(HAVE_OPENCL_CL_H)
10389  #   include <OpenCL/cl.h>
10390  # else
10391  #   error no CL.h
10392  # endif
10393int
10394main ()
10395{
10396clCreateContextFromType(0,0,0,0,0)
10397  ;
10398  return 0;
10399}
10400_ACEOF
10401if ac_fn_c_try_link "$LINENO"; then :
10402  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10403else
10404  ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
10405                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h.  */
10407
10408  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10409  #   include <windows.h>
10410  # endif
10411  # ifdef HAVE_CL_CL_H
10412  #   include <CL/cl.h>
10413  # elif defined(HAVE_OPENCL_CL_H)
10414  #   include <OpenCL/cl.h>
10415  # else
10416  #   error no CL.h
10417  # endif
10418int
10419main ()
10420{
10421clCreateContextFromType(0,0,0,0,0)
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426if ac_fn_c_try_link "$LINENO"; then :
10427  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10428else
10429  ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10430						                                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h.  */
10432
10433  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10434  #   include <windows.h>
10435  # endif
10436  # ifdef HAVE_CL_CL_H
10437  #   include <CL/cl.h>
10438  # elif defined(HAVE_OPENCL_CL_H)
10439  #   include <OpenCL/cl.h>
10440  # else
10441  #   error no CL.h
10442  # endif
10443int
10444main ()
10445{
10446clCreateContextFromType(0,0,0,0,0)
10447  ;
10448  return 0;
10449}
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"; then :
10452  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10453
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456    conftest$ac_exeext conftest.$ac_ext
10457
10458
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461    conftest$ac_exeext conftest.$ac_ext
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464    conftest$ac_exeext conftest.$ac_ext
10465fi
10466rm -f core conftest.err conftest.$ac_objext \
10467    conftest$ac_exeext conftest.$ac_ext
10468  done
10469
10470  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10471  LIBS='-Wl,-framework,OpenCL'
10472        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473/* end confdefs.h.  */
10474
10475  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10476  #   include <windows.h>
10477  # endif
10478  # ifdef HAVE_CL_CL_H
10479  #   include <CL/cl.h>
10480  # elif defined(HAVE_OPENCL_CL_H)
10481  #   include <OpenCL/cl.h>
10482  # else
10483  #   error no CL.h
10484  # endif
10485int
10486main ()
10487{
10488clCreateContextFromType(0,0,0,0,0)
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494  ax_cv_check_cl_libcl=$LIBS
10495fi
10496rm -f core conftest.err conftest.$ac_objext \
10497    conftest$ac_exeext conftest.$ac_ext
10498fi
10499
10500  LIBS=$ax_save_LIBS
10501  CPPFLAGS=$ax_save_CPPFLAGS
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10504$as_echo "$ax_cv_check_cl_libcl" >&6; }
10505
10506  if test "X$ax_cv_check_cl_libcl" = Xno; then :
10507  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10508else
10509  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10510$as_echo "#define _OPENCL 1" >>confdefs.h
10511
10512fi
10513  ac_ext=c
10514ac_cpp='$CPP $CPPFLAGS'
10515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518
10519fi
10520
10521
10522
10523#remove static link on Linux
10524CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10525
10526
10527CFLAGS="$CL_CFLAGS $CFLAGS"
10528CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10529LIBS="$CL_LIBS $LIBS"
10530
10531if test "$enable_opencl" != no; then
10532  if test "X$ax_cv_check_cl_libcl" != Xno; then :
10533    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10534  fi
10535fi
10536
10537########
10538#
10539# Check for large file support
10540#
10541########
10542# Check whether --enable-largefile was given.
10543if test "${enable_largefile+set}" = set; then :
10544  enableval=$enable_largefile;
10545fi
10546
10547if test "$enable_largefile" != no; then
10548
10549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10550$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10551if ${ac_cv_sys_largefile_CC+:} false; then :
10552  $as_echo_n "(cached) " >&6
10553else
10554  ac_cv_sys_largefile_CC=no
10555     if test "$GCC" != yes; then
10556       ac_save_CC=$CC
10557       while :; do
10558	 # IRIX 6.2 and later do not support large files by default,
10559	 # so use the C compiler's -n32 option if that helps.
10560	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561/* end confdefs.h.  */
10562#include <sys/types.h>
10563 /* Check that off_t can represent 2**63 - 1 correctly.
10564    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10565    since some C++ compilers masquerading as C compilers
10566    incorrectly reject 9223372036854775807.  */
10567#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10568  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10569		       && LARGE_OFF_T % 2147483647 == 1)
10570		      ? 1 : -1];
10571int
10572main ()
10573{
10574
10575  ;
10576  return 0;
10577}
10578_ACEOF
10579	 if ac_fn_c_try_compile "$LINENO"; then :
10580  break
10581fi
10582rm -f core conftest.err conftest.$ac_objext
10583	 CC="$CC -n32"
10584	 if ac_fn_c_try_compile "$LINENO"; then :
10585  ac_cv_sys_largefile_CC=' -n32'; break
10586fi
10587rm -f core conftest.err conftest.$ac_objext
10588	 break
10589       done
10590       CC=$ac_save_CC
10591       rm -f conftest.$ac_ext
10592    fi
10593fi
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10595$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10596  if test "$ac_cv_sys_largefile_CC" != no; then
10597    CC=$CC$ac_cv_sys_largefile_CC
10598  fi
10599
10600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10601$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10602if ${ac_cv_sys_file_offset_bits+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  while :; do
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608#include <sys/types.h>
10609 /* Check that off_t can represent 2**63 - 1 correctly.
10610    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10611    since some C++ compilers masquerading as C compilers
10612    incorrectly reject 9223372036854775807.  */
10613#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10614  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10615		       && LARGE_OFF_T % 2147483647 == 1)
10616		      ? 1 : -1];
10617int
10618main ()
10619{
10620
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625if ac_fn_c_try_compile "$LINENO"; then :
10626  ac_cv_sys_file_offset_bits=no; break
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h.  */
10631#define _FILE_OFFSET_BITS 64
10632#include <sys/types.h>
10633 /* Check that off_t can represent 2**63 - 1 correctly.
10634    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10635    since some C++ compilers masquerading as C compilers
10636    incorrectly reject 9223372036854775807.  */
10637#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10638  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10639		       && LARGE_OFF_T % 2147483647 == 1)
10640		      ? 1 : -1];
10641int
10642main ()
10643{
10644
10645  ;
10646  return 0;
10647}
10648_ACEOF
10649if ac_fn_c_try_compile "$LINENO"; then :
10650  ac_cv_sys_file_offset_bits=64; break
10651fi
10652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653  ac_cv_sys_file_offset_bits=unknown
10654  break
10655done
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10658$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10659case $ac_cv_sys_file_offset_bits in #(
10660  no | unknown) ;;
10661  *)
10662cat >>confdefs.h <<_ACEOF
10663#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10664_ACEOF
10665;;
10666esac
10667rm -rf conftest*
10668  if test $ac_cv_sys_file_offset_bits = unknown; then
10669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10670$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10671if ${ac_cv_sys_large_files+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  while :; do
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677#include <sys/types.h>
10678 /* Check that off_t can represent 2**63 - 1 correctly.
10679    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10680    since some C++ compilers masquerading as C compilers
10681    incorrectly reject 9223372036854775807.  */
10682#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10683  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10684		       && LARGE_OFF_T % 2147483647 == 1)
10685		      ? 1 : -1];
10686int
10687main ()
10688{
10689
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694if ac_fn_c_try_compile "$LINENO"; then :
10695  ac_cv_sys_large_files=no; break
10696fi
10697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699/* end confdefs.h.  */
10700#define _LARGE_FILES 1
10701#include <sys/types.h>
10702 /* Check that off_t can represent 2**63 - 1 correctly.
10703    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10704    since some C++ compilers masquerading as C compilers
10705    incorrectly reject 9223372036854775807.  */
10706#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10707  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10708		       && LARGE_OFF_T % 2147483647 == 1)
10709		      ? 1 : -1];
10710int
10711main ()
10712{
10713
10714  ;
10715  return 0;
10716}
10717_ACEOF
10718if ac_fn_c_try_compile "$LINENO"; then :
10719  ac_cv_sys_large_files=1; break
10720fi
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722  ac_cv_sys_large_files=unknown
10723  break
10724done
10725fi
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10727$as_echo "$ac_cv_sys_large_files" >&6; }
10728case $ac_cv_sys_large_files in #(
10729  no | unknown) ;;
10730  *)
10731cat >>confdefs.h <<_ACEOF
10732#define _LARGE_FILES $ac_cv_sys_large_files
10733_ACEOF
10734;;
10735esac
10736rm -rf conftest*
10737  fi
10738
10739
10740fi
10741
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10743$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10744if ${ac_cv_sys_largefile_source+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  while :; do
10748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h.  */
10750#include <sys/types.h> /* for off_t */
10751     #include <stdio.h>
10752int
10753main ()
10754{
10755int (*fp) (FILE *, off_t, int) = fseeko;
10756     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761if ac_fn_c_try_link "$LINENO"; then :
10762  ac_cv_sys_largefile_source=no; break
10763fi
10764rm -f core conftest.err conftest.$ac_objext \
10765    conftest$ac_exeext conftest.$ac_ext
10766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h.  */
10768#define _LARGEFILE_SOURCE 1
10769#include <sys/types.h> /* for off_t */
10770     #include <stdio.h>
10771int
10772main ()
10773{
10774int (*fp) (FILE *, off_t, int) = fseeko;
10775     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10776  ;
10777  return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_link "$LINENO"; then :
10781  ac_cv_sys_largefile_source=1; break
10782fi
10783rm -f core conftest.err conftest.$ac_objext \
10784    conftest$ac_exeext conftest.$ac_ext
10785  ac_cv_sys_largefile_source=unknown
10786  break
10787done
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10790$as_echo "$ac_cv_sys_largefile_source" >&6; }
10791case $ac_cv_sys_largefile_source in #(
10792  no | unknown) ;;
10793  *)
10794cat >>confdefs.h <<_ACEOF
10795#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10796_ACEOF
10797;;
10798esac
10799rm -rf conftest*
10800
10801# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10802# in glibc 2.1.3, but that breaks too many other things.
10803# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10804if test $ac_cv_sys_largefile_source != unknown; then
10805
10806$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10807
10808fi
10809
10810LFS_CPPFLAGS=''
10811if test "$enable_largefile" != no; then
10812    case $ac_cv_sys_file_offset_bits in
10813    no)
10814        # nothing to do here as the host supports LFS fine
10815        ;;
10816    unknown)
10817        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10818$as_echo_n "checking for native large file support... " >&6; }
10819        if test "$cross_compiling" = yes; then :
10820  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10822as_fn_error $? "cannot run test program while cross compiling
10823See \`config.log' for more details" "$LINENO" 5; }
10824else
10825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826/* end confdefs.h.  */
10827#include <unistd.h>
10828          main () {
10829          exit(!(sizeof(off_t) == 8));
10830        }
10831int
10832main ()
10833{
10834
10835  ;
10836  return 0;
10837}
10838_ACEOF
10839if ac_fn_c_try_run "$LINENO"; then :
10840  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10841
10842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10843$as_echo "yes" >&6; }
10844else
10845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
10847fi
10848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10849  conftest.$ac_objext conftest.beam conftest.$ac_ext
10850fi
10851
10852        ;;
10853    *)
10854        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10855        ;;
10856    esac
10857    if test "$ac_cv_sys_large_files" != 'no'; then
10858        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10859    fi
10860    if test "$ac_cv_sys_largefile_source" != 'no'; then
10861        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10862    fi
10863fi
10864
10865
10866# Configure libtool
10867enable_dlopen=yes
10868
10869
10870
10871case `pwd` in
10872  *\ * | *\	*)
10873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10874$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10875esac
10876
10877
10878
10879macro_version='2.4.2'
10880macro_revision='1.3337'
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894ltmain="$ac_aux_dir/ltmain.sh"
10895
10896# Backslashify metacharacters that are still active within
10897# double-quoted strings.
10898sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10899
10900# Same as above, but do not quote variable references.
10901double_quote_subst='s/\(["`\\]\)/\\\1/g'
10902
10903# Sed substitution to delay expansion of an escaped shell variable in a
10904# double_quote_subst'ed string.
10905delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10906
10907# Sed substitution to delay expansion of an escaped single quote.
10908delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10909
10910# Sed substitution to avoid accidental globbing in evaled expressions
10911no_glob_subst='s/\*/\\\*/g'
10912
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10914$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10915if ${lt_cv_path_NM+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  if test -n "$NM"; then
10919  # Let the user override the test.
10920  lt_cv_path_NM="$NM"
10921else
10922  lt_nm_to_check="${ac_tool_prefix}nm"
10923  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10924    lt_nm_to_check="$lt_nm_to_check nm"
10925  fi
10926  for lt_tmp_nm in $lt_nm_to_check; do
10927    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10928    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10929      IFS="$lt_save_ifs"
10930      test -z "$ac_dir" && ac_dir=.
10931      tmp_nm="$ac_dir/$lt_tmp_nm"
10932      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10933	# Check to see if the nm accepts a BSD-compat flag.
10934	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10935	#   nm: unknown option "B" ignored
10936	# Tru64's nm complains that /dev/null is an invalid object file
10937	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10938	*/dev/null* | *'Invalid file or object type'*)
10939	  lt_cv_path_NM="$tmp_nm -B"
10940	  break
10941	  ;;
10942	*)
10943	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10944	  */dev/null*)
10945	    lt_cv_path_NM="$tmp_nm -p"
10946	    break
10947	    ;;
10948	  *)
10949	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10950	    continue # so that we can try to find one that supports BSD flags
10951	    ;;
10952	  esac
10953	  ;;
10954	esac
10955      fi
10956    done
10957    IFS="$lt_save_ifs"
10958  done
10959  : ${lt_cv_path_NM=no}
10960fi
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10963$as_echo "$lt_cv_path_NM" >&6; }
10964if test "$lt_cv_path_NM" != "no"; then
10965  NM="$lt_cv_path_NM"
10966else
10967  # Didn't find any BSD compatible name lister, look for dumpbin.
10968  if test -n "$DUMPBIN"; then :
10969    # Let the user override the test.
10970  else
10971    if test -n "$ac_tool_prefix"; then
10972  for ac_prog in dumpbin "link -dump"
10973  do
10974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
10978if ${ac_cv_prog_DUMPBIN+:} false; then :
10979  $as_echo_n "(cached) " >&6
10980else
10981  if test -n "$DUMPBIN"; then
10982  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987  IFS=$as_save_IFS
10988  test -z "$as_dir" && as_dir=.
10989    for ac_exec_ext in '' $ac_executable_extensions; do
10990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993    break 2
10994  fi
10995done
10996  done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001DUMPBIN=$ac_cv_prog_DUMPBIN
11002if test -n "$DUMPBIN"; then
11003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11004$as_echo "$DUMPBIN" >&6; }
11005else
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010
11011    test -n "$DUMPBIN" && break
11012  done
11013fi
11014if test -z "$DUMPBIN"; then
11015  ac_ct_DUMPBIN=$DUMPBIN
11016  for ac_prog in dumpbin "link -dump"
11017do
11018  # Extract the first word of "$ac_prog", so it can be a program name with args.
11019set dummy $ac_prog; ac_word=$2
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
11022if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11023  $as_echo_n "(cached) " >&6
11024else
11025  if test -n "$ac_ct_DUMPBIN"; then
11026  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11027else
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031  IFS=$as_save_IFS
11032  test -z "$as_dir" && as_dir=.
11033    for ac_exec_ext in '' $ac_executable_extensions; do
11034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037    break 2
11038  fi
11039done
11040  done
11041IFS=$as_save_IFS
11042
11043fi
11044fi
11045ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11046if test -n "$ac_ct_DUMPBIN"; then
11047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11048$as_echo "$ac_ct_DUMPBIN" >&6; }
11049else
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
11052fi
11053
11054
11055  test -n "$ac_ct_DUMPBIN" && break
11056done
11057
11058  if test "x$ac_ct_DUMPBIN" = x; then
11059    DUMPBIN=":"
11060  else
11061    case $cross_compiling:$ac_tool_warned in
11062yes:)
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11065ac_tool_warned=yes ;;
11066esac
11067    DUMPBIN=$ac_ct_DUMPBIN
11068  fi
11069fi
11070
11071    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11072    *COFF*)
11073      DUMPBIN="$DUMPBIN -symbols"
11074      ;;
11075    *)
11076      DUMPBIN=:
11077      ;;
11078    esac
11079  fi
11080
11081  if test "$DUMPBIN" != ":"; then
11082    NM="$DUMPBIN"
11083  fi
11084fi
11085test -z "$NM" && NM=nm
11086
11087
11088
11089
11090
11091
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11093$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11094if ${lt_cv_nm_interface+:} false; then :
11095  $as_echo_n "(cached) " >&6
11096else
11097  lt_cv_nm_interface="BSD nm"
11098  echo "int some_variable = 0;" > conftest.$ac_ext
11099  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11100  (eval "$ac_compile" 2>conftest.err)
11101  cat conftest.err >&5
11102  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11103  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11104  cat conftest.err >&5
11105  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11106  cat conftest.out >&5
11107  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11108    lt_cv_nm_interface="MS dumpbin"
11109  fi
11110  rm -f conftest*
11111fi
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11113$as_echo "$lt_cv_nm_interface" >&6; }
11114
11115# find the maximum length of command line arguments
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11117$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11118if ${lt_cv_sys_max_cmd_len+:} false; then :
11119  $as_echo_n "(cached) " >&6
11120else
11121    i=0
11122  teststring="ABCD"
11123
11124  case $build_os in
11125  msdosdjgpp*)
11126    # On DJGPP, this test can blow up pretty badly due to problems in libc
11127    # (any single argument exceeding 2000 bytes causes a buffer overrun
11128    # during glob expansion).  Even if it were fixed, the result of this
11129    # check would be larger than it should be.
11130    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11131    ;;
11132
11133  gnu*)
11134    # Under GNU Hurd, this test is not required because there is
11135    # no limit to the length of command line arguments.
11136    # Libtool will interpret -1 as no limit whatsoever
11137    lt_cv_sys_max_cmd_len=-1;
11138    ;;
11139
11140  cygwin* | mingw* | cegcc*)
11141    # On Win9x/ME, this test blows up -- it succeeds, but takes
11142    # about 5 minutes as the teststring grows exponentially.
11143    # Worse, since 9x/ME are not pre-emptively multitasking,
11144    # you end up with a "frozen" computer, even though with patience
11145    # the test eventually succeeds (with a max line length of 256k).
11146    # Instead, let's just punt: use the minimum linelength reported by
11147    # all of the supported platforms: 8192 (on NT/2K/XP).
11148    lt_cv_sys_max_cmd_len=8192;
11149    ;;
11150
11151  mint*)
11152    # On MiNT this can take a long time and run out of memory.
11153    lt_cv_sys_max_cmd_len=8192;
11154    ;;
11155
11156  amigaos*)
11157    # On AmigaOS with pdksh, this test takes hours, literally.
11158    # So we just punt and use a minimum line length of 8192.
11159    lt_cv_sys_max_cmd_len=8192;
11160    ;;
11161
11162  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11163    # This has been around since 386BSD, at least.  Likely further.
11164    if test -x /sbin/sysctl; then
11165      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11166    elif test -x /usr/sbin/sysctl; then
11167      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11168    else
11169      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11170    fi
11171    # And add a safety zone
11172    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11173    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11174    ;;
11175
11176  interix*)
11177    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11178    lt_cv_sys_max_cmd_len=196608
11179    ;;
11180
11181  os2*)
11182    # The test takes a long time on OS/2.
11183    lt_cv_sys_max_cmd_len=8192
11184    ;;
11185
11186  osf*)
11187    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11188    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11189    # nice to cause kernel panics so lets avoid the loop below.
11190    # First set a reasonable default.
11191    lt_cv_sys_max_cmd_len=16384
11192    #
11193    if test -x /sbin/sysconfig; then
11194      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11195        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11196      esac
11197    fi
11198    ;;
11199  sco3.2v5*)
11200    lt_cv_sys_max_cmd_len=102400
11201    ;;
11202  sysv5* | sco5v6* | sysv4.2uw2*)
11203    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11204    if test -n "$kargmax"; then
11205      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11206    else
11207      lt_cv_sys_max_cmd_len=32768
11208    fi
11209    ;;
11210  *)
11211    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11212    if test -n "$lt_cv_sys_max_cmd_len"; then
11213      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11214      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11215    else
11216      # Make teststring a little bigger before we do anything with it.
11217      # a 1K string should be a reasonable start.
11218      for i in 1 2 3 4 5 6 7 8 ; do
11219        teststring=$teststring$teststring
11220      done
11221      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11222      # If test is not a shell built-in, we'll probably end up computing a
11223      # maximum length that is only half of the actual maximum length, but
11224      # we can't tell.
11225      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11226	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11227	      test $i != 17 # 1/2 MB should be enough
11228      do
11229        i=`expr $i + 1`
11230        teststring=$teststring$teststring
11231      done
11232      # Only check the string length outside the loop.
11233      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11234      teststring=
11235      # Add a significant safety factor because C++ compilers can tack on
11236      # massive amounts of additional arguments before passing them to the
11237      # linker.  It appears as though 1/2 is a usable value.
11238      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11239    fi
11240    ;;
11241  esac
11242
11243fi
11244
11245if test -n $lt_cv_sys_max_cmd_len ; then
11246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11247$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11248else
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11250$as_echo "none" >&6; }
11251fi
11252max_cmd_len=$lt_cv_sys_max_cmd_len
11253
11254
11255
11256
11257
11258
11259: ${CP="cp -f"}
11260: ${MV="mv -f"}
11261: ${RM="rm -f"}
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11264$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11265# Try some XSI features
11266xsi_shell=no
11267( _lt_dummy="a/b/c"
11268  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11269      = c,a/b,b/c, \
11270    && eval 'test $(( 1 + 1 )) -eq 2 \
11271    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11272  && xsi_shell=yes
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11274$as_echo "$xsi_shell" >&6; }
11275
11276
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11278$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11279lt_shell_append=no
11280( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11281    >/dev/null 2>&1 \
11282  && lt_shell_append=yes
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11284$as_echo "$lt_shell_append" >&6; }
11285
11286
11287if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11288  lt_unset=unset
11289else
11290  lt_unset=false
11291fi
11292
11293
11294
11295
11296
11297# test EBCDIC or ASCII
11298case `echo X|tr X '\101'` in
11299 A) # ASCII based system
11300    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11301  lt_SP2NL='tr \040 \012'
11302  lt_NL2SP='tr \015\012 \040\040'
11303  ;;
11304 *) # EBCDIC based system
11305  lt_SP2NL='tr \100 \n'
11306  lt_NL2SP='tr \r\n \100\100'
11307  ;;
11308esac
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11319$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11320if ${lt_cv_to_host_file_cmd+:} false; then :
11321  $as_echo_n "(cached) " >&6
11322else
11323  case $host in
11324  *-*-mingw* )
11325    case $build in
11326      *-*-mingw* ) # actually msys
11327        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11328        ;;
11329      *-*-cygwin* )
11330        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11331        ;;
11332      * ) # otherwise, assume *nix
11333        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11334        ;;
11335    esac
11336    ;;
11337  *-*-cygwin* )
11338    case $build in
11339      *-*-mingw* ) # actually msys
11340        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11341        ;;
11342      *-*-cygwin* )
11343        lt_cv_to_host_file_cmd=func_convert_file_noop
11344        ;;
11345      * ) # otherwise, assume *nix
11346        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11347        ;;
11348    esac
11349    ;;
11350  * ) # unhandled hosts (and "normal" native builds)
11351    lt_cv_to_host_file_cmd=func_convert_file_noop
11352    ;;
11353esac
11354
11355fi
11356
11357to_host_file_cmd=$lt_cv_to_host_file_cmd
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11359$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11360
11361
11362
11363
11364
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11366$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11367if ${lt_cv_to_tool_file_cmd+:} false; then :
11368  $as_echo_n "(cached) " >&6
11369else
11370  #assume ordinary cross tools, or native build.
11371lt_cv_to_tool_file_cmd=func_convert_file_noop
11372case $host in
11373  *-*-mingw* )
11374    case $build in
11375      *-*-mingw* ) # actually msys
11376        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11377        ;;
11378    esac
11379    ;;
11380esac
11381
11382fi
11383
11384to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11386$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11387
11388
11389
11390
11391
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11393$as_echo_n "checking for $LD option to reload object files... " >&6; }
11394if ${lt_cv_ld_reload_flag+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  lt_cv_ld_reload_flag='-r'
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11400$as_echo "$lt_cv_ld_reload_flag" >&6; }
11401reload_flag=$lt_cv_ld_reload_flag
11402case $reload_flag in
11403"" | " "*) ;;
11404*) reload_flag=" $reload_flag" ;;
11405esac
11406reload_cmds='$LD$reload_flag -o $output$reload_objs'
11407case $host_os in
11408  cygwin* | mingw* | pw32* | cegcc*)
11409    if test "$GCC" != yes; then
11410      reload_cmds=false
11411    fi
11412    ;;
11413  darwin*)
11414    if test "$GCC" = yes; then
11415      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11416    else
11417      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11418    fi
11419    ;;
11420esac
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430if test -n "$ac_tool_prefix"; then
11431  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11432set dummy ${ac_tool_prefix}objdump; ac_word=$2
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if ${ac_cv_prog_OBJDUMP+:} false; then :
11436  $as_echo_n "(cached) " >&6
11437else
11438  if test -n "$OBJDUMP"; then
11439  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444  IFS=$as_save_IFS
11445  test -z "$as_dir" && as_dir=.
11446    for ac_exec_ext in '' $ac_executable_extensions; do
11447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11448    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450    break 2
11451  fi
11452done
11453  done
11454IFS=$as_save_IFS
11455
11456fi
11457fi
11458OBJDUMP=$ac_cv_prog_OBJDUMP
11459if test -n "$OBJDUMP"; then
11460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11461$as_echo "$OBJDUMP" >&6; }
11462else
11463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
11465fi
11466
11467
11468fi
11469if test -z "$ac_cv_prog_OBJDUMP"; then
11470  ac_ct_OBJDUMP=$OBJDUMP
11471  # Extract the first word of "objdump", so it can be a program name with args.
11472set dummy objdump; ac_word=$2
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474$as_echo_n "checking for $ac_word... " >&6; }
11475if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11476  $as_echo_n "(cached) " >&6
11477else
11478  if test -n "$ac_ct_OBJDUMP"; then
11479  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11480else
11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484  IFS=$as_save_IFS
11485  test -z "$as_dir" && as_dir=.
11486    for ac_exec_ext in '' $ac_executable_extensions; do
11487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490    break 2
11491  fi
11492done
11493  done
11494IFS=$as_save_IFS
11495
11496fi
11497fi
11498ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11499if test -n "$ac_ct_OBJDUMP"; then
11500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11501$as_echo "$ac_ct_OBJDUMP" >&6; }
11502else
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
11505fi
11506
11507  if test "x$ac_ct_OBJDUMP" = x; then
11508    OBJDUMP="false"
11509  else
11510    case $cross_compiling:$ac_tool_warned in
11511yes:)
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11514ac_tool_warned=yes ;;
11515esac
11516    OBJDUMP=$ac_ct_OBJDUMP
11517  fi
11518else
11519  OBJDUMP="$ac_cv_prog_OBJDUMP"
11520fi
11521
11522test -z "$OBJDUMP" && OBJDUMP=objdump
11523
11524
11525
11526
11527
11528
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11530$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11531if ${lt_cv_deplibs_check_method+:} false; then :
11532  $as_echo_n "(cached) " >&6
11533else
11534  lt_cv_file_magic_cmd='$MAGIC_CMD'
11535lt_cv_file_magic_test_file=
11536lt_cv_deplibs_check_method='unknown'
11537# Need to set the preceding variable on all platforms that support
11538# interlibrary dependencies.
11539# 'none' -- dependencies not supported.
11540# `unknown' -- same as none, but documents that we really don't know.
11541# 'pass_all' -- all dependencies passed with no checks.
11542# 'test_compile' -- check by making test program.
11543# 'file_magic [[regex]]' -- check by looking for files in library path
11544# which responds to the $file_magic_cmd with a given extended regex.
11545# If you have `file' or equivalent on your system and you're not sure
11546# whether `pass_all' will *always* work, you probably want this one.
11547
11548case $host_os in
11549aix[4-9]*)
11550  lt_cv_deplibs_check_method=pass_all
11551  ;;
11552
11553beos*)
11554  lt_cv_deplibs_check_method=pass_all
11555  ;;
11556
11557bsdi[45]*)
11558  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11559  lt_cv_file_magic_cmd='/usr/bin/file -L'
11560  lt_cv_file_magic_test_file=/shlib/libc.so
11561  ;;
11562
11563cygwin*)
11564  # func_win32_libid is a shell function defined in ltmain.sh
11565  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11566  lt_cv_file_magic_cmd='func_win32_libid'
11567  ;;
11568
11569mingw* | pw32*)
11570  # Base MSYS/MinGW do not provide the 'file' command needed by
11571  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11572  # unless we find 'file', for example because we are cross-compiling.
11573  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11574  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11575    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11576    lt_cv_file_magic_cmd='func_win32_libid'
11577  else
11578    # Keep this pattern in sync with the one in func_win32_libid.
11579    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11580    lt_cv_file_magic_cmd='$OBJDUMP -f'
11581  fi
11582  ;;
11583
11584cegcc*)
11585  # use the weaker test based on 'objdump'. See mingw*.
11586  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11587  lt_cv_file_magic_cmd='$OBJDUMP -f'
11588  ;;
11589
11590darwin* | rhapsody*)
11591  lt_cv_deplibs_check_method=pass_all
11592  ;;
11593
11594freebsd* | dragonfly*)
11595  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11596    case $host_cpu in
11597    i*86 )
11598      # Not sure whether the presence of OpenBSD here was a mistake.
11599      # Let's accept both of them until this is cleared up.
11600      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11601      lt_cv_file_magic_cmd=/usr/bin/file
11602      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11603      ;;
11604    esac
11605  else
11606    lt_cv_deplibs_check_method=pass_all
11607  fi
11608  ;;
11609
11610gnu*)
11611  lt_cv_deplibs_check_method=pass_all
11612  ;;
11613
11614haiku*)
11615  lt_cv_deplibs_check_method=pass_all
11616  ;;
11617
11618hpux10.20* | hpux11*)
11619  lt_cv_file_magic_cmd=/usr/bin/file
11620  case $host_cpu in
11621  ia64*)
11622    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11623    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11624    ;;
11625  hppa*64*)
11626    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]'
11627    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11628    ;;
11629  *)
11630    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11631    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11632    ;;
11633  esac
11634  ;;
11635
11636interix[3-9]*)
11637  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11638  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11639  ;;
11640
11641irix5* | irix6* | nonstopux*)
11642  case $LD in
11643  *-32|*"-32 ") libmagic=32-bit;;
11644  *-n32|*"-n32 ") libmagic=N32;;
11645  *-64|*"-64 ") libmagic=64-bit;;
11646  *) libmagic=never-match;;
11647  esac
11648  lt_cv_deplibs_check_method=pass_all
11649  ;;
11650
11651# This must be glibc/ELF.
11652linux* | k*bsd*-gnu | kopensolaris*-gnu)
11653  lt_cv_deplibs_check_method=pass_all
11654  ;;
11655
11656netbsd*)
11657  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11658    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11659  else
11660    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11661  fi
11662  ;;
11663
11664newos6*)
11665  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11666  lt_cv_file_magic_cmd=/usr/bin/file
11667  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11668  ;;
11669
11670*nto* | *qnx*)
11671  lt_cv_deplibs_check_method=pass_all
11672  ;;
11673
11674openbsd*)
11675  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11676    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11677  else
11678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11679  fi
11680  ;;
11681
11682osf3* | osf4* | osf5*)
11683  lt_cv_deplibs_check_method=pass_all
11684  ;;
11685
11686rdos*)
11687  lt_cv_deplibs_check_method=pass_all
11688  ;;
11689
11690solaris*)
11691  lt_cv_deplibs_check_method=pass_all
11692  ;;
11693
11694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11695  lt_cv_deplibs_check_method=pass_all
11696  ;;
11697
11698sysv4 | sysv4.3*)
11699  case $host_vendor in
11700  motorola)
11701    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]'
11702    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11703    ;;
11704  ncr)
11705    lt_cv_deplibs_check_method=pass_all
11706    ;;
11707  sequent)
11708    lt_cv_file_magic_cmd='/bin/file'
11709    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11710    ;;
11711  sni)
11712    lt_cv_file_magic_cmd='/bin/file'
11713    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11714    lt_cv_file_magic_test_file=/lib/libc.so
11715    ;;
11716  siemens)
11717    lt_cv_deplibs_check_method=pass_all
11718    ;;
11719  pc)
11720    lt_cv_deplibs_check_method=pass_all
11721    ;;
11722  esac
11723  ;;
11724
11725tpf*)
11726  lt_cv_deplibs_check_method=pass_all
11727  ;;
11728esac
11729
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11732$as_echo "$lt_cv_deplibs_check_method" >&6; }
11733
11734file_magic_glob=
11735want_nocaseglob=no
11736if test "$build" = "$host"; then
11737  case $host_os in
11738  mingw* | pw32*)
11739    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11740      want_nocaseglob=yes
11741    else
11742      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11743    fi
11744    ;;
11745  esac
11746fi
11747
11748file_magic_cmd=$lt_cv_file_magic_cmd
11749deplibs_check_method=$lt_cv_deplibs_check_method
11750test -z "$deplibs_check_method" && deplibs_check_method=unknown
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773if test -n "$ac_tool_prefix"; then
11774  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11775set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777$as_echo_n "checking for $ac_word... " >&6; }
11778if ${ac_cv_prog_DLLTOOL+:} false; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  if test -n "$DLLTOOL"; then
11782  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11783else
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787  IFS=$as_save_IFS
11788  test -z "$as_dir" && as_dir=.
11789    for ac_exec_ext in '' $ac_executable_extensions; do
11790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793    break 2
11794  fi
11795done
11796  done
11797IFS=$as_save_IFS
11798
11799fi
11800fi
11801DLLTOOL=$ac_cv_prog_DLLTOOL
11802if test -n "$DLLTOOL"; then
11803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11804$as_echo "$DLLTOOL" >&6; }
11805else
11806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807$as_echo "no" >&6; }
11808fi
11809
11810
11811fi
11812if test -z "$ac_cv_prog_DLLTOOL"; then
11813  ac_ct_DLLTOOL=$DLLTOOL
11814  # Extract the first word of "dlltool", so it can be a program name with args.
11815set dummy dlltool; ac_word=$2
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11817$as_echo_n "checking for $ac_word... " >&6; }
11818if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11819  $as_echo_n "(cached) " >&6
11820else
11821  if test -n "$ac_ct_DLLTOOL"; then
11822  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11823else
11824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825for as_dir in $PATH
11826do
11827  IFS=$as_save_IFS
11828  test -z "$as_dir" && as_dir=.
11829    for ac_exec_ext in '' $ac_executable_extensions; do
11830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833    break 2
11834  fi
11835done
11836  done
11837IFS=$as_save_IFS
11838
11839fi
11840fi
11841ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11842if test -n "$ac_ct_DLLTOOL"; then
11843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11844$as_echo "$ac_ct_DLLTOOL" >&6; }
11845else
11846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
11848fi
11849
11850  if test "x$ac_ct_DLLTOOL" = x; then
11851    DLLTOOL="false"
11852  else
11853    case $cross_compiling:$ac_tool_warned in
11854yes:)
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11857ac_tool_warned=yes ;;
11858esac
11859    DLLTOOL=$ac_ct_DLLTOOL
11860  fi
11861else
11862  DLLTOOL="$ac_cv_prog_DLLTOOL"
11863fi
11864
11865test -z "$DLLTOOL" && DLLTOOL=dlltool
11866
11867
11868
11869
11870
11871
11872
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11874$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11875if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  lt_cv_sharedlib_from_linklib_cmd='unknown'
11879
11880case $host_os in
11881cygwin* | mingw* | pw32* | cegcc*)
11882  # two different shell functions defined in ltmain.sh
11883  # decide which to use based on capabilities of $DLLTOOL
11884  case `$DLLTOOL --help 2>&1` in
11885  *--identify-strict*)
11886    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11887    ;;
11888  *)
11889    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11890    ;;
11891  esac
11892  ;;
11893*)
11894  # fallback: assume linklib IS sharedlib
11895  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11896  ;;
11897esac
11898
11899fi
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11901$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11902sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11903test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11904
11905
11906
11907
11908
11909
11910
11911if test -n "$ac_tool_prefix"; then
11912  for ac_prog in ar
11913  do
11914    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917$as_echo_n "checking for $ac_word... " >&6; }
11918if ${ac_cv_prog_AR+:} false; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  if test -n "$AR"; then
11922  ac_cv_prog_AR="$AR" # Let the user override the test.
11923else
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927  IFS=$as_save_IFS
11928  test -z "$as_dir" && as_dir=.
11929    for ac_exec_ext in '' $ac_executable_extensions; do
11930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933    break 2
11934  fi
11935done
11936  done
11937IFS=$as_save_IFS
11938
11939fi
11940fi
11941AR=$ac_cv_prog_AR
11942if test -n "$AR"; then
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11944$as_echo "$AR" >&6; }
11945else
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
11948fi
11949
11950
11951    test -n "$AR" && break
11952  done
11953fi
11954if test -z "$AR"; then
11955  ac_ct_AR=$AR
11956  for ac_prog in ar
11957do
11958  # Extract the first word of "$ac_prog", so it can be a program name with args.
11959set dummy $ac_prog; ac_word=$2
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
11962if ${ac_cv_prog_ac_ct_AR+:} false; then :
11963  $as_echo_n "(cached) " >&6
11964else
11965  if test -n "$ac_ct_AR"; then
11966  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11967else
11968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971  IFS=$as_save_IFS
11972  test -z "$as_dir" && as_dir=.
11973    for ac_exec_ext in '' $ac_executable_extensions; do
11974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975    ac_cv_prog_ac_ct_AR="$ac_prog"
11976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977    break 2
11978  fi
11979done
11980  done
11981IFS=$as_save_IFS
11982
11983fi
11984fi
11985ac_ct_AR=$ac_cv_prog_ac_ct_AR
11986if test -n "$ac_ct_AR"; then
11987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11988$as_echo "$ac_ct_AR" >&6; }
11989else
11990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992fi
11993
11994
11995  test -n "$ac_ct_AR" && break
11996done
11997
11998  if test "x$ac_ct_AR" = x; then
11999    AR="false"
12000  else
12001    case $cross_compiling:$ac_tool_warned in
12002yes:)
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12005ac_tool_warned=yes ;;
12006esac
12007    AR=$ac_ct_AR
12008  fi
12009fi
12010
12011: ${AR=ar}
12012: ${AR_FLAGS=cru}
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12025$as_echo_n "checking for archiver @FILE support... " >&6; }
12026if ${lt_cv_ar_at_file+:} false; then :
12027  $as_echo_n "(cached) " >&6
12028else
12029  lt_cv_ar_at_file=no
12030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031/* end confdefs.h.  */
12032
12033int
12034main ()
12035{
12036
12037  ;
12038  return 0;
12039}
12040_ACEOF
12041if ac_fn_c_try_compile "$LINENO"; then :
12042  echo conftest.$ac_objext > conftest.lst
12043      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12044      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12045  (eval $lt_ar_try) 2>&5
12046  ac_status=$?
12047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048  test $ac_status = 0; }
12049      if test "$ac_status" -eq 0; then
12050	# Ensure the archiver fails upon bogus file names.
12051	rm -f conftest.$ac_objext libconftest.a
12052	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12053  (eval $lt_ar_try) 2>&5
12054  ac_status=$?
12055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12056  test $ac_status = 0; }
12057	if test "$ac_status" -ne 0; then
12058          lt_cv_ar_at_file=@
12059        fi
12060      fi
12061      rm -f conftest.* libconftest.a
12062
12063fi
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12068$as_echo "$lt_cv_ar_at_file" >&6; }
12069
12070if test "x$lt_cv_ar_at_file" = xno; then
12071  archiver_list_spec=
12072else
12073  archiver_list_spec=$lt_cv_ar_at_file
12074fi
12075
12076
12077
12078
12079
12080
12081
12082if test -n "$ac_tool_prefix"; then
12083  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12084set dummy ${ac_tool_prefix}strip; ac_word=$2
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086$as_echo_n "checking for $ac_word... " >&6; }
12087if ${ac_cv_prog_STRIP+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  if test -n "$STRIP"; then
12091  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12092else
12093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $PATH
12095do
12096  IFS=$as_save_IFS
12097  test -z "$as_dir" && as_dir=.
12098    for ac_exec_ext in '' $ac_executable_extensions; do
12099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102    break 2
12103  fi
12104done
12105  done
12106IFS=$as_save_IFS
12107
12108fi
12109fi
12110STRIP=$ac_cv_prog_STRIP
12111if test -n "$STRIP"; then
12112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12113$as_echo "$STRIP" >&6; }
12114else
12115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
12117fi
12118
12119
12120fi
12121if test -z "$ac_cv_prog_STRIP"; then
12122  ac_ct_STRIP=$STRIP
12123  # Extract the first word of "strip", so it can be a program name with args.
12124set dummy strip; ac_word=$2
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
12127if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12128  $as_echo_n "(cached) " >&6
12129else
12130  if test -n "$ac_ct_STRIP"; then
12131  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12132else
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136  IFS=$as_save_IFS
12137  test -z "$as_dir" && as_dir=.
12138    for ac_exec_ext in '' $ac_executable_extensions; do
12139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140    ac_cv_prog_ac_ct_STRIP="strip"
12141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142    break 2
12143  fi
12144done
12145  done
12146IFS=$as_save_IFS
12147
12148fi
12149fi
12150ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12151if test -n "$ac_ct_STRIP"; then
12152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12153$as_echo "$ac_ct_STRIP" >&6; }
12154else
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159  if test "x$ac_ct_STRIP" = x; then
12160    STRIP=":"
12161  else
12162    case $cross_compiling:$ac_tool_warned in
12163yes:)
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166ac_tool_warned=yes ;;
12167esac
12168    STRIP=$ac_ct_STRIP
12169  fi
12170else
12171  STRIP="$ac_cv_prog_STRIP"
12172fi
12173
12174test -z "$STRIP" && STRIP=:
12175
12176
12177
12178
12179
12180
12181if test -n "$ac_tool_prefix"; then
12182  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185$as_echo_n "checking for $ac_word... " >&6; }
12186if ${ac_cv_prog_RANLIB+:} false; then :
12187  $as_echo_n "(cached) " >&6
12188else
12189  if test -n "$RANLIB"; then
12190  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12191else
12192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195  IFS=$as_save_IFS
12196  test -z "$as_dir" && as_dir=.
12197    for ac_exec_ext in '' $ac_executable_extensions; do
12198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12199    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201    break 2
12202  fi
12203done
12204  done
12205IFS=$as_save_IFS
12206
12207fi
12208fi
12209RANLIB=$ac_cv_prog_RANLIB
12210if test -n "$RANLIB"; then
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12212$as_echo "$RANLIB" >&6; }
12213else
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216fi
12217
12218
12219fi
12220if test -z "$ac_cv_prog_RANLIB"; then
12221  ac_ct_RANLIB=$RANLIB
12222  # Extract the first word of "ranlib", so it can be a program name with args.
12223set dummy ranlib; ac_word=$2
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225$as_echo_n "checking for $ac_word... " >&6; }
12226if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12227  $as_echo_n "(cached) " >&6
12228else
12229  if test -n "$ac_ct_RANLIB"; then
12230  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12231else
12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235  IFS=$as_save_IFS
12236  test -z "$as_dir" && as_dir=.
12237    for ac_exec_ext in '' $ac_executable_extensions; do
12238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239    ac_cv_prog_ac_ct_RANLIB="ranlib"
12240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241    break 2
12242  fi
12243done
12244  done
12245IFS=$as_save_IFS
12246
12247fi
12248fi
12249ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12250if test -n "$ac_ct_RANLIB"; then
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12252$as_echo "$ac_ct_RANLIB" >&6; }
12253else
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256fi
12257
12258  if test "x$ac_ct_RANLIB" = x; then
12259    RANLIB=":"
12260  else
12261    case $cross_compiling:$ac_tool_warned in
12262yes:)
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265ac_tool_warned=yes ;;
12266esac
12267    RANLIB=$ac_ct_RANLIB
12268  fi
12269else
12270  RANLIB="$ac_cv_prog_RANLIB"
12271fi
12272
12273test -z "$RANLIB" && RANLIB=:
12274
12275
12276
12277
12278
12279
12280# Determine commands to create old-style static archives.
12281old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12282old_postinstall_cmds='chmod 644 $oldlib'
12283old_postuninstall_cmds=
12284
12285if test -n "$RANLIB"; then
12286  case $host_os in
12287  openbsd*)
12288    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12289    ;;
12290  *)
12291    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12292    ;;
12293  esac
12294  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12295fi
12296
12297case $host_os in
12298  darwin*)
12299    lock_old_archive_extraction=yes ;;
12300  *)
12301    lock_old_archive_extraction=no ;;
12302esac
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342# If no C compiler was specified, use CC.
12343LTCC=${LTCC-"$CC"}
12344
12345# If no C compiler flags were specified, use CFLAGS.
12346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12347
12348# Allow CC to be a program name with arguments.
12349compiler=$CC
12350
12351
12352# Check for command to grab the raw symbol name followed by C symbol from nm.
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12354$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12355if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12356  $as_echo_n "(cached) " >&6
12357else
12358
12359# These are sane defaults that work on at least a few old systems.
12360# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12361
12362# Character class describing NM global symbol codes.
12363symcode='[BCDEGRST]'
12364
12365# Regexp to match symbols that can be accessed directly from C.
12366sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12367
12368# Define system-specific variables.
12369case $host_os in
12370aix*)
12371  symcode='[BCDT]'
12372  ;;
12373cygwin* | mingw* | pw32* | cegcc*)
12374  symcode='[ABCDGISTW]'
12375  ;;
12376hpux*)
12377  if test "$host_cpu" = ia64; then
12378    symcode='[ABCDEGRST]'
12379  fi
12380  ;;
12381irix* | nonstopux*)
12382  symcode='[BCDEGRST]'
12383  ;;
12384osf*)
12385  symcode='[BCDEGQRST]'
12386  ;;
12387solaris*)
12388  symcode='[BDRT]'
12389  ;;
12390sco3.2v5*)
12391  symcode='[DT]'
12392  ;;
12393sysv4.2uw2*)
12394  symcode='[DT]'
12395  ;;
12396sysv5* | sco5v6* | unixware* | OpenUNIX*)
12397  symcode='[ABDT]'
12398  ;;
12399sysv4)
12400  symcode='[DFNSTU]'
12401  ;;
12402esac
12403
12404# If we're using GNU nm, then use its standard symbol codes.
12405case `$NM -V 2>&1` in
12406*GNU* | *'with BFD'*)
12407  symcode='[ABCDGIRSTW]' ;;
12408esac
12409
12410# Transform an extracted symbol line into a proper C declaration.
12411# Some systems (esp. on ia64) link data and code symbols differently,
12412# so use this general approach.
12413lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12414
12415# Transform an extracted symbol line into symbol name and symbol address
12416lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12417lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12418
12419# Handle CRLF in mingw tool chain
12420opt_cr=
12421case $build_os in
12422mingw*)
12423  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12424  ;;
12425esac
12426
12427# Try without a prefix underscore, then with it.
12428for ac_symprfx in "" "_"; do
12429
12430  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12431  symxfrm="\\1 $ac_symprfx\\2 \\2"
12432
12433  # Write the raw and C identifiers.
12434  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12435    # Fake it for dumpbin and say T for any non-static function
12436    # and D for any global variable.
12437    # Also find C++ and __fastcall symbols from MSVC++,
12438    # which start with @ or ?.
12439    lt_cv_sys_global_symbol_pipe="$AWK '"\
12440"     {last_section=section; section=\$ 3};"\
12441"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12442"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12443"     \$ 0!~/External *\|/{next};"\
12444"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12445"     {if(hide[section]) next};"\
12446"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12447"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12448"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12449"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12450"     ' prfx=^$ac_symprfx"
12451  else
12452    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12453  fi
12454  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12455
12456  # Check to see that the pipe works correctly.
12457  pipe_works=no
12458
12459  rm -f conftest*
12460  cat > conftest.$ac_ext <<_LT_EOF
12461#ifdef __cplusplus
12462extern "C" {
12463#endif
12464char nm_test_var;
12465void nm_test_func(void);
12466void nm_test_func(void){}
12467#ifdef __cplusplus
12468}
12469#endif
12470int main(){nm_test_var='a';nm_test_func();return(0);}
12471_LT_EOF
12472
12473  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12474  (eval $ac_compile) 2>&5
12475  ac_status=$?
12476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12477  test $ac_status = 0; }; then
12478    # Now try to grab the symbols.
12479    nlist=conftest.nm
12480    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12481  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12482  ac_status=$?
12483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484  test $ac_status = 0; } && test -s "$nlist"; then
12485      # Try sorting and uniquifying the output.
12486      if sort "$nlist" | uniq > "$nlist"T; then
12487	mv -f "$nlist"T "$nlist"
12488      else
12489	rm -f "$nlist"T
12490      fi
12491
12492      # Make sure that we snagged all the symbols we need.
12493      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12494	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12495	  cat <<_LT_EOF > conftest.$ac_ext
12496/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12497#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12498/* DATA imports from DLLs on WIN32 con't be const, because runtime
12499   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12500# define LT_DLSYM_CONST
12501#elif defined(__osf__)
12502/* This system does not cope well with relocations in const data.  */
12503# define LT_DLSYM_CONST
12504#else
12505# define LT_DLSYM_CONST const
12506#endif
12507
12508#ifdef __cplusplus
12509extern "C" {
12510#endif
12511
12512_LT_EOF
12513	  # Now generate the symbol file.
12514	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12515
12516	  cat <<_LT_EOF >> conftest.$ac_ext
12517
12518/* The mapping between symbol names and symbols.  */
12519LT_DLSYM_CONST struct {
12520  const char *name;
12521  void       *address;
12522}
12523lt__PROGRAM__LTX_preloaded_symbols[] =
12524{
12525  { "@PROGRAM@", (void *) 0 },
12526_LT_EOF
12527	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12528	  cat <<\_LT_EOF >> conftest.$ac_ext
12529  {0, (void *) 0}
12530};
12531
12532/* This works around a problem in FreeBSD linker */
12533#ifdef FREEBSD_WORKAROUND
12534static const void *lt_preloaded_setup() {
12535  return lt__PROGRAM__LTX_preloaded_symbols;
12536}
12537#endif
12538
12539#ifdef __cplusplus
12540}
12541#endif
12542_LT_EOF
12543	  # Now try linking the two files.
12544	  mv conftest.$ac_objext conftstm.$ac_objext
12545	  lt_globsym_save_LIBS=$LIBS
12546	  lt_globsym_save_CFLAGS=$CFLAGS
12547	  LIBS="conftstm.$ac_objext"
12548	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12549	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12550  (eval $ac_link) 2>&5
12551  ac_status=$?
12552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12554	    pipe_works=yes
12555	  fi
12556	  LIBS=$lt_globsym_save_LIBS
12557	  CFLAGS=$lt_globsym_save_CFLAGS
12558	else
12559	  echo "cannot find nm_test_func in $nlist" >&5
12560	fi
12561      else
12562	echo "cannot find nm_test_var in $nlist" >&5
12563      fi
12564    else
12565      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12566    fi
12567  else
12568    echo "$progname: failed program was:" >&5
12569    cat conftest.$ac_ext >&5
12570  fi
12571  rm -rf conftest* conftst*
12572
12573  # Do not use the global_symbol_pipe unless it works.
12574  if test "$pipe_works" = yes; then
12575    break
12576  else
12577    lt_cv_sys_global_symbol_pipe=
12578  fi
12579done
12580
12581fi
12582
12583if test -z "$lt_cv_sys_global_symbol_pipe"; then
12584  lt_cv_sys_global_symbol_to_cdecl=
12585fi
12586if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12588$as_echo "failed" >&6; }
12589else
12590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12591$as_echo "ok" >&6; }
12592fi
12593
12594# Response file support.
12595if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12596  nm_file_list_spec='@'
12597elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12598  nm_file_list_spec='@'
12599fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12628$as_echo_n "checking for sysroot... " >&6; }
12629
12630# Check whether --with-sysroot was given.
12631if test "${with_sysroot+set}" = set; then :
12632  withval=$with_sysroot;
12633else
12634  with_sysroot=no
12635fi
12636
12637
12638lt_sysroot=
12639case ${with_sysroot} in #(
12640 yes)
12641   if test "$GCC" = yes; then
12642     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12643   fi
12644   ;; #(
12645 /*)
12646   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12647   ;; #(
12648 no|'')
12649   ;; #(
12650 *)
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12652$as_echo "${with_sysroot}" >&6; }
12653   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12654   ;;
12655esac
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12658$as_echo "${lt_sysroot:-no}" >&6; }
12659
12660
12661
12662
12663
12664# Check whether --enable-libtool-lock was given.
12665if test "${enable_libtool_lock+set}" = set; then :
12666  enableval=$enable_libtool_lock;
12667fi
12668
12669test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12670
12671# Some flags need to be propagated to the compiler or linker for good
12672# libtool support.
12673case $host in
12674ia64-*-hpux*)
12675  # Find out which ABI we are using.
12676  echo 'int i;' > conftest.$ac_ext
12677  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12678  (eval $ac_compile) 2>&5
12679  ac_status=$?
12680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12681  test $ac_status = 0; }; then
12682    case `/usr/bin/file conftest.$ac_objext` in
12683      *ELF-32*)
12684	HPUX_IA64_MODE="32"
12685	;;
12686      *ELF-64*)
12687	HPUX_IA64_MODE="64"
12688	;;
12689    esac
12690  fi
12691  rm -rf conftest*
12692  ;;
12693*-*-irix6*)
12694  # Find out which ABI we are using.
12695  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12696  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12697  (eval $ac_compile) 2>&5
12698  ac_status=$?
12699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700  test $ac_status = 0; }; then
12701    if test "$lt_cv_prog_gnu_ld" = yes; then
12702      case `/usr/bin/file conftest.$ac_objext` in
12703	*32-bit*)
12704	  LD="${LD-ld} -melf32bsmip"
12705	  ;;
12706	*N32*)
12707	  LD="${LD-ld} -melf32bmipn32"
12708	  ;;
12709	*64-bit*)
12710	  LD="${LD-ld} -melf64bmip"
12711	;;
12712      esac
12713    else
12714      case `/usr/bin/file conftest.$ac_objext` in
12715	*32-bit*)
12716	  LD="${LD-ld} -32"
12717	  ;;
12718	*N32*)
12719	  LD="${LD-ld} -n32"
12720	  ;;
12721	*64-bit*)
12722	  LD="${LD-ld} -64"
12723	  ;;
12724      esac
12725    fi
12726  fi
12727  rm -rf conftest*
12728  ;;
12729
12730x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12731s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12732  # Find out which ABI we are using.
12733  echo 'int i;' > conftest.$ac_ext
12734  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12735  (eval $ac_compile) 2>&5
12736  ac_status=$?
12737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738  test $ac_status = 0; }; then
12739    case `/usr/bin/file conftest.o` in
12740      *32-bit*)
12741	case $host in
12742	  x86_64-*kfreebsd*-gnu)
12743	    LD="${LD-ld} -m elf_i386_fbsd"
12744	    ;;
12745	  x86_64-*linux*)
12746	    LD="${LD-ld} -m elf_i386"
12747	    ;;
12748	  powerpc64le-*linux*)
12749	    LD="${LD-ld} -m elf32lppclinux"
12750	    ;;
12751	  powerpc64-*linux*)
12752	    LD="${LD-ld} -m elf32ppclinux"
12753	    ;;
12754	  s390x-*linux*)
12755	    LD="${LD-ld} -m elf_s390"
12756	    ;;
12757	  sparc64-*linux*)
12758	    LD="${LD-ld} -m elf32_sparc"
12759	    ;;
12760	esac
12761	;;
12762      *64-bit*)
12763	case $host in
12764	  x86_64-*kfreebsd*-gnu)
12765	    LD="${LD-ld} -m elf_x86_64_fbsd"
12766	    ;;
12767	  x86_64-*linux*)
12768	    LD="${LD-ld} -m elf_x86_64"
12769	    ;;
12770	  powerpcle-*linux*)
12771	    LD="${LD-ld} -m elf64lppc"
12772	    ;;
12773	  powerpc-*linux*)
12774	    LD="${LD-ld} -m elf64ppc"
12775	    ;;
12776	  s390*-*linux*|s390*-*tpf*)
12777	    LD="${LD-ld} -m elf64_s390"
12778	    ;;
12779	  sparc*-*linux*)
12780	    LD="${LD-ld} -m elf64_sparc"
12781	    ;;
12782	esac
12783	;;
12784    esac
12785  fi
12786  rm -rf conftest*
12787  ;;
12788
12789*-*-sco3.2v5*)
12790  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12791  SAVE_CFLAGS="$CFLAGS"
12792  CFLAGS="$CFLAGS -belf"
12793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12794$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12795if ${lt_cv_cc_needs_belf+:} false; then :
12796  $as_echo_n "(cached) " >&6
12797else
12798  ac_ext=c
12799ac_cpp='$CPP $CPPFLAGS'
12800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802ac_compiler_gnu=$ac_cv_c_compiler_gnu
12803
12804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805/* end confdefs.h.  */
12806
12807int
12808main ()
12809{
12810
12811  ;
12812  return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_link "$LINENO"; then :
12816  lt_cv_cc_needs_belf=yes
12817else
12818  lt_cv_cc_needs_belf=no
12819fi
12820rm -f core conftest.err conftest.$ac_objext \
12821    conftest$ac_exeext conftest.$ac_ext
12822     ac_ext=c
12823ac_cpp='$CPP $CPPFLAGS'
12824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827
12828fi
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12830$as_echo "$lt_cv_cc_needs_belf" >&6; }
12831  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12832    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12833    CFLAGS="$SAVE_CFLAGS"
12834  fi
12835  ;;
12836*-*solaris*)
12837  # Find out which ABI we are using.
12838  echo 'int i;' > conftest.$ac_ext
12839  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12840  (eval $ac_compile) 2>&5
12841  ac_status=$?
12842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843  test $ac_status = 0; }; then
12844    case `/usr/bin/file conftest.o` in
12845    *64-bit*)
12846      case $lt_cv_prog_gnu_ld in
12847      yes*)
12848        case $host in
12849        i?86-*-solaris*)
12850          LD="${LD-ld} -m elf_x86_64"
12851          ;;
12852        sparc*-*-solaris*)
12853          LD="${LD-ld} -m elf64_sparc"
12854          ;;
12855        esac
12856        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12857        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12858          LD="${LD-ld}_sol2"
12859        fi
12860        ;;
12861      *)
12862	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12863	  LD="${LD-ld} -64"
12864	fi
12865	;;
12866      esac
12867      ;;
12868    esac
12869  fi
12870  rm -rf conftest*
12871  ;;
12872esac
12873
12874need_locks="$enable_libtool_lock"
12875
12876if test -n "$ac_tool_prefix"; then
12877  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12878set dummy ${ac_tool_prefix}mt; ac_word=$2
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880$as_echo_n "checking for $ac_word... " >&6; }
12881if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  if test -n "$MANIFEST_TOOL"; then
12885  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12886else
12887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890  IFS=$as_save_IFS
12891  test -z "$as_dir" && as_dir=.
12892    for ac_exec_ext in '' $ac_executable_extensions; do
12893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12894    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896    break 2
12897  fi
12898done
12899  done
12900IFS=$as_save_IFS
12901
12902fi
12903fi
12904MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12905if test -n "$MANIFEST_TOOL"; then
12906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12907$as_echo "$MANIFEST_TOOL" >&6; }
12908else
12909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
12911fi
12912
12913
12914fi
12915if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12916  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12917  # Extract the first word of "mt", so it can be a program name with args.
12918set dummy mt; ac_word=$2
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12920$as_echo_n "checking for $ac_word... " >&6; }
12921if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12922  $as_echo_n "(cached) " >&6
12923else
12924  if test -n "$ac_ct_MANIFEST_TOOL"; then
12925  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12926else
12927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928for as_dir in $PATH
12929do
12930  IFS=$as_save_IFS
12931  test -z "$as_dir" && as_dir=.
12932    for ac_exec_ext in '' $ac_executable_extensions; do
12933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12934    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936    break 2
12937  fi
12938done
12939  done
12940IFS=$as_save_IFS
12941
12942fi
12943fi
12944ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12945if test -n "$ac_ct_MANIFEST_TOOL"; then
12946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12947$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12948else
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950$as_echo "no" >&6; }
12951fi
12952
12953  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12954    MANIFEST_TOOL=":"
12955  else
12956    case $cross_compiling:$ac_tool_warned in
12957yes:)
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12960ac_tool_warned=yes ;;
12961esac
12962    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12963  fi
12964else
12965  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12966fi
12967
12968test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12970$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12971if ${lt_cv_path_mainfest_tool+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  lt_cv_path_mainfest_tool=no
12975  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12976  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12977  cat conftest.err >&5
12978  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12979    lt_cv_path_mainfest_tool=yes
12980  fi
12981  rm -f conftest*
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12984$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12985if test "x$lt_cv_path_mainfest_tool" != xyes; then
12986  MANIFEST_TOOL=:
12987fi
12988
12989
12990
12991
12992
12993
12994  case $host_os in
12995    rhapsody* | darwin*)
12996    if test -n "$ac_tool_prefix"; then
12997  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12998set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
13001if ${ac_cv_prog_DSYMUTIL+:} false; then :
13002  $as_echo_n "(cached) " >&6
13003else
13004  if test -n "$DSYMUTIL"; then
13005  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13006else
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010  IFS=$as_save_IFS
13011  test -z "$as_dir" && as_dir=.
13012    for ac_exec_ext in '' $ac_executable_extensions; do
13013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016    break 2
13017  fi
13018done
13019  done
13020IFS=$as_save_IFS
13021
13022fi
13023fi
13024DSYMUTIL=$ac_cv_prog_DSYMUTIL
13025if test -n "$DSYMUTIL"; then
13026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13027$as_echo "$DSYMUTIL" >&6; }
13028else
13029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
13031fi
13032
13033
13034fi
13035if test -z "$ac_cv_prog_DSYMUTIL"; then
13036  ac_ct_DSYMUTIL=$DSYMUTIL
13037  # Extract the first word of "dsymutil", so it can be a program name with args.
13038set dummy dsymutil; ac_word=$2
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
13041if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  if test -n "$ac_ct_DSYMUTIL"; then
13045  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050  IFS=$as_save_IFS
13051  test -z "$as_dir" && as_dir=.
13052    for ac_exec_ext in '' $ac_executable_extensions; do
13053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056    break 2
13057  fi
13058done
13059  done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13065if test -n "$ac_ct_DSYMUTIL"; then
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13067$as_echo "$ac_ct_DSYMUTIL" >&6; }
13068else
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073  if test "x$ac_ct_DSYMUTIL" = x; then
13074    DSYMUTIL=":"
13075  else
13076    case $cross_compiling:$ac_tool_warned in
13077yes:)
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13080ac_tool_warned=yes ;;
13081esac
13082    DSYMUTIL=$ac_ct_DSYMUTIL
13083  fi
13084else
13085  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13086fi
13087
13088    if test -n "$ac_tool_prefix"; then
13089  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13090set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092$as_echo_n "checking for $ac_word... " >&6; }
13093if ${ac_cv_prog_NMEDIT+:} false; then :
13094  $as_echo_n "(cached) " >&6
13095else
13096  if test -n "$NMEDIT"; then
13097  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13098else
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102  IFS=$as_save_IFS
13103  test -z "$as_dir" && as_dir=.
13104    for ac_exec_ext in '' $ac_executable_extensions; do
13105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108    break 2
13109  fi
13110done
13111  done
13112IFS=$as_save_IFS
13113
13114fi
13115fi
13116NMEDIT=$ac_cv_prog_NMEDIT
13117if test -n "$NMEDIT"; then
13118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13119$as_echo "$NMEDIT" >&6; }
13120else
13121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
13123fi
13124
13125
13126fi
13127if test -z "$ac_cv_prog_NMEDIT"; then
13128  ac_ct_NMEDIT=$NMEDIT
13129  # Extract the first word of "nmedit", so it can be a program name with args.
13130set dummy nmedit; ac_word=$2
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132$as_echo_n "checking for $ac_word... " >&6; }
13133if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13134  $as_echo_n "(cached) " >&6
13135else
13136  if test -n "$ac_ct_NMEDIT"; then
13137  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13138else
13139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142  IFS=$as_save_IFS
13143  test -z "$as_dir" && as_dir=.
13144    for ac_exec_ext in '' $ac_executable_extensions; do
13145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148    break 2
13149  fi
13150done
13151  done
13152IFS=$as_save_IFS
13153
13154fi
13155fi
13156ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13157if test -n "$ac_ct_NMEDIT"; then
13158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13159$as_echo "$ac_ct_NMEDIT" >&6; }
13160else
13161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
13163fi
13164
13165  if test "x$ac_ct_NMEDIT" = x; then
13166    NMEDIT=":"
13167  else
13168    case $cross_compiling:$ac_tool_warned in
13169yes:)
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13172ac_tool_warned=yes ;;
13173esac
13174    NMEDIT=$ac_ct_NMEDIT
13175  fi
13176else
13177  NMEDIT="$ac_cv_prog_NMEDIT"
13178fi
13179
13180    if test -n "$ac_tool_prefix"; then
13181  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13182set dummy ${ac_tool_prefix}lipo; ac_word=$2
13183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184$as_echo_n "checking for $ac_word... " >&6; }
13185if ${ac_cv_prog_LIPO+:} false; then :
13186  $as_echo_n "(cached) " >&6
13187else
13188  if test -n "$LIPO"; then
13189  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13190else
13191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192for as_dir in $PATH
13193do
13194  IFS=$as_save_IFS
13195  test -z "$as_dir" && as_dir=.
13196    for ac_exec_ext in '' $ac_executable_extensions; do
13197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13198    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200    break 2
13201  fi
13202done
13203  done
13204IFS=$as_save_IFS
13205
13206fi
13207fi
13208LIPO=$ac_cv_prog_LIPO
13209if test -n "$LIPO"; then
13210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13211$as_echo "$LIPO" >&6; }
13212else
13213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214$as_echo "no" >&6; }
13215fi
13216
13217
13218fi
13219if test -z "$ac_cv_prog_LIPO"; then
13220  ac_ct_LIPO=$LIPO
13221  # Extract the first word of "lipo", so it can be a program name with args.
13222set dummy lipo; ac_word=$2
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224$as_echo_n "checking for $ac_word... " >&6; }
13225if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13226  $as_echo_n "(cached) " >&6
13227else
13228  if test -n "$ac_ct_LIPO"; then
13229  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13230else
13231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232for as_dir in $PATH
13233do
13234  IFS=$as_save_IFS
13235  test -z "$as_dir" && as_dir=.
13236    for ac_exec_ext in '' $ac_executable_extensions; do
13237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13238    ac_cv_prog_ac_ct_LIPO="lipo"
13239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240    break 2
13241  fi
13242done
13243  done
13244IFS=$as_save_IFS
13245
13246fi
13247fi
13248ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13249if test -n "$ac_ct_LIPO"; then
13250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13251$as_echo "$ac_ct_LIPO" >&6; }
13252else
13253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254$as_echo "no" >&6; }
13255fi
13256
13257  if test "x$ac_ct_LIPO" = x; then
13258    LIPO=":"
13259  else
13260    case $cross_compiling:$ac_tool_warned in
13261yes:)
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13264ac_tool_warned=yes ;;
13265esac
13266    LIPO=$ac_ct_LIPO
13267  fi
13268else
13269  LIPO="$ac_cv_prog_LIPO"
13270fi
13271
13272    if test -n "$ac_tool_prefix"; then
13273  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13274set dummy ${ac_tool_prefix}otool; ac_word=$2
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if ${ac_cv_prog_OTOOL+:} false; then :
13278  $as_echo_n "(cached) " >&6
13279else
13280  if test -n "$OTOOL"; then
13281  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286  IFS=$as_save_IFS
13287  test -z "$as_dir" && as_dir=.
13288    for ac_exec_ext in '' $ac_executable_extensions; do
13289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292    break 2
13293  fi
13294done
13295  done
13296IFS=$as_save_IFS
13297
13298fi
13299fi
13300OTOOL=$ac_cv_prog_OTOOL
13301if test -n "$OTOOL"; then
13302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13303$as_echo "$OTOOL" >&6; }
13304else
13305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307fi
13308
13309
13310fi
13311if test -z "$ac_cv_prog_OTOOL"; then
13312  ac_ct_OTOOL=$OTOOL
13313  # Extract the first word of "otool", so it can be a program name with args.
13314set dummy otool; ac_word=$2
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316$as_echo_n "checking for $ac_word... " >&6; }
13317if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13318  $as_echo_n "(cached) " >&6
13319else
13320  if test -n "$ac_ct_OTOOL"; then
13321  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13322else
13323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326  IFS=$as_save_IFS
13327  test -z "$as_dir" && as_dir=.
13328    for ac_exec_ext in '' $ac_executable_extensions; do
13329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330    ac_cv_prog_ac_ct_OTOOL="otool"
13331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332    break 2
13333  fi
13334done
13335  done
13336IFS=$as_save_IFS
13337
13338fi
13339fi
13340ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13341if test -n "$ac_ct_OTOOL"; then
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13343$as_echo "$ac_ct_OTOOL" >&6; }
13344else
13345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347fi
13348
13349  if test "x$ac_ct_OTOOL" = x; then
13350    OTOOL=":"
13351  else
13352    case $cross_compiling:$ac_tool_warned in
13353yes:)
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356ac_tool_warned=yes ;;
13357esac
13358    OTOOL=$ac_ct_OTOOL
13359  fi
13360else
13361  OTOOL="$ac_cv_prog_OTOOL"
13362fi
13363
13364    if test -n "$ac_tool_prefix"; then
13365  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13366set dummy ${ac_tool_prefix}otool64; ac_word=$2
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368$as_echo_n "checking for $ac_word... " >&6; }
13369if ${ac_cv_prog_OTOOL64+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  if test -n "$OTOOL64"; then
13373  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13374else
13375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376for as_dir in $PATH
13377do
13378  IFS=$as_save_IFS
13379  test -z "$as_dir" && as_dir=.
13380    for ac_exec_ext in '' $ac_executable_extensions; do
13381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384    break 2
13385  fi
13386done
13387  done
13388IFS=$as_save_IFS
13389
13390fi
13391fi
13392OTOOL64=$ac_cv_prog_OTOOL64
13393if test -n "$OTOOL64"; then
13394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13395$as_echo "$OTOOL64" >&6; }
13396else
13397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
13399fi
13400
13401
13402fi
13403if test -z "$ac_cv_prog_OTOOL64"; then
13404  ac_ct_OTOOL64=$OTOOL64
13405  # Extract the first word of "otool64", so it can be a program name with args.
13406set dummy otool64; ac_word=$2
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408$as_echo_n "checking for $ac_word... " >&6; }
13409if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13410  $as_echo_n "(cached) " >&6
13411else
13412  if test -n "$ac_ct_OTOOL64"; then
13413  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13414else
13415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416for as_dir in $PATH
13417do
13418  IFS=$as_save_IFS
13419  test -z "$as_dir" && as_dir=.
13420    for ac_exec_ext in '' $ac_executable_extensions; do
13421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13422    ac_cv_prog_ac_ct_OTOOL64="otool64"
13423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424    break 2
13425  fi
13426done
13427  done
13428IFS=$as_save_IFS
13429
13430fi
13431fi
13432ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13433if test -n "$ac_ct_OTOOL64"; then
13434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13435$as_echo "$ac_ct_OTOOL64" >&6; }
13436else
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438$as_echo "no" >&6; }
13439fi
13440
13441  if test "x$ac_ct_OTOOL64" = x; then
13442    OTOOL64=":"
13443  else
13444    case $cross_compiling:$ac_tool_warned in
13445yes:)
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13448ac_tool_warned=yes ;;
13449esac
13450    OTOOL64=$ac_ct_OTOOL64
13451  fi
13452else
13453  OTOOL64="$ac_cv_prog_OTOOL64"
13454fi
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13483$as_echo_n "checking for -single_module linker flag... " >&6; }
13484if ${lt_cv_apple_cc_single_mod+:} false; then :
13485  $as_echo_n "(cached) " >&6
13486else
13487  lt_cv_apple_cc_single_mod=no
13488      if test -z "${LT_MULTI_MODULE}"; then
13489	# By default we will add the -single_module flag. You can override
13490	# by either setting the environment variable LT_MULTI_MODULE
13491	# non-empty at configure time, or by adding -multi_module to the
13492	# link flags.
13493	rm -rf libconftest.dylib*
13494	echo "int foo(void){return 1;}" > conftest.c
13495	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13496-dynamiclib -Wl,-single_module conftest.c" >&5
13497	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13498	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13499        _lt_result=$?
13500	# If there is a non-empty error log, and "single_module"
13501	# appears in it, assume the flag caused a linker warning
13502        if test -s conftest.err && $GREP single_module conftest.err; then
13503	  cat conftest.err >&5
13504	# Otherwise, if the output was created with a 0 exit code from
13505	# the compiler, it worked.
13506	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13507	  lt_cv_apple_cc_single_mod=yes
13508	else
13509	  cat conftest.err >&5
13510	fi
13511	rm -rf libconftest.dylib*
13512	rm -f conftest.*
13513      fi
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13516$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13517
13518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13519$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13520if ${lt_cv_ld_exported_symbols_list+:} false; then :
13521  $as_echo_n "(cached) " >&6
13522else
13523  lt_cv_ld_exported_symbols_list=no
13524      save_LDFLAGS=$LDFLAGS
13525      echo "_main" > conftest.sym
13526      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h.  */
13529
13530int
13531main ()
13532{
13533
13534  ;
13535  return 0;
13536}
13537_ACEOF
13538if ac_fn_c_try_link "$LINENO"; then :
13539  lt_cv_ld_exported_symbols_list=yes
13540else
13541  lt_cv_ld_exported_symbols_list=no
13542fi
13543rm -f core conftest.err conftest.$ac_objext \
13544    conftest$ac_exeext conftest.$ac_ext
13545	LDFLAGS="$save_LDFLAGS"
13546
13547fi
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13549$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13550
13551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13552$as_echo_n "checking for -force_load linker flag... " >&6; }
13553if ${lt_cv_ld_force_load+:} false; then :
13554  $as_echo_n "(cached) " >&6
13555else
13556  lt_cv_ld_force_load=no
13557      cat > conftest.c << _LT_EOF
13558int forced_loaded() { return 2;}
13559_LT_EOF
13560      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13561      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13562      echo "$AR cru libconftest.a conftest.o" >&5
13563      $AR cru libconftest.a conftest.o 2>&5
13564      echo "$RANLIB libconftest.a" >&5
13565      $RANLIB libconftest.a 2>&5
13566      cat > conftest.c << _LT_EOF
13567int main() { return 0;}
13568_LT_EOF
13569      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13570      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13571      _lt_result=$?
13572      if test -s conftest.err && $GREP force_load conftest.err; then
13573	cat conftest.err >&5
13574      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13575	lt_cv_ld_force_load=yes
13576      else
13577	cat conftest.err >&5
13578      fi
13579        rm -f conftest.err libconftest.a conftest conftest.c
13580        rm -rf conftest.dSYM
13581
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13584$as_echo "$lt_cv_ld_force_load" >&6; }
13585    case $host_os in
13586    rhapsody* | darwin1.[012])
13587      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13588    darwin1.*)
13589      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13590    darwin*) # darwin 5.x on
13591      # if running on 10.5 or later, the deployment target defaults
13592      # to the OS version, if on x86, and 10.4, the deployment
13593      # target defaults to 10.4. Don't you love it?
13594      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13595	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13596	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13597	10.[012]*)
13598	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13599	10.*)
13600	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13601      esac
13602    ;;
13603  esac
13604    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13605      _lt_dar_single_mod='$single_module'
13606    fi
13607    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13608      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13609    else
13610      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13611    fi
13612    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13613      _lt_dsymutil='~$DSYMUTIL $lib || :'
13614    else
13615      _lt_dsymutil=
13616    fi
13617    ;;
13618  esac
13619
13620for ac_header in dlfcn.h
13621do :
13622  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13623"
13624if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13625  cat >>confdefs.h <<_ACEOF
13626#define HAVE_DLFCN_H 1
13627_ACEOF
13628
13629fi
13630
13631done
13632
13633
13634
13635
13636func_stripname_cnf ()
13637{
13638  case ${2} in
13639  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13640  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13641  esac
13642} # func_stripname_cnf
13643
13644
13645
13646
13647
13648# Set options
13649enable_win32_dll=yes
13650
13651case $host in
13652*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13653  if test -n "$ac_tool_prefix"; then
13654  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13655set dummy ${ac_tool_prefix}as; ac_word=$2
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657$as_echo_n "checking for $ac_word... " >&6; }
13658if ${ac_cv_prog_AS+:} false; then :
13659  $as_echo_n "(cached) " >&6
13660else
13661  if test -n "$AS"; then
13662  ac_cv_prog_AS="$AS" # Let the user override the test.
13663else
13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665for as_dir in $PATH
13666do
13667  IFS=$as_save_IFS
13668  test -z "$as_dir" && as_dir=.
13669    for ac_exec_ext in '' $ac_executable_extensions; do
13670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13671    ac_cv_prog_AS="${ac_tool_prefix}as"
13672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673    break 2
13674  fi
13675done
13676  done
13677IFS=$as_save_IFS
13678
13679fi
13680fi
13681AS=$ac_cv_prog_AS
13682if test -n "$AS"; then
13683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13684$as_echo "$AS" >&6; }
13685else
13686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687$as_echo "no" >&6; }
13688fi
13689
13690
13691fi
13692if test -z "$ac_cv_prog_AS"; then
13693  ac_ct_AS=$AS
13694  # Extract the first word of "as", so it can be a program name with args.
13695set dummy as; ac_word=$2
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697$as_echo_n "checking for $ac_word... " >&6; }
13698if ${ac_cv_prog_ac_ct_AS+:} false; then :
13699  $as_echo_n "(cached) " >&6
13700else
13701  if test -n "$ac_ct_AS"; then
13702  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13703else
13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705for as_dir in $PATH
13706do
13707  IFS=$as_save_IFS
13708  test -z "$as_dir" && as_dir=.
13709    for ac_exec_ext in '' $ac_executable_extensions; do
13710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13711    ac_cv_prog_ac_ct_AS="as"
13712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713    break 2
13714  fi
13715done
13716  done
13717IFS=$as_save_IFS
13718
13719fi
13720fi
13721ac_ct_AS=$ac_cv_prog_ac_ct_AS
13722if test -n "$ac_ct_AS"; then
13723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13724$as_echo "$ac_ct_AS" >&6; }
13725else
13726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727$as_echo "no" >&6; }
13728fi
13729
13730  if test "x$ac_ct_AS" = x; then
13731    AS="false"
13732  else
13733    case $cross_compiling:$ac_tool_warned in
13734yes:)
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13737ac_tool_warned=yes ;;
13738esac
13739    AS=$ac_ct_AS
13740  fi
13741else
13742  AS="$ac_cv_prog_AS"
13743fi
13744
13745  if test -n "$ac_tool_prefix"; then
13746  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13747set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749$as_echo_n "checking for $ac_word... " >&6; }
13750if ${ac_cv_prog_DLLTOOL+:} false; then :
13751  $as_echo_n "(cached) " >&6
13752else
13753  if test -n "$DLLTOOL"; then
13754  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13755else
13756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757for as_dir in $PATH
13758do
13759  IFS=$as_save_IFS
13760  test -z "$as_dir" && as_dir=.
13761    for ac_exec_ext in '' $ac_executable_extensions; do
13762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765    break 2
13766  fi
13767done
13768  done
13769IFS=$as_save_IFS
13770
13771fi
13772fi
13773DLLTOOL=$ac_cv_prog_DLLTOOL
13774if test -n "$DLLTOOL"; then
13775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13776$as_echo "$DLLTOOL" >&6; }
13777else
13778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779$as_echo "no" >&6; }
13780fi
13781
13782
13783fi
13784if test -z "$ac_cv_prog_DLLTOOL"; then
13785  ac_ct_DLLTOOL=$DLLTOOL
13786  # Extract the first word of "dlltool", so it can be a program name with args.
13787set dummy dlltool; ac_word=$2
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789$as_echo_n "checking for $ac_word... " >&6; }
13790if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13791  $as_echo_n "(cached) " >&6
13792else
13793  if test -n "$ac_ct_DLLTOOL"; then
13794  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13795else
13796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797for as_dir in $PATH
13798do
13799  IFS=$as_save_IFS
13800  test -z "$as_dir" && as_dir=.
13801    for ac_exec_ext in '' $ac_executable_extensions; do
13802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805    break 2
13806  fi
13807done
13808  done
13809IFS=$as_save_IFS
13810
13811fi
13812fi
13813ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13814if test -n "$ac_ct_DLLTOOL"; then
13815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13816$as_echo "$ac_ct_DLLTOOL" >&6; }
13817else
13818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819$as_echo "no" >&6; }
13820fi
13821
13822  if test "x$ac_ct_DLLTOOL" = x; then
13823    DLLTOOL="false"
13824  else
13825    case $cross_compiling:$ac_tool_warned in
13826yes:)
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13829ac_tool_warned=yes ;;
13830esac
13831    DLLTOOL=$ac_ct_DLLTOOL
13832  fi
13833else
13834  DLLTOOL="$ac_cv_prog_DLLTOOL"
13835fi
13836
13837  if test -n "$ac_tool_prefix"; then
13838  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13839set dummy ${ac_tool_prefix}objdump; ac_word=$2
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13841$as_echo_n "checking for $ac_word... " >&6; }
13842if ${ac_cv_prog_OBJDUMP+:} false; then :
13843  $as_echo_n "(cached) " >&6
13844else
13845  if test -n "$OBJDUMP"; then
13846  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13847else
13848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849for as_dir in $PATH
13850do
13851  IFS=$as_save_IFS
13852  test -z "$as_dir" && as_dir=.
13853    for ac_exec_ext in '' $ac_executable_extensions; do
13854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13857    break 2
13858  fi
13859done
13860  done
13861IFS=$as_save_IFS
13862
13863fi
13864fi
13865OBJDUMP=$ac_cv_prog_OBJDUMP
13866if test -n "$OBJDUMP"; then
13867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13868$as_echo "$OBJDUMP" >&6; }
13869else
13870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871$as_echo "no" >&6; }
13872fi
13873
13874
13875fi
13876if test -z "$ac_cv_prog_OBJDUMP"; then
13877  ac_ct_OBJDUMP=$OBJDUMP
13878  # Extract the first word of "objdump", so it can be a program name with args.
13879set dummy objdump; ac_word=$2
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881$as_echo_n "checking for $ac_word... " >&6; }
13882if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13883  $as_echo_n "(cached) " >&6
13884else
13885  if test -n "$ac_ct_OBJDUMP"; then
13886  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13887else
13888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889for as_dir in $PATH
13890do
13891  IFS=$as_save_IFS
13892  test -z "$as_dir" && as_dir=.
13893    for ac_exec_ext in '' $ac_executable_extensions; do
13894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897    break 2
13898  fi
13899done
13900  done
13901IFS=$as_save_IFS
13902
13903fi
13904fi
13905ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13906if test -n "$ac_ct_OBJDUMP"; then
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13908$as_echo "$ac_ct_OBJDUMP" >&6; }
13909else
13910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
13912fi
13913
13914  if test "x$ac_ct_OBJDUMP" = x; then
13915    OBJDUMP="false"
13916  else
13917    case $cross_compiling:$ac_tool_warned in
13918yes:)
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13921ac_tool_warned=yes ;;
13922esac
13923    OBJDUMP=$ac_ct_OBJDUMP
13924  fi
13925else
13926  OBJDUMP="$ac_cv_prog_OBJDUMP"
13927fi
13928
13929  ;;
13930esac
13931
13932test -z "$AS" && AS=as
13933
13934
13935
13936
13937
13938test -z "$DLLTOOL" && DLLTOOL=dlltool
13939
13940
13941
13942
13943
13944test -z "$OBJDUMP" && OBJDUMP=objdump
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954            # Check whether --enable-shared was given.
13955if test "${enable_shared+set}" = set; then :
13956  enableval=$enable_shared; p=${PACKAGE-default}
13957    case $enableval in
13958    yes) enable_shared=yes ;;
13959    no) enable_shared=no ;;
13960    *)
13961      enable_shared=no
13962      # Look at the argument we got.  We use all the common list separators.
13963      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13964      for pkg in $enableval; do
13965	IFS="$lt_save_ifs"
13966	if test "X$pkg" = "X$p"; then
13967	  enable_shared=yes
13968	fi
13969      done
13970      IFS="$lt_save_ifs"
13971      ;;
13972    esac
13973else
13974  enable_shared=yes
13975fi
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985  # Check whether --enable-static was given.
13986if test "${enable_static+set}" = set; then :
13987  enableval=$enable_static; p=${PACKAGE-default}
13988    case $enableval in
13989    yes) enable_static=yes ;;
13990    no) enable_static=no ;;
13991    *)
13992     enable_static=no
13993      # Look at the argument we got.  We use all the common list separators.
13994      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13995      for pkg in $enableval; do
13996	IFS="$lt_save_ifs"
13997	if test "X$pkg" = "X$p"; then
13998	  enable_static=yes
13999	fi
14000      done
14001      IFS="$lt_save_ifs"
14002      ;;
14003    esac
14004else
14005  enable_static=yes
14006fi
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017# Check whether --with-pic was given.
14018if test "${with_pic+set}" = set; then :
14019  withval=$with_pic; lt_p=${PACKAGE-default}
14020    case $withval in
14021    yes|no) pic_mode=$withval ;;
14022    *)
14023      pic_mode=default
14024      # Look at the argument we got.  We use all the common list separators.
14025      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14026      for lt_pkg in $withval; do
14027	IFS="$lt_save_ifs"
14028	if test "X$lt_pkg" = "X$lt_p"; then
14029	  pic_mode=yes
14030	fi
14031      done
14032      IFS="$lt_save_ifs"
14033      ;;
14034    esac
14035else
14036  pic_mode=default
14037fi
14038
14039
14040test -z "$pic_mode" && pic_mode=default
14041
14042
14043
14044
14045
14046
14047
14048  # Check whether --enable-fast-install was given.
14049if test "${enable_fast_install+set}" = set; then :
14050  enableval=$enable_fast_install; p=${PACKAGE-default}
14051    case $enableval in
14052    yes) enable_fast_install=yes ;;
14053    no) enable_fast_install=no ;;
14054    *)
14055      enable_fast_install=no
14056      # Look at the argument we got.  We use all the common list separators.
14057      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14058      for pkg in $enableval; do
14059	IFS="$lt_save_ifs"
14060	if test "X$pkg" = "X$p"; then
14061	  enable_fast_install=yes
14062	fi
14063      done
14064      IFS="$lt_save_ifs"
14065      ;;
14066    esac
14067else
14068  enable_fast_install=yes
14069fi
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081# This can be used to rebuild libtool when needed
14082LIBTOOL_DEPS="$ltmain"
14083
14084# Always use our own libtool.
14085LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116test -z "$LN_S" && LN_S="ln -s"
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131if test -n "${ZSH_VERSION+set}" ; then
14132   setopt NO_GLOB_SUBST
14133fi
14134
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14136$as_echo_n "checking for objdir... " >&6; }
14137if ${lt_cv_objdir+:} false; then :
14138  $as_echo_n "(cached) " >&6
14139else
14140  rm -f .libs 2>/dev/null
14141mkdir .libs 2>/dev/null
14142if test -d .libs; then
14143  lt_cv_objdir=.libs
14144else
14145  # MS-DOS does not allow filenames that begin with a dot.
14146  lt_cv_objdir=_libs
14147fi
14148rmdir .libs 2>/dev/null
14149fi
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14151$as_echo "$lt_cv_objdir" >&6; }
14152objdir=$lt_cv_objdir
14153
14154
14155
14156
14157
14158cat >>confdefs.h <<_ACEOF
14159#define LT_OBJDIR "$lt_cv_objdir/"
14160_ACEOF
14161
14162
14163
14164
14165case $host_os in
14166aix3*)
14167  # AIX sometimes has problems with the GCC collect2 program.  For some
14168  # reason, if we set the COLLECT_NAMES environment variable, the problems
14169  # vanish in a puff of smoke.
14170  if test "X${COLLECT_NAMES+set}" != Xset; then
14171    COLLECT_NAMES=
14172    export COLLECT_NAMES
14173  fi
14174  ;;
14175esac
14176
14177# Global variables:
14178ofile=libtool
14179can_build_shared=yes
14180
14181# All known linkers require a `.a' archive for static linking (except MSVC,
14182# which needs '.lib').
14183libext=a
14184
14185with_gnu_ld="$lt_cv_prog_gnu_ld"
14186
14187old_CC="$CC"
14188old_CFLAGS="$CFLAGS"
14189
14190# Set sane defaults for various variables
14191test -z "$CC" && CC=cc
14192test -z "$LTCC" && LTCC=$CC
14193test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14194test -z "$LD" && LD=ld
14195test -z "$ac_objext" && ac_objext=o
14196
14197for cc_temp in $compiler""; do
14198  case $cc_temp in
14199    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14200    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14201    \-*) ;;
14202    *) break;;
14203  esac
14204done
14205cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14206
14207
14208# Only perform the check for file, if the check method requires it
14209test -z "$MAGIC_CMD" && MAGIC_CMD=file
14210case $deplibs_check_method in
14211file_magic*)
14212  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14214$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14215if ${lt_cv_path_MAGIC_CMD+:} false; then :
14216  $as_echo_n "(cached) " >&6
14217else
14218  case $MAGIC_CMD in
14219[\\/*] |  ?:[\\/]*)
14220  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14221  ;;
14222*)
14223  lt_save_MAGIC_CMD="$MAGIC_CMD"
14224  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14225  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14226  for ac_dir in $ac_dummy; do
14227    IFS="$lt_save_ifs"
14228    test -z "$ac_dir" && ac_dir=.
14229    if test -f $ac_dir/${ac_tool_prefix}file; then
14230      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14231      if test -n "$file_magic_test_file"; then
14232	case $deplibs_check_method in
14233	"file_magic "*)
14234	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14235	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14236	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14237	    $EGREP "$file_magic_regex" > /dev/null; then
14238	    :
14239	  else
14240	    cat <<_LT_EOF 1>&2
14241
14242*** Warning: the command libtool uses to detect shared libraries,
14243*** $file_magic_cmd, produces output that libtool cannot recognize.
14244*** The result is that libtool may fail to recognize shared libraries
14245*** as such.  This will affect the creation of libtool libraries that
14246*** depend on shared libraries, but programs linked with such libtool
14247*** libraries will work regardless of this problem.  Nevertheless, you
14248*** may want to report the problem to your system manager and/or to
14249*** bug-libtool@gnu.org
14250
14251_LT_EOF
14252	  fi ;;
14253	esac
14254      fi
14255      break
14256    fi
14257  done
14258  IFS="$lt_save_ifs"
14259  MAGIC_CMD="$lt_save_MAGIC_CMD"
14260  ;;
14261esac
14262fi
14263
14264MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14265if test -n "$MAGIC_CMD"; then
14266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14267$as_echo "$MAGIC_CMD" >&6; }
14268else
14269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270$as_echo "no" >&6; }
14271fi
14272
14273
14274
14275
14276
14277if test -z "$lt_cv_path_MAGIC_CMD"; then
14278  if test -n "$ac_tool_prefix"; then
14279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14280$as_echo_n "checking for file... " >&6; }
14281if ${lt_cv_path_MAGIC_CMD+:} false; then :
14282  $as_echo_n "(cached) " >&6
14283else
14284  case $MAGIC_CMD in
14285[\\/*] |  ?:[\\/]*)
14286  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14287  ;;
14288*)
14289  lt_save_MAGIC_CMD="$MAGIC_CMD"
14290  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14291  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14292  for ac_dir in $ac_dummy; do
14293    IFS="$lt_save_ifs"
14294    test -z "$ac_dir" && ac_dir=.
14295    if test -f $ac_dir/file; then
14296      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14297      if test -n "$file_magic_test_file"; then
14298	case $deplibs_check_method in
14299	"file_magic "*)
14300	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14301	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14302	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14303	    $EGREP "$file_magic_regex" > /dev/null; then
14304	    :
14305	  else
14306	    cat <<_LT_EOF 1>&2
14307
14308*** Warning: the command libtool uses to detect shared libraries,
14309*** $file_magic_cmd, produces output that libtool cannot recognize.
14310*** The result is that libtool may fail to recognize shared libraries
14311*** as such.  This will affect the creation of libtool libraries that
14312*** depend on shared libraries, but programs linked with such libtool
14313*** libraries will work regardless of this problem.  Nevertheless, you
14314*** may want to report the problem to your system manager and/or to
14315*** bug-libtool@gnu.org
14316
14317_LT_EOF
14318	  fi ;;
14319	esac
14320      fi
14321      break
14322    fi
14323  done
14324  IFS="$lt_save_ifs"
14325  MAGIC_CMD="$lt_save_MAGIC_CMD"
14326  ;;
14327esac
14328fi
14329
14330MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14331if test -n "$MAGIC_CMD"; then
14332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14333$as_echo "$MAGIC_CMD" >&6; }
14334else
14335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336$as_echo "no" >&6; }
14337fi
14338
14339
14340  else
14341    MAGIC_CMD=:
14342  fi
14343fi
14344
14345  fi
14346  ;;
14347esac
14348
14349# Use C for the default configuration in the libtool script
14350
14351lt_save_CC="$CC"
14352ac_ext=c
14353ac_cpp='$CPP $CPPFLAGS'
14354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356ac_compiler_gnu=$ac_cv_c_compiler_gnu
14357
14358
14359# Source file extension for C test sources.
14360ac_ext=c
14361
14362# Object file extension for compiled C test sources.
14363objext=o
14364objext=$objext
14365
14366# Code to be used in simple compile tests
14367lt_simple_compile_test_code="int some_variable = 0;"
14368
14369# Code to be used in simple link tests
14370lt_simple_link_test_code='int main(){return(0);}'
14371
14372
14373
14374
14375
14376
14377
14378# If no C compiler was specified, use CC.
14379LTCC=${LTCC-"$CC"}
14380
14381# If no C compiler flags were specified, use CFLAGS.
14382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14383
14384# Allow CC to be a program name with arguments.
14385compiler=$CC
14386
14387# Save the default compiler, since it gets overwritten when the other
14388# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14389compiler_DEFAULT=$CC
14390
14391# save warnings/boilerplate of simple test code
14392ac_outfile=conftest.$ac_objext
14393echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14394eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14395_lt_compiler_boilerplate=`cat conftest.err`
14396$RM conftest*
14397
14398ac_outfile=conftest.$ac_objext
14399echo "$lt_simple_link_test_code" >conftest.$ac_ext
14400eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14401_lt_linker_boilerplate=`cat conftest.err`
14402$RM -r conftest*
14403
14404
14405## CAVEAT EMPTOR:
14406## There is no encapsulation within the following macros, do not change
14407## the running order or otherwise move them around unless you know exactly
14408## what you are doing...
14409if test -n "$compiler"; then
14410
14411lt_prog_compiler_no_builtin_flag=
14412
14413if test "$GCC" = yes; then
14414  case $cc_basename in
14415  nvcc*)
14416    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14417  *)
14418    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14419  esac
14420
14421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14422$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14423if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  lt_cv_prog_compiler_rtti_exceptions=no
14427   ac_outfile=conftest.$ac_objext
14428   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429   lt_compiler_flag="-fno-rtti -fno-exceptions"
14430   # Insert the option either (1) after the last *FLAGS variable, or
14431   # (2) before a word containing "conftest.", or (3) at the end.
14432   # Note that $ac_compile itself does not contain backslashes and begins
14433   # with a dollar sign (not a hyphen), so the echo should work correctly.
14434   # The option is referenced via a variable to avoid confusing sed.
14435   lt_compile=`echo "$ac_compile" | $SED \
14436   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438   -e 's:$: $lt_compiler_flag:'`
14439   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14440   (eval "$lt_compile" 2>conftest.err)
14441   ac_status=$?
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   if (exit $ac_status) && test -s "$ac_outfile"; then
14445     # The compiler can only warn and ignore the option if not recognized
14446     # So say no if there are warnings other than the usual output.
14447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14448     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450       lt_cv_prog_compiler_rtti_exceptions=yes
14451     fi
14452   fi
14453   $RM conftest*
14454
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14457$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14458
14459if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14460    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14461else
14462    :
14463fi
14464
14465fi
14466
14467
14468
14469
14470
14471
14472  lt_prog_compiler_wl=
14473lt_prog_compiler_pic=
14474lt_prog_compiler_static=
14475
14476
14477  if test "$GCC" = yes; then
14478    lt_prog_compiler_wl='-Wl,'
14479    lt_prog_compiler_static='-static'
14480
14481    case $host_os in
14482      aix*)
14483      # All AIX code is PIC.
14484      if test "$host_cpu" = ia64; then
14485	# AIX 5 now supports IA64 processor
14486	lt_prog_compiler_static='-Bstatic'
14487      fi
14488      ;;
14489
14490    amigaos*)
14491      case $host_cpu in
14492      powerpc)
14493            # see comment about AmigaOS4 .so support
14494            lt_prog_compiler_pic='-fPIC'
14495        ;;
14496      m68k)
14497            # FIXME: we need at least 68020 code to build shared libraries, but
14498            # adding the `-m68020' flag to GCC prevents building anything better,
14499            # like `-m68040'.
14500            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14501        ;;
14502      esac
14503      ;;
14504
14505    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14506      # PIC is the default for these OSes.
14507      ;;
14508
14509    mingw* | cygwin* | pw32* | os2* | cegcc*)
14510      # This hack is so that the source file can tell whether it is being
14511      # built for inclusion in a dll (and should export symbols for example).
14512      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14513      # (--disable-auto-import) libraries
14514      lt_prog_compiler_pic='-DDLL_EXPORT'
14515      ;;
14516
14517    darwin* | rhapsody*)
14518      # PIC is the default on this platform
14519      # Common symbols not allowed in MH_DYLIB files
14520      lt_prog_compiler_pic='-fno-common'
14521      ;;
14522
14523    haiku*)
14524      # PIC is the default for Haiku.
14525      # The "-static" flag exists, but is broken.
14526      lt_prog_compiler_static=
14527      ;;
14528
14529    hpux*)
14530      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14531      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14532      # sets the default TLS model and affects inlining.
14533      case $host_cpu in
14534      hppa*64*)
14535	# +Z the default
14536	;;
14537      *)
14538	lt_prog_compiler_pic='-fPIC'
14539	;;
14540      esac
14541      ;;
14542
14543    interix[3-9]*)
14544      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14545      # Instead, we relocate shared libraries at runtime.
14546      ;;
14547
14548    msdosdjgpp*)
14549      # Just because we use GCC doesn't mean we suddenly get shared libraries
14550      # on systems that don't support them.
14551      lt_prog_compiler_can_build_shared=no
14552      enable_shared=no
14553      ;;
14554
14555    *nto* | *qnx*)
14556      # QNX uses GNU C++, but need to define -shared option too, otherwise
14557      # it will coredump.
14558      lt_prog_compiler_pic='-fPIC -shared'
14559      ;;
14560
14561    sysv4*MP*)
14562      if test -d /usr/nec; then
14563	lt_prog_compiler_pic=-Kconform_pic
14564      fi
14565      ;;
14566
14567    *)
14568      lt_prog_compiler_pic='-fPIC'
14569      ;;
14570    esac
14571
14572    case $cc_basename in
14573    nvcc*) # Cuda Compiler Driver 2.2
14574      lt_prog_compiler_wl='-Xlinker '
14575      if test -n "$lt_prog_compiler_pic"; then
14576        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14577      fi
14578      ;;
14579    esac
14580  else
14581    # PORTME Check for flag to pass linker flags through the system compiler.
14582    case $host_os in
14583    aix*)
14584      lt_prog_compiler_wl='-Wl,'
14585      if test "$host_cpu" = ia64; then
14586	# AIX 5 now supports IA64 processor
14587	lt_prog_compiler_static='-Bstatic'
14588      else
14589	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14590      fi
14591      ;;
14592
14593    mingw* | cygwin* | pw32* | os2* | cegcc*)
14594      # This hack is so that the source file can tell whether it is being
14595      # built for inclusion in a dll (and should export symbols for example).
14596      lt_prog_compiler_pic='-DDLL_EXPORT'
14597      ;;
14598
14599    hpux9* | hpux10* | hpux11*)
14600      lt_prog_compiler_wl='-Wl,'
14601      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14602      # not for PA HP-UX.
14603      case $host_cpu in
14604      hppa*64*|ia64*)
14605	# +Z the default
14606	;;
14607      *)
14608	lt_prog_compiler_pic='+Z'
14609	;;
14610      esac
14611      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14612      lt_prog_compiler_static='${wl}-a ${wl}archive'
14613      ;;
14614
14615    irix5* | irix6* | nonstopux*)
14616      lt_prog_compiler_wl='-Wl,'
14617      # PIC (with -KPIC) is the default.
14618      lt_prog_compiler_static='-non_shared'
14619      ;;
14620
14621    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14622      case $cc_basename in
14623      # old Intel for x86_64 which still supported -KPIC.
14624      ecc*)
14625	lt_prog_compiler_wl='-Wl,'
14626	lt_prog_compiler_pic='-KPIC'
14627	lt_prog_compiler_static='-static'
14628        ;;
14629      # icc used to be incompatible with GCC.
14630      # ICC 10 doesn't accept -KPIC any more.
14631      icc* | ifort*)
14632	lt_prog_compiler_wl='-Wl,'
14633	lt_prog_compiler_pic='-fPIC'
14634	lt_prog_compiler_static='-static'
14635        ;;
14636      # Lahey Fortran 8.1.
14637      lf95*)
14638	lt_prog_compiler_wl='-Wl,'
14639	lt_prog_compiler_pic='--shared'
14640	lt_prog_compiler_static='--static'
14641	;;
14642      nagfor*)
14643	# NAG Fortran compiler
14644	lt_prog_compiler_wl='-Wl,-Wl,,'
14645	lt_prog_compiler_pic='-PIC'
14646	lt_prog_compiler_static='-Bstatic'
14647	;;
14648      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14649        # Portland Group compilers (*not* the Pentium gcc compiler,
14650	# which looks to be a dead project)
14651	lt_prog_compiler_wl='-Wl,'
14652	lt_prog_compiler_pic='-fpic'
14653	lt_prog_compiler_static='-Bstatic'
14654        ;;
14655      ccc*)
14656        lt_prog_compiler_wl='-Wl,'
14657        # All Alpha code is PIC.
14658        lt_prog_compiler_static='-non_shared'
14659        ;;
14660      xl* | bgxl* | bgf* | mpixl*)
14661	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14662	lt_prog_compiler_wl='-Wl,'
14663	lt_prog_compiler_pic='-qpic'
14664	lt_prog_compiler_static='-qstaticlink'
14665	;;
14666      *)
14667	case `$CC -V 2>&1 | sed 5q` in
14668	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14669	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14670	  lt_prog_compiler_pic='-KPIC'
14671	  lt_prog_compiler_static='-Bstatic'
14672	  lt_prog_compiler_wl=''
14673	  ;;
14674	*Sun\ F* | *Sun*Fortran*)
14675	  lt_prog_compiler_pic='-KPIC'
14676	  lt_prog_compiler_static='-Bstatic'
14677	  lt_prog_compiler_wl='-Qoption ld '
14678	  ;;
14679	*Sun\ C*)
14680	  # Sun C 5.9
14681	  lt_prog_compiler_pic='-KPIC'
14682	  lt_prog_compiler_static='-Bstatic'
14683	  lt_prog_compiler_wl='-Wl,'
14684	  ;;
14685        *Intel*\ [CF]*Compiler*)
14686	  lt_prog_compiler_wl='-Wl,'
14687	  lt_prog_compiler_pic='-fPIC'
14688	  lt_prog_compiler_static='-static'
14689	  ;;
14690	*Portland\ Group*)
14691	  lt_prog_compiler_wl='-Wl,'
14692	  lt_prog_compiler_pic='-fpic'
14693	  lt_prog_compiler_static='-Bstatic'
14694	  ;;
14695	esac
14696	;;
14697      esac
14698      ;;
14699
14700    newsos6)
14701      lt_prog_compiler_pic='-KPIC'
14702      lt_prog_compiler_static='-Bstatic'
14703      ;;
14704
14705    *nto* | *qnx*)
14706      # QNX uses GNU C++, but need to define -shared option too, otherwise
14707      # it will coredump.
14708      lt_prog_compiler_pic='-fPIC -shared'
14709      ;;
14710
14711    osf3* | osf4* | osf5*)
14712      lt_prog_compiler_wl='-Wl,'
14713      # All OSF/1 code is PIC.
14714      lt_prog_compiler_static='-non_shared'
14715      ;;
14716
14717    rdos*)
14718      lt_prog_compiler_static='-non_shared'
14719      ;;
14720
14721    solaris*)
14722      lt_prog_compiler_pic='-KPIC'
14723      lt_prog_compiler_static='-Bstatic'
14724      case $cc_basename in
14725      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14726	lt_prog_compiler_wl='-Qoption ld ';;
14727      *)
14728	lt_prog_compiler_wl='-Wl,';;
14729      esac
14730      ;;
14731
14732    sunos4*)
14733      lt_prog_compiler_wl='-Qoption ld '
14734      lt_prog_compiler_pic='-PIC'
14735      lt_prog_compiler_static='-Bstatic'
14736      ;;
14737
14738    sysv4 | sysv4.2uw2* | sysv4.3*)
14739      lt_prog_compiler_wl='-Wl,'
14740      lt_prog_compiler_pic='-KPIC'
14741      lt_prog_compiler_static='-Bstatic'
14742      ;;
14743
14744    sysv4*MP*)
14745      if test -d /usr/nec ;then
14746	lt_prog_compiler_pic='-Kconform_pic'
14747	lt_prog_compiler_static='-Bstatic'
14748      fi
14749      ;;
14750
14751    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14752      lt_prog_compiler_wl='-Wl,'
14753      lt_prog_compiler_pic='-KPIC'
14754      lt_prog_compiler_static='-Bstatic'
14755      ;;
14756
14757    unicos*)
14758      lt_prog_compiler_wl='-Wl,'
14759      lt_prog_compiler_can_build_shared=no
14760      ;;
14761
14762    uts4*)
14763      lt_prog_compiler_pic='-pic'
14764      lt_prog_compiler_static='-Bstatic'
14765      ;;
14766
14767    *)
14768      lt_prog_compiler_can_build_shared=no
14769      ;;
14770    esac
14771  fi
14772
14773case $host_os in
14774  # For platforms which do not support PIC, -DPIC is meaningless:
14775  *djgpp*)
14776    lt_prog_compiler_pic=
14777    ;;
14778  *)
14779    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14780    ;;
14781esac
14782
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14784$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14785if ${lt_cv_prog_compiler_pic+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14791$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14792lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14793
14794#
14795# Check to make sure the PIC flag actually works.
14796#
14797if test -n "$lt_prog_compiler_pic"; then
14798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14799$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14800if ${lt_cv_prog_compiler_pic_works+:} false; then :
14801  $as_echo_n "(cached) " >&6
14802else
14803  lt_cv_prog_compiler_pic_works=no
14804   ac_outfile=conftest.$ac_objext
14805   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14806   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14807   # Insert the option either (1) after the last *FLAGS variable, or
14808   # (2) before a word containing "conftest.", or (3) at the end.
14809   # Note that $ac_compile itself does not contain backslashes and begins
14810   # with a dollar sign (not a hyphen), so the echo should work correctly.
14811   # The option is referenced via a variable to avoid confusing sed.
14812   lt_compile=`echo "$ac_compile" | $SED \
14813   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14814   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14815   -e 's:$: $lt_compiler_flag:'`
14816   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14817   (eval "$lt_compile" 2>conftest.err)
14818   ac_status=$?
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   if (exit $ac_status) && test -s "$ac_outfile"; then
14822     # The compiler can only warn and ignore the option if not recognized
14823     # So say no if there are warnings other than the usual output.
14824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14825     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14826     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14827       lt_cv_prog_compiler_pic_works=yes
14828     fi
14829   fi
14830   $RM conftest*
14831
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14834$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14835
14836if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14837    case $lt_prog_compiler_pic in
14838     "" | " "*) ;;
14839     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14840     esac
14841else
14842    lt_prog_compiler_pic=
14843     lt_prog_compiler_can_build_shared=no
14844fi
14845
14846fi
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858#
14859# Check to make sure the static flag actually works.
14860#
14861wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14863$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14864if ${lt_cv_prog_compiler_static_works+:} false; then :
14865  $as_echo_n "(cached) " >&6
14866else
14867  lt_cv_prog_compiler_static_works=no
14868   save_LDFLAGS="$LDFLAGS"
14869   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14870   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14871   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14872     # The linker can only warn and ignore the option if not recognized
14873     # So say no if there are warnings
14874     if test -s conftest.err; then
14875       # Append any errors to the config.log.
14876       cat conftest.err 1>&5
14877       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14878       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14879       if diff conftest.exp conftest.er2 >/dev/null; then
14880         lt_cv_prog_compiler_static_works=yes
14881       fi
14882     else
14883       lt_cv_prog_compiler_static_works=yes
14884     fi
14885   fi
14886   $RM -r conftest*
14887   LDFLAGS="$save_LDFLAGS"
14888
14889fi
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14891$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14892
14893if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14894    :
14895else
14896    lt_prog_compiler_static=
14897fi
14898
14899
14900
14901
14902
14903
14904
14905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14906$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14907if ${lt_cv_prog_compiler_c_o+:} false; then :
14908  $as_echo_n "(cached) " >&6
14909else
14910  lt_cv_prog_compiler_c_o=no
14911   $RM -r conftest 2>/dev/null
14912   mkdir conftest
14913   cd conftest
14914   mkdir out
14915   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14916
14917   lt_compiler_flag="-o out/conftest2.$ac_objext"
14918   # Insert the option either (1) after the last *FLAGS variable, or
14919   # (2) before a word containing "conftest.", or (3) at the end.
14920   # Note that $ac_compile itself does not contain backslashes and begins
14921   # with a dollar sign (not a hyphen), so the echo should work correctly.
14922   lt_compile=`echo "$ac_compile" | $SED \
14923   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14925   -e 's:$: $lt_compiler_flag:'`
14926   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14927   (eval "$lt_compile" 2>out/conftest.err)
14928   ac_status=$?
14929   cat out/conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14932   then
14933     # The compiler can only warn and ignore the option if not recognized
14934     # So say no if there are warnings
14935     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14936     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14937     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14938       lt_cv_prog_compiler_c_o=yes
14939     fi
14940   fi
14941   chmod u+w . 2>&5
14942   $RM conftest*
14943   # SGI C++ compiler will create directory out/ii_files/ for
14944   # template instantiation
14945   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14946   $RM out/* && rmdir out
14947   cd ..
14948   $RM -r conftest
14949   $RM conftest*
14950
14951fi
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14953$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14954
14955
14956
14957
14958
14959
14960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14962if ${lt_cv_prog_compiler_c_o+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  lt_cv_prog_compiler_c_o=no
14966   $RM -r conftest 2>/dev/null
14967   mkdir conftest
14968   cd conftest
14969   mkdir out
14970   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971
14972   lt_compiler_flag="-o out/conftest2.$ac_objext"
14973   # Insert the option either (1) after the last *FLAGS variable, or
14974   # (2) before a word containing "conftest.", or (3) at the end.
14975   # Note that $ac_compile itself does not contain backslashes and begins
14976   # with a dollar sign (not a hyphen), so the echo should work correctly.
14977   lt_compile=`echo "$ac_compile" | $SED \
14978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980   -e 's:$: $lt_compiler_flag:'`
14981   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14982   (eval "$lt_compile" 2>out/conftest.err)
14983   ac_status=$?
14984   cat out/conftest.err >&5
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14987   then
14988     # The compiler can only warn and ignore the option if not recognized
14989     # So say no if there are warnings
14990     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14991     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14992     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14993       lt_cv_prog_compiler_c_o=yes
14994     fi
14995   fi
14996   chmod u+w . 2>&5
14997   $RM conftest*
14998   # SGI C++ compiler will create directory out/ii_files/ for
14999   # template instantiation
15000   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15001   $RM out/* && rmdir out
15002   cd ..
15003   $RM -r conftest
15004   $RM conftest*
15005
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15008$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15009
15010
15011
15012
15013hard_links="nottested"
15014if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15015  # do not overwrite the value of need_locks provided by the user
15016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15017$as_echo_n "checking if we can lock with hard links... " >&6; }
15018  hard_links=yes
15019  $RM conftest*
15020  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15021  touch conftest.a
15022  ln conftest.a conftest.b 2>&5 || hard_links=no
15023  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15025$as_echo "$hard_links" >&6; }
15026  if test "$hard_links" = no; then
15027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15028$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15029    need_locks=warn
15030  fi
15031else
15032  need_locks=no
15033fi
15034
15035
15036
15037
15038
15039
15040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15042
15043  runpath_var=
15044  allow_undefined_flag=
15045  always_export_symbols=no
15046  archive_cmds=
15047  archive_expsym_cmds=
15048  compiler_needs_object=no
15049  enable_shared_with_static_runtimes=no
15050  export_dynamic_flag_spec=
15051  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15052  hardcode_automatic=no
15053  hardcode_direct=no
15054  hardcode_direct_absolute=no
15055  hardcode_libdir_flag_spec=
15056  hardcode_libdir_separator=
15057  hardcode_minus_L=no
15058  hardcode_shlibpath_var=unsupported
15059  inherit_rpath=no
15060  link_all_deplibs=unknown
15061  module_cmds=
15062  module_expsym_cmds=
15063  old_archive_from_new_cmds=
15064  old_archive_from_expsyms_cmds=
15065  thread_safe_flag_spec=
15066  whole_archive_flag_spec=
15067  # include_expsyms should be a list of space-separated symbols to be *always*
15068  # included in the symbol list
15069  include_expsyms=
15070  # exclude_expsyms can be an extended regexp of symbols to exclude
15071  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15072  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15073  # as well as any symbol that contains `d'.
15074  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15075  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15076  # platforms (ab)use it in PIC code, but their linkers get confused if
15077  # the symbol is explicitly referenced.  Since portable code cannot
15078  # rely on this symbol name, it's probably fine to never include it in
15079  # preloaded symbol tables.
15080  # Exclude shared library initialization/finalization symbols.
15081  extract_expsyms_cmds=
15082
15083  case $host_os in
15084  cygwin* | mingw* | pw32* | cegcc*)
15085    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15086    # When not using gcc, we currently assume that we are using
15087    # Microsoft Visual C++.
15088    if test "$GCC" != yes; then
15089      with_gnu_ld=no
15090    fi
15091    ;;
15092  interix*)
15093    # we just hope/assume this is gcc and not c89 (= MSVC++)
15094    with_gnu_ld=yes
15095    ;;
15096  openbsd*)
15097    with_gnu_ld=no
15098    ;;
15099  esac
15100
15101  ld_shlibs=yes
15102
15103  # On some targets, GNU ld is compatible enough with the native linker
15104  # that we're better off using the native interface for both.
15105  lt_use_gnu_ld_interface=no
15106  if test "$with_gnu_ld" = yes; then
15107    case $host_os in
15108      aix*)
15109	# The AIX port of GNU ld has always aspired to compatibility
15110	# with the native linker.  However, as the warning in the GNU ld
15111	# block says, versions before 2.19.5* couldn't really create working
15112	# shared libraries, regardless of the interface used.
15113	case `$LD -v 2>&1` in
15114	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15115	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15116	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15117	  *)
15118	    lt_use_gnu_ld_interface=yes
15119	    ;;
15120	esac
15121	;;
15122      *)
15123	lt_use_gnu_ld_interface=yes
15124	;;
15125    esac
15126  fi
15127
15128  if test "$lt_use_gnu_ld_interface" = yes; then
15129    # If archive_cmds runs LD, not CC, wlarc should be empty
15130    wlarc='${wl}'
15131
15132    # Set some defaults for GNU ld with shared library support. These
15133    # are reset later if shared libraries are not supported. Putting them
15134    # here allows them to be overridden if necessary.
15135    runpath_var=LD_RUN_PATH
15136    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15137    export_dynamic_flag_spec='${wl}--export-dynamic'
15138    # ancient GNU ld didn't support --whole-archive et. al.
15139    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15140      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15141    else
15142      whole_archive_flag_spec=
15143    fi
15144    supports_anon_versioning=no
15145    case `$LD -v 2>&1` in
15146      *GNU\ gold*) supports_anon_versioning=yes ;;
15147      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15148      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15149      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15150      *\ 2.11.*) ;; # other 2.11 versions
15151      *) supports_anon_versioning=yes ;;
15152    esac
15153
15154    # See if GNU ld supports shared libraries.
15155    case $host_os in
15156    aix[3-9]*)
15157      # On AIX/PPC, the GNU linker is very broken
15158      if test "$host_cpu" != ia64; then
15159	ld_shlibs=no
15160	cat <<_LT_EOF 1>&2
15161
15162*** Warning: the GNU linker, at least up to release 2.19, is reported
15163*** to be unable to reliably create shared libraries on AIX.
15164*** Therefore, libtool is disabling shared libraries support.  If you
15165*** really care for shared libraries, you may want to install binutils
15166*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15167*** You will then need to restart the configuration process.
15168
15169_LT_EOF
15170      fi
15171      ;;
15172
15173    amigaos*)
15174      case $host_cpu in
15175      powerpc)
15176            # see comment about AmigaOS4 .so support
15177            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15178            archive_expsym_cmds=''
15179        ;;
15180      m68k)
15181            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)'
15182            hardcode_libdir_flag_spec='-L$libdir'
15183            hardcode_minus_L=yes
15184        ;;
15185      esac
15186      ;;
15187
15188    beos*)
15189      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15190	allow_undefined_flag=unsupported
15191	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15192	# support --undefined.  This deserves some investigation.  FIXME
15193	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194      else
15195	ld_shlibs=no
15196      fi
15197      ;;
15198
15199    cygwin* | mingw* | pw32* | cegcc*)
15200      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15201      # as there is no search path for DLLs.
15202      hardcode_libdir_flag_spec='-L$libdir'
15203      export_dynamic_flag_spec='${wl}--export-all-symbols'
15204      allow_undefined_flag=unsupported
15205      always_export_symbols=no
15206      enable_shared_with_static_runtimes=yes
15207      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'
15208      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15209
15210      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15211        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15212	# If the export-symbols file already is a .def file (1st line
15213	# is EXPORTS), use it as is; otherwise, prepend...
15214	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15215	  cp $export_symbols $output_objdir/$soname.def;
15216	else
15217	  echo EXPORTS > $output_objdir/$soname.def;
15218	  cat $export_symbols >> $output_objdir/$soname.def;
15219	fi~
15220	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15221      else
15222	ld_shlibs=no
15223      fi
15224      ;;
15225
15226    haiku*)
15227      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228      link_all_deplibs=yes
15229      ;;
15230
15231    interix[3-9]*)
15232      hardcode_direct=no
15233      hardcode_shlibpath_var=no
15234      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15235      export_dynamic_flag_spec='${wl}-E'
15236      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15237      # Instead, shared libraries are loaded at an image base (0x10000000 by
15238      # default) and relocated if they conflict, which is a slow very memory
15239      # consuming and fragmenting process.  To avoid this, we pick a random,
15240      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15241      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15242      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15243      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'
15244      ;;
15245
15246    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15247      tmp_diet=no
15248      if test "$host_os" = linux-dietlibc; then
15249	case $cc_basename in
15250	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15251	esac
15252      fi
15253      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15254	 && test "$tmp_diet" = no
15255      then
15256	tmp_addflag=' $pic_flag'
15257	tmp_sharedflag='-shared'
15258	case $cc_basename,$host_cpu in
15259        pgcc*)				# Portland Group C compiler
15260	  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'
15261	  tmp_addflag=' $pic_flag'
15262	  ;;
15263	pgf77* | pgf90* | pgf95* | pgfortran*)
15264					# Portland Group f77 and f90 compilers
15265	  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'
15266	  tmp_addflag=' $pic_flag -Mnomain' ;;
15267	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15268	  tmp_addflag=' -i_dynamic' ;;
15269	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15270	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15271	ifc* | ifort*)			# Intel Fortran compiler
15272	  tmp_addflag=' -nofor_main' ;;
15273	lf95*)				# Lahey Fortran 8.1
15274	  whole_archive_flag_spec=
15275	  tmp_sharedflag='--shared' ;;
15276	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15277	  tmp_sharedflag='-qmkshrobj'
15278	  tmp_addflag= ;;
15279	nvcc*)	# Cuda Compiler Driver 2.2
15280	  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'
15281	  compiler_needs_object=yes
15282	  ;;
15283	esac
15284	case `$CC -V 2>&1 | sed 5q` in
15285	*Sun\ C*)			# Sun C 5.9
15286	  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'
15287	  compiler_needs_object=yes
15288	  tmp_sharedflag='-G' ;;
15289	*Sun\ F*)			# Sun Fortran 8.3
15290	  tmp_sharedflag='-G' ;;
15291	esac
15292	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293
15294        if test "x$supports_anon_versioning" = xyes; then
15295          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15296	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15297	    echo "local: *; };" >> $output_objdir/$libname.ver~
15298	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15299        fi
15300
15301	case $cc_basename in
15302	xlf* | bgf* | bgxlf* | mpixlf*)
15303	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15304	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15305	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15306	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15307	  if test "x$supports_anon_versioning" = xyes; then
15308	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15309	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15310	      echo "local: *; };" >> $output_objdir/$libname.ver~
15311	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15312	  fi
15313	  ;;
15314	esac
15315      else
15316        ld_shlibs=no
15317      fi
15318      ;;
15319
15320    netbsd*)
15321      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15322	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15323	wlarc=
15324      else
15325	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15326	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15327      fi
15328      ;;
15329
15330    solaris*)
15331      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15332	ld_shlibs=no
15333	cat <<_LT_EOF 1>&2
15334
15335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15336*** create shared libraries on Solaris systems.  Therefore, libtool
15337*** is disabling shared libraries support.  We urge you to upgrade GNU
15338*** binutils to release 2.9.1 or newer.  Another option is to modify
15339*** your PATH or compiler configuration so that the native linker is
15340*** used, and then restart.
15341
15342_LT_EOF
15343      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15344	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15345	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15346      else
15347	ld_shlibs=no
15348      fi
15349      ;;
15350
15351    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15352      case `$LD -v 2>&1` in
15353        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15354	ld_shlibs=no
15355	cat <<_LT_EOF 1>&2
15356
15357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15358*** reliably create shared libraries on SCO systems.  Therefore, libtool
15359*** is disabling shared libraries support.  We urge you to upgrade GNU
15360*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15361*** your PATH or compiler configuration so that the native linker is
15362*** used, and then restart.
15363
15364_LT_EOF
15365	;;
15366	*)
15367	  # For security reasons, it is highly recommended that you always
15368	  # use absolute paths for naming shared libraries, and exclude the
15369	  # DT_RUNPATH tag from executables and libraries.  But doing so
15370	  # requires that you compile everything twice, which is a pain.
15371	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15372	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15373	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15374	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15375	  else
15376	    ld_shlibs=no
15377	  fi
15378	;;
15379      esac
15380      ;;
15381
15382    sunos4*)
15383      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15384      wlarc=
15385      hardcode_direct=yes
15386      hardcode_shlibpath_var=no
15387      ;;
15388
15389    *)
15390      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15391	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15393      else
15394	ld_shlibs=no
15395      fi
15396      ;;
15397    esac
15398
15399    if test "$ld_shlibs" = no; then
15400      runpath_var=
15401      hardcode_libdir_flag_spec=
15402      export_dynamic_flag_spec=
15403      whole_archive_flag_spec=
15404    fi
15405  else
15406    # PORTME fill in a description of your system's linker (not GNU ld)
15407    case $host_os in
15408    aix3*)
15409      allow_undefined_flag=unsupported
15410      always_export_symbols=yes
15411      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'
15412      # Note: this linker hardcodes the directories in LIBPATH if there
15413      # are no directories specified by -L.
15414      hardcode_minus_L=yes
15415      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15416	# Neither direct hardcoding nor static linking is supported with a
15417	# broken collect2.
15418	hardcode_direct=unsupported
15419      fi
15420      ;;
15421
15422    aix[4-9]*)
15423      if test "$host_cpu" = ia64; then
15424	# On IA64, the linker does run time linking by default, so we don't
15425	# have to do anything special.
15426	aix_use_runtimelinking=no
15427	exp_sym_flag='-Bexport'
15428	no_entry_flag=""
15429      else
15430	# If we're using GNU nm, then we don't want the "-C" option.
15431	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15432	# Also, AIX nm treats weak defined symbols like other global
15433	# defined symbols, whereas GNU nm marks them as "W".
15434	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15435	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15436	else
15437	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15438	fi
15439	aix_use_runtimelinking=no
15440
15441	# Test if we are trying to use run time linking or normal
15442	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15443	# need to do runtime linking.
15444	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15445	  for ld_flag in $LDFLAGS; do
15446	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15447	    aix_use_runtimelinking=yes
15448	    break
15449	  fi
15450	  done
15451	  ;;
15452	esac
15453
15454	exp_sym_flag='-bexport'
15455	no_entry_flag='-bnoentry'
15456      fi
15457
15458      # When large executables or shared objects are built, AIX ld can
15459      # have problems creating the table of contents.  If linking a library
15460      # or program results in "error TOC overflow" add -mminimal-toc to
15461      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15462      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15463
15464      archive_cmds=''
15465      hardcode_direct=yes
15466      hardcode_direct_absolute=yes
15467      hardcode_libdir_separator=':'
15468      link_all_deplibs=yes
15469      file_list_spec='${wl}-f,'
15470
15471      if test "$GCC" = yes; then
15472	case $host_os in aix4.[012]|aix4.[012].*)
15473	# We only want to do this on AIX 4.2 and lower, the check
15474	# below for broken collect2 doesn't work under 4.3+
15475	  collect2name=`${CC} -print-prog-name=collect2`
15476	  if test -f "$collect2name" &&
15477	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15478	  then
15479	  # We have reworked collect2
15480	  :
15481	  else
15482	  # We have old collect2
15483	  hardcode_direct=unsupported
15484	  # It fails to find uninstalled libraries when the uninstalled
15485	  # path is not listed in the libpath.  Setting hardcode_minus_L
15486	  # to unsupported forces relinking
15487	  hardcode_minus_L=yes
15488	  hardcode_libdir_flag_spec='-L$libdir'
15489	  hardcode_libdir_separator=
15490	  fi
15491	  ;;
15492	esac
15493	shared_flag='-shared'
15494	if test "$aix_use_runtimelinking" = yes; then
15495	  shared_flag="$shared_flag "'${wl}-G'
15496	fi
15497      else
15498	# not using gcc
15499	if test "$host_cpu" = ia64; then
15500	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15501	# chokes on -Wl,-G. The following line is correct:
15502	  shared_flag='-G'
15503	else
15504	  if test "$aix_use_runtimelinking" = yes; then
15505	    shared_flag='${wl}-G'
15506	  else
15507	    shared_flag='${wl}-bM:SRE'
15508	  fi
15509	fi
15510      fi
15511
15512      export_dynamic_flag_spec='${wl}-bexpall'
15513      # It seems that -bexpall does not export symbols beginning with
15514      # underscore (_), so it is better to generate a list of symbols to export.
15515      always_export_symbols=yes
15516      if test "$aix_use_runtimelinking" = yes; then
15517	# Warning - without using the other runtime loading flags (-brtl),
15518	# -berok will link without error, but may produce a broken library.
15519	allow_undefined_flag='-berok'
15520        # Determine the default libpath from the value encoded in an
15521        # empty executable.
15522        if test "${lt_cv_aix_libpath+set}" = set; then
15523  aix_libpath=$lt_cv_aix_libpath
15524else
15525  if ${lt_cv_aix_libpath_+:} false; then :
15526  $as_echo_n "(cached) " >&6
15527else
15528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529/* end confdefs.h.  */
15530
15531int
15532main ()
15533{
15534
15535  ;
15536  return 0;
15537}
15538_ACEOF
15539if ac_fn_c_try_link "$LINENO"; then :
15540
15541  lt_aix_libpath_sed='
15542      /Import File Strings/,/^$/ {
15543	  /^0/ {
15544	      s/^0  *\([^ ]*\) *$/\1/
15545	      p
15546	  }
15547      }'
15548  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15549  # Check for a 64-bit object if we didn't find anything.
15550  if test -z "$lt_cv_aix_libpath_"; then
15551    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15552  fi
15553fi
15554rm -f core conftest.err conftest.$ac_objext \
15555    conftest$ac_exeext conftest.$ac_ext
15556  if test -z "$lt_cv_aix_libpath_"; then
15557    lt_cv_aix_libpath_="/usr/lib:/lib"
15558  fi
15559
15560fi
15561
15562  aix_libpath=$lt_cv_aix_libpath_
15563fi
15564
15565        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15566        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15567      else
15568	if test "$host_cpu" = ia64; then
15569	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15570	  allow_undefined_flag="-z nodefs"
15571	  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"
15572	else
15573	 # Determine the default libpath from the value encoded in an
15574	 # empty executable.
15575	 if test "${lt_cv_aix_libpath+set}" = set; then
15576  aix_libpath=$lt_cv_aix_libpath
15577else
15578  if ${lt_cv_aix_libpath_+:} false; then :
15579  $as_echo_n "(cached) " >&6
15580else
15581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582/* end confdefs.h.  */
15583
15584int
15585main ()
15586{
15587
15588  ;
15589  return 0;
15590}
15591_ACEOF
15592if ac_fn_c_try_link "$LINENO"; then :
15593
15594  lt_aix_libpath_sed='
15595      /Import File Strings/,/^$/ {
15596	  /^0/ {
15597	      s/^0  *\([^ ]*\) *$/\1/
15598	      p
15599	  }
15600      }'
15601  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15602  # Check for a 64-bit object if we didn't find anything.
15603  if test -z "$lt_cv_aix_libpath_"; then
15604    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15605  fi
15606fi
15607rm -f core conftest.err conftest.$ac_objext \
15608    conftest$ac_exeext conftest.$ac_ext
15609  if test -z "$lt_cv_aix_libpath_"; then
15610    lt_cv_aix_libpath_="/usr/lib:/lib"
15611  fi
15612
15613fi
15614
15615  aix_libpath=$lt_cv_aix_libpath_
15616fi
15617
15618	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15619	  # Warning - without using the other run time loading flags,
15620	  # -berok will link without error, but may produce a broken library.
15621	  no_undefined_flag=' ${wl}-bernotok'
15622	  allow_undefined_flag=' ${wl}-berok'
15623	  if test "$with_gnu_ld" = yes; then
15624	    # We only use this code for GNU lds that support --whole-archive.
15625	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15626	  else
15627	    # Exported symbols can be pulled into shared objects from archives
15628	    whole_archive_flag_spec='$convenience'
15629	  fi
15630	  archive_cmds_need_lc=yes
15631	  # This is similar to how AIX traditionally builds its shared libraries.
15632	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15633	fi
15634      fi
15635      ;;
15636
15637    amigaos*)
15638      case $host_cpu in
15639      powerpc)
15640            # see comment about AmigaOS4 .so support
15641            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15642            archive_expsym_cmds=''
15643        ;;
15644      m68k)
15645            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)'
15646            hardcode_libdir_flag_spec='-L$libdir'
15647            hardcode_minus_L=yes
15648        ;;
15649      esac
15650      ;;
15651
15652    bsdi[45]*)
15653      export_dynamic_flag_spec=-rdynamic
15654      ;;
15655
15656    cygwin* | mingw* | pw32* | cegcc*)
15657      # When not using gcc, we currently assume that we are using
15658      # Microsoft Visual C++.
15659      # hardcode_libdir_flag_spec is actually meaningless, as there is
15660      # no search path for DLLs.
15661      case $cc_basename in
15662      cl*)
15663	# Native MSVC
15664	hardcode_libdir_flag_spec=' '
15665	allow_undefined_flag=unsupported
15666	always_export_symbols=yes
15667	file_list_spec='@'
15668	# Tell ltmain to make .lib files, not .a files.
15669	libext=lib
15670	# Tell ltmain to make .dll files, not .so files.
15671	shrext_cmds=".dll"
15672	# FIXME: Setting linknames here is a bad hack.
15673	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15674	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15675	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15676	  else
15677	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15678	  fi~
15679	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15680	  linknames='
15681	# The linker will not automatically build a static lib if we build a DLL.
15682	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15683	enable_shared_with_static_runtimes=yes
15684	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15685	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15686	# Don't use ranlib
15687	old_postinstall_cmds='chmod 644 $oldlib'
15688	postlink_cmds='lt_outputfile="@OUTPUT@"~
15689	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15690	  case $lt_outputfile in
15691	    *.exe|*.EXE) ;;
15692	    *)
15693	      lt_outputfile="$lt_outputfile.exe"
15694	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15695	      ;;
15696	  esac~
15697	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15698	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15699	    $RM "$lt_outputfile.manifest";
15700	  fi'
15701	;;
15702      *)
15703	# Assume MSVC wrapper
15704	hardcode_libdir_flag_spec=' '
15705	allow_undefined_flag=unsupported
15706	# Tell ltmain to make .lib files, not .a files.
15707	libext=lib
15708	# Tell ltmain to make .dll files, not .so files.
15709	shrext_cmds=".dll"
15710	# FIXME: Setting linknames here is a bad hack.
15711	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15712	# The linker will automatically build a .lib file if we build a DLL.
15713	old_archive_from_new_cmds='true'
15714	# FIXME: Should let the user specify the lib program.
15715	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15716	enable_shared_with_static_runtimes=yes
15717	;;
15718      esac
15719      ;;
15720
15721    darwin* | rhapsody*)
15722
15723
15724  archive_cmds_need_lc=no
15725  hardcode_direct=no
15726  hardcode_automatic=yes
15727  hardcode_shlibpath_var=unsupported
15728  if test "$lt_cv_ld_force_load" = "yes"; then
15729    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\"`'
15730
15731  else
15732    whole_archive_flag_spec=''
15733  fi
15734  link_all_deplibs=yes
15735  allow_undefined_flag="$_lt_dar_allow_undefined"
15736  case $cc_basename in
15737     ifort*) _lt_dar_can_shared=yes ;;
15738     *) _lt_dar_can_shared=$GCC ;;
15739  esac
15740  if test "$_lt_dar_can_shared" = "yes"; then
15741    output_verbose_link_cmd=func_echo_all
15742    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15743    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15744    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}"
15745    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}"
15746
15747  else
15748  ld_shlibs=no
15749  fi
15750
15751      ;;
15752
15753    dgux*)
15754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15755      hardcode_libdir_flag_spec='-L$libdir'
15756      hardcode_shlibpath_var=no
15757      ;;
15758
15759    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15760    # support.  Future versions do this automatically, but an explicit c++rt0.o
15761    # does not break anything, and helps significantly (at the cost of a little
15762    # extra space).
15763    freebsd2.2*)
15764      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15765      hardcode_libdir_flag_spec='-R$libdir'
15766      hardcode_direct=yes
15767      hardcode_shlibpath_var=no
15768      ;;
15769
15770    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15771    freebsd2.*)
15772      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15773      hardcode_direct=yes
15774      hardcode_minus_L=yes
15775      hardcode_shlibpath_var=no
15776      ;;
15777
15778    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15779    freebsd* | dragonfly*)
15780      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15781      hardcode_libdir_flag_spec='-R$libdir'
15782      hardcode_direct=yes
15783      hardcode_shlibpath_var=no
15784      ;;
15785
15786    hpux9*)
15787      if test "$GCC" = yes; then
15788	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15789      else
15790	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15791      fi
15792      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15793      hardcode_libdir_separator=:
15794      hardcode_direct=yes
15795
15796      # hardcode_minus_L: Not really in the search PATH,
15797      # but as the default location of the library.
15798      hardcode_minus_L=yes
15799      export_dynamic_flag_spec='${wl}-E'
15800      ;;
15801
15802    hpux10*)
15803      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15804	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15805      else
15806	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15807      fi
15808      if test "$with_gnu_ld" = no; then
15809	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15810	hardcode_libdir_separator=:
15811	hardcode_direct=yes
15812	hardcode_direct_absolute=yes
15813	export_dynamic_flag_spec='${wl}-E'
15814	# hardcode_minus_L: Not really in the search PATH,
15815	# but as the default location of the library.
15816	hardcode_minus_L=yes
15817      fi
15818      ;;
15819
15820    hpux11*)
15821      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15822	case $host_cpu in
15823	hppa*64*)
15824	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15825	  ;;
15826	ia64*)
15827	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15828	  ;;
15829	*)
15830	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15831	  ;;
15832	esac
15833      else
15834	case $host_cpu in
15835	hppa*64*)
15836	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837	  ;;
15838	ia64*)
15839	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15840	  ;;
15841	*)
15842
15843	  # Older versions of the 11.00 compiler do not understand -b yet
15844	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15845	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15846$as_echo_n "checking if $CC understands -b... " >&6; }
15847if ${lt_cv_prog_compiler__b+:} false; then :
15848  $as_echo_n "(cached) " >&6
15849else
15850  lt_cv_prog_compiler__b=no
15851   save_LDFLAGS="$LDFLAGS"
15852   LDFLAGS="$LDFLAGS -b"
15853   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15854   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15855     # The linker can only warn and ignore the option if not recognized
15856     # So say no if there are warnings
15857     if test -s conftest.err; then
15858       # Append any errors to the config.log.
15859       cat conftest.err 1>&5
15860       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15861       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15862       if diff conftest.exp conftest.er2 >/dev/null; then
15863         lt_cv_prog_compiler__b=yes
15864       fi
15865     else
15866       lt_cv_prog_compiler__b=yes
15867     fi
15868   fi
15869   $RM -r conftest*
15870   LDFLAGS="$save_LDFLAGS"
15871
15872fi
15873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15874$as_echo "$lt_cv_prog_compiler__b" >&6; }
15875
15876if test x"$lt_cv_prog_compiler__b" = xyes; then
15877    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15878else
15879    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15880fi
15881
15882	  ;;
15883	esac
15884      fi
15885      if test "$with_gnu_ld" = no; then
15886	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15887	hardcode_libdir_separator=:
15888
15889	case $host_cpu in
15890	hppa*64*|ia64*)
15891	  hardcode_direct=no
15892	  hardcode_shlibpath_var=no
15893	  ;;
15894	*)
15895	  hardcode_direct=yes
15896	  hardcode_direct_absolute=yes
15897	  export_dynamic_flag_spec='${wl}-E'
15898
15899	  # hardcode_minus_L: Not really in the search PATH,
15900	  # but as the default location of the library.
15901	  hardcode_minus_L=yes
15902	  ;;
15903	esac
15904      fi
15905      ;;
15906
15907    irix5* | irix6* | nonstopux*)
15908      if test "$GCC" = yes; then
15909	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'
15910	# Try to use the -exported_symbol ld option, if it does not
15911	# work, assume that -exports_file does not work either and
15912	# implicitly export all symbols.
15913	# This should be the same for all languages, so no per-tag cache variable.
15914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15915$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15916if ${lt_cv_irix_exported_symbol+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919  save_LDFLAGS="$LDFLAGS"
15920	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15921	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922/* end confdefs.h.  */
15923int foo (void) { return 0; }
15924_ACEOF
15925if ac_fn_c_try_link "$LINENO"; then :
15926  lt_cv_irix_exported_symbol=yes
15927else
15928  lt_cv_irix_exported_symbol=no
15929fi
15930rm -f core conftest.err conftest.$ac_objext \
15931    conftest$ac_exeext conftest.$ac_ext
15932           LDFLAGS="$save_LDFLAGS"
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15935$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15936	if test "$lt_cv_irix_exported_symbol" = yes; then
15937          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'
15938	fi
15939      else
15940	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'
15941	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'
15942      fi
15943      archive_cmds_need_lc='no'
15944      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15945      hardcode_libdir_separator=:
15946      inherit_rpath=yes
15947      link_all_deplibs=yes
15948      ;;
15949
15950    netbsd*)
15951      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15952	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15953      else
15954	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15955      fi
15956      hardcode_libdir_flag_spec='-R$libdir'
15957      hardcode_direct=yes
15958      hardcode_shlibpath_var=no
15959      ;;
15960
15961    newsos6)
15962      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963      hardcode_direct=yes
15964      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15965      hardcode_libdir_separator=:
15966      hardcode_shlibpath_var=no
15967      ;;
15968
15969    *nto* | *qnx*)
15970      ;;
15971
15972    openbsd*)
15973      if test -f /usr/libexec/ld.so; then
15974	hardcode_direct=yes
15975	hardcode_shlibpath_var=no
15976	hardcode_direct_absolute=yes
15977	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15978	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15979	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15980	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15981	  export_dynamic_flag_spec='${wl}-E'
15982	else
15983	  case $host_os in
15984	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15985	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15986	     hardcode_libdir_flag_spec='-R$libdir'
15987	     ;;
15988	   *)
15989	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15990	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15991	     ;;
15992	  esac
15993	fi
15994      else
15995	ld_shlibs=no
15996      fi
15997      ;;
15998
15999    os2*)
16000      hardcode_libdir_flag_spec='-L$libdir'
16001      hardcode_minus_L=yes
16002      allow_undefined_flag=unsupported
16003      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16004      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16005      ;;
16006
16007    osf3*)
16008      if test "$GCC" = yes; then
16009	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16010	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'
16011      else
16012	allow_undefined_flag=' -expect_unresolved \*'
16013	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'
16014      fi
16015      archive_cmds_need_lc='no'
16016      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16017      hardcode_libdir_separator=:
16018      ;;
16019
16020    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16021      if test "$GCC" = yes; then
16022	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16023	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'
16024	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16025      else
16026	allow_undefined_flag=' -expect_unresolved \*'
16027	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'
16028	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~
16029	$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'
16030
16031	# Both c and cxx compiler support -rpath directly
16032	hardcode_libdir_flag_spec='-rpath $libdir'
16033      fi
16034      archive_cmds_need_lc='no'
16035      hardcode_libdir_separator=:
16036      ;;
16037
16038    solaris*)
16039      no_undefined_flag=' -z defs'
16040      if test "$GCC" = yes; then
16041	wlarc='${wl}'
16042	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16043	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16044	  $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'
16045      else
16046	case `$CC -V 2>&1` in
16047	*"Compilers 5.0"*)
16048	  wlarc=''
16049	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16051	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16052	  ;;
16053	*)
16054	  wlarc='${wl}'
16055	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16056	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16057	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16058	  ;;
16059	esac
16060      fi
16061      hardcode_libdir_flag_spec='-R$libdir'
16062      hardcode_shlibpath_var=no
16063      case $host_os in
16064      solaris2.[0-5] | solaris2.[0-5].*) ;;
16065      *)
16066	# The compiler driver will combine and reorder linker options,
16067	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16068	# but is careful enough not to reorder.
16069	# Supported since Solaris 2.6 (maybe 2.5.1?)
16070	if test "$GCC" = yes; then
16071	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16072	else
16073	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16074	fi
16075	;;
16076      esac
16077      link_all_deplibs=yes
16078      ;;
16079
16080    sunos4*)
16081      if test "x$host_vendor" = xsequent; then
16082	# Use $CC to link under sequent, because it throws in some extra .o
16083	# files that make .init and .fini sections work.
16084	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16085      else
16086	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16087      fi
16088      hardcode_libdir_flag_spec='-L$libdir'
16089      hardcode_direct=yes
16090      hardcode_minus_L=yes
16091      hardcode_shlibpath_var=no
16092      ;;
16093
16094    sysv4)
16095      case $host_vendor in
16096	sni)
16097	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098	  hardcode_direct=yes # is this really true???
16099	;;
16100	siemens)
16101	  ## LD is ld it makes a PLAMLIB
16102	  ## CC just makes a GrossModule.
16103	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16104	  reload_cmds='$CC -r -o $output$reload_objs'
16105	  hardcode_direct=no
16106        ;;
16107	motorola)
16108	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16110	;;
16111      esac
16112      runpath_var='LD_RUN_PATH'
16113      hardcode_shlibpath_var=no
16114      ;;
16115
16116    sysv4.3*)
16117      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118      hardcode_shlibpath_var=no
16119      export_dynamic_flag_spec='-Bexport'
16120      ;;
16121
16122    sysv4*MP*)
16123      if test -d /usr/nec; then
16124	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125	hardcode_shlibpath_var=no
16126	runpath_var=LD_RUN_PATH
16127	hardcode_runpath_var=yes
16128	ld_shlibs=yes
16129      fi
16130      ;;
16131
16132    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16133      no_undefined_flag='${wl}-z,text'
16134      archive_cmds_need_lc=no
16135      hardcode_shlibpath_var=no
16136      runpath_var='LD_RUN_PATH'
16137
16138      if test "$GCC" = yes; then
16139	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141      else
16142	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144      fi
16145      ;;
16146
16147    sysv5* | sco3.2v5* | sco5v6*)
16148      # Note: We can NOT use -z defs as we might desire, because we do not
16149      # link with -lc, and that would cause any symbols used from libc to
16150      # always be unresolved, which means just about no library would
16151      # ever link correctly.  If we're not using GNU ld we use -z text
16152      # though, which does catch some bad symbols but isn't as heavy-handed
16153      # as -z defs.
16154      no_undefined_flag='${wl}-z,text'
16155      allow_undefined_flag='${wl}-z,nodefs'
16156      archive_cmds_need_lc=no
16157      hardcode_shlibpath_var=no
16158      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16159      hardcode_libdir_separator=':'
16160      link_all_deplibs=yes
16161      export_dynamic_flag_spec='${wl}-Bexport'
16162      runpath_var='LD_RUN_PATH'
16163
16164      if test "$GCC" = yes; then
16165	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167      else
16168	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170      fi
16171      ;;
16172
16173    uts4*)
16174      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16175      hardcode_libdir_flag_spec='-L$libdir'
16176      hardcode_shlibpath_var=no
16177      ;;
16178
16179    *)
16180      ld_shlibs=no
16181      ;;
16182    esac
16183
16184    if test x$host_vendor = xsni; then
16185      case $host in
16186      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16187	export_dynamic_flag_spec='${wl}-Blargedynsym'
16188	;;
16189      esac
16190    fi
16191  fi
16192
16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16194$as_echo "$ld_shlibs" >&6; }
16195test "$ld_shlibs" = no && can_build_shared=no
16196
16197with_gnu_ld=$with_gnu_ld
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213#
16214# Do we need to explicitly link libc?
16215#
16216case "x$archive_cmds_need_lc" in
16217x|xyes)
16218  # Assume -lc should be added
16219  archive_cmds_need_lc=yes
16220
16221  if test "$enable_shared" = yes && test "$GCC" = yes; then
16222    case $archive_cmds in
16223    *'~'*)
16224      # FIXME: we may have to deal with multi-command sequences.
16225      ;;
16226    '$CC '*)
16227      # Test whether the compiler implicitly links with -lc since on some
16228      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16229      # to ld, don't add -lc before -lgcc.
16230      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16231$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16232if ${lt_cv_archive_cmds_need_lc+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  $RM conftest*
16236	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16237
16238	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16239  (eval $ac_compile) 2>&5
16240  ac_status=$?
16241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16242  test $ac_status = 0; } 2>conftest.err; then
16243	  soname=conftest
16244	  lib=conftest
16245	  libobjs=conftest.$ac_objext
16246	  deplibs=
16247	  wl=$lt_prog_compiler_wl
16248	  pic_flag=$lt_prog_compiler_pic
16249	  compiler_flags=-v
16250	  linker_flags=-v
16251	  verstring=
16252	  output_objdir=.
16253	  libname=conftest
16254	  lt_save_allow_undefined_flag=$allow_undefined_flag
16255	  allow_undefined_flag=
16256	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16257  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16258  ac_status=$?
16259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16260  test $ac_status = 0; }
16261	  then
16262	    lt_cv_archive_cmds_need_lc=no
16263	  else
16264	    lt_cv_archive_cmds_need_lc=yes
16265	  fi
16266	  allow_undefined_flag=$lt_save_allow_undefined_flag
16267	else
16268	  cat conftest.err 1>&5
16269	fi
16270	$RM conftest*
16271
16272fi
16273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16274$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16275      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16276      ;;
16277    esac
16278  fi
16279  ;;
16280esac
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16434$as_echo_n "checking dynamic linker characteristics... " >&6; }
16435
16436if test "$GCC" = yes; then
16437  case $host_os in
16438    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16439    *) lt_awk_arg="/^libraries:/" ;;
16440  esac
16441  case $host_os in
16442    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16443    *) lt_sed_strip_eq="s,=/,/,g" ;;
16444  esac
16445  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16446  case $lt_search_path_spec in
16447  *\;*)
16448    # if the path contains ";" then we assume it to be the separator
16449    # otherwise default to the standard path separator (i.e. ":") - it is
16450    # assumed that no part of a normal pathname contains ";" but that should
16451    # okay in the real world where ";" in dirpaths is itself problematic.
16452    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16453    ;;
16454  *)
16455    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16456    ;;
16457  esac
16458  # Ok, now we have the path, separated by spaces, we can step through it
16459  # and add multilib dir if necessary.
16460  lt_tmp_lt_search_path_spec=
16461  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16462  for lt_sys_path in $lt_search_path_spec; do
16463    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16464      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16465    else
16466      test -d "$lt_sys_path" && \
16467	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16468    fi
16469  done
16470  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16471BEGIN {RS=" "; FS="/|\n";} {
16472  lt_foo="";
16473  lt_count=0;
16474  for (lt_i = NF; lt_i > 0; lt_i--) {
16475    if ($lt_i != "" && $lt_i != ".") {
16476      if ($lt_i == "..") {
16477        lt_count++;
16478      } else {
16479        if (lt_count == 0) {
16480          lt_foo="/" $lt_i lt_foo;
16481        } else {
16482          lt_count--;
16483        }
16484      }
16485    }
16486  }
16487  if (lt_foo != "") { lt_freq[lt_foo]++; }
16488  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16489}'`
16490  # AWK program above erroneously prepends '/' to C:/dos/paths
16491  # for these hosts.
16492  case $host_os in
16493    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16494      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16495  esac
16496  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16497else
16498  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16499fi
16500library_names_spec=
16501libname_spec='lib$name'
16502soname_spec=
16503shrext_cmds=".so"
16504postinstall_cmds=
16505postuninstall_cmds=
16506finish_cmds=
16507finish_eval=
16508shlibpath_var=
16509shlibpath_overrides_runpath=unknown
16510version_type=none
16511dynamic_linker="$host_os ld.so"
16512sys_lib_dlsearch_path_spec="/lib /usr/lib"
16513need_lib_prefix=unknown
16514hardcode_into_libs=no
16515
16516# when you set need_version to no, make sure it does not cause -set_version
16517# flags to be left without arguments
16518need_version=unknown
16519
16520case $host_os in
16521aix3*)
16522  version_type=linux # correct to gnu/linux during the next big refactor
16523  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16524  shlibpath_var=LIBPATH
16525
16526  # AIX 3 has no versioning support, so we append a major version to the name.
16527  soname_spec='${libname}${release}${shared_ext}$major'
16528  ;;
16529
16530aix[4-9]*)
16531  version_type=linux # correct to gnu/linux during the next big refactor
16532  need_lib_prefix=no
16533  need_version=no
16534  hardcode_into_libs=yes
16535  if test "$host_cpu" = ia64; then
16536    # AIX 5 supports IA64
16537    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16538    shlibpath_var=LD_LIBRARY_PATH
16539  else
16540    # With GCC up to 2.95.x, collect2 would create an import file
16541    # for dependence libraries.  The import file would start with
16542    # the line `#! .'.  This would cause the generated library to
16543    # depend on `.', always an invalid library.  This was fixed in
16544    # development snapshots of GCC prior to 3.0.
16545    case $host_os in
16546      aix4 | aix4.[01] | aix4.[01].*)
16547      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16548	   echo ' yes '
16549	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16550	:
16551      else
16552	can_build_shared=no
16553      fi
16554      ;;
16555    esac
16556    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16557    # soname into executable. Probably we can add versioning support to
16558    # collect2, so additional links can be useful in future.
16559    if test "$aix_use_runtimelinking" = yes; then
16560      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16561      # instead of lib<name>.a to let people know that these are not
16562      # typical AIX shared libraries.
16563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564    else
16565      # We preserve .a as extension for shared libraries through AIX4.2
16566      # and later when we are not doing run time linking.
16567      library_names_spec='${libname}${release}.a $libname.a'
16568      soname_spec='${libname}${release}${shared_ext}$major'
16569    fi
16570    shlibpath_var=LIBPATH
16571  fi
16572  ;;
16573
16574amigaos*)
16575  case $host_cpu in
16576  powerpc)
16577    # Since July 2007 AmigaOS4 officially supports .so libraries.
16578    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16580    ;;
16581  m68k)
16582    library_names_spec='$libname.ixlibrary $libname.a'
16583    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16584    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16585    ;;
16586  esac
16587  ;;
16588
16589beos*)
16590  library_names_spec='${libname}${shared_ext}'
16591  dynamic_linker="$host_os ld.so"
16592  shlibpath_var=LIBRARY_PATH
16593  ;;
16594
16595bsdi[45]*)
16596  version_type=linux # correct to gnu/linux during the next big refactor
16597  need_version=no
16598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599  soname_spec='${libname}${release}${shared_ext}$major'
16600  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16601  shlibpath_var=LD_LIBRARY_PATH
16602  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16603  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16604  # the default ld.so.conf also contains /usr/contrib/lib and
16605  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16606  # libtool to hard-code these into programs
16607  ;;
16608
16609cygwin* | mingw* | pw32* | cegcc*)
16610  version_type=windows
16611  shrext_cmds=".dll"
16612  need_version=no
16613  need_lib_prefix=no
16614
16615  case $GCC,$cc_basename in
16616  yes,*)
16617    # gcc
16618    library_names_spec='$libname.dll.a'
16619    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16620    postinstall_cmds='base_file=`basename \${file}`~
16621      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16622      dldir=$destdir/`dirname \$dlpath`~
16623      test -d \$dldir || mkdir -p \$dldir~
16624      $install_prog $dir/$dlname \$dldir/$dlname~
16625      chmod a+x \$dldir/$dlname~
16626      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16627        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16628      fi'
16629    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16630      dlpath=$dir/\$dldll~
16631       $RM \$dlpath'
16632    shlibpath_overrides_runpath=yes
16633
16634    case $host_os in
16635    cygwin*)
16636      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16637      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16638
16639      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16640      ;;
16641    mingw* | cegcc*)
16642      # MinGW DLLs use traditional 'lib' prefix
16643      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16644      ;;
16645    pw32*)
16646      # pw32 DLLs use 'pw' prefix rather than 'lib'
16647      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16648      ;;
16649    esac
16650    dynamic_linker='Win32 ld.exe'
16651    ;;
16652
16653  *,cl*)
16654    # Native MSVC
16655    libname_spec='$name'
16656    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16657    library_names_spec='${libname}.dll.lib'
16658
16659    case $build_os in
16660    mingw*)
16661      sys_lib_search_path_spec=
16662      lt_save_ifs=$IFS
16663      IFS=';'
16664      for lt_path in $LIB
16665      do
16666        IFS=$lt_save_ifs
16667        # Let DOS variable expansion print the short 8.3 style file name.
16668        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16669        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16670      done
16671      IFS=$lt_save_ifs
16672      # Convert to MSYS style.
16673      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16674      ;;
16675    cygwin*)
16676      # Convert to unix form, then to dos form, then back to unix form
16677      # but this time dos style (no spaces!) so that the unix form looks
16678      # like /cygdrive/c/PROGRA~1:/cygdr...
16679      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16680      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16681      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16682      ;;
16683    *)
16684      sys_lib_search_path_spec="$LIB"
16685      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16686        # It is most probably a Windows format PATH.
16687        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16688      else
16689        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16690      fi
16691      # FIXME: find the short name or the path components, as spaces are
16692      # common. (e.g. "Program Files" -> "PROGRA~1")
16693      ;;
16694    esac
16695
16696    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16697    postinstall_cmds='base_file=`basename \${file}`~
16698      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16699      dldir=$destdir/`dirname \$dlpath`~
16700      test -d \$dldir || mkdir -p \$dldir~
16701      $install_prog $dir/$dlname \$dldir/$dlname'
16702    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16703      dlpath=$dir/\$dldll~
16704       $RM \$dlpath'
16705    shlibpath_overrides_runpath=yes
16706    dynamic_linker='Win32 link.exe'
16707    ;;
16708
16709  *)
16710    # Assume MSVC wrapper
16711    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16712    dynamic_linker='Win32 ld.exe'
16713    ;;
16714  esac
16715  # FIXME: first we should search . and the directory the executable is in
16716  shlibpath_var=PATH
16717  ;;
16718
16719darwin* | rhapsody*)
16720  dynamic_linker="$host_os dyld"
16721  version_type=darwin
16722  need_lib_prefix=no
16723  need_version=no
16724  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16725  soname_spec='${libname}${release}${major}$shared_ext'
16726  shlibpath_overrides_runpath=yes
16727  shlibpath_var=DYLD_LIBRARY_PATH
16728  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16729
16730  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16731  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16732  ;;
16733
16734dgux*)
16735  version_type=linux # correct to gnu/linux during the next big refactor
16736  need_lib_prefix=no
16737  need_version=no
16738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16739  soname_spec='${libname}${release}${shared_ext}$major'
16740  shlibpath_var=LD_LIBRARY_PATH
16741  ;;
16742
16743freebsd* | dragonfly*)
16744  # DragonFly does not have aout.  When/if they implement a new
16745  # versioning mechanism, adjust this.
16746  if test -x /usr/bin/objformat; then
16747    objformat=`/usr/bin/objformat`
16748  else
16749    case $host_os in
16750    freebsd[23].*) objformat=aout ;;
16751    *) objformat=elf ;;
16752    esac
16753  fi
16754  version_type=freebsd-$objformat
16755  case $version_type in
16756    freebsd-elf*)
16757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16758      need_version=no
16759      need_lib_prefix=no
16760      ;;
16761    freebsd-*)
16762      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16763      need_version=yes
16764      ;;
16765  esac
16766  shlibpath_var=LD_LIBRARY_PATH
16767  case $host_os in
16768  freebsd2.*)
16769    shlibpath_overrides_runpath=yes
16770    ;;
16771  freebsd3.[01]* | freebsdelf3.[01]*)
16772    shlibpath_overrides_runpath=yes
16773    hardcode_into_libs=yes
16774    ;;
16775  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16776  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16777    shlibpath_overrides_runpath=no
16778    hardcode_into_libs=yes
16779    ;;
16780  *) # from 4.6 on, and DragonFly
16781    shlibpath_overrides_runpath=yes
16782    hardcode_into_libs=yes
16783    ;;
16784  esac
16785  ;;
16786
16787gnu*)
16788  version_type=linux # correct to gnu/linux during the next big refactor
16789  need_lib_prefix=no
16790  need_version=no
16791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16792  soname_spec='${libname}${release}${shared_ext}$major'
16793  shlibpath_var=LD_LIBRARY_PATH
16794  shlibpath_overrides_runpath=no
16795  hardcode_into_libs=yes
16796  ;;
16797
16798haiku*)
16799  version_type=linux # correct to gnu/linux during the next big refactor
16800  need_lib_prefix=no
16801  need_version=no
16802  dynamic_linker="$host_os runtime_loader"
16803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16804  soname_spec='${libname}${release}${shared_ext}$major'
16805  shlibpath_var=LIBRARY_PATH
16806  shlibpath_overrides_runpath=yes
16807  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16808  hardcode_into_libs=yes
16809  ;;
16810
16811hpux9* | hpux10* | hpux11*)
16812  # Give a soname corresponding to the major version so that dld.sl refuses to
16813  # link against other versions.
16814  version_type=sunos
16815  need_lib_prefix=no
16816  need_version=no
16817  case $host_cpu in
16818  ia64*)
16819    shrext_cmds='.so'
16820    hardcode_into_libs=yes
16821    dynamic_linker="$host_os dld.so"
16822    shlibpath_var=LD_LIBRARY_PATH
16823    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825    soname_spec='${libname}${release}${shared_ext}$major'
16826    if test "X$HPUX_IA64_MODE" = X32; then
16827      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16828    else
16829      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16830    fi
16831    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16832    ;;
16833  hppa*64*)
16834    shrext_cmds='.sl'
16835    hardcode_into_libs=yes
16836    dynamic_linker="$host_os dld.sl"
16837    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16838    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840    soname_spec='${libname}${release}${shared_ext}$major'
16841    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16842    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16843    ;;
16844  *)
16845    shrext_cmds='.sl'
16846    dynamic_linker="$host_os dld.sl"
16847    shlibpath_var=SHLIB_PATH
16848    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850    soname_spec='${libname}${release}${shared_ext}$major'
16851    ;;
16852  esac
16853  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16854  postinstall_cmds='chmod 555 $lib'
16855  # or fails outright, so override atomically:
16856  install_override_mode=555
16857  ;;
16858
16859interix[3-9]*)
16860  version_type=linux # correct to gnu/linux during the next big refactor
16861  need_lib_prefix=no
16862  need_version=no
16863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16864  soname_spec='${libname}${release}${shared_ext}$major'
16865  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16866  shlibpath_var=LD_LIBRARY_PATH
16867  shlibpath_overrides_runpath=no
16868  hardcode_into_libs=yes
16869  ;;
16870
16871irix5* | irix6* | nonstopux*)
16872  case $host_os in
16873    nonstopux*) version_type=nonstopux ;;
16874    *)
16875	if test "$lt_cv_prog_gnu_ld" = yes; then
16876		version_type=linux # correct to gnu/linux during the next big refactor
16877	else
16878		version_type=irix
16879	fi ;;
16880  esac
16881  need_lib_prefix=no
16882  need_version=no
16883  soname_spec='${libname}${release}${shared_ext}$major'
16884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16885  case $host_os in
16886  irix5* | nonstopux*)
16887    libsuff= shlibsuff=
16888    ;;
16889  *)
16890    case $LD in # libtool.m4 will add one of these switches to LD
16891    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16892      libsuff= shlibsuff= libmagic=32-bit;;
16893    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16894      libsuff=32 shlibsuff=N32 libmagic=N32;;
16895    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16896      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16897    *) libsuff= shlibsuff= libmagic=never-match;;
16898    esac
16899    ;;
16900  esac
16901  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16902  shlibpath_overrides_runpath=no
16903  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16904  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16905  hardcode_into_libs=yes
16906  ;;
16907
16908# No shared lib support for Linux oldld, aout, or coff.
16909linux*oldld* | linux*aout* | linux*coff*)
16910  dynamic_linker=no
16911  ;;
16912
16913# This must be glibc/ELF.
16914linux* | k*bsd*-gnu | kopensolaris*-gnu)
16915  version_type=linux # correct to gnu/linux during the next big refactor
16916  need_lib_prefix=no
16917  need_version=no
16918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919  soname_spec='${libname}${release}${shared_ext}$major'
16920  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16921  shlibpath_var=LD_LIBRARY_PATH
16922  shlibpath_overrides_runpath=no
16923
16924  # Some binutils ld are patched to set DT_RUNPATH
16925  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16926  $as_echo_n "(cached) " >&6
16927else
16928  lt_cv_shlibpath_overrides_runpath=no
16929    save_LDFLAGS=$LDFLAGS
16930    save_libdir=$libdir
16931    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16932	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16933    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934/* end confdefs.h.  */
16935
16936int
16937main ()
16938{
16939
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16946  lt_cv_shlibpath_overrides_runpath=yes
16947fi
16948fi
16949rm -f core conftest.err conftest.$ac_objext \
16950    conftest$ac_exeext conftest.$ac_ext
16951    LDFLAGS=$save_LDFLAGS
16952    libdir=$save_libdir
16953
16954fi
16955
16956  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16957
16958  # This implies no fast_install, which is unacceptable.
16959  # Some rework will be needed to allow for fast_install
16960  # before this can be enabled.
16961  hardcode_into_libs=yes
16962
16963  # Add ABI-specific directories to the system library path.
16964  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16965
16966  # Append ld.so.conf contents to the search path
16967  if test -f /etc/ld.so.conf; then
16968    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' ' '`
16969    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16970
16971  fi
16972
16973  # We used to test for /lib/ld.so.1 and disable shared libraries on
16974  # powerpc, because MkLinux only supported shared libraries with the
16975  # GNU dynamic linker.  Since this was broken with cross compilers,
16976  # most powerpc-linux boxes support dynamic linking these days and
16977  # people can always --disable-shared, the test was removed, and we
16978  # assume the GNU/Linux dynamic linker is in use.
16979  dynamic_linker='GNU/Linux ld.so'
16980  ;;
16981
16982netbsd*)
16983  version_type=sunos
16984  need_lib_prefix=no
16985  need_version=no
16986  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16987    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16988    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16989    dynamic_linker='NetBSD (a.out) ld.so'
16990  else
16991    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16992    soname_spec='${libname}${release}${shared_ext}$major'
16993    dynamic_linker='NetBSD ld.elf_so'
16994  fi
16995  shlibpath_var=LD_LIBRARY_PATH
16996  shlibpath_overrides_runpath=yes
16997  hardcode_into_libs=yes
16998  ;;
16999
17000newsos6)
17001  version_type=linux # correct to gnu/linux during the next big refactor
17002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003  shlibpath_var=LD_LIBRARY_PATH
17004  shlibpath_overrides_runpath=yes
17005  ;;
17006
17007*nto* | *qnx*)
17008  version_type=qnx
17009  need_lib_prefix=no
17010  need_version=no
17011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012  soname_spec='${libname}${release}${shared_ext}$major'
17013  shlibpath_var=LD_LIBRARY_PATH
17014  shlibpath_overrides_runpath=no
17015  hardcode_into_libs=yes
17016  dynamic_linker='ldqnx.so'
17017  ;;
17018
17019openbsd*)
17020  version_type=sunos
17021  sys_lib_dlsearch_path_spec="/usr/lib"
17022  need_lib_prefix=no
17023  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17024  case $host_os in
17025    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17026    *)				need_version=no  ;;
17027  esac
17028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17029  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17030  shlibpath_var=LD_LIBRARY_PATH
17031  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17032    case $host_os in
17033      openbsd2.[89] | openbsd2.[89].*)
17034	shlibpath_overrides_runpath=no
17035	;;
17036      *)
17037	shlibpath_overrides_runpath=yes
17038	;;
17039      esac
17040  else
17041    shlibpath_overrides_runpath=yes
17042  fi
17043  ;;
17044
17045os2*)
17046  libname_spec='$name'
17047  shrext_cmds=".dll"
17048  need_lib_prefix=no
17049  library_names_spec='$libname${shared_ext} $libname.a'
17050  dynamic_linker='OS/2 ld.exe'
17051  shlibpath_var=LIBPATH
17052  ;;
17053
17054osf3* | osf4* | osf5*)
17055  version_type=osf
17056  need_lib_prefix=no
17057  need_version=no
17058  soname_spec='${libname}${release}${shared_ext}$major'
17059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060  shlibpath_var=LD_LIBRARY_PATH
17061  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17062  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17063  ;;
17064
17065rdos*)
17066  dynamic_linker=no
17067  ;;
17068
17069solaris*)
17070  version_type=linux # correct to gnu/linux during the next big refactor
17071  need_lib_prefix=no
17072  need_version=no
17073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074  soname_spec='${libname}${release}${shared_ext}$major'
17075  shlibpath_var=LD_LIBRARY_PATH
17076  shlibpath_overrides_runpath=yes
17077  hardcode_into_libs=yes
17078  # ldd complains unless libraries are executable
17079  postinstall_cmds='chmod +x $lib'
17080  ;;
17081
17082sunos4*)
17083  version_type=sunos
17084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17085  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17086  shlibpath_var=LD_LIBRARY_PATH
17087  shlibpath_overrides_runpath=yes
17088  if test "$with_gnu_ld" = yes; then
17089    need_lib_prefix=no
17090  fi
17091  need_version=yes
17092  ;;
17093
17094sysv4 | sysv4.3*)
17095  version_type=linux # correct to gnu/linux during the next big refactor
17096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097  soname_spec='${libname}${release}${shared_ext}$major'
17098  shlibpath_var=LD_LIBRARY_PATH
17099  case $host_vendor in
17100    sni)
17101      shlibpath_overrides_runpath=no
17102      need_lib_prefix=no
17103      runpath_var=LD_RUN_PATH
17104      ;;
17105    siemens)
17106      need_lib_prefix=no
17107      ;;
17108    motorola)
17109      need_lib_prefix=no
17110      need_version=no
17111      shlibpath_overrides_runpath=no
17112      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17113      ;;
17114  esac
17115  ;;
17116
17117sysv4*MP*)
17118  if test -d /usr/nec ;then
17119    version_type=linux # correct to gnu/linux during the next big refactor
17120    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17121    soname_spec='$libname${shared_ext}.$major'
17122    shlibpath_var=LD_LIBRARY_PATH
17123  fi
17124  ;;
17125
17126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17127  version_type=freebsd-elf
17128  need_lib_prefix=no
17129  need_version=no
17130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17131  soname_spec='${libname}${release}${shared_ext}$major'
17132  shlibpath_var=LD_LIBRARY_PATH
17133  shlibpath_overrides_runpath=yes
17134  hardcode_into_libs=yes
17135  if test "$with_gnu_ld" = yes; then
17136    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17137  else
17138    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17139    case $host_os in
17140      sco3.2v5*)
17141        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17142	;;
17143    esac
17144  fi
17145  sys_lib_dlsearch_path_spec='/usr/lib'
17146  ;;
17147
17148tpf*)
17149  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17150  version_type=linux # correct to gnu/linux during the next big refactor
17151  need_lib_prefix=no
17152  need_version=no
17153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154  shlibpath_var=LD_LIBRARY_PATH
17155  shlibpath_overrides_runpath=no
17156  hardcode_into_libs=yes
17157  ;;
17158
17159uts4*)
17160  version_type=linux # correct to gnu/linux during the next big refactor
17161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162  soname_spec='${libname}${release}${shared_ext}$major'
17163  shlibpath_var=LD_LIBRARY_PATH
17164  ;;
17165
17166*)
17167  dynamic_linker=no
17168  ;;
17169esac
17170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17171$as_echo "$dynamic_linker" >&6; }
17172test "$dynamic_linker" = no && can_build_shared=no
17173
17174variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17175if test "$GCC" = yes; then
17176  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17177fi
17178
17179if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17180  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17181fi
17182if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17183  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17184fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17278$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17279hardcode_action=
17280if test -n "$hardcode_libdir_flag_spec" ||
17281   test -n "$runpath_var" ||
17282   test "X$hardcode_automatic" = "Xyes" ; then
17283
17284  # We can hardcode non-existent directories.
17285  if test "$hardcode_direct" != no &&
17286     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17287     # have to relink, otherwise we might link with an installed library
17288     # when we should be linking with a yet-to-be-installed one
17289     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17290     test "$hardcode_minus_L" != no; then
17291    # Linking always hardcodes the temporary library directory.
17292    hardcode_action=relink
17293  else
17294    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17295    hardcode_action=immediate
17296  fi
17297else
17298  # We cannot hardcode anything, or else we can only hardcode existing
17299  # directories.
17300  hardcode_action=unsupported
17301fi
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17303$as_echo "$hardcode_action" >&6; }
17304
17305if test "$hardcode_action" = relink ||
17306   test "$inherit_rpath" = yes; then
17307  # Fast installation is not supported
17308  enable_fast_install=no
17309elif test "$shlibpath_overrides_runpath" = yes ||
17310     test "$enable_shared" = no; then
17311  # Fast installation is not necessary
17312  enable_fast_install=needless
17313fi
17314
17315
17316
17317
17318
17319
17320  if test "x$enable_dlopen" != xyes; then
17321  enable_dlopen=unknown
17322  enable_dlopen_self=unknown
17323  enable_dlopen_self_static=unknown
17324else
17325  lt_cv_dlopen=no
17326  lt_cv_dlopen_libs=
17327
17328  case $host_os in
17329  beos*)
17330    lt_cv_dlopen="load_add_on"
17331    lt_cv_dlopen_libs=
17332    lt_cv_dlopen_self=yes
17333    ;;
17334
17335  mingw* | pw32* | cegcc*)
17336    lt_cv_dlopen="LoadLibrary"
17337    lt_cv_dlopen_libs=
17338    ;;
17339
17340  cygwin*)
17341    lt_cv_dlopen="dlopen"
17342    lt_cv_dlopen_libs=
17343    ;;
17344
17345  darwin*)
17346  # if libdl is installed we need to link against it
17347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17348$as_echo_n "checking for dlopen in -ldl... " >&6; }
17349if ${ac_cv_lib_dl_dlopen+:} false; then :
17350  $as_echo_n "(cached) " >&6
17351else
17352  ac_check_lib_save_LIBS=$LIBS
17353LIBS="-ldl  $LIBS"
17354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h.  */
17356
17357/* Override any GCC internal prototype to avoid an error.
17358   Use char because int might match the return type of a GCC
17359   builtin and then its argument prototype would still apply.  */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char dlopen ();
17364int
17365main ()
17366{
17367return dlopen ();
17368  ;
17369  return 0;
17370}
17371_ACEOF
17372if ac_fn_c_try_link "$LINENO"; then :
17373  ac_cv_lib_dl_dlopen=yes
17374else
17375  ac_cv_lib_dl_dlopen=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext \
17378    conftest$ac_exeext conftest.$ac_ext
17379LIBS=$ac_check_lib_save_LIBS
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17382$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17383if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17384  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17385else
17386
17387    lt_cv_dlopen="dyld"
17388    lt_cv_dlopen_libs=
17389    lt_cv_dlopen_self=yes
17390
17391fi
17392
17393    ;;
17394
17395  *)
17396    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17397if test "x$ac_cv_func_shl_load" = xyes; then :
17398  lt_cv_dlopen="shl_load"
17399else
17400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17401$as_echo_n "checking for shl_load in -ldld... " >&6; }
17402if ${ac_cv_lib_dld_shl_load+:} false; then :
17403  $as_echo_n "(cached) " >&6
17404else
17405  ac_check_lib_save_LIBS=$LIBS
17406LIBS="-ldld  $LIBS"
17407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408/* end confdefs.h.  */
17409
17410/* Override any GCC internal prototype to avoid an error.
17411   Use char because int might match the return type of a GCC
17412   builtin and then its argument prototype would still apply.  */
17413#ifdef __cplusplus
17414extern "C"
17415#endif
17416char shl_load ();
17417int
17418main ()
17419{
17420return shl_load ();
17421  ;
17422  return 0;
17423}
17424_ACEOF
17425if ac_fn_c_try_link "$LINENO"; then :
17426  ac_cv_lib_dld_shl_load=yes
17427else
17428  ac_cv_lib_dld_shl_load=no
17429fi
17430rm -f core conftest.err conftest.$ac_objext \
17431    conftest$ac_exeext conftest.$ac_ext
17432LIBS=$ac_check_lib_save_LIBS
17433fi
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17435$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17436if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17437  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17438else
17439  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17440if test "x$ac_cv_func_dlopen" = xyes; then :
17441  lt_cv_dlopen="dlopen"
17442else
17443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17444$as_echo_n "checking for dlopen in -ldl... " >&6; }
17445if ${ac_cv_lib_dl_dlopen+:} false; then :
17446  $as_echo_n "(cached) " >&6
17447else
17448  ac_check_lib_save_LIBS=$LIBS
17449LIBS="-ldl  $LIBS"
17450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451/* end confdefs.h.  */
17452
17453/* Override any GCC internal prototype to avoid an error.
17454   Use char because int might match the return type of a GCC
17455   builtin and then its argument prototype would still apply.  */
17456#ifdef __cplusplus
17457extern "C"
17458#endif
17459char dlopen ();
17460int
17461main ()
17462{
17463return dlopen ();
17464  ;
17465  return 0;
17466}
17467_ACEOF
17468if ac_fn_c_try_link "$LINENO"; then :
17469  ac_cv_lib_dl_dlopen=yes
17470else
17471  ac_cv_lib_dl_dlopen=no
17472fi
17473rm -f core conftest.err conftest.$ac_objext \
17474    conftest$ac_exeext conftest.$ac_ext
17475LIBS=$ac_check_lib_save_LIBS
17476fi
17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17478$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17479if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17480  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17481else
17482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17483$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17484if ${ac_cv_lib_svld_dlopen+:} false; then :
17485  $as_echo_n "(cached) " >&6
17486else
17487  ac_check_lib_save_LIBS=$LIBS
17488LIBS="-lsvld  $LIBS"
17489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h.  */
17491
17492/* Override any GCC internal prototype to avoid an error.
17493   Use char because int might match the return type of a GCC
17494   builtin and then its argument prototype would still apply.  */
17495#ifdef __cplusplus
17496extern "C"
17497#endif
17498char dlopen ();
17499int
17500main ()
17501{
17502return dlopen ();
17503  ;
17504  return 0;
17505}
17506_ACEOF
17507if ac_fn_c_try_link "$LINENO"; then :
17508  ac_cv_lib_svld_dlopen=yes
17509else
17510  ac_cv_lib_svld_dlopen=no
17511fi
17512rm -f core conftest.err conftest.$ac_objext \
17513    conftest$ac_exeext conftest.$ac_ext
17514LIBS=$ac_check_lib_save_LIBS
17515fi
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17517$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17518if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17519  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17520else
17521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17522$as_echo_n "checking for dld_link in -ldld... " >&6; }
17523if ${ac_cv_lib_dld_dld_link+:} false; then :
17524  $as_echo_n "(cached) " >&6
17525else
17526  ac_check_lib_save_LIBS=$LIBS
17527LIBS="-ldld  $LIBS"
17528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h.  */
17530
17531/* Override any GCC internal prototype to avoid an error.
17532   Use char because int might match the return type of a GCC
17533   builtin and then its argument prototype would still apply.  */
17534#ifdef __cplusplus
17535extern "C"
17536#endif
17537char dld_link ();
17538int
17539main ()
17540{
17541return dld_link ();
17542  ;
17543  return 0;
17544}
17545_ACEOF
17546if ac_fn_c_try_link "$LINENO"; then :
17547  ac_cv_lib_dld_dld_link=yes
17548else
17549  ac_cv_lib_dld_dld_link=no
17550fi
17551rm -f core conftest.err conftest.$ac_objext \
17552    conftest$ac_exeext conftest.$ac_ext
17553LIBS=$ac_check_lib_save_LIBS
17554fi
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17556$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17557if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17558  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17559fi
17560
17561
17562fi
17563
17564
17565fi
17566
17567
17568fi
17569
17570
17571fi
17572
17573
17574fi
17575
17576    ;;
17577  esac
17578
17579  if test "x$lt_cv_dlopen" != xno; then
17580    enable_dlopen=yes
17581  else
17582    enable_dlopen=no
17583  fi
17584
17585  case $lt_cv_dlopen in
17586  dlopen)
17587    save_CPPFLAGS="$CPPFLAGS"
17588    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17589
17590    save_LDFLAGS="$LDFLAGS"
17591    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17592
17593    save_LIBS="$LIBS"
17594    LIBS="$lt_cv_dlopen_libs $LIBS"
17595
17596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17597$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17598if ${lt_cv_dlopen_self+:} false; then :
17599  $as_echo_n "(cached) " >&6
17600else
17601  	  if test "$cross_compiling" = yes; then :
17602  lt_cv_dlopen_self=cross
17603else
17604  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17605  lt_status=$lt_dlunknown
17606  cat > conftest.$ac_ext <<_LT_EOF
17607#line $LINENO "configure"
17608#include "confdefs.h"
17609
17610#if HAVE_DLFCN_H
17611#include <dlfcn.h>
17612#endif
17613
17614#include <stdio.h>
17615
17616#ifdef RTLD_GLOBAL
17617#  define LT_DLGLOBAL		RTLD_GLOBAL
17618#else
17619#  ifdef DL_GLOBAL
17620#    define LT_DLGLOBAL		DL_GLOBAL
17621#  else
17622#    define LT_DLGLOBAL		0
17623#  endif
17624#endif
17625
17626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17627   find out it does not work in some platform. */
17628#ifndef LT_DLLAZY_OR_NOW
17629#  ifdef RTLD_LAZY
17630#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17631#  else
17632#    ifdef DL_LAZY
17633#      define LT_DLLAZY_OR_NOW		DL_LAZY
17634#    else
17635#      ifdef RTLD_NOW
17636#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17637#      else
17638#        ifdef DL_NOW
17639#          define LT_DLLAZY_OR_NOW	DL_NOW
17640#        else
17641#          define LT_DLLAZY_OR_NOW	0
17642#        endif
17643#      endif
17644#    endif
17645#  endif
17646#endif
17647
17648/* When -fvisbility=hidden is used, assume the code has been annotated
17649   correspondingly for the symbols needed.  */
17650#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17651int fnord () __attribute__((visibility("default")));
17652#endif
17653
17654int fnord () { return 42; }
17655int main ()
17656{
17657  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17658  int status = $lt_dlunknown;
17659
17660  if (self)
17661    {
17662      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17663      else
17664        {
17665	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17666          else puts (dlerror ());
17667	}
17668      /* dlclose (self); */
17669    }
17670  else
17671    puts (dlerror ());
17672
17673  return status;
17674}
17675_LT_EOF
17676  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17677  (eval $ac_link) 2>&5
17678  ac_status=$?
17679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17681    (./conftest; exit; ) >&5 2>/dev/null
17682    lt_status=$?
17683    case x$lt_status in
17684      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17685      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17686      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17687    esac
17688  else :
17689    # compilation failed
17690    lt_cv_dlopen_self=no
17691  fi
17692fi
17693rm -fr conftest*
17694
17695
17696fi
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17698$as_echo "$lt_cv_dlopen_self" >&6; }
17699
17700    if test "x$lt_cv_dlopen_self" = xyes; then
17701      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17702      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17703$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17704if ${lt_cv_dlopen_self_static+:} false; then :
17705  $as_echo_n "(cached) " >&6
17706else
17707  	  if test "$cross_compiling" = yes; then :
17708  lt_cv_dlopen_self_static=cross
17709else
17710  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17711  lt_status=$lt_dlunknown
17712  cat > conftest.$ac_ext <<_LT_EOF
17713#line $LINENO "configure"
17714#include "confdefs.h"
17715
17716#if HAVE_DLFCN_H
17717#include <dlfcn.h>
17718#endif
17719
17720#include <stdio.h>
17721
17722#ifdef RTLD_GLOBAL
17723#  define LT_DLGLOBAL		RTLD_GLOBAL
17724#else
17725#  ifdef DL_GLOBAL
17726#    define LT_DLGLOBAL		DL_GLOBAL
17727#  else
17728#    define LT_DLGLOBAL		0
17729#  endif
17730#endif
17731
17732/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17733   find out it does not work in some platform. */
17734#ifndef LT_DLLAZY_OR_NOW
17735#  ifdef RTLD_LAZY
17736#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17737#  else
17738#    ifdef DL_LAZY
17739#      define LT_DLLAZY_OR_NOW		DL_LAZY
17740#    else
17741#      ifdef RTLD_NOW
17742#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17743#      else
17744#        ifdef DL_NOW
17745#          define LT_DLLAZY_OR_NOW	DL_NOW
17746#        else
17747#          define LT_DLLAZY_OR_NOW	0
17748#        endif
17749#      endif
17750#    endif
17751#  endif
17752#endif
17753
17754/* When -fvisbility=hidden is used, assume the code has been annotated
17755   correspondingly for the symbols needed.  */
17756#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17757int fnord () __attribute__((visibility("default")));
17758#endif
17759
17760int fnord () { return 42; }
17761int main ()
17762{
17763  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17764  int status = $lt_dlunknown;
17765
17766  if (self)
17767    {
17768      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17769      else
17770        {
17771	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17772          else puts (dlerror ());
17773	}
17774      /* dlclose (self); */
17775    }
17776  else
17777    puts (dlerror ());
17778
17779  return status;
17780}
17781_LT_EOF
17782  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17783  (eval $ac_link) 2>&5
17784  ac_status=$?
17785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17786  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17787    (./conftest; exit; ) >&5 2>/dev/null
17788    lt_status=$?
17789    case x$lt_status in
17790      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17791      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17792      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17793    esac
17794  else :
17795    # compilation failed
17796    lt_cv_dlopen_self_static=no
17797  fi
17798fi
17799rm -fr conftest*
17800
17801
17802fi
17803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17804$as_echo "$lt_cv_dlopen_self_static" >&6; }
17805    fi
17806
17807    CPPFLAGS="$save_CPPFLAGS"
17808    LDFLAGS="$save_LDFLAGS"
17809    LIBS="$save_LIBS"
17810    ;;
17811  esac
17812
17813  case $lt_cv_dlopen_self in
17814  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17815  *) enable_dlopen_self=unknown ;;
17816  esac
17817
17818  case $lt_cv_dlopen_self_static in
17819  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17820  *) enable_dlopen_self_static=unknown ;;
17821  esac
17822fi
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840striplib=
17841old_striplib=
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17843$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17844if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17845  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17846  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17848$as_echo "yes" >&6; }
17849else
17850# FIXME - insert some real tests, host_os isn't really good enough
17851  case $host_os in
17852  darwin*)
17853    if test -n "$STRIP" ; then
17854      striplib="$STRIP -x"
17855      old_striplib="$STRIP -S"
17856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17857$as_echo "yes" >&6; }
17858    else
17859      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860$as_echo "no" >&6; }
17861    fi
17862    ;;
17863  *)
17864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865$as_echo "no" >&6; }
17866    ;;
17867  esac
17868fi
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881  # Report which library types will actually be built
17882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17883$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17885$as_echo "$can_build_shared" >&6; }
17886
17887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17888$as_echo_n "checking whether to build shared libraries... " >&6; }
17889  test "$can_build_shared" = "no" && enable_shared=no
17890
17891  # On AIX, shared libraries and static libraries use the same namespace, and
17892  # are all built from PIC.
17893  case $host_os in
17894  aix3*)
17895    test "$enable_shared" = yes && enable_static=no
17896    if test -n "$RANLIB"; then
17897      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17898      postinstall_cmds='$RANLIB $lib'
17899    fi
17900    ;;
17901
17902  aix[4-9]*)
17903    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17904      test "$enable_shared" = yes && enable_static=no
17905    fi
17906    ;;
17907  esac
17908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17909$as_echo "$enable_shared" >&6; }
17910
17911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17912$as_echo_n "checking whether to build static libraries... " >&6; }
17913  # Make sure either enable_shared or enable_static is yes.
17914  test "$enable_shared" = yes || enable_static=yes
17915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17916$as_echo "$enable_static" >&6; }
17917
17918
17919
17920
17921fi
17922ac_ext=c
17923ac_cpp='$CPP $CPPFLAGS'
17924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927
17928CC="$lt_save_CC"
17929
17930      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17931    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17932    (test "X$CXX" != "Xg++"))) ; then
17933  ac_ext=cpp
17934ac_cpp='$CXXCPP $CPPFLAGS'
17935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17939$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17940if test -z "$CXXCPP"; then
17941  if ${ac_cv_prog_CXXCPP+:} false; then :
17942  $as_echo_n "(cached) " >&6
17943else
17944      # Double quotes because CXXCPP needs to be expanded
17945    for CXXCPP in "$CXX -E" "/lib/cpp"
17946    do
17947      ac_preproc_ok=false
17948for ac_cxx_preproc_warn_flag in '' yes
17949do
17950  # Use a header file that comes with gcc, so configuring glibc
17951  # with a fresh cross-compiler works.
17952  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17953  # <limits.h> exists even on freestanding compilers.
17954  # On the NeXT, cc -E runs the code through the compiler's parser,
17955  # not just through cpp. "Syntax error" is here to catch this case.
17956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957/* end confdefs.h.  */
17958#ifdef __STDC__
17959# include <limits.h>
17960#else
17961# include <assert.h>
17962#endif
17963		     Syntax error
17964_ACEOF
17965if ac_fn_cxx_try_cpp "$LINENO"; then :
17966
17967else
17968  # Broken: fails on valid input.
17969continue
17970fi
17971rm -f conftest.err conftest.i conftest.$ac_ext
17972
17973  # OK, works on sane cases.  Now check whether nonexistent headers
17974  # can be detected and how.
17975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976/* end confdefs.h.  */
17977#include <ac_nonexistent.h>
17978_ACEOF
17979if ac_fn_cxx_try_cpp "$LINENO"; then :
17980  # Broken: success on invalid input.
17981continue
17982else
17983  # Passes both tests.
17984ac_preproc_ok=:
17985break
17986fi
17987rm -f conftest.err conftest.i conftest.$ac_ext
17988
17989done
17990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17991rm -f conftest.i conftest.err conftest.$ac_ext
17992if $ac_preproc_ok; then :
17993  break
17994fi
17995
17996    done
17997    ac_cv_prog_CXXCPP=$CXXCPP
17998
17999fi
18000  CXXCPP=$ac_cv_prog_CXXCPP
18001else
18002  ac_cv_prog_CXXCPP=$CXXCPP
18003fi
18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18005$as_echo "$CXXCPP" >&6; }
18006ac_preproc_ok=false
18007for ac_cxx_preproc_warn_flag in '' yes
18008do
18009  # Use a header file that comes with gcc, so configuring glibc
18010  # with a fresh cross-compiler works.
18011  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012  # <limits.h> exists even on freestanding compilers.
18013  # On the NeXT, cc -E runs the code through the compiler's parser,
18014  # not just through cpp. "Syntax error" is here to catch this case.
18015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016/* end confdefs.h.  */
18017#ifdef __STDC__
18018# include <limits.h>
18019#else
18020# include <assert.h>
18021#endif
18022		     Syntax error
18023_ACEOF
18024if ac_fn_cxx_try_cpp "$LINENO"; then :
18025
18026else
18027  # Broken: fails on valid input.
18028continue
18029fi
18030rm -f conftest.err conftest.i conftest.$ac_ext
18031
18032  # OK, works on sane cases.  Now check whether nonexistent headers
18033  # can be detected and how.
18034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035/* end confdefs.h.  */
18036#include <ac_nonexistent.h>
18037_ACEOF
18038if ac_fn_cxx_try_cpp "$LINENO"; then :
18039  # Broken: success on invalid input.
18040continue
18041else
18042  # Passes both tests.
18043ac_preproc_ok=:
18044break
18045fi
18046rm -f conftest.err conftest.i conftest.$ac_ext
18047
18048done
18049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18050rm -f conftest.i conftest.err conftest.$ac_ext
18051if $ac_preproc_ok; then :
18052
18053else
18054  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18056as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18057See \`config.log' for more details" "$LINENO" 5; }
18058fi
18059
18060ac_ext=c
18061ac_cpp='$CPP $CPPFLAGS'
18062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064ac_compiler_gnu=$ac_cv_c_compiler_gnu
18065
18066else
18067  _lt_caught_CXX_error=yes
18068fi
18069
18070ac_ext=cpp
18071ac_cpp='$CXXCPP $CPPFLAGS'
18072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18075
18076archive_cmds_need_lc_CXX=no
18077allow_undefined_flag_CXX=
18078always_export_symbols_CXX=no
18079archive_expsym_cmds_CXX=
18080compiler_needs_object_CXX=no
18081export_dynamic_flag_spec_CXX=
18082hardcode_direct_CXX=no
18083hardcode_direct_absolute_CXX=no
18084hardcode_libdir_flag_spec_CXX=
18085hardcode_libdir_separator_CXX=
18086hardcode_minus_L_CXX=no
18087hardcode_shlibpath_var_CXX=unsupported
18088hardcode_automatic_CXX=no
18089inherit_rpath_CXX=no
18090module_cmds_CXX=
18091module_expsym_cmds_CXX=
18092link_all_deplibs_CXX=unknown
18093old_archive_cmds_CXX=$old_archive_cmds
18094reload_flag_CXX=$reload_flag
18095reload_cmds_CXX=$reload_cmds
18096no_undefined_flag_CXX=
18097whole_archive_flag_spec_CXX=
18098enable_shared_with_static_runtimes_CXX=no
18099
18100# Source file extension for C++ test sources.
18101ac_ext=cpp
18102
18103# Object file extension for compiled C++ test sources.
18104objext=o
18105objext_CXX=$objext
18106
18107# No sense in running all these tests if we already determined that
18108# the CXX compiler isn't working.  Some variables (like enable_shared)
18109# are currently assumed to apply to all compilers on this platform,
18110# and will be corrupted by setting them based on a non-working compiler.
18111if test "$_lt_caught_CXX_error" != yes; then
18112  # Code to be used in simple compile tests
18113  lt_simple_compile_test_code="int some_variable = 0;"
18114
18115  # Code to be used in simple link tests
18116  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18117
18118  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18119
18120
18121
18122
18123
18124
18125# If no C compiler was specified, use CC.
18126LTCC=${LTCC-"$CC"}
18127
18128# If no C compiler flags were specified, use CFLAGS.
18129LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18130
18131# Allow CC to be a program name with arguments.
18132compiler=$CC
18133
18134
18135  # save warnings/boilerplate of simple test code
18136  ac_outfile=conftest.$ac_objext
18137echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18139_lt_compiler_boilerplate=`cat conftest.err`
18140$RM conftest*
18141
18142  ac_outfile=conftest.$ac_objext
18143echo "$lt_simple_link_test_code" >conftest.$ac_ext
18144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18145_lt_linker_boilerplate=`cat conftest.err`
18146$RM -r conftest*
18147
18148
18149  # Allow CC to be a program name with arguments.
18150  lt_save_CC=$CC
18151  lt_save_CFLAGS=$CFLAGS
18152  lt_save_LD=$LD
18153  lt_save_GCC=$GCC
18154  GCC=$GXX
18155  lt_save_with_gnu_ld=$with_gnu_ld
18156  lt_save_path_LD=$lt_cv_path_LD
18157  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18158    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18159  else
18160    $as_unset lt_cv_prog_gnu_ld
18161  fi
18162  if test -n "${lt_cv_path_LDCXX+set}"; then
18163    lt_cv_path_LD=$lt_cv_path_LDCXX
18164  else
18165    $as_unset lt_cv_path_LD
18166  fi
18167  test -z "${LDCXX+set}" || LD=$LDCXX
18168  CC=${CXX-"c++"}
18169  CFLAGS=$CXXFLAGS
18170  compiler=$CC
18171  compiler_CXX=$CC
18172  for cc_temp in $compiler""; do
18173  case $cc_temp in
18174    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18175    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18176    \-*) ;;
18177    *) break;;
18178  esac
18179done
18180cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18181
18182
18183  if test -n "$compiler"; then
18184    # We don't want -fno-exception when compiling C++ code, so set the
18185    # no_builtin_flag separately
18186    if test "$GXX" = yes; then
18187      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18188    else
18189      lt_prog_compiler_no_builtin_flag_CXX=
18190    fi
18191
18192    if test "$GXX" = yes; then
18193      # Set up default GNU C++ configuration
18194
18195
18196
18197# Check whether --with-gnu-ld was given.
18198if test "${with_gnu_ld+set}" = set; then :
18199  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18200else
18201  with_gnu_ld=no
18202fi
18203
18204ac_prog=ld
18205if test "$GCC" = yes; then
18206  # Check if gcc -print-prog-name=ld gives a path.
18207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18208$as_echo_n "checking for ld used by $CC... " >&6; }
18209  case $host in
18210  *-*-mingw*)
18211    # gcc leaves a trailing carriage return which upsets mingw
18212    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18213  *)
18214    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18215  esac
18216  case $ac_prog in
18217    # Accept absolute paths.
18218    [\\/]* | ?:[\\/]*)
18219      re_direlt='/[^/][^/]*/\.\./'
18220      # Canonicalize the pathname of ld
18221      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18222      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18223	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18224      done
18225      test -z "$LD" && LD="$ac_prog"
18226      ;;
18227  "")
18228    # If it fails, then pretend we aren't using GCC.
18229    ac_prog=ld
18230    ;;
18231  *)
18232    # If it is relative, then search for the first ld in PATH.
18233    with_gnu_ld=unknown
18234    ;;
18235  esac
18236elif test "$with_gnu_ld" = yes; then
18237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18238$as_echo_n "checking for GNU ld... " >&6; }
18239else
18240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18241$as_echo_n "checking for non-GNU ld... " >&6; }
18242fi
18243if ${lt_cv_path_LD+:} false; then :
18244  $as_echo_n "(cached) " >&6
18245else
18246  if test -z "$LD"; then
18247  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18248  for ac_dir in $PATH; do
18249    IFS="$lt_save_ifs"
18250    test -z "$ac_dir" && ac_dir=.
18251    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18252      lt_cv_path_LD="$ac_dir/$ac_prog"
18253      # Check to see if the program is GNU ld.  I'd rather use --version,
18254      # but apparently some variants of GNU ld only accept -v.
18255      # Break only if it was the GNU/non-GNU ld that we prefer.
18256      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18257      *GNU* | *'with BFD'*)
18258	test "$with_gnu_ld" != no && break
18259	;;
18260      *)
18261	test "$with_gnu_ld" != yes && break
18262	;;
18263      esac
18264    fi
18265  done
18266  IFS="$lt_save_ifs"
18267else
18268  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18269fi
18270fi
18271
18272LD="$lt_cv_path_LD"
18273if test -n "$LD"; then
18274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18275$as_echo "$LD" >&6; }
18276else
18277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278$as_echo "no" >&6; }
18279fi
18280test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18282$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18283if ${lt_cv_prog_gnu_ld+:} false; then :
18284  $as_echo_n "(cached) " >&6
18285else
18286  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18287case `$LD -v 2>&1 </dev/null` in
18288*GNU* | *'with BFD'*)
18289  lt_cv_prog_gnu_ld=yes
18290  ;;
18291*)
18292  lt_cv_prog_gnu_ld=no
18293  ;;
18294esac
18295fi
18296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18297$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18298with_gnu_ld=$lt_cv_prog_gnu_ld
18299
18300
18301
18302
18303
18304
18305
18306      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18307      # archiving commands below assume that GNU ld is being used.
18308      if test "$with_gnu_ld" = yes; then
18309        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18310        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'
18311
18312        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18313        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18314
18315        # If archive_cmds runs LD, not CC, wlarc should be empty
18316        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18317        #     investigate it a little bit more. (MM)
18318        wlarc='${wl}'
18319
18320        # ancient GNU ld didn't support --whole-archive et. al.
18321        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18322	  $GREP 'no-whole-archive' > /dev/null; then
18323          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18324        else
18325          whole_archive_flag_spec_CXX=
18326        fi
18327      else
18328        with_gnu_ld=no
18329        wlarc=
18330
18331        # A generic and very simple default shared library creation
18332        # command for GNU C++ for the case where it uses the native
18333        # linker, instead of GNU ld.  If possible, this setting should
18334        # overridden to take advantage of the native linker features on
18335        # the platform it is being used on.
18336        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18337      fi
18338
18339      # Commands to make compiler produce verbose output that lists
18340      # what "hidden" libraries, object files and flags are used when
18341      # linking a shared library.
18342      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18343
18344    else
18345      GXX=no
18346      with_gnu_ld=no
18347      wlarc=
18348    fi
18349
18350    # PORTME: fill in a description of your system's C++ link characteristics
18351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18352$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18353    ld_shlibs_CXX=yes
18354    case $host_os in
18355      aix3*)
18356        # FIXME: insert proper C++ library support
18357        ld_shlibs_CXX=no
18358        ;;
18359      aix[4-9]*)
18360        if test "$host_cpu" = ia64; then
18361          # On IA64, the linker does run time linking by default, so we don't
18362          # have to do anything special.
18363          aix_use_runtimelinking=no
18364          exp_sym_flag='-Bexport'
18365          no_entry_flag=""
18366        else
18367          aix_use_runtimelinking=no
18368
18369          # Test if we are trying to use run time linking or normal
18370          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18371          # need to do runtime linking.
18372          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18373	    for ld_flag in $LDFLAGS; do
18374	      case $ld_flag in
18375	      *-brtl*)
18376	        aix_use_runtimelinking=yes
18377	        break
18378	        ;;
18379	      esac
18380	    done
18381	    ;;
18382          esac
18383
18384          exp_sym_flag='-bexport'
18385          no_entry_flag='-bnoentry'
18386        fi
18387
18388        # When large executables or shared objects are built, AIX ld can
18389        # have problems creating the table of contents.  If linking a library
18390        # or program results in "error TOC overflow" add -mminimal-toc to
18391        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18392        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18393
18394        archive_cmds_CXX=''
18395        hardcode_direct_CXX=yes
18396        hardcode_direct_absolute_CXX=yes
18397        hardcode_libdir_separator_CXX=':'
18398        link_all_deplibs_CXX=yes
18399        file_list_spec_CXX='${wl}-f,'
18400
18401        if test "$GXX" = yes; then
18402          case $host_os in aix4.[012]|aix4.[012].*)
18403          # We only want to do this on AIX 4.2 and lower, the check
18404          # below for broken collect2 doesn't work under 4.3+
18405	  collect2name=`${CC} -print-prog-name=collect2`
18406	  if test -f "$collect2name" &&
18407	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18408	  then
18409	    # We have reworked collect2
18410	    :
18411	  else
18412	    # We have old collect2
18413	    hardcode_direct_CXX=unsupported
18414	    # It fails to find uninstalled libraries when the uninstalled
18415	    # path is not listed in the libpath.  Setting hardcode_minus_L
18416	    # to unsupported forces relinking
18417	    hardcode_minus_L_CXX=yes
18418	    hardcode_libdir_flag_spec_CXX='-L$libdir'
18419	    hardcode_libdir_separator_CXX=
18420	  fi
18421          esac
18422          shared_flag='-shared'
18423	  if test "$aix_use_runtimelinking" = yes; then
18424	    shared_flag="$shared_flag "'${wl}-G'
18425	  fi
18426        else
18427          # not using gcc
18428          if test "$host_cpu" = ia64; then
18429	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18430	  # chokes on -Wl,-G. The following line is correct:
18431	  shared_flag='-G'
18432          else
18433	    if test "$aix_use_runtimelinking" = yes; then
18434	      shared_flag='${wl}-G'
18435	    else
18436	      shared_flag='${wl}-bM:SRE'
18437	    fi
18438          fi
18439        fi
18440
18441        export_dynamic_flag_spec_CXX='${wl}-bexpall'
18442        # It seems that -bexpall does not export symbols beginning with
18443        # underscore (_), so it is better to generate a list of symbols to
18444	# export.
18445        always_export_symbols_CXX=yes
18446        if test "$aix_use_runtimelinking" = yes; then
18447          # Warning - without using the other runtime loading flags (-brtl),
18448          # -berok will link without error, but may produce a broken library.
18449          allow_undefined_flag_CXX='-berok'
18450          # Determine the default libpath from the value encoded in an empty
18451          # executable.
18452          if test "${lt_cv_aix_libpath+set}" = set; then
18453  aix_libpath=$lt_cv_aix_libpath
18454else
18455  if ${lt_cv_aix_libpath__CXX+:} false; then :
18456  $as_echo_n "(cached) " >&6
18457else
18458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459/* end confdefs.h.  */
18460
18461int
18462main ()
18463{
18464
18465  ;
18466  return 0;
18467}
18468_ACEOF
18469if ac_fn_cxx_try_link "$LINENO"; then :
18470
18471  lt_aix_libpath_sed='
18472      /Import File Strings/,/^$/ {
18473	  /^0/ {
18474	      s/^0  *\([^ ]*\) *$/\1/
18475	      p
18476	  }
18477      }'
18478  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18479  # Check for a 64-bit object if we didn't find anything.
18480  if test -z "$lt_cv_aix_libpath__CXX"; then
18481    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18482  fi
18483fi
18484rm -f core conftest.err conftest.$ac_objext \
18485    conftest$ac_exeext conftest.$ac_ext
18486  if test -z "$lt_cv_aix_libpath__CXX"; then
18487    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18488  fi
18489
18490fi
18491
18492  aix_libpath=$lt_cv_aix_libpath__CXX
18493fi
18494
18495          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18496
18497          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18498        else
18499          if test "$host_cpu" = ia64; then
18500	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18501	    allow_undefined_flag_CXX="-z nodefs"
18502	    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"
18503          else
18504	    # Determine the default libpath from the value encoded in an
18505	    # empty executable.
18506	    if test "${lt_cv_aix_libpath+set}" = set; then
18507  aix_libpath=$lt_cv_aix_libpath
18508else
18509  if ${lt_cv_aix_libpath__CXX+:} false; then :
18510  $as_echo_n "(cached) " >&6
18511else
18512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513/* end confdefs.h.  */
18514
18515int
18516main ()
18517{
18518
18519  ;
18520  return 0;
18521}
18522_ACEOF
18523if ac_fn_cxx_try_link "$LINENO"; then :
18524
18525  lt_aix_libpath_sed='
18526      /Import File Strings/,/^$/ {
18527	  /^0/ {
18528	      s/^0  *\([^ ]*\) *$/\1/
18529	      p
18530	  }
18531      }'
18532  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18533  # Check for a 64-bit object if we didn't find anything.
18534  if test -z "$lt_cv_aix_libpath__CXX"; then
18535    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18536  fi
18537fi
18538rm -f core conftest.err conftest.$ac_objext \
18539    conftest$ac_exeext conftest.$ac_ext
18540  if test -z "$lt_cv_aix_libpath__CXX"; then
18541    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18542  fi
18543
18544fi
18545
18546  aix_libpath=$lt_cv_aix_libpath__CXX
18547fi
18548
18549	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18550	    # Warning - without using the other run time loading flags,
18551	    # -berok will link without error, but may produce a broken library.
18552	    no_undefined_flag_CXX=' ${wl}-bernotok'
18553	    allow_undefined_flag_CXX=' ${wl}-berok'
18554	    if test "$with_gnu_ld" = yes; then
18555	      # We only use this code for GNU lds that support --whole-archive.
18556	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18557	    else
18558	      # Exported symbols can be pulled into shared objects from archives
18559	      whole_archive_flag_spec_CXX='$convenience'
18560	    fi
18561	    archive_cmds_need_lc_CXX=yes
18562	    # This is similar to how AIX traditionally builds its shared
18563	    # libraries.
18564	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18565          fi
18566        fi
18567        ;;
18568
18569      beos*)
18570	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18571	  allow_undefined_flag_CXX=unsupported
18572	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18573	  # support --undefined.  This deserves some investigation.  FIXME
18574	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18575	else
18576	  ld_shlibs_CXX=no
18577	fi
18578	;;
18579
18580      chorus*)
18581        case $cc_basename in
18582          *)
18583	  # FIXME: insert proper C++ library support
18584	  ld_shlibs_CXX=no
18585	  ;;
18586        esac
18587        ;;
18588
18589      cygwin* | mingw* | pw32* | cegcc*)
18590	case $GXX,$cc_basename in
18591	,cl* | no,cl*)
18592	  # Native MSVC
18593	  # hardcode_libdir_flag_spec is actually meaningless, as there is
18594	  # no search path for DLLs.
18595	  hardcode_libdir_flag_spec_CXX=' '
18596	  allow_undefined_flag_CXX=unsupported
18597	  always_export_symbols_CXX=yes
18598	  file_list_spec_CXX='@'
18599	  # Tell ltmain to make .lib files, not .a files.
18600	  libext=lib
18601	  # Tell ltmain to make .dll files, not .so files.
18602	  shrext_cmds=".dll"
18603	  # FIXME: Setting linknames here is a bad hack.
18604	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18605	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18606	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18607	    else
18608	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18609	    fi~
18610	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18611	    linknames='
18612	  # The linker will not automatically build a static lib if we build a DLL.
18613	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18614	  enable_shared_with_static_runtimes_CXX=yes
18615	  # Don't use ranlib
18616	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
18617	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18618	    lt_tool_outputfile="@TOOL_OUTPUT@"~
18619	    case $lt_outputfile in
18620	      *.exe|*.EXE) ;;
18621	      *)
18622		lt_outputfile="$lt_outputfile.exe"
18623		lt_tool_outputfile="$lt_tool_outputfile.exe"
18624		;;
18625	    esac~
18626	    func_to_tool_file "$lt_outputfile"~
18627	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18628	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18629	      $RM "$lt_outputfile.manifest";
18630	    fi'
18631	  ;;
18632	*)
18633	  # g++
18634	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18635	  # as there is no search path for DLLs.
18636	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18637	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18638	  allow_undefined_flag_CXX=unsupported
18639	  always_export_symbols_CXX=no
18640	  enable_shared_with_static_runtimes_CXX=yes
18641
18642	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18643	    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'
18644	    # If the export-symbols file already is a .def file (1st line
18645	    # is EXPORTS), use it as is; otherwise, prepend...
18646	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18647	      cp $export_symbols $output_objdir/$soname.def;
18648	    else
18649	      echo EXPORTS > $output_objdir/$soname.def;
18650	      cat $export_symbols >> $output_objdir/$soname.def;
18651	    fi~
18652	    $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'
18653	  else
18654	    ld_shlibs_CXX=no
18655	  fi
18656	  ;;
18657	esac
18658	;;
18659      darwin* | rhapsody*)
18660
18661
18662  archive_cmds_need_lc_CXX=no
18663  hardcode_direct_CXX=no
18664  hardcode_automatic_CXX=yes
18665  hardcode_shlibpath_var_CXX=unsupported
18666  if test "$lt_cv_ld_force_load" = "yes"; then
18667    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\"`'
18668
18669  else
18670    whole_archive_flag_spec_CXX=''
18671  fi
18672  link_all_deplibs_CXX=yes
18673  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18674  case $cc_basename in
18675     ifort*) _lt_dar_can_shared=yes ;;
18676     *) _lt_dar_can_shared=$GCC ;;
18677  esac
18678  if test "$_lt_dar_can_shared" = "yes"; then
18679    output_verbose_link_cmd=func_echo_all
18680    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}"
18681    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18682    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}"
18683    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}"
18684       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18685      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}"
18686      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}"
18687    fi
18688
18689  else
18690  ld_shlibs_CXX=no
18691  fi
18692
18693	;;
18694
18695      dgux*)
18696        case $cc_basename in
18697          ec++*)
18698	    # FIXME: insert proper C++ library support
18699	    ld_shlibs_CXX=no
18700	    ;;
18701          ghcx*)
18702	    # Green Hills C++ Compiler
18703	    # FIXME: insert proper C++ library support
18704	    ld_shlibs_CXX=no
18705	    ;;
18706          *)
18707	    # FIXME: insert proper C++ library support
18708	    ld_shlibs_CXX=no
18709	    ;;
18710        esac
18711        ;;
18712
18713      freebsd2.*)
18714        # C++ shared libraries reported to be fairly broken before
18715	# switch to ELF
18716        ld_shlibs_CXX=no
18717        ;;
18718
18719      freebsd-elf*)
18720        archive_cmds_need_lc_CXX=no
18721        ;;
18722
18723      freebsd* | dragonfly*)
18724        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18725        # conventions
18726        ld_shlibs_CXX=yes
18727        ;;
18728
18729      gnu*)
18730        ;;
18731
18732      haiku*)
18733        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734        link_all_deplibs_CXX=yes
18735        ;;
18736
18737      hpux9*)
18738        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18739        hardcode_libdir_separator_CXX=:
18740        export_dynamic_flag_spec_CXX='${wl}-E'
18741        hardcode_direct_CXX=yes
18742        hardcode_minus_L_CXX=yes # Not in the search PATH,
18743				             # but as the default
18744				             # location of the library.
18745
18746        case $cc_basename in
18747          CC*)
18748            # FIXME: insert proper C++ library support
18749            ld_shlibs_CXX=no
18750            ;;
18751          aCC*)
18752            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18753            # Commands to make compiler produce verbose output that lists
18754            # what "hidden" libraries, object files and flags are used when
18755            # linking a shared library.
18756            #
18757            # There doesn't appear to be a way to prevent this compiler from
18758            # explicitly linking system object files so we need to strip them
18759            # from the output so that they don't get included in the library
18760            # dependencies.
18761            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"'
18762            ;;
18763          *)
18764            if test "$GXX" = yes; then
18765              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18766            else
18767              # FIXME: insert proper C++ library support
18768              ld_shlibs_CXX=no
18769            fi
18770            ;;
18771        esac
18772        ;;
18773
18774      hpux10*|hpux11*)
18775        if test $with_gnu_ld = no; then
18776	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18777	  hardcode_libdir_separator_CXX=:
18778
18779          case $host_cpu in
18780            hppa*64*|ia64*)
18781              ;;
18782            *)
18783	      export_dynamic_flag_spec_CXX='${wl}-E'
18784              ;;
18785          esac
18786        fi
18787        case $host_cpu in
18788          hppa*64*|ia64*)
18789            hardcode_direct_CXX=no
18790            hardcode_shlibpath_var_CXX=no
18791            ;;
18792          *)
18793            hardcode_direct_CXX=yes
18794            hardcode_direct_absolute_CXX=yes
18795            hardcode_minus_L_CXX=yes # Not in the search PATH,
18796					         # but as the default
18797					         # location of the library.
18798            ;;
18799        esac
18800
18801        case $cc_basename in
18802          CC*)
18803	    # FIXME: insert proper C++ library support
18804	    ld_shlibs_CXX=no
18805	    ;;
18806          aCC*)
18807	    case $host_cpu in
18808	      hppa*64*)
18809	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18810	        ;;
18811	      ia64*)
18812	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18813	        ;;
18814	      *)
18815	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816	        ;;
18817	    esac
18818	    # Commands to make compiler produce verbose output that lists
18819	    # what "hidden" libraries, object files and flags are used when
18820	    # linking a shared library.
18821	    #
18822	    # There doesn't appear to be a way to prevent this compiler from
18823	    # explicitly linking system object files so we need to strip them
18824	    # from the output so that they don't get included in the library
18825	    # dependencies.
18826	    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"'
18827	    ;;
18828          *)
18829	    if test "$GXX" = yes; then
18830	      if test $with_gnu_ld = no; then
18831	        case $host_cpu in
18832	          hppa*64*)
18833	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18834	            ;;
18835	          ia64*)
18836	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18837	            ;;
18838	          *)
18839	            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'
18840	            ;;
18841	        esac
18842	      fi
18843	    else
18844	      # FIXME: insert proper C++ library support
18845	      ld_shlibs_CXX=no
18846	    fi
18847	    ;;
18848        esac
18849        ;;
18850
18851      interix[3-9]*)
18852	hardcode_direct_CXX=no
18853	hardcode_shlibpath_var_CXX=no
18854	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18855	export_dynamic_flag_spec_CXX='${wl}-E'
18856	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18857	# Instead, shared libraries are loaded at an image base (0x10000000 by
18858	# default) and relocated if they conflict, which is a slow very memory
18859	# consuming and fragmenting process.  To avoid this, we pick a random,
18860	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18861	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18862	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'
18863	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'
18864	;;
18865      irix5* | irix6*)
18866        case $cc_basename in
18867          CC*)
18868	    # SGI C++
18869	    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'
18870
18871	    # Archives containing C++ object files must be created using
18872	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18873	    # necessary to make sure instantiated templates are included
18874	    # in the archive.
18875	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18876	    ;;
18877          *)
18878	    if test "$GXX" = yes; then
18879	      if test "$with_gnu_ld" = no; then
18880	        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'
18881	      else
18882	        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'
18883	      fi
18884	    fi
18885	    link_all_deplibs_CXX=yes
18886	    ;;
18887        esac
18888        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18889        hardcode_libdir_separator_CXX=:
18890        inherit_rpath_CXX=yes
18891        ;;
18892
18893      linux* | k*bsd*-gnu | kopensolaris*-gnu)
18894        case $cc_basename in
18895          KCC*)
18896	    # Kuck and Associates, Inc. (KAI) C++ Compiler
18897
18898	    # KCC will only create a shared library if the output file
18899	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
18900	    # to its proper name (with version) after linking.
18901	    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'
18902	    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'
18903	    # Commands to make compiler produce verbose output that lists
18904	    # what "hidden" libraries, object files and flags are used when
18905	    # linking a shared library.
18906	    #
18907	    # There doesn't appear to be a way to prevent this compiler from
18908	    # explicitly linking system object files so we need to strip them
18909	    # from the output so that they don't get included in the library
18910	    # dependencies.
18911	    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"'
18912
18913	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18914	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18915
18916	    # Archives containing C++ object files must be created using
18917	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18918	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18919	    ;;
18920	  icpc* | ecpc* )
18921	    # Intel C++
18922	    with_gnu_ld=yes
18923	    # version 8.0 and above of icpc choke on multiply defined symbols
18924	    # if we add $predep_objects and $postdep_objects, however 7.1 and
18925	    # earlier do not add the objects themselves.
18926	    case `$CC -V 2>&1` in
18927	      *"Version 7."*)
18928	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18929		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'
18930		;;
18931	      *)  # Version 8.0 or newer
18932	        tmp_idyn=
18933	        case $host_cpu in
18934		  ia64*) tmp_idyn=' -i_dynamic';;
18935		esac
18936	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18937		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'
18938		;;
18939	    esac
18940	    archive_cmds_need_lc_CXX=no
18941	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18942	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18943	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18944	    ;;
18945          pgCC* | pgcpp*)
18946            # Portland Group C++ compiler
18947	    case `$CC -V` in
18948	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18949	      prelink_cmds_CXX='tpldir=Template.dir~
18950		rm -rf $tpldir~
18951		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18952		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18953	      old_archive_cmds_CXX='tpldir=Template.dir~
18954		rm -rf $tpldir~
18955		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18956		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18957		$RANLIB $oldlib'
18958	      archive_cmds_CXX='tpldir=Template.dir~
18959		rm -rf $tpldir~
18960		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18961		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18962	      archive_expsym_cmds_CXX='tpldir=Template.dir~
18963		rm -rf $tpldir~
18964		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18965		$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'
18966	      ;;
18967	    *) # Version 6 and above use weak symbols
18968	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18969	      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'
18970	      ;;
18971	    esac
18972
18973	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18974	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18975	    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'
18976            ;;
18977	  cxx*)
18978	    # Compaq C++
18979	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18980	    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'
18981
18982	    runpath_var=LD_RUN_PATH
18983	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18984	    hardcode_libdir_separator_CXX=:
18985
18986	    # Commands to make compiler produce verbose output that lists
18987	    # what "hidden" libraries, object files and flags are used when
18988	    # linking a shared library.
18989	    #
18990	    # There doesn't appear to be a way to prevent this compiler from
18991	    # explicitly linking system object files so we need to strip them
18992	    # from the output so that they don't get included in the library
18993	    # dependencies.
18994	    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'
18995	    ;;
18996	  xl* | mpixl* | bgxl*)
18997	    # IBM XL 8.0 on PPC, with GNU ld
18998	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18999	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19000	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19001	    if test "x$supports_anon_versioning" = xyes; then
19002	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19003		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19004		echo "local: *; };" >> $output_objdir/$libname.ver~
19005		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19006	    fi
19007	    ;;
19008	  *)
19009	    case `$CC -V 2>&1 | sed 5q` in
19010	    *Sun\ C*)
19011	      # Sun C++ 5.9
19012	      no_undefined_flag_CXX=' -zdefs'
19013	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19014	      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'
19015	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19016	      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'
19017	      compiler_needs_object_CXX=yes
19018
19019	      # Not sure whether something based on
19020	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19021	      # would be better.
19022	      output_verbose_link_cmd='func_echo_all'
19023
19024	      # Archives containing C++ object files must be created using
19025	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19026	      # necessary to make sure instantiated templates are included
19027	      # in the archive.
19028	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19029	      ;;
19030	    esac
19031	    ;;
19032	esac
19033	;;
19034
19035      lynxos*)
19036        # FIXME: insert proper C++ library support
19037	ld_shlibs_CXX=no
19038	;;
19039
19040      m88k*)
19041        # FIXME: insert proper C++ library support
19042        ld_shlibs_CXX=no
19043	;;
19044
19045      mvs*)
19046        case $cc_basename in
19047          cxx*)
19048	    # FIXME: insert proper C++ library support
19049	    ld_shlibs_CXX=no
19050	    ;;
19051	  *)
19052	    # FIXME: insert proper C++ library support
19053	    ld_shlibs_CXX=no
19054	    ;;
19055	esac
19056	;;
19057
19058      netbsd*)
19059        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19060	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19061	  wlarc=
19062	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19063	  hardcode_direct_CXX=yes
19064	  hardcode_shlibpath_var_CXX=no
19065	fi
19066	# Workaround some broken pre-1.5 toolchains
19067	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19068	;;
19069
19070      *nto* | *qnx*)
19071        ld_shlibs_CXX=yes
19072	;;
19073
19074      openbsd2*)
19075        # C++ shared libraries are fairly broken
19076	ld_shlibs_CXX=no
19077	;;
19078
19079      openbsd*)
19080	if test -f /usr/libexec/ld.so; then
19081	  hardcode_direct_CXX=yes
19082	  hardcode_shlibpath_var_CXX=no
19083	  hardcode_direct_absolute_CXX=yes
19084	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19085	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19086	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19087	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19088	    export_dynamic_flag_spec_CXX='${wl}-E'
19089	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19090	  fi
19091	  output_verbose_link_cmd=func_echo_all
19092	else
19093	  ld_shlibs_CXX=no
19094	fi
19095	;;
19096
19097      osf3* | osf4* | osf5*)
19098        case $cc_basename in
19099          KCC*)
19100	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19101
19102	    # KCC will only create a shared library if the output file
19103	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19104	    # to its proper name (with version) after linking.
19105	    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'
19106
19107	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19108	    hardcode_libdir_separator_CXX=:
19109
19110	    # Archives containing C++ object files must be created using
19111	    # the KAI C++ compiler.
19112	    case $host in
19113	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19114	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19115	    esac
19116	    ;;
19117          RCC*)
19118	    # Rational C++ 2.4.1
19119	    # FIXME: insert proper C++ library support
19120	    ld_shlibs_CXX=no
19121	    ;;
19122          cxx*)
19123	    case $host in
19124	      osf3*)
19125	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19126	        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'
19127	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19128		;;
19129	      *)
19130	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19131	        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'
19132	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19133	          echo "-hidden">> $lib.exp~
19134	          $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~
19135	          $RM $lib.exp'
19136	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19137		;;
19138	    esac
19139
19140	    hardcode_libdir_separator_CXX=:
19141
19142	    # Commands to make compiler produce verbose output that lists
19143	    # what "hidden" libraries, object files and flags are used when
19144	    # linking a shared library.
19145	    #
19146	    # There doesn't appear to be a way to prevent this compiler from
19147	    # explicitly linking system object files so we need to strip them
19148	    # from the output so that they don't get included in the library
19149	    # dependencies.
19150	    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"'
19151	    ;;
19152	  *)
19153	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19154	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19155	      case $host in
19156	        osf3*)
19157	          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'
19158		  ;;
19159	        *)
19160	          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'
19161		  ;;
19162	      esac
19163
19164	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19165	      hardcode_libdir_separator_CXX=:
19166
19167	      # Commands to make compiler produce verbose output that lists
19168	      # what "hidden" libraries, object files and flags are used when
19169	      # linking a shared library.
19170	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19171
19172	    else
19173	      # FIXME: insert proper C++ library support
19174	      ld_shlibs_CXX=no
19175	    fi
19176	    ;;
19177        esac
19178        ;;
19179
19180      psos*)
19181        # FIXME: insert proper C++ library support
19182        ld_shlibs_CXX=no
19183        ;;
19184
19185      sunos4*)
19186        case $cc_basename in
19187          CC*)
19188	    # Sun C++ 4.x
19189	    # FIXME: insert proper C++ library support
19190	    ld_shlibs_CXX=no
19191	    ;;
19192          lcc*)
19193	    # Lucid
19194	    # FIXME: insert proper C++ library support
19195	    ld_shlibs_CXX=no
19196	    ;;
19197          *)
19198	    # FIXME: insert proper C++ library support
19199	    ld_shlibs_CXX=no
19200	    ;;
19201        esac
19202        ;;
19203
19204      solaris*)
19205        case $cc_basename in
19206          CC* | sunCC*)
19207	    # Sun C++ 4.2, 5.x and Centerline C++
19208            archive_cmds_need_lc_CXX=yes
19209	    no_undefined_flag_CXX=' -zdefs'
19210	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19211	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19212	      $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'
19213
19214	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19215	    hardcode_shlibpath_var_CXX=no
19216	    case $host_os in
19217	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19218	      *)
19219		# The compiler driver will combine and reorder linker options,
19220		# but understands `-z linker_flag'.
19221	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19222		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19223	        ;;
19224	    esac
19225	    link_all_deplibs_CXX=yes
19226
19227	    output_verbose_link_cmd='func_echo_all'
19228
19229	    # Archives containing C++ object files must be created using
19230	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19231	    # necessary to make sure instantiated templates are included
19232	    # in the archive.
19233	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19234	    ;;
19235          gcx*)
19236	    # Green Hills C++ Compiler
19237	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19238
19239	    # The C++ compiler must be used to create the archive.
19240	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19241	    ;;
19242          *)
19243	    # GNU C++ compiler with Solaris linker
19244	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19245	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19246	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19247	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19248	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19249		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19250
19251	        # Commands to make compiler produce verbose output that lists
19252	        # what "hidden" libraries, object files and flags are used when
19253	        # linking a shared library.
19254	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19255	      else
19256	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
19257	        # platform.
19258	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19259	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19260		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19261
19262	        # Commands to make compiler produce verbose output that lists
19263	        # what "hidden" libraries, object files and flags are used when
19264	        # linking a shared library.
19265	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19266	      fi
19267
19268	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19269	      case $host_os in
19270		solaris2.[0-5] | solaris2.[0-5].*) ;;
19271		*)
19272		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19273		  ;;
19274	      esac
19275	    fi
19276	    ;;
19277        esac
19278        ;;
19279
19280    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19281      no_undefined_flag_CXX='${wl}-z,text'
19282      archive_cmds_need_lc_CXX=no
19283      hardcode_shlibpath_var_CXX=no
19284      runpath_var='LD_RUN_PATH'
19285
19286      case $cc_basename in
19287        CC*)
19288	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290	  ;;
19291	*)
19292	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294	  ;;
19295      esac
19296      ;;
19297
19298      sysv5* | sco3.2v5* | sco5v6*)
19299	# Note: We can NOT use -z defs as we might desire, because we do not
19300	# link with -lc, and that would cause any symbols used from libc to
19301	# always be unresolved, which means just about no library would
19302	# ever link correctly.  If we're not using GNU ld we use -z text
19303	# though, which does catch some bad symbols but isn't as heavy-handed
19304	# as -z defs.
19305	no_undefined_flag_CXX='${wl}-z,text'
19306	allow_undefined_flag_CXX='${wl}-z,nodefs'
19307	archive_cmds_need_lc_CXX=no
19308	hardcode_shlibpath_var_CXX=no
19309	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19310	hardcode_libdir_separator_CXX=':'
19311	link_all_deplibs_CXX=yes
19312	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19313	runpath_var='LD_RUN_PATH'
19314
19315	case $cc_basename in
19316          CC*)
19317	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19318	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19319	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19320	      '"$old_archive_cmds_CXX"
19321	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19322	      '"$reload_cmds_CXX"
19323	    ;;
19324	  *)
19325	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19326	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19327	    ;;
19328	esac
19329      ;;
19330
19331      tandem*)
19332        case $cc_basename in
19333          NCC*)
19334	    # NonStop-UX NCC 3.20
19335	    # FIXME: insert proper C++ library support
19336	    ld_shlibs_CXX=no
19337	    ;;
19338          *)
19339	    # FIXME: insert proper C++ library support
19340	    ld_shlibs_CXX=no
19341	    ;;
19342        esac
19343        ;;
19344
19345      vxworks*)
19346        # FIXME: insert proper C++ library support
19347        ld_shlibs_CXX=no
19348        ;;
19349
19350      *)
19351        # FIXME: insert proper C++ library support
19352        ld_shlibs_CXX=no
19353        ;;
19354    esac
19355
19356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19357$as_echo "$ld_shlibs_CXX" >&6; }
19358    test "$ld_shlibs_CXX" = no && can_build_shared=no
19359
19360    GCC_CXX="$GXX"
19361    LD_CXX="$LD"
19362
19363    ## CAVEAT EMPTOR:
19364    ## There is no encapsulation within the following macros, do not change
19365    ## the running order or otherwise move them around unless you know exactly
19366    ## what you are doing...
19367    # Dependencies to place before and after the object being linked:
19368predep_objects_CXX=
19369postdep_objects_CXX=
19370predeps_CXX=
19371postdeps_CXX=
19372compiler_lib_search_path_CXX=
19373
19374cat > conftest.$ac_ext <<_LT_EOF
19375class Foo
19376{
19377public:
19378  Foo (void) { a = 0; }
19379private:
19380  int a;
19381};
19382_LT_EOF
19383
19384
19385_lt_libdeps_save_CFLAGS=$CFLAGS
19386case "$CC $CFLAGS " in #(
19387*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19388*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19389*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19390esac
19391
19392if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19393  (eval $ac_compile) 2>&5
19394  ac_status=$?
19395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19396  test $ac_status = 0; }; then
19397  # Parse the compiler output and extract the necessary
19398  # objects, libraries and library flags.
19399
19400  # Sentinel used to keep track of whether or not we are before
19401  # the conftest object file.
19402  pre_test_object_deps_done=no
19403
19404  for p in `eval "$output_verbose_link_cmd"`; do
19405    case ${prev}${p} in
19406
19407    -L* | -R* | -l*)
19408       # Some compilers place space between "-{L,R}" and the path.
19409       # Remove the space.
19410       if test $p = "-L" ||
19411          test $p = "-R"; then
19412	 prev=$p
19413	 continue
19414       fi
19415
19416       # Expand the sysroot to ease extracting the directories later.
19417       if test -z "$prev"; then
19418         case $p in
19419         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19420         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19421         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19422         esac
19423       fi
19424       case $p in
19425       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19426       esac
19427       if test "$pre_test_object_deps_done" = no; then
19428	 case ${prev} in
19429	 -L | -R)
19430	   # Internal compiler library paths should come after those
19431	   # provided the user.  The postdeps already come after the
19432	   # user supplied libs so there is no need to process them.
19433	   if test -z "$compiler_lib_search_path_CXX"; then
19434	     compiler_lib_search_path_CXX="${prev}${p}"
19435	   else
19436	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19437	   fi
19438	   ;;
19439	 # The "-l" case would never come before the object being
19440	 # linked, so don't bother handling this case.
19441	 esac
19442       else
19443	 if test -z "$postdeps_CXX"; then
19444	   postdeps_CXX="${prev}${p}"
19445	 else
19446	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19447	 fi
19448       fi
19449       prev=
19450       ;;
19451
19452    *.lto.$objext) ;; # Ignore GCC LTO objects
19453    *.$objext)
19454       # This assumes that the test object file only shows up
19455       # once in the compiler output.
19456       if test "$p" = "conftest.$objext"; then
19457	 pre_test_object_deps_done=yes
19458	 continue
19459       fi
19460
19461       if test "$pre_test_object_deps_done" = no; then
19462	 if test -z "$predep_objects_CXX"; then
19463	   predep_objects_CXX="$p"
19464	 else
19465	   predep_objects_CXX="$predep_objects_CXX $p"
19466	 fi
19467       else
19468	 if test -z "$postdep_objects_CXX"; then
19469	   postdep_objects_CXX="$p"
19470	 else
19471	   postdep_objects_CXX="$postdep_objects_CXX $p"
19472	 fi
19473       fi
19474       ;;
19475
19476    *) ;; # Ignore the rest.
19477
19478    esac
19479  done
19480
19481  # Clean up.
19482  rm -f a.out a.exe
19483else
19484  echo "libtool.m4: error: problem compiling CXX test program"
19485fi
19486
19487$RM -f confest.$objext
19488CFLAGS=$_lt_libdeps_save_CFLAGS
19489
19490# PORTME: override above test on systems where it is broken
19491case $host_os in
19492interix[3-9]*)
19493  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19494  # hack all around it, let's just trust "g++" to DTRT.
19495  predep_objects_CXX=
19496  postdep_objects_CXX=
19497  postdeps_CXX=
19498  ;;
19499
19500linux*)
19501  case `$CC -V 2>&1 | sed 5q` in
19502  *Sun\ C*)
19503    # Sun C++ 5.9
19504
19505    # The more standards-conforming stlport4 library is
19506    # incompatible with the Cstd library. Avoid specifying
19507    # it if it's in CXXFLAGS. Ignore libCrun as
19508    # -library=stlport4 depends on it.
19509    case " $CXX $CXXFLAGS " in
19510    *" -library=stlport4 "*)
19511      solaris_use_stlport4=yes
19512      ;;
19513    esac
19514
19515    if test "$solaris_use_stlport4" != yes; then
19516      postdeps_CXX='-library=Cstd -library=Crun'
19517    fi
19518    ;;
19519  esac
19520  ;;
19521
19522solaris*)
19523  case $cc_basename in
19524  CC* | sunCC*)
19525    # The more standards-conforming stlport4 library is
19526    # incompatible with the Cstd library. Avoid specifying
19527    # it if it's in CXXFLAGS. Ignore libCrun as
19528    # -library=stlport4 depends on it.
19529    case " $CXX $CXXFLAGS " in
19530    *" -library=stlport4 "*)
19531      solaris_use_stlport4=yes
19532      ;;
19533    esac
19534
19535    # Adding this requires a known-good setup of shared libraries for
19536    # Sun compiler versions before 5.6, else PIC objects from an old
19537    # archive will be linked into the output, leading to subtle bugs.
19538    if test "$solaris_use_stlport4" != yes; then
19539      postdeps_CXX='-library=Cstd -library=Crun'
19540    fi
19541    ;;
19542  esac
19543  ;;
19544esac
19545
19546
19547case " $postdeps_CXX " in
19548*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19549esac
19550 compiler_lib_search_dirs_CXX=
19551if test -n "${compiler_lib_search_path_CXX}"; then
19552 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19553fi
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585    lt_prog_compiler_wl_CXX=
19586lt_prog_compiler_pic_CXX=
19587lt_prog_compiler_static_CXX=
19588
19589
19590  # C++ specific cases for pic, static, wl, etc.
19591  if test "$GXX" = yes; then
19592    lt_prog_compiler_wl_CXX='-Wl,'
19593    lt_prog_compiler_static_CXX='-static'
19594
19595    case $host_os in
19596    aix*)
19597      # All AIX code is PIC.
19598      if test "$host_cpu" = ia64; then
19599	# AIX 5 now supports IA64 processor
19600	lt_prog_compiler_static_CXX='-Bstatic'
19601      fi
19602      ;;
19603
19604    amigaos*)
19605      case $host_cpu in
19606      powerpc)
19607            # see comment about AmigaOS4 .so support
19608            lt_prog_compiler_pic_CXX='-fPIC'
19609        ;;
19610      m68k)
19611            # FIXME: we need at least 68020 code to build shared libraries, but
19612            # adding the `-m68020' flag to GCC prevents building anything better,
19613            # like `-m68040'.
19614            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19615        ;;
19616      esac
19617      ;;
19618
19619    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19620      # PIC is the default for these OSes.
19621      ;;
19622    mingw* | cygwin* | os2* | pw32* | cegcc*)
19623      # This hack is so that the source file can tell whether it is being
19624      # built for inclusion in a dll (and should export symbols for example).
19625      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19626      # (--disable-auto-import) libraries
19627      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19628      ;;
19629    darwin* | rhapsody*)
19630      # PIC is the default on this platform
19631      # Common symbols not allowed in MH_DYLIB files
19632      lt_prog_compiler_pic_CXX='-fno-common'
19633      ;;
19634    *djgpp*)
19635      # DJGPP does not support shared libraries at all
19636      lt_prog_compiler_pic_CXX=
19637      ;;
19638    haiku*)
19639      # PIC is the default for Haiku.
19640      # The "-static" flag exists, but is broken.
19641      lt_prog_compiler_static_CXX=
19642      ;;
19643    interix[3-9]*)
19644      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19645      # Instead, we relocate shared libraries at runtime.
19646      ;;
19647    sysv4*MP*)
19648      if test -d /usr/nec; then
19649	lt_prog_compiler_pic_CXX=-Kconform_pic
19650      fi
19651      ;;
19652    hpux*)
19653      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19654      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19655      # sets the default TLS model and affects inlining.
19656      case $host_cpu in
19657      hppa*64*)
19658	;;
19659      *)
19660	lt_prog_compiler_pic_CXX='-fPIC'
19661	;;
19662      esac
19663      ;;
19664    *qnx* | *nto*)
19665      # QNX uses GNU C++, but need to define -shared option too, otherwise
19666      # it will coredump.
19667      lt_prog_compiler_pic_CXX='-fPIC -shared'
19668      ;;
19669    *)
19670      lt_prog_compiler_pic_CXX='-fPIC'
19671      ;;
19672    esac
19673  else
19674    case $host_os in
19675      aix[4-9]*)
19676	# All AIX code is PIC.
19677	if test "$host_cpu" = ia64; then
19678	  # AIX 5 now supports IA64 processor
19679	  lt_prog_compiler_static_CXX='-Bstatic'
19680	else
19681	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19682	fi
19683	;;
19684      chorus*)
19685	case $cc_basename in
19686	cxch68*)
19687	  # Green Hills C++ Compiler
19688	  # _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"
19689	  ;;
19690	esac
19691	;;
19692      mingw* | cygwin* | os2* | pw32* | cegcc*)
19693	# This hack is so that the source file can tell whether it is being
19694	# built for inclusion in a dll (and should export symbols for example).
19695	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19696	;;
19697      dgux*)
19698	case $cc_basename in
19699	  ec++*)
19700	    lt_prog_compiler_pic_CXX='-KPIC'
19701	    ;;
19702	  ghcx*)
19703	    # Green Hills C++ Compiler
19704	    lt_prog_compiler_pic_CXX='-pic'
19705	    ;;
19706	  *)
19707	    ;;
19708	esac
19709	;;
19710      freebsd* | dragonfly*)
19711	# FreeBSD uses GNU C++
19712	;;
19713      hpux9* | hpux10* | hpux11*)
19714	case $cc_basename in
19715	  CC*)
19716	    lt_prog_compiler_wl_CXX='-Wl,'
19717	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19718	    if test "$host_cpu" != ia64; then
19719	      lt_prog_compiler_pic_CXX='+Z'
19720	    fi
19721	    ;;
19722	  aCC*)
19723	    lt_prog_compiler_wl_CXX='-Wl,'
19724	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19725	    case $host_cpu in
19726	    hppa*64*|ia64*)
19727	      # +Z the default
19728	      ;;
19729	    *)
19730	      lt_prog_compiler_pic_CXX='+Z'
19731	      ;;
19732	    esac
19733	    ;;
19734	  *)
19735	    ;;
19736	esac
19737	;;
19738      interix*)
19739	# This is c89, which is MS Visual C++ (no shared libs)
19740	# Anyone wants to do a port?
19741	;;
19742      irix5* | irix6* | nonstopux*)
19743	case $cc_basename in
19744	  CC*)
19745	    lt_prog_compiler_wl_CXX='-Wl,'
19746	    lt_prog_compiler_static_CXX='-non_shared'
19747	    # CC pic flag -KPIC is the default.
19748	    ;;
19749	  *)
19750	    ;;
19751	esac
19752	;;
19753      linux* | k*bsd*-gnu | kopensolaris*-gnu)
19754	case $cc_basename in
19755	  KCC*)
19756	    # KAI C++ Compiler
19757	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19758	    lt_prog_compiler_pic_CXX='-fPIC'
19759	    ;;
19760	  ecpc* )
19761	    # old Intel C++ for x86_64 which still supported -KPIC.
19762	    lt_prog_compiler_wl_CXX='-Wl,'
19763	    lt_prog_compiler_pic_CXX='-KPIC'
19764	    lt_prog_compiler_static_CXX='-static'
19765	    ;;
19766	  icpc* )
19767	    # Intel C++, used to be incompatible with GCC.
19768	    # ICC 10 doesn't accept -KPIC any more.
19769	    lt_prog_compiler_wl_CXX='-Wl,'
19770	    lt_prog_compiler_pic_CXX='-fPIC'
19771	    lt_prog_compiler_static_CXX='-static'
19772	    ;;
19773	  pgCC* | pgcpp*)
19774	    # Portland Group C++ compiler
19775	    lt_prog_compiler_wl_CXX='-Wl,'
19776	    lt_prog_compiler_pic_CXX='-fpic'
19777	    lt_prog_compiler_static_CXX='-Bstatic'
19778	    ;;
19779	  cxx*)
19780	    # Compaq C++
19781	    # Make sure the PIC flag is empty.  It appears that all Alpha
19782	    # Linux and Compaq Tru64 Unix objects are PIC.
19783	    lt_prog_compiler_pic_CXX=
19784	    lt_prog_compiler_static_CXX='-non_shared'
19785	    ;;
19786	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19787	    # IBM XL 8.0, 9.0 on PPC and BlueGene
19788	    lt_prog_compiler_wl_CXX='-Wl,'
19789	    lt_prog_compiler_pic_CXX='-qpic'
19790	    lt_prog_compiler_static_CXX='-qstaticlink'
19791	    ;;
19792	  *)
19793	    case `$CC -V 2>&1 | sed 5q` in
19794	    *Sun\ C*)
19795	      # Sun C++ 5.9
19796	      lt_prog_compiler_pic_CXX='-KPIC'
19797	      lt_prog_compiler_static_CXX='-Bstatic'
19798	      lt_prog_compiler_wl_CXX='-Qoption ld '
19799	      ;;
19800	    esac
19801	    ;;
19802	esac
19803	;;
19804      lynxos*)
19805	;;
19806      m88k*)
19807	;;
19808      mvs*)
19809	case $cc_basename in
19810	  cxx*)
19811	    lt_prog_compiler_pic_CXX='-W c,exportall'
19812	    ;;
19813	  *)
19814	    ;;
19815	esac
19816	;;
19817      netbsd*)
19818	;;
19819      *qnx* | *nto*)
19820        # QNX uses GNU C++, but need to define -shared option too, otherwise
19821        # it will coredump.
19822        lt_prog_compiler_pic_CXX='-fPIC -shared'
19823        ;;
19824      osf3* | osf4* | osf5*)
19825	case $cc_basename in
19826	  KCC*)
19827	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19828	    ;;
19829	  RCC*)
19830	    # Rational C++ 2.4.1
19831	    lt_prog_compiler_pic_CXX='-pic'
19832	    ;;
19833	  cxx*)
19834	    # Digital/Compaq C++
19835	    lt_prog_compiler_wl_CXX='-Wl,'
19836	    # Make sure the PIC flag is empty.  It appears that all Alpha
19837	    # Linux and Compaq Tru64 Unix objects are PIC.
19838	    lt_prog_compiler_pic_CXX=
19839	    lt_prog_compiler_static_CXX='-non_shared'
19840	    ;;
19841	  *)
19842	    ;;
19843	esac
19844	;;
19845      psos*)
19846	;;
19847      solaris*)
19848	case $cc_basename in
19849	  CC* | sunCC*)
19850	    # Sun C++ 4.2, 5.x and Centerline C++
19851	    lt_prog_compiler_pic_CXX='-KPIC'
19852	    lt_prog_compiler_static_CXX='-Bstatic'
19853	    lt_prog_compiler_wl_CXX='-Qoption ld '
19854	    ;;
19855	  gcx*)
19856	    # Green Hills C++ Compiler
19857	    lt_prog_compiler_pic_CXX='-PIC'
19858	    ;;
19859	  *)
19860	    ;;
19861	esac
19862	;;
19863      sunos4*)
19864	case $cc_basename in
19865	  CC*)
19866	    # Sun C++ 4.x
19867	    lt_prog_compiler_pic_CXX='-pic'
19868	    lt_prog_compiler_static_CXX='-Bstatic'
19869	    ;;
19870	  lcc*)
19871	    # Lucid
19872	    lt_prog_compiler_pic_CXX='-pic'
19873	    ;;
19874	  *)
19875	    ;;
19876	esac
19877	;;
19878      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19879	case $cc_basename in
19880	  CC*)
19881	    lt_prog_compiler_wl_CXX='-Wl,'
19882	    lt_prog_compiler_pic_CXX='-KPIC'
19883	    lt_prog_compiler_static_CXX='-Bstatic'
19884	    ;;
19885	esac
19886	;;
19887      tandem*)
19888	case $cc_basename in
19889	  NCC*)
19890	    # NonStop-UX NCC 3.20
19891	    lt_prog_compiler_pic_CXX='-KPIC'
19892	    ;;
19893	  *)
19894	    ;;
19895	esac
19896	;;
19897      vxworks*)
19898	;;
19899      *)
19900	lt_prog_compiler_can_build_shared_CXX=no
19901	;;
19902    esac
19903  fi
19904
19905case $host_os in
19906  # For platforms which do not support PIC, -DPIC is meaningless:
19907  *djgpp*)
19908    lt_prog_compiler_pic_CXX=
19909    ;;
19910  *)
19911    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19912    ;;
19913esac
19914
19915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19916$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19917if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19918  $as_echo_n "(cached) " >&6
19919else
19920  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19921fi
19922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19923$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19924lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19925
19926#
19927# Check to make sure the PIC flag actually works.
19928#
19929if test -n "$lt_prog_compiler_pic_CXX"; then
19930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19931$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19932if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19933  $as_echo_n "(cached) " >&6
19934else
19935  lt_cv_prog_compiler_pic_works_CXX=no
19936   ac_outfile=conftest.$ac_objext
19937   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19938   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19939   # Insert the option either (1) after the last *FLAGS variable, or
19940   # (2) before a word containing "conftest.", or (3) at the end.
19941   # Note that $ac_compile itself does not contain backslashes and begins
19942   # with a dollar sign (not a hyphen), so the echo should work correctly.
19943   # The option is referenced via a variable to avoid confusing sed.
19944   lt_compile=`echo "$ac_compile" | $SED \
19945   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19946   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19947   -e 's:$: $lt_compiler_flag:'`
19948   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19949   (eval "$lt_compile" 2>conftest.err)
19950   ac_status=$?
19951   cat conftest.err >&5
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   if (exit $ac_status) && test -s "$ac_outfile"; then
19954     # The compiler can only warn and ignore the option if not recognized
19955     # So say no if there are warnings other than the usual output.
19956     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19957     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19958     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19959       lt_cv_prog_compiler_pic_works_CXX=yes
19960     fi
19961   fi
19962   $RM conftest*
19963
19964fi
19965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19966$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19967
19968if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19969    case $lt_prog_compiler_pic_CXX in
19970     "" | " "*) ;;
19971     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19972     esac
19973else
19974    lt_prog_compiler_pic_CXX=
19975     lt_prog_compiler_can_build_shared_CXX=no
19976fi
19977
19978fi
19979
19980
19981
19982
19983
19984#
19985# Check to make sure the static flag actually works.
19986#
19987wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19989$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19990if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19991  $as_echo_n "(cached) " >&6
19992else
19993  lt_cv_prog_compiler_static_works_CXX=no
19994   save_LDFLAGS="$LDFLAGS"
19995   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19996   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19997   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19998     # The linker can only warn and ignore the option if not recognized
19999     # So say no if there are warnings
20000     if test -s conftest.err; then
20001       # Append any errors to the config.log.
20002       cat conftest.err 1>&5
20003       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20004       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20005       if diff conftest.exp conftest.er2 >/dev/null; then
20006         lt_cv_prog_compiler_static_works_CXX=yes
20007       fi
20008     else
20009       lt_cv_prog_compiler_static_works_CXX=yes
20010     fi
20011   fi
20012   $RM -r conftest*
20013   LDFLAGS="$save_LDFLAGS"
20014
20015fi
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20017$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20018
20019if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20020    :
20021else
20022    lt_prog_compiler_static_CXX=
20023fi
20024
20025
20026
20027
20028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20029$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20030if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20031  $as_echo_n "(cached) " >&6
20032else
20033  lt_cv_prog_compiler_c_o_CXX=no
20034   $RM -r conftest 2>/dev/null
20035   mkdir conftest
20036   cd conftest
20037   mkdir out
20038   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20039
20040   lt_compiler_flag="-o out/conftest2.$ac_objext"
20041   # Insert the option either (1) after the last *FLAGS variable, or
20042   # (2) before a word containing "conftest.", or (3) at the end.
20043   # Note that $ac_compile itself does not contain backslashes and begins
20044   # with a dollar sign (not a hyphen), so the echo should work correctly.
20045   lt_compile=`echo "$ac_compile" | $SED \
20046   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20047   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20048   -e 's:$: $lt_compiler_flag:'`
20049   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20050   (eval "$lt_compile" 2>out/conftest.err)
20051   ac_status=$?
20052   cat out/conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20055   then
20056     # The compiler can only warn and ignore the option if not recognized
20057     # So say no if there are warnings
20058     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20059     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20060     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20061       lt_cv_prog_compiler_c_o_CXX=yes
20062     fi
20063   fi
20064   chmod u+w . 2>&5
20065   $RM conftest*
20066   # SGI C++ compiler will create directory out/ii_files/ for
20067   # template instantiation
20068   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20069   $RM out/* && rmdir out
20070   cd ..
20071   $RM -r conftest
20072   $RM conftest*
20073
20074fi
20075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20076$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20077
20078
20079
20080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20081$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20082if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20083  $as_echo_n "(cached) " >&6
20084else
20085  lt_cv_prog_compiler_c_o_CXX=no
20086   $RM -r conftest 2>/dev/null
20087   mkdir conftest
20088   cd conftest
20089   mkdir out
20090   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20091
20092   lt_compiler_flag="-o out/conftest2.$ac_objext"
20093   # Insert the option either (1) after the last *FLAGS variable, or
20094   # (2) before a word containing "conftest.", or (3) at the end.
20095   # Note that $ac_compile itself does not contain backslashes and begins
20096   # with a dollar sign (not a hyphen), so the echo should work correctly.
20097   lt_compile=`echo "$ac_compile" | $SED \
20098   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20099   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20100   -e 's:$: $lt_compiler_flag:'`
20101   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20102   (eval "$lt_compile" 2>out/conftest.err)
20103   ac_status=$?
20104   cat out/conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20107   then
20108     # The compiler can only warn and ignore the option if not recognized
20109     # So say no if there are warnings
20110     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20111     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20112     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20113       lt_cv_prog_compiler_c_o_CXX=yes
20114     fi
20115   fi
20116   chmod u+w . 2>&5
20117   $RM conftest*
20118   # SGI C++ compiler will create directory out/ii_files/ for
20119   # template instantiation
20120   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20121   $RM out/* && rmdir out
20122   cd ..
20123   $RM -r conftest
20124   $RM conftest*
20125
20126fi
20127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20128$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20129
20130
20131
20132
20133hard_links="nottested"
20134if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20135  # do not overwrite the value of need_locks provided by the user
20136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20137$as_echo_n "checking if we can lock with hard links... " >&6; }
20138  hard_links=yes
20139  $RM conftest*
20140  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20141  touch conftest.a
20142  ln conftest.a conftest.b 2>&5 || hard_links=no
20143  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20145$as_echo "$hard_links" >&6; }
20146  if test "$hard_links" = no; then
20147    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20148$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20149    need_locks=warn
20150  fi
20151else
20152  need_locks=no
20153fi
20154
20155
20156
20157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20158$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20159
20160  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20161  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20162  case $host_os in
20163  aix[4-9]*)
20164    # If we're using GNU nm, then we don't want the "-C" option.
20165    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20166    # Also, AIX nm treats weak defined symbols like other global defined
20167    # symbols, whereas GNU nm marks them as "W".
20168    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20169      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20170    else
20171      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20172    fi
20173    ;;
20174  pw32*)
20175    export_symbols_cmds_CXX="$ltdll_cmds"
20176    ;;
20177  cygwin* | mingw* | cegcc*)
20178    case $cc_basename in
20179    cl*)
20180      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20181      ;;
20182    *)
20183      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'
20184      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20185      ;;
20186    esac
20187    ;;
20188  *)
20189    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20190    ;;
20191  esac
20192
20193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20194$as_echo "$ld_shlibs_CXX" >&6; }
20195test "$ld_shlibs_CXX" = no && can_build_shared=no
20196
20197with_gnu_ld_CXX=$with_gnu_ld
20198
20199
20200
20201
20202
20203
20204#
20205# Do we need to explicitly link libc?
20206#
20207case "x$archive_cmds_need_lc_CXX" in
20208x|xyes)
20209  # Assume -lc should be added
20210  archive_cmds_need_lc_CXX=yes
20211
20212  if test "$enable_shared" = yes && test "$GCC" = yes; then
20213    case $archive_cmds_CXX in
20214    *'~'*)
20215      # FIXME: we may have to deal with multi-command sequences.
20216      ;;
20217    '$CC '*)
20218      # Test whether the compiler implicitly links with -lc since on some
20219      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220      # to ld, don't add -lc before -lgcc.
20221      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20222$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20223if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
20224  $as_echo_n "(cached) " >&6
20225else
20226  $RM conftest*
20227	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20228
20229	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20230  (eval $ac_compile) 2>&5
20231  ac_status=$?
20232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20233  test $ac_status = 0; } 2>conftest.err; then
20234	  soname=conftest
20235	  lib=conftest
20236	  libobjs=conftest.$ac_objext
20237	  deplibs=
20238	  wl=$lt_prog_compiler_wl_CXX
20239	  pic_flag=$lt_prog_compiler_pic_CXX
20240	  compiler_flags=-v
20241	  linker_flags=-v
20242	  verstring=
20243	  output_objdir=.
20244	  libname=conftest
20245	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20246	  allow_undefined_flag_CXX=
20247	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20248  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20249  ac_status=$?
20250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20251  test $ac_status = 0; }
20252	  then
20253	    lt_cv_archive_cmds_need_lc_CXX=no
20254	  else
20255	    lt_cv_archive_cmds_need_lc_CXX=yes
20256	  fi
20257	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20258	else
20259	  cat conftest.err 1>&5
20260	fi
20261	$RM conftest*
20262
20263fi
20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20265$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20266      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20267      ;;
20268    esac
20269  fi
20270  ;;
20271esac
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20335$as_echo_n "checking dynamic linker characteristics... " >&6; }
20336
20337library_names_spec=
20338libname_spec='lib$name'
20339soname_spec=
20340shrext_cmds=".so"
20341postinstall_cmds=
20342postuninstall_cmds=
20343finish_cmds=
20344finish_eval=
20345shlibpath_var=
20346shlibpath_overrides_runpath=unknown
20347version_type=none
20348dynamic_linker="$host_os ld.so"
20349sys_lib_dlsearch_path_spec="/lib /usr/lib"
20350need_lib_prefix=unknown
20351hardcode_into_libs=no
20352
20353# when you set need_version to no, make sure it does not cause -set_version
20354# flags to be left without arguments
20355need_version=unknown
20356
20357case $host_os in
20358aix3*)
20359  version_type=linux # correct to gnu/linux during the next big refactor
20360  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20361  shlibpath_var=LIBPATH
20362
20363  # AIX 3 has no versioning support, so we append a major version to the name.
20364  soname_spec='${libname}${release}${shared_ext}$major'
20365  ;;
20366
20367aix[4-9]*)
20368  version_type=linux # correct to gnu/linux during the next big refactor
20369  need_lib_prefix=no
20370  need_version=no
20371  hardcode_into_libs=yes
20372  if test "$host_cpu" = ia64; then
20373    # AIX 5 supports IA64
20374    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20375    shlibpath_var=LD_LIBRARY_PATH
20376  else
20377    # With GCC up to 2.95.x, collect2 would create an import file
20378    # for dependence libraries.  The import file would start with
20379    # the line `#! .'.  This would cause the generated library to
20380    # depend on `.', always an invalid library.  This was fixed in
20381    # development snapshots of GCC prior to 3.0.
20382    case $host_os in
20383      aix4 | aix4.[01] | aix4.[01].*)
20384      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20385	   echo ' yes '
20386	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20387	:
20388      else
20389	can_build_shared=no
20390      fi
20391      ;;
20392    esac
20393    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20394    # soname into executable. Probably we can add versioning support to
20395    # collect2, so additional links can be useful in future.
20396    if test "$aix_use_runtimelinking" = yes; then
20397      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20398      # instead of lib<name>.a to let people know that these are not
20399      # typical AIX shared libraries.
20400      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20401    else
20402      # We preserve .a as extension for shared libraries through AIX4.2
20403      # and later when we are not doing run time linking.
20404      library_names_spec='${libname}${release}.a $libname.a'
20405      soname_spec='${libname}${release}${shared_ext}$major'
20406    fi
20407    shlibpath_var=LIBPATH
20408  fi
20409  ;;
20410
20411amigaos*)
20412  case $host_cpu in
20413  powerpc)
20414    # Since July 2007 AmigaOS4 officially supports .so libraries.
20415    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20416    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417    ;;
20418  m68k)
20419    library_names_spec='$libname.ixlibrary $libname.a'
20420    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20421    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20422    ;;
20423  esac
20424  ;;
20425
20426beos*)
20427  library_names_spec='${libname}${shared_ext}'
20428  dynamic_linker="$host_os ld.so"
20429  shlibpath_var=LIBRARY_PATH
20430  ;;
20431
20432bsdi[45]*)
20433  version_type=linux # correct to gnu/linux during the next big refactor
20434  need_version=no
20435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436  soname_spec='${libname}${release}${shared_ext}$major'
20437  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20438  shlibpath_var=LD_LIBRARY_PATH
20439  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20440  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20441  # the default ld.so.conf also contains /usr/contrib/lib and
20442  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20443  # libtool to hard-code these into programs
20444  ;;
20445
20446cygwin* | mingw* | pw32* | cegcc*)
20447  version_type=windows
20448  shrext_cmds=".dll"
20449  need_version=no
20450  need_lib_prefix=no
20451
20452  case $GCC,$cc_basename in
20453  yes,*)
20454    # gcc
20455    library_names_spec='$libname.dll.a'
20456    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20457    postinstall_cmds='base_file=`basename \${file}`~
20458      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20459      dldir=$destdir/`dirname \$dlpath`~
20460      test -d \$dldir || mkdir -p \$dldir~
20461      $install_prog $dir/$dlname \$dldir/$dlname~
20462      chmod a+x \$dldir/$dlname~
20463      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20464        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20465      fi'
20466    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20467      dlpath=$dir/\$dldll~
20468       $RM \$dlpath'
20469    shlibpath_overrides_runpath=yes
20470
20471    case $host_os in
20472    cygwin*)
20473      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20474      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20475
20476      ;;
20477    mingw* | cegcc*)
20478      # MinGW DLLs use traditional 'lib' prefix
20479      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20480      ;;
20481    pw32*)
20482      # pw32 DLLs use 'pw' prefix rather than 'lib'
20483      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20484      ;;
20485    esac
20486    dynamic_linker='Win32 ld.exe'
20487    ;;
20488
20489  *,cl*)
20490    # Native MSVC
20491    libname_spec='$name'
20492    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20493    library_names_spec='${libname}.dll.lib'
20494
20495    case $build_os in
20496    mingw*)
20497      sys_lib_search_path_spec=
20498      lt_save_ifs=$IFS
20499      IFS=';'
20500      for lt_path in $LIB
20501      do
20502        IFS=$lt_save_ifs
20503        # Let DOS variable expansion print the short 8.3 style file name.
20504        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20505        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20506      done
20507      IFS=$lt_save_ifs
20508      # Convert to MSYS style.
20509      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20510      ;;
20511    cygwin*)
20512      # Convert to unix form, then to dos form, then back to unix form
20513      # but this time dos style (no spaces!) so that the unix form looks
20514      # like /cygdrive/c/PROGRA~1:/cygdr...
20515      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20516      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20517      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20518      ;;
20519    *)
20520      sys_lib_search_path_spec="$LIB"
20521      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20522        # It is most probably a Windows format PATH.
20523        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20524      else
20525        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20526      fi
20527      # FIXME: find the short name or the path components, as spaces are
20528      # common. (e.g. "Program Files" -> "PROGRA~1")
20529      ;;
20530    esac
20531
20532    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20533    postinstall_cmds='base_file=`basename \${file}`~
20534      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20535      dldir=$destdir/`dirname \$dlpath`~
20536      test -d \$dldir || mkdir -p \$dldir~
20537      $install_prog $dir/$dlname \$dldir/$dlname'
20538    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20539      dlpath=$dir/\$dldll~
20540       $RM \$dlpath'
20541    shlibpath_overrides_runpath=yes
20542    dynamic_linker='Win32 link.exe'
20543    ;;
20544
20545  *)
20546    # Assume MSVC wrapper
20547    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20548    dynamic_linker='Win32 ld.exe'
20549    ;;
20550  esac
20551  # FIXME: first we should search . and the directory the executable is in
20552  shlibpath_var=PATH
20553  ;;
20554
20555darwin* | rhapsody*)
20556  dynamic_linker="$host_os dyld"
20557  version_type=darwin
20558  need_lib_prefix=no
20559  need_version=no
20560  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20561  soname_spec='${libname}${release}${major}$shared_ext'
20562  shlibpath_overrides_runpath=yes
20563  shlibpath_var=DYLD_LIBRARY_PATH
20564  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20565
20566  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20567  ;;
20568
20569dgux*)
20570  version_type=linux # correct to gnu/linux during the next big refactor
20571  need_lib_prefix=no
20572  need_version=no
20573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20574  soname_spec='${libname}${release}${shared_ext}$major'
20575  shlibpath_var=LD_LIBRARY_PATH
20576  ;;
20577
20578freebsd* | dragonfly*)
20579  # DragonFly does not have aout.  When/if they implement a new
20580  # versioning mechanism, adjust this.
20581  if test -x /usr/bin/objformat; then
20582    objformat=`/usr/bin/objformat`
20583  else
20584    case $host_os in
20585    freebsd[23].*) objformat=aout ;;
20586    *) objformat=elf ;;
20587    esac
20588  fi
20589  version_type=freebsd-$objformat
20590  case $version_type in
20591    freebsd-elf*)
20592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20593      need_version=no
20594      need_lib_prefix=no
20595      ;;
20596    freebsd-*)
20597      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20598      need_version=yes
20599      ;;
20600  esac
20601  shlibpath_var=LD_LIBRARY_PATH
20602  case $host_os in
20603  freebsd2.*)
20604    shlibpath_overrides_runpath=yes
20605    ;;
20606  freebsd3.[01]* | freebsdelf3.[01]*)
20607    shlibpath_overrides_runpath=yes
20608    hardcode_into_libs=yes
20609    ;;
20610  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20611  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20612    shlibpath_overrides_runpath=no
20613    hardcode_into_libs=yes
20614    ;;
20615  *) # from 4.6 on, and DragonFly
20616    shlibpath_overrides_runpath=yes
20617    hardcode_into_libs=yes
20618    ;;
20619  esac
20620  ;;
20621
20622gnu*)
20623  version_type=linux # correct to gnu/linux during the next big refactor
20624  need_lib_prefix=no
20625  need_version=no
20626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20627  soname_spec='${libname}${release}${shared_ext}$major'
20628  shlibpath_var=LD_LIBRARY_PATH
20629  shlibpath_overrides_runpath=no
20630  hardcode_into_libs=yes
20631  ;;
20632
20633haiku*)
20634  version_type=linux # correct to gnu/linux during the next big refactor
20635  need_lib_prefix=no
20636  need_version=no
20637  dynamic_linker="$host_os runtime_loader"
20638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20639  soname_spec='${libname}${release}${shared_ext}$major'
20640  shlibpath_var=LIBRARY_PATH
20641  shlibpath_overrides_runpath=yes
20642  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20643  hardcode_into_libs=yes
20644  ;;
20645
20646hpux9* | hpux10* | hpux11*)
20647  # Give a soname corresponding to the major version so that dld.sl refuses to
20648  # link against other versions.
20649  version_type=sunos
20650  need_lib_prefix=no
20651  need_version=no
20652  case $host_cpu in
20653  ia64*)
20654    shrext_cmds='.so'
20655    hardcode_into_libs=yes
20656    dynamic_linker="$host_os dld.so"
20657    shlibpath_var=LD_LIBRARY_PATH
20658    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20660    soname_spec='${libname}${release}${shared_ext}$major'
20661    if test "X$HPUX_IA64_MODE" = X32; then
20662      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20663    else
20664      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20665    fi
20666    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20667    ;;
20668  hppa*64*)
20669    shrext_cmds='.sl'
20670    hardcode_into_libs=yes
20671    dynamic_linker="$host_os dld.sl"
20672    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20675    soname_spec='${libname}${release}${shared_ext}$major'
20676    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20677    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20678    ;;
20679  *)
20680    shrext_cmds='.sl'
20681    dynamic_linker="$host_os dld.sl"
20682    shlibpath_var=SHLIB_PATH
20683    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20685    soname_spec='${libname}${release}${shared_ext}$major'
20686    ;;
20687  esac
20688  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20689  postinstall_cmds='chmod 555 $lib'
20690  # or fails outright, so override atomically:
20691  install_override_mode=555
20692  ;;
20693
20694interix[3-9]*)
20695  version_type=linux # correct to gnu/linux during the next big refactor
20696  need_lib_prefix=no
20697  need_version=no
20698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20699  soname_spec='${libname}${release}${shared_ext}$major'
20700  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20701  shlibpath_var=LD_LIBRARY_PATH
20702  shlibpath_overrides_runpath=no
20703  hardcode_into_libs=yes
20704  ;;
20705
20706irix5* | irix6* | nonstopux*)
20707  case $host_os in
20708    nonstopux*) version_type=nonstopux ;;
20709    *)
20710	if test "$lt_cv_prog_gnu_ld" = yes; then
20711		version_type=linux # correct to gnu/linux during the next big refactor
20712	else
20713		version_type=irix
20714	fi ;;
20715  esac
20716  need_lib_prefix=no
20717  need_version=no
20718  soname_spec='${libname}${release}${shared_ext}$major'
20719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20720  case $host_os in
20721  irix5* | nonstopux*)
20722    libsuff= shlibsuff=
20723    ;;
20724  *)
20725    case $LD in # libtool.m4 will add one of these switches to LD
20726    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20727      libsuff= shlibsuff= libmagic=32-bit;;
20728    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20729      libsuff=32 shlibsuff=N32 libmagic=N32;;
20730    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20731      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20732    *) libsuff= shlibsuff= libmagic=never-match;;
20733    esac
20734    ;;
20735  esac
20736  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20737  shlibpath_overrides_runpath=no
20738  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20739  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20740  hardcode_into_libs=yes
20741  ;;
20742
20743# No shared lib support for Linux oldld, aout, or coff.
20744linux*oldld* | linux*aout* | linux*coff*)
20745  dynamic_linker=no
20746  ;;
20747
20748# This must be glibc/ELF.
20749linux* | k*bsd*-gnu | kopensolaris*-gnu)
20750  version_type=linux # correct to gnu/linux during the next big refactor
20751  need_lib_prefix=no
20752  need_version=no
20753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754  soname_spec='${libname}${release}${shared_ext}$major'
20755  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20756  shlibpath_var=LD_LIBRARY_PATH
20757  shlibpath_overrides_runpath=no
20758
20759  # Some binutils ld are patched to set DT_RUNPATH
20760  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20761  $as_echo_n "(cached) " >&6
20762else
20763  lt_cv_shlibpath_overrides_runpath=no
20764    save_LDFLAGS=$LDFLAGS
20765    save_libdir=$libdir
20766    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20767	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769/* end confdefs.h.  */
20770
20771int
20772main ()
20773{
20774
20775  ;
20776  return 0;
20777}
20778_ACEOF
20779if ac_fn_cxx_try_link "$LINENO"; then :
20780  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20781  lt_cv_shlibpath_overrides_runpath=yes
20782fi
20783fi
20784rm -f core conftest.err conftest.$ac_objext \
20785    conftest$ac_exeext conftest.$ac_ext
20786    LDFLAGS=$save_LDFLAGS
20787    libdir=$save_libdir
20788
20789fi
20790
20791  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20792
20793  # This implies no fast_install, which is unacceptable.
20794  # Some rework will be needed to allow for fast_install
20795  # before this can be enabled.
20796  hardcode_into_libs=yes
20797
20798  # Add ABI-specific directories to the system library path.
20799  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20800
20801  # Append ld.so.conf contents to the search path
20802  if test -f /etc/ld.so.conf; then
20803    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' ' '`
20804    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20805
20806  fi
20807
20808  # We used to test for /lib/ld.so.1 and disable shared libraries on
20809  # powerpc, because MkLinux only supported shared libraries with the
20810  # GNU dynamic linker.  Since this was broken with cross compilers,
20811  # most powerpc-linux boxes support dynamic linking these days and
20812  # people can always --disable-shared, the test was removed, and we
20813  # assume the GNU/Linux dynamic linker is in use.
20814  dynamic_linker='GNU/Linux ld.so'
20815  ;;
20816
20817netbsd*)
20818  version_type=sunos
20819  need_lib_prefix=no
20820  need_version=no
20821  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20822    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20823    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20824    dynamic_linker='NetBSD (a.out) ld.so'
20825  else
20826    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20827    soname_spec='${libname}${release}${shared_ext}$major'
20828    dynamic_linker='NetBSD ld.elf_so'
20829  fi
20830  shlibpath_var=LD_LIBRARY_PATH
20831  shlibpath_overrides_runpath=yes
20832  hardcode_into_libs=yes
20833  ;;
20834
20835newsos6)
20836  version_type=linux # correct to gnu/linux during the next big refactor
20837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20838  shlibpath_var=LD_LIBRARY_PATH
20839  shlibpath_overrides_runpath=yes
20840  ;;
20841
20842*nto* | *qnx*)
20843  version_type=qnx
20844  need_lib_prefix=no
20845  need_version=no
20846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847  soname_spec='${libname}${release}${shared_ext}$major'
20848  shlibpath_var=LD_LIBRARY_PATH
20849  shlibpath_overrides_runpath=no
20850  hardcode_into_libs=yes
20851  dynamic_linker='ldqnx.so'
20852  ;;
20853
20854openbsd*)
20855  version_type=sunos
20856  sys_lib_dlsearch_path_spec="/usr/lib"
20857  need_lib_prefix=no
20858  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20859  case $host_os in
20860    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
20861    *)				need_version=no  ;;
20862  esac
20863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20864  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20865  shlibpath_var=LD_LIBRARY_PATH
20866  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20867    case $host_os in
20868      openbsd2.[89] | openbsd2.[89].*)
20869	shlibpath_overrides_runpath=no
20870	;;
20871      *)
20872	shlibpath_overrides_runpath=yes
20873	;;
20874      esac
20875  else
20876    shlibpath_overrides_runpath=yes
20877  fi
20878  ;;
20879
20880os2*)
20881  libname_spec='$name'
20882  shrext_cmds=".dll"
20883  need_lib_prefix=no
20884  library_names_spec='$libname${shared_ext} $libname.a'
20885  dynamic_linker='OS/2 ld.exe'
20886  shlibpath_var=LIBPATH
20887  ;;
20888
20889osf3* | osf4* | osf5*)
20890  version_type=osf
20891  need_lib_prefix=no
20892  need_version=no
20893  soname_spec='${libname}${release}${shared_ext}$major'
20894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20895  shlibpath_var=LD_LIBRARY_PATH
20896  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20897  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20898  ;;
20899
20900rdos*)
20901  dynamic_linker=no
20902  ;;
20903
20904solaris*)
20905  version_type=linux # correct to gnu/linux during the next big refactor
20906  need_lib_prefix=no
20907  need_version=no
20908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20909  soname_spec='${libname}${release}${shared_ext}$major'
20910  shlibpath_var=LD_LIBRARY_PATH
20911  shlibpath_overrides_runpath=yes
20912  hardcode_into_libs=yes
20913  # ldd complains unless libraries are executable
20914  postinstall_cmds='chmod +x $lib'
20915  ;;
20916
20917sunos4*)
20918  version_type=sunos
20919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20920  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20921  shlibpath_var=LD_LIBRARY_PATH
20922  shlibpath_overrides_runpath=yes
20923  if test "$with_gnu_ld" = yes; then
20924    need_lib_prefix=no
20925  fi
20926  need_version=yes
20927  ;;
20928
20929sysv4 | sysv4.3*)
20930  version_type=linux # correct to gnu/linux during the next big refactor
20931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932  soname_spec='${libname}${release}${shared_ext}$major'
20933  shlibpath_var=LD_LIBRARY_PATH
20934  case $host_vendor in
20935    sni)
20936      shlibpath_overrides_runpath=no
20937      need_lib_prefix=no
20938      runpath_var=LD_RUN_PATH
20939      ;;
20940    siemens)
20941      need_lib_prefix=no
20942      ;;
20943    motorola)
20944      need_lib_prefix=no
20945      need_version=no
20946      shlibpath_overrides_runpath=no
20947      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20948      ;;
20949  esac
20950  ;;
20951
20952sysv4*MP*)
20953  if test -d /usr/nec ;then
20954    version_type=linux # correct to gnu/linux during the next big refactor
20955    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20956    soname_spec='$libname${shared_ext}.$major'
20957    shlibpath_var=LD_LIBRARY_PATH
20958  fi
20959  ;;
20960
20961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20962  version_type=freebsd-elf
20963  need_lib_prefix=no
20964  need_version=no
20965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20966  soname_spec='${libname}${release}${shared_ext}$major'
20967  shlibpath_var=LD_LIBRARY_PATH
20968  shlibpath_overrides_runpath=yes
20969  hardcode_into_libs=yes
20970  if test "$with_gnu_ld" = yes; then
20971    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20972  else
20973    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20974    case $host_os in
20975      sco3.2v5*)
20976        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20977	;;
20978    esac
20979  fi
20980  sys_lib_dlsearch_path_spec='/usr/lib'
20981  ;;
20982
20983tpf*)
20984  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20985  version_type=linux # correct to gnu/linux during the next big refactor
20986  need_lib_prefix=no
20987  need_version=no
20988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20989  shlibpath_var=LD_LIBRARY_PATH
20990  shlibpath_overrides_runpath=no
20991  hardcode_into_libs=yes
20992  ;;
20993
20994uts4*)
20995  version_type=linux # correct to gnu/linux during the next big refactor
20996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997  soname_spec='${libname}${release}${shared_ext}$major'
20998  shlibpath_var=LD_LIBRARY_PATH
20999  ;;
21000
21001*)
21002  dynamic_linker=no
21003  ;;
21004esac
21005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21006$as_echo "$dynamic_linker" >&6; }
21007test "$dynamic_linker" = no && can_build_shared=no
21008
21009variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21010if test "$GCC" = yes; then
21011  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21012fi
21013
21014if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21015  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21016fi
21017if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21018  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21019fi
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21059$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21060hardcode_action_CXX=
21061if test -n "$hardcode_libdir_flag_spec_CXX" ||
21062   test -n "$runpath_var_CXX" ||
21063   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21064
21065  # We can hardcode non-existent directories.
21066  if test "$hardcode_direct_CXX" != no &&
21067     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21068     # have to relink, otherwise we might link with an installed library
21069     # when we should be linking with a yet-to-be-installed one
21070     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21071     test "$hardcode_minus_L_CXX" != no; then
21072    # Linking always hardcodes the temporary library directory.
21073    hardcode_action_CXX=relink
21074  else
21075    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21076    hardcode_action_CXX=immediate
21077  fi
21078else
21079  # We cannot hardcode anything, or else we can only hardcode existing
21080  # directories.
21081  hardcode_action_CXX=unsupported
21082fi
21083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21084$as_echo "$hardcode_action_CXX" >&6; }
21085
21086if test "$hardcode_action_CXX" = relink ||
21087   test "$inherit_rpath_CXX" = yes; then
21088  # Fast installation is not supported
21089  enable_fast_install=no
21090elif test "$shlibpath_overrides_runpath" = yes ||
21091     test "$enable_shared" = no; then
21092  # Fast installation is not necessary
21093  enable_fast_install=needless
21094fi
21095
21096
21097
21098
21099
21100
21101
21102  fi # test -n "$compiler"
21103
21104  CC=$lt_save_CC
21105  CFLAGS=$lt_save_CFLAGS
21106  LDCXX=$LD
21107  LD=$lt_save_LD
21108  GCC=$lt_save_GCC
21109  with_gnu_ld=$lt_save_with_gnu_ld
21110  lt_cv_path_LDCXX=$lt_cv_path_LD
21111  lt_cv_path_LD=$lt_save_path_LD
21112  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21113  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21114fi # test "$_lt_caught_CXX_error" != yes
21115
21116ac_ext=c
21117ac_cpp='$CPP $CPPFLAGS'
21118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136        ac_config_commands="$ac_config_commands libtool"
21137
21138
21139
21140
21141# Only expand once:
21142
21143
21144
21145
21146
21147# Check to see if building shared libraries
21148libtool_build_shared_libs='no'
21149if test "$enable_shared" = 'yes'; then
21150    libtool_build_shared_libs='yes'
21151fi
21152
21153# Check to see if building static libraries
21154libtool_build_static_libs='no'
21155if test "$enable_static" = 'yes'; then
21156    libtool_build_static_libs='yes'
21157fi
21158
21159 if test "${libtool_build_shared_libs}" = 'yes'; then
21160  WITH_SHARED_LIBS_TRUE=
21161  WITH_SHARED_LIBS_FALSE='#'
21162else
21163  WITH_SHARED_LIBS_TRUE='#'
21164  WITH_SHARED_LIBS_FALSE=
21165fi
21166
21167#
21168# Enable support for building loadable modules
21169#
21170build_modules='no'
21171
21172# Check whether --with-modules was given.
21173if test "${with_modules+set}" = set; then :
21174  withval=$with_modules; with_modules=$withval
21175else
21176  with_modules='no'
21177fi
21178
21179
21180# Only allow building loadable modules if we are building shared libraries
21181if test "$with_modules" != 'no' ; then
21182    if test "$libtool_build_shared_libs" = 'no'; then
21183        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21184$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21185    build_modules='no'
21186  else
21187    build_modules='yes'
21188  fi
21189fi
21190if test "$build_modules" != 'no' ; then
21191
21192$as_echo "#define BUILD_MODULES 1" >>confdefs.h
21193
21194    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
21195fi
21196 if test "$build_modules" != 'no'; then
21197  WITH_MODULES_TRUE=
21198  WITH_MODULES_FALSE='#'
21199else
21200  WITH_MODULES_TRUE='#'
21201  WITH_MODULES_FALSE=
21202fi
21203
21204
21205# Enable build using delegate libraries built in subdirectories rather than installed
21206# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21207# Check whether --enable-delegate-build was given.
21208if test "${enable_delegate_build+set}" = set; then :
21209  enableval=$enable_delegate_build; enable_delegate_build=$enableval
21210else
21211  enable_delegate_build='no'
21212fi
21213
21214
21215# Check whether --enable-deprecated was given.
21216if test "${enable_deprecated+set}" = set; then :
21217  enableval=$enable_deprecated; enable_deprecated=$enableval
21218else
21219  enable_deprecated='no'
21220fi
21221
21222
21223if test "$enable_deprecated" = 'yes'; then
21224
21225$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21226
21227else
21228  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21229fi
21230
21231# Build a version of ImageMagick which operates uninstalled.
21232# Used to build distributions located via MAGICK_HOME / executable path
21233# Check whether --enable-installed was given.
21234if test "${enable_installed+set}" = set; then :
21235  enableval=$enable_installed; enable_installed=$enableval
21236else
21237  enable_installed='yes'
21238fi
21239
21240
21241if test "$enable_installed" = 'yes'; then
21242
21243$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21244
21245else
21246    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21247fi
21248
21249# Permit enciphering and deciphering image pixels.
21250# Check whether --enable-cipher was given.
21251if test "${enable_cipher+set}" = set; then :
21252  enableval=$enable_cipher; enable_cipher=$enableval
21253else
21254  enable_cipher='yes'
21255fi
21256
21257
21258if test "$enable_cipher" = 'yes'; then
21259
21260$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21261
21262fi
21263
21264# Build a zero-configuration version of ImageMagick.
21265# Check whether --enable-zero-configuration was given.
21266if test "${enable_zero_configuration+set}" = set; then :
21267  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21268else
21269  enable_zero_configuration='no'
21270fi
21271
21272
21273if test "$enable_zero_configuration" = 'yes'; then
21274
21275$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21276
21277    MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21278fi
21279
21280# Build a high dynamic range version of ImageMagick.
21281# Check whether --enable-hdri was given.
21282if test "${enable_hdri+set}" = set; then :
21283  enableval=$enable_hdri; enable_hdri=$enableval
21284else
21285  enable_hdri='yes'
21286fi
21287
21288
21289MAGICK_HDRI=""
21290if test "$enable_hdri" = 'yes'; then
21291    MAGICK_HDRI="HDRI"
21292    magick_hdri_enable='1';
21293    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21294else
21295    magick_hdri_enable='0'
21296fi
21297
21298cat >>confdefs.h <<_ACEOF
21299#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21300_ACEOF
21301
21302MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21303CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21304CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21305
21306# Build a version of ImageMagick with assert statements.
21307# Check whether --enable-assert was given.
21308if test "${enable_assert+set}" = set; then :
21309  enableval=$enable_assert; enable_assert=$enableval
21310else
21311  enable_assert='yes'
21312fi
21313
21314
21315if test "$enable_assert" = 'no'; then
21316
21317$as_echo "#define NDEBUG 1" >>confdefs.h
21318
21319fi
21320
21321# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21322
21323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21324$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21325    # Check whether --enable-maintainer-mode was given.
21326if test "${enable_maintainer_mode+set}" = set; then :
21327  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21328else
21329  USE_MAINTAINER_MODE=no
21330fi
21331
21332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21333$as_echo "$USE_MAINTAINER_MODE" >&6; }
21334   if test $USE_MAINTAINER_MODE = yes; then
21335  MAINTAINER_MODE_TRUE=
21336  MAINTAINER_MODE_FALSE='#'
21337else
21338  MAINTAINER_MODE_TRUE='#'
21339  MAINTAINER_MODE_FALSE=
21340fi
21341
21342  MAINT=$MAINTAINER_MODE_TRUE
21343
21344
21345
21346# Enable hugepages support
21347# Check whether --enable-hugepages was given.
21348if test "${enable_hugepages+set}" = set; then :
21349  enableval=$enable_hugepages; enable_hugepages=$enableval
21350else
21351  enable_hugepages='no'
21352fi
21353
21354
21355# Enable ccmalloc memory debugging support
21356# Check whether --enable-ccmalloc was given.
21357if test "${enable_ccmalloc+set}" = set; then :
21358  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21359else
21360  enable_ccmalloc='no'
21361fi
21362
21363
21364# Enable Electric Fence memory debugging support
21365# Check whether --enable-efence was given.
21366if test "${enable_efence+set}" = set; then :
21367  enableval=$enable_efence; enable_efence=$enableval
21368else
21369  enable_efence='no'
21370fi
21371
21372
21373# Enable prof-based profiling support
21374# Check whether --enable-prof was given.
21375if test "${enable_prof+set}" = set; then :
21376  enableval=$enable_prof; enable_prof=$enableval
21377else
21378  enable_prof='no'
21379fi
21380
21381
21382# Enable gprof-based profiling support
21383# Check whether --enable-gprof was given.
21384if test "${enable_gprof+set}" = set; then :
21385  enableval=$enable_gprof; enable_gprof=$enableval
21386else
21387  enable_gprof='no'
21388fi
21389
21390
21391# Enable gcov-based profiling support
21392# Check whether --enable-gcov was given.
21393if test "${enable_gcov+set}" = set; then :
21394  enableval=$enable_gcov; enable_gcov=$enableval
21395else
21396  enable_gcov='no'
21397fi
21398
21399
21400enable_profiling='no'
21401if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21402    enable_profiling='yes'
21403    if test "$libtool_build_shared_libs" = 'yes'; then
21404        echo "Warning: Can not profile code using shared libraries"
21405    fi
21406fi
21407
21408# Magick API method prefix
21409
21410# Check whether --with-method-prefix was given.
21411if test "${with_method_prefix+set}" = set; then :
21412  withval=$with_method_prefix; with_method_prefix=$withval
21413else
21414  with_method_prefix='no'
21415fi
21416
21417
21418if test "$with_method_prefix" != 'no'; then
21419
21420cat >>confdefs.h <<_ACEOF
21421#define NAMESPACE_PREFIX $with_method_prefix
21422_ACEOF
21423
21424    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
21425fi
21426
21427# Enable legacy support (default no)
21428# Check whether --enable-legacy-support was given.
21429if test "${enable_legacy_support+set}" = set; then :
21430  enableval=$enable_legacy_support; with_legacy_support=$enableval
21431else
21432  with_legacy_support='no'
21433fi
21434
21435 if test "$with_legacy_support" != 'no'; then
21436  LEGACY_SUPPORT_TRUE=
21437  LEGACY_SUPPORT_FALSE='#'
21438else
21439  LEGACY_SUPPORT_TRUE='#'
21440  LEGACY_SUPPORT_FALSE=
21441fi
21442
21443
21444# Number of bits in a Quantum
21445
21446# Check whether --with-quantum-depth was given.
21447if test "${with_quantum_depth+set}" = set; then :
21448  withval=$with_quantum_depth; with_quantum_depth=$withval
21449else
21450  with_quantum_depth=16
21451fi
21452
21453
21454if test "$with_quantum_depth" != '8'; then
21455    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21456fi
21457
21458case "${with_quantum_depth}" in
21459    8 ) ;;
21460    16 ) ;;
21461    32 ) ;;
21462    64 ) ;;
21463    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21464esac
21465QUANTUM_DEPTH="$with_quantum_depth"
21466
21467cat >>confdefs.h <<_ACEOF
21468#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
21469_ACEOF
21470
21471MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21472CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21473CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21474
21475# define a lib suffix for abi purpose
21476MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
21477if test "$enable_hdri" = 'yes'; then
21478  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
21479fi
21480
21481
21482# Set pixel cache threshold
21483
21484# Check whether --with-cache was given.
21485if test "${with_cache+set}" = set; then :
21486  withval=$with_cache; with_cache=$withval
21487else
21488  with_cache=''
21489fi
21490
21491
21492if test "$with_cache" != ''; then
21493
21494cat >>confdefs.h <<_ACEOF
21495#define PixelCacheThreshold $with_cache
21496_ACEOF
21497
21498    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21499fi
21500
21501# Disable/Enable support for full delegate paths
21502
21503# Check whether --with-frozenpaths was given.
21504if test "${with_frozenpaths+set}" = set; then :
21505  withval=$with_frozenpaths; with_frozenpaths=$withval
21506else
21507  with_frozenpaths='no'
21508fi
21509
21510
21511# Enable build/install of Magick++
21512
21513# Check whether --with-magick-plus-plus was given.
21514if test "${with_magick_plus_plus+set}" = set; then :
21515  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21516else
21517  with_magick_plus_plus='yes'
21518fi
21519
21520
21521# Encode the this name into the shared library.
21522
21523# Check whether --with-package-release-name was given.
21524if test "${with_package_release_name+set}" = set; then :
21525  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21526fi
21527
21528
21529
21530# Disable build/install of PerlMagick.
21531
21532# Check whether --with-perl was given.
21533if test "${with_perl+set}" = set; then :
21534  withval=$with_perl; with_perl=$withval
21535else
21536  with_perl='no'
21537fi
21538
21539
21540# Options to pass when configuring PerlMagick
21541
21542# Check whether --with-perl-options was given.
21543if test "${with_perl_options+set}" = set; then :
21544  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21545fi
21546
21547
21548
21549# Enable umem, object-caching memory allocation library.
21550
21551# Check whether --with-umem was given.
21552if test "${with_umem+set}" = set; then :
21553  withval=$with_umem; with_umem=$withval
21554else
21555  with_umem='no'
21556fi
21557
21558if test "$with_umem" != 'yes' ; then
21559    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21560fi
21561
21562#
21563# Specify path to shared libstdc++ if not in normal location
21564#
21565
21566# Check whether --with-libstdc was given.
21567if test "${with_libstdc+set}" = set; then :
21568  withval=$with_libstdc; with_libstdc=$withval
21569else
21570  with_libstdc=''
21571fi
21572
21573
21574if test "$with_libstdc" != ''; then
21575    if test -d "$with_libstdc"; then
21576        LIBSTDCLDFLAGS="-L$with_libstdc"
21577    fi
21578fi
21579
21580
21581# Does gcc required -traditional?
21582if test $ac_cv_c_compiler_gnu = yes; then
21583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21584$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21585if ${ac_cv_prog_gcc_traditional+:} false; then :
21586  $as_echo_n "(cached) " >&6
21587else
21588    ac_pattern="Autoconf.*'x'"
21589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590/* end confdefs.h.  */
21591#include <sgtty.h>
21592Autoconf TIOCGETP
21593_ACEOF
21594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21595  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21596  ac_cv_prog_gcc_traditional=yes
21597else
21598  ac_cv_prog_gcc_traditional=no
21599fi
21600rm -f conftest*
21601
21602
21603  if test $ac_cv_prog_gcc_traditional = no; then
21604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605/* end confdefs.h.  */
21606#include <termio.h>
21607Autoconf TCGETA
21608_ACEOF
21609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21610  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21611  ac_cv_prog_gcc_traditional=yes
21612fi
21613rm -f conftest*
21614
21615  fi
21616fi
21617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21618$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21619  if test $ac_cv_prog_gcc_traditional = yes; then
21620    CC="$CC -traditional"
21621  fi
21622fi
21623
21624
21625########
21626#
21627# Set defines required to build DLLs and modules using MinGW
21628#
21629########
21630# These options are set for multi-thread DLL module build
21631#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21632#  module:              _DLL
21633#  executable/Magick++: _DLL _MAGICKMOD_
21634MODULE_EXTRA_CPPFLAGS=''
21635LIBRARY_EXTRA_CPPFLAGS=''
21636if test "${native_win32_build}" = 'yes'; then
21637    if test "${libtool_build_shared_libs}" = 'yes'; then
21638        CPPFLAGS="$CPPFLAGS -D_DLL"
21639        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21640        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21641        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21642        if test "$build_modules" = 'yes'; then
21643            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21644        else
21645            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21646        fi
21647    else
21648        CPPFLAGS="$CPPFLAGS -D_LIB"
21649        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21650        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21651    fi
21652    if test "$with_threads" = 'yes'; then
21653         CPPFLAGS="$CPPFLAGS -D_MT"
21654         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21655         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21656    fi
21657fi
21658
21659
21660
21661# Check standard headers
21662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21663$as_echo_n "checking for ANSI C header files... " >&6; }
21664if ${ac_cv_header_stdc+:} false; then :
21665  $as_echo_n "(cached) " >&6
21666else
21667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668/* end confdefs.h.  */
21669#include <stdlib.h>
21670#include <stdarg.h>
21671#include <string.h>
21672#include <float.h>
21673
21674int
21675main ()
21676{
21677
21678  ;
21679  return 0;
21680}
21681_ACEOF
21682if ac_fn_c_try_compile "$LINENO"; then :
21683  ac_cv_header_stdc=yes
21684else
21685  ac_cv_header_stdc=no
21686fi
21687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688
21689if test $ac_cv_header_stdc = yes; then
21690  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21692/* end confdefs.h.  */
21693#include <string.h>
21694
21695_ACEOF
21696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21697  $EGREP "memchr" >/dev/null 2>&1; then :
21698
21699else
21700  ac_cv_header_stdc=no
21701fi
21702rm -f conftest*
21703
21704fi
21705
21706if test $ac_cv_header_stdc = yes; then
21707  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709/* end confdefs.h.  */
21710#include <stdlib.h>
21711
21712_ACEOF
21713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21714  $EGREP "free" >/dev/null 2>&1; then :
21715
21716else
21717  ac_cv_header_stdc=no
21718fi
21719rm -f conftest*
21720
21721fi
21722
21723if test $ac_cv_header_stdc = yes; then
21724  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21725  if test "$cross_compiling" = yes; then :
21726  :
21727else
21728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21729/* end confdefs.h.  */
21730#include <ctype.h>
21731#include <stdlib.h>
21732#if ((' ' & 0x0FF) == 0x020)
21733# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21734# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21735#else
21736# define ISLOWER(c) \
21737		   (('a' <= (c) && (c) <= 'i') \
21738		     || ('j' <= (c) && (c) <= 'r') \
21739		     || ('s' <= (c) && (c) <= 'z'))
21740# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21741#endif
21742
21743#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21744int
21745main ()
21746{
21747  int i;
21748  for (i = 0; i < 256; i++)
21749    if (XOR (islower (i), ISLOWER (i))
21750	|| toupper (i) != TOUPPER (i))
21751      return 2;
21752  return 0;
21753}
21754_ACEOF
21755if ac_fn_c_try_run "$LINENO"; then :
21756
21757else
21758  ac_cv_header_stdc=no
21759fi
21760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21761  conftest.$ac_objext conftest.beam conftest.$ac_ext
21762fi
21763
21764fi
21765fi
21766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21767$as_echo "$ac_cv_header_stdc" >&6; }
21768if test $ac_cv_header_stdc = yes; then
21769
21770$as_echo "#define STDC_HEADERS 1" >>confdefs.h
21771
21772fi
21773
21774if ! test x"$ac_cv_header_stdc" = x"yes"; then
21775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21776    header files.  Compilation cannot proceed.  Please install the ANSI C
21777    headers and rerun this script." >&5
21778$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21779    header files.  Compilation cannot proceed.  Please install the ANSI C
21780    headers and rerun this script." >&2;};
21781fi
21782
21783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21784$as_echo_n "checking whether to enable assertions... " >&6; }
21785  # Check whether --enable-assert was given.
21786if test "${enable_assert+set}" = set; then :
21787  enableval=$enable_assert; ac_enable_assert=$enableval
21788     if       test "x$enableval" = xno; then :
21789
21790$as_echo "#define NDEBUG 1" >>confdefs.h
21791
21792elif test "x$enableval" != xyes; then :
21793  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21794$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21795	ac_enable_assert=yes
21796fi
21797else
21798  ac_enable_assert=yes
21799fi
21800
21801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21802$as_echo "$ac_enable_assert" >&6; }
21803
21804ac_header_dirent=no
21805for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21806  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21808$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21809if eval \${$as_ac_Header+:} false; then :
21810  $as_echo_n "(cached) " >&6
21811else
21812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21813/* end confdefs.h.  */
21814#include <sys/types.h>
21815#include <$ac_hdr>
21816
21817int
21818main ()
21819{
21820if ((DIR *) 0)
21821return 0;
21822  ;
21823  return 0;
21824}
21825_ACEOF
21826if ac_fn_c_try_compile "$LINENO"; then :
21827  eval "$as_ac_Header=yes"
21828else
21829  eval "$as_ac_Header=no"
21830fi
21831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21832fi
21833eval ac_res=\$$as_ac_Header
21834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21835$as_echo "$ac_res" >&6; }
21836if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21837  cat >>confdefs.h <<_ACEOF
21838#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21839_ACEOF
21840
21841ac_header_dirent=$ac_hdr; break
21842fi
21843
21844done
21845# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21846if test $ac_header_dirent = dirent.h; then
21847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21848$as_echo_n "checking for library containing opendir... " >&6; }
21849if ${ac_cv_search_opendir+:} false; then :
21850  $as_echo_n "(cached) " >&6
21851else
21852  ac_func_search_save_LIBS=$LIBS
21853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854/* end confdefs.h.  */
21855
21856/* Override any GCC internal prototype to avoid an error.
21857   Use char because int might match the return type of a GCC
21858   builtin and then its argument prototype would still apply.  */
21859#ifdef __cplusplus
21860extern "C"
21861#endif
21862char opendir ();
21863int
21864main ()
21865{
21866return opendir ();
21867  ;
21868  return 0;
21869}
21870_ACEOF
21871for ac_lib in '' dir; do
21872  if test -z "$ac_lib"; then
21873    ac_res="none required"
21874  else
21875    ac_res=-l$ac_lib
21876    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21877  fi
21878  if ac_fn_c_try_link "$LINENO"; then :
21879  ac_cv_search_opendir=$ac_res
21880fi
21881rm -f core conftest.err conftest.$ac_objext \
21882    conftest$ac_exeext
21883  if ${ac_cv_search_opendir+:} false; then :
21884  break
21885fi
21886done
21887if ${ac_cv_search_opendir+:} false; then :
21888
21889else
21890  ac_cv_search_opendir=no
21891fi
21892rm conftest.$ac_ext
21893LIBS=$ac_func_search_save_LIBS
21894fi
21895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21896$as_echo "$ac_cv_search_opendir" >&6; }
21897ac_res=$ac_cv_search_opendir
21898if test "$ac_res" != no; then :
21899  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21900
21901fi
21902
21903else
21904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21905$as_echo_n "checking for library containing opendir... " >&6; }
21906if ${ac_cv_search_opendir+:} false; then :
21907  $as_echo_n "(cached) " >&6
21908else
21909  ac_func_search_save_LIBS=$LIBS
21910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911/* end confdefs.h.  */
21912
21913/* Override any GCC internal prototype to avoid an error.
21914   Use char because int might match the return type of a GCC
21915   builtin and then its argument prototype would still apply.  */
21916#ifdef __cplusplus
21917extern "C"
21918#endif
21919char opendir ();
21920int
21921main ()
21922{
21923return opendir ();
21924  ;
21925  return 0;
21926}
21927_ACEOF
21928for ac_lib in '' x; do
21929  if test -z "$ac_lib"; then
21930    ac_res="none required"
21931  else
21932    ac_res=-l$ac_lib
21933    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21934  fi
21935  if ac_fn_c_try_link "$LINENO"; then :
21936  ac_cv_search_opendir=$ac_res
21937fi
21938rm -f core conftest.err conftest.$ac_objext \
21939    conftest$ac_exeext
21940  if ${ac_cv_search_opendir+:} false; then :
21941  break
21942fi
21943done
21944if ${ac_cv_search_opendir+:} false; then :
21945
21946else
21947  ac_cv_search_opendir=no
21948fi
21949rm conftest.$ac_ext
21950LIBS=$ac_func_search_save_LIBS
21951fi
21952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21953$as_echo "$ac_cv_search_opendir" >&6; }
21954ac_res=$ac_cv_search_opendir
21955if test "$ac_res" != no; then :
21956  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21957
21958fi
21959
21960fi
21961
21962
21963# Check additional headers
21964for 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/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
21965do :
21966  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21967ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21969  cat >>confdefs.h <<_ACEOF
21970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21971_ACEOF
21972
21973fi
21974
21975done
21976
21977
21978########
21979#
21980# Checks for typedefs, structures, and compiler characteristics.
21981#
21982########
21983
21984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21985$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21986if ${ac_cv_header_stdbool_h+:} false; then :
21987  $as_echo_n "(cached) " >&6
21988else
21989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990/* end confdefs.h.  */
21991
21992             #include <stdbool.h>
21993             #ifndef bool
21994              "error: bool is not defined"
21995             #endif
21996             #ifndef false
21997              "error: false is not defined"
21998             #endif
21999             #if false
22000              "error: false is not 0"
22001             #endif
22002             #ifndef true
22003              "error: true is not defined"
22004             #endif
22005             #if true != 1
22006              "error: true is not 1"
22007             #endif
22008             #ifndef __bool_true_false_are_defined
22009              "error: __bool_true_false_are_defined is not defined"
22010             #endif
22011
22012             struct s { _Bool s: 1; _Bool t; } s;
22013
22014             char a[true == 1 ? 1 : -1];
22015             char b[false == 0 ? 1 : -1];
22016             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22017             char d[(bool) 0.5 == true ? 1 : -1];
22018             /* See body of main program for 'e'.  */
22019             char f[(_Bool) 0.0 == false ? 1 : -1];
22020             char g[true];
22021             char h[sizeof (_Bool)];
22022             char i[sizeof s.t];
22023             enum { j = false, k = true, l = false * true, m = true * 256 };
22024             /* The following fails for
22025                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22026             _Bool n[m];
22027             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22028             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22029             /* Catch a bug in an HP-UX C compiler.  See
22030                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22031                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22032              */
22033             _Bool q = true;
22034             _Bool *pq = &q;
22035
22036int
22037main ()
22038{
22039
22040             bool e = &s;
22041             *pq |= q;
22042             *pq |= ! q;
22043             /* Refer to every declared value, to avoid compiler optimizations.  */
22044             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22045                     + !m + !n + !o + !p + !q + !pq);
22046
22047  ;
22048  return 0;
22049}
22050_ACEOF
22051if ac_fn_c_try_compile "$LINENO"; then :
22052  ac_cv_header_stdbool_h=yes
22053else
22054  ac_cv_header_stdbool_h=no
22055fi
22056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057fi
22058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22059$as_echo "$ac_cv_header_stdbool_h" >&6; }
22060   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22061if test "x$ac_cv_type__Bool" = xyes; then :
22062
22063cat >>confdefs.h <<_ACEOF
22064#define HAVE__BOOL 1
22065_ACEOF
22066
22067
22068fi
22069
22070
22071if test $ac_cv_header_stdbool_h = yes; then
22072
22073$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
22074
22075fi
22076
22077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22078$as_echo_n "checking for working volatile... " >&6; }
22079if ${ac_cv_c_volatile+:} false; then :
22080  $as_echo_n "(cached) " >&6
22081else
22082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22083/* end confdefs.h.  */
22084
22085int
22086main ()
22087{
22088
22089volatile int x;
22090int * volatile y = (int *) 0;
22091return !x && !y;
22092  ;
22093  return 0;
22094}
22095_ACEOF
22096if ac_fn_c_try_compile "$LINENO"; then :
22097  ac_cv_c_volatile=yes
22098else
22099  ac_cv_c_volatile=no
22100fi
22101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102fi
22103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22104$as_echo "$ac_cv_c_volatile" >&6; }
22105if test $ac_cv_c_volatile = no; then
22106
22107$as_echo "#define volatile /**/" >>confdefs.h
22108
22109fi
22110
22111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22112$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22113if ${ac_cv_c_stringize+:} false; then :
22114  $as_echo_n "(cached) " >&6
22115else
22116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117/* end confdefs.h.  */
22118#define x(y) #y
22119
22120char *s = x(teststring);
22121_ACEOF
22122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22123  $EGREP "#teststring" >/dev/null 2>&1; then :
22124  ac_cv_c_stringize=no
22125else
22126  ac_cv_c_stringize=yes
22127fi
22128rm -f conftest*
22129
22130fi
22131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22132$as_echo "$ac_cv_c_stringize" >&6; }
22133if test $ac_cv_c_stringize = yes; then
22134
22135$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22136
22137fi
22138
22139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22140$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22141if ${ac_cv_header_stat_broken+:} false; then :
22142  $as_echo_n "(cached) " >&6
22143else
22144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22145/* end confdefs.h.  */
22146#include <sys/types.h>
22147#include <sys/stat.h>
22148
22149#if defined S_ISBLK && defined S_IFDIR
22150extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22151#endif
22152
22153#if defined S_ISBLK && defined S_IFCHR
22154extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22155#endif
22156
22157#if defined S_ISLNK && defined S_IFREG
22158extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22159#endif
22160
22161#if defined S_ISSOCK && defined S_IFREG
22162extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22163#endif
22164
22165_ACEOF
22166if ac_fn_c_try_compile "$LINENO"; then :
22167  ac_cv_header_stat_broken=no
22168else
22169  ac_cv_header_stat_broken=yes
22170fi
22171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172fi
22173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22174$as_echo "$ac_cv_header_stat_broken" >&6; }
22175if test $ac_cv_header_stat_broken = yes; then
22176
22177$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22178
22179fi
22180
22181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22182$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22183if ${ac_cv_header_time+:} false; then :
22184  $as_echo_n "(cached) " >&6
22185else
22186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187/* end confdefs.h.  */
22188#include <sys/types.h>
22189#include <sys/time.h>
22190#include <time.h>
22191
22192int
22193main ()
22194{
22195if ((struct tm *) 0)
22196return 0;
22197  ;
22198  return 0;
22199}
22200_ACEOF
22201if ac_fn_c_try_compile "$LINENO"; then :
22202  ac_cv_header_time=yes
22203else
22204  ac_cv_header_time=no
22205fi
22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207fi
22208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22209$as_echo "$ac_cv_header_time" >&6; }
22210if test $ac_cv_header_time = yes; then
22211
22212$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22213
22214fi
22215
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22217$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22218if ${ac_cv_struct_tm+:} false; then :
22219  $as_echo_n "(cached) " >&6
22220else
22221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222/* end confdefs.h.  */
22223#include <sys/types.h>
22224#include <time.h>
22225
22226int
22227main ()
22228{
22229struct tm tm;
22230				     int *p = &tm.tm_sec;
22231				     return !p;
22232  ;
22233  return 0;
22234}
22235_ACEOF
22236if ac_fn_c_try_compile "$LINENO"; then :
22237  ac_cv_struct_tm=time.h
22238else
22239  ac_cv_struct_tm=sys/time.h
22240fi
22241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242fi
22243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22244$as_echo "$ac_cv_struct_tm" >&6; }
22245if test $ac_cv_struct_tm = sys/time.h; then
22246
22247$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22248
22249fi
22250
22251ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22252#include <$ac_cv_struct_tm>
22253
22254"
22255if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22256
22257cat >>confdefs.h <<_ACEOF
22258#define HAVE_STRUCT_TM_TM_ZONE 1
22259_ACEOF
22260
22261
22262fi
22263
22264if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22265
22266$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22267
22268else
22269  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22270"
22271if test "x$ac_cv_have_decl_tzname" = xyes; then :
22272  ac_have_decl=1
22273else
22274  ac_have_decl=0
22275fi
22276
22277cat >>confdefs.h <<_ACEOF
22278#define HAVE_DECL_TZNAME $ac_have_decl
22279_ACEOF
22280
22281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22282$as_echo_n "checking for tzname... " >&6; }
22283if ${ac_cv_var_tzname+:} false; then :
22284  $as_echo_n "(cached) " >&6
22285else
22286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287/* end confdefs.h.  */
22288#include <time.h>
22289#if !HAVE_DECL_TZNAME
22290extern char *tzname[];
22291#endif
22292
22293int
22294main ()
22295{
22296return tzname[0][0];
22297  ;
22298  return 0;
22299}
22300_ACEOF
22301if ac_fn_c_try_link "$LINENO"; then :
22302  ac_cv_var_tzname=yes
22303else
22304  ac_cv_var_tzname=no
22305fi
22306rm -f core conftest.err conftest.$ac_objext \
22307    conftest$ac_exeext conftest.$ac_ext
22308fi
22309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22310$as_echo "$ac_cv_var_tzname" >&6; }
22311  if test $ac_cv_var_tzname = yes; then
22312
22313$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22314
22315  fi
22316fi
22317
22318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22319$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22320if ${ac_cv_sys_interpreter+:} false; then :
22321  $as_echo_n "(cached) " >&6
22322else
22323  echo '#! /bin/cat
22324exit 69
22325' >conftest
22326chmod u+x conftest
22327(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22328if test $? -ne 69; then
22329   ac_cv_sys_interpreter=yes
22330else
22331   ac_cv_sys_interpreter=no
22332fi
22333rm -f conftest
22334fi
22335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22336$as_echo "$ac_cv_sys_interpreter" >&6; }
22337interpval=$ac_cv_sys_interpreter
22338
22339
22340#
22341# Checks for language qualifiers and semantics.
22342#
22343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22344$as_echo_n "checking whether char is unsigned... " >&6; }
22345if ${ac_cv_c_char_unsigned+:} false; then :
22346  $as_echo_n "(cached) " >&6
22347else
22348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349/* end confdefs.h.  */
22350$ac_includes_default
22351int
22352main ()
22353{
22354static int test_array [1 - 2 * !(((char) -1) < 0)];
22355test_array [0] = 0;
22356return test_array [0];
22357
22358  ;
22359  return 0;
22360}
22361_ACEOF
22362if ac_fn_c_try_compile "$LINENO"; then :
22363  ac_cv_c_char_unsigned=no
22364else
22365  ac_cv_c_char_unsigned=yes
22366fi
22367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368fi
22369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22370$as_echo "$ac_cv_c_char_unsigned" >&6; }
22371if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22372  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22373
22374fi
22375
22376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22377$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22378if ${ac_cv_c_const+:} false; then :
22379  $as_echo_n "(cached) " >&6
22380else
22381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382/* end confdefs.h.  */
22383
22384int
22385main ()
22386{
22387
22388#ifndef __cplusplus
22389  /* Ultrix mips cc rejects this sort of thing.  */
22390  typedef int charset[2];
22391  const charset cs = { 0, 0 };
22392  /* SunOS 4.1.1 cc rejects this.  */
22393  char const *const *pcpcc;
22394  char **ppc;
22395  /* NEC SVR4.0.2 mips cc rejects this.  */
22396  struct point {int x, y;};
22397  static struct point const zero = {0,0};
22398  /* AIX XL C 1.02.0.0 rejects this.
22399     It does not let you subtract one const X* pointer from another in
22400     an arm of an if-expression whose if-part is not a constant
22401     expression */
22402  const char *g = "string";
22403  pcpcc = &g + (g ? g-g : 0);
22404  /* HPUX 7.0 cc rejects these. */
22405  ++pcpcc;
22406  ppc = (char**) pcpcc;
22407  pcpcc = (char const *const *) ppc;
22408  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22409    char tx;
22410    char *t = &tx;
22411    char const *s = 0 ? (char *) 0 : (char const *) 0;
22412
22413    *t++ = 0;
22414    if (s) return 0;
22415  }
22416  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22417    int x[] = {25, 17};
22418    const int *foo = &x[0];
22419    ++foo;
22420  }
22421  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22422    typedef const int *iptr;
22423    iptr p = 0;
22424    ++p;
22425  }
22426  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22427       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22428    struct s { int j; const int *ap[3]; } bx;
22429    struct s *b = &bx; b->j = 5;
22430  }
22431  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22432    const int foo = 10;
22433    if (!foo) return 0;
22434  }
22435  return !cs[0] && !zero.x;
22436#endif
22437
22438  ;
22439  return 0;
22440}
22441_ACEOF
22442if ac_fn_c_try_compile "$LINENO"; then :
22443  ac_cv_c_const=yes
22444else
22445  ac_cv_c_const=no
22446fi
22447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22448fi
22449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22450$as_echo "$ac_cv_c_const" >&6; }
22451if test $ac_cv_c_const = no; then
22452
22453$as_echo "#define const /**/" >>confdefs.h
22454
22455fi
22456
22457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22458$as_echo_n "checking for inline... " >&6; }
22459if ${ac_cv_c_inline+:} false; then :
22460  $as_echo_n "(cached) " >&6
22461else
22462  ac_cv_c_inline=no
22463for ac_kw in inline __inline__ __inline; do
22464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465/* end confdefs.h.  */
22466#ifndef __cplusplus
22467typedef int foo_t;
22468static $ac_kw foo_t static_foo () {return 0; }
22469$ac_kw foo_t foo () {return 0; }
22470#endif
22471
22472_ACEOF
22473if ac_fn_c_try_compile "$LINENO"; then :
22474  ac_cv_c_inline=$ac_kw
22475fi
22476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477  test "$ac_cv_c_inline" != no && break
22478done
22479
22480fi
22481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22482$as_echo "$ac_cv_c_inline" >&6; }
22483
22484case $ac_cv_c_inline in
22485  inline | yes) ;;
22486  *)
22487    case $ac_cv_c_inline in
22488      no) ac_val=;;
22489      *) ac_val=$ac_cv_c_inline;;
22490    esac
22491    cat >>confdefs.h <<_ACEOF
22492#ifndef __cplusplus
22493#define inline $ac_val
22494#endif
22495_ACEOF
22496    ;;
22497esac
22498
22499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22500$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22501if ${ac_cv_c_restrict+:} false; then :
22502  $as_echo_n "(cached) " >&6
22503else
22504  ac_cv_c_restrict=no
22505   # The order here caters to the fact that C++ does not require restrict.
22506   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22508/* end confdefs.h.  */
22509typedef int * int_ptr;
22510	int foo (int_ptr $ac_kw ip) {
22511	return ip[0];
22512       }
22513int
22514main ()
22515{
22516int s[1];
22517	int * $ac_kw t = s;
22518	t[0] = 0;
22519	return foo(t)
22520  ;
22521  return 0;
22522}
22523_ACEOF
22524if ac_fn_c_try_compile "$LINENO"; then :
22525  ac_cv_c_restrict=$ac_kw
22526fi
22527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528     test "$ac_cv_c_restrict" != no && break
22529   done
22530
22531fi
22532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22533$as_echo "$ac_cv_c_restrict" >&6; }
22534
22535 case $ac_cv_c_restrict in
22536   restrict) ;;
22537   no) $as_echo "#define restrict /**/" >>confdefs.h
22538 ;;
22539   *)  cat >>confdefs.h <<_ACEOF
22540#define restrict $ac_cv_c_restrict
22541_ACEOF
22542 ;;
22543 esac
22544
22545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22546$as_echo_n "checking for working volatile... " >&6; }
22547if ${ac_cv_c_volatile+:} false; then :
22548  $as_echo_n "(cached) " >&6
22549else
22550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551/* end confdefs.h.  */
22552
22553int
22554main ()
22555{
22556
22557volatile int x;
22558int * volatile y = (int *) 0;
22559return !x && !y;
22560  ;
22561  return 0;
22562}
22563_ACEOF
22564if ac_fn_c_try_compile "$LINENO"; then :
22565  ac_cv_c_volatile=yes
22566else
22567  ac_cv_c_volatile=no
22568fi
22569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570fi
22571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22572$as_echo "$ac_cv_c_volatile" >&6; }
22573if test $ac_cv_c_volatile = no; then
22574
22575$as_echo "#define volatile /**/" >>confdefs.h
22576
22577fi
22578
22579
22580# If words are stored with the most significant byte first (like
22581# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22583$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22584if ${ac_cv_c_bigendian+:} false; then :
22585  $as_echo_n "(cached) " >&6
22586else
22587  ac_cv_c_bigendian=unknown
22588    # See if we're dealing with a universal compiler.
22589    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590/* end confdefs.h.  */
22591#ifndef __APPLE_CC__
22592	       not a universal capable compiler
22593	     #endif
22594	     typedef int dummy;
22595
22596_ACEOF
22597if ac_fn_c_try_compile "$LINENO"; then :
22598
22599	# Check for potential -arch flags.  It is not universal unless
22600	# there are at least two -arch flags with different values.
22601	ac_arch=
22602	ac_prev=
22603	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22604	 if test -n "$ac_prev"; then
22605	   case $ac_word in
22606	     i?86 | x86_64 | ppc | ppc64)
22607	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22608		 ac_arch=$ac_word
22609	       else
22610		 ac_cv_c_bigendian=universal
22611		 break
22612	       fi
22613	       ;;
22614	   esac
22615	   ac_prev=
22616	 elif test "x$ac_word" = "x-arch"; then
22617	   ac_prev=arch
22618	 fi
22619       done
22620fi
22621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622    if test $ac_cv_c_bigendian = unknown; then
22623      # See if sys/param.h defines the BYTE_ORDER macro.
22624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625/* end confdefs.h.  */
22626#include <sys/types.h>
22627	     #include <sys/param.h>
22628
22629int
22630main ()
22631{
22632#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22633		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22634		     && LITTLE_ENDIAN)
22635	      bogus endian macros
22636	     #endif
22637
22638  ;
22639  return 0;
22640}
22641_ACEOF
22642if ac_fn_c_try_compile "$LINENO"; then :
22643  # It does; now see whether it defined to BIG_ENDIAN or not.
22644	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h.  */
22646#include <sys/types.h>
22647		#include <sys/param.h>
22648
22649int
22650main ()
22651{
22652#if BYTE_ORDER != BIG_ENDIAN
22653		 not big endian
22654		#endif
22655
22656  ;
22657  return 0;
22658}
22659_ACEOF
22660if ac_fn_c_try_compile "$LINENO"; then :
22661  ac_cv_c_bigendian=yes
22662else
22663  ac_cv_c_bigendian=no
22664fi
22665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666fi
22667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668    fi
22669    if test $ac_cv_c_bigendian = unknown; then
22670      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672/* end confdefs.h.  */
22673#include <limits.h>
22674
22675int
22676main ()
22677{
22678#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22679	      bogus endian macros
22680	     #endif
22681
22682  ;
22683  return 0;
22684}
22685_ACEOF
22686if ac_fn_c_try_compile "$LINENO"; then :
22687  # It does; now see whether it defined to _BIG_ENDIAN or not.
22688	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689/* end confdefs.h.  */
22690#include <limits.h>
22691
22692int
22693main ()
22694{
22695#ifndef _BIG_ENDIAN
22696		 not big endian
22697		#endif
22698
22699  ;
22700  return 0;
22701}
22702_ACEOF
22703if ac_fn_c_try_compile "$LINENO"; then :
22704  ac_cv_c_bigendian=yes
22705else
22706  ac_cv_c_bigendian=no
22707fi
22708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709fi
22710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711    fi
22712    if test $ac_cv_c_bigendian = unknown; then
22713      # Compile a test program.
22714      if test "$cross_compiling" = yes; then :
22715  # Try to guess by grepping values from an object file.
22716	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717/* end confdefs.h.  */
22718short int ascii_mm[] =
22719		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22720		short int ascii_ii[] =
22721		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22722		int use_ascii (int i) {
22723		  return ascii_mm[i] + ascii_ii[i];
22724		}
22725		short int ebcdic_ii[] =
22726		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22727		short int ebcdic_mm[] =
22728		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22729		int use_ebcdic (int i) {
22730		  return ebcdic_mm[i] + ebcdic_ii[i];
22731		}
22732		extern int foo;
22733
22734int
22735main ()
22736{
22737return use_ascii (foo) == use_ebcdic (foo);
22738  ;
22739  return 0;
22740}
22741_ACEOF
22742if ac_fn_c_try_compile "$LINENO"; then :
22743  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22744	      ac_cv_c_bigendian=yes
22745	    fi
22746	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22747	      if test "$ac_cv_c_bigendian" = unknown; then
22748		ac_cv_c_bigendian=no
22749	      else
22750		# finding both strings is unlikely to happen, but who knows?
22751		ac_cv_c_bigendian=unknown
22752	      fi
22753	    fi
22754fi
22755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756else
22757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758/* end confdefs.h.  */
22759$ac_includes_default
22760int
22761main ()
22762{
22763
22764	     /* Are we little or big endian?  From Harbison&Steele.  */
22765	     union
22766	     {
22767	       long int l;
22768	       char c[sizeof (long int)];
22769	     } u;
22770	     u.l = 1;
22771	     return u.c[sizeof (long int) - 1] == 1;
22772
22773  ;
22774  return 0;
22775}
22776_ACEOF
22777if ac_fn_c_try_run "$LINENO"; then :
22778  ac_cv_c_bigendian=no
22779else
22780  ac_cv_c_bigendian=yes
22781fi
22782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22783  conftest.$ac_objext conftest.beam conftest.$ac_ext
22784fi
22785
22786    fi
22787fi
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22789$as_echo "$ac_cv_c_bigendian" >&6; }
22790 case $ac_cv_c_bigendian in #(
22791   yes)
22792     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22793;; #(
22794   no)
22795      ;; #(
22796   universal)
22797
22798$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22799
22800     ;; #(
22801   *)
22802     as_fn_error $? "unknown endianness
22803 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22804 esac
22805
22806
22807# Define to a suitable type, if standard headers do not define it.
22808ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22809case $ac_cv_c_int8_t in #(
22810  no|yes) ;; #(
22811  *)
22812
22813cat >>confdefs.h <<_ACEOF
22814#define int8_t $ac_cv_c_int8_t
22815_ACEOF
22816;;
22817esac
22818
22819ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22820case $ac_cv_c_int16_t in #(
22821  no|yes) ;; #(
22822  *)
22823
22824cat >>confdefs.h <<_ACEOF
22825#define int16_t $ac_cv_c_int16_t
22826_ACEOF
22827;;
22828esac
22829
22830ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22831case $ac_cv_c_int32_t in #(
22832  no|yes) ;; #(
22833  *)
22834
22835cat >>confdefs.h <<_ACEOF
22836#define int32_t $ac_cv_c_int32_t
22837_ACEOF
22838;;
22839esac
22840
22841ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22842case $ac_cv_c_int64_t in #(
22843  no|yes) ;; #(
22844  *)
22845
22846cat >>confdefs.h <<_ACEOF
22847#define int64_t $ac_cv_c_int64_t
22848_ACEOF
22849;;
22850esac
22851
22852
22853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22854$as_echo_n "checking for unsigned long long int... " >&6; }
22855if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22856  $as_echo_n "(cached) " >&6
22857else
22858  ac_cv_type_unsigned_long_long_int=yes
22859     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22861/* end confdefs.h.  */
22862
22863  /* For now, do not test the preprocessor; as of 2007 there are too many
22864         implementations with broken preprocessors.  Perhaps this can
22865         be revisited in 2012.  In the meantime, code should not expect
22866         #if to work with literals wider than 32 bits.  */
22867      /* Test literals.  */
22868      long long int ll = 9223372036854775807ll;
22869      long long int nll = -9223372036854775807LL;
22870      unsigned long long int ull = 18446744073709551615ULL;
22871      /* Test constant expressions.   */
22872      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22873                     ? 1 : -1)];
22874      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22875                     ? 1 : -1)];
22876      int i = 63;
22877int
22878main ()
22879{
22880/* Test availability of runtime routines for shift and division.  */
22881      long long int llmax = 9223372036854775807ll;
22882      unsigned long long int ullmax = 18446744073709551615ull;
22883      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22884              | (llmax / ll) | (llmax % ll)
22885              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22886              | (ullmax / ull) | (ullmax % ull));
22887  ;
22888  return 0;
22889}
22890
22891_ACEOF
22892if ac_fn_c_try_link "$LINENO"; then :
22893
22894else
22895  ac_cv_type_unsigned_long_long_int=no
22896fi
22897rm -f core conftest.err conftest.$ac_objext \
22898    conftest$ac_exeext conftest.$ac_ext
22899     fi
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22902$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22903  if test $ac_cv_type_unsigned_long_long_int = yes; then
22904
22905$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22906
22907  fi
22908
22909
22910
22911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22912$as_echo_n "checking for long long int... " >&6; }
22913if ${ac_cv_type_long_long_int+:} false; then :
22914  $as_echo_n "(cached) " >&6
22915else
22916  ac_cv_type_long_long_int=yes
22917      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22918        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22919        if test $ac_cv_type_long_long_int = yes; then
22920                                        if test "$cross_compiling" = yes; then :
22921  :
22922else
22923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h.  */
22925#include <limits.h>
22926                 #ifndef LLONG_MAX
22927                 # define HALF \
22928                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22929                 # define LLONG_MAX (HALF - 1 + HALF)
22930                 #endif
22931int
22932main ()
22933{
22934long long int n = 1;
22935                 int i;
22936                 for (i = 0; ; i++)
22937                   {
22938                     long long int m = n << i;
22939                     if (m >> i != n)
22940                       return 1;
22941                     if (LLONG_MAX / 2 < m)
22942                       break;
22943                   }
22944                 return 0;
22945  ;
22946  return 0;
22947}
22948_ACEOF
22949if ac_fn_c_try_run "$LINENO"; then :
22950
22951else
22952  ac_cv_type_long_long_int=no
22953fi
22954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22955  conftest.$ac_objext conftest.beam conftest.$ac_ext
22956fi
22957
22958        fi
22959      fi
22960fi
22961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22962$as_echo "$ac_cv_type_long_long_int" >&6; }
22963  if test $ac_cv_type_long_long_int = yes; then
22964
22965$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22966
22967  fi
22968
22969
22970
22971  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22972if test "x$ac_cv_type_intmax_t" = xyes; then :
22973
22974$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22975
22976else
22977  test $ac_cv_type_long_long_int = yes \
22978       && ac_type='long long int' \
22979       || ac_type='long int'
22980
22981cat >>confdefs.h <<_ACEOF
22982#define intmax_t $ac_type
22983_ACEOF
22984
22985fi
22986
22987
22988
22989  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22990if test "x$ac_cv_type_intptr_t" = xyes; then :
22991
22992$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22993
22994else
22995  for ac_type in 'int' 'long int' 'long long int'; do
22996       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22997/* end confdefs.h.  */
22998$ac_includes_default
22999int
23000main ()
23001{
23002static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23003test_array [0] = 0;
23004return test_array [0];
23005
23006  ;
23007  return 0;
23008}
23009_ACEOF
23010if ac_fn_c_try_compile "$LINENO"; then :
23011
23012cat >>confdefs.h <<_ACEOF
23013#define intptr_t $ac_type
23014_ACEOF
23015
23016	  ac_type=
23017fi
23018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019       test -z "$ac_type" && break
23020     done
23021fi
23022
23023
23024
23025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23026$as_echo_n "checking for long double... " >&6; }
23027if ${ac_cv_type_long_double+:} false; then :
23028  $as_echo_n "(cached) " >&6
23029else
23030  if test "$GCC" = yes; then
23031       ac_cv_type_long_double=yes
23032     else
23033       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23034/* end confdefs.h.  */
23035/* The Stardent Vistra knows sizeof (long double), but does
23036		 not support it.  */
23037	      long double foo = 0.0L;
23038int
23039main ()
23040{
23041static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23042	      sizeof (double) <= sizeof (long double))];
23043test_array [0] = 0;
23044return test_array [0];
23045
23046  ;
23047  return 0;
23048}
23049_ACEOF
23050if ac_fn_c_try_compile "$LINENO"; then :
23051  ac_cv_type_long_double=yes
23052else
23053  ac_cv_type_long_double=no
23054fi
23055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056     fi
23057fi
23058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23059$as_echo "$ac_cv_type_long_double" >&6; }
23060  if test $ac_cv_type_long_double = yes; then
23061
23062$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23063
23064  fi
23065
23066
23067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
23068$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23069if ${ac_cv_type_long_double_wider+:} false; then :
23070  $as_echo_n "(cached) " >&6
23071else
23072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073/* end confdefs.h.  */
23074#include <float.h>
23075	    long double const a[] =
23076	      {
23077		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23078		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23079	      };
23080	    long double
23081	    f (long double x)
23082	    {
23083	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23084			+ (x ? f (x) : 'c'));
23085	    }
23086
23087int
23088main ()
23089{
23090static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23091		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
23092		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
23093		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23094	    && (int) LDBL_EPSILON == 0
23095	  )];
23096test_array [0] = 0;
23097return test_array [0];
23098
23099  ;
23100  return 0;
23101}
23102_ACEOF
23103if ac_fn_c_try_compile "$LINENO"; then :
23104  ac_cv_type_long_double_wider=yes
23105else
23106  ac_cv_type_long_double_wider=no
23107fi
23108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109fi
23110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
23111$as_echo "$ac_cv_type_long_double_wider" >&6; }
23112  if test $ac_cv_type_long_double_wider = yes; then
23113
23114$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
23115
23116  fi
23117
23118
23119
23120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23121$as_echo_n "checking for long long int... " >&6; }
23122if ${ac_cv_type_long_long_int+:} false; then :
23123  $as_echo_n "(cached) " >&6
23124else
23125  ac_cv_type_long_long_int=yes
23126      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23127        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23128        if test $ac_cv_type_long_long_int = yes; then
23129                                        if test "$cross_compiling" = yes; then :
23130  :
23131else
23132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133/* end confdefs.h.  */
23134#include <limits.h>
23135                 #ifndef LLONG_MAX
23136                 # define HALF \
23137                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23138                 # define LLONG_MAX (HALF - 1 + HALF)
23139                 #endif
23140int
23141main ()
23142{
23143long long int n = 1;
23144                 int i;
23145                 for (i = 0; ; i++)
23146                   {
23147                     long long int m = n << i;
23148                     if (m >> i != n)
23149                       return 1;
23150                     if (LLONG_MAX / 2 < m)
23151                       break;
23152                   }
23153                 return 0;
23154  ;
23155  return 0;
23156}
23157_ACEOF
23158if ac_fn_c_try_run "$LINENO"; then :
23159
23160else
23161  ac_cv_type_long_long_int=no
23162fi
23163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23164  conftest.$ac_objext conftest.beam conftest.$ac_ext
23165fi
23166
23167        fi
23168      fi
23169fi
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23171$as_echo "$ac_cv_type_long_long_int" >&6; }
23172  if test $ac_cv_type_long_long_int = yes; then
23173
23174$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23175
23176  fi
23177
23178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23179$as_echo_n "checking for mbstate_t... " >&6; }
23180if ${ac_cv_type_mbstate_t+:} false; then :
23181  $as_echo_n "(cached) " >&6
23182else
23183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184/* end confdefs.h.  */
23185$ac_includes_default
23186#	    include <wchar.h>
23187int
23188main ()
23189{
23190mbstate_t x; return sizeof x;
23191  ;
23192  return 0;
23193}
23194_ACEOF
23195if ac_fn_c_try_compile "$LINENO"; then :
23196  ac_cv_type_mbstate_t=yes
23197else
23198  ac_cv_type_mbstate_t=no
23199fi
23200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201fi
23202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23203$as_echo "$ac_cv_type_mbstate_t" >&6; }
23204   if test $ac_cv_type_mbstate_t = yes; then
23205
23206$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23207
23208   else
23209
23210$as_echo "#define mbstate_t int" >>confdefs.h
23211
23212   fi
23213ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23214if test "x$ac_cv_type_mode_t" = xyes; then :
23215
23216else
23217
23218cat >>confdefs.h <<_ACEOF
23219#define mode_t int
23220_ACEOF
23221
23222fi
23223
23224ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23225if test "x$ac_cv_type_off_t" = xyes; then :
23226
23227else
23228
23229cat >>confdefs.h <<_ACEOF
23230#define off_t long int
23231_ACEOF
23232
23233fi
23234
23235ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23236if test "x$ac_cv_type_pid_t" = xyes; then :
23237
23238else
23239
23240cat >>confdefs.h <<_ACEOF
23241#define pid_t int
23242_ACEOF
23243
23244fi
23245
23246ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23247if test "x$ac_cv_type_size_t" = xyes; then :
23248
23249else
23250
23251cat >>confdefs.h <<_ACEOF
23252#define size_t unsigned int
23253_ACEOF
23254
23255fi
23256
23257ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23258if test "x$ac_cv_type_ssize_t" = xyes; then :
23259
23260else
23261
23262cat >>confdefs.h <<_ACEOF
23263#define ssize_t int
23264_ACEOF
23265
23266fi
23267
23268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23269$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23270if ${ac_cv_type_uid_t+:} false; then :
23271  $as_echo_n "(cached) " >&6
23272else
23273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274/* end confdefs.h.  */
23275#include <sys/types.h>
23276
23277_ACEOF
23278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23279  $EGREP "uid_t" >/dev/null 2>&1; then :
23280  ac_cv_type_uid_t=yes
23281else
23282  ac_cv_type_uid_t=no
23283fi
23284rm -f conftest*
23285
23286fi
23287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23288$as_echo "$ac_cv_type_uid_t" >&6; }
23289if test $ac_cv_type_uid_t = no; then
23290
23291$as_echo "#define uid_t int" >>confdefs.h
23292
23293
23294$as_echo "#define gid_t int" >>confdefs.h
23295
23296fi
23297
23298ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23299case $ac_cv_c_uint8_t in #(
23300  no|yes) ;; #(
23301  *)
23302
23303$as_echo "#define _UINT8_T 1" >>confdefs.h
23304
23305
23306cat >>confdefs.h <<_ACEOF
23307#define uint8_t $ac_cv_c_uint8_t
23308_ACEOF
23309;;
23310  esac
23311
23312ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23313case $ac_cv_c_uint16_t in #(
23314  no|yes) ;; #(
23315  *)
23316
23317
23318cat >>confdefs.h <<_ACEOF
23319#define uint16_t $ac_cv_c_uint16_t
23320_ACEOF
23321;;
23322  esac
23323
23324ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23325case $ac_cv_c_uint32_t in #(
23326  no|yes) ;; #(
23327  *)
23328
23329$as_echo "#define _UINT32_T 1" >>confdefs.h
23330
23331
23332cat >>confdefs.h <<_ACEOF
23333#define uint32_t $ac_cv_c_uint32_t
23334_ACEOF
23335;;
23336  esac
23337
23338ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23339case $ac_cv_c_uint64_t in #(
23340  no|yes) ;; #(
23341  *)
23342
23343$as_echo "#define _UINT64_T 1" >>confdefs.h
23344
23345
23346cat >>confdefs.h <<_ACEOF
23347#define uint64_t $ac_cv_c_uint64_t
23348_ACEOF
23349;;
23350  esac
23351
23352
23353
23354  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23355if test "x$ac_cv_type_uintmax_t" = xyes; then :
23356
23357$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23358
23359else
23360  test $ac_cv_type_unsigned_long_long_int = yes \
23361       && ac_type='unsigned long long int' \
23362       || ac_type='unsigned long int'
23363
23364cat >>confdefs.h <<_ACEOF
23365#define uintmax_t $ac_type
23366_ACEOF
23367
23368fi
23369
23370
23371
23372  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23373if test "x$ac_cv_type_uintptr_t" = xyes; then :
23374
23375$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23376
23377else
23378  for ac_type in 'unsigned int' 'unsigned long int' \
23379	'unsigned long long int'; do
23380       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381/* end confdefs.h.  */
23382$ac_includes_default
23383int
23384main ()
23385{
23386static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23387test_array [0] = 0;
23388return test_array [0];
23389
23390  ;
23391  return 0;
23392}
23393_ACEOF
23394if ac_fn_c_try_compile "$LINENO"; then :
23395
23396cat >>confdefs.h <<_ACEOF
23397#define uintptr_t $ac_type
23398_ACEOF
23399
23400	  ac_type=
23401fi
23402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23403       test -z "$ac_type" && break
23404     done
23405fi
23406
23407
23408
23409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23410$as_echo_n "checking for unsigned long long int... " >&6; }
23411if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23412  $as_echo_n "(cached) " >&6
23413else
23414  ac_cv_type_unsigned_long_long_int=yes
23415     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23416       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23417/* end confdefs.h.  */
23418
23419  /* For now, do not test the preprocessor; as of 2007 there are too many
23420         implementations with broken preprocessors.  Perhaps this can
23421         be revisited in 2012.  In the meantime, code should not expect
23422         #if to work with literals wider than 32 bits.  */
23423      /* Test literals.  */
23424      long long int ll = 9223372036854775807ll;
23425      long long int nll = -9223372036854775807LL;
23426      unsigned long long int ull = 18446744073709551615ULL;
23427      /* Test constant expressions.   */
23428      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23429                     ? 1 : -1)];
23430      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23431                     ? 1 : -1)];
23432      int i = 63;
23433int
23434main ()
23435{
23436/* Test availability of runtime routines for shift and division.  */
23437      long long int llmax = 9223372036854775807ll;
23438      unsigned long long int ullmax = 18446744073709551615ull;
23439      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23440              | (llmax / ll) | (llmax % ll)
23441              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23442              | (ullmax / ull) | (ullmax % ull));
23443  ;
23444  return 0;
23445}
23446
23447_ACEOF
23448if ac_fn_c_try_link "$LINENO"; then :
23449
23450else
23451  ac_cv_type_unsigned_long_long_int=no
23452fi
23453rm -f core conftest.err conftest.$ac_objext \
23454    conftest$ac_exeext conftest.$ac_ext
23455     fi
23456fi
23457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23458$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23459  if test $ac_cv_type_unsigned_long_long_int = yes; then
23460
23461$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23462
23463  fi
23464
23465
23466# Float_t and double_t are intended to be the the most efficient type.
23467ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23468"
23469if test "x$ac_cv_type_float_t" = xyes; then :
23470
23471cat >>confdefs.h <<_ACEOF
23472#define HAVE_FLOAT_T 1
23473_ACEOF
23474
23475
23476fi
23477
23478ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23479"
23480if test "x$ac_cv_type_double_t" = xyes; then :
23481
23482cat >>confdefs.h <<_ACEOF
23483#define HAVE_DOUBLE_T 1
23484_ACEOF
23485
23486
23487fi
23488
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
23493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23494$as_echo_n "checking size of float_t... " >&6; }
23495if ${ac_cv_sizeof_float_t+:} false; then :
23496  $as_echo_n "(cached) " >&6
23497else
23498  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
23499"; then :
23500
23501else
23502  if test "$ac_cv_type_float_t" = yes; then
23503     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23505as_fn_error 77 "cannot compute sizeof (float_t)
23506See \`config.log' for more details" "$LINENO" 5; }
23507   else
23508     ac_cv_sizeof_float_t=0
23509   fi
23510fi
23511
23512fi
23513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23514$as_echo "$ac_cv_sizeof_float_t" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23520_ACEOF
23521
23522
23523# The cast to long int works around a bug in the HP C Compiler
23524# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23525# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23526# This bug is HP SR number 8606223364.
23527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23528$as_echo_n "checking size of double_t... " >&6; }
23529if ${ac_cv_sizeof_double_t+:} false; then :
23530  $as_echo_n "(cached) " >&6
23531else
23532  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
23533"; then :
23534
23535else
23536  if test "$ac_cv_type_double_t" = yes; then
23537     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23539as_fn_error 77 "cannot compute sizeof (double_t)
23540See \`config.log' for more details" "$LINENO" 5; }
23541   else
23542     ac_cv_sizeof_double_t=0
23543   fi
23544fi
23545
23546fi
23547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23548$as_echo "$ac_cv_sizeof_double_t" >&6; }
23549
23550
23551
23552cat >>confdefs.h <<_ACEOF
23553#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23554_ACEOF
23555
23556
23557
23558# Get size of float, double and long double for comparaison.
23559# The cast to long int works around a bug in the HP C Compiler
23560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23562# This bug is HP SR number 8606223364.
23563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23564$as_echo_n "checking size of float... " >&6; }
23565if ${ac_cv_sizeof_float+:} false; then :
23566  $as_echo_n "(cached) " >&6
23567else
23568  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
23569
23570else
23571  if test "$ac_cv_type_float" = yes; then
23572     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23574as_fn_error 77 "cannot compute sizeof (float)
23575See \`config.log' for more details" "$LINENO" 5; }
23576   else
23577     ac_cv_sizeof_float=0
23578   fi
23579fi
23580
23581fi
23582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23583$as_echo "$ac_cv_sizeof_float" >&6; }
23584
23585
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SIZEOF_FLOAT $ac_cv_sizeof_float
23589_ACEOF
23590
23591
23592# The cast to long int works around a bug in the HP C Compiler
23593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23595# This bug is HP SR number 8606223364.
23596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23597$as_echo_n "checking size of double... " >&6; }
23598if ${ac_cv_sizeof_double+:} false; then :
23599  $as_echo_n "(cached) " >&6
23600else
23601  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
23602
23603else
23604  if test "$ac_cv_type_double" = yes; then
23605     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23607as_fn_error 77 "cannot compute sizeof (double)
23608See \`config.log' for more details" "$LINENO" 5; }
23609   else
23610     ac_cv_sizeof_double=0
23611   fi
23612fi
23613
23614fi
23615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23616$as_echo "$ac_cv_sizeof_double" >&6; }
23617
23618
23619
23620cat >>confdefs.h <<_ACEOF
23621#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23622_ACEOF
23623
23624
23625# The cast to long int works around a bug in the HP C Compiler
23626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23628# This bug is HP SR number 8606223364.
23629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23630$as_echo_n "checking size of long double... " >&6; }
23631if ${ac_cv_sizeof_long_double+:} false; then :
23632  $as_echo_n "(cached) " >&6
23633else
23634  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
23635
23636else
23637  if test "$ac_cv_type_long_double" = yes; then
23638     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23640as_fn_error 77 "cannot compute sizeof (long double)
23641See \`config.log' for more details" "$LINENO" 5; }
23642   else
23643     ac_cv_sizeof_long_double=0
23644   fi
23645fi
23646
23647fi
23648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23649$as_echo "$ac_cv_sizeof_long_double" >&6; }
23650
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23655_ACEOF
23656
23657
23658
23659# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23660# The cast to long int works around a bug in the HP C Compiler
23661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23663# This bug is HP SR number 8606223364.
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23665$as_echo_n "checking size of signed short... " >&6; }
23666if ${ac_cv_sizeof_signed_short+:} false; then :
23667  $as_echo_n "(cached) " >&6
23668else
23669  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23670
23671else
23672  if test "$ac_cv_type_signed_short" = yes; then
23673     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23675as_fn_error 77 "cannot compute sizeof (signed short)
23676See \`config.log' for more details" "$LINENO" 5; }
23677   else
23678     ac_cv_sizeof_signed_short=0
23679   fi
23680fi
23681
23682fi
23683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23684$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23685
23686
23687
23688cat >>confdefs.h <<_ACEOF
23689#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23690_ACEOF
23691
23692
23693
23694# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23695# The cast to long int works around a bug in the HP C Compiler
23696# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23697# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23698# This bug is HP SR number 8606223364.
23699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23700$as_echo_n "checking size of unsigned short... " >&6; }
23701if ${ac_cv_sizeof_unsigned_short+:} false; then :
23702  $as_echo_n "(cached) " >&6
23703else
23704  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23705
23706else
23707  if test "$ac_cv_type_unsigned_short" = yes; then
23708     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23710as_fn_error 77 "cannot compute sizeof (unsigned short)
23711See \`config.log' for more details" "$LINENO" 5; }
23712   else
23713     ac_cv_sizeof_unsigned_short=0
23714   fi
23715fi
23716
23717fi
23718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23719$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23720
23721
23722
23723cat >>confdefs.h <<_ACEOF
23724#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23725_ACEOF
23726
23727
23728
23729# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23730# The cast to long int works around a bug in the HP C Compiler
23731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23733# This bug is HP SR number 8606223364.
23734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23735$as_echo_n "checking size of signed int... " >&6; }
23736if ${ac_cv_sizeof_signed_int+:} false; then :
23737  $as_echo_n "(cached) " >&6
23738else
23739  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23740
23741else
23742  if test "$ac_cv_type_signed_int" = yes; then
23743     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23745as_fn_error 77 "cannot compute sizeof (signed int)
23746See \`config.log' for more details" "$LINENO" 5; }
23747   else
23748     ac_cv_sizeof_signed_int=0
23749   fi
23750fi
23751
23752fi
23753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23754$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23755
23756
23757
23758cat >>confdefs.h <<_ACEOF
23759#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23760_ACEOF
23761
23762
23763
23764# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23765# The cast to long int works around a bug in the HP C Compiler
23766# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23767# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23768# This bug is HP SR number 8606223364.
23769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23770$as_echo_n "checking size of unsigned int... " >&6; }
23771if ${ac_cv_sizeof_unsigned_int+:} false; then :
23772  $as_echo_n "(cached) " >&6
23773else
23774  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23775
23776else
23777  if test "$ac_cv_type_unsigned_int" = yes; then
23778     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23780as_fn_error 77 "cannot compute sizeof (unsigned int)
23781See \`config.log' for more details" "$LINENO" 5; }
23782   else
23783     ac_cv_sizeof_unsigned_int=0
23784   fi
23785fi
23786
23787fi
23788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23789$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23790
23791
23792
23793cat >>confdefs.h <<_ACEOF
23794#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23795_ACEOF
23796
23797
23798
23799# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23800# The cast to long int works around a bug in the HP C Compiler
23801# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23802# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23803# This bug is HP SR number 8606223364.
23804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23805$as_echo_n "checking size of signed long... " >&6; }
23806if ${ac_cv_sizeof_signed_long+:} false; then :
23807  $as_echo_n "(cached) " >&6
23808else
23809  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23810
23811else
23812  if test "$ac_cv_type_signed_long" = yes; then
23813     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23815as_fn_error 77 "cannot compute sizeof (signed long)
23816See \`config.log' for more details" "$LINENO" 5; }
23817   else
23818     ac_cv_sizeof_signed_long=0
23819   fi
23820fi
23821
23822fi
23823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23824$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23825
23826
23827
23828cat >>confdefs.h <<_ACEOF
23829#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23830_ACEOF
23831
23832
23833
23834# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23835# The cast to long int works around a bug in the HP C Compiler
23836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23838# This bug is HP SR number 8606223364.
23839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23840$as_echo_n "checking size of unsigned long... " >&6; }
23841if ${ac_cv_sizeof_unsigned_long+:} false; then :
23842  $as_echo_n "(cached) " >&6
23843else
23844  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23845
23846else
23847  if test "$ac_cv_type_unsigned_long" = yes; then
23848     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23850as_fn_error 77 "cannot compute sizeof (unsigned long)
23851See \`config.log' for more details" "$LINENO" 5; }
23852   else
23853     ac_cv_sizeof_unsigned_long=0
23854   fi
23855fi
23856
23857fi
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23859$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23860
23861
23862
23863cat >>confdefs.h <<_ACEOF
23864#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23865_ACEOF
23866
23867
23868
23869# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23870# 'signed long long' is not supported then the value defined is zero.
23871# The cast to long int works around a bug in the HP C Compiler
23872# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23873# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23874# This bug is HP SR number 8606223364.
23875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23876$as_echo_n "checking size of signed long long... " >&6; }
23877if ${ac_cv_sizeof_signed_long_long+:} false; then :
23878  $as_echo_n "(cached) " >&6
23879else
23880  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23881
23882else
23883  if test "$ac_cv_type_signed_long_long" = yes; then
23884     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23886as_fn_error 77 "cannot compute sizeof (signed long long)
23887See \`config.log' for more details" "$LINENO" 5; }
23888   else
23889     ac_cv_sizeof_signed_long_long=0
23890   fi
23891fi
23892
23893fi
23894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23895$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23896
23897
23898
23899cat >>confdefs.h <<_ACEOF
23900#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23901_ACEOF
23902
23903
23904
23905# Obtain size of a 'unsigned long long' and define as
23906# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23907# supported then the value defined is zero.
23908# The cast to long int works around a bug in the HP C Compiler
23909# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23910# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23911# This bug is HP SR number 8606223364.
23912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23913$as_echo_n "checking size of unsigned long long... " >&6; }
23914if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23915  $as_echo_n "(cached) " >&6
23916else
23917  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
23918
23919else
23920  if test "$ac_cv_type_unsigned_long_long" = yes; then
23921     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23923as_fn_error 77 "cannot compute sizeof (unsigned long long)
23924See \`config.log' for more details" "$LINENO" 5; }
23925   else
23926     ac_cv_sizeof_unsigned_long_long=0
23927   fi
23928fi
23929
23930fi
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23932$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23933
23934
23935
23936cat >>confdefs.h <<_ACEOF
23937#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23938_ACEOF
23939
23940
23941
23942# Obtain size of off_t and define as SIZEOF_OFF_T
23943# The cast to long int works around a bug in the HP C Compiler
23944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23946# This bug is HP SR number 8606223364.
23947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23948$as_echo_n "checking size of off_t... " >&6; }
23949if ${ac_cv_sizeof_off_t+:} false; then :
23950  $as_echo_n "(cached) " >&6
23951else
23952  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23953
23954else
23955  if test "$ac_cv_type_off_t" = yes; then
23956     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23958as_fn_error 77 "cannot compute sizeof (off_t)
23959See \`config.log' for more details" "$LINENO" 5; }
23960   else
23961     ac_cv_sizeof_off_t=0
23962   fi
23963fi
23964
23965fi
23966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23967$as_echo "$ac_cv_sizeof_off_t" >&6; }
23968
23969
23970
23971cat >>confdefs.h <<_ACEOF
23972#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23973_ACEOF
23974
23975
23976
23977# Obtain size of size_t and define as SIZEOF_SIZE_T
23978# The cast to long int works around a bug in the HP C Compiler
23979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23981# This bug is HP SR number 8606223364.
23982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23983$as_echo_n "checking size of size_t... " >&6; }
23984if ${ac_cv_sizeof_size_t+:} false; then :
23985  $as_echo_n "(cached) " >&6
23986else
23987  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23988
23989else
23990  if test "$ac_cv_type_size_t" = yes; then
23991     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23993as_fn_error 77 "cannot compute sizeof (size_t)
23994See \`config.log' for more details" "$LINENO" 5; }
23995   else
23996     ac_cv_sizeof_size_t=0
23997   fi
23998fi
23999
24000fi
24001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24002$as_echo "$ac_cv_sizeof_size_t" >&6; }
24003
24004
24005
24006cat >>confdefs.h <<_ACEOF
24007#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24008_ACEOF
24009
24010
24011
24012# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24013# The cast to long int works around a bug in the HP C Compiler
24014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24016# This bug is HP SR number 8606223364.
24017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24018$as_echo_n "checking size of ssize_t... " >&6; }
24019if ${ac_cv_sizeof_ssize_t+:} false; then :
24020  $as_echo_n "(cached) " >&6
24021else
24022  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
24023
24024else
24025  if test "$ac_cv_type_ssize_t" = yes; then
24026     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24028as_fn_error 77 "cannot compute sizeof (ssize_t)
24029See \`config.log' for more details" "$LINENO" 5; }
24030   else
24031     ac_cv_sizeof_ssize_t=0
24032   fi
24033fi
24034
24035fi
24036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24037$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24038
24039
24040
24041cat >>confdefs.h <<_ACEOF
24042#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24043_ACEOF
24044
24045
24046
24047# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24048# The cast to long int works around a bug in the HP C Compiler
24049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24051# This bug is HP SR number 8606223364.
24052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
24053$as_echo_n "checking size of unsigned int*... " >&6; }
24054if ${ac_cv_sizeof_unsigned_intp+:} false; then :
24055  $as_echo_n "(cached) " >&6
24056else
24057  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
24058
24059else
24060  if test "$ac_cv_type_unsigned_intp" = yes; then
24061     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24063as_fn_error 77 "cannot compute sizeof (unsigned int*)
24064See \`config.log' for more details" "$LINENO" 5; }
24065   else
24066     ac_cv_sizeof_unsigned_intp=0
24067   fi
24068fi
24069
24070fi
24071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
24072$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24073
24074
24075
24076cat >>confdefs.h <<_ACEOF
24077#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24078_ACEOF
24079
24080
24081
24082#
24083# Compute sized types for current CPU and compiler options.
24084#
24085
24086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
24087$as_echo_n "checking for signed 8-bit type... " >&6; }
24088INT8_T='signed char'
24089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24090$as_echo "$INT8_T" >&6; }
24091
24092
24093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
24094$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24095UINT8_T='unsigned char'
24096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24097$as_echo "$UINT8_T" >&6; }
24098
24099
24100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
24101$as_echo_n "checking for signed 16-bit type... " >&6; }
24102INT16_T='signed short'
24103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24104$as_echo "$INT16_T" >&6; }
24105
24106
24107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
24108$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24109UINT16_T='unsigned short'
24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24111$as_echo "$UINT16_T" >&6; }
24112
24113
24114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
24115$as_echo_n "checking for signed 32-bit type... " >&6; }
24116INT32_T='none'
24117INT32_F='none'
24118if test $ac_cv_sizeof_signed_int -eq 4; then
24119  INT32_T='signed int'
24120  INT32_F='""'
24121elif test $ac_cv_sizeof_signed_long -eq 4; then
24122  INT32_T='signed long'
24123  INT32_F='"l"'
24124fi
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24126$as_echo "$INT32_T" >&6; }
24127
24128
24129
24130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
24131$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24132UINT32_T='none'
24133UINT32_F='none'
24134if test $ac_cv_sizeof_unsigned_int -eq 4; then
24135  UINT32_T='unsigned int'
24136  UINT32_F='""'
24137elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24138  UINT32_T='unsigned long'
24139  UINT32_F='"l"'
24140fi
24141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24142$as_echo "$UINT32_T" >&6; }
24143
24144
24145
24146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
24147$as_echo_n "checking for signed 64-bit type... " >&6; }
24148INT64_T='none'
24149INT64_F='none'
24150if test $ac_cv_sizeof_signed_long -eq 8; then
24151  INT64_T='signed long'
24152  INT64_F='"l"'
24153elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24154  INT64_T='signed long long'
24155  INT64_F='"ll"'
24156fi
24157case "${host_os}" in
24158  mingw* )
24159    INT64_F='"I64"'
24160    ;;
24161esac
24162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24163$as_echo "$INT64_T" >&6; }
24164
24165
24166
24167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
24168$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24169UINT64_T='none'
24170UINT64_F='none'
24171if test $ac_cv_sizeof_unsigned_long -eq 8; then
24172  UINT64_T='unsigned long'
24173  UINT64_F='"l"'
24174elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24175  UINT64_T='unsigned long long'
24176  UINT64_F='"ll"'
24177fi
24178case "${host_os}" in
24179  mingw* )
24180    UINT64_F='"I64"'
24181    ;;
24182esac
24183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24184$as_echo "$UINT64_T" >&6; }
24185
24186
24187
24188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
24189$as_echo_n "checking for unsigned maximum type... " >&6; }
24190UINTMAX_T='none'
24191UINTMAX_F='none'
24192if test "$UINT64_T" != 'none'; then
24193  UINTMAX_T=$UINT64_T
24194  UINTMAX_F=$UINT64_F
24195elif test "$UINT32_T" != 'none'; then
24196  UINTMAX_T=$UINT32_T
24197  UINTMAX_F=$UINT32_F
24198fi
24199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24200$as_echo "$UINTMAX_T" >&6; }
24201
24202
24203
24204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
24205$as_echo_n "checking for pointer difference type... " >&6; }
24206UINTPTR_T='none'
24207UINTPTR_F='none'
24208if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24209  UINTPTR_T='unsigned long'
24210  UINTPTR_F='"l"'
24211elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24212  UINTPTR_T='unsigned long long'
24213  UINTPTR_F='"ll"'
24214fi
24215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24216$as_echo "$UINTPTR_T" >&6; }
24217
24218
24219
24220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
24221$as_echo_n "checking whether our compiler supports __func__... " >&6; }
24222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223/* end confdefs.h.  */
24224
24225int
24226main ()
24227{
24228{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24229  ;
24230  return 0;
24231}
24232_ACEOF
24233if ac_fn_c_try_compile "$LINENO"; then :
24234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24235$as_echo "yes" >&6; }
24236else
24237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24238$as_echo "no" >&6; }
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24240$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242/* end confdefs.h.  */
24243
24244int
24245main ()
24246{
24247{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24248  ;
24249  return 0;
24250}
24251_ACEOF
24252if ac_fn_c_try_compile "$LINENO"; then :
24253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24254$as_echo "yes" >&6; }
24255
24256$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24257
24258else
24259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24260$as_echo "no" >&6; }
24261
24262$as_echo "#define __func__ __FILE__" >>confdefs.h
24263
24264fi
24265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266fi
24267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24268
24269########
24270#
24271# Check for functions
24272#
24273########
24274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24275$as_echo_n "checking whether closedir returns void... " >&6; }
24276if ${ac_cv_func_closedir_void+:} false; then :
24277  $as_echo_n "(cached) " >&6
24278else
24279  if test "$cross_compiling" = yes; then :
24280  ac_cv_func_closedir_void=yes
24281else
24282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24283/* end confdefs.h.  */
24284$ac_includes_default
24285#include <$ac_header_dirent>
24286#ifndef __cplusplus
24287int closedir ();
24288#endif
24289
24290int
24291main ()
24292{
24293return closedir (opendir (".")) != 0;
24294  ;
24295  return 0;
24296}
24297_ACEOF
24298if ac_fn_c_try_run "$LINENO"; then :
24299  ac_cv_func_closedir_void=no
24300else
24301  ac_cv_func_closedir_void=yes
24302fi
24303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24304  conftest.$ac_objext conftest.beam conftest.$ac_ext
24305fi
24306
24307fi
24308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24309$as_echo "$ac_cv_func_closedir_void" >&6; }
24310if test $ac_cv_func_closedir_void = yes; then
24311
24312$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24313
24314fi
24315
24316
24317
24318
24319  for ac_header in $ac_header_list
24320do :
24321  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24323"
24324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24325  cat >>confdefs.h <<_ACEOF
24326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24327_ACEOF
24328
24329fi
24330
24331done
24332
24333
24334
24335
24336
24337
24338
24339
24340for ac_func in getpagesize
24341do :
24342  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24343if test "x$ac_cv_func_getpagesize" = xyes; then :
24344  cat >>confdefs.h <<_ACEOF
24345#define HAVE_GETPAGESIZE 1
24346_ACEOF
24347
24348fi
24349done
24350
24351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24352$as_echo_n "checking for working mmap... " >&6; }
24353if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24354  $as_echo_n "(cached) " >&6
24355else
24356  if test "$cross_compiling" = yes; then :
24357  ac_cv_func_mmap_fixed_mapped=no
24358else
24359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360/* end confdefs.h.  */
24361$ac_includes_default
24362/* malloc might have been renamed as rpl_malloc. */
24363#undef malloc
24364
24365/* Thanks to Mike Haertel and Jim Avera for this test.
24366   Here is a matrix of mmap possibilities:
24367	mmap private not fixed
24368	mmap private fixed at somewhere currently unmapped
24369	mmap private fixed at somewhere already mapped
24370	mmap shared not fixed
24371	mmap shared fixed at somewhere currently unmapped
24372	mmap shared fixed at somewhere already mapped
24373   For private mappings, we should verify that changes cannot be read()
24374   back from the file, nor mmap's back from the file at a different
24375   address.  (There have been systems where private was not correctly
24376   implemented like the infamous i386 svr4.0, and systems where the
24377   VM page cache was not coherent with the file system buffer cache
24378   like early versions of FreeBSD and possibly contemporary NetBSD.)
24379   For shared mappings, we should conversely verify that changes get
24380   propagated back to all the places they're supposed to be.
24381
24382   Grep wants private fixed already mapped.
24383   The main things grep needs to know about mmap are:
24384   * does it exist and is it safe to write into the mmap'd area
24385   * how to use it (BSD variants)  */
24386
24387#include <fcntl.h>
24388#include <sys/mman.h>
24389
24390#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24391char *malloc ();
24392#endif
24393
24394/* This mess was copied from the GNU getpagesize.h.  */
24395#ifndef HAVE_GETPAGESIZE
24396# ifdef _SC_PAGESIZE
24397#  define getpagesize() sysconf(_SC_PAGESIZE)
24398# else /* no _SC_PAGESIZE */
24399#  ifdef HAVE_SYS_PARAM_H
24400#   include <sys/param.h>
24401#   ifdef EXEC_PAGESIZE
24402#    define getpagesize() EXEC_PAGESIZE
24403#   else /* no EXEC_PAGESIZE */
24404#    ifdef NBPG
24405#     define getpagesize() NBPG * CLSIZE
24406#     ifndef CLSIZE
24407#      define CLSIZE 1
24408#     endif /* no CLSIZE */
24409#    else /* no NBPG */
24410#     ifdef NBPC
24411#      define getpagesize() NBPC
24412#     else /* no NBPC */
24413#      ifdef PAGESIZE
24414#       define getpagesize() PAGESIZE
24415#      endif /* PAGESIZE */
24416#     endif /* no NBPC */
24417#    endif /* no NBPG */
24418#   endif /* no EXEC_PAGESIZE */
24419#  else /* no HAVE_SYS_PARAM_H */
24420#   define getpagesize() 8192	/* punt totally */
24421#  endif /* no HAVE_SYS_PARAM_H */
24422# endif /* no _SC_PAGESIZE */
24423
24424#endif /* no HAVE_GETPAGESIZE */
24425
24426int
24427main ()
24428{
24429  char *data, *data2, *data3;
24430  const char *cdata2;
24431  int i, pagesize;
24432  int fd, fd2;
24433
24434  pagesize = getpagesize ();
24435
24436  /* First, make a file with some known garbage in it. */
24437  data = (char *) malloc (pagesize);
24438  if (!data)
24439    return 1;
24440  for (i = 0; i < pagesize; ++i)
24441    *(data + i) = rand ();
24442  umask (0);
24443  fd = creat ("conftest.mmap", 0600);
24444  if (fd < 0)
24445    return 2;
24446  if (write (fd, data, pagesize) != pagesize)
24447    return 3;
24448  close (fd);
24449
24450  /* Next, check that the tail of a page is zero-filled.  File must have
24451     non-zero length, otherwise we risk SIGBUS for entire page.  */
24452  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24453  if (fd2 < 0)
24454    return 4;
24455  cdata2 = "";
24456  if (write (fd2, cdata2, 1) != 1)
24457    return 5;
24458  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24459  if (data2 == MAP_FAILED)
24460    return 6;
24461  for (i = 0; i < pagesize; ++i)
24462    if (*(data2 + i))
24463      return 7;
24464  close (fd2);
24465  if (munmap (data2, pagesize))
24466    return 8;
24467
24468  /* Next, try to mmap the file at a fixed address which already has
24469     something else allocated at it.  If we can, also make sure that
24470     we see the same garbage.  */
24471  fd = open ("conftest.mmap", O_RDWR);
24472  if (fd < 0)
24473    return 9;
24474  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24475		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24476    return 10;
24477  for (i = 0; i < pagesize; ++i)
24478    if (*(data + i) != *(data2 + i))
24479      return 11;
24480
24481  /* Finally, make sure that changes to the mapped area do not
24482     percolate back to the file as seen by read().  (This is a bug on
24483     some variants of i386 svr4.0.)  */
24484  for (i = 0; i < pagesize; ++i)
24485    *(data2 + i) = *(data2 + i) + 1;
24486  data3 = (char *) malloc (pagesize);
24487  if (!data3)
24488    return 12;
24489  if (read (fd, data3, pagesize) != pagesize)
24490    return 13;
24491  for (i = 0; i < pagesize; ++i)
24492    if (*(data + i) != *(data3 + i))
24493      return 14;
24494  close (fd);
24495  return 0;
24496}
24497_ACEOF
24498if ac_fn_c_try_run "$LINENO"; then :
24499  ac_cv_func_mmap_fixed_mapped=yes
24500else
24501  ac_cv_func_mmap_fixed_mapped=no
24502fi
24503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24504  conftest.$ac_objext conftest.beam conftest.$ac_ext
24505fi
24506
24507fi
24508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24509$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24510if test $ac_cv_func_mmap_fixed_mapped = yes; then
24511
24512$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24513
24514fi
24515rm -f conftest.mmap conftest.txt
24516
24517for ac_header in vfork.h
24518do :
24519  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24520if test "x$ac_cv_header_vfork_h" = xyes; then :
24521  cat >>confdefs.h <<_ACEOF
24522#define HAVE_VFORK_H 1
24523_ACEOF
24524
24525fi
24526
24527done
24528
24529for ac_func in fork vfork
24530do :
24531  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24534  cat >>confdefs.h <<_ACEOF
24535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24536_ACEOF
24537
24538fi
24539done
24540
24541if test "x$ac_cv_func_fork" = xyes; then
24542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24543$as_echo_n "checking for working fork... " >&6; }
24544if ${ac_cv_func_fork_works+:} false; then :
24545  $as_echo_n "(cached) " >&6
24546else
24547  if test "$cross_compiling" = yes; then :
24548  ac_cv_func_fork_works=cross
24549else
24550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551/* end confdefs.h.  */
24552$ac_includes_default
24553int
24554main ()
24555{
24556
24557	  /* By Ruediger Kuhlmann. */
24558	  return fork () < 0;
24559
24560  ;
24561  return 0;
24562}
24563_ACEOF
24564if ac_fn_c_try_run "$LINENO"; then :
24565  ac_cv_func_fork_works=yes
24566else
24567  ac_cv_func_fork_works=no
24568fi
24569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24570  conftest.$ac_objext conftest.beam conftest.$ac_ext
24571fi
24572
24573fi
24574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24575$as_echo "$ac_cv_func_fork_works" >&6; }
24576
24577else
24578  ac_cv_func_fork_works=$ac_cv_func_fork
24579fi
24580if test "x$ac_cv_func_fork_works" = xcross; then
24581  case $host in
24582    *-*-amigaos* | *-*-msdosdjgpp*)
24583      # Override, as these systems have only a dummy fork() stub
24584      ac_cv_func_fork_works=no
24585      ;;
24586    *)
24587      ac_cv_func_fork_works=yes
24588      ;;
24589  esac
24590  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24591$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24592fi
24593ac_cv_func_vfork_works=$ac_cv_func_vfork
24594if test "x$ac_cv_func_vfork" = xyes; then
24595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24596$as_echo_n "checking for working vfork... " >&6; }
24597if ${ac_cv_func_vfork_works+:} false; then :
24598  $as_echo_n "(cached) " >&6
24599else
24600  if test "$cross_compiling" = yes; then :
24601  ac_cv_func_vfork_works=cross
24602else
24603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604/* end confdefs.h.  */
24605/* Thanks to Paul Eggert for this test.  */
24606$ac_includes_default
24607#include <sys/wait.h>
24608#ifdef HAVE_VFORK_H
24609# include <vfork.h>
24610#endif
24611/* On some sparc systems, changes by the child to local and incoming
24612   argument registers are propagated back to the parent.  The compiler
24613   is told about this with #include <vfork.h>, but some compilers
24614   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24615   static variable whose address is put into a register that is
24616   clobbered by the vfork.  */
24617static void
24618#ifdef __cplusplus
24619sparc_address_test (int arg)
24620# else
24621sparc_address_test (arg) int arg;
24622#endif
24623{
24624  static pid_t child;
24625  if (!child) {
24626    child = vfork ();
24627    if (child < 0) {
24628      perror ("vfork");
24629      _exit(2);
24630    }
24631    if (!child) {
24632      arg = getpid();
24633      write(-1, "", 0);
24634      _exit (arg);
24635    }
24636  }
24637}
24638
24639int
24640main ()
24641{
24642  pid_t parent = getpid ();
24643  pid_t child;
24644
24645  sparc_address_test (0);
24646
24647  child = vfork ();
24648
24649  if (child == 0) {
24650    /* Here is another test for sparc vfork register problems.  This
24651       test uses lots of local variables, at least as many local
24652       variables as main has allocated so far including compiler
24653       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24654       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24655       reuse the register of parent for one of the local variables,
24656       since it will think that parent can't possibly be used any more
24657       in this routine.  Assigning to the local variable will thus
24658       munge parent in the parent process.  */
24659    pid_t
24660      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24661      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24662    /* Convince the compiler that p..p7 are live; otherwise, it might
24663       use the same hardware register for all 8 local variables.  */
24664    if (p != p1 || p != p2 || p != p3 || p != p4
24665	|| p != p5 || p != p6 || p != p7)
24666      _exit(1);
24667
24668    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24669       from child file descriptors.  If the child closes a descriptor
24670       before it execs or exits, this munges the parent's descriptor
24671       as well.  Test for this by closing stdout in the child.  */
24672    _exit(close(fileno(stdout)) != 0);
24673  } else {
24674    int status;
24675    struct stat st;
24676
24677    while (wait(&status) != child)
24678      ;
24679    return (
24680	 /* Was there some problem with vforking?  */
24681	 child < 0
24682
24683	 /* Did the child fail?  (This shouldn't happen.)  */
24684	 || status
24685
24686	 /* Did the vfork/compiler bug occur?  */
24687	 || parent != getpid()
24688
24689	 /* Did the file descriptor bug occur?  */
24690	 || fstat(fileno(stdout), &st) != 0
24691	 );
24692  }
24693}
24694_ACEOF
24695if ac_fn_c_try_run "$LINENO"; then :
24696  ac_cv_func_vfork_works=yes
24697else
24698  ac_cv_func_vfork_works=no
24699fi
24700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24701  conftest.$ac_objext conftest.beam conftest.$ac_ext
24702fi
24703
24704fi
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24706$as_echo "$ac_cv_func_vfork_works" >&6; }
24707
24708fi;
24709if test "x$ac_cv_func_fork_works" = xcross; then
24710  ac_cv_func_vfork_works=$ac_cv_func_vfork
24711  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24712$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24713fi
24714
24715if test "x$ac_cv_func_vfork_works" = xyes; then
24716
24717$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24718
24719else
24720
24721$as_echo "#define vfork fork" >>confdefs.h
24722
24723fi
24724if test "x$ac_cv_func_fork_works" = xyes; then
24725
24726$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24727
24728fi
24729
24730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24731$as_echo_n "checking for working memcmp... " >&6; }
24732if ${ac_cv_func_memcmp_working+:} false; then :
24733  $as_echo_n "(cached) " >&6
24734else
24735  if test "$cross_compiling" = yes; then :
24736  ac_cv_func_memcmp_working=no
24737else
24738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24739/* end confdefs.h.  */
24740$ac_includes_default
24741int
24742main ()
24743{
24744
24745  /* Some versions of memcmp are not 8-bit clean.  */
24746  char c0 = '\100', c1 = '\200', c2 = '\201';
24747  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24748    return 1;
24749
24750  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24751     or more and with at least one buffer not starting on a 4-byte boundary.
24752     William Lewis provided this test program.   */
24753  {
24754    char foo[21];
24755    char bar[21];
24756    int i;
24757    for (i = 0; i < 4; i++)
24758      {
24759	char *a = foo + i;
24760	char *b = bar + i;
24761	strcpy (a, "--------01111111");
24762	strcpy (b, "--------10000000");
24763	if (memcmp (a, b, 16) >= 0)
24764	  return 1;
24765      }
24766    return 0;
24767  }
24768
24769  ;
24770  return 0;
24771}
24772_ACEOF
24773if ac_fn_c_try_run "$LINENO"; then :
24774  ac_cv_func_memcmp_working=yes
24775else
24776  ac_cv_func_memcmp_working=no
24777fi
24778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24779  conftest.$ac_objext conftest.beam conftest.$ac_ext
24780fi
24781
24782fi
24783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24784$as_echo "$ac_cv_func_memcmp_working" >&6; }
24785test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24786  *" memcmp.$ac_objext "* ) ;;
24787  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24788 ;;
24789esac
24790
24791
24792for ac_header in sys/select.h sys/socket.h
24793do :
24794  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24795ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24797  cat >>confdefs.h <<_ACEOF
24798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24799_ACEOF
24800
24801fi
24802
24803done
24804
24805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24806$as_echo_n "checking types of arguments for select... " >&6; }
24807if ${ac_cv_func_select_args+:} false; then :
24808  $as_echo_n "(cached) " >&6
24809else
24810  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24811 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24812  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814/* end confdefs.h.  */
24815$ac_includes_default
24816#ifdef HAVE_SYS_SELECT_H
24817# include <sys/select.h>
24818#endif
24819#ifdef HAVE_SYS_SOCKET_H
24820# include <sys/socket.h>
24821#endif
24822
24823int
24824main ()
24825{
24826extern int select ($ac_arg1,
24827					    $ac_arg234, $ac_arg234, $ac_arg234,
24828					    $ac_arg5);
24829  ;
24830  return 0;
24831}
24832_ACEOF
24833if ac_fn_c_try_compile "$LINENO"; then :
24834  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24835fi
24836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837  done
24838 done
24839done
24840# Provide a safe default value.
24841: "${ac_cv_func_select_args=int,int *,struct timeval *}"
24842
24843fi
24844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24845$as_echo "$ac_cv_func_select_args" >&6; }
24846ac_save_IFS=$IFS; IFS=','
24847set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24848IFS=$ac_save_IFS
24849shift
24850
24851cat >>confdefs.h <<_ACEOF
24852#define SELECT_TYPE_ARG1 $1
24853_ACEOF
24854
24855
24856cat >>confdefs.h <<_ACEOF
24857#define SELECT_TYPE_ARG234 ($2)
24858_ACEOF
24859
24860
24861cat >>confdefs.h <<_ACEOF
24862#define SELECT_TYPE_ARG5 ($3)
24863_ACEOF
24864
24865rm -f conftest*
24866
24867if ${ac_cv_func_setvbuf_reversed+:} false; then :
24868  $as_echo_n "(cached) " >&6
24869else
24870  ac_cv_func_setvbuf_reversed=no
24871fi
24872
24873
24874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24875$as_echo_n "checking return type of signal handlers... " >&6; }
24876if ${ac_cv_type_signal+:} false; then :
24877  $as_echo_n "(cached) " >&6
24878else
24879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24880/* end confdefs.h.  */
24881#include <sys/types.h>
24882#include <signal.h>
24883
24884int
24885main ()
24886{
24887return *(signal (0, 0)) (0) == 1;
24888  ;
24889  return 0;
24890}
24891_ACEOF
24892if ac_fn_c_try_compile "$LINENO"; then :
24893  ac_cv_type_signal=int
24894else
24895  ac_cv_type_signal=void
24896fi
24897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898fi
24899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24900$as_echo "$ac_cv_type_signal" >&6; }
24901
24902cat >>confdefs.h <<_ACEOF
24903#define RETSIGTYPE $ac_cv_type_signal
24904_ACEOF
24905
24906
24907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24908$as_echo_n "checking for working strtod... " >&6; }
24909if ${ac_cv_func_strtod+:} false; then :
24910  $as_echo_n "(cached) " >&6
24911else
24912  if test "$cross_compiling" = yes; then :
24913  ac_cv_func_strtod=no
24914else
24915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24916/* end confdefs.h.  */
24917
24918$ac_includes_default
24919#ifndef strtod
24920double strtod ();
24921#endif
24922int
24923main()
24924{
24925  {
24926    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
24927    char *string = " +69";
24928    char *term;
24929    double value;
24930    value = strtod (string, &term);
24931    if (value != 69 || term != (string + 4))
24932      return 1;
24933  }
24934
24935  {
24936    /* Under Solaris 2.4, strtod returns the wrong value for the
24937       terminating character under some conditions.  */
24938    char *string = "NaN";
24939    char *term;
24940    strtod (string, &term);
24941    if (term != string && *(term - 1) == 0)
24942      return 1;
24943  }
24944  return 0;
24945}
24946
24947_ACEOF
24948if ac_fn_c_try_run "$LINENO"; then :
24949  ac_cv_func_strtod=yes
24950else
24951  ac_cv_func_strtod=no
24952fi
24953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24954  conftest.$ac_objext conftest.beam conftest.$ac_ext
24955fi
24956
24957fi
24958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24959$as_echo "$ac_cv_func_strtod" >&6; }
24960if test $ac_cv_func_strtod = no; then
24961  case " $LIBOBJS " in
24962  *" strtod.$ac_objext "* ) ;;
24963  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24964 ;;
24965esac
24966
24967ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24968if test "x$ac_cv_func_pow" = xyes; then :
24969
24970fi
24971
24972if test $ac_cv_func_pow = no; then
24973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24974$as_echo_n "checking for pow in -lm... " >&6; }
24975if ${ac_cv_lib_m_pow+:} false; then :
24976  $as_echo_n "(cached) " >&6
24977else
24978  ac_check_lib_save_LIBS=$LIBS
24979LIBS="-lm  $LIBS"
24980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981/* end confdefs.h.  */
24982
24983/* Override any GCC internal prototype to avoid an error.
24984   Use char because int might match the return type of a GCC
24985   builtin and then its argument prototype would still apply.  */
24986#ifdef __cplusplus
24987extern "C"
24988#endif
24989char pow ();
24990int
24991main ()
24992{
24993return pow ();
24994  ;
24995  return 0;
24996}
24997_ACEOF
24998if ac_fn_c_try_link "$LINENO"; then :
24999  ac_cv_lib_m_pow=yes
25000else
25001  ac_cv_lib_m_pow=no
25002fi
25003rm -f core conftest.err conftest.$ac_objext \
25004    conftest$ac_exeext conftest.$ac_ext
25005LIBS=$ac_check_lib_save_LIBS
25006fi
25007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25008$as_echo "$ac_cv_lib_m_pow" >&6; }
25009if test "x$ac_cv_lib_m_pow" = xyes; then :
25010  POW_LIB=-lm
25011else
25012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25013$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25014fi
25015
25016fi
25017
25018fi
25019
25020ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25021if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25022  ac_have_decl=1
25023else
25024  ac_have_decl=0
25025fi
25026
25027cat >>confdefs.h <<_ACEOF
25028#define HAVE_DECL_STRERROR_R $ac_have_decl
25029_ACEOF
25030
25031for ac_func in strerror_r
25032do :
25033  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25034if test "x$ac_cv_func_strerror_r" = xyes; then :
25035  cat >>confdefs.h <<_ACEOF
25036#define HAVE_STRERROR_R 1
25037_ACEOF
25038
25039fi
25040done
25041
25042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25043$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25044if ${ac_cv_func_strerror_r_char_p+:} false; then :
25045  $as_echo_n "(cached) " >&6
25046else
25047
25048    ac_cv_func_strerror_r_char_p=no
25049    if test $ac_cv_have_decl_strerror_r = yes; then
25050      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25051/* end confdefs.h.  */
25052$ac_includes_default
25053int
25054main ()
25055{
25056
25057	  char buf[100];
25058	  char x = *strerror_r (0, buf, sizeof buf);
25059	  char *p = strerror_r (0, buf, sizeof buf);
25060	  return !p || x;
25061
25062  ;
25063  return 0;
25064}
25065_ACEOF
25066if ac_fn_c_try_compile "$LINENO"; then :
25067  ac_cv_func_strerror_r_char_p=yes
25068fi
25069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25070    else
25071      # strerror_r is not declared.  Choose between
25072      # systems that have relatively inaccessible declarations for the
25073      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25074      # former has a strerror_r that returns char*, while the latter
25075      # has a strerror_r that returns `int'.
25076      # This test should segfault on the DEC system.
25077      if test "$cross_compiling" = yes; then :
25078  :
25079else
25080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081/* end confdefs.h.  */
25082$ac_includes_default
25083	extern char *strerror_r ();
25084int
25085main ()
25086{
25087char buf[100];
25088	  char x = *strerror_r (0, buf, sizeof buf);
25089	  return ! isalpha (x);
25090  ;
25091  return 0;
25092}
25093_ACEOF
25094if ac_fn_c_try_run "$LINENO"; then :
25095  ac_cv_func_strerror_r_char_p=yes
25096fi
25097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25098  conftest.$ac_objext conftest.beam conftest.$ac_ext
25099fi
25100
25101    fi
25102
25103fi
25104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25105$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25106if test $ac_cv_func_strerror_r_char_p = yes; then
25107
25108$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25109
25110fi
25111
25112for ac_func in vprintf
25113do :
25114  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25115if test "x$ac_cv_func_vprintf" = xyes; then :
25116  cat >>confdefs.h <<_ACEOF
25117#define HAVE_VPRINTF 1
25118_ACEOF
25119
25120ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25121if test "x$ac_cv_func__doprnt" = xyes; then :
25122
25123$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25124
25125fi
25126
25127fi
25128done
25129
25130
25131
25132#
25133# Find math library
25134#
25135MATH_LIBS=''
25136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25137$as_echo_n "checking for sqrt in -lm... " >&6; }
25138if ${ac_cv_lib_m_sqrt+:} false; then :
25139  $as_echo_n "(cached) " >&6
25140else
25141  ac_check_lib_save_LIBS=$LIBS
25142LIBS="-lm  $LIBS"
25143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25144/* end confdefs.h.  */
25145
25146/* Override any GCC internal prototype to avoid an error.
25147   Use char because int might match the return type of a GCC
25148   builtin and then its argument prototype would still apply.  */
25149#ifdef __cplusplus
25150extern "C"
25151#endif
25152char sqrt ();
25153int
25154main ()
25155{
25156return sqrt ();
25157  ;
25158  return 0;
25159}
25160_ACEOF
25161if ac_fn_c_try_link "$LINENO"; then :
25162  ac_cv_lib_m_sqrt=yes
25163else
25164  ac_cv_lib_m_sqrt=no
25165fi
25166rm -f core conftest.err conftest.$ac_objext \
25167    conftest$ac_exeext conftest.$ac_ext
25168LIBS=$ac_check_lib_save_LIBS
25169fi
25170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25171$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25172if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25173  MATH_LIBS="-lm"
25174fi
25175
25176LIBS="$MATH_LIBS $LIBS"
25177
25178
25179#
25180# Find socket library
25181#
25182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25183$as_echo_n "checking for library containing gethostbyname... " >&6; }
25184if ${ac_cv_search_gethostbyname+:} false; then :
25185  $as_echo_n "(cached) " >&6
25186else
25187  ac_func_search_save_LIBS=$LIBS
25188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25189/* end confdefs.h.  */
25190
25191/* Override any GCC internal prototype to avoid an error.
25192   Use char because int might match the return type of a GCC
25193   builtin and then its argument prototype would still apply.  */
25194#ifdef __cplusplus
25195extern "C"
25196#endif
25197char gethostbyname ();
25198int
25199main ()
25200{
25201return gethostbyname ();
25202  ;
25203  return 0;
25204}
25205_ACEOF
25206for ac_lib in '' resolv nsl; do
25207  if test -z "$ac_lib"; then
25208    ac_res="none required"
25209  else
25210    ac_res=-l$ac_lib
25211    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25212  fi
25213  if ac_fn_c_try_link "$LINENO"; then :
25214  ac_cv_search_gethostbyname=$ac_res
25215fi
25216rm -f core conftest.err conftest.$ac_objext \
25217    conftest$ac_exeext
25218  if ${ac_cv_search_gethostbyname+:} false; then :
25219  break
25220fi
25221done
25222if ${ac_cv_search_gethostbyname+:} false; then :
25223
25224else
25225  ac_cv_search_gethostbyname=no
25226fi
25227rm conftest.$ac_ext
25228LIBS=$ac_func_search_save_LIBS
25229fi
25230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25231$as_echo "$ac_cv_search_gethostbyname" >&6; }
25232ac_res=$ac_cv_search_gethostbyname
25233if test "$ac_res" != no; then :
25234  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25235
25236fi
25237
25238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25239$as_echo_n "checking for library containing socket... " >&6; }
25240if ${ac_cv_search_socket+:} false; then :
25241  $as_echo_n "(cached) " >&6
25242else
25243  ac_func_search_save_LIBS=$LIBS
25244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25245/* end confdefs.h.  */
25246
25247/* Override any GCC internal prototype to avoid an error.
25248   Use char because int might match the return type of a GCC
25249   builtin and then its argument prototype would still apply.  */
25250#ifdef __cplusplus
25251extern "C"
25252#endif
25253char socket ();
25254int
25255main ()
25256{
25257return socket ();
25258  ;
25259  return 0;
25260}
25261_ACEOF
25262for ac_lib in '' socket; do
25263  if test -z "$ac_lib"; then
25264    ac_res="none required"
25265  else
25266    ac_res=-l$ac_lib
25267    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25268  fi
25269  if ac_fn_c_try_link "$LINENO"; then :
25270  ac_cv_search_socket=$ac_res
25271fi
25272rm -f core conftest.err conftest.$ac_objext \
25273    conftest$ac_exeext
25274  if ${ac_cv_search_socket+:} false; then :
25275  break
25276fi
25277done
25278if ${ac_cv_search_socket+:} false; then :
25279
25280else
25281  ac_cv_search_socket=no
25282fi
25283rm conftest.$ac_ext
25284LIBS=$ac_func_search_save_LIBS
25285fi
25286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25287$as_echo "$ac_cv_search_socket" >&6; }
25288ac_res=$ac_cv_search_socket
25289if test "$ac_res" != no; then :
25290  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25291
25292
25293$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
25294
25295  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25296
25297fi
25298
25299
25300for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r 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 readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat 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
25301do :
25302  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25305  cat >>confdefs.h <<_ACEOF
25306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25307_ACEOF
25308
25309fi
25310done
25311
25312
25313#
25314# Check for clock_gettime().
25315#
25316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25317$as_echo_n "checking for library containing clock_gettime... " >&6; }
25318if ${ac_cv_search_clock_gettime+:} false; then :
25319  $as_echo_n "(cached) " >&6
25320else
25321  ac_func_search_save_LIBS=$LIBS
25322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323/* end confdefs.h.  */
25324
25325/* Override any GCC internal prototype to avoid an error.
25326   Use char because int might match the return type of a GCC
25327   builtin and then its argument prototype would still apply.  */
25328#ifdef __cplusplus
25329extern "C"
25330#endif
25331char clock_gettime ();
25332int
25333main ()
25334{
25335return clock_gettime ();
25336  ;
25337  return 0;
25338}
25339_ACEOF
25340for ac_lib in '' rt; do
25341  if test -z "$ac_lib"; then
25342    ac_res="none required"
25343  else
25344    ac_res=-l$ac_lib
25345    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25346  fi
25347  if ac_fn_c_try_link "$LINENO"; then :
25348  ac_cv_search_clock_gettime=$ac_res
25349fi
25350rm -f core conftest.err conftest.$ac_objext \
25351    conftest$ac_exeext
25352  if ${ac_cv_search_clock_gettime+:} false; then :
25353  break
25354fi
25355done
25356if ${ac_cv_search_clock_gettime+:} false; then :
25357
25358else
25359  ac_cv_search_clock_gettime=no
25360fi
25361rm conftest.$ac_ext
25362LIBS=$ac_func_search_save_LIBS
25363fi
25364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25365$as_echo "$ac_cv_search_clock_gettime" >&6; }
25366ac_res=$ac_cv_search_clock_gettime
25367if test "$ac_res" != no; then :
25368  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25369
25370
25371$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25372
25373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25374$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25376/* end confdefs.h.  */
25377
25378    #include <time.h>
25379int
25380main ()
25381{
25382clockid_t clockType = CLOCK_REALTIME;
25383  ;
25384  return 0;
25385}
25386_ACEOF
25387if ac_fn_c_try_compile "$LINENO"; then :
25388
25389        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25390$as_echo "yes" >&6; }
25391
25392$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25393
25394
25395else
25396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25397$as_echo "no" >&6; }
25398
25399fi
25400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401
25402else
25403
25404    for ac_func in gettimeofday ftime
25405do :
25406  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25407ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25408if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25409  cat >>confdefs.h <<_ACEOF
25410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25411_ACEOF
25412 break
25413fi
25414done
25415
25416
25417
25418fi
25419
25420
25421########
25422#
25423# Check for function prototypes
25424#
25425########
25426
25427ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25428#include <unistd.h>
25429"
25430if test "x$ac_cv_have_decl_pread" = xyes; then :
25431  ac_have_decl=1
25432else
25433  ac_have_decl=0
25434fi
25435
25436cat >>confdefs.h <<_ACEOF
25437#define HAVE_DECL_PREAD $ac_have_decl
25438_ACEOF
25439ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25440#include <unistd.h>
25441"
25442if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25443  ac_have_decl=1
25444else
25445  ac_have_decl=0
25446fi
25447
25448cat >>confdefs.h <<_ACEOF
25449#define HAVE_DECL_PWRITE $ac_have_decl
25450_ACEOF
25451
25452
25453ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25454#include <strings.h>
25455"
25456if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25457  ac_have_decl=1
25458else
25459  ac_have_decl=0
25460fi
25461
25462cat >>confdefs.h <<_ACEOF
25463#define HAVE_DECL_STRLCPY $ac_have_decl
25464_ACEOF
25465
25466
25467ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25468#include <stdio.h>
25469#include <stdarg.h>
25470"
25471if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25472  ac_have_decl=1
25473else
25474  ac_have_decl=0
25475fi
25476
25477cat >>confdefs.h <<_ACEOF
25478#define HAVE_DECL_VSNPRINTF $ac_have_decl
25479_ACEOF
25480
25481
25482########
25483#
25484# C++ Support Tests (For Magick++)
25485#
25486########
25487have_magick_plus_plus='no'
25488if test "$with_magick_plus_plus" = 'yes'; then
25489    OLIBS="$LIBS"
25490    LIBS=''
25491    ac_ext=cpp
25492ac_cpp='$CXXCPP $CPPFLAGS'
25493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25496
25497
25498    # Full set of headers used...
25499    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25500    # functional iomanip iosfwd iostream iterator list string strstream utility
25501    ac_ext=cpp
25502ac_cpp='$CXXCPP $CPPFLAGS'
25503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25506
25507    ac_ext=cpp
25508ac_cpp='$CXXCPP $CPPFLAGS'
25509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25512if test -z "$CXX"; then
25513  if test -n "$CCC"; then
25514    CXX=$CCC
25515  else
25516    if test -n "$ac_tool_prefix"; then
25517  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25518  do
25519    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25522$as_echo_n "checking for $ac_word... " >&6; }
25523if ${ac_cv_prog_CXX+:} false; then :
25524  $as_echo_n "(cached) " >&6
25525else
25526  if test -n "$CXX"; then
25527  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25528else
25529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25530for as_dir in $PATH
25531do
25532  IFS=$as_save_IFS
25533  test -z "$as_dir" && as_dir=.
25534    for ac_exec_ext in '' $ac_executable_extensions; do
25535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25536    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25538    break 2
25539  fi
25540done
25541  done
25542IFS=$as_save_IFS
25543
25544fi
25545fi
25546CXX=$ac_cv_prog_CXX
25547if test -n "$CXX"; then
25548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25549$as_echo "$CXX" >&6; }
25550else
25551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25552$as_echo "no" >&6; }
25553fi
25554
25555
25556    test -n "$CXX" && break
25557  done
25558fi
25559if test -z "$CXX"; then
25560  ac_ct_CXX=$CXX
25561  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25562do
25563  # Extract the first word of "$ac_prog", so it can be a program name with args.
25564set dummy $ac_prog; ac_word=$2
25565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25566$as_echo_n "checking for $ac_word... " >&6; }
25567if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25568  $as_echo_n "(cached) " >&6
25569else
25570  if test -n "$ac_ct_CXX"; then
25571  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25572else
25573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25574for as_dir in $PATH
25575do
25576  IFS=$as_save_IFS
25577  test -z "$as_dir" && as_dir=.
25578    for ac_exec_ext in '' $ac_executable_extensions; do
25579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580    ac_cv_prog_ac_ct_CXX="$ac_prog"
25581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25582    break 2
25583  fi
25584done
25585  done
25586IFS=$as_save_IFS
25587
25588fi
25589fi
25590ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25591if test -n "$ac_ct_CXX"; then
25592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25593$as_echo "$ac_ct_CXX" >&6; }
25594else
25595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25596$as_echo "no" >&6; }
25597fi
25598
25599
25600  test -n "$ac_ct_CXX" && break
25601done
25602
25603  if test "x$ac_ct_CXX" = x; then
25604    CXX="g++"
25605  else
25606    case $cross_compiling:$ac_tool_warned in
25607yes:)
25608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25610ac_tool_warned=yes ;;
25611esac
25612    CXX=$ac_ct_CXX
25613  fi
25614fi
25615
25616  fi
25617fi
25618# Provide some information about the compiler.
25619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25620set X $ac_compile
25621ac_compiler=$2
25622for ac_option in --version -v -V -qversion; do
25623  { { ac_try="$ac_compiler $ac_option >&5"
25624case "(($ac_try" in
25625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626  *) ac_try_echo=$ac_try;;
25627esac
25628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25629$as_echo "$ac_try_echo"; } >&5
25630  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25631  ac_status=$?
25632  if test -s conftest.err; then
25633    sed '10a\
25634... rest of stderr output deleted ...
25635         10q' conftest.err >conftest.er1
25636    cat conftest.er1 >&5
25637  fi
25638  rm -f conftest.er1 conftest.err
25639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640  test $ac_status = 0; }
25641done
25642
25643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25644$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25645if ${ac_cv_cxx_compiler_gnu+:} false; then :
25646  $as_echo_n "(cached) " >&6
25647else
25648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649/* end confdefs.h.  */
25650
25651int
25652main ()
25653{
25654#ifndef __GNUC__
25655       choke me
25656#endif
25657
25658  ;
25659  return 0;
25660}
25661_ACEOF
25662if ac_fn_cxx_try_compile "$LINENO"; then :
25663  ac_compiler_gnu=yes
25664else
25665  ac_compiler_gnu=no
25666fi
25667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25668ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25669
25670fi
25671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25672$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25673if test $ac_compiler_gnu = yes; then
25674  GXX=yes
25675else
25676  GXX=
25677fi
25678ac_test_CXXFLAGS=${CXXFLAGS+set}
25679ac_save_CXXFLAGS=$CXXFLAGS
25680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25681$as_echo_n "checking whether $CXX accepts -g... " >&6; }
25682if ${ac_cv_prog_cxx_g+:} false; then :
25683  $as_echo_n "(cached) " >&6
25684else
25685  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25686   ac_cxx_werror_flag=yes
25687   ac_cv_prog_cxx_g=no
25688   CXXFLAGS="-g"
25689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690/* end confdefs.h.  */
25691
25692int
25693main ()
25694{
25695
25696  ;
25697  return 0;
25698}
25699_ACEOF
25700if ac_fn_cxx_try_compile "$LINENO"; then :
25701  ac_cv_prog_cxx_g=yes
25702else
25703  CXXFLAGS=""
25704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705/* end confdefs.h.  */
25706
25707int
25708main ()
25709{
25710
25711  ;
25712  return 0;
25713}
25714_ACEOF
25715if ac_fn_cxx_try_compile "$LINENO"; then :
25716
25717else
25718  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25719	 CXXFLAGS="-g"
25720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721/* end confdefs.h.  */
25722
25723int
25724main ()
25725{
25726
25727  ;
25728  return 0;
25729}
25730_ACEOF
25731if ac_fn_cxx_try_compile "$LINENO"; then :
25732  ac_cv_prog_cxx_g=yes
25733fi
25734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735fi
25736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737fi
25738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25740fi
25741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25742$as_echo "$ac_cv_prog_cxx_g" >&6; }
25743if test "$ac_test_CXXFLAGS" = set; then
25744  CXXFLAGS=$ac_save_CXXFLAGS
25745elif test $ac_cv_prog_cxx_g = yes; then
25746  if test "$GXX" = yes; then
25747    CXXFLAGS="-g -O2"
25748  else
25749    CXXFLAGS="-g"
25750  fi
25751else
25752  if test "$GXX" = yes; then
25753    CXXFLAGS="-O2"
25754  else
25755    CXXFLAGS=
25756  fi
25757fi
25758ac_ext=cpp
25759ac_cpp='$CXXCPP $CPPFLAGS'
25760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25763
25764depcc="$CXX"  am_compiler_list=
25765
25766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25767$as_echo_n "checking dependency style of $depcc... " >&6; }
25768if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25769  $as_echo_n "(cached) " >&6
25770else
25771  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25772  # We make a subdir and do the tests there.  Otherwise we can end up
25773  # making bogus files that we don't know about and never remove.  For
25774  # instance it was reported that on HP-UX the gcc test will end up
25775  # making a dummy file named 'D' -- because '-MD' means "put the output
25776  # in D".
25777  rm -rf conftest.dir
25778  mkdir conftest.dir
25779  # Copy depcomp to subdir because otherwise we won't find it if we're
25780  # using a relative directory.
25781  cp "$am_depcomp" conftest.dir
25782  cd conftest.dir
25783  # We will build objects and dependencies in a subdirectory because
25784  # it helps to detect inapplicable dependency modes.  For instance
25785  # both Tru64's cc and ICC support -MD to output dependencies as a
25786  # side effect of compilation, but ICC will put the dependencies in
25787  # the current directory while Tru64 will put them in the object
25788  # directory.
25789  mkdir sub
25790
25791  am_cv_CXX_dependencies_compiler_type=none
25792  if test "$am_compiler_list" = ""; then
25793     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25794  fi
25795  am__universal=false
25796  case " $depcc " in #(
25797     *\ -arch\ *\ -arch\ *) am__universal=true ;;
25798     esac
25799
25800  for depmode in $am_compiler_list; do
25801    # Setup a source with many dependencies, because some compilers
25802    # like to wrap large dependency lists on column 80 (with \), and
25803    # we should not choose a depcomp mode which is confused by this.
25804    #
25805    # We need to recreate these files for each test, as the compiler may
25806    # overwrite some of them when testing with obscure command lines.
25807    # This happens at least with the AIX C compiler.
25808    : > sub/conftest.c
25809    for i in 1 2 3 4 5 6; do
25810      echo '#include "conftst'$i'.h"' >> sub/conftest.c
25811      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25812      # Solaris 10 /bin/sh.
25813      echo '/* dummy */' > sub/conftst$i.h
25814    done
25815    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25816
25817    # We check with '-c' and '-o' for the sake of the "dashmstdout"
25818    # mode.  It turns out that the SunPro C++ compiler does not properly
25819    # handle '-M -o', and we need to detect this.  Also, some Intel
25820    # versions had trouble with output in subdirs.
25821    am__obj=sub/conftest.${OBJEXT-o}
25822    am__minus_obj="-o $am__obj"
25823    case $depmode in
25824    gcc)
25825      # This depmode causes a compiler race in universal mode.
25826      test "$am__universal" = false || continue
25827      ;;
25828    nosideeffect)
25829      # After this tag, mechanisms are not by side-effect, so they'll
25830      # only be used when explicitly requested.
25831      if test "x$enable_dependency_tracking" = xyes; then
25832	continue
25833      else
25834	break
25835      fi
25836      ;;
25837    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25838      # This compiler won't grok '-c -o', but also, the minuso test has
25839      # not run yet.  These depmodes are late enough in the game, and
25840      # so weak that their functioning should not be impacted.
25841      am__obj=conftest.${OBJEXT-o}
25842      am__minus_obj=
25843      ;;
25844    none) break ;;
25845    esac
25846    if depmode=$depmode \
25847       source=sub/conftest.c object=$am__obj \
25848       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25849       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25850         >/dev/null 2>conftest.err &&
25851       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25852       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25853       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25854       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25855      # icc doesn't choke on unknown options, it will just issue warnings
25856      # or remarks (even with -Werror).  So we grep stderr for any message
25857      # that says an option was ignored or not supported.
25858      # When given -MP, icc 7.0 and 7.1 complain thusly:
25859      #   icc: Command line warning: ignoring option '-M'; no argument required
25860      # The diagnosis changed in icc 8.0:
25861      #   icc: Command line remark: option '-MP' not supported
25862      if (grep 'ignoring option' conftest.err ||
25863          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25864        am_cv_CXX_dependencies_compiler_type=$depmode
25865        break
25866      fi
25867    fi
25868  done
25869
25870  cd ..
25871  rm -rf conftest.dir
25872else
25873  am_cv_CXX_dependencies_compiler_type=none
25874fi
25875
25876fi
25877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25878$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25879CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25880
25881 if
25882  test "x$enable_dependency_tracking" != xno \
25883  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25884  am__fastdepCXX_TRUE=
25885  am__fastdepCXX_FALSE='#'
25886else
25887  am__fastdepCXX_TRUE='#'
25888  am__fastdepCXX_FALSE=
25889fi
25890
25891
25892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25893$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25894if ${ax_cv_cxx_bool+:} false; then :
25895  $as_echo_n "(cached) " >&6
25896else
25897
25898 ac_ext=cpp
25899ac_cpp='$CXXCPP $CPPFLAGS'
25900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25903
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905/* end confdefs.h.  */
25906
25907int f(int  x){return 1;}
25908int f(char x){return 1;}
25909int f(bool x){return 1;}
25910
25911int
25912main ()
25913{
25914bool b = true; return f(b);
25915  ;
25916  return 0;
25917}
25918_ACEOF
25919if ac_fn_cxx_try_compile "$LINENO"; then :
25920  ax_cv_cxx_bool=yes
25921else
25922  ax_cv_cxx_bool=no
25923fi
25924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25925 ac_ext=cpp
25926ac_cpp='$CXXCPP $CPPFLAGS'
25927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25930
25931
25932fi
25933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25934$as_echo "$ax_cv_cxx_bool" >&6; }
25935if test "$ax_cv_cxx_bool" = yes; then
25936
25937$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25938
25939fi
25940
25941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25942$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25943if ${ax_cv_cxx_namespaces+:} false; then :
25944  $as_echo_n "(cached) " >&6
25945else
25946
25947 ac_ext=cpp
25948ac_cpp='$CXXCPP $CPPFLAGS'
25949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25952
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954/* end confdefs.h.  */
25955namespace Outer { namespace Inner { int i = 0; }}
25956int
25957main ()
25958{
25959using namespace Outer::Inner; return i;
25960  ;
25961  return 0;
25962}
25963_ACEOF
25964if ac_fn_cxx_try_compile "$LINENO"; then :
25965  ax_cv_cxx_namespaces=yes
25966else
25967  ax_cv_cxx_namespaces=no
25968fi
25969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25970 ac_ext=cpp
25971ac_cpp='$CXXCPP $CPPFLAGS'
25972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25975
25976
25977fi
25978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25979$as_echo "$ax_cv_cxx_namespaces" >&6; }
25980if test "$ax_cv_cxx_namespaces" = yes; then
25981
25982$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25983
25984fi
25985
25986
25987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25988$as_echo_n "checking if g++ supports namespace std... " >&6; }
25989if ${ax_cv_cxx_have_std_namespace+:} false; then :
25990  $as_echo_n "(cached) " >&6
25991else
25992
25993  ac_ext=cpp
25994ac_cpp='$CXXCPP $CPPFLAGS'
25995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25998
25999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000/* end confdefs.h.  */
26001#include <iostream>
26002                  std::istream& is = std::cin;
26003int
26004main ()
26005{
26006
26007  ;
26008  return 0;
26009}
26010_ACEOF
26011if ac_fn_cxx_try_compile "$LINENO"; then :
26012  ax_cv_cxx_have_std_namespace=yes
26013else
26014  ax_cv_cxx_have_std_namespace=no
26015fi
26016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017  ac_ext=cpp
26018ac_cpp='$CXXCPP $CPPFLAGS'
26019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26022
26023
26024fi
26025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26026$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26027  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26028
26029$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26030
26031  fi
26032
26033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26034$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26035if ${ac_cv_cxx_have_std_libs+:} false; then :
26036  $as_echo_n "(cached) " >&6
26037else
26038
26039
26040 ac_ext=cpp
26041ac_cpp='$CXXCPP $CPPFLAGS'
26042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26045
26046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047/* end confdefs.h.  */
26048#include <iostream>
26049#include <map>
26050#include <iomanip>
26051#include <cmath>
26052#ifdef HAVE_NAMESPACES
26053using namespace std;
26054#endif
26055int
26056main ()
26057{
26058return 0;
26059  ;
26060  return 0;
26061}
26062_ACEOF
26063if ac_fn_cxx_try_compile "$LINENO"; then :
26064  ac_cv_cxx_have_std_libs=yes
26065else
26066  ac_cv_cxx_have_std_libs=no
26067fi
26068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069 ac_ext=cpp
26070ac_cpp='$CXXCPP $CPPFLAGS'
26071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26074
26075
26076fi
26077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26078$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26079if test "$ac_cv_cxx_have_std_libs" = yes; then
26080
26081$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26082
26083fi
26084
26085
26086  OPENMP_CXXFLAGS=
26087  # Check whether --enable-openmp was given.
26088if test "${enable_openmp+set}" = set; then :
26089  enableval=$enable_openmp;
26090fi
26091
26092  if test "$enable_openmp" != no; then
26093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26094$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26095if ${ac_cv_prog_cxx_openmp+:} false; then :
26096  $as_echo_n "(cached) " >&6
26097else
26098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099/* end confdefs.h.  */
26100
26101#ifndef _OPENMP
26102 choke me
26103#endif
26104#include <omp.h>
26105int main () { return omp_get_num_threads (); }
26106
26107_ACEOF
26108if ac_fn_cxx_try_link "$LINENO"; then :
26109  ac_cv_prog_cxx_openmp='none needed'
26110else
26111  ac_cv_prog_cxx_openmp='unsupported'
26112	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26113                           -Popenmp --openmp; do
26114	    ac_save_CXXFLAGS=$CXXFLAGS
26115	    CXXFLAGS="$CXXFLAGS $ac_option"
26116	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26117/* end confdefs.h.  */
26118
26119#ifndef _OPENMP
26120 choke me
26121#endif
26122#include <omp.h>
26123int main () { return omp_get_num_threads (); }
26124
26125_ACEOF
26126if ac_fn_cxx_try_link "$LINENO"; then :
26127  ac_cv_prog_cxx_openmp=$ac_option
26128fi
26129rm -f core conftest.err conftest.$ac_objext \
26130    conftest$ac_exeext conftest.$ac_ext
26131	    CXXFLAGS=$ac_save_CXXFLAGS
26132	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26133	      break
26134	    fi
26135	  done
26136fi
26137rm -f core conftest.err conftest.$ac_objext \
26138    conftest$ac_exeext conftest.$ac_ext
26139fi
26140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26141$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26142    case $ac_cv_prog_cxx_openmp in #(
26143      "none needed" | unsupported)
26144	;; #(
26145      *)
26146	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26147    esac
26148  fi
26149
26150
26151    ac_ext=c
26152ac_cpp='$CPP $CPPFLAGS'
26153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26155ac_compiler_gnu=$ac_cv_c_compiler_gnu
26156
26157
26158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26159$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26160    if \
26161        test $ax_cv_cxx_bool = 'yes' && \
26162        test $ax_cv_cxx_namespaces = 'yes' && \
26163        test $ac_cv_cxx_have_std_libs = 'yes' && \
26164        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26165        have_magick_plus_plus='yes'
26166    else
26167        have_magick_plus_plus='no (failed tests)'
26168    fi
26169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26170$as_echo "$have_magick_plus_plus" >&6; }
26171    LIBS="$OLIBS"
26172fi
26173 if test "$have_magick_plus_plus" = 'yes'; then
26174  WITH_MAGICK_PLUS_PLUS_TRUE=
26175  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26176else
26177  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26178  WITH_MAGICK_PLUS_PLUS_FALSE=
26179fi
26180
26181
26182# Only check for delegate libraries in subdirectories if requested.
26183if test "$enable_delegate_build" != 'no'; then
26184    # Check for delegate sub-directories and add -I & -L options as required.
26185    # This presumes that delegates are installed as detailed in the ImageMagick
26186    # README. If delegates are installed in a standard location where the
26187    # compiler will automatically find them then these options should not be
26188    # required.
26189
26190    #
26191    # Most delegates have includes in the same directory as the library, but not all...
26192    #
26193    # Includes
26194    for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
26195        if test -d "$builddir/$dir"; then
26196            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26197        else
26198            if test -d "$srcdirfull/$dir"; then
26199                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26200            fi
26201        fi
26202    done
26203
26204    # Libraries
26205    for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
26206    if test -d "$builddir/$dir/.libs"; then
26207        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26208    else
26209        if test -d "$srcdirfull/$dir/.libs"; then
26210            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26211        fi
26212    fi
26213    if test -d "$builddir/$dir"; then
26214        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26215    else
26216        if test -d "$srcdirfull/$dir"; then
26217            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26218        fi
26219    fi
26220  done
26221fi
26222
26223# Assume that delegate headers reside under same directory as ImageMagick
26224# installation prefix.
26225MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
26226
26227#
26228# Find the X11 RGB database
26229#
26230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26231$as_echo_n "checking for X11 configure files... " >&6; }
26232if ${im_cv_x_configure+:} false; then :
26233  $as_echo_n "(cached) " >&6
26234else
26235  # Look for the header file in a standard set of common directories.
26236# Check X11 before X11Rn because it is often a symlink to the current release.
26237    for ac_dir in          \
26238    /lib/usr/lib/X11       \
26239    /usr/X11/lib           \
26240    /usr/X11R4/lib         \
26241    /usr/X11R5/lib         \
26242    /usr/X11R6/lib         \
26243    /usr/X11R7/lib         \
26244    /usr/X386/lib          \
26245    /usr/XFree86/lib/X11   \
26246    /usr/athena/lib        \
26247    /usr/lib               \
26248    /usr/lib/X11           \
26249    /usr/lib/X11R4         \
26250    /usr/lib/X11R5         \
26251    /usr/lib/X11R6         \
26252    /usr/lib/X11R7         \
26253    /usr/local/X11/lib     \
26254    /usr/local/X11R4/lib   \
26255    /usr/local/X11R5/lib   \
26256    /usr/local/X11R6/lib   \
26257    /usr/local/lib         \
26258    /usr/local/lib/X11     \
26259    /usr/local/lib/X11R4   \
26260    /usr/local/lib/X11R5   \
26261    /usr/local/lib/X11R6   \
26262    /usr/local/lib/X11R7   \
26263    /usr/local/x11r5/lib   \
26264    /usr/lpp/Xamples/lib   \
26265    /usr/openwin/lib       \
26266    /usr/openwin/share/lib \
26267    /usr/unsupported/lib   \
26268    /usr/x386/lib          \
26269    ; do
26270    if test -f "$ac_dir/X11/rgb.txt"; then
26271      im_cv_x_configure="$ac_dir/X11/"
26272      break
26273    elif test -f "$ac_dir/rgb.txt"; then
26274      im_cv_x_configure="$ac_dir/"
26275      break
26276    fi
26277
26278  done
26279fi
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26281$as_echo "$im_cv_x_configure" >&6; }
26282X11_CONFIGURE_PATH="$im_cv_x_configure"
26283case "${build_os}" in
26284  mingw* )
26285    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26286  ;;
26287esac
26288
26289cat >>confdefs.h <<_ACEOF
26290#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26291_ACEOF
26292
26293
26294#
26295# Find OpenMP library
26296#
26297GOMP_LIBS=''
26298if test "$enable_openmp" != 'no'; then
26299  if test "${GCC}" = "yes"; then
26300    # Open64 (passes for GCC but uses different OpenMP implementation)
26301    if test "x$GOMP_LIBS" = x ; then
26302      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26303        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26304$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26305if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26306  $as_echo_n "(cached) " >&6
26307else
26308  ac_check_lib_save_LIBS=$LIBS
26309LIBS="-lopenmp  $LIBS"
26310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26311/* end confdefs.h.  */
26312
26313/* Override any GCC internal prototype to avoid an error.
26314   Use char because int might match the return type of a GCC
26315   builtin and then its argument prototype would still apply.  */
26316#ifdef __cplusplus
26317extern "C"
26318#endif
26319char omp_get_num_procs ();
26320int
26321main ()
26322{
26323return omp_get_num_procs ();
26324  ;
26325  return 0;
26326}
26327_ACEOF
26328if ac_fn_c_try_link "$LINENO"; then :
26329  ac_cv_lib_openmp_omp_get_num_procs=yes
26330else
26331  ac_cv_lib_openmp_omp_get_num_procs=no
26332fi
26333rm -f core conftest.err conftest.$ac_objext \
26334    conftest$ac_exeext conftest.$ac_ext
26335LIBS=$ac_check_lib_save_LIBS
26336fi
26337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26338$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26339if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26340  GOMP_LIBS="-lopenmp"
26341fi
26342
26343      fi
26344    fi
26345    # GCC
26346    if test "x$GOMP_LIBS" = x ; then
26347      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26348$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26349if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26350  $as_echo_n "(cached) " >&6
26351else
26352  ac_check_lib_save_LIBS=$LIBS
26353LIBS="-lgomp  $LIBS"
26354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355/* end confdefs.h.  */
26356
26357/* Override any GCC internal prototype to avoid an error.
26358   Use char because int might match the return type of a GCC
26359   builtin and then its argument prototype would still apply.  */
26360#ifdef __cplusplus
26361extern "C"
26362#endif
26363char GOMP_parallel_start ();
26364int
26365main ()
26366{
26367return GOMP_parallel_start ();
26368  ;
26369  return 0;
26370}
26371_ACEOF
26372if ac_fn_c_try_link "$LINENO"; then :
26373  ac_cv_lib_gomp_GOMP_parallel_start=yes
26374else
26375  ac_cv_lib_gomp_GOMP_parallel_start=no
26376fi
26377rm -f core conftest.err conftest.$ac_objext \
26378    conftest$ac_exeext conftest.$ac_ext
26379LIBS=$ac_check_lib_save_LIBS
26380fi
26381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26382$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26383if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26384  GOMP_LIBS="-lgomp"
26385fi
26386
26387    fi
26388  else
26389    # Sun CC
26390    if test "x$GOMP_LIBS" = x ; then
26391      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26392$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26393if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26394  $as_echo_n "(cached) " >&6
26395else
26396  ac_check_lib_save_LIBS=$LIBS
26397LIBS="-lmtsk  $LIBS"
26398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26399/* end confdefs.h.  */
26400
26401/* Override any GCC internal prototype to avoid an error.
26402   Use char because int might match the return type of a GCC
26403   builtin and then its argument prototype would still apply.  */
26404#ifdef __cplusplus
26405extern "C"
26406#endif
26407char sunw_mp_register_warn ();
26408int
26409main ()
26410{
26411return sunw_mp_register_warn ();
26412  ;
26413  return 0;
26414}
26415_ACEOF
26416if ac_fn_c_try_link "$LINENO"; then :
26417  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26418else
26419  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26420fi
26421rm -f core conftest.err conftest.$ac_objext \
26422    conftest$ac_exeext conftest.$ac_ext
26423LIBS=$ac_check_lib_save_LIBS
26424fi
26425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26426$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26427if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26428  GOMP_LIBS="-lmtsk"
26429fi
26430
26431    fi
26432    # AIX xlc
26433    if test "x$GOMP_LIBS" = x ; then
26434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26435$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26436if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26437  $as_echo_n "(cached) " >&6
26438else
26439  ac_check_lib_save_LIBS=$LIBS
26440LIBS="-lxlsmp  $LIBS"
26441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26442/* end confdefs.h.  */
26443
26444/* Override any GCC internal prototype to avoid an error.
26445   Use char because int might match the return type of a GCC
26446   builtin and then its argument prototype would still apply.  */
26447#ifdef __cplusplus
26448extern "C"
26449#endif
26450char _xlsmpFlush ();
26451int
26452main ()
26453{
26454return _xlsmpFlush ();
26455  ;
26456  return 0;
26457}
26458_ACEOF
26459if ac_fn_c_try_link "$LINENO"; then :
26460  ac_cv_lib_xlsmp__xlsmpFlush=yes
26461else
26462  ac_cv_lib_xlsmp__xlsmpFlush=no
26463fi
26464rm -f core conftest.err conftest.$ac_objext \
26465    conftest$ac_exeext conftest.$ac_ext
26466LIBS=$ac_check_lib_save_LIBS
26467fi
26468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26469$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26470if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26471  GOMP_LIBS="-lxlsmp"
26472fi
26473
26474    fi
26475    # SGI IRIX 6.5 MIPSpro C/C++
26476    if test "x$GOMP_LIBS" = x ; then
26477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26478$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26479if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26480  $as_echo_n "(cached) " >&6
26481else
26482  ac_check_lib_save_LIBS=$LIBS
26483LIBS="-lmp  $LIBS"
26484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26485/* end confdefs.h.  */
26486
26487/* Override any GCC internal prototype to avoid an error.
26488   Use char because int might match the return type of a GCC
26489   builtin and then its argument prototype would still apply.  */
26490#ifdef __cplusplus
26491extern "C"
26492#endif
26493char mp_destroy ();
26494int
26495main ()
26496{
26497return mp_destroy ();
26498  ;
26499  return 0;
26500}
26501_ACEOF
26502if ac_fn_c_try_link "$LINENO"; then :
26503  ac_cv_lib_mp_mp_destroy=yes
26504else
26505  ac_cv_lib_mp_mp_destroy=no
26506fi
26507rm -f core conftest.err conftest.$ac_objext \
26508    conftest$ac_exeext conftest.$ac_ext
26509LIBS=$ac_check_lib_save_LIBS
26510fi
26511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26512$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26513if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26514  GOMP_LIBS="-lmp"
26515fi
26516
26517    fi
26518  fi
26519  LIBS="$GOMP_LIBS $LIBS"
26520fi
26521
26522
26523
26524
26525#
26526# Check for umem.
26527#
26528have_umem='no'
26529UMEM_LIBS=''
26530if test "$with_umem" != 'no'; then
26531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26532$as_echo_n "checking for UMEM support ... " >&6; }
26533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26534$as_echo "" >&6; }
26535  failed=0
26536  passed=0
26537  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26538if test "x$ac_cv_header_umem_h" = xyes; then :
26539  passed=`expr $passed + 1`
26540else
26541  failed=`expr $failed + 1`
26542fi
26543
26544
26545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26546$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26547if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26548  $as_echo_n "(cached) " >&6
26549else
26550  ac_check_lib_save_LIBS=$LIBS
26551LIBS="-lumem  $LIBS"
26552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26553/* end confdefs.h.  */
26554
26555/* Override any GCC internal prototype to avoid an error.
26556   Use char because int might match the return type of a GCC
26557   builtin and then its argument prototype would still apply.  */
26558#ifdef __cplusplus
26559extern "C"
26560#endif
26561char umem_alloc ();
26562int
26563main ()
26564{
26565return umem_alloc ();
26566  ;
26567  return 0;
26568}
26569_ACEOF
26570if ac_fn_c_try_link "$LINENO"; then :
26571  ac_cv_lib_umem_umem_alloc=yes
26572else
26573  ac_cv_lib_umem_umem_alloc=no
26574fi
26575rm -f core conftest.err conftest.$ac_objext \
26576    conftest$ac_exeext conftest.$ac_ext
26577LIBS=$ac_check_lib_save_LIBS
26578fi
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26580$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26581if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26582  passed=`expr $passed + 1`
26583else
26584  failed=`expr $failed + 1`
26585fi
26586
26587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26588$as_echo_n "checking for umem_free in -lumem... " >&6; }
26589if ${ac_cv_lib_umem_umem_free+:} false; then :
26590  $as_echo_n "(cached) " >&6
26591else
26592  ac_check_lib_save_LIBS=$LIBS
26593LIBS="-lumem  $LIBS"
26594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595/* end confdefs.h.  */
26596
26597/* Override any GCC internal prototype to avoid an error.
26598   Use char because int might match the return type of a GCC
26599   builtin and then its argument prototype would still apply.  */
26600#ifdef __cplusplus
26601extern "C"
26602#endif
26603char umem_free ();
26604int
26605main ()
26606{
26607return umem_free ();
26608  ;
26609  return 0;
26610}
26611_ACEOF
26612if ac_fn_c_try_link "$LINENO"; then :
26613  ac_cv_lib_umem_umem_free=yes
26614else
26615  ac_cv_lib_umem_umem_free=no
26616fi
26617rm -f core conftest.err conftest.$ac_objext \
26618    conftest$ac_exeext conftest.$ac_ext
26619LIBS=$ac_check_lib_save_LIBS
26620fi
26621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26622$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26623if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26624  passed=`expr $passed + 1`
26625else
26626  failed=`expr $failed + 1`
26627fi
26628
26629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26630$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26631  if test $passed -gt 0; then
26632    if test $failed -gt 0; then
26633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26634$as_echo "no -- some components failed test" >&6; }
26635      have_umem='no (failed tests)'
26636    else
26637      UMEM_LIBS='-lumem'
26638      LIBS="$UMEM_LIBS $LIBS"
26639
26640$as_echo "#define HasUMEM 1" >>confdefs.h
26641
26642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26643$as_echo "yes" >&6; }
26644      have_umem='yes'
26645    fi
26646  else
26647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26648$as_echo "no" >&6; }
26649  fi
26650fi
26651 if test "$have_umem" = 'yes'; then
26652  HasUMEM_TRUE=
26653  HasUMEM_FALSE='#'
26654else
26655  HasUMEM_TRUE='#'
26656  HasUMEM_FALSE=
26657fi
26658
26659
26660
26661#
26662# Add support for ccmalloc memory debugging library if requested
26663#
26664have_ccmalloc='no'
26665CCMALLOC_LIBS=''
26666if test "$enable_ccmalloc" = 'yes'; then
26667    # Extract the first word of "ccmalloc", so it can be a program name with args.
26668set dummy ccmalloc; ac_word=$2
26669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26670$as_echo_n "checking for $ac_word... " >&6; }
26671if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26672  $as_echo_n "(cached) " >&6
26673else
26674  case $CCMALLOCDelegate in
26675  [\\/]* | ?:[\\/]*)
26676  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26677  ;;
26678  *)
26679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26680for as_dir in $PATH
26681do
26682  IFS=$as_save_IFS
26683  test -z "$as_dir" && as_dir=.
26684    for ac_exec_ext in '' $ac_executable_extensions; do
26685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26686    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26688    break 2
26689  fi
26690done
26691  done
26692IFS=$as_save_IFS
26693
26694  ;;
26695esac
26696fi
26697CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26698if test -n "$CCMALLOCDelegate"; then
26699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26700$as_echo "$CCMALLOCDelegate" >&6; }
26701else
26702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26703$as_echo "no" >&6; }
26704fi
26705
26706
26707    if test -n "$CCMALLOCDelegate"; then
26708        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26709        OLIBS="$LIBS"
26710        # Assume that gcc is used with ccmalloc.
26711        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26713$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26714if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26715  $as_echo_n "(cached) " >&6
26716else
26717  ac_check_lib_save_LIBS=$LIBS
26718LIBS="-lccmalloc -ldl $LIBS"
26719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26720/* end confdefs.h.  */
26721
26722/* Override any GCC internal prototype to avoid an error.
26723   Use char because int might match the return type of a GCC
26724   builtin and then its argument prototype would still apply.  */
26725#ifdef __cplusplus
26726extern "C"
26727#endif
26728char ccmalloc_malloc ();
26729int
26730main ()
26731{
26732return ccmalloc_malloc ();
26733  ;
26734  return 0;
26735}
26736_ACEOF
26737if ac_fn_c_try_link "$LINENO"; then :
26738  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26739else
26740  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26741fi
26742rm -f core conftest.err conftest.$ac_objext \
26743    conftest$ac_exeext conftest.$ac_ext
26744LIBS=$ac_check_lib_save_LIBS
26745fi
26746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26747$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26748if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26749  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26750fi
26751
26752        if test -n "$CCMALLOC_LIBS"; then
26753            LIBS="$OLIBS"
26754            LIBS="$LIBS $CCMALLOC_LIBS"
26755            have_ccmalloc='yes'
26756        else
26757            LIBS="$OLIBS"
26758        fi
26759    fi
26760fi
26761
26762#
26763# Add support for 'huge pages' if requested
26764#
26765if test "x$enable_hugepages" != "xno"; then :
26766
26767
26768$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26769
26770
26771fi
26772
26773#
26774# Add support for efence memory debugging library if requested
26775#
26776if test "$enable_efence" = 'yes'; then
26777    EFENCE_LIBS='-lefence'
26778    LIBS="$EFENCE_LIBS $LIBS"
26779fi
26780
26781
26782#
26783# Check for BZLIB
26784#
26785
26786
26787# Check whether --with-bzlib was given.
26788if test "${with_bzlib+set}" = set; then :
26789  withval=$with_bzlib; with_bzlib=$withval
26790else
26791  with_bzlib='yes'
26792fi
26793
26794
26795if test "$with_bzlib" != 'yes'; then
26796    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26797fi
26798
26799have_bzlib='no'
26800if test "$with_bzlib" != 'no'; then
26801    BZLIB_LIBS=''
26802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26803$as_echo "-------------------------------------------------------------" >&6; }
26804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26805$as_echo_n "checking for BZLIB... " >&6; }
26806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26807$as_echo "" >&6; }
26808    failed=0
26809    passed=0
26810    found_libbz=0
26811    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26812if test "x$ac_cv_header_bzlib_h" = xyes; then :
26813  passed=`expr $passed + 1`
26814else
26815  failed=`expr $failed + 1`
26816fi
26817
26818
26819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26820$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26821if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26822  $as_echo_n "(cached) " >&6
26823else
26824  ac_check_lib_save_LIBS=$LIBS
26825LIBS="-lbz2  $LIBS"
26826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26827/* end confdefs.h.  */
26828
26829/* Override any GCC internal prototype to avoid an error.
26830   Use char because int might match the return type of a GCC
26831   builtin and then its argument prototype would still apply.  */
26832#ifdef __cplusplus
26833extern "C"
26834#endif
26835char BZ2_bzDecompress ();
26836int
26837main ()
26838{
26839return BZ2_bzDecompress ();
26840  ;
26841  return 0;
26842}
26843_ACEOF
26844if ac_fn_c_try_link "$LINENO"; then :
26845  ac_cv_lib_bz2_BZ2_bzDecompress=yes
26846else
26847  ac_cv_lib_bz2_BZ2_bzDecompress=no
26848fi
26849rm -f core conftest.err conftest.$ac_objext \
26850    conftest$ac_exeext conftest.$ac_ext
26851LIBS=$ac_check_lib_save_LIBS
26852fi
26853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26854$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26855if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26856  found_libbz=`expr $found_libbz + 1`
26857fi
26858
26859    if test "$native_win32_build" = 'yes'; then
26860      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26861$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26862if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26863  $as_echo_n "(cached) " >&6
26864else
26865  ac_check_lib_save_LIBS=$LIBS
26866LIBS="-lbz2  $LIBS"
26867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868/* end confdefs.h.  */
26869
26870/* Override any GCC internal prototype to avoid an error.
26871   Use char because int might match the return type of a GCC
26872   builtin and then its argument prototype would still apply.  */
26873#ifdef __cplusplus
26874extern "C"
26875#endif
26876char _imp__BZ2_decompress ();
26877int
26878main ()
26879{
26880return _imp__BZ2_decompress ();
26881  ;
26882  return 0;
26883}
26884_ACEOF
26885if ac_fn_c_try_link "$LINENO"; then :
26886  ac_cv_lib_bz2__imp__BZ2_decompress=yes
26887else
26888  ac_cv_lib_bz2__imp__BZ2_decompress=no
26889fi
26890rm -f core conftest.err conftest.$ac_objext \
26891    conftest$ac_exeext conftest.$ac_ext
26892LIBS=$ac_check_lib_save_LIBS
26893fi
26894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26895$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26896if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26897  found_libbz=`expr $found_libbz + 1`
26898fi
26899
26900    fi
26901    if test $found_libbz -gt 0; then
26902      passed=`expr $passed + 1`
26903    else
26904      failed=`expr $failed + 1`
26905    fi
26906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26907$as_echo_n "checking if BZLIB package is complete... " >&6; }
26908    if test $passed -gt 0; then
26909      if test $failed -gt 0; then
26910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26911$as_echo "no -- some components failed test" >&6; }
26912        have_bzlib='no (failed tests)'
26913      else
26914        BZLIB_LIBS='-lbz2'
26915        LIBS="$BZLIB_LIBS $LIBS"
26916
26917$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26918
26919        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920$as_echo "yes" >&6; }
26921        have_bzlib='yes'
26922      fi
26923    else
26924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26925$as_echo "no" >&6; }
26926    fi
26927fi
26928 if test "$have_bzlib" = 'yes'; then
26929  BZLIB_DELEGATE_TRUE=
26930  BZLIB_DELEGATE_FALSE='#'
26931else
26932  BZLIB_DELEGATE_TRUE='#'
26933  BZLIB_DELEGATE_FALSE=
26934fi
26935
26936
26937
26938#
26939# Find the X11 include and library directories.
26940#
26941IPC_LIBS=''
26942X11_LIBS=''
26943XEXT_LIBS=''
26944XT_LIBS=''
26945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26946$as_echo_n "checking for X... " >&6; }
26947
26948
26949# Check whether --with-x was given.
26950if test "${with_x+set}" = set; then :
26951  withval=$with_x;
26952fi
26953
26954# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26955if test "x$with_x" = xno; then
26956  # The user explicitly disabled X.
26957  have_x=disabled
26958else
26959  case $x_includes,$x_libraries in #(
26960    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26961    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26962  $as_echo_n "(cached) " >&6
26963else
26964  # One or both of the vars are not set, and there is no cached value.
26965ac_x_includes=no ac_x_libraries=no
26966rm -f -r conftest.dir
26967if mkdir conftest.dir; then
26968  cd conftest.dir
26969  cat >Imakefile <<'_ACEOF'
26970incroot:
26971	@echo incroot='${INCROOT}'
26972usrlibdir:
26973	@echo usrlibdir='${USRLIBDIR}'
26974libdir:
26975	@echo libdir='${LIBDIR}'
26976_ACEOF
26977  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26978    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26979    for ac_var in incroot usrlibdir libdir; do
26980      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26981    done
26982    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26983    for ac_extension in a so sl dylib la dll; do
26984      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26985	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26986	ac_im_usrlibdir=$ac_im_libdir; break
26987      fi
26988    done
26989    # Screen out bogus values from the imake configuration.  They are
26990    # bogus both because they are the default anyway, and because
26991    # using them would break gcc on systems where it needs fixed includes.
26992    case $ac_im_incroot in
26993	/usr/include) ac_x_includes= ;;
26994	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26995    esac
26996    case $ac_im_usrlibdir in
26997	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
26998	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26999    esac
27000  fi
27001  cd ..
27002  rm -f -r conftest.dir
27003fi
27004
27005# Standard set of common directories for X headers.
27006# Check X11 before X11Rn because it is often a symlink to the current release.
27007ac_x_header_dirs='
27008/usr/X11/include
27009/usr/X11R7/include
27010/usr/X11R6/include
27011/usr/X11R5/include
27012/usr/X11R4/include
27013
27014/usr/include/X11
27015/usr/include/X11R7
27016/usr/include/X11R6
27017/usr/include/X11R5
27018/usr/include/X11R4
27019
27020/usr/local/X11/include
27021/usr/local/X11R7/include
27022/usr/local/X11R6/include
27023/usr/local/X11R5/include
27024/usr/local/X11R4/include
27025
27026/usr/local/include/X11
27027/usr/local/include/X11R7
27028/usr/local/include/X11R6
27029/usr/local/include/X11R5
27030/usr/local/include/X11R4
27031
27032/usr/X386/include
27033/usr/x386/include
27034/usr/XFree86/include/X11
27035
27036/usr/include
27037/usr/local/include
27038/usr/unsupported/include
27039/usr/athena/include
27040/usr/local/x11r5/include
27041/usr/lpp/Xamples/include
27042
27043/usr/openwin/include
27044/usr/openwin/share/include'
27045
27046if test "$ac_x_includes" = no; then
27047  # Guess where to find include files, by looking for Xlib.h.
27048  # First, try using that file with no special directory specified.
27049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27050/* end confdefs.h.  */
27051#include <X11/Xlib.h>
27052_ACEOF
27053if ac_fn_c_try_cpp "$LINENO"; then :
27054  # We can compile using X headers with no special include directory.
27055ac_x_includes=
27056else
27057  for ac_dir in $ac_x_header_dirs; do
27058  if test -r "$ac_dir/X11/Xlib.h"; then
27059    ac_x_includes=$ac_dir
27060    break
27061  fi
27062done
27063fi
27064rm -f conftest.err conftest.i conftest.$ac_ext
27065fi # $ac_x_includes = no
27066
27067if test "$ac_x_libraries" = no; then
27068  # Check for the libraries.
27069  # See if we find them without any special options.
27070  # Don't add to $LIBS permanently.
27071  ac_save_LIBS=$LIBS
27072  LIBS="-lX11 $LIBS"
27073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27074/* end confdefs.h.  */
27075#include <X11/Xlib.h>
27076int
27077main ()
27078{
27079XrmInitialize ()
27080  ;
27081  return 0;
27082}
27083_ACEOF
27084if ac_fn_c_try_link "$LINENO"; then :
27085  LIBS=$ac_save_LIBS
27086# We can link X programs with no special library path.
27087ac_x_libraries=
27088else
27089  LIBS=$ac_save_LIBS
27090for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27091do
27092  # Don't even attempt the hair of trying to link an X program!
27093  for ac_extension in a so sl dylib la dll; do
27094    if test -r "$ac_dir/libX11.$ac_extension"; then
27095      ac_x_libraries=$ac_dir
27096      break 2
27097    fi
27098  done
27099done
27100fi
27101rm -f core conftest.err conftest.$ac_objext \
27102    conftest$ac_exeext conftest.$ac_ext
27103fi # $ac_x_libraries = no
27104
27105case $ac_x_includes,$ac_x_libraries in #(
27106  no,* | *,no | *\'*)
27107    # Didn't find X, or a directory has "'" in its name.
27108    ac_cv_have_x="have_x=no";; #(
27109  *)
27110    # Record where we found X for the cache.
27111    ac_cv_have_x="have_x=yes\
27112	ac_x_includes='$ac_x_includes'\
27113	ac_x_libraries='$ac_x_libraries'"
27114esac
27115fi
27116;; #(
27117    *) have_x=yes;;
27118  esac
27119  eval "$ac_cv_have_x"
27120fi # $with_x != no
27121
27122if test "$have_x" != yes; then
27123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27124$as_echo "$have_x" >&6; }
27125  no_x=yes
27126else
27127  # If each of the values was on the command line, it overrides each guess.
27128  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27129  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27130  # Update the cache value to reflect the command line values.
27131  ac_cv_have_x="have_x=yes\
27132	ac_x_includes='$x_includes'\
27133	ac_x_libraries='$x_libraries'"
27134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27135$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27136fi
27137
27138if test "$no_x" = yes; then
27139  # Not all programs may use this symbol, but it does not hurt to define it.
27140
27141$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27142
27143  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27144else
27145  if test -n "$x_includes"; then
27146    X_CFLAGS="$X_CFLAGS -I$x_includes"
27147  fi
27148
27149  # It would also be nice to do this for all -L options, not just this one.
27150  if test -n "$x_libraries"; then
27151    X_LIBS="$X_LIBS -L$x_libraries"
27152    # For Solaris; some versions of Sun CC require a space after -R and
27153    # others require no space.  Words are not sufficient . . . .
27154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27155$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27156    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27157    ac_xsave_c_werror_flag=$ac_c_werror_flag
27158    ac_c_werror_flag=yes
27159    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27160/* end confdefs.h.  */
27161
27162int
27163main ()
27164{
27165
27166  ;
27167  return 0;
27168}
27169_ACEOF
27170if ac_fn_c_try_link "$LINENO"; then :
27171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27172$as_echo "no" >&6; }
27173       X_LIBS="$X_LIBS -R$x_libraries"
27174else
27175  LIBS="$ac_xsave_LIBS -R $x_libraries"
27176       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27177/* end confdefs.h.  */
27178
27179int
27180main ()
27181{
27182
27183  ;
27184  return 0;
27185}
27186_ACEOF
27187if ac_fn_c_try_link "$LINENO"; then :
27188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27189$as_echo "yes" >&6; }
27190	  X_LIBS="$X_LIBS -R $x_libraries"
27191else
27192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27193$as_echo "neither works" >&6; }
27194fi
27195rm -f core conftest.err conftest.$ac_objext \
27196    conftest$ac_exeext conftest.$ac_ext
27197fi
27198rm -f core conftest.err conftest.$ac_objext \
27199    conftest$ac_exeext conftest.$ac_ext
27200    ac_c_werror_flag=$ac_xsave_c_werror_flag
27201    LIBS=$ac_xsave_LIBS
27202  fi
27203
27204  # Check for system-dependent libraries X programs must link with.
27205  # Do this before checking for the system-independent R6 libraries
27206  # (-lICE), since we may need -lsocket or whatever for X linking.
27207
27208  if test "$ISC" = yes; then
27209    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27210  else
27211    # Martyn Johnson says this is needed for Ultrix, if the X
27212    # libraries were built with DECnet support.  And Karl Berry says
27213    # the Alpha needs dnet_stub (dnet does not exist).
27214    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27216/* end confdefs.h.  */
27217
27218/* Override any GCC internal prototype to avoid an error.
27219   Use char because int might match the return type of a GCC
27220   builtin and then its argument prototype would still apply.  */
27221#ifdef __cplusplus
27222extern "C"
27223#endif
27224char XOpenDisplay ();
27225int
27226main ()
27227{
27228return XOpenDisplay ();
27229  ;
27230  return 0;
27231}
27232_ACEOF
27233if ac_fn_c_try_link "$LINENO"; then :
27234
27235else
27236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27237$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27238if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27239  $as_echo_n "(cached) " >&6
27240else
27241  ac_check_lib_save_LIBS=$LIBS
27242LIBS="-ldnet  $LIBS"
27243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27244/* end confdefs.h.  */
27245
27246/* Override any GCC internal prototype to avoid an error.
27247   Use char because int might match the return type of a GCC
27248   builtin and then its argument prototype would still apply.  */
27249#ifdef __cplusplus
27250extern "C"
27251#endif
27252char dnet_ntoa ();
27253int
27254main ()
27255{
27256return dnet_ntoa ();
27257  ;
27258  return 0;
27259}
27260_ACEOF
27261if ac_fn_c_try_link "$LINENO"; then :
27262  ac_cv_lib_dnet_dnet_ntoa=yes
27263else
27264  ac_cv_lib_dnet_dnet_ntoa=no
27265fi
27266rm -f core conftest.err conftest.$ac_objext \
27267    conftest$ac_exeext conftest.$ac_ext
27268LIBS=$ac_check_lib_save_LIBS
27269fi
27270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27271$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27272if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27273  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27274fi
27275
27276    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27278$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27279if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27280  $as_echo_n "(cached) " >&6
27281else
27282  ac_check_lib_save_LIBS=$LIBS
27283LIBS="-ldnet_stub  $LIBS"
27284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285/* end confdefs.h.  */
27286
27287/* Override any GCC internal prototype to avoid an error.
27288   Use char because int might match the return type of a GCC
27289   builtin and then its argument prototype would still apply.  */
27290#ifdef __cplusplus
27291extern "C"
27292#endif
27293char dnet_ntoa ();
27294int
27295main ()
27296{
27297return dnet_ntoa ();
27298  ;
27299  return 0;
27300}
27301_ACEOF
27302if ac_fn_c_try_link "$LINENO"; then :
27303  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27304else
27305  ac_cv_lib_dnet_stub_dnet_ntoa=no
27306fi
27307rm -f core conftest.err conftest.$ac_objext \
27308    conftest$ac_exeext conftest.$ac_ext
27309LIBS=$ac_check_lib_save_LIBS
27310fi
27311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27312$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27313if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27314  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27315fi
27316
27317    fi
27318fi
27319rm -f core conftest.err conftest.$ac_objext \
27320    conftest$ac_exeext conftest.$ac_ext
27321    LIBS="$ac_xsave_LIBS"
27322
27323    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27324    # to get the SysV transport functions.
27325    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27326    # needs -lnsl.
27327    # The nsl library prevents programs from opening the X display
27328    # on Irix 5.2, according to T.E. Dickey.
27329    # The functions gethostbyname, getservbyname, and inet_addr are
27330    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27331    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27332if test "x$ac_cv_func_gethostbyname" = xyes; then :
27333
27334fi
27335
27336    if test $ac_cv_func_gethostbyname = no; then
27337      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27338$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27339if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27340  $as_echo_n "(cached) " >&6
27341else
27342  ac_check_lib_save_LIBS=$LIBS
27343LIBS="-lnsl  $LIBS"
27344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27345/* end confdefs.h.  */
27346
27347/* Override any GCC internal prototype to avoid an error.
27348   Use char because int might match the return type of a GCC
27349   builtin and then its argument prototype would still apply.  */
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353char gethostbyname ();
27354int
27355main ()
27356{
27357return gethostbyname ();
27358  ;
27359  return 0;
27360}
27361_ACEOF
27362if ac_fn_c_try_link "$LINENO"; then :
27363  ac_cv_lib_nsl_gethostbyname=yes
27364else
27365  ac_cv_lib_nsl_gethostbyname=no
27366fi
27367rm -f core conftest.err conftest.$ac_objext \
27368    conftest$ac_exeext conftest.$ac_ext
27369LIBS=$ac_check_lib_save_LIBS
27370fi
27371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27372$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27373if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27374  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27375fi
27376
27377      if test $ac_cv_lib_nsl_gethostbyname = no; then
27378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27379$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27380if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27381  $as_echo_n "(cached) " >&6
27382else
27383  ac_check_lib_save_LIBS=$LIBS
27384LIBS="-lbsd  $LIBS"
27385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27386/* end confdefs.h.  */
27387
27388/* Override any GCC internal prototype to avoid an error.
27389   Use char because int might match the return type of a GCC
27390   builtin and then its argument prototype would still apply.  */
27391#ifdef __cplusplus
27392extern "C"
27393#endif
27394char gethostbyname ();
27395int
27396main ()
27397{
27398return gethostbyname ();
27399  ;
27400  return 0;
27401}
27402_ACEOF
27403if ac_fn_c_try_link "$LINENO"; then :
27404  ac_cv_lib_bsd_gethostbyname=yes
27405else
27406  ac_cv_lib_bsd_gethostbyname=no
27407fi
27408rm -f core conftest.err conftest.$ac_objext \
27409    conftest$ac_exeext conftest.$ac_ext
27410LIBS=$ac_check_lib_save_LIBS
27411fi
27412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27413$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27414if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27415  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27416fi
27417
27418      fi
27419    fi
27420
27421    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27422    # socket/setsockopt and other routines are undefined under SCO ODT
27423    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27424    # on later versions), says Simon Leinen: it contains gethostby*
27425    # variants that don't use the name server (or something).  -lsocket
27426    # must be given before -lnsl if both are needed.  We assume that
27427    # if connect needs -lnsl, so does gethostbyname.
27428    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27429if test "x$ac_cv_func_connect" = xyes; then :
27430
27431fi
27432
27433    if test $ac_cv_func_connect = no; then
27434      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27435$as_echo_n "checking for connect in -lsocket... " >&6; }
27436if ${ac_cv_lib_socket_connect+:} false; then :
27437  $as_echo_n "(cached) " >&6
27438else
27439  ac_check_lib_save_LIBS=$LIBS
27440LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442/* end confdefs.h.  */
27443
27444/* Override any GCC internal prototype to avoid an error.
27445   Use char because int might match the return type of a GCC
27446   builtin and then its argument prototype would still apply.  */
27447#ifdef __cplusplus
27448extern "C"
27449#endif
27450char connect ();
27451int
27452main ()
27453{
27454return connect ();
27455  ;
27456  return 0;
27457}
27458_ACEOF
27459if ac_fn_c_try_link "$LINENO"; then :
27460  ac_cv_lib_socket_connect=yes
27461else
27462  ac_cv_lib_socket_connect=no
27463fi
27464rm -f core conftest.err conftest.$ac_objext \
27465    conftest$ac_exeext conftest.$ac_ext
27466LIBS=$ac_check_lib_save_LIBS
27467fi
27468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27469$as_echo "$ac_cv_lib_socket_connect" >&6; }
27470if test "x$ac_cv_lib_socket_connect" = xyes; then :
27471  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27472fi
27473
27474    fi
27475
27476    # Guillermo Gomez says -lposix is necessary on A/UX.
27477    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27478if test "x$ac_cv_func_remove" = xyes; then :
27479
27480fi
27481
27482    if test $ac_cv_func_remove = no; then
27483      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27484$as_echo_n "checking for remove in -lposix... " >&6; }
27485if ${ac_cv_lib_posix_remove+:} false; then :
27486  $as_echo_n "(cached) " >&6
27487else
27488  ac_check_lib_save_LIBS=$LIBS
27489LIBS="-lposix  $LIBS"
27490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27491/* end confdefs.h.  */
27492
27493/* Override any GCC internal prototype to avoid an error.
27494   Use char because int might match the return type of a GCC
27495   builtin and then its argument prototype would still apply.  */
27496#ifdef __cplusplus
27497extern "C"
27498#endif
27499char remove ();
27500int
27501main ()
27502{
27503return remove ();
27504  ;
27505  return 0;
27506}
27507_ACEOF
27508if ac_fn_c_try_link "$LINENO"; then :
27509  ac_cv_lib_posix_remove=yes
27510else
27511  ac_cv_lib_posix_remove=no
27512fi
27513rm -f core conftest.err conftest.$ac_objext \
27514    conftest$ac_exeext conftest.$ac_ext
27515LIBS=$ac_check_lib_save_LIBS
27516fi
27517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27518$as_echo "$ac_cv_lib_posix_remove" >&6; }
27519if test "x$ac_cv_lib_posix_remove" = xyes; then :
27520  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27521fi
27522
27523    fi
27524
27525    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27526    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27527if test "x$ac_cv_func_shmat" = xyes; then :
27528
27529fi
27530
27531    if test $ac_cv_func_shmat = no; then
27532      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27533$as_echo_n "checking for shmat in -lipc... " >&6; }
27534if ${ac_cv_lib_ipc_shmat+:} false; then :
27535  $as_echo_n "(cached) " >&6
27536else
27537  ac_check_lib_save_LIBS=$LIBS
27538LIBS="-lipc  $LIBS"
27539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540/* end confdefs.h.  */
27541
27542/* Override any GCC internal prototype to avoid an error.
27543   Use char because int might match the return type of a GCC
27544   builtin and then its argument prototype would still apply.  */
27545#ifdef __cplusplus
27546extern "C"
27547#endif
27548char shmat ();
27549int
27550main ()
27551{
27552return shmat ();
27553  ;
27554  return 0;
27555}
27556_ACEOF
27557if ac_fn_c_try_link "$LINENO"; then :
27558  ac_cv_lib_ipc_shmat=yes
27559else
27560  ac_cv_lib_ipc_shmat=no
27561fi
27562rm -f core conftest.err conftest.$ac_objext \
27563    conftest$ac_exeext conftest.$ac_ext
27564LIBS=$ac_check_lib_save_LIBS
27565fi
27566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27567$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27568if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27569  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27570fi
27571
27572    fi
27573  fi
27574
27575  # Check for libraries that X11R6 Xt/Xaw programs need.
27576  ac_save_LDFLAGS=$LDFLAGS
27577  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27578  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27579  # check for ICE first), but we must link in the order -lSM -lICE or
27580  # we get undefined symbols.  So assume we have SM if we have ICE.
27581  # These have to be linked with before -lX11, unlike the other
27582  # libraries we check for below, so use a different variable.
27583  # John Interrante, Karl Berry
27584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27585$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27586if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27587  $as_echo_n "(cached) " >&6
27588else
27589  ac_check_lib_save_LIBS=$LIBS
27590LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592/* end confdefs.h.  */
27593
27594/* Override any GCC internal prototype to avoid an error.
27595   Use char because int might match the return type of a GCC
27596   builtin and then its argument prototype would still apply.  */
27597#ifdef __cplusplus
27598extern "C"
27599#endif
27600char IceConnectionNumber ();
27601int
27602main ()
27603{
27604return IceConnectionNumber ();
27605  ;
27606  return 0;
27607}
27608_ACEOF
27609if ac_fn_c_try_link "$LINENO"; then :
27610  ac_cv_lib_ICE_IceConnectionNumber=yes
27611else
27612  ac_cv_lib_ICE_IceConnectionNumber=no
27613fi
27614rm -f core conftest.err conftest.$ac_objext \
27615    conftest$ac_exeext conftest.$ac_ext
27616LIBS=$ac_check_lib_save_LIBS
27617fi
27618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27619$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27620if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27621  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27622fi
27623
27624  LDFLAGS=$ac_save_LDFLAGS
27625
27626fi
27627
27628if test "$no_x" != 'yes'; then
27629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27630$as_echo "-------------------------------------------------------------" >&6; }
27631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27632$as_echo_n "checking for X11... " >&6; }
27633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27634$as_echo "" >&6; }
27635    LDFLAGS="$LDFLAGS $X_LIBS"
27636    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27637    LIBS="$X11_LIBS $LIBS"
27638    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27639
27640
27641$as_echo "#define X11_DELEGATE 1" >>confdefs.h
27642
27643    #
27644    # Check for X11 shared memory extension
27645    #
27646    # shmctl is required to support the shared memory extension
27647    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27648if test "x$ac_cv_func_shmctl" = xyes; then :
27649  have_shmctl='yes'
27650fi
27651
27652    if test "$have_shmctl" != 'yes'; then
27653        PERSIST_LIBS=$LIBS
27654        LIBS="$LIBS -lcygipc"
27655        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656/* end confdefs.h.  */
27657
27658/* Override any GCC internal prototype to avoid an error.
27659   Use char because int might match the return type of a GCC
27660   builtin and then its argument prototype would still apply.  */
27661#ifdef __cplusplus
27662extern "C"
27663#endif
27664char shmctl ();
27665int
27666main ()
27667{
27668return shmctl ();
27669  ;
27670  return 0;
27671}
27672_ACEOF
27673if ac_fn_c_try_link "$LINENO"; then :
27674  have_shmctl='yes'; IPC_LIBS='-lcygipc'
27675fi
27676rm -f core conftest.err conftest.$ac_objext \
27677    conftest$ac_exeext conftest.$ac_ext
27678        LIBS=$PERSIST_LIBS
27679    fi
27680
27681    if test "$have_shmctl" = 'yes'; then
27682        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27683$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27684if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27685  $as_echo_n "(cached) " >&6
27686else
27687  ac_check_lib_save_LIBS=$LIBS
27688LIBS="-lXext  $LIBS"
27689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690/* end confdefs.h.  */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693   Use char because int might match the return type of a GCC
27694   builtin and then its argument prototype would still apply.  */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char XShmAttach ();
27699int
27700main ()
27701{
27702return XShmAttach ();
27703  ;
27704  return 0;
27705}
27706_ACEOF
27707if ac_fn_c_try_link "$LINENO"; then :
27708  ac_cv_lib_Xext_XShmAttach=yes
27709else
27710  ac_cv_lib_Xext_XShmAttach=no
27711fi
27712rm -f core conftest.err conftest.$ac_objext \
27713    conftest$ac_exeext conftest.$ac_ext
27714LIBS=$ac_check_lib_save_LIBS
27715fi
27716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27717$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27718if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27719  XEXT_LIBS='-lXext' ;
27720$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27721
27722fi
27723
27724    fi
27725
27726    #
27727    # Check for X11 shape extension
27728    #
27729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27730$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27731if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27732  $as_echo_n "(cached) " >&6
27733else
27734  ac_check_lib_save_LIBS=$LIBS
27735LIBS="-lXext  $LIBS"
27736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27737/* end confdefs.h.  */
27738
27739/* Override any GCC internal prototype to avoid an error.
27740   Use char because int might match the return type of a GCC
27741   builtin and then its argument prototype would still apply.  */
27742#ifdef __cplusplus
27743extern "C"
27744#endif
27745char XShapeCombineMask ();
27746int
27747main ()
27748{
27749return XShapeCombineMask ();
27750  ;
27751  return 0;
27752}
27753_ACEOF
27754if ac_fn_c_try_link "$LINENO"; then :
27755  ac_cv_lib_Xext_XShapeCombineMask=yes
27756else
27757  ac_cv_lib_Xext_XShapeCombineMask=no
27758fi
27759rm -f core conftest.err conftest.$ac_objext \
27760    conftest$ac_exeext conftest.$ac_ext
27761LIBS=$ac_check_lib_save_LIBS
27762fi
27763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27764$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27765if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27766  XEXT_LIBS='-lXext' ;
27767$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27768
27769fi
27770
27771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27772$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27773if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27774  $as_echo_n "(cached) " >&6
27775else
27776  ac_check_lib_save_LIBS=$LIBS
27777LIBS="-lXt  $LIBS"
27778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27779/* end confdefs.h.  */
27780
27781/* Override any GCC internal prototype to avoid an error.
27782   Use char because int might match the return type of a GCC
27783   builtin and then its argument prototype would still apply.  */
27784#ifdef __cplusplus
27785extern "C"
27786#endif
27787char XtSetEventDispatcher ();
27788int
27789main ()
27790{
27791return XtSetEventDispatcher ();
27792  ;
27793  return 0;
27794}
27795_ACEOF
27796if ac_fn_c_try_link "$LINENO"; then :
27797  ac_cv_lib_Xt_XtSetEventDispatcher=yes
27798else
27799  ac_cv_lib_Xt_XtSetEventDispatcher=no
27800fi
27801rm -f core conftest.err conftest.$ac_objext \
27802    conftest$ac_exeext conftest.$ac_ext
27803LIBS=$ac_check_lib_save_LIBS
27804fi
27805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27806$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27807if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27808  XT_LIBS='-lXt'
27809fi
27810
27811    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27812fi
27813if test "$no_x" != 'yes'; then
27814  have_x='yes'
27815else
27816  have_x='no'
27817fi
27818 if test "$have_x" = 'yes'; then
27819  X11_DELEGATE_TRUE=
27820  X11_DELEGATE_FALSE='#'
27821else
27822  X11_DELEGATE_TRUE='#'
27823  X11_DELEGATE_FALSE=
27824fi
27825
27826
27827
27828
27829
27830#
27831# Check for ZLIB
27832#
27833
27834# Check whether --with-zlib was given.
27835if test "${with_zlib+set}" = set; then :
27836  withval=$with_zlib; with_zlib=$withval
27837else
27838  with_zlib='yes'
27839fi
27840
27841
27842if test "$with_zlib" != 'yes'; then
27843    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27844fi
27845
27846have_zlib='no'
27847ZLIB_LIBS=''
27848if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27850$as_echo "-------------------------------------------------------------" >&6; }
27851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27852$as_echo_n "checking for ZLIB... " >&6; }
27853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27854$as_echo "" >&6; }
27855    ZLIB_LIBS=''
27856    failed=0
27857    passed=0
27858    ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27859if test "x$ac_cv_header_zconf_h" = xyes; then :
27860  passed=`expr $passed + 1`
27861else
27862  failed=`expr $failed + 1`
27863fi
27864
27865
27866    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27867if test "x$ac_cv_header_zlib_h" = xyes; then :
27868  passed=`expr $passed + 1`
27869else
27870  failed=`expr $failed + 1`
27871fi
27872
27873
27874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27875$as_echo_n "checking for compress in -lz... " >&6; }
27876if ${ac_cv_lib_z_compress+:} false; then :
27877  $as_echo_n "(cached) " >&6
27878else
27879  ac_check_lib_save_LIBS=$LIBS
27880LIBS="-lz  $LIBS"
27881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27882/* end confdefs.h.  */
27883
27884/* Override any GCC internal prototype to avoid an error.
27885   Use char because int might match the return type of a GCC
27886   builtin and then its argument prototype would still apply.  */
27887#ifdef __cplusplus
27888extern "C"
27889#endif
27890char compress ();
27891int
27892main ()
27893{
27894return compress ();
27895  ;
27896  return 0;
27897}
27898_ACEOF
27899if ac_fn_c_try_link "$LINENO"; then :
27900  ac_cv_lib_z_compress=yes
27901else
27902  ac_cv_lib_z_compress=no
27903fi
27904rm -f core conftest.err conftest.$ac_objext \
27905    conftest$ac_exeext conftest.$ac_ext
27906LIBS=$ac_check_lib_save_LIBS
27907fi
27908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27909$as_echo "$ac_cv_lib_z_compress" >&6; }
27910if test "x$ac_cv_lib_z_compress" = xyes; then :
27911  passed=`expr $passed + 1`
27912else
27913  failed=`expr $failed + 1`
27914fi
27915
27916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27917$as_echo_n "checking for uncompress in -lz... " >&6; }
27918if ${ac_cv_lib_z_uncompress+:} false; then :
27919  $as_echo_n "(cached) " >&6
27920else
27921  ac_check_lib_save_LIBS=$LIBS
27922LIBS="-lz  $LIBS"
27923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924/* end confdefs.h.  */
27925
27926/* Override any GCC internal prototype to avoid an error.
27927   Use char because int might match the return type of a GCC
27928   builtin and then its argument prototype would still apply.  */
27929#ifdef __cplusplus
27930extern "C"
27931#endif
27932char uncompress ();
27933int
27934main ()
27935{
27936return uncompress ();
27937  ;
27938  return 0;
27939}
27940_ACEOF
27941if ac_fn_c_try_link "$LINENO"; then :
27942  ac_cv_lib_z_uncompress=yes
27943else
27944  ac_cv_lib_z_uncompress=no
27945fi
27946rm -f core conftest.err conftest.$ac_objext \
27947    conftest$ac_exeext conftest.$ac_ext
27948LIBS=$ac_check_lib_save_LIBS
27949fi
27950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27951$as_echo "$ac_cv_lib_z_uncompress" >&6; }
27952if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27953  passed=`expr $passed + 1`
27954else
27955  failed=`expr $failed + 1`
27956fi
27957
27958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27959$as_echo_n "checking for deflate in -lz... " >&6; }
27960if ${ac_cv_lib_z_deflate+:} false; then :
27961  $as_echo_n "(cached) " >&6
27962else
27963  ac_check_lib_save_LIBS=$LIBS
27964LIBS="-lz  $LIBS"
27965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966/* end confdefs.h.  */
27967
27968/* Override any GCC internal prototype to avoid an error.
27969   Use char because int might match the return type of a GCC
27970   builtin and then its argument prototype would still apply.  */
27971#ifdef __cplusplus
27972extern "C"
27973#endif
27974char deflate ();
27975int
27976main ()
27977{
27978return deflate ();
27979  ;
27980  return 0;
27981}
27982_ACEOF
27983if ac_fn_c_try_link "$LINENO"; then :
27984  ac_cv_lib_z_deflate=yes
27985else
27986  ac_cv_lib_z_deflate=no
27987fi
27988rm -f core conftest.err conftest.$ac_objext \
27989    conftest$ac_exeext conftest.$ac_ext
27990LIBS=$ac_check_lib_save_LIBS
27991fi
27992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27993$as_echo "$ac_cv_lib_z_deflate" >&6; }
27994if test "x$ac_cv_lib_z_deflate" = xyes; then :
27995  passed=`expr $passed + 1`
27996else
27997  failed=`expr $failed + 1`
27998fi
27999
28000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
28001$as_echo_n "checking for inflate in -lz... " >&6; }
28002if ${ac_cv_lib_z_inflate+:} false; then :
28003  $as_echo_n "(cached) " >&6
28004else
28005  ac_check_lib_save_LIBS=$LIBS
28006LIBS="-lz  $LIBS"
28007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28008/* end confdefs.h.  */
28009
28010/* Override any GCC internal prototype to avoid an error.
28011   Use char because int might match the return type of a GCC
28012   builtin and then its argument prototype would still apply.  */
28013#ifdef __cplusplus
28014extern "C"
28015#endif
28016char inflate ();
28017int
28018main ()
28019{
28020return inflate ();
28021  ;
28022  return 0;
28023}
28024_ACEOF
28025if ac_fn_c_try_link "$LINENO"; then :
28026  ac_cv_lib_z_inflate=yes
28027else
28028  ac_cv_lib_z_inflate=no
28029fi
28030rm -f core conftest.err conftest.$ac_objext \
28031    conftest$ac_exeext conftest.$ac_ext
28032LIBS=$ac_check_lib_save_LIBS
28033fi
28034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
28035$as_echo "$ac_cv_lib_z_inflate" >&6; }
28036if test "x$ac_cv_lib_z_inflate" = xyes; then :
28037  passed=`expr $passed + 1`
28038else
28039  failed=`expr $failed + 1`
28040fi
28041
28042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
28043$as_echo_n "checking for gzseek in -lz... " >&6; }
28044if ${ac_cv_lib_z_gzseek+:} false; then :
28045  $as_echo_n "(cached) " >&6
28046else
28047  ac_check_lib_save_LIBS=$LIBS
28048LIBS="-lz  $LIBS"
28049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050/* end confdefs.h.  */
28051
28052/* Override any GCC internal prototype to avoid an error.
28053   Use char because int might match the return type of a GCC
28054   builtin and then its argument prototype would still apply.  */
28055#ifdef __cplusplus
28056extern "C"
28057#endif
28058char gzseek ();
28059int
28060main ()
28061{
28062return gzseek ();
28063  ;
28064  return 0;
28065}
28066_ACEOF
28067if ac_fn_c_try_link "$LINENO"; then :
28068  ac_cv_lib_z_gzseek=yes
28069else
28070  ac_cv_lib_z_gzseek=no
28071fi
28072rm -f core conftest.err conftest.$ac_objext \
28073    conftest$ac_exeext conftest.$ac_ext
28074LIBS=$ac_check_lib_save_LIBS
28075fi
28076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
28077$as_echo "$ac_cv_lib_z_gzseek" >&6; }
28078if test "x$ac_cv_lib_z_gzseek" = xyes; then :
28079  passed=`expr $passed + 1`
28080else
28081  failed=`expr $failed + 1`
28082fi
28083
28084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
28085$as_echo_n "checking for gztell in -lz... " >&6; }
28086if ${ac_cv_lib_z_gztell+:} false; then :
28087  $as_echo_n "(cached) " >&6
28088else
28089  ac_check_lib_save_LIBS=$LIBS
28090LIBS="-lz  $LIBS"
28091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28092/* end confdefs.h.  */
28093
28094/* Override any GCC internal prototype to avoid an error.
28095   Use char because int might match the return type of a GCC
28096   builtin and then its argument prototype would still apply.  */
28097#ifdef __cplusplus
28098extern "C"
28099#endif
28100char gztell ();
28101int
28102main ()
28103{
28104return gztell ();
28105  ;
28106  return 0;
28107}
28108_ACEOF
28109if ac_fn_c_try_link "$LINENO"; then :
28110  ac_cv_lib_z_gztell=yes
28111else
28112  ac_cv_lib_z_gztell=no
28113fi
28114rm -f core conftest.err conftest.$ac_objext \
28115    conftest$ac_exeext conftest.$ac_ext
28116LIBS=$ac_check_lib_save_LIBS
28117fi
28118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
28119$as_echo "$ac_cv_lib_z_gztell" >&6; }
28120if test "x$ac_cv_lib_z_gztell" = xyes; then :
28121  passed=`expr $passed + 1`
28122else
28123  failed=`expr $failed + 1`
28124fi
28125
28126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
28127$as_echo_n "checking if ZLIB package is complete... " >&6; }
28128    if test $passed -gt 0; then
28129        if test $failed -gt 0; then
28130            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28131$as_echo "no -- some components failed test" >&6; }
28132            have_zlib='no (failed tests)'
28133        else
28134            ZLIB_LIBS='-lz'
28135            LIBS="$ZLIB_LIBS $LIBS"
28136
28137$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28138
28139            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28140$as_echo "yes" >&6; }
28141            have_zlib='yes'
28142        fi
28143    else
28144        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28145$as_echo "no" >&6; }
28146    fi
28147fi
28148 if test "$have_zlib" = 'yes'; then
28149  ZLIB_DELEGATE_TRUE=
28150  ZLIB_DELEGATE_FALSE='#'
28151else
28152  ZLIB_DELEGATE_TRUE='#'
28153  ZLIB_DELEGATE_FALSE=
28154fi
28155
28156
28157
28158# whether modules are built or not.
28159with_ltdl='yes'
28160have_ltdl='no'
28161LTDL_LIBS=''
28162if test "$build_modules" != 'no' ; then
28163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28164$as_echo "-------------------------------------------------------------" >&6; }
28165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28166$as_echo_n "checking for libltdl... " >&6; }
28167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28168$as_echo "" >&6; }
28169  failed=0
28170  passed=0
28171  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28172if test "x$ac_cv_header_ltdl_h" = xyes; then :
28173  passed=`expr $passed + 1`
28174else
28175  failed=`expr $failed + 1`
28176fi
28177
28178
28179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28180$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28181if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28182  $as_echo_n "(cached) " >&6
28183else
28184  ac_check_lib_save_LIBS=$LIBS
28185LIBS="-lltdl  $LIBS"
28186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28187/* end confdefs.h.  */
28188
28189/* Override any GCC internal prototype to avoid an error.
28190   Use char because int might match the return type of a GCC
28191   builtin and then its argument prototype would still apply.  */
28192#ifdef __cplusplus
28193extern "C"
28194#endif
28195char lt_dlinit ();
28196int
28197main ()
28198{
28199return lt_dlinit ();
28200  ;
28201  return 0;
28202}
28203_ACEOF
28204if ac_fn_c_try_link "$LINENO"; then :
28205  ac_cv_lib_ltdl_lt_dlinit=yes
28206else
28207  ac_cv_lib_ltdl_lt_dlinit=no
28208fi
28209rm -f core conftest.err conftest.$ac_objext \
28210    conftest$ac_exeext conftest.$ac_ext
28211LIBS=$ac_check_lib_save_LIBS
28212fi
28213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28214$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28215if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28216  passed=`expr $passed + 1`
28217else
28218  failed=`expr $failed + 1`
28219fi
28220
28221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28222$as_echo_n "checking if libltdl package is complete... " >&6; }
28223  if test $passed -gt 0 ; then
28224    if test $failed -gt 0 ; then
28225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28226$as_echo "no -- some components failed test" >&6; }
28227      have_ltdl='no (failed tests)'
28228    else
28229      LTDL_LIBS='-lltdl'
28230      LIBS="$LTDL_LIBS $LIBS"
28231
28232$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28233
28234      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28235$as_echo "yes" >&6; }
28236      have_ltdl='yes'
28237    fi
28238  else
28239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28240$as_echo "no" >&6; }
28241  fi
28242  if test "$have_ltdl" != 'yes' ; then
28243    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28245as_fn_error 1 "libltdl is required for modules build
28246See \`config.log' for more details" "$LINENO" 5; }
28247  fi
28248fi
28249 if test "$have_ltdl" != 'no'; then
28250  WITH_LTDL_TRUE=
28251  WITH_LTDL_FALSE='#'
28252else
28253  WITH_LTDL_TRUE='#'
28254  WITH_LTDL_FALSE=
28255fi
28256
28257
28258#
28259# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28260#
28261LIB_DL=''
28262if test "$enable_profiling" = 'yes'; then
28263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28264$as_echo_n "checking for dlopen in -ldl... " >&6; }
28265if ${ac_cv_lib_dl_dlopen+:} false; then :
28266  $as_echo_n "(cached) " >&6
28267else
28268  ac_check_lib_save_LIBS=$LIBS
28269LIBS="-ldl  $LIBS"
28270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28271/* end confdefs.h.  */
28272
28273/* Override any GCC internal prototype to avoid an error.
28274   Use char because int might match the return type of a GCC
28275   builtin and then its argument prototype would still apply.  */
28276#ifdef __cplusplus
28277extern "C"
28278#endif
28279char dlopen ();
28280int
28281main ()
28282{
28283return dlopen ();
28284  ;
28285  return 0;
28286}
28287_ACEOF
28288if ac_fn_c_try_link "$LINENO"; then :
28289  ac_cv_lib_dl_dlopen=yes
28290else
28291  ac_cv_lib_dl_dlopen=no
28292fi
28293rm -f core conftest.err conftest.$ac_objext \
28294    conftest$ac_exeext conftest.$ac_ext
28295LIBS=$ac_check_lib_save_LIBS
28296fi
28297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28298$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28299if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28300  LIB_DL='-ldl'
28301fi
28302
28303    LIBS="$LIB_DL $LIBS"
28304fi
28305
28306
28307
28308#
28309# Check for Autotrace delegate library.
28310#
28311
28312# Check whether --with-autotrace was given.
28313if test "${with_autotrace+set}" = set; then :
28314  withval=$with_autotrace; with_autotrace=$withval
28315else
28316  with_autotrace='no'
28317fi
28318
28319
28320if test "$with_autotrace" != 'yes'; then
28321    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28322fi
28323
28324have_autotrace='no'
28325AUTOTRACE_CFLAGS=""
28326AUTOTRACE_LIBS=""
28327AUTOTRACE_PKG=""
28328if test "x$with_autotrace" = "xyes"; then
28329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28330$as_echo "-------------------------------------------------------------" >&6; }
28331
28332pkg_failed=no
28333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28334$as_echo_n "checking for AUTOTRACE... " >&6; }
28335
28336if test -n "$AUTOTRACE_CFLAGS"; then
28337    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28338 elif test -n "$PKG_CONFIG"; then
28339    if test -n "$PKG_CONFIG" && \
28340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28341  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28342  ac_status=$?
28343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28344  test $ac_status = 0; }; then
28345  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28346else
28347  pkg_failed=yes
28348fi
28349 else
28350    pkg_failed=untried
28351fi
28352if test -n "$AUTOTRACE_LIBS"; then
28353    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28354 elif test -n "$PKG_CONFIG"; then
28355    if test -n "$PKG_CONFIG" && \
28356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28357  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28358  ac_status=$?
28359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28360  test $ac_status = 0; }; then
28361  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28362else
28363  pkg_failed=yes
28364fi
28365 else
28366    pkg_failed=untried
28367fi
28368
28369
28370
28371if test $pkg_failed = yes; then
28372
28373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28374        _pkg_short_errors_supported=yes
28375else
28376        _pkg_short_errors_supported=no
28377fi
28378        if test $_pkg_short_errors_supported = yes; then
28379	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28380        else
28381	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28382        fi
28383	# Put the nasty error message in config.log where it belongs
28384	echo "$AUTOTRACE_PKG_ERRORS" >&5
28385
28386	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28387$as_echo "no" >&6; }
28388                have_autotrace=no
28389elif test $pkg_failed = untried; then
28390	have_autotrace=no
28391else
28392	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28393	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28395$as_echo "yes" >&6; }
28396	have_autotrace=yes
28397fi
28398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28399$as_echo "" >&6; }
28400fi
28401
28402if test "$have_autotrace" = 'yes'; then
28403    failed=0
28404
28405$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28406
28407    if test "$build_modules" = 'no'; then
28408      CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28409    fi
28410fi
28411
28412 if test "$have_autotrace" = 'yes'; then
28413  AUTOTRACE_DELEGATE_TRUE=
28414  AUTOTRACE_DELEGATE_FALSE='#'
28415else
28416  AUTOTRACE_DELEGATE_TRUE='#'
28417  AUTOTRACE_DELEGATE_FALSE=
28418fi
28419
28420
28421
28422
28423
28424#
28425# Check for Display Postscript delegate library.
28426#
28427
28428# Check whether --with-dps was given.
28429if test "${with_dps+set}" = set; then :
28430  withval=$with_dps; with_dps=$withval
28431else
28432  with_dps='yes'
28433fi
28434
28435
28436if test "$with_dps" != 'yes'; then
28437    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28438fi
28439
28440have_dps='no'
28441DPS_LIBS=''
28442if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28444$as_echo "-------------------------------------------------------------" >&6; }
28445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28446$as_echo_n "checking for DPS... " >&6; }
28447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28448$as_echo "" >&6; }
28449    failed=0
28450    passed=0
28451    PERSIST_CPPFLAGS="$CPPFLAGS"
28452    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28453    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28454if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28455  passed=`expr $passed + 1`
28456else
28457  failed=`expr $failed + 1`
28458fi
28459
28460
28461    # DPS issues:
28462    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28463    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28464    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28465    # ImageMagick itself doesn't use -lXt.
28466    have_libdps='no'
28467    LIBDPS_XT=''
28468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28469$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28470if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28471  $as_echo_n "(cached) " >&6
28472else
28473  ac_check_lib_save_LIBS=$LIBS
28474LIBS="-ldps  $LIBS"
28475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28476/* end confdefs.h.  */
28477
28478/* Override any GCC internal prototype to avoid an error.
28479   Use char because int might match the return type of a GCC
28480   builtin and then its argument prototype would still apply.  */
28481#ifdef __cplusplus
28482extern "C"
28483#endif
28484char DPSInitialize ();
28485int
28486main ()
28487{
28488return DPSInitialize ();
28489  ;
28490  return 0;
28491}
28492_ACEOF
28493if ac_fn_c_try_link "$LINENO"; then :
28494  ac_cv_lib_dps_DPSInitialize=yes
28495else
28496  ac_cv_lib_dps_DPSInitialize=no
28497fi
28498rm -f core conftest.err conftest.$ac_objext \
28499    conftest$ac_exeext conftest.$ac_ext
28500LIBS=$ac_check_lib_save_LIBS
28501fi
28502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28503$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28504if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28505  have_libdps='yes'
28506else
28507  have_libdps='no'
28508fi
28509
28510    if test "$have_libdps" != 'yes'; then
28511        # Unset cache variable so we can try again.
28512        unset ac_cv_lib_dps_DPSInitialize
28513        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28514$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28515if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28516  $as_echo_n "(cached) " >&6
28517else
28518  ac_check_lib_save_LIBS=$LIBS
28519LIBS="-ldps -lXt $LIBS"
28520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28521/* end confdefs.h.  */
28522
28523/* Override any GCC internal prototype to avoid an error.
28524   Use char because int might match the return type of a GCC
28525   builtin and then its argument prototype would still apply.  */
28526#ifdef __cplusplus
28527extern "C"
28528#endif
28529char DPSInitialize ();
28530int
28531main ()
28532{
28533return DPSInitialize ();
28534  ;
28535  return 0;
28536}
28537_ACEOF
28538if ac_fn_c_try_link "$LINENO"; then :
28539  ac_cv_lib_dps_DPSInitialize=yes
28540else
28541  ac_cv_lib_dps_DPSInitialize=no
28542fi
28543rm -f core conftest.err conftest.$ac_objext \
28544    conftest$ac_exeext conftest.$ac_ext
28545LIBS=$ac_check_lib_save_LIBS
28546fi
28547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28548$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28549if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28550  have_libdps='yes'
28551else
28552  have_libdps='no'
28553fi
28554
28555        if test "$have_libdps" = 'yes'; then
28556            LIBDPS_XT='-lXt'
28557        fi
28558    fi
28559    if test "$have_libdps" = 'yes'; then
28560        passed=`expr $passed + 1`
28561    else
28562        failed=`expr $failed + 1`
28563    fi
28564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28565$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28566if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28567  $as_echo_n "(cached) " >&6
28568else
28569  ac_check_lib_save_LIBS=$LIBS
28570LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572/* end confdefs.h.  */
28573
28574/* Override any GCC internal prototype to avoid an error.
28575   Use char because int might match the return type of a GCC
28576   builtin and then its argument prototype would still apply.  */
28577#ifdef __cplusplus
28578extern "C"
28579#endif
28580char XDPSPixelsPerPoint ();
28581int
28582main ()
28583{
28584return XDPSPixelsPerPoint ();
28585  ;
28586  return 0;
28587}
28588_ACEOF
28589if ac_fn_c_try_link "$LINENO"; then :
28590  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28591else
28592  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28593fi
28594rm -f core conftest.err conftest.$ac_objext \
28595    conftest$ac_exeext conftest.$ac_ext
28596LIBS=$ac_check_lib_save_LIBS
28597fi
28598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28599$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28600if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28601  passed=`expr $passed + 1`
28602else
28603  failed=`expr $failed + 1`
28604fi
28605
28606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28607$as_echo_n "checking if DPS package is complete... " >&6; }
28608    if test $passed -gt 0; then
28609        if test $failed -gt 0; then
28610            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28611$as_echo "no -- some components failed test" >&6; }
28612            have_dps='no (failed tests)'
28613            CPPFLAGS="$PERSIST_CPPFLAGS"
28614        else
28615            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28616            LIBS="$DPS_LIBS $LIBS"
28617
28618$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28619
28620            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28621$as_echo "yes" >&6; }
28622            have_dps='yes'
28623        fi
28624    else
28625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28626$as_echo "no" >&6; }
28627        CPPFLAGS=$PERSIST_CPPFLAGS
28628    fi
28629fi
28630 if test "$have_dps" = 'yes'; then
28631  DPS_DELEGATE_TRUE=
28632  DPS_DELEGATE_FALSE='#'
28633else
28634  DPS_DELEGATE_TRUE='#'
28635  DPS_DELEGATE_FALSE=
28636fi
28637
28638
28639
28640
28641#
28642# Check for DJVU delegate library.
28643#
28644
28645# Check whether --with-djvu was given.
28646if test "${with_djvu+set}" = set; then :
28647  withval=$with_djvu; with_djvu=$withval
28648else
28649  with_djvu='yes'
28650fi
28651
28652
28653if test "$with_djvu" != 'yes'; then
28654    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28655fi
28656
28657have_djvu='no'
28658DJVU_LIBS=''
28659if test "$with_djvu" != 'no'; then
28660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28661$as_echo "-------------------------------------------------------------" >&6; }
28662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28663$as_echo_n "checking for DJVU... " >&6; }
28664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28665$as_echo "" >&6; }
28666    failed=0
28667    passed=0
28668    ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28669if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28670  passed=`expr $passed + 1`
28671else
28672  failed=`expr $failed + 1`
28673fi
28674
28675
28676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28677$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28678if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28679  $as_echo_n "(cached) " >&6
28680else
28681  ac_check_lib_save_LIBS=$LIBS
28682LIBS="-ldjvulibre  $LIBS"
28683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28684/* end confdefs.h.  */
28685
28686/* Override any GCC internal prototype to avoid an error.
28687   Use char because int might match the return type of a GCC
28688   builtin and then its argument prototype would still apply.  */
28689#ifdef __cplusplus
28690extern "C"
28691#endif
28692char ddjvu_context_create ();
28693int
28694main ()
28695{
28696return ddjvu_context_create ();
28697  ;
28698  return 0;
28699}
28700_ACEOF
28701if ac_fn_c_try_link "$LINENO"; then :
28702  ac_cv_lib_djvulibre_ddjvu_context_create=yes
28703else
28704  ac_cv_lib_djvulibre_ddjvu_context_create=no
28705fi
28706rm -f core conftest.err conftest.$ac_objext \
28707    conftest$ac_exeext conftest.$ac_ext
28708LIBS=$ac_check_lib_save_LIBS
28709fi
28710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28711$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28712if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28713  passed=`expr $passed + 1`
28714else
28715  failed=`expr $failed + 1`
28716fi
28717
28718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28719$as_echo_n "checking if DJVU package is complete... " >&6; }
28720    if test $passed -gt 0; then
28721        if test $failed -gt 0; then
28722            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28723$as_echo "no -- some components failed test" >&6; }
28724            have_djvu='no (failed tests)'
28725        else
28726            DJVU_LIBS='-ldjvulibre'
28727            LIBS="$DJVU_LIBS $LIBS"
28728
28729$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28730
28731            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28732$as_echo "yes" >&6; }
28733            have_djvu='yes'
28734        fi
28735    else
28736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28737$as_echo "no" >&6; }
28738    fi
28739fi
28740 if test "$have_djvu" = 'yes'; then
28741  DJVU_DELEGATE_TRUE=
28742  DJVU_DELEGATE_FALSE='#'
28743else
28744  DJVU_DELEGATE_TRUE='#'
28745  DJVU_DELEGATE_FALSE=
28746fi
28747
28748
28749
28750
28751#
28752# Set DejaVu font directory.
28753#
28754
28755# Check whether --with-dejavu-font-dir was given.
28756if test "${with_dejavu_font_dir+set}" = set; then :
28757  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28758else
28759  with_dejavu_font_dir='default'
28760fi
28761
28762
28763if test "$with_dejavu_font_dir" != 'default'; then
28764    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28765fi
28766
28767
28768#
28769# Check for FFTW delegate library.
28770#
28771
28772# Check whether --with-fftw was given.
28773if test "${with_fftw+set}" = set; then :
28774  withval=$with_fftw; with_fftw=$withval
28775else
28776  with_fftw='yes'
28777fi
28778
28779
28780if test "$with_fftw" != 'yes'; then
28781    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28782fi
28783
28784have_fftw='no'
28785FFTW_LIBS=''
28786if test "$with_fftw" != 'no'; then
28787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28788$as_echo "-------------------------------------------------------------" >&6; }
28789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28790$as_echo_n "checking for FFTW... " >&6; }
28791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28792$as_echo "" >&6; }
28793    failed=0
28794    passed=0
28795    ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28796if test "x$ac_cv_header_fftw3_h" = xyes; then :
28797  passed=`expr $passed + 1`
28798else
28799  failed=`expr $failed + 1`
28800fi
28801
28802
28803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28804$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28805if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28806  $as_echo_n "(cached) " >&6
28807else
28808  ac_check_lib_save_LIBS=$LIBS
28809LIBS="-lfftw3  $LIBS"
28810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28811/* end confdefs.h.  */
28812
28813/* Override any GCC internal prototype to avoid an error.
28814   Use char because int might match the return type of a GCC
28815   builtin and then its argument prototype would still apply.  */
28816#ifdef __cplusplus
28817extern "C"
28818#endif
28819char fftw_execute ();
28820int
28821main ()
28822{
28823return fftw_execute ();
28824  ;
28825  return 0;
28826}
28827_ACEOF
28828if ac_fn_c_try_link "$LINENO"; then :
28829  ac_cv_lib_fftw3_fftw_execute=yes
28830else
28831  ac_cv_lib_fftw3_fftw_execute=no
28832fi
28833rm -f core conftest.err conftest.$ac_objext \
28834    conftest$ac_exeext conftest.$ac_ext
28835LIBS=$ac_check_lib_save_LIBS
28836fi
28837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28838$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28839if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28840  passed=`expr $passed + 1`
28841else
28842  failed=`expr $failed + 1`
28843fi
28844
28845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28846$as_echo_n "checking if FFTW package is complete... " >&6; }
28847    if test $passed -gt 0; then
28848        if test $failed -gt 0; then
28849            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28850$as_echo "no -- some components failed test" >&6; }
28851            have_fftw='no (failed tests)'
28852        else
28853            FFTW_LIBS='-lfftw3'
28854            LIBS="$FFTW_LIBS $LIBS"
28855
28856$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28857
28858            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28859$as_echo "yes" >&6; }
28860            have_fftw='yes'
28861        fi
28862    else
28863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28864$as_echo "no" >&6; }
28865    fi
28866fi
28867 if test "$have_fftw" = 'yes'; then
28868  FFTW_DELEGATE_TRUE=
28869  FFTW_DELEGATE_FALSE='#'
28870else
28871  FFTW_DELEGATE_TRUE='#'
28872  FFTW_DELEGATE_FALSE=
28873fi
28874
28875
28876
28877
28878#
28879# Check for FlashPIX delegate library.
28880#
28881
28882# Check whether --with-fpx was given.
28883if test "${with_fpx+set}" = set; then :
28884  withval=$with_fpx; with_fpx=$withval
28885else
28886  with_fpx='yes'
28887fi
28888
28889
28890if test "$with_fpx" != 'yes'; then
28891    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28892fi
28893
28894have_fpx='no'
28895FPX_LIBS=''
28896SAVED_LIBS=${LIBS}
28897LIBS=${LIBS/-ldjvulibre/}
28898if test "$with_fpx" != 'no'; then
28899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28900$as_echo "-------------------------------------------------------------" >&6; }
28901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28902$as_echo_n "checking for FlashPIX... " >&6; }
28903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28904$as_echo "" >&6; }
28905    failed=0
28906    passed=0
28907    ac_ext=cpp
28908ac_cpp='$CXXCPP $CPPFLAGS'
28909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28912
28913
28914ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28915if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28916  passed=`expr $passed + 1`
28917else
28918  failed=`expr $failed + 1`
28919fi
28920
28921
28922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28923$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28924if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28925  $as_echo_n "(cached) " >&6
28926else
28927  ac_check_lib_save_LIBS=$LIBS
28928LIBS="-lfpx  $LIBS"
28929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28930/* end confdefs.h.  */
28931
28932/* Override any GCC internal prototype to avoid an error.
28933   Use char because int might match the return type of a GCC
28934   builtin and then its argument prototype would still apply.  */
28935#ifdef __cplusplus
28936extern "C"
28937#endif
28938char FPX_OpenImageByFilename ();
28939int
28940main ()
28941{
28942return FPX_OpenImageByFilename ();
28943  ;
28944  return 0;
28945}
28946_ACEOF
28947if ac_fn_cxx_try_link "$LINENO"; then :
28948  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28949else
28950  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28951fi
28952rm -f core conftest.err conftest.$ac_objext \
28953    conftest$ac_exeext conftest.$ac_ext
28954LIBS=$ac_check_lib_save_LIBS
28955fi
28956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28957$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28958if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28959  passed=`expr $passed + 1`
28960else
28961  failed=`expr $failed + 1`
28962fi
28963
28964    ac_ext=c
28965ac_cpp='$CPP $CPPFLAGS'
28966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28968ac_compiler_gnu=$ac_cv_c_compiler_gnu
28969
28970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28971$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28972    if test $passed -gt 0; then
28973        if test $failed -gt 0; then
28974            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28975$as_echo "no -- some components failed test" >&6; }
28976            have_fpx='no (failed tests)'
28977        else
28978            FPX_LIBS='-lfpx'
28979
28980$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28981
28982            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983$as_echo "yes" >&6; }
28984            have_fpx='yes'
28985            PERLMAINCC="$CXX"
28986        fi
28987    else
28988        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989$as_echo "no" >&6; }
28990    fi
28991fi
28992 if test "$have_fpx" = 'yes'; then
28993  FPX_DELEGATE_TRUE=
28994  FPX_DELEGATE_FALSE='#'
28995else
28996  FPX_DELEGATE_TRUE='#'
28997  FPX_DELEGATE_FALSE=
28998fi
28999
29000
29001LIBS=${SAVED_LIBS}
29002
29003
29004#
29005# Check for fontconfig delegate library.
29006#
29007
29008# Check whether --with-fontconfig was given.
29009if test "${with_fontconfig+set}" = set; then :
29010  withval=$with_fontconfig; with_fontconfig=$withval
29011else
29012  with_fontconfig='yes'
29013fi
29014
29015
29016if test "$with_fontconfig" != 'yes'; then
29017    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29018fi
29019
29020have_fontconfig='no'
29021FONTCONFIG_CFLAGS=""
29022FONTCONFIG_LIBS=""
29023FONTCONFIG_PKG=""
29024if test "x$with_fontconfig" = "xyes"; then
29025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29026$as_echo "-------------------------------------------------------------" >&6; }
29027
29028pkg_failed=no
29029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29030$as_echo_n "checking for FONTCONFIG... " >&6; }
29031
29032if test -n "$FONTCONFIG_CFLAGS"; then
29033    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29034 elif test -n "$PKG_CONFIG"; then
29035    if test -n "$PKG_CONFIG" && \
29036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29037  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29038  ac_status=$?
29039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29040  test $ac_status = 0; }; then
29041  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29042else
29043  pkg_failed=yes
29044fi
29045 else
29046    pkg_failed=untried
29047fi
29048if test -n "$FONTCONFIG_LIBS"; then
29049    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29050 elif test -n "$PKG_CONFIG"; then
29051    if test -n "$PKG_CONFIG" && \
29052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29053  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29054  ac_status=$?
29055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29056  test $ac_status = 0; }; then
29057  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29058else
29059  pkg_failed=yes
29060fi
29061 else
29062    pkg_failed=untried
29063fi
29064
29065
29066
29067if test $pkg_failed = yes; then
29068
29069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29070        _pkg_short_errors_supported=yes
29071else
29072        _pkg_short_errors_supported=no
29073fi
29074        if test $_pkg_short_errors_supported = yes; then
29075	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29076        else
29077	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29078        fi
29079	# Put the nasty error message in config.log where it belongs
29080	echo "$FONTCONFIG_PKG_ERRORS" >&5
29081
29082	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29083$as_echo "no" >&6; }
29084                have_fontconfig=no
29085elif test $pkg_failed = untried; then
29086	have_fontconfig=no
29087else
29088	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29089	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29090        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29091$as_echo "yes" >&6; }
29092	have_fontconfig=yes
29093fi
29094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29095$as_echo "" >&6; }
29096fi
29097
29098if test "$have_fontconfig" = 'yes'; then
29099
29100$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29101
29102  if test "$build_modules" = 'no'; then
29103    CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
29104  fi
29105fi
29106
29107 if test "$have_fontconfig" = 'yes'; then
29108  FONTCONFIG_DELEGATE_TRUE=
29109  FONTCONFIG_DELEGATE_FALSE='#'
29110else
29111  FONTCONFIG_DELEGATE_TRUE='#'
29112  FONTCONFIG_DELEGATE_FALSE=
29113fi
29114
29115
29116
29117
29118
29119#
29120# Check for the Freetype delegate library.
29121#
29122
29123# Check whether --with-freetype was given.
29124if test "${with_freetype+set}" = set; then :
29125  withval=$with_freetype; with_freetype=$withval
29126else
29127  with_freetype='yes'
29128fi
29129
29130
29131if test "$with_freetype" != 'yes'; then
29132    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29133fi
29134
29135have_freetype='no'
29136FREETYPE_CFLAGS=""
29137FREETYPE_LIBS=""
29138FREETYPE_PKG=""
29139if test "x$with_freetype" = "xyes"; then
29140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29141$as_echo "-------------------------------------------------------------" >&6; }
29142
29143pkg_failed=no
29144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29145$as_echo_n "checking for FREETYPE... " >&6; }
29146
29147if test -n "$FREETYPE_CFLAGS"; then
29148    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29149 elif test -n "$PKG_CONFIG"; then
29150    if test -n "$PKG_CONFIG" && \
29151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29152  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29153  ac_status=$?
29154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29155  test $ac_status = 0; }; then
29156  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29157else
29158  pkg_failed=yes
29159fi
29160 else
29161    pkg_failed=untried
29162fi
29163if test -n "$FREETYPE_LIBS"; then
29164    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29165 elif test -n "$PKG_CONFIG"; then
29166    if test -n "$PKG_CONFIG" && \
29167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29168  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29169  ac_status=$?
29170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29171  test $ac_status = 0; }; then
29172  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29173else
29174  pkg_failed=yes
29175fi
29176 else
29177    pkg_failed=untried
29178fi
29179
29180
29181
29182if test $pkg_failed = yes; then
29183
29184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29185        _pkg_short_errors_supported=yes
29186else
29187        _pkg_short_errors_supported=no
29188fi
29189        if test $_pkg_short_errors_supported = yes; then
29190	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29191        else
29192	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29193        fi
29194	# Put the nasty error message in config.log where it belongs
29195	echo "$FREETYPE_PKG_ERRORS" >&5
29196
29197	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198$as_echo "no" >&6; }
29199                have_freetype=no
29200elif test $pkg_failed = untried; then
29201	have_freetype=no
29202else
29203	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29204	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29206$as_echo "yes" >&6; }
29207	have_freetype=yes
29208fi
29209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29210$as_echo "" >&6; }
29211fi
29212
29213if test "$have_freetype" = 'yes'; then
29214
29215$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29216
29217    CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
29218fi
29219
29220 if test "$have_freetype" = 'yes'; then
29221  FREETYPE_DELEGATE_TRUE=
29222  FREETYPE_DELEGATE_FALSE='#'
29223else
29224  FREETYPE_DELEGATE_TRUE='#'
29225  FREETYPE_DELEGATE_FALSE=
29226fi
29227
29228
29229
29230
29231
29232#
29233# Check for Ghostscript library or framework.
29234#
29235# Test for iapi.h & test for gsapi_new_instance in -lgs
29236# or -framework Ghostscript
29237
29238
29239# Check whether --with-gslib was given.
29240if test "${with_gslib+set}" = set; then :
29241  withval=$with_gslib; with_gslib=$withval
29242else
29243  with_gslib='no'
29244fi
29245
29246
29247gslib_framework='no'
29248if test "$with_gslib" != 'yes'; then
29249    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29250fi
29251
29252have_gslib='no'
29253GS_LIBS=''
29254if test "$with_gslib" != 'no'; then
29255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29256$as_echo "-------------------------------------------------------------" >&6; }
29257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
29258$as_echo_n "checking for Ghostscript... " >&6; }
29259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29260$as_echo "" >&6; }
29261    framework=0
29262    failed=0
29263    passed=0
29264    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
29265if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
29266  passed=`expr $passed + 1`
29267else
29268  failed=`expr $failed + 1`
29269fi
29270
29271
29272    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
29273if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
29274  passed=`expr $passed + 1`
29275else
29276  failed=`expr $failed + 1`
29277fi
29278
29279
29280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29281$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
29282if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
29283  $as_echo_n "(cached) " >&6
29284else
29285  ac_check_framework_save_LIBS=$LIBS
29286LIBS="-framework Ghostscript  $LIBS"
29287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29288/* end confdefs.h.  */
29289
29290/* Override any GCC internal prototype to avoid an error.
29291   Use char because int might match the return type of a GCC
29292   builtin and then its argument prototype would still apply.  */
29293#ifdef __cplusplus
29294extern "C"
29295#endif
29296char gsapi_new_instance ();
29297int
29298main ()
29299{
29300return gsapi_new_instance ();
29301  ;
29302  return 0;
29303}
29304_ACEOF
29305if ac_fn_c_try_link "$LINENO"; then :
29306  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29307else
29308  ac_cv_framework_Ghostscript_gsapi_new_instance=no
29309fi
29310rm -f core conftest.err conftest.$ac_objext \
29311    conftest$ac_exeext conftest.$ac_ext
29312LIBS=$ac_check_framework_save_LIBS
29313fi
29314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29315$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29316if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29317  framework=`expr $framework + 1`
29318else
29319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29320$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29321if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29322  $as_echo_n "(cached) " >&6
29323else
29324  ac_check_lib_save_LIBS=$LIBS
29325LIBS="-lgs  $LIBS"
29326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29327/* end confdefs.h.  */
29328
29329/* Override any GCC internal prototype to avoid an error.
29330   Use char because int might match the return type of a GCC
29331   builtin and then its argument prototype would still apply.  */
29332#ifdef __cplusplus
29333extern "C"
29334#endif
29335char gsapi_new_instance ();
29336int
29337main ()
29338{
29339return gsapi_new_instance ();
29340  ;
29341  return 0;
29342}
29343_ACEOF
29344if ac_fn_c_try_link "$LINENO"; then :
29345  ac_cv_lib_gs_gsapi_new_instance=yes
29346else
29347  ac_cv_lib_gs_gsapi_new_instance=no
29348fi
29349rm -f core conftest.err conftest.$ac_objext \
29350    conftest$ac_exeext conftest.$ac_ext
29351LIBS=$ac_check_lib_save_LIBS
29352fi
29353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29354$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29355if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29356  passed=`expr $passed + 1`
29357else
29358  failed=`expr $failed + 1`
29359fi
29360
29361fi
29362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29363$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29364    if test $passed -gt 0; then
29365        if test $failed -gt 0; then
29366            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29367$as_echo "no -- some components failed test" >&6; }
29368            have_gslib='no (failed tests)'
29369        else
29370            if test $framework -gt 0; then
29371                GS_LIBS='-framework Ghostscript'
29372                gslib_framework='yes'
29373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29374$as_echo "yes, using framework." >&6; }
29375            else
29376                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29377$as_echo "yes, using library." >&6; }
29378                GS_LIBS='-lgs'
29379            fi
29380            LIBS="$GS_LIBS $LIBS"
29381
29382$as_echo "#define GS_DELEGATE 1" >>confdefs.h
29383
29384            have_gslib='yes'
29385        fi
29386    else
29387        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29388$as_echo "no" >&6; }
29389    fi
29390fi
29391 if test "$have_gslib" = 'yes'; then
29392  GS_DELEGATE_TRUE=
29393  GS_DELEGATE_FALSE='#'
29394else
29395  GS_DELEGATE_TRUE='#'
29396  GS_DELEGATE_FALSE=
29397fi
29398
29399
29400
29401# Set default font search path
29402
29403# Check whether --with-fontpath was given.
29404if test "${with_fontpath+set}" = set; then :
29405  withval=$with_fontpath; with_fontpath=$withval
29406else
29407  with_fontpath=''
29408fi
29409
29410
29411if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29412    with_fontpath=''
29413else
29414
29415cat >>confdefs.h <<_ACEOF
29416#define MAGICK_FONT_PATH "$with_fontpath"
29417_ACEOF
29418
29419fi
29420if test "$with_fontpath=" != ''; then
29421    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29422fi
29423
29424# Set Ghostscript font directory
29425
29426# Check whether --with-gs-font-dir was given.
29427if test "${with_gs_font_dir+set}" = set; then :
29428  withval=$with_gs_font_dir; with_gs_font_dir=$withval
29429else
29430  with_gs_font_dir='default'
29431fi
29432
29433
29434if test "$with_gs_font_dir" != 'default'; then
29435    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29436fi
29437
29438
29439#
29440# Check for GVC delegate library.
29441#
29442
29443# Check whether --with-gvc was given.
29444if test "${with_gvc+set}" = set; then :
29445  withval=$with_gvc; with_gvc=$withval
29446else
29447  with_gvc='no'
29448fi
29449
29450
29451if test "$with_gvc" != 'yes'; then
29452    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29453fi
29454
29455GVC_PKG=""
29456if test "x$with_gvc" = "xyes"; then
29457    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29458$as_echo "-------------------------------------------------------------" >&6; }
29459
29460pkg_failed=no
29461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29462$as_echo_n "checking for GVC... " >&6; }
29463
29464if test -n "$GVC_CFLAGS"; then
29465    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29466 elif test -n "$PKG_CONFIG"; then
29467    if test -n "$PKG_CONFIG" && \
29468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29469  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29470  ac_status=$?
29471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472  test $ac_status = 0; }; then
29473  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29474else
29475  pkg_failed=yes
29476fi
29477 else
29478    pkg_failed=untried
29479fi
29480if test -n "$GVC_LIBS"; then
29481    pkg_cv_GVC_LIBS="$GVC_LIBS"
29482 elif test -n "$PKG_CONFIG"; then
29483    if test -n "$PKG_CONFIG" && \
29484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29485  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29486  ac_status=$?
29487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488  test $ac_status = 0; }; then
29489  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29490else
29491  pkg_failed=yes
29492fi
29493 else
29494    pkg_failed=untried
29495fi
29496
29497
29498
29499if test $pkg_failed = yes; then
29500
29501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29502        _pkg_short_errors_supported=yes
29503else
29504        _pkg_short_errors_supported=no
29505fi
29506        if test $_pkg_short_errors_supported = yes; then
29507	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29508        else
29509	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29510        fi
29511	# Put the nasty error message in config.log where it belongs
29512	echo "$GVC_PKG_ERRORS" >&5
29513
29514	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29515$as_echo "no" >&6; }
29516                have_gvc=no
29517elif test $pkg_failed = untried; then
29518	have_gvc=no
29519else
29520	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29521	GVC_LIBS=$pkg_cv_GVC_LIBS
29522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29523$as_echo "yes" >&6; }
29524	have_gvc=yes
29525fi
29526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29527$as_echo "" >&6; }
29528fi
29529
29530if test "$have_gvc" = 'yes'; then
29531
29532$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29533
29534    if test "$build_modules" = 'no'; then
29535        CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29536    fi
29537fi
29538
29539 if test "$have_gvc" = 'yes'; then
29540  GVC_DELEGATE_TRUE=
29541  GVC_DELEGATE_FALSE='#'
29542else
29543  GVC_DELEGATE_TRUE='#'
29544  GVC_DELEGATE_FALSE=
29545fi
29546
29547
29548
29549
29550
29551#
29552# Check for JBIG delegate library.
29553#
29554
29555
29556# Check whether --with-jbig was given.
29557if test "${with_jbig+set}" = set; then :
29558  withval=$with_jbig; with_jbig=$withval
29559else
29560  with_jbig='yes'
29561fi
29562
29563
29564have_jbig='no'
29565JBIG_LIBS=''
29566if test "$with_jbig" != 'no'; then
29567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29568$as_echo "-------------------------------------------------------------" >&6; }
29569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29570$as_echo_n "checking for JBIG... " >&6; }
29571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29572$as_echo "" >&6; }
29573    failed=0
29574    passed=0
29575    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29576if test "x$ac_cv_header_jbig_h" = xyes; then :
29577  passed=`expr $passed + 1`
29578else
29579  failed=`expr $failed + 1`
29580fi
29581
29582
29583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29584$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29585if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29586  $as_echo_n "(cached) " >&6
29587else
29588  ac_check_lib_save_LIBS=$LIBS
29589LIBS="-ljbig  $LIBS"
29590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29591/* end confdefs.h.  */
29592
29593/* Override any GCC internal prototype to avoid an error.
29594   Use char because int might match the return type of a GCC
29595   builtin and then its argument prototype would still apply.  */
29596#ifdef __cplusplus
29597extern "C"
29598#endif
29599char jbg_dec_init ();
29600int
29601main ()
29602{
29603return jbg_dec_init ();
29604  ;
29605  return 0;
29606}
29607_ACEOF
29608if ac_fn_c_try_link "$LINENO"; then :
29609  ac_cv_lib_jbig_jbg_dec_init=yes
29610else
29611  ac_cv_lib_jbig_jbg_dec_init=no
29612fi
29613rm -f core conftest.err conftest.$ac_objext \
29614    conftest$ac_exeext conftest.$ac_ext
29615LIBS=$ac_check_lib_save_LIBS
29616fi
29617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29618$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29619if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29620  passed=`expr $passed + 1`
29621else
29622  failed=`expr $failed + 1`
29623fi
29624
29625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29626$as_echo_n "checking if JBIG package is complete... " >&6; }
29627    if test $passed -gt 0; then
29628        if test $failed -gt 0; then
29629            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29630$as_echo "no -- some components failed test" >&6; }
29631            have_jbig='no (failed tests)'
29632        else
29633            JBIG_LIBS='-ljbig'
29634            LIBS="$JBIG_LIBS $LIBS"
29635
29636$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29637
29638            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29639$as_echo "yes" >&6; }
29640            have_jbig='yes'
29641        fi
29642    else
29643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29644$as_echo "no" >&6; }
29645    fi
29646fi
29647 if test "$have_jbig" = 'yes'; then
29648  JBIG_DELEGATE_TRUE=
29649  JBIG_DELEGATE_FALSE='#'
29650else
29651  JBIG_DELEGATE_TRUE='#'
29652  JBIG_DELEGATE_FALSE=
29653fi
29654
29655
29656
29657
29658#
29659# Check for JPEG delegate library.
29660#
29661
29662# Check whether --with-jpeg was given.
29663if test "${with_jpeg+set}" = set; then :
29664  withval=$with_jpeg; with_jpeg=$withval
29665else
29666  with_jpeg='yes'
29667fi
29668
29669
29670if test "$with_jpeg" != 'yes'; then
29671    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29672fi
29673
29674have_jpeg='no'
29675JPEG_LIBS=''
29676if test "$with_jpeg" != 'no'; then
29677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29678$as_echo "-------------------------------------------------------------" >&6; }
29679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29680$as_echo_n "checking for JPEG... " >&6; }
29681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29682$as_echo "" >&6; }
29683    failed=0
29684    passed=0
29685    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29686if test "x$ac_cv_header_jconfig_h" = xyes; then :
29687  passed=`expr $passed + 1`
29688else
29689  failed=`expr $failed + 1`
29690fi
29691
29692
29693    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29694if test "x$ac_cv_header_jerror_h" = xyes; then :
29695  passed=`expr $passed + 1`
29696else
29697  failed=`expr $failed + 1`
29698fi
29699
29700
29701    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29702if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29703  passed=`expr $passed + 1`
29704else
29705  failed=`expr $failed + 1`
29706fi
29707
29708
29709    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29710if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29711  passed=`expr $passed + 1`
29712else
29713  failed=`expr $failed + 1`
29714fi
29715
29716
29717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29718$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29719if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29720  $as_echo_n "(cached) " >&6
29721else
29722  ac_check_lib_save_LIBS=$LIBS
29723LIBS="-ljpeg  $LIBS"
29724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29725/* end confdefs.h.  */
29726
29727/* Override any GCC internal prototype to avoid an error.
29728   Use char because int might match the return type of a GCC
29729   builtin and then its argument prototype would still apply.  */
29730#ifdef __cplusplus
29731extern "C"
29732#endif
29733char jpeg_read_header ();
29734int
29735main ()
29736{
29737return jpeg_read_header ();
29738  ;
29739  return 0;
29740}
29741_ACEOF
29742if ac_fn_c_try_link "$LINENO"; then :
29743  ac_cv_lib_jpeg_jpeg_read_header=yes
29744else
29745  ac_cv_lib_jpeg_jpeg_read_header=no
29746fi
29747rm -f core conftest.err conftest.$ac_objext \
29748    conftest$ac_exeext conftest.$ac_ext
29749LIBS=$ac_check_lib_save_LIBS
29750fi
29751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29752$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29753if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29754  passed=`expr $passed + 1`
29755else
29756  failed=`expr $failed + 1`
29757fi
29758
29759
29760# Test for compatible JPEG library
29761if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29763$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29764if ${ac_cv_jpeg_version_ok+:} false; then :
29765  $as_echo_n "(cached) " >&6
29766else
29767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29768/* end confdefs.h.  */
29769#include <stdio.h>
29770#include <stdlib.h>
29771#include <jpeglib.h>
29772
29773int
29774main ()
29775{
29776
29777#if JPEG_LIB_VERSION < 62
29778#error IJG JPEG library must be version 6b or newer!
29779#endif
29780return 0;
29781
29782  ;
29783  return 0;
29784}
29785_ACEOF
29786if ac_fn_c_try_compile "$LINENO"; then :
29787  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29788else
29789  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29790fi
29791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792fi
29793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29794$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29795fi
29796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29797$as_echo_n "checking if JPEG package is complete... " >&6; }
29798    if test $passed -gt 0; then
29799        if test $failed -gt 0; then
29800            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29801$as_echo "no -- some components failed test" >&6; }
29802            have_jpeg='no (failed tests)'
29803        else
29804            JPEG_LIBS='-ljpeg'
29805            LIBS="$JPEG_LIBS $LIBS"
29806
29807$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29808
29809            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29810$as_echo "yes" >&6; }
29811            have_jpeg='yes'
29812        fi
29813    else
29814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29815$as_echo "no" >&6; }
29816    fi
29817fi
29818 if test "$have_jpeg" = 'yes'; then
29819  JPEG_DELEGATE_TRUE=
29820  JPEG_DELEGATE_FALSE='#'
29821else
29822  JPEG_DELEGATE_TRUE='#'
29823  JPEG_DELEGATE_FALSE=
29824fi
29825
29826
29827
29828
29829#
29830# Check for LCMS delegate library.
29831#
29832# Disable LCMS.
29833
29834# Check whether --with-lcms was given.
29835if test "${with_lcms+set}" = set; then :
29836  withval=$with_lcms; with_lcms=$withval
29837else
29838  with_lcms='yes'
29839fi
29840
29841if test "$with_lcms" != 'yes' ; then
29842    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29843fi
29844
29845# Disable LCMS2.
29846
29847# Check whether --with-lcms2 was given.
29848if test "${with_lcms2+set}" = set; then :
29849  withval=$with_lcms2; with_lcms2=$withval
29850else
29851  with_lcms2='yes'
29852fi
29853
29854if test "$with_lcms2" != 'yes' ; then
29855    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29856fi
29857
29858have_lcms2='no'
29859LCMS_LIBS=''
29860if test "$with_lcms2" != 'no'; then
29861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29862$as_echo "-------------------------------------------------------------" >&6; }
29863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29864$as_echo_n "checking for LCMS v2... " >&6; }
29865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29866$as_echo "" >&6; }
29867    failed=0
29868    passed=0
29869    have_lcms_header='no'
29870
29871    # Check for <lcms2.h>
29872    ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29873if test "x$ac_cv_header_lcms2_h" = xyes; then :
29874  have_lcms_header='yes'
29875fi
29876
29877
29878    if test "$have_lcms_header" = 'yes'; then
29879
29880$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29881
29882       passed=`expr $passed + 1`
29883    fi
29884
29885    # Check for <lcms2/lcms2.h)
29886    if test "$have_lcms_header" != 'yes'; then
29887      ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29888if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29889  have_lcms_header='yes'
29890fi
29891
29892
29893      if test "$have_lcms_header" = 'yes'; then
29894        passed=`expr $passed + 1`
29895
29896$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29897
29898      fi
29899    fi
29900
29901    # Failed to find lcms header?
29902    if test "$have_lcms_header" != 'yes'; then
29903      failed=`expr $failed + 1`
29904    fi
29905
29906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29907$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29908if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29909  $as_echo_n "(cached) " >&6
29910else
29911  ac_check_lib_save_LIBS=$LIBS
29912LIBS="-llcms2  $LIBS"
29913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29914/* end confdefs.h.  */
29915
29916/* Override any GCC internal prototype to avoid an error.
29917   Use char because int might match the return type of a GCC
29918   builtin and then its argument prototype would still apply.  */
29919#ifdef __cplusplus
29920extern "C"
29921#endif
29922char cmsSetLogErrorHandler ();
29923int
29924main ()
29925{
29926return cmsSetLogErrorHandler ();
29927  ;
29928  return 0;
29929}
29930_ACEOF
29931if ac_fn_c_try_link "$LINENO"; then :
29932  ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29933else
29934  ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29935fi
29936rm -f core conftest.err conftest.$ac_objext \
29937    conftest$ac_exeext conftest.$ac_ext
29938LIBS=$ac_check_lib_save_LIBS
29939fi
29940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29941$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29942if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29943  passed=`expr $passed + 1`
29944else
29945  failed=`expr $failed + 1`
29946fi
29947
29948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29949$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29950    if test $passed -gt 0; then
29951      if test $failed -gt 0; then
29952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29953$as_echo "no -- some components failed test" >&6; }
29954        have_lcms2='no (failed tests)'
29955      else
29956        LCMS_LIBS='-llcms2'
29957        LIBS="$LCMS_LIBS $LIBS"
29958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29959$as_echo "yes" >&6; }
29960        have_lcms2='yes'
29961      fi
29962    else
29963      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29964$as_echo "no" >&6; }
29965    fi
29966fi
29967
29968#
29969# Check for LCMS v1 (1.11 or later)
29970#
29971if test $have_lcms2 = 'yes'; then
29972  with_lcms='no'
29973fi
29974
29975have_lcms='no'
29976if test "$with_lcms" != 'no'; then
29977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29978$as_echo "-------------------------------------------------------------" >&6; }
29979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29980$as_echo_n "checking for LCMS v1.1X... " >&6; }
29981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29982$as_echo "" >&6; }
29983    failed=0
29984    passed=0
29985    have_lcms_header='no'
29986
29987    # Check for <lcms.h>
29988    if test "$have_lcms_header" != 'yes'; then
29989      ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29990if test "x$ac_cv_header_lcms_h" = xyes; then :
29991  have_lcms_header='yes'
29992fi
29993
29994
29995      if test "$have_lcms_header" = 'yes'; then
29996        passed=`expr $passed + 1`
29997
29998$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29999
30000      fi
30001    fi
30002
30003    # Check for <lcms/lcms.h>
30004    if test "$have_lcms_header" != 'yes'; then
30005      ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30006if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30007  have_lcms_header='yes'
30008fi
30009
30010
30011      if test "$have_lcms_header" = 'yes'; then
30012        passed=`expr $passed + 1`
30013
30014$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30015
30016      fi
30017    fi
30018
30019    # Failed to find lcms header?
30020    if test "$have_lcms_header" != 'yes'; then
30021      failed=`expr $failed + 1`
30022    fi
30023
30024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30025$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
30026if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
30027  $as_echo_n "(cached) " >&6
30028else
30029  ac_check_lib_save_LIBS=$LIBS
30030LIBS="-llcms  $LIBS"
30031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032/* end confdefs.h.  */
30033
30034/* Override any GCC internal prototype to avoid an error.
30035   Use char because int might match the return type of a GCC
30036   builtin and then its argument prototype would still apply.  */
30037#ifdef __cplusplus
30038extern "C"
30039#endif
30040char cmsSetErrorHandler ();
30041int
30042main ()
30043{
30044return cmsSetErrorHandler ();
30045  ;
30046  return 0;
30047}
30048_ACEOF
30049if ac_fn_c_try_link "$LINENO"; then :
30050  ac_cv_lib_lcms_cmsSetErrorHandler=yes
30051else
30052  ac_cv_lib_lcms_cmsSetErrorHandler=no
30053fi
30054rm -f core conftest.err conftest.$ac_objext \
30055    conftest$ac_exeext conftest.$ac_ext
30056LIBS=$ac_check_lib_save_LIBS
30057fi
30058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30059$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
30060if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
30061  passed=`expr $passed + 1`
30062else
30063  failed=`expr $failed + 1`
30064fi
30065
30066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
30067$as_echo_n "checking if LCMS package is complete... " >&6; }
30068    if test $passed -gt 0; then
30069      if test $failed -gt 0; then
30070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30071$as_echo "no -- some components failed test" >&6; }
30072        have_lcms='no (failed tests)'
30073      else
30074        LCMS_LIBS='-llcms'
30075        LIBS="$LCMS_LIBS $LIBS"
30076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30077$as_echo "yes" >&6; }
30078        have_lcms='yes'
30079      fi
30080    else
30081      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30082$as_echo "no" >&6; }
30083    fi
30084fi
30085
30086 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30087  LCMS_DELEGATE_TRUE=
30088  LCMS_DELEGATE_FALSE='#'
30089else
30090  LCMS_DELEGATE_TRUE='#'
30091  LCMS_DELEGATE_FALSE=
30092fi
30093
30094if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30095
30096$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30097
30098fi
30099
30100
30101
30102
30103#
30104# Check for the OpenJP2 delegate library.
30105#
30106
30107# Check whether --with-openjp2 was given.
30108if test "${with_openjp2+set}" = set; then :
30109  withval=$with_openjp2; with_openjp2=$withval
30110else
30111  with_openjp2='yes'
30112fi
30113
30114
30115if test "$with_openjp2" != 'yes'; then
30116    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30117fi
30118
30119have_openjp2='no'
30120LIBOPENJP2_CFLAGS=""
30121LIBOPENJP2_LIBS=""
30122LIBOPENJP2_PKG=""
30123if test "x$with_openjp2" = "xyes"; then
30124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30125$as_echo "-------------------------------------------------------------" >&6; }
30126
30127pkg_failed=no
30128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30129$as_echo_n "checking for LIBOPENJP2... " >&6; }
30130
30131if test -n "$LIBOPENJP2_CFLAGS"; then
30132    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30133 elif test -n "$PKG_CONFIG"; then
30134    if test -n "$PKG_CONFIG" && \
30135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30136  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
30137  ac_status=$?
30138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30139  test $ac_status = 0; }; then
30140  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
30141else
30142  pkg_failed=yes
30143fi
30144 else
30145    pkg_failed=untried
30146fi
30147if test -n "$LIBOPENJP2_LIBS"; then
30148    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30149 elif test -n "$PKG_CONFIG"; then
30150    if test -n "$PKG_CONFIG" && \
30151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30152  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
30153  ac_status=$?
30154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30155  test $ac_status = 0; }; then
30156  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
30157else
30158  pkg_failed=yes
30159fi
30160 else
30161    pkg_failed=untried
30162fi
30163
30164
30165
30166if test $pkg_failed = yes; then
30167
30168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30169        _pkg_short_errors_supported=yes
30170else
30171        _pkg_short_errors_supported=no
30172fi
30173        if test $_pkg_short_errors_supported = yes; then
30174	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
30175        else
30176	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
30177        fi
30178	# Put the nasty error message in config.log where it belongs
30179	echo "$LIBOPENJP2_PKG_ERRORS" >&5
30180
30181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30182$as_echo "no" >&6; }
30183                have_openjp2=no
30184elif test $pkg_failed = untried; then
30185	have_openjp2=no
30186else
30187	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30188	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30190$as_echo "yes" >&6; }
30191	have_openjp2=yes
30192fi
30193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30194$as_echo "" >&6; }
30195fi
30196
30197if test "$have_openjp2" = 'yes'; then
30198
30199$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30200
30201    if test "$build_modules" = 'no'; then
30202        CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30203    fi
30204fi
30205
30206 if test "$have_openjp2" = 'yes'; then
30207  LIBOPENJP2_DELEGATE_TRUE=
30208  LIBOPENJP2_DELEGATE_FALSE='#'
30209else
30210  LIBOPENJP2_DELEGATE_TRUE='#'
30211  LIBOPENJP2_DELEGATE_FALSE=
30212fi
30213
30214
30215
30216
30217
30218
30219#
30220# Check for the LQR (Liquid Rescale) delegate library.
30221#
30222
30223# Check whether --with-lqr was given.
30224if test "${with_lqr+set}" = set; then :
30225  withval=$with_lqr; with_lqr=$withval
30226else
30227  with_lqr='yes'
30228fi
30229
30230
30231if test "$with_lqr" != 'yes'; then
30232    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30233fi
30234
30235have_lqr='no'
30236LQR_CFLAGS=""
30237LQR_LIBS=""
30238LQR_PKG=""
30239if test "x$with_lqr" = "xyes"; then
30240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30241$as_echo "-------------------------------------------------------------" >&6; }
30242
30243pkg_failed=no
30244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30245$as_echo_n "checking for LQR... " >&6; }
30246
30247if test -n "$LQR_CFLAGS"; then
30248    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30249 elif test -n "$PKG_CONFIG"; then
30250    if test -n "$PKG_CONFIG" && \
30251    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30252  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30253  ac_status=$?
30254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30255  test $ac_status = 0; }; then
30256  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30257else
30258  pkg_failed=yes
30259fi
30260 else
30261    pkg_failed=untried
30262fi
30263if test -n "$LQR_LIBS"; then
30264    pkg_cv_LQR_LIBS="$LQR_LIBS"
30265 elif test -n "$PKG_CONFIG"; then
30266    if test -n "$PKG_CONFIG" && \
30267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30268  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30269  ac_status=$?
30270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30271  test $ac_status = 0; }; then
30272  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30273else
30274  pkg_failed=yes
30275fi
30276 else
30277    pkg_failed=untried
30278fi
30279
30280
30281
30282if test $pkg_failed = yes; then
30283
30284if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30285        _pkg_short_errors_supported=yes
30286else
30287        _pkg_short_errors_supported=no
30288fi
30289        if test $_pkg_short_errors_supported = yes; then
30290	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30291        else
30292	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30293        fi
30294	# Put the nasty error message in config.log where it belongs
30295	echo "$LQR_PKG_ERRORS" >&5
30296
30297	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30298$as_echo "no" >&6; }
30299                have_lqr=no
30300elif test $pkg_failed = untried; then
30301	have_lqr=no
30302else
30303	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30304	LQR_LIBS=$pkg_cv_LQR_LIBS
30305        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30306$as_echo "yes" >&6; }
30307	have_lqr=yes
30308fi
30309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30310$as_echo "" >&6; }
30311fi
30312
30313if test "$have_lqr" = 'yes'; then
30314
30315$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30316
30317    CFLAGS="$LQR_CFLAGS $CFLAGS"
30318fi
30319
30320 if test "$have_lqr" = 'yes'; then
30321  LQR_DELEGATE_TRUE=
30322  LQR_DELEGATE_FALSE='#'
30323else
30324  LQR_DELEGATE_TRUE='#'
30325  LQR_DELEGATE_FALSE=
30326fi
30327
30328
30329
30330
30331
30332# Disable LZMA (lzma library)
30333
30334# Check whether --with-lzma was given.
30335if test "${with_lzma+set}" = set; then :
30336  withval=$with_lzma; with_lzma=$withval
30337else
30338  with_lzma='yes'
30339fi
30340
30341if test "$with_lzma" != 'yes' ; then
30342    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30343fi
30344
30345LZMA_PKG=""
30346if test "x$with_lzma" = "xyes"; then
30347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30348$as_echo "-------------------------------------------------------------" >&6; }
30349
30350pkg_failed=no
30351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30352$as_echo_n "checking for LZMA... " >&6; }
30353
30354if test -n "$LZMA_CFLAGS"; then
30355    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30356 elif test -n "$PKG_CONFIG"; then
30357    if test -n "$PKG_CONFIG" && \
30358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30359  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30360  ac_status=$?
30361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30362  test $ac_status = 0; }; then
30363  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30364else
30365  pkg_failed=yes
30366fi
30367 else
30368    pkg_failed=untried
30369fi
30370if test -n "$LZMA_LIBS"; then
30371    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30372 elif test -n "$PKG_CONFIG"; then
30373    if test -n "$PKG_CONFIG" && \
30374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30375  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30376  ac_status=$?
30377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30378  test $ac_status = 0; }; then
30379  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30380else
30381  pkg_failed=yes
30382fi
30383 else
30384    pkg_failed=untried
30385fi
30386
30387
30388
30389if test $pkg_failed = yes; then
30390
30391if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30392        _pkg_short_errors_supported=yes
30393else
30394        _pkg_short_errors_supported=no
30395fi
30396        if test $_pkg_short_errors_supported = yes; then
30397	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30398        else
30399	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30400        fi
30401	# Put the nasty error message in config.log where it belongs
30402	echo "$LZMA_PKG_ERRORS" >&5
30403
30404	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30405$as_echo "no" >&6; }
30406                have_lzma=no
30407elif test $pkg_failed = untried; then
30408	have_lzma=no
30409else
30410	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30411	LZMA_LIBS=$pkg_cv_LZMA_LIBS
30412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30413$as_echo "yes" >&6; }
30414	have_lzma=yes
30415fi
30416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30417$as_echo "" >&6; }
30418fi
30419
30420if test "$have_lzma" = 'yes'; then
30421
30422$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30423
30424    if test "$build_modules" = 'no'; then
30425        CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
30426    fi
30427fi
30428
30429 if test "$have_lzma" = 'yes'; then
30430  LZMA_DELEGATE_TRUE=
30431  LZMA_DELEGATE_FALSE='#'
30432else
30433  LZMA_DELEGATE_TRUE='#'
30434  LZMA_DELEGATE_FALSE=
30435fi
30436
30437
30438
30439
30440
30441#
30442# Check for the OpenEXR delegate library.
30443#
30444
30445# Check whether --with-openexr was given.
30446if test "${with_openexr+set}" = set; then :
30447  withval=$with_openexr; with_openexr=$withval
30448else
30449  with_openexr='yes'
30450fi
30451
30452
30453if test "$with_openexr" != 'yes'; then
30454    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30455fi
30456
30457have_openexr='no'
30458OPENEXR_CFLAGS=""
30459OPENEXR_LIBS=""
30460OPENEXR_PKG=""
30461if test "x$with_openexr" = "xyes"; then
30462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30463$as_echo "-------------------------------------------------------------" >&6; }
30464
30465pkg_failed=no
30466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30467$as_echo_n "checking for OPENEXR... " >&6; }
30468
30469if test -n "$OPENEXR_CFLAGS"; then
30470    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30471 elif test -n "$PKG_CONFIG"; then
30472    if test -n "$PKG_CONFIG" && \
30473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30474  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30475  ac_status=$?
30476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30477  test $ac_status = 0; }; then
30478  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30479else
30480  pkg_failed=yes
30481fi
30482 else
30483    pkg_failed=untried
30484fi
30485if test -n "$OPENEXR_LIBS"; then
30486    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30487 elif test -n "$PKG_CONFIG"; then
30488    if test -n "$PKG_CONFIG" && \
30489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30490  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30491  ac_status=$?
30492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30493  test $ac_status = 0; }; then
30494  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30495else
30496  pkg_failed=yes
30497fi
30498 else
30499    pkg_failed=untried
30500fi
30501
30502
30503
30504if test $pkg_failed = yes; then
30505
30506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30507        _pkg_short_errors_supported=yes
30508else
30509        _pkg_short_errors_supported=no
30510fi
30511        if test $_pkg_short_errors_supported = yes; then
30512	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30513        else
30514	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30515        fi
30516	# Put the nasty error message in config.log where it belongs
30517	echo "$OPENEXR_PKG_ERRORS" >&5
30518
30519	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520$as_echo "no" >&6; }
30521                have_openexr=no
30522elif test $pkg_failed = untried; then
30523	have_openexr=no
30524else
30525	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30526	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30528$as_echo "yes" >&6; }
30529	have_openexr=yes
30530fi
30531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30532$as_echo "" >&6; }
30533fi
30534
30535if test "$have_openexr" = 'yes'; then
30536
30537$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30538
30539    if test "$build_modules" = 'no'; then
30540        CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30541    fi
30542fi
30543
30544 if test "$have_openexr" = 'yes'; then
30545  OPENEXR_DELEGATE_TRUE=
30546  OPENEXR_DELEGATE_FALSE='#'
30547else
30548  OPENEXR_DELEGATE_TRUE='#'
30549  OPENEXR_DELEGATE_FALSE=
30550fi
30551
30552
30553
30554
30555
30556#
30557# Check for PANGO delegate library.
30558#
30559
30560# Check whether --with-pango was given.
30561if test "${with_pango+set}" = set; then :
30562  withval=$with_pango; with_pango=$withval
30563else
30564  with_pango='yes'
30565fi
30566
30567
30568if test "$with_pango" != 'yes'; then
30569    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30570fi
30571
30572have_pango='no'
30573have_pangocairo='no'
30574PANGO_CFLAGS=""
30575PANGO_LIBS=""
30576PANGO_PKG=""
30577if test "x$with_pango" = "xyes"; then
30578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30579$as_echo "-------------------------------------------------------------" >&6; }
30580
30581pkg_failed=no
30582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30583$as_echo_n "checking for PANGO... " >&6; }
30584
30585if test -n "$PANGO_CFLAGS"; then
30586    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30587 elif test -n "$PKG_CONFIG"; then
30588    if test -n "$PKG_CONFIG" && \
30589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30590  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30591  ac_status=$?
30592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30593  test $ac_status = 0; }; then
30594  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
30595else
30596  pkg_failed=yes
30597fi
30598 else
30599    pkg_failed=untried
30600fi
30601if test -n "$PANGO_LIBS"; then
30602    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30603 elif test -n "$PKG_CONFIG"; then
30604    if test -n "$PKG_CONFIG" && \
30605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30606  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
30607  ac_status=$?
30608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609  test $ac_status = 0; }; then
30610  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
30611else
30612  pkg_failed=yes
30613fi
30614 else
30615    pkg_failed=untried
30616fi
30617
30618
30619
30620if test $pkg_failed = yes; then
30621
30622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30623        _pkg_short_errors_supported=yes
30624else
30625        _pkg_short_errors_supported=no
30626fi
30627        if test $_pkg_short_errors_supported = yes; then
30628	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
30629        else
30630	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
30631        fi
30632	# Put the nasty error message in config.log where it belongs
30633	echo "$PANGO_PKG_ERRORS" >&5
30634
30635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636$as_echo "no" >&6; }
30637                have_pangocairo=no
30638elif test $pkg_failed = untried; then
30639	have_pangocairo=no
30640else
30641	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30642	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30644$as_echo "yes" >&6; }
30645	have_pangocairo=yes
30646fi
30647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30648$as_echo "" >&6; }
30649
30650pkg_failed=no
30651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30652$as_echo_n "checking for PANGO... " >&6; }
30653
30654if test -n "$PANGO_CFLAGS"; then
30655    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30656 elif test -n "$PKG_CONFIG"; then
30657    if test -n "$PKG_CONFIG" && \
30658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30659  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30660  ac_status=$?
30661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30662  test $ac_status = 0; }; then
30663  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
30664else
30665  pkg_failed=yes
30666fi
30667 else
30668    pkg_failed=untried
30669fi
30670if test -n "$PANGO_LIBS"; then
30671    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30672 elif test -n "$PKG_CONFIG"; then
30673    if test -n "$PKG_CONFIG" && \
30674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30675  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
30676  ac_status=$?
30677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30678  test $ac_status = 0; }; then
30679  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
30680else
30681  pkg_failed=yes
30682fi
30683 else
30684    pkg_failed=untried
30685fi
30686
30687
30688
30689if test $pkg_failed = yes; then
30690
30691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30692        _pkg_short_errors_supported=yes
30693else
30694        _pkg_short_errors_supported=no
30695fi
30696        if test $_pkg_short_errors_supported = yes; then
30697	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
30698        else
30699	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
30700        fi
30701	# Put the nasty error message in config.log where it belongs
30702	echo "$PANGO_PKG_ERRORS" >&5
30703
30704	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30705$as_echo "no" >&6; }
30706                have_pango=no
30707elif test $pkg_failed = untried; then
30708	have_pango=no
30709else
30710	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30711	PANGO_LIBS=$pkg_cv_PANGO_LIBS
30712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30713$as_echo "yes" >&6; }
30714	have_pango=yes
30715fi
30716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30717$as_echo "" >&6; }
30718fi
30719
30720if test "$have_pango" = 'yes'; then
30721
30722$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30723
30724    if test "$build_modules" = 'no'; then
30725        CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30726    fi
30727fi
30728
30729if test "$have_pangocairo" = 'yes'; then
30730
30731$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
30732
30733    if test "$build_modules" = 'no'; then
30734        CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
30735    fi
30736fi
30737
30738 if test "$have_pango" = 'yes'; then
30739  PANGO_DELEGATE_TRUE=
30740  PANGO_DELEGATE_FALSE='#'
30741else
30742  PANGO_DELEGATE_TRUE='#'
30743  PANGO_DELEGATE_FALSE=
30744fi
30745
30746 if test "$have_pangocairo" = 'yes'; then
30747  PANGOCAIRO_DELEGATE_TRUE=
30748  PANGOCAIRO_DELEGATE_FALSE='#'
30749else
30750  PANGOCAIRO_DELEGATE_TRUE='#'
30751  PANGOCAIRO_DELEGATE_FALSE=
30752fi
30753
30754
30755
30756
30757
30758#
30759# Check for PNG delegate library.
30760#
30761
30762# Check whether --with-png was given.
30763if test "${with_png+set}" = set; then :
30764  withval=$with_png; with_png=$withval
30765else
30766  with_png='yes'
30767fi
30768
30769
30770if test "$with_png" != 'yes'; then
30771    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30772fi
30773
30774have_png='no'
30775PNG_LIBS=''
30776
30777if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
30778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30779$as_echo "-------------------------------------------------------------" >&6; }
30780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30781$as_echo_n "checking for PNG support ... " >&6; }
30782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30783$as_echo "" >&6; }
30784  failed=0
30785  passed=0
30786  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30787if test "x$ac_cv_header_png_h" = xyes; then :
30788  passed=`expr $passed + 1`
30789else
30790  failed=`expr $failed + 1`
30791fi
30792
30793
30794
30795  if test $passed -gt 0; then
30796    for var in 7 6 5 4 2 '' ; do
30797      if test "$have_png" = 'no' ; then
30798        if test "x${var}" = 'x' ; then
30799          pnglib='png'
30800        else
30801          pnglib="png1${var}"
30802        fi
30803
30804#       Test for compatible LIBPNG library
30805        failed=0
30806        passed=0
30807        if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
30808          if test "${pnglib}" != 'png' ; then
30809            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30810$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30811            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30812/* end confdefs.h.  */
30813#include <stdio.h>
30814#include <stdlib.h>
30815#include <png.h>
30816
30817int
30818main ()
30819{
30820
30821#if PNG_LIBPNG_VER_MINOR != ${var}
30822#error LIBPNG library must be version 1${var}!
30823Kaboom, Kaboom
30824#endif
30825return 0;
30826
30827  ;
30828  return 0;
30829}
30830_ACEOF
30831if ac_fn_c_try_compile "$LINENO"; then :
30832              ac_cv_libpng_ok='yes'
30833else
30834  ac_cv_libpng_ok='no'
30835fi
30836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837            if test "$ac_cv_libpng_ok" = 'yes' ; then
30838              passed=`expr $passed + 1`
30839              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840$as_echo "yes" >&6; }
30841            else
30842              failed=`expr $failed + 1`
30843              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30844$as_echo "no" >&6; }
30845            fi
30846          else
30847            passed=`expr $passed + 1`
30848            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
30850          fi
30851        fi
30852
30853        if test $passed -gt 0 -a $failed -le 0; then
30854          if test "1${var}" = '17' ; then
30855            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30856$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30857if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30858  $as_echo_n "(cached) " >&6
30859else
30860  ac_check_lib_save_LIBS=$LIBS
30861LIBS="-lpng17  $LIBS"
30862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30863/* end confdefs.h.  */
30864
30865/* Override any GCC internal prototype to avoid an error.
30866   Use char because int might match the return type of a GCC
30867   builtin and then its argument prototype would still apply.  */
30868#ifdef __cplusplus
30869extern "C"
30870#endif
30871char png_get_io_ptr ();
30872int
30873main ()
30874{
30875return png_get_io_ptr ();
30876  ;
30877  return 0;
30878}
30879_ACEOF
30880if ac_fn_c_try_link "$LINENO"; then :
30881  ac_cv_lib_png17_png_get_io_ptr=yes
30882else
30883  ac_cv_lib_png17_png_get_io_ptr=no
30884fi
30885rm -f core conftest.err conftest.$ac_objext \
30886    conftest$ac_exeext conftest.$ac_ext
30887LIBS=$ac_check_lib_save_LIBS
30888fi
30889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30890$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30891if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30892  passed=`expr $passed + 1`
30893else
30894  failed=`expr $failed + 1`
30895fi
30896
30897            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30898$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30899if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30900  $as_echo_n "(cached) " >&6
30901else
30902  ac_check_lib_save_LIBS=$LIBS
30903LIBS="-lpng17  $LIBS"
30904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30905/* end confdefs.h.  */
30906
30907/* Override any GCC internal prototype to avoid an error.
30908   Use char because int might match the return type of a GCC
30909   builtin and then its argument prototype would still apply.  */
30910#ifdef __cplusplus
30911extern "C"
30912#endif
30913char png_longjmp ();
30914int
30915main ()
30916{
30917return png_longjmp ();
30918  ;
30919  return 0;
30920}
30921_ACEOF
30922if ac_fn_c_try_link "$LINENO"; then :
30923  ac_cv_lib_png17_png_longjmp=yes
30924else
30925  ac_cv_lib_png17_png_longjmp=no
30926fi
30927rm -f core conftest.err conftest.$ac_objext \
30928    conftest$ac_exeext conftest.$ac_ext
30929LIBS=$ac_check_lib_save_LIBS
30930fi
30931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30932$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30933if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30934  passed=`expr $passed + 1`
30935else
30936  failed=`expr $failed + 1`
30937fi
30938
30939          fi
30940          if test "1${var}" = '16' ; then
30941            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30942$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30943if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30944  $as_echo_n "(cached) " >&6
30945else
30946  ac_check_lib_save_LIBS=$LIBS
30947LIBS="-lpng16  $LIBS"
30948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30949/* end confdefs.h.  */
30950
30951/* Override any GCC internal prototype to avoid an error.
30952   Use char because int might match the return type of a GCC
30953   builtin and then its argument prototype would still apply.  */
30954#ifdef __cplusplus
30955extern "C"
30956#endif
30957char png_get_io_ptr ();
30958int
30959main ()
30960{
30961return png_get_io_ptr ();
30962  ;
30963  return 0;
30964}
30965_ACEOF
30966if ac_fn_c_try_link "$LINENO"; then :
30967  ac_cv_lib_png16_png_get_io_ptr=yes
30968else
30969  ac_cv_lib_png16_png_get_io_ptr=no
30970fi
30971rm -f core conftest.err conftest.$ac_objext \
30972    conftest$ac_exeext conftest.$ac_ext
30973LIBS=$ac_check_lib_save_LIBS
30974fi
30975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30976$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30977if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30978  passed=`expr $passed + 1`
30979else
30980  failed=`expr $failed + 1`
30981fi
30982
30983            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30984$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30985if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30986  $as_echo_n "(cached) " >&6
30987else
30988  ac_check_lib_save_LIBS=$LIBS
30989LIBS="-lpng16  $LIBS"
30990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30991/* end confdefs.h.  */
30992
30993/* Override any GCC internal prototype to avoid an error.
30994   Use char because int might match the return type of a GCC
30995   builtin and then its argument prototype would still apply.  */
30996#ifdef __cplusplus
30997extern "C"
30998#endif
30999char png_longjmp ();
31000int
31001main ()
31002{
31003return png_longjmp ();
31004  ;
31005  return 0;
31006}
31007_ACEOF
31008if ac_fn_c_try_link "$LINENO"; then :
31009  ac_cv_lib_png16_png_longjmp=yes
31010else
31011  ac_cv_lib_png16_png_longjmp=no
31012fi
31013rm -f core conftest.err conftest.$ac_objext \
31014    conftest$ac_exeext conftest.$ac_ext
31015LIBS=$ac_check_lib_save_LIBS
31016fi
31017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31018$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31019if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31020  passed=`expr $passed + 1`
31021else
31022  failed=`expr $failed + 1`
31023fi
31024
31025          fi
31026          if test "1${var}" = '15' ; then
31027            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31028$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31029if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31030  $as_echo_n "(cached) " >&6
31031else
31032  ac_check_lib_save_LIBS=$LIBS
31033LIBS="-lpng15  $LIBS"
31034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31035/* end confdefs.h.  */
31036
31037/* Override any GCC internal prototype to avoid an error.
31038   Use char because int might match the return type of a GCC
31039   builtin and then its argument prototype would still apply.  */
31040#ifdef __cplusplus
31041extern "C"
31042#endif
31043char png_get_io_ptr ();
31044int
31045main ()
31046{
31047return png_get_io_ptr ();
31048  ;
31049  return 0;
31050}
31051_ACEOF
31052if ac_fn_c_try_link "$LINENO"; then :
31053  ac_cv_lib_png15_png_get_io_ptr=yes
31054else
31055  ac_cv_lib_png15_png_get_io_ptr=no
31056fi
31057rm -f core conftest.err conftest.$ac_objext \
31058    conftest$ac_exeext conftest.$ac_ext
31059LIBS=$ac_check_lib_save_LIBS
31060fi
31061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31062$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31063if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31064  passed=`expr $passed + 1`
31065else
31066  failed=`expr $failed + 1`
31067fi
31068
31069            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31070$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31071if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31072  $as_echo_n "(cached) " >&6
31073else
31074  ac_check_lib_save_LIBS=$LIBS
31075LIBS="-lpng15  $LIBS"
31076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31077/* end confdefs.h.  */
31078
31079/* Override any GCC internal prototype to avoid an error.
31080   Use char because int might match the return type of a GCC
31081   builtin and then its argument prototype would still apply.  */
31082#ifdef __cplusplus
31083extern "C"
31084#endif
31085char png_longjmp ();
31086int
31087main ()
31088{
31089return png_longjmp ();
31090  ;
31091  return 0;
31092}
31093_ACEOF
31094if ac_fn_c_try_link "$LINENO"; then :
31095  ac_cv_lib_png15_png_longjmp=yes
31096else
31097  ac_cv_lib_png15_png_longjmp=no
31098fi
31099rm -f core conftest.err conftest.$ac_objext \
31100    conftest$ac_exeext conftest.$ac_ext
31101LIBS=$ac_check_lib_save_LIBS
31102fi
31103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31104$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31105if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31106  passed=`expr $passed + 1`
31107else
31108  failed=`expr $failed + 1`
31109fi
31110
31111          fi
31112          if test "1${var}" = '14' ; then
31113            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31114$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31115if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31116  $as_echo_n "(cached) " >&6
31117else
31118  ac_check_lib_save_LIBS=$LIBS
31119LIBS="-lpng14  $LIBS"
31120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31121/* end confdefs.h.  */
31122
31123/* Override any GCC internal prototype to avoid an error.
31124   Use char because int might match the return type of a GCC
31125   builtin and then its argument prototype would still apply.  */
31126#ifdef __cplusplus
31127extern "C"
31128#endif
31129char png_get_io_ptr ();
31130int
31131main ()
31132{
31133return png_get_io_ptr ();
31134  ;
31135  return 0;
31136}
31137_ACEOF
31138if ac_fn_c_try_link "$LINENO"; then :
31139  ac_cv_lib_png14_png_get_io_ptr=yes
31140else
31141  ac_cv_lib_png14_png_get_io_ptr=no
31142fi
31143rm -f core conftest.err conftest.$ac_objext \
31144    conftest$ac_exeext conftest.$ac_ext
31145LIBS=$ac_check_lib_save_LIBS
31146fi
31147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31148$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31149if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31150  passed=`expr $passed + 1`
31151else
31152  failed=`expr $failed + 1`
31153fi
31154
31155            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31156$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31157if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31158  $as_echo_n "(cached) " >&6
31159else
31160  ac_check_lib_save_LIBS=$LIBS
31161LIBS="-lpng14  $LIBS"
31162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31163/* end confdefs.h.  */
31164
31165/* Override any GCC internal prototype to avoid an error.
31166   Use char because int might match the return type of a GCC
31167   builtin and then its argument prototype would still apply.  */
31168#ifdef __cplusplus
31169extern "C"
31170#endif
31171char png_get_io_state ();
31172int
31173main ()
31174{
31175return png_get_io_state ();
31176  ;
31177  return 0;
31178}
31179_ACEOF
31180if ac_fn_c_try_link "$LINENO"; then :
31181  ac_cv_lib_png14_png_get_io_state=yes
31182else
31183  ac_cv_lib_png14_png_get_io_state=no
31184fi
31185rm -f core conftest.err conftest.$ac_objext \
31186    conftest$ac_exeext conftest.$ac_ext
31187LIBS=$ac_check_lib_save_LIBS
31188fi
31189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31190$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31191if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31192  passed=`expr $passed + 1`
31193else
31194  failed=`expr $failed + 1`
31195fi
31196
31197          fi
31198          if test "1${var}" = '12' ; then
31199            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31200$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31201if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31202  $as_echo_n "(cached) " >&6
31203else
31204  ac_check_lib_save_LIBS=$LIBS
31205LIBS="-lpng12  $LIBS"
31206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31207/* end confdefs.h.  */
31208
31209/* Override any GCC internal prototype to avoid an error.
31210   Use char because int might match the return type of a GCC
31211   builtin and then its argument prototype would still apply.  */
31212#ifdef __cplusplus
31213extern "C"
31214#endif
31215char png_get_io_ptr ();
31216int
31217main ()
31218{
31219return png_get_io_ptr ();
31220  ;
31221  return 0;
31222}
31223_ACEOF
31224if ac_fn_c_try_link "$LINENO"; then :
31225  ac_cv_lib_png12_png_get_io_ptr=yes
31226else
31227  ac_cv_lib_png12_png_get_io_ptr=no
31228fi
31229rm -f core conftest.err conftest.$ac_objext \
31230    conftest$ac_exeext conftest.$ac_ext
31231LIBS=$ac_check_lib_save_LIBS
31232fi
31233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31234$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31235if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31236  passed=`expr $passed + 1`
31237else
31238  failed=`expr $failed + 1`
31239fi
31240
31241          fi
31242          if test "1${var}" = '1' ; then
31243              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31244$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31245if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31246  $as_echo_n "(cached) " >&6
31247else
31248  ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lpng  $LIBS"
31250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251/* end confdefs.h.  */
31252
31253/* Override any GCC internal prototype to avoid an error.
31254   Use char because int might match the return type of a GCC
31255   builtin and then its argument prototype would still apply.  */
31256#ifdef __cplusplus
31257extern "C"
31258#endif
31259char png_get_io_ptr ();
31260int
31261main ()
31262{
31263return png_get_io_ptr ();
31264  ;
31265  return 0;
31266}
31267_ACEOF
31268if ac_fn_c_try_link "$LINENO"; then :
31269  ac_cv_lib_png_png_get_io_ptr=yes
31270else
31271  ac_cv_lib_png_png_get_io_ptr=no
31272fi
31273rm -f core conftest.err conftest.$ac_objext \
31274    conftest$ac_exeext conftest.$ac_ext
31275LIBS=$ac_check_lib_save_LIBS
31276fi
31277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31278$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31279if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31280  passed=`expr $passed + 1`
31281else
31282  failed=`expr $failed + 1`
31283fi
31284
31285          fi
31286          if test $passed -gt 0 -a $failed -le 0 ; then
31287            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31288$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31289            if test $passed -gt 0 ; then
31290              if test $failed -gt 0 ; then
31291                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31292$as_echo "no -- some components failed test" >&6; }
31293                  have_png='no (failed tests)'
31294              else
31295                  PNG_LIBS="-l${pnglib}"
31296                  LIBS="$PNG_LIBS $LIBS"
31297
31298$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31299
31300                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31301$as_echo "yes" >&6; }
31302                  have_png='yes'
31303              fi
31304            fi
31305          fi
31306        fi
31307      fi
31308    done
31309  fi
31310fi
31311
31312 if test "$have_png" = 'yes'; then
31313  PNG_DELEGATE_TRUE=
31314  PNG_DELEGATE_FALSE='#'
31315else
31316  PNG_DELEGATE_TRUE='#'
31317  PNG_DELEGATE_FALSE=
31318fi
31319
31320
31321
31322
31323
31324#
31325# Check for RSVG delegate library.
31326#
31327
31328# Check whether --with-rsvg was given.
31329if test "${with_rsvg+set}" = set; then :
31330  withval=$with_rsvg; with_rsvg=$withval
31331else
31332  with_rsvg='no'
31333fi
31334
31335
31336if test "$with_rsvg" != 'yes'; then
31337    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31338fi
31339
31340have_rsvg='no'
31341have_cairo='no'
31342RSVG_CFLAGS=""
31343RSVG_LIBS=""
31344RSVG_PKG=""
31345if test "x$with_rsvg" = "xyes"; then
31346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31347$as_echo "-------------------------------------------------------------" >&6; }
31348
31349pkg_failed=no
31350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31351$as_echo_n "checking for RSVG... " >&6; }
31352
31353if test -n "$RSVG_CFLAGS"; then
31354    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31355 elif test -n "$PKG_CONFIG"; then
31356    if test -n "$PKG_CONFIG" && \
31357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31358  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31359  ac_status=$?
31360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31361  test $ac_status = 0; }; then
31362  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31363else
31364  pkg_failed=yes
31365fi
31366 else
31367    pkg_failed=untried
31368fi
31369if test -n "$RSVG_LIBS"; then
31370    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31371 elif test -n "$PKG_CONFIG"; then
31372    if test -n "$PKG_CONFIG" && \
31373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31374  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31375  ac_status=$?
31376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377  test $ac_status = 0; }; then
31378  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31379else
31380  pkg_failed=yes
31381fi
31382 else
31383    pkg_failed=untried
31384fi
31385
31386
31387
31388if test $pkg_failed = yes; then
31389
31390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31391        _pkg_short_errors_supported=yes
31392else
31393        _pkg_short_errors_supported=no
31394fi
31395        if test $_pkg_short_errors_supported = yes; then
31396	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31397        else
31398	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31399        fi
31400	# Put the nasty error message in config.log where it belongs
31401	echo "$RSVG_PKG_ERRORS" >&5
31402
31403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31404$as_echo "no" >&6; }
31405                have_rsvg=no
31406elif test $pkg_failed = untried; then
31407	have_rsvg=no
31408else
31409	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31410	RSVG_LIBS=$pkg_cv_RSVG_LIBS
31411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412$as_echo "yes" >&6; }
31413	have_rsvg=yes
31414fi
31415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31416$as_echo "" >&6; }
31417
31418pkg_failed=no
31419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31420$as_echo_n "checking for CAIRO_SVG... " >&6; }
31421
31422if test -n "$CAIRO_SVG_CFLAGS"; then
31423    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31424 elif test -n "$PKG_CONFIG"; then
31425    if test -n "$PKG_CONFIG" && \
31426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31427  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31428  ac_status=$?
31429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31430  test $ac_status = 0; }; then
31431  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31432else
31433  pkg_failed=yes
31434fi
31435 else
31436    pkg_failed=untried
31437fi
31438if test -n "$CAIRO_SVG_LIBS"; then
31439    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_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 \"cairo-svg\""; } >&5
31443  ($PKG_CONFIG --exists --print-errors "cairo-svg") 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_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31448else
31449  pkg_failed=yes
31450fi
31451 else
31452    pkg_failed=untried
31453fi
31454
31455
31456
31457if test $pkg_failed = yes; then
31458
31459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31460        _pkg_short_errors_supported=yes
31461else
31462        _pkg_short_errors_supported=no
31463fi
31464        if test $_pkg_short_errors_supported = yes; then
31465	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31466        else
31467	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31468        fi
31469	# Put the nasty error message in config.log where it belongs
31470	echo "$CAIRO_SVG_PKG_ERRORS" >&5
31471
31472	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31473$as_echo "no" >&6; }
31474                have_cairo=no
31475elif test $pkg_failed = untried; then
31476	have_cairo=no
31477else
31478	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31479	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31481$as_echo "yes" >&6; }
31482	have_cairo=yes
31483fi
31484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31485$as_echo "" >&6; }
31486fi
31487
31488if test "$have_rsvg" = 'yes'; then
31489
31490$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31491
31492    if test "$build_modules" = 'no'; then
31493        CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31494    fi
31495fi
31496
31497if test "$have_cairo" = 'yes'; then
31498
31499$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31500
31501    if test "$build_modules" = 'no'; then
31502        CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31503    fi
31504fi
31505
31506 if test "$have_rsvg" = 'yes'; then
31507  RSVG_DELEGATE_TRUE=
31508  RSVG_DELEGATE_FALSE='#'
31509else
31510  RSVG_DELEGATE_TRUE='#'
31511  RSVG_DELEGATE_FALSE=
31512fi
31513
31514 if test "$have_cairo" = 'yes'; then
31515  CAIRO_DELEGATE_TRUE=
31516  CAIRO_DELEGATE_FALSE='#'
31517else
31518  CAIRO_DELEGATE_TRUE='#'
31519  CAIRO_DELEGATE_FALSE=
31520fi
31521
31522
31523
31524
31525
31526#
31527# Check for TIFF delegate library.
31528#
31529
31530# Check whether --with-tiff was given.
31531if test "${with_tiff+set}" = set; then :
31532  withval=$with_tiff; with_tiff=$withval
31533else
31534  with_tiff='yes'
31535fi
31536
31537
31538if test "$with_tiff" != 'yes'; then
31539    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31540fi
31541
31542have_tiff='no'
31543TIFF_LIBS=''
31544if test "$with_tiff" != 'no'; then
31545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31546$as_echo "-------------------------------------------------------------" >&6; }
31547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31548$as_echo_n "checking for TIFF... " >&6; }
31549    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31550$as_echo "" >&6; }
31551    failed=0
31552    passed=0
31553    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31554if test "x$ac_cv_header_tiff_h" = xyes; then :
31555  passed=`expr $passed + 1`
31556else
31557  failed=`expr $failed + 1`
31558fi
31559
31560
31561    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31562if test "x$ac_cv_header_tiffio_h" = xyes; then :
31563  passed=`expr $passed + 1`
31564else
31565  failed=`expr $failed + 1`
31566fi
31567
31568
31569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31570$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31571if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31572  $as_echo_n "(cached) " >&6
31573else
31574  ac_check_lib_save_LIBS=$LIBS
31575LIBS="-ltiff  $LIBS"
31576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31577/* end confdefs.h.  */
31578
31579/* Override any GCC internal prototype to avoid an error.
31580   Use char because int might match the return type of a GCC
31581   builtin and then its argument prototype would still apply.  */
31582#ifdef __cplusplus
31583extern "C"
31584#endif
31585char TIFFOpen ();
31586int
31587main ()
31588{
31589return TIFFOpen ();
31590  ;
31591  return 0;
31592}
31593_ACEOF
31594if ac_fn_c_try_link "$LINENO"; then :
31595  ac_cv_lib_tiff_TIFFOpen=yes
31596else
31597  ac_cv_lib_tiff_TIFFOpen=no
31598fi
31599rm -f core conftest.err conftest.$ac_objext \
31600    conftest$ac_exeext conftest.$ac_ext
31601LIBS=$ac_check_lib_save_LIBS
31602fi
31603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31604$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31605if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31606  passed=`expr $passed + 1`
31607else
31608  failed=`expr $failed + 1`
31609fi
31610
31611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31612$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31613if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31614  $as_echo_n "(cached) " >&6
31615else
31616  ac_check_lib_save_LIBS=$LIBS
31617LIBS="-ltiff  $LIBS"
31618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31619/* end confdefs.h.  */
31620
31621/* Override any GCC internal prototype to avoid an error.
31622   Use char because int might match the return type of a GCC
31623   builtin and then its argument prototype would still apply.  */
31624#ifdef __cplusplus
31625extern "C"
31626#endif
31627char TIFFClientOpen ();
31628int
31629main ()
31630{
31631return TIFFClientOpen ();
31632  ;
31633  return 0;
31634}
31635_ACEOF
31636if ac_fn_c_try_link "$LINENO"; then :
31637  ac_cv_lib_tiff_TIFFClientOpen=yes
31638else
31639  ac_cv_lib_tiff_TIFFClientOpen=no
31640fi
31641rm -f core conftest.err conftest.$ac_objext \
31642    conftest$ac_exeext conftest.$ac_ext
31643LIBS=$ac_check_lib_save_LIBS
31644fi
31645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31646$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31647if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31648  passed=`expr $passed + 1`
31649else
31650  failed=`expr $failed + 1`
31651fi
31652
31653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31654$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31655if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31656  $as_echo_n "(cached) " >&6
31657else
31658  ac_check_lib_save_LIBS=$LIBS
31659LIBS="-ltiff  $LIBS"
31660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661/* end confdefs.h.  */
31662
31663/* Override any GCC internal prototype to avoid an error.
31664   Use char because int might match the return type of a GCC
31665   builtin and then its argument prototype would still apply.  */
31666#ifdef __cplusplus
31667extern "C"
31668#endif
31669char TIFFIsByteSwapped ();
31670int
31671main ()
31672{
31673return TIFFIsByteSwapped ();
31674  ;
31675  return 0;
31676}
31677_ACEOF
31678if ac_fn_c_try_link "$LINENO"; then :
31679  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31680else
31681  ac_cv_lib_tiff_TIFFIsByteSwapped=no
31682fi
31683rm -f core conftest.err conftest.$ac_objext \
31684    conftest$ac_exeext conftest.$ac_ext
31685LIBS=$ac_check_lib_save_LIBS
31686fi
31687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31688$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31689if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31690  passed=`expr $passed + 1`
31691else
31692  failed=`expr $failed + 1`
31693fi
31694
31695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31696$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31697if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31698  $as_echo_n "(cached) " >&6
31699else
31700  ac_check_lib_save_LIBS=$LIBS
31701LIBS="-ltiff  $LIBS"
31702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31703/* end confdefs.h.  */
31704
31705/* Override any GCC internal prototype to avoid an error.
31706   Use char because int might match the return type of a GCC
31707   builtin and then its argument prototype would still apply.  */
31708#ifdef __cplusplus
31709extern "C"
31710#endif
31711char TIFFReadRGBATile ();
31712int
31713main ()
31714{
31715return TIFFReadRGBATile ();
31716  ;
31717  return 0;
31718}
31719_ACEOF
31720if ac_fn_c_try_link "$LINENO"; then :
31721  ac_cv_lib_tiff_TIFFReadRGBATile=yes
31722else
31723  ac_cv_lib_tiff_TIFFReadRGBATile=no
31724fi
31725rm -f core conftest.err conftest.$ac_objext \
31726    conftest$ac_exeext conftest.$ac_ext
31727LIBS=$ac_check_lib_save_LIBS
31728fi
31729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31730$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31731if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31732  passed=`expr $passed + 1`
31733else
31734  failed=`expr $failed + 1`
31735fi
31736
31737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31738$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31739if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31740  $as_echo_n "(cached) " >&6
31741else
31742  ac_check_lib_save_LIBS=$LIBS
31743LIBS="-ltiff  $LIBS"
31744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31745/* end confdefs.h.  */
31746
31747/* Override any GCC internal prototype to avoid an error.
31748   Use char because int might match the return type of a GCC
31749   builtin and then its argument prototype would still apply.  */
31750#ifdef __cplusplus
31751extern "C"
31752#endif
31753char TIFFReadRGBAStrip ();
31754int
31755main ()
31756{
31757return TIFFReadRGBAStrip ();
31758  ;
31759  return 0;
31760}
31761_ACEOF
31762if ac_fn_c_try_link "$LINENO"; then :
31763  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31764else
31765  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
31766fi
31767rm -f core conftest.err conftest.$ac_objext \
31768    conftest$ac_exeext conftest.$ac_ext
31769LIBS=$ac_check_lib_save_LIBS
31770fi
31771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
31772$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
31773if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
31774  passed=`expr $passed + 1`
31775else
31776  failed=`expr $failed + 1`
31777fi
31778
31779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
31780$as_echo_n "checking if TIFF package is complete... " >&6; }
31781    if test $passed -gt 0; then
31782        if test $failed -gt 0; then
31783            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31784$as_echo "no -- some components failed test" >&6; }
31785            have_tiff='no (failed tests)'
31786        else
31787            TIFF_LIBS='-ltiff'
31788            LIBS="$TIFF_LIBS $LIBS"
31789
31790$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
31791
31792            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31793$as_echo "yes" >&6; }
31794            have_tiff='yes'
31795            for ac_header in tiffconf.h
31796do :
31797  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
31798if test "x$ac_cv_header_tiffconf_h" = xyes; then :
31799  cat >>confdefs.h <<_ACEOF
31800#define HAVE_TIFFCONF_H 1
31801_ACEOF
31802
31803fi
31804
31805done
31806
31807            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
31808              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31809              TIFFSetTagExtender TIFFSetWarningHandlerExt \
31810              TIFFSwabArrayOfTriples
31811do :
31812  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31813ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31814if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31815  cat >>confdefs.h <<_ACEOF
31816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31817_ACEOF
31818
31819fi
31820done
31821
31822        fi
31823    else
31824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31825$as_echo "no" >&6; }
31826    fi
31827fi
31828 if test "$have_tiff" = 'yes'; then
31829  TIFF_DELEGATE_TRUE=
31830  TIFF_DELEGATE_FALSE='#'
31831else
31832  TIFF_DELEGATE_TRUE='#'
31833  TIFF_DELEGATE_FALSE=
31834fi
31835
31836
31837
31838
31839#
31840# Check for WEBP delegate library.
31841#
31842
31843# Check whether --with-webp was given.
31844if test "${with_webp+set}" = set; then :
31845  withval=$with_webp; with_webp=$withval
31846else
31847  with_webp='yes'
31848fi
31849
31850
31851if test "$with_webp" != 'yes'; then
31852    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31853fi
31854
31855have_webp='no'
31856WEBP_LIBS=''
31857if test "$with_webp" != 'no'; then
31858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31859$as_echo "-------------------------------------------------------------" >&6; }
31860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31861$as_echo_n "checking for WEBP... " >&6; }
31862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31863$as_echo "" >&6; }
31864    failed=0
31865    passed=0
31866    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31867if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31868  passed=`expr $passed + 1`
31869else
31870  failed=`expr $failed + 1`
31871fi
31872
31873
31874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31875$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31876if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
31877  $as_echo_n "(cached) " >&6
31878else
31879  ac_check_lib_save_LIBS=$LIBS
31880LIBS="-lwebp  $LIBS"
31881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31882/* end confdefs.h.  */
31883
31884/* Override any GCC internal prototype to avoid an error.
31885   Use char because int might match the return type of a GCC
31886   builtin and then its argument prototype would still apply.  */
31887#ifdef __cplusplus
31888extern "C"
31889#endif
31890char WebPPictureInitInternal ();
31891int
31892main ()
31893{
31894return WebPPictureInitInternal ();
31895  ;
31896  return 0;
31897}
31898_ACEOF
31899if ac_fn_c_try_link "$LINENO"; then :
31900  ac_cv_lib_webp_WebPPictureInitInternal=yes
31901else
31902  ac_cv_lib_webp_WebPPictureInitInternal=no
31903fi
31904rm -f core conftest.err conftest.$ac_objext \
31905    conftest$ac_exeext conftest.$ac_ext
31906LIBS=$ac_check_lib_save_LIBS
31907fi
31908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31909$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31910if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
31911  passed=`expr $passed + 1`
31912else
31913  failed=`expr $failed + 1`
31914fi
31915
31916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31917$as_echo_n "checking if WEBP package is complete... " >&6; }
31918    if test $passed -gt 0; then
31919        if test $failed -gt 0; then
31920            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31921$as_echo "no -- some components failed test" >&6; }
31922            have_webp='no (failed tests)'
31923        else
31924            WEBP_LIBS='-lwebp'
31925            LIBS="$WEBP_LIBS $LIBS"
31926
31927$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31928
31929            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31930$as_echo "yes" >&6; }
31931            have_webp='yes'
31932        fi
31933    else
31934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31935$as_echo "no" >&6; }
31936    fi
31937fi
31938 if test "$have_webp" = 'yes'; then
31939  WEBP_DELEGATE_TRUE=
31940  WEBP_DELEGATE_FALSE='#'
31941else
31942  WEBP_DELEGATE_TRUE='#'
31943  WEBP_DELEGATE_FALSE=
31944fi
31945
31946
31947
31948
31949#
31950# Set Windows font directory.
31951#
31952
31953# Check whether --with-windows-font-dir was given.
31954if test "${with_windows_font_dir+set}" = set; then :
31955  withval=$with_windows_font_dir; with_windows_font_dir=$withval
31956else
31957  with_windows_font_dir=''
31958fi
31959
31960if test "$with_windows_font_dir" != '' ; then
31961    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31962fi
31963
31964
31965#
31966# Check for WMF delegate library.
31967#
31968
31969# Check whether --with-wmf was given.
31970if test "${with_wmf+set}" = set; then :
31971  withval=$with_wmf; with_wmf=$withval
31972else
31973  with_wmf='no'
31974fi
31975
31976
31977if test "$with_wmf" != 'yes'; then
31978    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31979fi
31980
31981have_wmf='no'
31982WMF_LIBS=''
31983WMF_LIBS_DEPS=''
31984OLIBS="$LIBS"
31985if test "$with_wmf" != 'no'; then
31986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31987$as_echo "-------------------------------------------------------------" >&6; }
31988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31989$as_echo_n "checking for WMF... " >&6; }
31990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31991$as_echo "" >&6; }
31992    have_libwmf='no'
31993    have_libwmflite='no'
31994    have_libwmf_ipa_h='no'
31995
31996    ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31997"
31998if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31999  have_libwmf_ipa_h='yes'
32000fi
32001
32002
32003    if test "$have_libwmf_ipa_h" = 'yes'; then
32004        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32005$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32006if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32007  $as_echo_n "(cached) " >&6
32008else
32009  ac_check_lib_save_LIBS=$LIBS
32010LIBS="-lwmflite  $LIBS"
32011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32012/* end confdefs.h.  */
32013
32014/* Override any GCC internal prototype to avoid an error.
32015   Use char because int might match the return type of a GCC
32016   builtin and then its argument prototype would still apply.  */
32017#ifdef __cplusplus
32018extern "C"
32019#endif
32020char wmf_lite_create ();
32021int
32022main ()
32023{
32024return wmf_lite_create ();
32025  ;
32026  return 0;
32027}
32028_ACEOF
32029if ac_fn_c_try_link "$LINENO"; then :
32030  ac_cv_lib_wmflite_wmf_lite_create=yes
32031else
32032  ac_cv_lib_wmflite_wmf_lite_create=no
32033fi
32034rm -f core conftest.err conftest.$ac_objext \
32035    conftest$ac_exeext conftest.$ac_ext
32036LIBS=$ac_check_lib_save_LIBS
32037fi
32038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32039$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32040if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32041  have_libwmflite='yes'
32042fi
32043
32044        if test "$have_libwmflite" = 'yes'; then
32045
32046$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32047
32048            WMF_LIBS='-lwmflite'
32049            LIBS="$WMF_LIBS $LIBS"
32050            have_wmf='yes'
32051        else
32052            WMF_LIBS_DEPS=''
32053            WMF_CONFIG_LIBS=`libwmf-config --libs`
32054            for lib in xml2 expat freetype jpeg png z; do
32055                testlib="-l${lib}"
32056                echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32057            done
32058            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32059$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32060if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32061  $as_echo_n "(cached) " >&6
32062else
32063  ac_check_lib_save_LIBS=$LIBS
32064LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32066/* end confdefs.h.  */
32067
32068/* Override any GCC internal prototype to avoid an error.
32069   Use char because int might match the return type of a GCC
32070   builtin and then its argument prototype would still apply.  */
32071#ifdef __cplusplus
32072extern "C"
32073#endif
32074char wmf_api_create ();
32075int
32076main ()
32077{
32078return wmf_api_create ();
32079  ;
32080  return 0;
32081}
32082_ACEOF
32083if ac_fn_c_try_link "$LINENO"; then :
32084  ac_cv_lib_wmf_wmf_api_create=yes
32085else
32086  ac_cv_lib_wmf_wmf_api_create=no
32087fi
32088rm -f core conftest.err conftest.$ac_objext \
32089    conftest$ac_exeext conftest.$ac_ext
32090LIBS=$ac_check_lib_save_LIBS
32091fi
32092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32093$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32094if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32095  have_libwmf='yes'
32096fi
32097
32098            if test "$have_libwmf" = 'yes'; then
32099
32100$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32101
32102                WMF_LIBS='-lwmf'
32103                LIBS="$WMF_LIBS $LIBS"
32104                have_wmf='yes'
32105            else
32106                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32107$as_echo "no -- some components failed test" >&6; }
32108                have_wmf='no (failed tests)'
32109                have_wmflite='no (failed tests)'
32110                LIBS="$OLIBS"
32111                WMF_LIBS=''
32112            fi
32113        fi
32114    fi
32115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32116$as_echo_n "checking if WMF package is complete... " >&6; }
32117    if test "$have_wmf" = 'yes'; then
32118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32119$as_echo "yes" >&6; }
32120    else
32121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32122$as_echo "no" >&6; }
32123    fi
32124fi
32125 if test "$have_wmf" = 'yes'; then
32126  WMF_DELEGATE_TRUE=
32127  WMF_DELEGATE_FALSE='#'
32128else
32129  WMF_DELEGATE_TRUE='#'
32130  WMF_DELEGATE_FALSE=
32131fi
32132
32133
32134
32135
32136
32137
32138#
32139# Check for XML delegate library.
32140#
32141
32142# Check whether --with-xml was given.
32143if test "${with_xml+set}" = set; then :
32144  withval=$with_xml; with_xml=$withval
32145else
32146  with_xml='yes'
32147fi
32148
32149
32150if test "$with_xml" != 'yes' ; then
32151    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32152fi
32153
32154have_xml='no'
32155XML_LIBS=''
32156if test "$with_xml" != 'no'; then
32157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32158$as_echo "-------------------------------------------------------------" >&6; }
32159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32160$as_echo_n "checking for XML... " >&6; }
32161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32162$as_echo "" >&6; }
32163    PERSIST_LDFLAGS=$LDFLAGS
32164    PERSIST_CPPFLAGS=$CPPFLAGS
32165    xml2_config=''
32166    # Extract the first word of "xml2-config", so it can be a program name with args.
32167set dummy xml2-config; ac_word=$2
32168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32169$as_echo_n "checking for $ac_word... " >&6; }
32170if ${ac_cv_path_xml2_config+:} false; then :
32171  $as_echo_n "(cached) " >&6
32172else
32173  case $xml2_config in
32174  [\\/]* | ?:[\\/]*)
32175  ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32176  ;;
32177  *)
32178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32179for as_dir in $PATH
32180do
32181  IFS=$as_save_IFS
32182  test -z "$as_dir" && as_dir=.
32183    for ac_exec_ext in '' $ac_executable_extensions; do
32184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32185    ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32187    break 2
32188  fi
32189done
32190  done
32191IFS=$as_save_IFS
32192
32193  ;;
32194esac
32195fi
32196xml2_config=$ac_cv_path_xml2_config
32197if test -n "$xml2_config"; then
32198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32199$as_echo "$xml2_config" >&6; }
32200else
32201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32202$as_echo "no" >&6; }
32203fi
32204
32205    if test -n "$xml2_config"; then
32206        # Debian installs libxml headers under /usr/include/libxml2/libxml with
32207        # the shared library installed under /usr/lib, whereas the package
32208        # installs itself under $prefix/libxml and $prefix/lib.
32209        xml2_prefix=`xml2-config --prefix`
32210        if test -d "${xml2_prefix}/include/libxml2"; then
32211            CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32212        fi
32213        if test "${xml2_prefix}" != '/usr'; then
32214            LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32215        fi
32216    fi
32217    failed=0
32218    passed=0
32219    ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32220if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32221  passed=`expr $passed + 1`
32222else
32223  failed=`expr $failed + 1`
32224fi
32225
32226
32227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32228$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32229if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32230  $as_echo_n "(cached) " >&6
32231else
32232  ac_check_lib_save_LIBS=$LIBS
32233LIBS="-lxml2  $LIBS"
32234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32235/* end confdefs.h.  */
32236
32237/* Override any GCC internal prototype to avoid an error.
32238   Use char because int might match the return type of a GCC
32239   builtin and then its argument prototype would still apply.  */
32240#ifdef __cplusplus
32241extern "C"
32242#endif
32243char xmlSAXVersion ();
32244int
32245main ()
32246{
32247return xmlSAXVersion ();
32248  ;
32249  return 0;
32250}
32251_ACEOF
32252if ac_fn_c_try_link "$LINENO"; then :
32253  ac_cv_lib_xml2_xmlSAXVersion=yes
32254else
32255  ac_cv_lib_xml2_xmlSAXVersion=no
32256fi
32257rm -f core conftest.err conftest.$ac_objext \
32258    conftest$ac_exeext conftest.$ac_ext
32259LIBS=$ac_check_lib_save_LIBS
32260fi
32261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32262$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32263if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32264  passed=`expr $passed + 1`
32265else
32266  failed=`expr $failed + 1`
32267fi
32268
32269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32270$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32271if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32272  $as_echo_n "(cached) " >&6
32273else
32274  ac_check_lib_save_LIBS=$LIBS
32275LIBS="-lxml2  $LIBS"
32276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32277/* end confdefs.h.  */
32278
32279/* Override any GCC internal prototype to avoid an error.
32280   Use char because int might match the return type of a GCC
32281   builtin and then its argument prototype would still apply.  */
32282#ifdef __cplusplus
32283extern "C"
32284#endif
32285char xmlParseChunk ();
32286int
32287main ()
32288{
32289return xmlParseChunk ();
32290  ;
32291  return 0;
32292}
32293_ACEOF
32294if ac_fn_c_try_link "$LINENO"; then :
32295  ac_cv_lib_xml2_xmlParseChunk=yes
32296else
32297  ac_cv_lib_xml2_xmlParseChunk=no
32298fi
32299rm -f core conftest.err conftest.$ac_objext \
32300    conftest$ac_exeext conftest.$ac_ext
32301LIBS=$ac_check_lib_save_LIBS
32302fi
32303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32304$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32305if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32306  passed=`expr $passed + 1`
32307else
32308  failed=`expr $failed + 1`
32309fi
32310
32311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32312$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32313if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32314  $as_echo_n "(cached) " >&6
32315else
32316  ac_check_lib_save_LIBS=$LIBS
32317LIBS="-lxml2  $LIBS"
32318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32319/* end confdefs.h.  */
32320
32321/* Override any GCC internal prototype to avoid an error.
32322   Use char because int might match the return type of a GCC
32323   builtin and then its argument prototype would still apply.  */
32324#ifdef __cplusplus
32325extern "C"
32326#endif
32327char xmlCreatePushParserCtxt ();
32328int
32329main ()
32330{
32331return xmlCreatePushParserCtxt ();
32332  ;
32333  return 0;
32334}
32335_ACEOF
32336if ac_fn_c_try_link "$LINENO"; then :
32337  ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32338else
32339  ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32340fi
32341rm -f core conftest.err conftest.$ac_objext \
32342    conftest$ac_exeext conftest.$ac_ext
32343LIBS=$ac_check_lib_save_LIBS
32344fi
32345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32346$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32347if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32348  passed=`expr $passed + 1`
32349else
32350  failed=`expr $failed + 1`
32351fi
32352
32353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32354$as_echo_n "checking if XML package is complete... " >&6; }
32355    if test $passed -gt 0; then
32356        if test $failed -gt 0; then
32357            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32358$as_echo "no -- some components failed test" >&6; }
32359            have_xml='no (failed tests)'
32360            LDFLAGS="$PERSIST_LDFLAGS"
32361            CPPFLAGS="$PERSIST_CPPFLAGS"
32362        else
32363            XML_LIBS='-lxml2'
32364            LIBS="$XML_LIBS $LIBS"
32365
32366$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32367
32368            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32369$as_echo "yes" >&6; }
32370            have_xml='yes'
32371        fi
32372    else
32373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32374$as_echo "no" >&6; }
32375    fi
32376fi
32377 if test "$have_xml" = 'yes'; then
32378  XML_DELEGATE_TRUE=
32379  XML_DELEGATE_FALSE='#'
32380else
32381  XML_DELEGATE_TRUE='#'
32382  XML_DELEGATE_FALSE=
32383fi
32384
32385
32386
32387
32388# Substitute compiler name to build/link PerlMagick
32389#
32390
32391
32392#
32393# Configure install Paths
32394#
32395
32396# Path to ImageMagick header files
32397INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32398INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32399DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
32400case "${build_os}" in
32401  mingw* )
32402    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32403    ;;
32404esac
32405
32406cat >>confdefs.h <<_ACEOF
32407#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32408_ACEOF
32409
32410
32411
32412# Path to ImageMagick header files (arch part)
32413INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32414DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32415case "${build_os}" in
32416  mingw* )
32417    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32418    ;;
32419esac
32420
32421cat >>confdefs.h <<_ACEOF
32422#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32423_ACEOF
32424
32425
32426
32427# Subdirectory under lib to place ImageMagick lib files
32428LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32429
32430cat >>confdefs.h <<_ACEOF
32431#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32432_ACEOF
32433
32434
32435# Path to ImageMagick bin directory
32436EXECUTABLE_PATH="${BIN_DIR}"
32437DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32438case "${build_os}" in
32439  mingw* )
32440    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32441    ;;
32442esac
32443
32444cat >>confdefs.h <<_ACEOF
32445#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32446_ACEOF
32447
32448
32449
32450# Path to ImageMagick lib
32451LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32452DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32453case "${build_os}" in
32454  mingw* )
32455    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32456    ;;
32457esac
32458
32459cat >>confdefs.h <<_ACEOF
32460#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32461_ACEOF
32462
32463
32464
32465#
32466# path to local binaries
32467if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32468   LIB_BIN_BASEDIRNAME="bin"
32469fi
32470
32471cat >>confdefs.h <<_ACEOF
32472#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32473_ACEOF
32474
32475
32476
32477if test "x$LIB_BIN_DIR" = "x"; then
32478   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32479fi
32480
32481
32482LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32483
32484LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32485
32486
32487#
32488# path to modules lib
32489if test "x$MODULES_BASEDIRNAME" = "x"; then
32490   MODULES_BASEDIRNAME="modules"
32491fi
32492
32493cat >>confdefs.h <<_ACEOF
32494#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
32495_ACEOF
32496
32497
32498
32499if test "x$MODULES_DIRNAME" = "x"; then
32500  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32501else
32502
32503cat >>confdefs.h <<_ACEOF
32504#define MODULES_DIRNAME "$MODULES_DIRNAME"
32505_ACEOF
32506
32507fi
32508
32509
32510MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
32511
32512MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32513
32514
32515#
32516# path to coders lib
32517if test "x$CODER_DIRNAME" = "x"; then
32518   CODER_DIRNAME="coders"
32519fi
32520
32521cat >>confdefs.h <<_ACEOF
32522#define CODER_DIRNAME "$CODER_DIRNAME"
32523_ACEOF
32524
32525
32526
32527CODER_RELATIVE_PATH="${CODER_DIRNAME}"
32528CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
32529
32530
32531#
32532# Subdirectory under lib to place ImageMagick filter module files
32533#
32534# path to coders lib
32535if test "x$FILTER_DIRNAME" = "x"; then
32536   FILTER_DIRNAME="filters"
32537fi
32538
32539cat >>confdefs.h <<_ACEOF
32540#define FILTER_DIRNAME "$FILTER_DIRNAME"
32541_ACEOF
32542
32543
32544
32545FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
32546FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
32547
32548
32549#
32550# Path to ImageMagick documentation files
32551DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32552DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32553DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
32554case "${build_os}" in
32555  mingw* )
32556    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32557    ;;
32558esac
32559
32560cat >>confdefs.h <<_ACEOF
32561#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32562_ACEOF
32563
32564
32565
32566#
32567# Enable/Disable documentation
32568# Check whether --enable-docs was given.
32569if test "${enable_docs+set}" = set; then :
32570  enableval=$enable_docs; wantdocs=$enableval
32571else
32572  wantdocs=yes
32573fi
32574
32575 if test "$wantdocs" = "yes"; then
32576  INSTALL_DOC_TRUE=
32577  INSTALL_DOC_FALSE='#'
32578else
32579  INSTALL_DOC_TRUE='#'
32580  INSTALL_DOC_FALSE=
32581fi
32582
32583
32584# Subdirectory to place architecture-dependent configuration files
32585CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32586
32587cat >>confdefs.h <<_ACEOF
32588#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32589_ACEOF
32590
32591CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32592DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32593case "${build_os}" in
32594  mingw* )
32595    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32596    ;;
32597esac
32598
32599cat >>confdefs.h <<_ACEOF
32600#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32601_ACEOF
32602
32603
32604
32605# Subdirectory to place architecture-independent configuration files
32606SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32607
32608cat >>confdefs.h <<_ACEOF
32609#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32610_ACEOF
32611
32612SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32613DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32614case "${build_os}" in
32615  mingw* )
32616    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32617    ;;
32618esac
32619
32620cat >>confdefs.h <<_ACEOF
32621#define SHARE_PATH "$DEFINE_SHARE_PATH"
32622_ACEOF
32623
32624
32625
32626#
32627# Subdirectory to place architecture-dependent configuration files.
32628if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32629   SHAREARCH_BASEDIRNAME="config"
32630fi
32631
32632cat >>confdefs.h <<_ACEOF
32633#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
32634_ACEOF
32635
32636
32637
32638if test "x$SHAREARCH_DIRNAME" = "x"; then
32639  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32640else
32641
32642cat >>confdefs.h <<_ACEOF
32643#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
32644_ACEOF
32645
32646fi
32647
32648
32649SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32650
32651SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
32652
32653
32654#
32655# program_transform_name is formed for use in a Makefile, so create a
32656# modified version for use in a shell script.
32657configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32658
32659# Default delegate definitions
32660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32661$as_echo "-------------------------------------------------------------" >&6; }
32662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32663$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32665$as_echo "" >&6; }
32666AutotraceDecodeDelegateDefault='autotrace'
32667BlenderDecodeDelegateDefault='blender'
32668BZIPDelegateDefault='bzip2'
32669BrowseDelegateDefault='xdg-open'
32670CatDelegateDefault='cat'
32671DNGDecodeDelegateDefault='ufraw-batch'
32672DOCDecodeDelegateDefault='soffice'
32673GVCDecodeDelegateDefault='dot'
32674DVIDecodeDelegateDefault='dvips'
32675EchoDelegateDefault='echo'
32676EditorDelegateDefault='xterm'
32677ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32678DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32679MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32680GnuplotDecodeDelegateDefault='gnuplot'
32681HPGLDecodeDelegateDefault='hp2xx'
32682HTMLDecodeDelegateDefault='html2ps'
32683ILBMDecodeDelegateDefault='ilbmtoppm'
32684ILBMEncodeDelegateDefault='ppmtoilbm'
32685JXRDecodeDelegateDefault='JxrDecApp'
32686JXREncodeDelegateDefault='JxrEncApp'
32687LPDelegateDefault='lp'
32688LPRDelegateDefault='lpr'
32689LaunchDelegateDefault='gimp'
32690MANDelegateDefault='groff'
32691MPEGDecodeDelegateDefault='avconv'
32692MPEGEncodeDelegateDefault='avconv'
32693MrSIDDecodeDelegateDefault='mrsidgeodecode'
32694MVDelegateDefault='mv'
32695PCLDelegateDefault='pcl6'
32696PGPDecodeDelegateDefault='pgpv'
32697POVDelegateDefault='povray'
32698if test "$native_win32_build" = 'yes'; then
32699    PSDelegateDefault='gswin32c'
32700elif test "$gslib_framework" = 'yes'; then
32701    PSDelegateDefault='gsc'
32702else
32703    PSDelegateDefault='gs'
32704fi
32705RLEEncodeDelegateDefault='rawtorle'
32706RMDelegateDefault='rm'
32707RSVGDecodeDelegateDefault='rsvg-convert'
32708SCANDecodeDelegateDefault='scanimage'
32709SVGDecodeDelegateDefault='inkscape'
32710TXTDelegateDefault='enscript'
32711UniconvertorDelegateDefault='uniconvertor'
32712WebPDecodeDelegateDefault='dwebp'
32713WebPEncodeDelegateDefault='cwebp'
32714WMFDecodeDelegateDefault='wmf2eps'
32715WWWDecodeDelegateDefault='curl'
32716XPSDelegateDefault='gxps'
32717ZipDelegateDefault='gzip'
32718
32719# Search for delegates
32720# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32721set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32723$as_echo_n "checking for $ac_word... " >&6; }
32724if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32725  $as_echo_n "(cached) " >&6
32726else
32727  case $AutotraceDecodeDelegate in
32728  [\\/]* | ?:[\\/]*)
32729  ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32730  ;;
32731  *)
32732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32733for as_dir in $PATH
32734do
32735  IFS=$as_save_IFS
32736  test -z "$as_dir" && as_dir=.
32737    for ac_exec_ext in '' $ac_executable_extensions; do
32738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32739    ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32741    break 2
32742  fi
32743done
32744  done
32745IFS=$as_save_IFS
32746
32747  test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32748  ;;
32749esac
32750fi
32751AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32752if test -n "$AutotraceDecodeDelegate"; then
32753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32754$as_echo "$AutotraceDecodeDelegate" >&6; }
32755else
32756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32757$as_echo "no" >&6; }
32758fi
32759
32760
32761# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32762set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32764$as_echo_n "checking for $ac_word... " >&6; }
32765if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32766  $as_echo_n "(cached) " >&6
32767else
32768  case $BlenderDecodeDelegate in
32769  [\\/]* | ?:[\\/]*)
32770  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32771  ;;
32772  *)
32773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32774for as_dir in $PATH
32775do
32776  IFS=$as_save_IFS
32777  test -z "$as_dir" && as_dir=.
32778    for ac_exec_ext in '' $ac_executable_extensions; do
32779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32780    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32782    break 2
32783  fi
32784done
32785  done
32786IFS=$as_save_IFS
32787
32788  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32789  ;;
32790esac
32791fi
32792BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32793if test -n "$BlenderDecodeDelegate"; then
32794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32795$as_echo "$BlenderDecodeDelegate" >&6; }
32796else
32797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32798$as_echo "no" >&6; }
32799fi
32800
32801
32802# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32803set dummy "$BZIPDelegateDefault"; ac_word=$2
32804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32805$as_echo_n "checking for $ac_word... " >&6; }
32806if ${ac_cv_path_BZIPDelegate+:} false; then :
32807  $as_echo_n "(cached) " >&6
32808else
32809  case $BZIPDelegate in
32810  [\\/]* | ?:[\\/]*)
32811  ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32812  ;;
32813  *)
32814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32815for as_dir in $PATH
32816do
32817  IFS=$as_save_IFS
32818  test -z "$as_dir" && as_dir=.
32819    for ac_exec_ext in '' $ac_executable_extensions; do
32820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32821    ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32823    break 2
32824  fi
32825done
32826  done
32827IFS=$as_save_IFS
32828
32829  test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32830  ;;
32831esac
32832fi
32833BZIPDelegate=$ac_cv_path_BZIPDelegate
32834if test -n "$BZIPDelegate"; then
32835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
32836$as_echo "$BZIPDelegate" >&6; }
32837else
32838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32839$as_echo "no" >&6; }
32840fi
32841
32842
32843for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32844do
32845  # Extract the first word of "$ac_prog", so it can be a program name with args.
32846set dummy $ac_prog; ac_word=$2
32847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32848$as_echo_n "checking for $ac_word... " >&6; }
32849if ${ac_cv_path_BrowseDelegate+:} false; then :
32850  $as_echo_n "(cached) " >&6
32851else
32852  case $BrowseDelegate in
32853  [\\/]* | ?:[\\/]*)
32854  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32855  ;;
32856  *)
32857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32858for as_dir in $PATH
32859do
32860  IFS=$as_save_IFS
32861  test -z "$as_dir" && as_dir=.
32862    for ac_exec_ext in '' $ac_executable_extensions; do
32863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32864    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
32865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32866    break 2
32867  fi
32868done
32869  done
32870IFS=$as_save_IFS
32871
32872  ;;
32873esac
32874fi
32875BrowseDelegate=$ac_cv_path_BrowseDelegate
32876if test -n "$BrowseDelegate"; then
32877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
32878$as_echo "$BrowseDelegate" >&6; }
32879else
32880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32881$as_echo "no" >&6; }
32882fi
32883
32884
32885  test -n "$BrowseDelegate" && break
32886done
32887test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32888
32889# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32890set dummy "$CatDelegateDefault"; ac_word=$2
32891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32892$as_echo_n "checking for $ac_word... " >&6; }
32893if ${ac_cv_path_CatDelegate+:} false; then :
32894  $as_echo_n "(cached) " >&6
32895else
32896  case $CatDelegate in
32897  [\\/]* | ?:[\\/]*)
32898  ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32899  ;;
32900  *)
32901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32902for as_dir in $PATH
32903do
32904  IFS=$as_save_IFS
32905  test -z "$as_dir" && as_dir=.
32906    for ac_exec_ext in '' $ac_executable_extensions; do
32907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32908    ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
32909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32910    break 2
32911  fi
32912done
32913  done
32914IFS=$as_save_IFS
32915
32916  test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32917  ;;
32918esac
32919fi
32920CatDelegate=$ac_cv_path_CatDelegate
32921if test -n "$CatDelegate"; then
32922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
32923$as_echo "$CatDelegate" >&6; }
32924else
32925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32926$as_echo "no" >&6; }
32927fi
32928
32929
32930# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32931set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
32932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32933$as_echo_n "checking for $ac_word... " >&6; }
32934if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
32935  $as_echo_n "(cached) " >&6
32936else
32937  case $DNGDecodeDelegate in
32938  [\\/]* | ?:[\\/]*)
32939  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32940  ;;
32941  *)
32942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943for as_dir in $PATH
32944do
32945  IFS=$as_save_IFS
32946  test -z "$as_dir" && as_dir=.
32947    for ac_exec_ext in '' $ac_executable_extensions; do
32948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32949    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32951    break 2
32952  fi
32953done
32954  done
32955IFS=$as_save_IFS
32956
32957  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32958  ;;
32959esac
32960fi
32961DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32962if test -n "$DNGDecodeDelegate"; then
32963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
32964$as_echo "$DNGDecodeDelegate" >&6; }
32965else
32966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32967$as_echo "no" >&6; }
32968fi
32969
32970
32971# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32972set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
32973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32974$as_echo_n "checking for $ac_word... " >&6; }
32975if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
32976  $as_echo_n "(cached) " >&6
32977else
32978  case $DOCDecodeDelegate in
32979  [\\/]* | ?:[\\/]*)
32980  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
32981  ;;
32982  *)
32983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32984for as_dir in $PATH
32985do
32986  IFS=$as_save_IFS
32987  test -z "$as_dir" && as_dir=.
32988    for ac_exec_ext in '' $ac_executable_extensions; do
32989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32990    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32992    break 2
32993  fi
32994done
32995  done
32996IFS=$as_save_IFS
32997
32998  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
32999  ;;
33000esac
33001fi
33002DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33003if test -n "$DOCDecodeDelegate"; then
33004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33005$as_echo "$DOCDecodeDelegate" >&6; }
33006else
33007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33008$as_echo "no" >&6; }
33009fi
33010
33011
33012# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33013set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33015$as_echo_n "checking for $ac_word... " >&6; }
33016if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33017  $as_echo_n "(cached) " >&6
33018else
33019  case $DVIDecodeDelegate in
33020  [\\/]* | ?:[\\/]*)
33021  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33022  ;;
33023  *)
33024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33025for as_dir in $PATH
33026do
33027  IFS=$as_save_IFS
33028  test -z "$as_dir" && as_dir=.
33029    for ac_exec_ext in '' $ac_executable_extensions; do
33030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33031    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33033    break 2
33034  fi
33035done
33036  done
33037IFS=$as_save_IFS
33038
33039  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33040  ;;
33041esac
33042fi
33043DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33044if test -n "$DVIDecodeDelegate"; then
33045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33046$as_echo "$DVIDecodeDelegate" >&6; }
33047else
33048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33049$as_echo "no" >&6; }
33050fi
33051
33052
33053# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33054set dummy "$ConvertDelegateDefault"; ac_word=$2
33055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33056$as_echo_n "checking for $ac_word... " >&6; }
33057if ${ac_cv_path_ConvertDelegate+:} false; then :
33058  $as_echo_n "(cached) " >&6
33059else
33060  case $ConvertDelegate in
33061  [\\/]* | ?:[\\/]*)
33062  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33063  ;;
33064  *)
33065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33066for as_dir in $PATH
33067do
33068  IFS=$as_save_IFS
33069  test -z "$as_dir" && as_dir=.
33070    for ac_exec_ext in '' $ac_executable_extensions; do
33071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33072    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33074    break 2
33075  fi
33076done
33077  done
33078IFS=$as_save_IFS
33079
33080  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33081  ;;
33082esac
33083fi
33084ConvertDelegate=$ac_cv_path_ConvertDelegate
33085if test -n "$ConvertDelegate"; then
33086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33087$as_echo "$ConvertDelegate" >&6; }
33088else
33089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33090$as_echo "no" >&6; }
33091fi
33092
33093
33094# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33095set dummy "$DisplayDelegateDefault"; ac_word=$2
33096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33097$as_echo_n "checking for $ac_word... " >&6; }
33098if ${ac_cv_path_DisplayDelegate+:} false; then :
33099  $as_echo_n "(cached) " >&6
33100else
33101  case $DisplayDelegate in
33102  [\\/]* | ?:[\\/]*)
33103  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33104  ;;
33105  *)
33106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33107for as_dir in $PATH
33108do
33109  IFS=$as_save_IFS
33110  test -z "$as_dir" && as_dir=.
33111    for ac_exec_ext in '' $ac_executable_extensions; do
33112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33113    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33115    break 2
33116  fi
33117done
33118  done
33119IFS=$as_save_IFS
33120
33121  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33122  ;;
33123esac
33124fi
33125DisplayDelegate=$ac_cv_path_DisplayDelegate
33126if test -n "$DisplayDelegate"; then
33127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33128$as_echo "$DisplayDelegate" >&6; }
33129else
33130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33131$as_echo "no" >&6; }
33132fi
33133
33134
33135# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33136set dummy "$EchoDelegateDefault"; ac_word=$2
33137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33138$as_echo_n "checking for $ac_word... " >&6; }
33139if ${ac_cv_path_EchoDelegate+:} false; then :
33140  $as_echo_n "(cached) " >&6
33141else
33142  case $EchoDelegate in
33143  [\\/]* | ?:[\\/]*)
33144  ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33145  ;;
33146  *)
33147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148for as_dir in $PATH
33149do
33150  IFS=$as_save_IFS
33151  test -z "$as_dir" && as_dir=.
33152    for ac_exec_ext in '' $ac_executable_extensions; do
33153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33154    ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
33155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33156    break 2
33157  fi
33158done
33159  done
33160IFS=$as_save_IFS
33161
33162  test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33163  ;;
33164esac
33165fi
33166EchoDelegate=$ac_cv_path_EchoDelegate
33167if test -n "$EchoDelegate"; then
33168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33169$as_echo "$EchoDelegate" >&6; }
33170else
33171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33172$as_echo "no" >&6; }
33173fi
33174
33175
33176# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33177set dummy "$EditorDelegateDefault"; ac_word=$2
33178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33179$as_echo_n "checking for $ac_word... " >&6; }
33180if ${ac_cv_path_EditorDelegate+:} false; then :
33181  $as_echo_n "(cached) " >&6
33182else
33183  case $EditorDelegate in
33184  [\\/]* | ?:[\\/]*)
33185  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33186  ;;
33187  *)
33188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33189for as_dir in $PATH
33190do
33191  IFS=$as_save_IFS
33192  test -z "$as_dir" && as_dir=.
33193    for ac_exec_ext in '' $ac_executable_extensions; do
33194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33195    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33197    break 2
33198  fi
33199done
33200  done
33201IFS=$as_save_IFS
33202
33203  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33204  ;;
33205esac
33206fi
33207EditorDelegate=$ac_cv_path_EditorDelegate
33208if test -n "$EditorDelegate"; then
33209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33210$as_echo "$EditorDelegate" >&6; }
33211else
33212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33213$as_echo "no" >&6; }
33214fi
33215
33216
33217# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33218set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
33219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33220$as_echo_n "checking for $ac_word... " >&6; }
33221if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
33222  $as_echo_n "(cached) " >&6
33223else
33224  case $GnuplotDecodeDelegate in
33225  [\\/]* | ?:[\\/]*)
33226  ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33227  ;;
33228  *)
33229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33230for as_dir in $PATH
33231do
33232  IFS=$as_save_IFS
33233  test -z "$as_dir" && as_dir=.
33234    for ac_exec_ext in '' $ac_executable_extensions; do
33235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33236    ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33238    break 2
33239  fi
33240done
33241  done
33242IFS=$as_save_IFS
33243
33244  test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33245  ;;
33246esac
33247fi
33248GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33249if test -n "$GnuplotDecodeDelegate"; then
33250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
33251$as_echo "$GnuplotDecodeDelegate" >&6; }
33252else
33253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33254$as_echo "no" >&6; }
33255fi
33256
33257
33258# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33259set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33261$as_echo_n "checking for $ac_word... " >&6; }
33262if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33263  $as_echo_n "(cached) " >&6
33264else
33265  case $GVCDecodeDelegate in
33266  [\\/]* | ?:[\\/]*)
33267  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33268  ;;
33269  *)
33270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33271for as_dir in $PATH
33272do
33273  IFS=$as_save_IFS
33274  test -z "$as_dir" && as_dir=.
33275    for ac_exec_ext in '' $ac_executable_extensions; do
33276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33277    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33279    break 2
33280  fi
33281done
33282  done
33283IFS=$as_save_IFS
33284
33285  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33286  ;;
33287esac
33288fi
33289GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33290if test -n "$GVCDecodeDelegate"; then
33291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33292$as_echo "$GVCDecodeDelegate" >&6; }
33293else
33294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295$as_echo "no" >&6; }
33296fi
33297
33298
33299# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33300set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33302$as_echo_n "checking for $ac_word... " >&6; }
33303if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33304  $as_echo_n "(cached) " >&6
33305else
33306  case $HPGLDecodeDelegate in
33307  [\\/]* | ?:[\\/]*)
33308  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33309  ;;
33310  *)
33311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33312for as_dir in $PATH
33313do
33314  IFS=$as_save_IFS
33315  test -z "$as_dir" && as_dir=.
33316    for ac_exec_ext in '' $ac_executable_extensions; do
33317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33318    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33320    break 2
33321  fi
33322done
33323  done
33324IFS=$as_save_IFS
33325
33326  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33327  ;;
33328esac
33329fi
33330HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33331if test -n "$HPGLDecodeDelegate"; then
33332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33333$as_echo "$HPGLDecodeDelegate" >&6; }
33334else
33335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33336$as_echo "no" >&6; }
33337fi
33338
33339
33340# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33341set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33343$as_echo_n "checking for $ac_word... " >&6; }
33344if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33345  $as_echo_n "(cached) " >&6
33346else
33347  case $HTMLDecodeDelegate in
33348  [\\/]* | ?:[\\/]*)
33349  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33350  ;;
33351  *)
33352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33353for as_dir in $PATH
33354do
33355  IFS=$as_save_IFS
33356  test -z "$as_dir" && as_dir=.
33357    for ac_exec_ext in '' $ac_executable_extensions; do
33358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33359    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33361    break 2
33362  fi
33363done
33364  done
33365IFS=$as_save_IFS
33366
33367  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33368  ;;
33369esac
33370fi
33371HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33372if test -n "$HTMLDecodeDelegate"; then
33373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33374$as_echo "$HTMLDecodeDelegate" >&6; }
33375else
33376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33377$as_echo "no" >&6; }
33378fi
33379
33380
33381# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33382set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33384$as_echo_n "checking for $ac_word... " >&6; }
33385if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33386  $as_echo_n "(cached) " >&6
33387else
33388  case $ILBMDecodeDelegate in
33389  [\\/]* | ?:[\\/]*)
33390  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33391  ;;
33392  *)
33393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33394for as_dir in $PATH
33395do
33396  IFS=$as_save_IFS
33397  test -z "$as_dir" && as_dir=.
33398    for ac_exec_ext in '' $ac_executable_extensions; do
33399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33400    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33402    break 2
33403  fi
33404done
33405  done
33406IFS=$as_save_IFS
33407
33408  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33409  ;;
33410esac
33411fi
33412ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33413if test -n "$ILBMDecodeDelegate"; then
33414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33415$as_echo "$ILBMDecodeDelegate" >&6; }
33416else
33417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33418$as_echo "no" >&6; }
33419fi
33420
33421
33422# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33423set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33425$as_echo_n "checking for $ac_word... " >&6; }
33426if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33427  $as_echo_n "(cached) " >&6
33428else
33429  case $ILBMEncodeDelegate in
33430  [\\/]* | ?:[\\/]*)
33431  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33432  ;;
33433  *)
33434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435for as_dir in $PATH
33436do
33437  IFS=$as_save_IFS
33438  test -z "$as_dir" && as_dir=.
33439    for ac_exec_ext in '' $ac_executable_extensions; do
33440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33441    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33443    break 2
33444  fi
33445done
33446  done
33447IFS=$as_save_IFS
33448
33449  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33450  ;;
33451esac
33452fi
33453ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33454if test -n "$ILBMEncodeDelegate"; then
33455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33456$as_echo "$ILBMEncodeDelegate" >&6; }
33457else
33458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33459$as_echo "no" >&6; }
33460fi
33461
33462
33463# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33464set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33466$as_echo_n "checking for $ac_word... " >&6; }
33467if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33468  $as_echo_n "(cached) " >&6
33469else
33470  case $JXRDecodeDelegate in
33471  [\\/]* | ?:[\\/]*)
33472  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33473  ;;
33474  *)
33475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33476for as_dir in $PATH
33477do
33478  IFS=$as_save_IFS
33479  test -z "$as_dir" && as_dir=.
33480    for ac_exec_ext in '' $ac_executable_extensions; do
33481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33482    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33484    break 2
33485  fi
33486done
33487  done
33488IFS=$as_save_IFS
33489
33490  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33491  ;;
33492esac
33493fi
33494JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33495if test -n "$JXRDecodeDelegate"; then
33496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33497$as_echo "$JXRDecodeDelegate" >&6; }
33498else
33499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33500$as_echo "no" >&6; }
33501fi
33502
33503
33504# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33505set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33507$as_echo_n "checking for $ac_word... " >&6; }
33508if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33509  $as_echo_n "(cached) " >&6
33510else
33511  case $JXREncodeDelegate in
33512  [\\/]* | ?:[\\/]*)
33513  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33514  ;;
33515  *)
33516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33517for as_dir in $PATH
33518do
33519  IFS=$as_save_IFS
33520  test -z "$as_dir" && as_dir=.
33521    for ac_exec_ext in '' $ac_executable_extensions; do
33522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33523    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33525    break 2
33526  fi
33527done
33528  done
33529IFS=$as_save_IFS
33530
33531  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33532  ;;
33533esac
33534fi
33535JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33536if test -n "$JXREncodeDelegate"; then
33537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33538$as_echo "$JXREncodeDelegate" >&6; }
33539else
33540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33541$as_echo "no" >&6; }
33542fi
33543
33544
33545# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33546set dummy "$LPDelegateDefault"; ac_word=$2
33547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33548$as_echo_n "checking for $ac_word... " >&6; }
33549if ${ac_cv_path_LPDelegate+:} false; then :
33550  $as_echo_n "(cached) " >&6
33551else
33552  case $LPDelegate in
33553  [\\/]* | ?:[\\/]*)
33554  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33555  ;;
33556  *)
33557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33558for as_dir in $PATH
33559do
33560  IFS=$as_save_IFS
33561  test -z "$as_dir" && as_dir=.
33562    for ac_exec_ext in '' $ac_executable_extensions; do
33563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33564    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
33565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33566    break 2
33567  fi
33568done
33569  done
33570IFS=$as_save_IFS
33571
33572  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33573  ;;
33574esac
33575fi
33576LPDelegate=$ac_cv_path_LPDelegate
33577if test -n "$LPDelegate"; then
33578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
33579$as_echo "$LPDelegate" >&6; }
33580else
33581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33582$as_echo "no" >&6; }
33583fi
33584
33585
33586# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33587set dummy "$LPRDelegateDefault"; ac_word=$2
33588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33589$as_echo_n "checking for $ac_word... " >&6; }
33590if ${ac_cv_path_LPRDelegate+:} false; then :
33591  $as_echo_n "(cached) " >&6
33592else
33593  case $LPRDelegate in
33594  [\\/]* | ?:[\\/]*)
33595  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33596  ;;
33597  *)
33598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33599for as_dir in $PATH
33600do
33601  IFS=$as_save_IFS
33602  test -z "$as_dir" && as_dir=.
33603    for ac_exec_ext in '' $ac_executable_extensions; do
33604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33605    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
33606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33607    break 2
33608  fi
33609done
33610  done
33611IFS=$as_save_IFS
33612
33613  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33614  ;;
33615esac
33616fi
33617LPRDelegate=$ac_cv_path_LPRDelegate
33618if test -n "$LPRDelegate"; then
33619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33620$as_echo "$LPRDelegate" >&6; }
33621else
33622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623$as_echo "no" >&6; }
33624fi
33625
33626
33627# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33628set dummy "$LaunchDelegateDefault"; ac_word=$2
33629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33630$as_echo_n "checking for $ac_word... " >&6; }
33631if ${ac_cv_path_LaunchDelegate+:} false; then :
33632  $as_echo_n "(cached) " >&6
33633else
33634  case $LaunchDelegate in
33635  [\\/]* | ?:[\\/]*)
33636  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33637  ;;
33638  *)
33639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640for as_dir in $PATH
33641do
33642  IFS=$as_save_IFS
33643  test -z "$as_dir" && as_dir=.
33644    for ac_exec_ext in '' $ac_executable_extensions; do
33645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33646    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33648    break 2
33649  fi
33650done
33651  done
33652IFS=$as_save_IFS
33653
33654  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33655  ;;
33656esac
33657fi
33658LaunchDelegate=$ac_cv_path_LaunchDelegate
33659if test -n "$LaunchDelegate"; then
33660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33661$as_echo "$LaunchDelegate" >&6; }
33662else
33663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33664$as_echo "no" >&6; }
33665fi
33666
33667
33668# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33669set dummy "$MANDelegateDefault"; ac_word=$2
33670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33671$as_echo_n "checking for $ac_word... " >&6; }
33672if ${ac_cv_path_MANDelegate+:} false; then :
33673  $as_echo_n "(cached) " >&6
33674else
33675  case $MANDelegate in
33676  [\\/]* | ?:[\\/]*)
33677  ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33678  ;;
33679  *)
33680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33681for as_dir in $PATH
33682do
33683  IFS=$as_save_IFS
33684  test -z "$as_dir" && as_dir=.
33685    for ac_exec_ext in '' $ac_executable_extensions; do
33686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33687    ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33689    break 2
33690  fi
33691done
33692  done
33693IFS=$as_save_IFS
33694
33695  test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33696  ;;
33697esac
33698fi
33699MANDelegate=$ac_cv_path_MANDelegate
33700if test -n "$MANDelegate"; then
33701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33702$as_echo "$MANDelegate" >&6; }
33703else
33704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33705$as_echo "no" >&6; }
33706fi
33707
33708
33709# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33710set dummy "$MogrifyDelegateDefault"; ac_word=$2
33711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33712$as_echo_n "checking for $ac_word... " >&6; }
33713if ${ac_cv_path_MogrifyDelegate+:} false; then :
33714  $as_echo_n "(cached) " >&6
33715else
33716  case $MogrifyDelegate in
33717  [\\/]* | ?:[\\/]*)
33718  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33719  ;;
33720  *)
33721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33722for as_dir in $PATH
33723do
33724  IFS=$as_save_IFS
33725  test -z "$as_dir" && as_dir=.
33726    for ac_exec_ext in '' $ac_executable_extensions; do
33727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33728    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33730    break 2
33731  fi
33732done
33733  done
33734IFS=$as_save_IFS
33735
33736  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33737  ;;
33738esac
33739fi
33740MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33741if test -n "$MogrifyDelegate"; then
33742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33743$as_echo "$MogrifyDelegate" >&6; }
33744else
33745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33746$as_echo "no" >&6; }
33747fi
33748
33749
33750# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33751set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33753$as_echo_n "checking for $ac_word... " >&6; }
33754if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33755  $as_echo_n "(cached) " >&6
33756else
33757  case $MPEGDecodeDelegate in
33758  [\\/]* | ?:[\\/]*)
33759  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33760  ;;
33761  *)
33762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33763for as_dir in $PATH
33764do
33765  IFS=$as_save_IFS
33766  test -z "$as_dir" && as_dir=.
33767    for ac_exec_ext in '' $ac_executable_extensions; do
33768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33769    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33771    break 2
33772  fi
33773done
33774  done
33775IFS=$as_save_IFS
33776
33777  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33778  ;;
33779esac
33780fi
33781MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33782if test -n "$MPEGDecodeDelegate"; then
33783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33784$as_echo "$MPEGDecodeDelegate" >&6; }
33785else
33786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33787$as_echo "no" >&6; }
33788fi
33789
33790
33791if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33792  MPEGDecodeDelegateDefault='ffmpeg'
33793  # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33794set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33796$as_echo_n "checking for $ac_word... " >&6; }
33797if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33798  $as_echo_n "(cached) " >&6
33799else
33800  case $MPEGDecodeDelegate in
33801  [\\/]* | ?:[\\/]*)
33802  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33803  ;;
33804  *)
33805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33806for as_dir in $PATH
33807do
33808  IFS=$as_save_IFS
33809  test -z "$as_dir" && as_dir=.
33810    for ac_exec_ext in '' $ac_executable_extensions; do
33811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33812    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33814    break 2
33815  fi
33816done
33817  done
33818IFS=$as_save_IFS
33819
33820  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33821  ;;
33822esac
33823fi
33824MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33825if test -n "$MPEGDecodeDelegate"; then
33826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33827$as_echo "$MPEGDecodeDelegate" >&6; }
33828else
33829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33830$as_echo "no" >&6; }
33831fi
33832
33833
33834fi;
33835# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33836set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33838$as_echo_n "checking for $ac_word... " >&6; }
33839if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33840  $as_echo_n "(cached) " >&6
33841else
33842  case $MPEGEncodeDelegate in
33843  [\\/]* | ?:[\\/]*)
33844  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33845  ;;
33846  *)
33847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33848for as_dir in $PATH
33849do
33850  IFS=$as_save_IFS
33851  test -z "$as_dir" && as_dir=.
33852    for ac_exec_ext in '' $ac_executable_extensions; do
33853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33854    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33856    break 2
33857  fi
33858done
33859  done
33860IFS=$as_save_IFS
33861
33862  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33863  ;;
33864esac
33865fi
33866MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33867if test -n "$MPEGEncodeDelegate"; then
33868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33869$as_echo "$MPEGEncodeDelegate" >&6; }
33870else
33871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33872$as_echo "no" >&6; }
33873fi
33874
33875
33876if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33877  MPEGEncodeDelegateDefault='ffmpeg'
33878  # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33879set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33881$as_echo_n "checking for $ac_word... " >&6; }
33882if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33883  $as_echo_n "(cached) " >&6
33884else
33885  case $MPEGEncodeDelegate in
33886  [\\/]* | ?:[\\/]*)
33887  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33888  ;;
33889  *)
33890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33891for as_dir in $PATH
33892do
33893  IFS=$as_save_IFS
33894  test -z "$as_dir" && as_dir=.
33895    for ac_exec_ext in '' $ac_executable_extensions; do
33896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33897    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33899    break 2
33900  fi
33901done
33902  done
33903IFS=$as_save_IFS
33904
33905  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33906  ;;
33907esac
33908fi
33909MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33910if test -n "$MPEGEncodeDelegate"; then
33911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33912$as_echo "$MPEGEncodeDelegate" >&6; }
33913else
33914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33915$as_echo "no" >&6; }
33916fi
33917
33918
33919fi;
33920# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33921set dummy "$MrSIDDecodeDelegateDefault"; 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_MrSIDDecodeDelegate+:} false; then :
33925  $as_echo_n "(cached) " >&6
33926else
33927  case $MrSIDDecodeDelegate in
33928  [\\/]* | ?:[\\/]*)
33929  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # 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_MrSIDDecodeDelegate="$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_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33948  ;;
33949esac
33950fi
33951MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33952if test -n "$MrSIDDecodeDelegate"; then
33953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33954$as_echo "$MrSIDDecodeDelegate" >&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 ""$MVDelegateDefault"", so it can be a program name with args.
33962set dummy "$MVDelegateDefault"; 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_MVDelegate+:} false; then :
33966  $as_echo_n "(cached) " >&6
33967else
33968  case $MVDelegate in
33969  [\\/]* | ?:[\\/]*)
33970  ac_cv_path_MVDelegate="$MVDelegate" # 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_MVDelegate="$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_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33989  ;;
33990esac
33991fi
33992MVDelegate=$ac_cv_path_MVDelegate
33993if test -n "$MVDelegate"; then
33994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
33995$as_echo "$MVDelegate" >&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 ""$PCLDelegateDefault"", so it can be a program name with args.
34003set dummy "$PCLDelegateDefault"; 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_PCLDelegate+:} false; then :
34007  $as_echo_n "(cached) " >&6
34008else
34009  case $PCLDelegate in
34010  [\\/]* | ?:[\\/]*)
34011  ac_cv_path_PCLDelegate="$PCLDelegate" # 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_PCLDelegate="$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_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34030  ;;
34031esac
34032fi
34033PCLDelegate=$ac_cv_path_PCLDelegate
34034if test -n "$PCLDelegate"; then
34035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34036$as_echo "$PCLDelegate" >&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 ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34044set dummy "$PGPDecodeDelegateDefault"; 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_PGPDecodeDelegate+:} false; then :
34048  $as_echo_n "(cached) " >&6
34049else
34050  case $PGPDecodeDelegate in
34051  [\\/]* | ?:[\\/]*)
34052  ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # 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_PGPDecodeDelegate="$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_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34071  ;;
34072esac
34073fi
34074PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34075if test -n "$PGPDecodeDelegate"; then
34076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
34077$as_echo "$PGPDecodeDelegate" >&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 ""$POVDelegateDefault"", so it can be a program name with args.
34085set dummy "$POVDelegateDefault"; 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_POVDelegate+:} false; then :
34089  $as_echo_n "(cached) " >&6
34090else
34091  case $POVDelegate in
34092  [\\/]* | ?:[\\/]*)
34093  ac_cv_path_POVDelegate="$POVDelegate" # 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_POVDelegate="$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_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34112  ;;
34113esac
34114fi
34115POVDelegate=$ac_cv_path_POVDelegate
34116if test -n "$POVDelegate"; then
34117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
34118$as_echo "$POVDelegate" >&6; }
34119else
34120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34121$as_echo "no" >&6; }
34122fi
34123
34124
34125for ac_prog in gsx gsc "$PSDelegateDefault"
34126do
34127  # Extract the first word of "$ac_prog", so it can be a program name with args.
34128set dummy $ac_prog; ac_word=$2
34129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34130$as_echo_n "checking for $ac_word... " >&6; }
34131if ${ac_cv_path_PSDelegate+:} false; then :
34132  $as_echo_n "(cached) " >&6
34133else
34134  case $PSDelegate in
34135  [\\/]* | ?:[\\/]*)
34136  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34137  ;;
34138  *)
34139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34140for as_dir in $PATH
34141do
34142  IFS=$as_save_IFS
34143  test -z "$as_dir" && as_dir=.
34144    for ac_exec_ext in '' $ac_executable_extensions; do
34145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34146    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34148    break 2
34149  fi
34150done
34151  done
34152IFS=$as_save_IFS
34153
34154  ;;
34155esac
34156fi
34157PSDelegate=$ac_cv_path_PSDelegate
34158if test -n "$PSDelegate"; then
34159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34160$as_echo "$PSDelegate" >&6; }
34161else
34162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34163$as_echo "no" >&6; }
34164fi
34165
34166
34167  test -n "$PSDelegate" && break
34168done
34169test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34170
34171# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34172set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
34173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34174$as_echo_n "checking for $ac_word... " >&6; }
34175if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
34176  $as_echo_n "(cached) " >&6
34177else
34178  case $RLEEncodeDelegate in
34179  [\\/]* | ?:[\\/]*)
34180  ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34181  ;;
34182  *)
34183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34184for as_dir in $PATH
34185do
34186  IFS=$as_save_IFS
34187  test -z "$as_dir" && as_dir=.
34188    for ac_exec_ext in '' $ac_executable_extensions; do
34189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34190    ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34192    break 2
34193  fi
34194done
34195  done
34196IFS=$as_save_IFS
34197
34198  test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34199  ;;
34200esac
34201fi
34202RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34203if test -n "$RLEEncodeDelegate"; then
34204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
34205$as_echo "$RLEEncodeDelegate" >&6; }
34206else
34207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34208$as_echo "no" >&6; }
34209fi
34210
34211
34212# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34213set dummy "$RMDelegateDefault"; ac_word=$2
34214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34215$as_echo_n "checking for $ac_word... " >&6; }
34216if ${ac_cv_path_RMDelegate+:} false; then :
34217  $as_echo_n "(cached) " >&6
34218else
34219  case $RMDelegate in
34220  [\\/]* | ?:[\\/]*)
34221  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34222  ;;
34223  *)
34224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225for as_dir in $PATH
34226do
34227  IFS=$as_save_IFS
34228  test -z "$as_dir" && as_dir=.
34229    for ac_exec_ext in '' $ac_executable_extensions; do
34230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34231    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34233    break 2
34234  fi
34235done
34236  done
34237IFS=$as_save_IFS
34238
34239  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34240  ;;
34241esac
34242fi
34243RMDelegate=$ac_cv_path_RMDelegate
34244if test -n "$RMDelegate"; then
34245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34246$as_echo "$RMDelegate" >&6; }
34247else
34248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34249$as_echo "no" >&6; }
34250fi
34251
34252
34253# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34254set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34256$as_echo_n "checking for $ac_word... " >&6; }
34257if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34258  $as_echo_n "(cached) " >&6
34259else
34260  case $RSVGDecodeDelegate in
34261  [\\/]* | ?:[\\/]*)
34262  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34263  ;;
34264  *)
34265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34266for as_dir in $PATH
34267do
34268  IFS=$as_save_IFS
34269  test -z "$as_dir" && as_dir=.
34270    for ac_exec_ext in '' $ac_executable_extensions; do
34271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34272    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34274    break 2
34275  fi
34276done
34277  done
34278IFS=$as_save_IFS
34279
34280  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34281  ;;
34282esac
34283fi
34284RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34285if test -n "$RSVGDecodeDelegate"; then
34286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34287$as_echo "$RSVGDecodeDelegate" >&6; }
34288else
34289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34290$as_echo "no" >&6; }
34291fi
34292
34293
34294# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34295set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
34296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34297$as_echo_n "checking for $ac_word... " >&6; }
34298if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
34299  $as_echo_n "(cached) " >&6
34300else
34301  case $SCANDecodeDelegate in
34302  [\\/]* | ?:[\\/]*)
34303  ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34304  ;;
34305  *)
34306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34307for as_dir in $PATH
34308do
34309  IFS=$as_save_IFS
34310  test -z "$as_dir" && as_dir=.
34311    for ac_exec_ext in '' $ac_executable_extensions; do
34312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34313    ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34315    break 2
34316  fi
34317done
34318  done
34319IFS=$as_save_IFS
34320
34321  test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34322  ;;
34323esac
34324fi
34325SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34326if test -n "$SCANDecodeDelegate"; then
34327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
34328$as_echo "$SCANDecodeDelegate" >&6; }
34329else
34330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34331$as_echo "no" >&6; }
34332fi
34333
34334
34335# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
34339if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34340  $as_echo_n "(cached) " >&6
34341else
34342  case $SVGDecodeDelegate in
34343  [\\/]* | ?:[\\/]*)
34344  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34345  ;;
34346  *)
34347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350  IFS=$as_save_IFS
34351  test -z "$as_dir" && as_dir=.
34352    for ac_exec_ext in '' $ac_executable_extensions; do
34353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34354    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356    break 2
34357  fi
34358done
34359  done
34360IFS=$as_save_IFS
34361
34362  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34363  ;;
34364esac
34365fi
34366SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34367if test -n "$SVGDecodeDelegate"; then
34368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34369$as_echo "$SVGDecodeDelegate" >&6; }
34370else
34371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
34376# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34377set dummy "$TXTDelegateDefault"; ac_word=$2
34378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34379$as_echo_n "checking for $ac_word... " >&6; }
34380if ${ac_cv_path_TXTDelegate+:} false; then :
34381  $as_echo_n "(cached) " >&6
34382else
34383  case $TXTDelegate in
34384  [\\/]* | ?:[\\/]*)
34385  ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34386  ;;
34387  *)
34388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391  IFS=$as_save_IFS
34392  test -z "$as_dir" && as_dir=.
34393    for ac_exec_ext in '' $ac_executable_extensions; do
34394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34395    ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
34396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34397    break 2
34398  fi
34399done
34400  done
34401IFS=$as_save_IFS
34402
34403  test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34404  ;;
34405esac
34406fi
34407TXTDelegate=$ac_cv_path_TXTDelegate
34408if test -n "$TXTDelegate"; then
34409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
34410$as_echo "$TXTDelegate" >&6; }
34411else
34412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413$as_echo "no" >&6; }
34414fi
34415
34416
34417# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34418set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34420$as_echo_n "checking for $ac_word... " >&6; }
34421if ${ac_cv_path_UniconvertorDelegate+:} false; then :
34422  $as_echo_n "(cached) " >&6
34423else
34424  case $UniconvertorDelegate in
34425  [\\/]* | ?:[\\/]*)
34426  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34427  ;;
34428  *)
34429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432  IFS=$as_save_IFS
34433  test -z "$as_dir" && as_dir=.
34434    for ac_exec_ext in '' $ac_executable_extensions; do
34435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34436    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34438    break 2
34439  fi
34440done
34441  done
34442IFS=$as_save_IFS
34443
34444  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34445  ;;
34446esac
34447fi
34448UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34449if test -n "$UniconvertorDelegate"; then
34450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34451$as_echo "$UniconvertorDelegate" >&6; }
34452else
34453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34454$as_echo "no" >&6; }
34455fi
34456
34457
34458# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34459set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34461$as_echo_n "checking for $ac_word... " >&6; }
34462if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34463  $as_echo_n "(cached) " >&6
34464else
34465  case $WebPDecodeDelegate in
34466  [\\/]* | ?:[\\/]*)
34467  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34468  ;;
34469  *)
34470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473  IFS=$as_save_IFS
34474  test -z "$as_dir" && as_dir=.
34475    for ac_exec_ext in '' $ac_executable_extensions; do
34476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34477    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34479    break 2
34480  fi
34481done
34482  done
34483IFS=$as_save_IFS
34484
34485  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34486  ;;
34487esac
34488fi
34489WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34490if test -n "$WebPDecodeDelegate"; then
34491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34492$as_echo "$WebPDecodeDelegate" >&6; }
34493else
34494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495$as_echo "no" >&6; }
34496fi
34497
34498
34499# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34500set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34502$as_echo_n "checking for $ac_word... " >&6; }
34503if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34504  $as_echo_n "(cached) " >&6
34505else
34506  case $WebPEncodeDelegate in
34507  [\\/]* | ?:[\\/]*)
34508  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34509  ;;
34510  *)
34511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514  IFS=$as_save_IFS
34515  test -z "$as_dir" && as_dir=.
34516    for ac_exec_ext in '' $ac_executable_extensions; do
34517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34518    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34520    break 2
34521  fi
34522done
34523  done
34524IFS=$as_save_IFS
34525
34526  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34527  ;;
34528esac
34529fi
34530WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34531if test -n "$WebPEncodeDelegate"; then
34532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34533$as_echo "$WebPEncodeDelegate" >&6; }
34534else
34535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34536$as_echo "no" >&6; }
34537fi
34538
34539
34540# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34541set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
34542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34543$as_echo_n "checking for $ac_word... " >&6; }
34544if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
34545  $as_echo_n "(cached) " >&6
34546else
34547  case $WMFDecodeDelegate in
34548  [\\/]* | ?:[\\/]*)
34549  ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34550  ;;
34551  *)
34552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555  IFS=$as_save_IFS
34556  test -z "$as_dir" && as_dir=.
34557    for ac_exec_ext in '' $ac_executable_extensions; do
34558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34559    ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34561    break 2
34562  fi
34563done
34564  done
34565IFS=$as_save_IFS
34566
34567  test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34568  ;;
34569esac
34570fi
34571WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34572if test -n "$WMFDecodeDelegate"; then
34573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
34574$as_echo "$WMFDecodeDelegate" >&6; }
34575else
34576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34577$as_echo "no" >&6; }
34578fi
34579
34580
34581# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34582set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34584$as_echo_n "checking for $ac_word... " >&6; }
34585if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34586  $as_echo_n "(cached) " >&6
34587else
34588  case $WWWDecodeDelegate in
34589  [\\/]* | ?:[\\/]*)
34590  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34591  ;;
34592  *)
34593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34594for as_dir in $PATH
34595do
34596  IFS=$as_save_IFS
34597  test -z "$as_dir" && as_dir=.
34598    for ac_exec_ext in '' $ac_executable_extensions; do
34599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34600    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34602    break 2
34603  fi
34604done
34605  done
34606IFS=$as_save_IFS
34607
34608  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34609  ;;
34610esac
34611fi
34612WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34613if test -n "$WWWDecodeDelegate"; then
34614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34615$as_echo "$WWWDecodeDelegate" >&6; }
34616else
34617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618$as_echo "no" >&6; }
34619fi
34620
34621
34622# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34623set dummy "$XPSDelegateDefault"; ac_word=$2
34624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34625$as_echo_n "checking for $ac_word... " >&6; }
34626if ${ac_cv_path_XPSDelegate+:} false; then :
34627  $as_echo_n "(cached) " >&6
34628else
34629  case $XPSDelegate in
34630  [\\/]* | ?:[\\/]*)
34631  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34632  ;;
34633  *)
34634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637  IFS=$as_save_IFS
34638  test -z "$as_dir" && as_dir=.
34639    for ac_exec_ext in '' $ac_executable_extensions; do
34640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34641    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34643    break 2
34644  fi
34645done
34646  done
34647IFS=$as_save_IFS
34648
34649  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34650  ;;
34651esac
34652fi
34653XPSDelegate=$ac_cv_path_XPSDelegate
34654if test -n "$XPSDelegate"; then
34655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34656$as_echo "$XPSDelegate" >&6; }
34657else
34658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34659$as_echo "no" >&6; }
34660fi
34661
34662
34663# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34664set dummy "$ZipDelegateDefault"; 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_ZipDelegate+:} false; then :
34668  $as_echo_n "(cached) " >&6
34669else
34670  case $ZipDelegate in
34671  [\\/]* | ?:[\\/]*)
34672  ac_cv_path_ZipDelegate="$ZipDelegate" # 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_ZipDelegate="$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_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34691  ;;
34692esac
34693fi
34694ZipDelegate=$ac_cv_path_ZipDelegate
34695if test -n "$ZipDelegate"; then
34696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
34697$as_echo "$ZipDelegate" >&6; }
34698else
34699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34700$as_echo "no" >&6; }
34701fi
34702
34703
34704
34705# Prefer lpr to lp; lp needs options tacked on.
34706if test "$LPRDelegate" != no; then
34707    PrintDelegate="$LPRDelegate"
34708else
34709    PrintDelegate="$LPDelegate -c -s"
34710fi
34711
34712
34713# Installed ImageMagick utiltity paths
34714ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34715DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34716MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34717
34718# Set delegate booleans
34719have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
34720have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34721have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34722have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34723have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34724have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34725have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34726have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34727
34728#
34729# Test for font directories
34730#
34731type_include_files=''
34732
34733# Dejavu fonts.
34734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34735$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34736dejavu_font_dir=''
34737if test "${with_dejavu_font_dir}" != 'default'; then
34738  dejavu_font_dir="${with_dejavu_font_dir}/"
34739else
34740  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34741    if test -f "${font_dir}DejaVuSerif.ttf"; then
34742      dejavu_font_dir="${font_dir}"
34743      break 1
34744    fi
34745  done
34746fi
34747if test "${dejavu_font_dir}x" != 'x'; then
34748  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34750$as_echo "$dejavu_font_dir" >&6; }
34751else
34752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34753$as_echo "not found!" >&6; };
34754fi
34755
34756
34757# Windows
34758windows_font_dir=''
34759if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34760   windows_font_dir="${with_windows_font_dir}/"
34761fi
34762if test "${windows_font_dir}x" != 'x'; then
34763    if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34764      windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34765    fi
34766    if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34767      windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34768    fi
34769    if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34770      windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34771    fi
34772fi
34773if test "${windows_font_dir}x" != 'x'; then
34774  type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34775fi
34776
34777
34778# Ghostscript
34779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34780$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34781ghostscript_font_dir=''
34782if test "${with_gs_font_dir}" != 'default'; then
34783  ghostscript_font_dir="${with_gs_font_dir}/"
34784else
34785  if test "${native_win32_build}" = 'yes'; then
34786    # Native Windows Build
34787    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34788      if test -f "${font_dir}a010013l.pfb"; then
34789        ghostscript_font_dir="$font_dir"
34790        break 1
34791      fi
34792    done
34793    if test "${PSDelegate}" != 'gswin32c'; then
34794      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34795    fi
34796  else
34797    # Linux / Mac OS X / Unix Build
34798    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
34799      if test -f "${font_dir}a010013l.pfb"; then
34800        ghostscript_font_dir="${font_dir}"
34801        break 1
34802      fi
34803    done
34804    if test "${ghostscript_font_dir}x" = 'x'; then
34805      if test "$PSDelegate" != 'gs'; then
34806        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34807      fi
34808    fi
34809  fi
34810fi
34811if test "${ghostscript_font_dir}x" != 'x'; then
34812  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34814$as_echo "$ghostscript_font_dir" >&6; }
34815else
34816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34817$as_echo "not found!" >&6; };
34818fi
34819
34820case "${build_os}" in
34821  mingw* )
34822    PSDelegate=`$WinPathScript "$PSDelegate" 1`
34823    ;;
34824esac
34825
34826
34827
34828#
34829# Handle case where user doesn't want frozen paths
34830#
34831if test "$with_frozenpaths" != 'yes'; then
34832  # Re-set delegate definitions to default (no paths)
34833  AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34834  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34835  BZIPDelegate="$BZIPDelegateDefault"
34836  BrowseDelegate="$BrowseDelegateDefault"
34837  CatDelegate="$CatDelegateDefault"
34838  ConvertDelegate="$ConvertDelegateDefault"
34839  DisplayDelegate="$DisplayDelegateDefault"
34840  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
34841  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
34842  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34843  EchoDelegate="$EchoDelegateDefault"
34844  EditorDelegate="$EditorDelegateDefault"
34845  GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34846  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34847  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34848  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34849  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34850  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34851  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34852  JXREncodeDelegate="$JXREncodeDelegateDefault"
34853  LPDelegate="$LPDelegateDefault"
34854  LaunchDelegate="$LaunchDelegateDefault"
34855  MANDelegate="$MANDelegateDefault"
34856  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34857  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34858  MogrifyDelegate="$MogrifyDelegateDefault"
34859  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34860  MVDelegate="$MVDelegateDefault"
34861  PCLDelegate="$PCLDelegateDefault"
34862  PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34863  POVDelegate="$POVDelegateDefault"
34864  PSDelegate="$PSDelegateDefault"
34865  RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34866  RMDelegate="$RMDelegateDefault"
34867  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34868  SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34869  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
34870  ShowImageDelegate="$ShowImageDelegateDefault"
34871  TXTDelegate="$TXTDelegateDefault"
34872  UniconvertorDelegate="$UniconvertorDelegateDefault"
34873  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34874  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
34875  WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34876  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34877  XPSDelegate="$XPSDelegateDefault"
34878  ZipDelegate="$ZipDelegateDefault"
34879fi
34880
34881# Delegate substitutions
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924#
34925# RPM support.
34926#
34927RPM=''
34928for ac_prog in gnutar gtar tar
34929do
34930  # Extract the first word of "$ac_prog", so it can be a program name with args.
34931set dummy $ac_prog; ac_word=$2
34932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34933$as_echo_n "checking for $ac_word... " >&6; }
34934if ${ac_cv_prog_TAR+:} false; then :
34935  $as_echo_n "(cached) " >&6
34936else
34937  if test -n "$TAR"; then
34938  ac_cv_prog_TAR="$TAR" # Let the user override the test.
34939else
34940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34941for as_dir in $PATH
34942do
34943  IFS=$as_save_IFS
34944  test -z "$as_dir" && as_dir=.
34945    for ac_exec_ext in '' $ac_executable_extensions; do
34946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34947    ac_cv_prog_TAR="$ac_prog"
34948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34949    break 2
34950  fi
34951done
34952  done
34953IFS=$as_save_IFS
34954
34955fi
34956fi
34957TAR=$ac_cv_prog_TAR
34958if test -n "$TAR"; then
34959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34960$as_echo "$TAR" >&6; }
34961else
34962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34963$as_echo "no" >&6; }
34964fi
34965
34966
34967  test -n "$TAR" && break
34968done
34969
34970for ac_prog in perl
34971do
34972  # Extract the first word of "$ac_prog", so it can be a program name with args.
34973set dummy $ac_prog; ac_word=$2
34974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34975$as_echo_n "checking for $ac_word... " >&6; }
34976if ${ac_cv_prog_PERL+:} false; then :
34977  $as_echo_n "(cached) " >&6
34978else
34979  if test -n "$PERL"; then
34980  ac_cv_prog_PERL="$PERL" # Let the user override the test.
34981else
34982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34983for as_dir in $PATH
34984do
34985  IFS=$as_save_IFS
34986  test -z "$as_dir" && as_dir=.
34987    for ac_exec_ext in '' $ac_executable_extensions; do
34988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34989    ac_cv_prog_PERL="$ac_prog"
34990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34991    break 2
34992  fi
34993done
34994  done
34995IFS=$as_save_IFS
34996
34997fi
34998fi
34999PERL=$ac_cv_prog_PERL
35000if test -n "$PERL"; then
35001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35002$as_echo "$PERL" >&6; }
35003else
35004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35005$as_echo "no" >&6; }
35006fi
35007
35008
35009  test -n "$PERL" && break
35010done
35011
35012for ac_prog in rpmbuild rpm
35013do
35014  # Extract the first word of "$ac_prog", so it can be a program name with args.
35015set dummy $ac_prog; ac_word=$2
35016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35017$as_echo_n "checking for $ac_word... " >&6; }
35018if ${ac_cv_prog_RPM+:} false; then :
35019  $as_echo_n "(cached) " >&6
35020else
35021  if test -n "$RPM"; then
35022  ac_cv_prog_RPM="$RPM" # Let the user override the test.
35023else
35024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35025for as_dir in $PATH
35026do
35027  IFS=$as_save_IFS
35028  test -z "$as_dir" && as_dir=.
35029    for ac_exec_ext in '' $ac_executable_extensions; do
35030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35031    ac_cv_prog_RPM="$ac_prog"
35032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35033    break 2
35034  fi
35035done
35036  done
35037IFS=$as_save_IFS
35038
35039fi
35040fi
35041RPM=$ac_cv_prog_RPM
35042if test -n "$RPM"; then
35043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35044$as_echo "$RPM" >&6; }
35045else
35046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35047$as_echo "no" >&6; }
35048fi
35049
35050
35051  test -n "$RPM" && break
35052done
35053
35054
35055ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35056
35057
35058AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35059
35060
35061AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35062
35063
35064AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35065
35066
35067 if test "x$RPM" != "x" ; then
35068  RPM_DELEGATE_TRUE=
35069  RPM_DELEGATE_FALSE='#'
35070else
35071  RPM_DELEGATE_TRUE='#'
35072  RPM_DELEGATE_FALSE=
35073fi
35074
35075
35076#
35077# 7ZIP support (http://p7zip.sourceforge.net/)
35078#
35079P7ZIP=''
35080for ac_prog in 7za
35081do
35082  # Extract the first word of "$ac_prog", so it can be a program name with args.
35083set dummy $ac_prog; ac_word=$2
35084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35085$as_echo_n "checking for $ac_word... " >&6; }
35086if ${ac_cv_prog_P7ZIP+:} false; then :
35087  $as_echo_n "(cached) " >&6
35088else
35089  if test -n "$P7ZIP"; then
35090  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35091else
35092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35093for as_dir in $PATH
35094do
35095  IFS=$as_save_IFS
35096  test -z "$as_dir" && as_dir=.
35097    for ac_exec_ext in '' $ac_executable_extensions; do
35098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35099    ac_cv_prog_P7ZIP="$ac_prog"
35100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35101    break 2
35102  fi
35103done
35104  done
35105IFS=$as_save_IFS
35106
35107fi
35108fi
35109P7ZIP=$ac_cv_prog_P7ZIP
35110if test -n "$P7ZIP"; then
35111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35112$as_echo "$P7ZIP" >&6; }
35113else
35114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35115$as_echo "no" >&6; }
35116fi
35117
35118
35119  test -n "$P7ZIP" && break
35120done
35121
35122
35123 if test "x$P7ZIP" != "x" ; then
35124  P7ZIP_DELEGATE_TRUE=
35125  P7ZIP_DELEGATE_FALSE='#'
35126else
35127  P7ZIP_DELEGATE_TRUE='#'
35128  P7ZIP_DELEGATE_FALSE=
35129fi
35130
35131
35132#
35133# ZIP support (http://www.info-zip.org/Zip.html)
35134#
35135ZIP=''
35136for ac_prog in zip
35137do
35138  # Extract the first word of "$ac_prog", so it can be a program name with args.
35139set dummy $ac_prog; ac_word=$2
35140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35141$as_echo_n "checking for $ac_word... " >&6; }
35142if ${ac_cv_prog_ZIP+:} false; then :
35143  $as_echo_n "(cached) " >&6
35144else
35145  if test -n "$ZIP"; then
35146  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35147else
35148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35149for as_dir in $PATH
35150do
35151  IFS=$as_save_IFS
35152  test -z "$as_dir" && as_dir=.
35153    for ac_exec_ext in '' $ac_executable_extensions; do
35154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35155    ac_cv_prog_ZIP="$ac_prog"
35156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35157    break 2
35158  fi
35159done
35160  done
35161IFS=$as_save_IFS
35162
35163fi
35164fi
35165ZIP=$ac_cv_prog_ZIP
35166if test -n "$ZIP"; then
35167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35168$as_echo "$ZIP" >&6; }
35169else
35170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35171$as_echo "no" >&6; }
35172fi
35173
35174
35175  test -n "$ZIP" && break
35176done
35177
35178
35179 if test "x$ZIP" != "x" ; then
35180  ZIP_DELEGATE_TRUE=
35181  ZIP_DELEGATE_FALSE='#'
35182else
35183  ZIP_DELEGATE_TRUE='#'
35184  ZIP_DELEGATE_FALSE=
35185fi
35186
35187
35188#
35189# GhostPCL related configuration.
35190#
35191PCLColorDevice=ppmraw
35192PCLCMYKDevice=pamcmyk32
35193PCLMonoDevice=pbmraw
35194if test -z "$PCLVersion"; then
35195    PCLVersion='unknown'
35196fi
35197if test $have_pcl = 'yes'; then
35198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35199$as_echo "-------------------------------------------------------------" >&6; }
35200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35201$as_echo_n "checking for PCL... " >&6; }
35202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35203$as_echo "" >&6; }
35204    # PCLColorDevice
35205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35206$as_echo_n "checking for pcl color device... " >&6; }
35207    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35208        :
35209    else
35210        PCLColorDevice=ppmraw
35211    fi
35212    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35213$as_echo "$PCLColorDevice" >&6; }
35214
35215    # PCLCMYKDevice
35216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35217$as_echo_n "checking for pcl CMYK device... " >&6; }
35218    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35219        :
35220    else
35221        PCLCMYKDevice=$PCLColorDevice
35222    fi
35223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35224$as_echo "$PCLCMYKDevice" >&6; }
35225
35226    # PCLMonoDevice
35227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35228$as_echo_n "checking for pcl mono device... " >&6; }
35229    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35230        :
35231    else
35232        PCLMonoDevice=$PCLColorDevice
35233    fi
35234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35235$as_echo "$PCLMonoDevice" >&6; }
35236fi
35237
35238
35239
35240
35241
35242
35243#
35244# GhostXPS related configuration.
35245#
35246XPSColorDevice=ppmraw
35247XPSCMYKDevice=bmpsep8
35248XPSMonoDevice=pbmraw
35249if test -z "$XPSVersion"; then
35250    XPSVersion='unknown'
35251fi
35252if test $have_xps = 'yes'; then
35253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35254$as_echo "-------------------------------------------------------------" >&6; }
35255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35256$as_echo_n "checking for XPS... " >&6; }
35257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35258$as_echo "" >&6; }
35259    # XPSColorDevice
35260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35261$as_echo_n "checking for xps color device... " >&6; }
35262    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35263        :
35264    else
35265        XPSColorDevice=ppmraw
35266    fi
35267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35268$as_echo "$XPSColorDevice" >&6; }
35269
35270    # XPSCMYKDevice
35271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35272$as_echo_n "checking for xps CMYK device... " >&6; }
35273    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35274        :
35275    else
35276        XPSCMYKDevice=$XPSColorDevice
35277    fi
35278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35279$as_echo "$XPSCMYKDevice" >&6; }
35280
35281    # XPSMonoDevice
35282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35283$as_echo_n "checking for xps mono device... " >&6; }
35284    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35285        :
35286    else
35287        XPSMonoDevice=$XPSColorDevice
35288    fi
35289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35290$as_echo "$XPSMonoDevice" >&6; }
35291fi
35292
35293
35294
35295
35296
35297
35298#
35299# Ghostscript related configuration.
35300#
35301GSAlphaDevice=pngalpha
35302GSColorDevice=pnmraw
35303GSCMYKDevice=pam
35304GSMonoDevice=pbmraw
35305GSPDFDevice=pdfwrite
35306GSPSDevice=ps2write
35307GSEPSDevice=epswrite
35308GSVersion='unknown'
35309if test $have_gs = 'yes'; then
35310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35311$as_echo "-------------------------------------------------------------" >&6; }
35312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35313$as_echo_n "checking for Ghostscript... " >&6; }
35314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35315$as_echo "" >&6; }
35316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35317$as_echo_n "checking for Ghostscript version... " >&6; }
35318    if GSVersion=`$PSDelegate --version`; then
35319        :
35320    else
35321        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35322    fi
35323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35324$as_echo "$GSVersion" >&6; }
35325
35326    # GSAlphaDevice
35327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35328$as_echo_n "checking for gs alpha device... " >&6; }
35329    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35330        :
35331    else
35332        GSAlphaDevice=pnmraw
35333    fi
35334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35335$as_echo "$GSAlphaDevice" >&6; }
35336
35337    # GSColorDevice
35338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35339$as_echo_n "checking for gs color device... " >&6; }
35340    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35341        :
35342    else
35343        GSColorDevice=pnmraw
35344    fi
35345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35346$as_echo "$GSColorDevice" >&6; }
35347
35348    # GSCMYKDevice
35349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35350$as_echo_n "checking for gs CMYK device... " >&6; }
35351    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35352        :
35353    else
35354        GSCMYKDevice=bmpsep8
35355    fi
35356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35357$as_echo "$GSCMYKDevice" >&6; }
35358
35359    # GSMonoDevice
35360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35361$as_echo_n "checking for gs mono device... " >&6; }
35362    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35363        :
35364    else
35365        GSMonoDevice=$GSColorDevice
35366    fi
35367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35368$as_echo "$GSMonoDevice" >&6; }
35369
35370    # GSPDFDevice
35371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35372$as_echo_n "checking for gs PDF writing device... " >&6; }
35373    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35374        :
35375    else
35376        GSPDFDevice=nodevice
35377    fi
35378        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35379$as_echo "$GSPDFDevice" >&6; }
35380
35381    # GSPSDevice
35382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35383$as_echo_n "checking for gs PS writing device... " >&6; }
35384    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35385        :
35386    else
35387        GSPSDevice=nodevice
35388    fi
35389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35390$as_echo "$GSPSDevice" >&6; }
35391
35392    # GSEPSDevice
35393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35394$as_echo_n "checking for gs EPS writing device... " >&6; }
35395    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35396        :
35397    else
35398        GSEPSDevice=nodevice
35399    fi
35400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35401$as_echo "$GSEPSDevice" >&6; }
35402fi
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413#
35414# PerlMagick-related configuration
35415#
35416
35417# Look for PERL if PerlMagick requested
35418# If name/path of desired PERL interpreter is specified, look for that one first
35419have_perl='no'
35420if test "$with_perl" != 'no'; then
35421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35422$as_echo "-------------------------------------------------------------" >&6; }
35423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35424$as_echo_n "checking for Perl... " >&6; }
35425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35426$as_echo "" >&6; }
35427    if test "$with_perl" != 'yes'; then
35428        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35429$as_echo_n "checking for perl... " >&6; }
35430if ${ac_cv_path_PERL+:} false; then :
35431  $as_echo_n "(cached) " >&6
35432else
35433  ac_cv_path_PERL="$with_perl"
35434fi
35435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35436$as_echo "$ac_cv_path_PERL" >&6; };
35437        PERL=$ac_cv_path_PERL
35438                have_perl="$ac_cv_path_PERL"
35439    else
35440        for ac_prog in perl perl5
35441do
35442  # Extract the first word of "$ac_prog", so it can be a program name with args.
35443set dummy $ac_prog; ac_word=$2
35444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35445$as_echo_n "checking for $ac_word... " >&6; }
35446if ${ac_cv_path_PERL+:} false; then :
35447  $as_echo_n "(cached) " >&6
35448else
35449  case $PERL in
35450  [\\/]* | ?:[\\/]*)
35451  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35452  ;;
35453  *)
35454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35455for as_dir in $PATH
35456do
35457  IFS=$as_save_IFS
35458  test -z "$as_dir" && as_dir=.
35459    for ac_exec_ext in '' $ac_executable_extensions; do
35460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35461    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35463    break 2
35464  fi
35465done
35466  done
35467IFS=$as_save_IFS
35468
35469  ;;
35470esac
35471fi
35472PERL=$ac_cv_path_PERL
35473if test -n "$PERL"; then
35474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35475$as_echo "$PERL" >&6; }
35476else
35477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35478$as_echo "no" >&6; }
35479fi
35480
35481
35482  test -n "$PERL" && break
35483done
35484        if test "$ac_cv_path_PERL"; then
35485            have_perl="$ac_cv_path_PERL"
35486        fi
35487    fi
35488fi
35489
35490if test "$with_perl" != 'yes' ; then
35491    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35492fi
35493
35494PERL_SUPPORTS_DESTDIR='no'
35495
35496with_perl_static='no'
35497with_perl_dynamic='no'
35498if test "$have_perl" != 'no'; then
35499    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35500        with_perl_static='yes'
35501    fi
35502    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35503        with_perl_dynamic='yes'
35504    fi
35505    # Is PERL's MakeMaker new enough to support DESTDIR?
35506
35507
35508
35509
35510    if test -n "$PERL"; then :
35511
35512        ax_perl_version="5.8.1"
35513
35514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35515$as_echo_n "checking for perl version... " >&6; }
35516
35517        perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35518
35519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35520$as_echo "$perl_version" >&6; }
35521
35522	PERL_VERSION=$perl_version
35523
35524
35525
35526
35527
35528  # Used to indicate true or false condition
35529  ax_compare_version=false
35530
35531  # Convert the two version strings to be compared into a format that
35532  # allows a simple string comparison.  The end result is that a version
35533  # string of the form 1.12.5-r617 will be converted to the form
35534  # 0001001200050617.  In other words, each number is zero padded to four
35535  # digits, and non digits are removed.
35536
35537  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35538                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35539                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35540                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35541                     -e 's/[^0-9]//g'`
35542
35543
35544  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35545                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35546                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35547                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35548                     -e 's/[^0-9]//g'`
35549
35550
35551    ax_compare_version=`echo "x$ax_compare_version_A
35552x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35553
35554
35555
35556    if test "$ax_compare_version" = "true" ; then
35557
35558	    :
35559            PERL_SUPPORTS_DESTDIR='yes'
35560
35561    else
35562	    :
35563            PERL_SUPPORTS_DESTDIR='no'
35564
35565  fi
35566
35567
35568else
35569
35570        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35571$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35572        PERL_SUPPORTS_DESTDIR='no'
35573
35574fi
35575
35576fi
35577 if test "$have_perl" != 'no'; then
35578  WITH_PERL_TRUE=
35579  WITH_PERL_FALSE='#'
35580else
35581  WITH_PERL_TRUE='#'
35582  WITH_PERL_FALSE=
35583fi
35584
35585 if test $with_perl_static = 'yes'; then
35586  WITH_PERL_STATIC_TRUE=
35587  WITH_PERL_STATIC_FALSE='#'
35588else
35589  WITH_PERL_STATIC_TRUE='#'
35590  WITH_PERL_STATIC_FALSE=
35591fi
35592
35593 if test $with_perl_dynamic = 'yes'; then
35594  WITH_PERL_DYNAMIC_TRUE=
35595  WITH_PERL_DYNAMIC_FALSE='#'
35596else
35597  WITH_PERL_DYNAMIC_TRUE='#'
35598  WITH_PERL_DYNAMIC_FALSE=
35599fi
35600
35601
35602
35603# Determine path to pick up MagickCore library from for use with building PerlMagick
35604MAGICKCORE_PATH="${LIB_DIR}"
35605if test $with_perl_static = 'yes'; then
35606    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35607    libtool_objdir=$objdir
35608
35609    # Linker search path to library, followed by -lMagickCore
35610    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35611fi
35612
35613
35614# Create a simple string containing format names for all delegate libraries.
35615MAGICK_DELEGATES=''
35616if test "$have_autotrace"  = 'yes' ; then
35617   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
35618fi
35619if test "$have_bzlib"  = 'yes' ; then
35620   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
35621fi
35622if test "$have_dps"    = 'yes' ; then
35623   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
35624fi
35625if test "$have_djvu"    = 'yes' ; then
35626   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
35627fi
35628if test "$have_avconv"   = 'yes' ; then
35629   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
35630fi
35631if test "$have_fftw"    = 'yes' ; then
35632   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
35633fi
35634if test "$have_fpx"    = 'yes' ; then
35635   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
35636fi
35637if test "$have_fontconfig"    = 'yes' ; then
35638   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
35639fi
35640if test "$have_freetype"    = 'yes' ; then
35641   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
35642fi
35643if test "$have_gslib"    = 'yes' ; then
35644   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
35645fi
35646if test "$have_jbig"    = 'yes' ; then
35647   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
35648fi
35649if test "$have_png$have_jpeg" = 'yesyes' ; then
35650   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
35651fi
35652if test "$have_jp2"   = 'yes' ; then
35653   MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
35654fi
35655if test "$have_jpeg"   = 'yes' ; then
35656   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
35657fi
35658if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
35659   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
35660fi
35661if test "$have_lqr"    = 'yes' ; then
35662   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
35663fi
35664if test "$have_lzma"    = 'yes' ; then
35665   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
35666fi
35667if test "$have_openexr"    = 'yes' ; then
35668   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
35669fi
35670if test "$have_openjp2"    = 'yes' ; then
35671   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
35672fi
35673if test "$have_pango"    = 'yes' ; then
35674   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
35675fi
35676if test "$have_png"    = 'yes' ; then
35677   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
35678fi
35679have_ps='no'
35680if test "$have_dps"    = 'yes' || \
35681   test "$have_gs" = 'yes' || \
35682   test "${native_win32_build}" = 'yes' ; then
35683   have_ps='yes'
35684fi
35685if test "$have_ps"     = 'yes' ; then
35686   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
35687fi
35688if test "$have_ra_ppm" = 'yes' ; then
35689   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
35690fi
35691if test "$have_rsvg"   = 'yes' ; then
35692   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
35693fi
35694if test "$have_tiff"   = 'yes' ; then
35695   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
35696fi
35697if test "$have_ttf"    = 'yes' ; then
35698   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
35699fi
35700if test "$have_webp"    = 'yes' ; then
35701   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35702fi
35703if test "$have_wmf"    = 'yes' ; then
35704   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
35705fi
35706if test "$have_x"      = 'yes' ; then
35707   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
35708fi
35709if test "$have_xml"      = 'yes' ; then
35710   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
35711fi
35712if test "$have_zlib"   = 'yes' ; then
35713   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
35714fi
35715# Remove extraneous spaces from output variables (asthetic)
35716MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
35717MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
35718
35719
35720
35721#
35722# Handle special compiler flags
35723#
35724
35725# Add '-p' if prof source profiling support enabled
35726if test "$enable_prof" = 'yes'; then
35727    CFLAGS="-p $CFLAGS"
35728    CXXFLAGS="-p $CXXFLAGS"
35729    LDFLAGS="-p $LDFLAGS"
35730fi
35731
35732# Add '-pg' if gprof source profiling support enabled
35733if test "$enable_gprof" = 'yes'; then
35734    CFLAGS="-pg $CFLAGS"
35735    CXXFLAGS="-pg $CXXFLAGS"
35736    LDFLAGS="-pg $LDFLAGS"
35737fi
35738
35739# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35740# This is a gcc-specific feature
35741if test "$enable_gcov" = 'yes'; then
35742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35743$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35744if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35745  $as_echo_n "(cached) " >&6
35746else
35747  ac_check_lib_save_LIBS=$LIBS
35748LIBS="-lgcov  $LIBS"
35749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35750/* end confdefs.h.  */
35751
35752/* Override any GCC internal prototype to avoid an error.
35753   Use char because int might match the return type of a GCC
35754   builtin and then its argument prototype would still apply.  */
35755#ifdef __cplusplus
35756extern "C"
35757#endif
35758char _gcov_init ();
35759int
35760main ()
35761{
35762return _gcov_init ();
35763  ;
35764  return 0;
35765}
35766_ACEOF
35767if ac_fn_c_try_link "$LINENO"; then :
35768  ac_cv_lib_gcov__gcov_init=yes
35769else
35770  ac_cv_lib_gcov__gcov_init=no
35771fi
35772rm -f core conftest.err conftest.$ac_objext \
35773    conftest$ac_exeext conftest.$ac_ext
35774LIBS=$ac_check_lib_save_LIBS
35775fi
35776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
35777$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
35778if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
35779  cat >>confdefs.h <<_ACEOF
35780#define HAVE_LIBGCOV 1
35781_ACEOF
35782
35783  LIBS="-lgcov $LIBS"
35784
35785fi
35786
35787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
35788$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
35789if ${ac_cv_lib_gcov___gcov_init+:} false; then :
35790  $as_echo_n "(cached) " >&6
35791else
35792  ac_check_lib_save_LIBS=$LIBS
35793LIBS="-lgcov  $LIBS"
35794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35795/* end confdefs.h.  */
35796
35797/* Override any GCC internal prototype to avoid an error.
35798   Use char because int might match the return type of a GCC
35799   builtin and then its argument prototype would still apply.  */
35800#ifdef __cplusplus
35801extern "C"
35802#endif
35803char __gcov_init ();
35804int
35805main ()
35806{
35807return __gcov_init ();
35808  ;
35809  return 0;
35810}
35811_ACEOF
35812if ac_fn_c_try_link "$LINENO"; then :
35813  ac_cv_lib_gcov___gcov_init=yes
35814else
35815  ac_cv_lib_gcov___gcov_init=no
35816fi
35817rm -f core conftest.err conftest.$ac_objext \
35818    conftest$ac_exeext conftest.$ac_ext
35819LIBS=$ac_check_lib_save_LIBS
35820fi
35821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
35822$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
35823if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
35824  cat >>confdefs.h <<_ACEOF
35825#define HAVE_LIBGCOV 1
35826_ACEOF
35827
35828  LIBS="-lgcov $LIBS"
35829
35830fi
35831
35832    case "$target_os" in
35833        darwin*)
35834            OSX_GCOV_LDFLAG="-Wl,-single_module"
35835        ;;
35836        *)
35837            OSX_GCOV_LDFLAG=""
35838        ;;
35839    esac
35840
35841    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
35842    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
35843    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35844fi
35845
35846#
35847# Build library dependency list for libMagickCore
35848#
35849
35850if test "$build_modules" != 'no'; then
35851    MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
35852else
35853    MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
35854fi
35855
35856
35857#
35858# Remove extraneous spaces from output variables (asthetic)
35859#
35860X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35861X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35862X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35863X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35864
35865CC=`echo $CC | sed -e 's/  */ /g'`
35866CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35867CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35868CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35869DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35870LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35871TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35872MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35873#LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35874
35875# Pass only user-provided LIBS as "global" libraries
35876LIBS=$USER_LIBS
35877
35878#AC_SUBST(CPPFLAGS)
35879
35880#AC_SUBST(LDFLAGS)
35881#AC_SUBST(X_PRE_LIBS)
35882#AC_SUBST(X_LIBS)
35883#AC_SUBST(X_EXTRA_LIBS)
35884
35885MAGICK_CFLAGS=$CFLAGS
35886MAGICK_CXXFLAGS="$CXXFLAGS"
35887MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35888MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35889MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35890MAGICK_LIBS="$MAGICK_DEP_LIBS"
35891
35892
35893
35894
35895
35896
35897
35898
35899# Set configured scripts to executable.
35900ac_config_commands="$ac_config_commands default"
35901
35902ac_config_commands="$ac_config_commands magick.sh.in"
35903
35904ac_config_commands="$ac_config_commands MagickCore-config.in"
35905
35906ac_config_commands="$ac_config_commands MagickWand-config.in"
35907
35908ac_config_commands="$ac_config_commands Magick++-config.in"
35909
35910ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35911
35912
35913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35914$as_echo "-------------------------------------------------------------" >&6; }
35915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35916$as_echo "Update ImageMagick configuration" >&6; }
35917cat >confcache <<\_ACEOF
35918# This file is a shell script that caches the results of configure
35919# tests run on this system so they can be shared between configure
35920# scripts and configure runs, see configure's option --config-cache.
35921# It is not useful on other systems.  If it contains results you don't
35922# want to keep, you may remove or edit it.
35923#
35924# config.status only pays attention to the cache file if you give it
35925# the --recheck option to rerun configure.
35926#
35927# `ac_cv_env_foo' variables (set or unset) will be overridden when
35928# loading this file, other *unset* `ac_cv_foo' will be assigned the
35929# following values.
35930
35931_ACEOF
35932
35933# The following way of writing the cache mishandles newlines in values,
35934# but we know of no workaround that is simple, portable, and efficient.
35935# So, we kill variables containing newlines.
35936# Ultrix sh set writes to stderr and can't be redirected directly,
35937# and sets the high bit in the cache file unless we assign to the vars.
35938(
35939  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35940    eval ac_val=\$$ac_var
35941    case $ac_val in #(
35942    *${as_nl}*)
35943      case $ac_var in #(
35944      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35946      esac
35947      case $ac_var in #(
35948      _ | IFS | as_nl) ;; #(
35949      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35950      *) { eval $ac_var=; unset $ac_var;} ;;
35951      esac ;;
35952    esac
35953  done
35954
35955  (set) 2>&1 |
35956    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35957    *${as_nl}ac_space=\ *)
35958      # `set' does not quote correctly, so add quotes: double-quote
35959      # substitution turns \\\\ into \\, and sed turns \\ into \.
35960      sed -n \
35961	"s/'/'\\\\''/g;
35962	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35963      ;; #(
35964    *)
35965      # `set' quotes correctly as required by POSIX, so do not add quotes.
35966      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35967      ;;
35968    esac |
35969    sort
35970) |
35971  sed '
35972     /^ac_cv_env_/b end
35973     t clear
35974     :clear
35975     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35976     t end
35977     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35978     :end' >>confcache
35979if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35980  if test -w "$cache_file"; then
35981    if test "x$cache_file" != "x/dev/null"; then
35982      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35983$as_echo "$as_me: updating cache $cache_file" >&6;}
35984      if test ! -f "$cache_file" || test -h "$cache_file"; then
35985	cat confcache >"$cache_file"
35986      else
35987        case $cache_file in #(
35988        */* | ?:*)
35989	  mv -f confcache "$cache_file"$$ &&
35990	  mv -f "$cache_file"$$ "$cache_file" ;; #(
35991        *)
35992	  mv -f confcache "$cache_file" ;;
35993	esac
35994      fi
35995    fi
35996  else
35997    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35998$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35999  fi
36000fi
36001rm -f confcache
36002
36003test "x$prefix" = xNONE && prefix=$ac_default_prefix
36004# Let make expand exec_prefix.
36005test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36006
36007DEFS=-DHAVE_CONFIG_H
36008
36009ac_libobjs=
36010ac_ltlibobjs=
36011U=
36012for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36013  # 1. Remove the extension, and $U if already installed.
36014  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36015  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36016  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36017  #    will be set to the directory where LIBOBJS objects are built.
36018  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36019  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36020done
36021LIBOBJS=$ac_libobjs
36022
36023LTLIBOBJS=$ac_ltlibobjs
36024
36025
36026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36027$as_echo_n "checking that generated files are newer than configure... " >&6; }
36028   if test -n "$am_sleep_pid"; then
36029     # Hide warnings about reused PIDs.
36030     wait $am_sleep_pid 2>/dev/null
36031   fi
36032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36033$as_echo "done" >&6; }
36034 if test -n "$EXEEXT"; then
36035  am__EXEEXT_TRUE=
36036  am__EXEEXT_FALSE='#'
36037else
36038  am__EXEEXT_TRUE='#'
36039  am__EXEEXT_FALSE=
36040fi
36041
36042if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36043  as_fn_error $? "conditional \"AMDEP\" was never defined.
36044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36047  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36051  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36055  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36059  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
36062if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
36063  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
36064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
36067  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
36068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
36071  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
36072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
36074if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
36075  as_fn_error $? "conditional \"USING_CL\" was never defined.
36076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36079  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36083  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
36086if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36087  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
36090if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36091  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
36094
36095if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36096  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36100  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
36104  as_fn_error $? "conditional \"HasUMEM\" was never defined.
36105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36108  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36112  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36116  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
36119if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36120  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36121Usually this means the macro was only invoked conditionally." "$LINENO" 5
36122fi
36123if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36124  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36125Usually this means the macro was only invoked conditionally." "$LINENO" 5
36126fi
36127if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36128  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36129Usually this means the macro was only invoked conditionally." "$LINENO" 5
36130fi
36131if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36132  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36133Usually this means the macro was only invoked conditionally." "$LINENO" 5
36134fi
36135if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36136  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36137Usually this means the macro was only invoked conditionally." "$LINENO" 5
36138fi
36139if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36140  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36141Usually this means the macro was only invoked conditionally." "$LINENO" 5
36142fi
36143if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36144  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36145Usually this means the macro was only invoked conditionally." "$LINENO" 5
36146fi
36147if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
36148  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
36149Usually this means the macro was only invoked conditionally." "$LINENO" 5
36150fi
36151if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36152  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36153Usually this means the macro was only invoked conditionally." "$LINENO" 5
36154fi
36155if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36156  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36157Usually this means the macro was only invoked conditionally." "$LINENO" 5
36158fi
36159if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36160  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36161Usually this means the macro was only invoked conditionally." "$LINENO" 5
36162fi
36163if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36164  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36165Usually this means the macro was only invoked conditionally." "$LINENO" 5
36166fi
36167if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36168  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36169Usually this means the macro was only invoked conditionally." "$LINENO" 5
36170fi
36171if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36172  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36173Usually this means the macro was only invoked conditionally." "$LINENO" 5
36174fi
36175if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36176  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36177Usually this means the macro was only invoked conditionally." "$LINENO" 5
36178fi
36179if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36180  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36181Usually this means the macro was only invoked conditionally." "$LINENO" 5
36182fi
36183if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36184  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36185Usually this means the macro was only invoked conditionally." "$LINENO" 5
36186fi
36187if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36188  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36189Usually this means the macro was only invoked conditionally." "$LINENO" 5
36190fi
36191if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36192  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36193Usually this means the macro was only invoked conditionally." "$LINENO" 5
36194fi
36195if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36196  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36197Usually this means the macro was only invoked conditionally." "$LINENO" 5
36198fi
36199if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36200  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36201Usually this means the macro was only invoked conditionally." "$LINENO" 5
36202fi
36203if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36204  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36205Usually this means the macro was only invoked conditionally." "$LINENO" 5
36206fi
36207if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36208  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36209Usually this means the macro was only invoked conditionally." "$LINENO" 5
36210fi
36211if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36212  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36213Usually this means the macro was only invoked conditionally." "$LINENO" 5
36214fi
36215if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36216  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36217Usually this means the macro was only invoked conditionally." "$LINENO" 5
36218fi
36219if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36220  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36221Usually this means the macro was only invoked conditionally." "$LINENO" 5
36222fi
36223if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36224  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36225Usually this means the macro was only invoked conditionally." "$LINENO" 5
36226fi
36227if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36228  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36229Usually this means the macro was only invoked conditionally." "$LINENO" 5
36230fi
36231if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36232  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36233Usually this means the macro was only invoked conditionally." "$LINENO" 5
36234fi
36235if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36236  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36237Usually this means the macro was only invoked conditionally." "$LINENO" 5
36238fi
36239if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36240  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36241Usually this means the macro was only invoked conditionally." "$LINENO" 5
36242fi
36243if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36244  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36245Usually this means the macro was only invoked conditionally." "$LINENO" 5
36246fi
36247if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36248  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36249Usually this means the macro was only invoked conditionally." "$LINENO" 5
36250fi
36251
36252: "${CONFIG_STATUS=./config.status}"
36253ac_write_fail=0
36254ac_clean_files_save=$ac_clean_files
36255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36256{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36257$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36258as_write_fail=0
36259cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36260#! $SHELL
36261# Generated by $as_me.
36262# Run this file to recreate the current configuration.
36263# Compiler output produced by configure, useful for debugging
36264# configure, is in config.log if it exists.
36265
36266debug=false
36267ac_cs_recheck=false
36268ac_cs_silent=false
36269
36270SHELL=\${CONFIG_SHELL-$SHELL}
36271export SHELL
36272_ASEOF
36273cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36274## -------------------- ##
36275## M4sh Initialization. ##
36276## -------------------- ##
36277
36278# Be more Bourne compatible
36279DUALCASE=1; export DUALCASE # for MKS sh
36280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36281  emulate sh
36282  NULLCMD=:
36283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36284  # is contrary to our usage.  Disable this feature.
36285  alias -g '${1+"$@"}'='"$@"'
36286  setopt NO_GLOB_SUBST
36287else
36288  case `(set -o) 2>/dev/null` in #(
36289  *posix*) :
36290    set -o posix ;; #(
36291  *) :
36292     ;;
36293esac
36294fi
36295
36296
36297as_nl='
36298'
36299export as_nl
36300# Printing a long string crashes Solaris 7 /usr/bin/printf.
36301as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36304# Prefer a ksh shell builtin over an external printf program on Solaris,
36305# but without wasting forks for bash or zsh.
36306if test -z "$BASH_VERSION$ZSH_VERSION" \
36307    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36308  as_echo='print -r --'
36309  as_echo_n='print -rn --'
36310elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36311  as_echo='printf %s\n'
36312  as_echo_n='printf %s'
36313else
36314  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36315    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36316    as_echo_n='/usr/ucb/echo -n'
36317  else
36318    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36319    as_echo_n_body='eval
36320      arg=$1;
36321      case $arg in #(
36322      *"$as_nl"*)
36323	expr "X$arg" : "X\\(.*\\)$as_nl";
36324	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36325      esac;
36326      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36327    '
36328    export as_echo_n_body
36329    as_echo_n='sh -c $as_echo_n_body as_echo'
36330  fi
36331  export as_echo_body
36332  as_echo='sh -c $as_echo_body as_echo'
36333fi
36334
36335# The user is always right.
36336if test "${PATH_SEPARATOR+set}" != set; then
36337  PATH_SEPARATOR=:
36338  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36339    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36340      PATH_SEPARATOR=';'
36341  }
36342fi
36343
36344
36345# IFS
36346# We need space, tab and new line, in precisely that order.  Quoting is
36347# there to prevent editors from complaining about space-tab.
36348# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36349# splitting by setting IFS to empty value.)
36350IFS=" ""	$as_nl"
36351
36352# Find who we are.  Look in the path if we contain no directory separator.
36353as_myself=
36354case $0 in #((
36355  *[\\/]* ) as_myself=$0 ;;
36356  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36357for as_dir in $PATH
36358do
36359  IFS=$as_save_IFS
36360  test -z "$as_dir" && as_dir=.
36361    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36362  done
36363IFS=$as_save_IFS
36364
36365     ;;
36366esac
36367# We did not find ourselves, most probably we were run as `sh COMMAND'
36368# in which case we are not to be found in the path.
36369if test "x$as_myself" = x; then
36370  as_myself=$0
36371fi
36372if test ! -f "$as_myself"; then
36373  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36374  exit 1
36375fi
36376
36377# Unset variables that we do not need and which cause bugs (e.g. in
36378# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36379# suppresses any "Segmentation fault" message there.  '((' could
36380# trigger a bug in pdksh 5.2.14.
36381for as_var in BASH_ENV ENV MAIL MAILPATH
36382do eval test x\${$as_var+set} = xset \
36383  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36384done
36385PS1='$ '
36386PS2='> '
36387PS4='+ '
36388
36389# NLS nuisances.
36390LC_ALL=C
36391export LC_ALL
36392LANGUAGE=C
36393export LANGUAGE
36394
36395# CDPATH.
36396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36397
36398
36399# as_fn_error STATUS ERROR [LINENO LOG_FD]
36400# ----------------------------------------
36401# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36402# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36403# script with STATUS, using 1 if that was 0.
36404as_fn_error ()
36405{
36406  as_status=$1; test $as_status -eq 0 && as_status=1
36407  if test "$4"; then
36408    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36409    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36410  fi
36411  $as_echo "$as_me: error: $2" >&2
36412  as_fn_exit $as_status
36413} # as_fn_error
36414
36415
36416# as_fn_set_status STATUS
36417# -----------------------
36418# Set $? to STATUS, without forking.
36419as_fn_set_status ()
36420{
36421  return $1
36422} # as_fn_set_status
36423
36424# as_fn_exit STATUS
36425# -----------------
36426# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36427as_fn_exit ()
36428{
36429  set +e
36430  as_fn_set_status $1
36431  exit $1
36432} # as_fn_exit
36433
36434# as_fn_unset VAR
36435# ---------------
36436# Portably unset VAR.
36437as_fn_unset ()
36438{
36439  { eval $1=; unset $1;}
36440}
36441as_unset=as_fn_unset
36442# as_fn_append VAR VALUE
36443# ----------------------
36444# Append the text in VALUE to the end of the definition contained in VAR. Take
36445# advantage of any shell optimizations that allow amortized linear growth over
36446# repeated appends, instead of the typical quadratic growth present in naive
36447# implementations.
36448if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36449  eval 'as_fn_append ()
36450  {
36451    eval $1+=\$2
36452  }'
36453else
36454  as_fn_append ()
36455  {
36456    eval $1=\$$1\$2
36457  }
36458fi # as_fn_append
36459
36460# as_fn_arith ARG...
36461# ------------------
36462# Perform arithmetic evaluation on the ARGs, and store the result in the
36463# global $as_val. Take advantage of shells that can avoid forks. The arguments
36464# must be portable across $(()) and expr.
36465if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36466  eval 'as_fn_arith ()
36467  {
36468    as_val=$(( $* ))
36469  }'
36470else
36471  as_fn_arith ()
36472  {
36473    as_val=`expr "$@" || test $? -eq 1`
36474  }
36475fi # as_fn_arith
36476
36477
36478if expr a : '\(a\)' >/dev/null 2>&1 &&
36479   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36480  as_expr=expr
36481else
36482  as_expr=false
36483fi
36484
36485if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36486  as_basename=basename
36487else
36488  as_basename=false
36489fi
36490
36491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36492  as_dirname=dirname
36493else
36494  as_dirname=false
36495fi
36496
36497as_me=`$as_basename -- "$0" ||
36498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36499	 X"$0" : 'X\(//\)$' \| \
36500	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36501$as_echo X/"$0" |
36502    sed '/^.*\/\([^/][^/]*\)\/*$/{
36503	    s//\1/
36504	    q
36505	  }
36506	  /^X\/\(\/\/\)$/{
36507	    s//\1/
36508	    q
36509	  }
36510	  /^X\/\(\/\).*/{
36511	    s//\1/
36512	    q
36513	  }
36514	  s/.*/./; q'`
36515
36516# Avoid depending upon Character Ranges.
36517as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36518as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36519as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36520as_cr_digits='0123456789'
36521as_cr_alnum=$as_cr_Letters$as_cr_digits
36522
36523ECHO_C= ECHO_N= ECHO_T=
36524case `echo -n x` in #(((((
36525-n*)
36526  case `echo 'xy\c'` in
36527  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36528  xy)  ECHO_C='\c';;
36529  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36530       ECHO_T='	';;
36531  esac;;
36532*)
36533  ECHO_N='-n';;
36534esac
36535
36536rm -f conf$$ conf$$.exe conf$$.file
36537if test -d conf$$.dir; then
36538  rm -f conf$$.dir/conf$$.file
36539else
36540  rm -f conf$$.dir
36541  mkdir conf$$.dir 2>/dev/null
36542fi
36543if (echo >conf$$.file) 2>/dev/null; then
36544  if ln -s conf$$.file conf$$ 2>/dev/null; then
36545    as_ln_s='ln -s'
36546    # ... but there are two gotchas:
36547    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36548    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36549    # In both cases, we have to default to `cp -pR'.
36550    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36551      as_ln_s='cp -pR'
36552  elif ln conf$$.file conf$$ 2>/dev/null; then
36553    as_ln_s=ln
36554  else
36555    as_ln_s='cp -pR'
36556  fi
36557else
36558  as_ln_s='cp -pR'
36559fi
36560rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36561rmdir conf$$.dir 2>/dev/null
36562
36563
36564# as_fn_mkdir_p
36565# -------------
36566# Create "$as_dir" as a directory, including parents if necessary.
36567as_fn_mkdir_p ()
36568{
36569
36570  case $as_dir in #(
36571  -*) as_dir=./$as_dir;;
36572  esac
36573  test -d "$as_dir" || eval $as_mkdir_p || {
36574    as_dirs=
36575    while :; do
36576      case $as_dir in #(
36577      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36578      *) as_qdir=$as_dir;;
36579      esac
36580      as_dirs="'$as_qdir' $as_dirs"
36581      as_dir=`$as_dirname -- "$as_dir" ||
36582$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36583	 X"$as_dir" : 'X\(//\)[^/]' \| \
36584	 X"$as_dir" : 'X\(//\)$' \| \
36585	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36586$as_echo X"$as_dir" |
36587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36588	    s//\1/
36589	    q
36590	  }
36591	  /^X\(\/\/\)[^/].*/{
36592	    s//\1/
36593	    q
36594	  }
36595	  /^X\(\/\/\)$/{
36596	    s//\1/
36597	    q
36598	  }
36599	  /^X\(\/\).*/{
36600	    s//\1/
36601	    q
36602	  }
36603	  s/.*/./; q'`
36604      test -d "$as_dir" && break
36605    done
36606    test -z "$as_dirs" || eval "mkdir $as_dirs"
36607  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36608
36609
36610} # as_fn_mkdir_p
36611if mkdir -p . 2>/dev/null; then
36612  as_mkdir_p='mkdir -p "$as_dir"'
36613else
36614  test -d ./-p && rmdir ./-p
36615  as_mkdir_p=false
36616fi
36617
36618
36619# as_fn_executable_p FILE
36620# -----------------------
36621# Test if FILE is an executable regular file.
36622as_fn_executable_p ()
36623{
36624  test -f "$1" && test -x "$1"
36625} # as_fn_executable_p
36626as_test_x='test -x'
36627as_executable_p=as_fn_executable_p
36628
36629# Sed expression to map a string onto a valid CPP name.
36630as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36631
36632# Sed expression to map a string onto a valid variable name.
36633as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36634
36635
36636exec 6>&1
36637## ----------------------------------- ##
36638## Main body of $CONFIG_STATUS script. ##
36639## ----------------------------------- ##
36640_ASEOF
36641test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36642
36643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36644# Save the log message, to keep $0 and so on meaningful, and to
36645# report actual input values of CONFIG_FILES etc. instead of their
36646# values after options handling.
36647ac_log="
36648This file was extended by ImageMagick $as_me 7.0.0-0, which was
36649generated by GNU Autoconf 2.69.  Invocation command line was
36650
36651  CONFIG_FILES    = $CONFIG_FILES
36652  CONFIG_HEADERS  = $CONFIG_HEADERS
36653  CONFIG_LINKS    = $CONFIG_LINKS
36654  CONFIG_COMMANDS = $CONFIG_COMMANDS
36655  $ $0 $@
36656
36657on `(hostname || uname -n) 2>/dev/null | sed 1q`
36658"
36659
36660_ACEOF
36661
36662case $ac_config_files in *"
36663"*) set x $ac_config_files; shift; ac_config_files=$*;;
36664esac
36665
36666case $ac_config_headers in *"
36667"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36668esac
36669
36670
36671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36672# Files that config.status was made for.
36673config_files="$ac_config_files"
36674config_headers="$ac_config_headers"
36675config_commands="$ac_config_commands"
36676
36677_ACEOF
36678
36679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36680ac_cs_usage="\
36681\`$as_me' instantiates files and other configuration actions
36682from templates according to the current configuration.  Unless the files
36683and actions are specified as TAGs, all are instantiated by default.
36684
36685Usage: $0 [OPTION]... [TAG]...
36686
36687  -h, --help       print this help, then exit
36688  -V, --version    print version number and configuration settings, then exit
36689      --config     print configuration, then exit
36690  -q, --quiet, --silent
36691                   do not print progress messages
36692  -d, --debug      don't remove temporary files
36693      --recheck    update $as_me by reconfiguring in the same conditions
36694      --file=FILE[:TEMPLATE]
36695                   instantiate the configuration file FILE
36696      --header=FILE[:TEMPLATE]
36697                   instantiate the configuration header FILE
36698
36699Configuration files:
36700$config_files
36701
36702Configuration headers:
36703$config_headers
36704
36705Configuration commands:
36706$config_commands
36707
36708Report bugs to <http://www.imagemagick.org>."
36709
36710_ACEOF
36711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36712ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36713ac_cs_version="\\
36714ImageMagick config.status 7.0.0-0
36715configured by $0, generated by GNU Autoconf 2.69,
36716  with options \\"\$ac_cs_config\\"
36717
36718Copyright (C) 2012 Free Software Foundation, Inc.
36719This config.status script is free software; the Free Software Foundation
36720gives unlimited permission to copy, distribute and modify it."
36721
36722ac_pwd='$ac_pwd'
36723srcdir='$srcdir'
36724INSTALL='$INSTALL'
36725MKDIR_P='$MKDIR_P'
36726AWK='$AWK'
36727test -n "\$AWK" || AWK=awk
36728_ACEOF
36729
36730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36731# The default lists apply if the user does not specify any file.
36732ac_need_defaults=:
36733while test $# != 0
36734do
36735  case $1 in
36736  --*=?*)
36737    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36738    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36739    ac_shift=:
36740    ;;
36741  --*=)
36742    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36743    ac_optarg=
36744    ac_shift=:
36745    ;;
36746  *)
36747    ac_option=$1
36748    ac_optarg=$2
36749    ac_shift=shift
36750    ;;
36751  esac
36752
36753  case $ac_option in
36754  # Handling of the options.
36755  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36756    ac_cs_recheck=: ;;
36757  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36758    $as_echo "$ac_cs_version"; exit ;;
36759  --config | --confi | --conf | --con | --co | --c )
36760    $as_echo "$ac_cs_config"; exit ;;
36761  --debug | --debu | --deb | --de | --d | -d )
36762    debug=: ;;
36763  --file | --fil | --fi | --f )
36764    $ac_shift
36765    case $ac_optarg in
36766    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36767    '') as_fn_error $? "missing file argument" ;;
36768    esac
36769    as_fn_append CONFIG_FILES " '$ac_optarg'"
36770    ac_need_defaults=false;;
36771  --header | --heade | --head | --hea )
36772    $ac_shift
36773    case $ac_optarg in
36774    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36775    esac
36776    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36777    ac_need_defaults=false;;
36778  --he | --h)
36779    # Conflict between --help and --header
36780    as_fn_error $? "ambiguous option: \`$1'
36781Try \`$0 --help' for more information.";;
36782  --help | --hel | -h )
36783    $as_echo "$ac_cs_usage"; exit ;;
36784  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36785  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36786    ac_cs_silent=: ;;
36787
36788  # This is an error.
36789  -*) as_fn_error $? "unrecognized option: \`$1'
36790Try \`$0 --help' for more information." ;;
36791
36792  *) as_fn_append ac_config_targets " $1"
36793     ac_need_defaults=false ;;
36794
36795  esac
36796  shift
36797done
36798
36799ac_configure_extra_args=
36800
36801if $ac_cs_silent; then
36802  exec 6>/dev/null
36803  ac_configure_extra_args="$ac_configure_extra_args --silent"
36804fi
36805
36806_ACEOF
36807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36808if \$ac_cs_recheck; then
36809  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36810  shift
36811  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36812  CONFIG_SHELL='$SHELL'
36813  export CONFIG_SHELL
36814  exec "\$@"
36815fi
36816
36817_ACEOF
36818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36819exec 5>>config.log
36820{
36821  echo
36822  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36823## Running $as_me. ##
36824_ASBOX
36825  $as_echo "$ac_log"
36826} >&5
36827
36828_ACEOF
36829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36830#
36831# INIT-COMMANDS
36832#
36833PACKAGE="$PACKAGE"
36834AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36835
36836
36837# The HP-UX ksh and POSIX shell print the target directory to stdout
36838# if CDPATH is set.
36839(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36840
36841sed_quote_subst='$sed_quote_subst'
36842double_quote_subst='$double_quote_subst'
36843delay_variable_subst='$delay_variable_subst'
36844SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36845Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36846GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36847EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36848FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36849SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36850ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36851LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36852macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36853macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36854AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36855DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36856OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36857enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36858enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36859pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36860enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36861PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36862host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36863host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36864host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36865build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36866build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36867build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36868NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36869LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36870max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36871ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36872exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36873lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36874lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36875lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36876lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36877lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36878reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36879reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36880deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36881file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36882file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36883want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36884sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36885AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36886AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36887archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36888STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36889RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36890old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36891old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36892old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36893lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36894CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36895CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36896compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36897GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36898lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36899lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36900lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36901lt_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"`'
36902nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36903lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36904objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36905MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36906lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36907lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36908lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36909lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36910lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36911need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36912MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36913DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36914NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36915LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36916OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36917OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36918libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36919shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36920extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36921archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36922enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36923export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36924whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36925compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36926old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36927old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36928archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36929archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36930module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36931module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36932with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36933allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36934no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36935hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36936hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36937hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36938hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36939hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36940hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36941hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36942inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36943link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36944always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36945export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36946exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36947include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36948prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36949postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36950file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36951variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36952need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36953need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36954version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36955runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36956shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36957shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36958libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36959library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36960soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36961install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36962postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36963postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36964finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36965finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36966hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36967sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36968sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36969hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36970enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36971enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36972enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36973old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36974striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36975compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36976predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36977postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36978predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36979postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36980compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36981LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36982reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36983reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36984old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36985compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36986GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36987lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36988lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36989lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36990lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36991lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36992archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36993enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36994export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36995whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36996compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36997old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36998old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36999archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37000archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37001module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37002module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37003with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37004allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37005no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37006hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37007hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37008hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37009hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37010hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37011hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37012hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37013inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37014link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37015always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37016export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37017exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37018include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37019prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37020postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37021file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37022hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37023compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37024predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37025postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37026predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37027postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37028compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37029
37030LTCC='$LTCC'
37031LTCFLAGS='$LTCFLAGS'
37032compiler='$compiler_DEFAULT'
37033
37034# A function that is used when there is no print builtin or printf.
37035func_fallback_echo ()
37036{
37037  eval 'cat <<_LTECHO_EOF
37038\$1
37039_LTECHO_EOF'
37040}
37041
37042# Quote evaled strings.
37043for var in SED \
37044GREP \
37045EGREP \
37046FGREP \
37047SHELL \
37048ECHO \
37049LD \
37050AS \
37051DLLTOOL \
37052OBJDUMP \
37053PATH_SEPARATOR \
37054NM \
37055LN_S \
37056lt_SP2NL \
37057lt_NL2SP \
37058reload_flag \
37059deplibs_check_method \
37060file_magic_cmd \
37061file_magic_glob \
37062want_nocaseglob \
37063sharedlib_from_linklib_cmd \
37064AR \
37065AR_FLAGS \
37066archiver_list_spec \
37067STRIP \
37068RANLIB \
37069CC \
37070CFLAGS \
37071compiler \
37072lt_cv_sys_global_symbol_pipe \
37073lt_cv_sys_global_symbol_to_cdecl \
37074lt_cv_sys_global_symbol_to_c_name_address \
37075lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37076nm_file_list_spec \
37077lt_prog_compiler_no_builtin_flag \
37078lt_prog_compiler_pic \
37079lt_prog_compiler_wl \
37080lt_prog_compiler_static \
37081lt_cv_prog_compiler_c_o \
37082need_locks \
37083MANIFEST_TOOL \
37084DSYMUTIL \
37085NMEDIT \
37086LIPO \
37087OTOOL \
37088OTOOL64 \
37089shrext_cmds \
37090export_dynamic_flag_spec \
37091whole_archive_flag_spec \
37092compiler_needs_object \
37093with_gnu_ld \
37094allow_undefined_flag \
37095no_undefined_flag \
37096hardcode_libdir_flag_spec \
37097hardcode_libdir_separator \
37098exclude_expsyms \
37099include_expsyms \
37100file_list_spec \
37101variables_saved_for_relink \
37102libname_spec \
37103library_names_spec \
37104soname_spec \
37105install_override_mode \
37106finish_eval \
37107old_striplib \
37108striplib \
37109compiler_lib_search_dirs \
37110predep_objects \
37111postdep_objects \
37112predeps \
37113postdeps \
37114compiler_lib_search_path \
37115LD_CXX \
37116reload_flag_CXX \
37117compiler_CXX \
37118lt_prog_compiler_no_builtin_flag_CXX \
37119lt_prog_compiler_pic_CXX \
37120lt_prog_compiler_wl_CXX \
37121lt_prog_compiler_static_CXX \
37122lt_cv_prog_compiler_c_o_CXX \
37123export_dynamic_flag_spec_CXX \
37124whole_archive_flag_spec_CXX \
37125compiler_needs_object_CXX \
37126with_gnu_ld_CXX \
37127allow_undefined_flag_CXX \
37128no_undefined_flag_CXX \
37129hardcode_libdir_flag_spec_CXX \
37130hardcode_libdir_separator_CXX \
37131exclude_expsyms_CXX \
37132include_expsyms_CXX \
37133file_list_spec_CXX \
37134compiler_lib_search_dirs_CXX \
37135predep_objects_CXX \
37136postdep_objects_CXX \
37137predeps_CXX \
37138postdeps_CXX \
37139compiler_lib_search_path_CXX; do
37140    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37141    *[\\\\\\\`\\"\\\$]*)
37142      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37143      ;;
37144    *)
37145      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37146      ;;
37147    esac
37148done
37149
37150# Double-quote double-evaled strings.
37151for var in reload_cmds \
37152old_postinstall_cmds \
37153old_postuninstall_cmds \
37154old_archive_cmds \
37155extract_expsyms_cmds \
37156old_archive_from_new_cmds \
37157old_archive_from_expsyms_cmds \
37158archive_cmds \
37159archive_expsym_cmds \
37160module_cmds \
37161module_expsym_cmds \
37162export_symbols_cmds \
37163prelink_cmds \
37164postlink_cmds \
37165postinstall_cmds \
37166postuninstall_cmds \
37167finish_cmds \
37168sys_lib_search_path_spec \
37169sys_lib_dlsearch_path_spec \
37170reload_cmds_CXX \
37171old_archive_cmds_CXX \
37172old_archive_from_new_cmds_CXX \
37173old_archive_from_expsyms_cmds_CXX \
37174archive_cmds_CXX \
37175archive_expsym_cmds_CXX \
37176module_cmds_CXX \
37177module_expsym_cmds_CXX \
37178export_symbols_cmds_CXX \
37179prelink_cmds_CXX \
37180postlink_cmds_CXX; do
37181    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37182    *[\\\\\\\`\\"\\\$]*)
37183      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37184      ;;
37185    *)
37186      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37187      ;;
37188    esac
37189done
37190
37191ac_aux_dir='$ac_aux_dir'
37192xsi_shell='$xsi_shell'
37193lt_shell_append='$lt_shell_append'
37194
37195# See if we are running on zsh, and set the options which allow our
37196# commands through without removal of \ escapes INIT.
37197if test -n "\${ZSH_VERSION+set}" ; then
37198   setopt NO_GLOB_SUBST
37199fi
37200
37201
37202    PACKAGE='$PACKAGE'
37203    VERSION='$VERSION'
37204    TIMESTAMP='$TIMESTAMP'
37205    RM='$RM'
37206    ofile='$ofile'
37207
37208
37209
37210
37211
37212
37213_ACEOF
37214
37215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37216
37217# Handling of arguments.
37218for ac_config_target in $ac_config_targets
37219do
37220  case $ac_config_target in
37221    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37222    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
37223    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37224    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37225    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37226    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37227    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37228    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37229    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37230    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37231    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37232    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37233    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37234    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37235    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37236    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37237    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37238    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37239    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37240    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37241    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37242    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37243    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37244    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
37245    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37246    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
37247    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37248    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37249    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37250    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
37251    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37252    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37253    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37254    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37255    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37256    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37257    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37258    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37259    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37260    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37261    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37262    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37263    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37264    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37265    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37266    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37267    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37268    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37269    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37270    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37271    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37272    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37273
37274  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37275  esac
37276done
37277
37278
37279# If the user did not use the arguments to specify the items to instantiate,
37280# then the envvar interface is used.  Set only those that are not.
37281# We use the long form for the default assignment because of an extremely
37282# bizarre bug on SunOS 4.1.3.
37283if $ac_need_defaults; then
37284  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37285  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37286  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37287fi
37288
37289# Have a temporary directory for convenience.  Make it in the build tree
37290# simply because there is no reason against having it here, and in addition,
37291# creating and moving files from /tmp can sometimes cause problems.
37292# Hook for its removal unless debugging.
37293# Note that there is a small window in which the directory will not be cleaned:
37294# after its creation but before its name has been assigned to `$tmp'.
37295$debug ||
37296{
37297  tmp= ac_tmp=
37298  trap 'exit_status=$?
37299  : "${ac_tmp:=$tmp}"
37300  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37301' 0
37302  trap 'as_fn_exit 1' 1 2 13 15
37303}
37304# Create a (secure) tmp directory for tmp files.
37305
37306{
37307  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37308  test -d "$tmp"
37309}  ||
37310{
37311  tmp=./conf$$-$RANDOM
37312  (umask 077 && mkdir "$tmp")
37313} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37314ac_tmp=$tmp
37315
37316# Set up the scripts for CONFIG_FILES section.
37317# No need to generate them if there are no CONFIG_FILES.
37318# This happens for instance with `./config.status config.h'.
37319if test -n "$CONFIG_FILES"; then
37320
37321
37322ac_cr=`echo X | tr X '\015'`
37323# On cygwin, bash can eat \r inside `` if the user requested igncr.
37324# But we know of no other shell where ac_cr would be empty at this
37325# point, so we can use a bashism as a fallback.
37326if test "x$ac_cr" = x; then
37327  eval ac_cr=\$\'\\r\'
37328fi
37329ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37330if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37331  ac_cs_awk_cr='\\r'
37332else
37333  ac_cs_awk_cr=$ac_cr
37334fi
37335
37336echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37337_ACEOF
37338
37339
37340{
37341  echo "cat >conf$$subs.awk <<_ACEOF" &&
37342  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37343  echo "_ACEOF"
37344} >conf$$subs.sh ||
37345  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37346ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37347ac_delim='%!_!# '
37348for ac_last_try in false false false false false :; do
37349  . ./conf$$subs.sh ||
37350    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37351
37352  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37353  if test $ac_delim_n = $ac_delim_num; then
37354    break
37355  elif $ac_last_try; then
37356    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37357  else
37358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37359  fi
37360done
37361rm -f conf$$subs.sh
37362
37363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37364cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37365_ACEOF
37366sed -n '
37367h
37368s/^/S["/; s/!.*/"]=/
37369p
37370g
37371s/^[^!]*!//
37372:repl
37373t repl
37374s/'"$ac_delim"'$//
37375t delim
37376:nl
37377h
37378s/\(.\{148\}\)..*/\1/
37379t more1
37380s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37381p
37382n
37383b repl
37384:more1
37385s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37386p
37387g
37388s/.\{148\}//
37389t nl
37390:delim
37391h
37392s/\(.\{148\}\)..*/\1/
37393t more2
37394s/["\\]/\\&/g; s/^/"/; s/$/"/
37395p
37396b
37397:more2
37398s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37399p
37400g
37401s/.\{148\}//
37402t delim
37403' <conf$$subs.awk | sed '
37404/^[^""]/{
37405  N
37406  s/\n//
37407}
37408' >>$CONFIG_STATUS || ac_write_fail=1
37409rm -f conf$$subs.awk
37410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37411_ACAWK
37412cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37413  for (key in S) S_is_set[key] = 1
37414  FS = ""
37415
37416}
37417{
37418  line = $ 0
37419  nfields = split(line, field, "@")
37420  substed = 0
37421  len = length(field[1])
37422  for (i = 2; i < nfields; i++) {
37423    key = field[i]
37424    keylen = length(key)
37425    if (S_is_set[key]) {
37426      value = S[key]
37427      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37428      len += length(value) + length(field[++i])
37429      substed = 1
37430    } else
37431      len += 1 + keylen
37432  }
37433
37434  print line
37435}
37436
37437_ACAWK
37438_ACEOF
37439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37440if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37441  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37442else
37443  cat
37444fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37445  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37446_ACEOF
37447
37448# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37449# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37450# trailing colons and then remove the whole line if VPATH becomes empty
37451# (actually we leave an empty line to preserve line numbers).
37452if test "x$srcdir" = x.; then
37453  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37454h
37455s///
37456s/^/:/
37457s/[	 ]*$/:/
37458s/:\$(srcdir):/:/g
37459s/:\${srcdir}:/:/g
37460s/:@srcdir@:/:/g
37461s/^:*//
37462s/:*$//
37463x
37464s/\(=[	 ]*\).*/\1/
37465G
37466s/\n//
37467s/^[^=]*=[	 ]*$//
37468}'
37469fi
37470
37471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37472fi # test -n "$CONFIG_FILES"
37473
37474# Set up the scripts for CONFIG_HEADERS section.
37475# No need to generate them if there are no CONFIG_HEADERS.
37476# This happens for instance with `./config.status Makefile'.
37477if test -n "$CONFIG_HEADERS"; then
37478cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37479BEGIN {
37480_ACEOF
37481
37482# Transform confdefs.h into an awk script `defines.awk', embedded as
37483# here-document in config.status, that substitutes the proper values into
37484# config.h.in to produce config.h.
37485
37486# Create a delimiter string that does not exist in confdefs.h, to ease
37487# handling of long lines.
37488ac_delim='%!_!# '
37489for ac_last_try in false false :; do
37490  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37491  if test -z "$ac_tt"; then
37492    break
37493  elif $ac_last_try; then
37494    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37495  else
37496    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37497  fi
37498done
37499
37500# For the awk script, D is an array of macro values keyed by name,
37501# likewise P contains macro parameters if any.  Preserve backslash
37502# newline sequences.
37503
37504ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37505sed -n '
37506s/.\{148\}/&'"$ac_delim"'/g
37507t rset
37508:rset
37509s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37510t def
37511d
37512:def
37513s/\\$//
37514t bsnl
37515s/["\\]/\\&/g
37516s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37517D["\1"]=" \3"/p
37518s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37519d
37520:bsnl
37521s/["\\]/\\&/g
37522s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37523D["\1"]=" \3\\\\\\n"\\/p
37524t cont
37525s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37526t cont
37527d
37528:cont
37529n
37530s/.\{148\}/&'"$ac_delim"'/g
37531t clear
37532:clear
37533s/\\$//
37534t bsnlc
37535s/["\\]/\\&/g; s/^/"/; s/$/"/p
37536d
37537:bsnlc
37538s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37539b cont
37540' <confdefs.h | sed '
37541s/'"$ac_delim"'/"\\\
37542"/g' >>$CONFIG_STATUS || ac_write_fail=1
37543
37544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37545  for (key in D) D_is_set[key] = 1
37546  FS = ""
37547}
37548/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37549  line = \$ 0
37550  split(line, arg, " ")
37551  if (arg[1] == "#") {
37552    defundef = arg[2]
37553    mac1 = arg[3]
37554  } else {
37555    defundef = substr(arg[1], 2)
37556    mac1 = arg[2]
37557  }
37558  split(mac1, mac2, "(") #)
37559  macro = mac2[1]
37560  prefix = substr(line, 1, index(line, defundef) - 1)
37561  if (D_is_set[macro]) {
37562    # Preserve the white space surrounding the "#".
37563    print prefix "define", macro P[macro] D[macro]
37564    next
37565  } else {
37566    # Replace #undef with comments.  This is necessary, for example,
37567    # in the case of _POSIX_SOURCE, which is predefined and required
37568    # on some systems where configure will not decide to define it.
37569    if (defundef == "undef") {
37570      print "/*", prefix defundef, macro, "*/"
37571      next
37572    }
37573  }
37574}
37575{ print }
37576_ACAWK
37577_ACEOF
37578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37579  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37580fi # test -n "$CONFIG_HEADERS"
37581
37582
37583eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37584shift
37585for ac_tag
37586do
37587  case $ac_tag in
37588  :[FHLC]) ac_mode=$ac_tag; continue;;
37589  esac
37590  case $ac_mode$ac_tag in
37591  :[FHL]*:*);;
37592  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37593  :[FH]-) ac_tag=-:-;;
37594  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37595  esac
37596  ac_save_IFS=$IFS
37597  IFS=:
37598  set x $ac_tag
37599  IFS=$ac_save_IFS
37600  shift
37601  ac_file=$1
37602  shift
37603
37604  case $ac_mode in
37605  :L) ac_source=$1;;
37606  :[FH])
37607    ac_file_inputs=
37608    for ac_f
37609    do
37610      case $ac_f in
37611      -) ac_f="$ac_tmp/stdin";;
37612      *) # Look for the file first in the build tree, then in the source tree
37613	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37614	 # because $ac_f cannot contain `:'.
37615	 test -f "$ac_f" ||
37616	   case $ac_f in
37617	   [\\/$]*) false;;
37618	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37619	   esac ||
37620	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37621      esac
37622      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37623      as_fn_append ac_file_inputs " '$ac_f'"
37624    done
37625
37626    # Let's still pretend it is `configure' which instantiates (i.e., don't
37627    # use $as_me), people would be surprised to read:
37628    #    /* config.h.  Generated by config.status.  */
37629    configure_input='Generated from '`
37630	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37631	`' by configure.'
37632    if test x"$ac_file" != x-; then
37633      configure_input="$ac_file.  $configure_input"
37634      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37635$as_echo "$as_me: creating $ac_file" >&6;}
37636    fi
37637    # Neutralize special characters interpreted by sed in replacement strings.
37638    case $configure_input in #(
37639    *\&* | *\|* | *\\* )
37640       ac_sed_conf_input=`$as_echo "$configure_input" |
37641       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37642    *) ac_sed_conf_input=$configure_input;;
37643    esac
37644
37645    case $ac_tag in
37646    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37647      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37648    esac
37649    ;;
37650  esac
37651
37652  ac_dir=`$as_dirname -- "$ac_file" ||
37653$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37654	 X"$ac_file" : 'X\(//\)[^/]' \| \
37655	 X"$ac_file" : 'X\(//\)$' \| \
37656	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37657$as_echo X"$ac_file" |
37658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37659	    s//\1/
37660	    q
37661	  }
37662	  /^X\(\/\/\)[^/].*/{
37663	    s//\1/
37664	    q
37665	  }
37666	  /^X\(\/\/\)$/{
37667	    s//\1/
37668	    q
37669	  }
37670	  /^X\(\/\).*/{
37671	    s//\1/
37672	    q
37673	  }
37674	  s/.*/./; q'`
37675  as_dir="$ac_dir"; as_fn_mkdir_p
37676  ac_builddir=.
37677
37678case "$ac_dir" in
37679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37680*)
37681  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37682  # A ".." for each directory in $ac_dir_suffix.
37683  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37684  case $ac_top_builddir_sub in
37685  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37686  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37687  esac ;;
37688esac
37689ac_abs_top_builddir=$ac_pwd
37690ac_abs_builddir=$ac_pwd$ac_dir_suffix
37691# for backward compatibility:
37692ac_top_builddir=$ac_top_build_prefix
37693
37694case $srcdir in
37695  .)  # We are building in place.
37696    ac_srcdir=.
37697    ac_top_srcdir=$ac_top_builddir_sub
37698    ac_abs_top_srcdir=$ac_pwd ;;
37699  [\\/]* | ?:[\\/]* )  # Absolute name.
37700    ac_srcdir=$srcdir$ac_dir_suffix;
37701    ac_top_srcdir=$srcdir
37702    ac_abs_top_srcdir=$srcdir ;;
37703  *) # Relative name.
37704    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37705    ac_top_srcdir=$ac_top_build_prefix$srcdir
37706    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37707esac
37708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37709
37710
37711  case $ac_mode in
37712  :F)
37713  #
37714  # CONFIG_FILE
37715  #
37716
37717  case $INSTALL in
37718  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37719  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37720  esac
37721  ac_MKDIR_P=$MKDIR_P
37722  case $MKDIR_P in
37723  [\\/$]* | ?:[\\/]* ) ;;
37724  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37725  esac
37726_ACEOF
37727
37728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37729# If the template does not know about datarootdir, expand it.
37730# FIXME: This hack should be removed a few years after 2.60.
37731ac_datarootdir_hack=; ac_datarootdir_seen=
37732ac_sed_dataroot='
37733/datarootdir/ {
37734  p
37735  q
37736}
37737/@datadir@/p
37738/@docdir@/p
37739/@infodir@/p
37740/@localedir@/p
37741/@mandir@/p'
37742case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37743*datarootdir*) ac_datarootdir_seen=yes;;
37744*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37746$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37747_ACEOF
37748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37749  ac_datarootdir_hack='
37750  s&@datadir@&$datadir&g
37751  s&@docdir@&$docdir&g
37752  s&@infodir@&$infodir&g
37753  s&@localedir@&$localedir&g
37754  s&@mandir@&$mandir&g
37755  s&\\\${datarootdir}&$datarootdir&g' ;;
37756esac
37757_ACEOF
37758
37759# Neutralize VPATH when `$srcdir' = `.'.
37760# Shell code in configure.ac might set extrasub.
37761# FIXME: do we really want to maintain this feature?
37762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37763ac_sed_extra="$ac_vpsub
37764$extrasub
37765_ACEOF
37766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37767:t
37768/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37769s|@configure_input@|$ac_sed_conf_input|;t t
37770s&@top_builddir@&$ac_top_builddir_sub&;t t
37771s&@top_build_prefix@&$ac_top_build_prefix&;t t
37772s&@srcdir@&$ac_srcdir&;t t
37773s&@abs_srcdir@&$ac_abs_srcdir&;t t
37774s&@top_srcdir@&$ac_top_srcdir&;t t
37775s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37776s&@builddir@&$ac_builddir&;t t
37777s&@abs_builddir@&$ac_abs_builddir&;t t
37778s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37779s&@INSTALL@&$ac_INSTALL&;t t
37780s&@MKDIR_P@&$ac_MKDIR_P&;t t
37781$ac_datarootdir_hack
37782"
37783eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37784  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37785
37786test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37787  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37788  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37789      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37791which seems to be undefined.  Please make sure it is defined" >&5
37792$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37793which seems to be undefined.  Please make sure it is defined" >&2;}
37794
37795  rm -f "$ac_tmp/stdin"
37796  case $ac_file in
37797  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37798  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37799  esac \
37800  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37801 ;;
37802  :H)
37803  #
37804  # CONFIG_HEADER
37805  #
37806  if test x"$ac_file" != x-; then
37807    {
37808      $as_echo "/* $configure_input  */" \
37809      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37810    } >"$ac_tmp/config.h" \
37811      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37812    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37813      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37814$as_echo "$as_me: $ac_file is unchanged" >&6;}
37815    else
37816      rm -f "$ac_file"
37817      mv "$ac_tmp/config.h" "$ac_file" \
37818	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37819    fi
37820  else
37821    $as_echo "/* $configure_input  */" \
37822      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37823      || as_fn_error $? "could not create -" "$LINENO" 5
37824  fi
37825# Compute "$ac_file"'s index in $config_headers.
37826_am_arg="$ac_file"
37827_am_stamp_count=1
37828for _am_header in $config_headers :; do
37829  case $_am_header in
37830    $_am_arg | $_am_arg:* )
37831      break ;;
37832    * )
37833      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37834  esac
37835done
37836echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37837$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37838	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37839	 X"$_am_arg" : 'X\(//\)$' \| \
37840	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37841$as_echo X"$_am_arg" |
37842    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37843	    s//\1/
37844	    q
37845	  }
37846	  /^X\(\/\/\)[^/].*/{
37847	    s//\1/
37848	    q
37849	  }
37850	  /^X\(\/\/\)$/{
37851	    s//\1/
37852	    q
37853	  }
37854	  /^X\(\/\).*/{
37855	    s//\1/
37856	    q
37857	  }
37858	  s/.*/./; q'`/stamp-h$_am_stamp_count
37859 ;;
37860
37861  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37862$as_echo "$as_me: executing $ac_file commands" >&6;}
37863 ;;
37864  esac
37865
37866
37867  case $ac_file$ac_mode in
37868    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
37869ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37870ac_prefix_conf_PKG=`echo MagickCore`
37871ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37872ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37873ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37874if test ".$ac_prefix_conf_INP" = "."; then
37875   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37876     case "$ac_file" in
37877        *.h) ac_prefix_conf_INP=$ac_file ;;
37878        *)
37879     esac
37880     test ".$ac_prefix_conf_INP" != "." && break
37881   done
37882fi
37883if test ".$ac_prefix_conf_INP" = "."; then
37884   case "$ac_prefix_conf_OUT" in
37885      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37886      ;;
37887      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37888      ;;
37889      *) ac_prefix_conf_INP=config.h
37890      ;;
37891   esac
37892fi
37893if test -z "$ac_prefix_conf_PKG" ; then
37894   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37895else
37896  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37897     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37898  fi fi
37899  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37900$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37901  if test -f $ac_prefix_conf_INP ; then
37902    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37903    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37904    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37905    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37906    $as_echo "#endif/" >> conftest.prefix
37907    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37908    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37909    $as_echo "#endif/" >> conftest.prefix
37910    # now executing _script on _DEF input to create _OUT output file
37911    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37912    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37913    echo ' ' >>$tmp/pconfig.h
37914    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37915
37916    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37917    echo ' ' >>$tmp/pconfig.h
37918    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37919    echo "#endif" >>$tmp/pconfig.h
37920    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37921      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37922$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37923    else
37924      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37925$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37926	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37927	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37928	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37929$as_echo X"$ac_prefix_conf_OUT" |
37930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37931	    s//\1/
37932	    q
37933	  }
37934	  /^X\(\/\/\)[^/].*/{
37935	    s//\1/
37936	    q
37937	  }
37938	  /^X\(\/\/\)$/{
37939	    s//\1/
37940	    q
37941	  }
37942	  /^X\(\/\).*/{
37943	    s//\1/
37944	    q
37945	  }
37946	  s/.*/./; q'`
37947      as_dir="$ac_dir"; as_fn_mkdir_p
37948      rm -f "$ac_prefix_conf_OUT"
37949      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37950    fi
37951    cp conftest.prefix _configs.sed
37952  else
37953    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37954  fi
37955  rm -f conftest.*
37956fi
37957 ;;
37958    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37959  # Older Autoconf quotes --file arguments for eval, but not when files
37960  # are listed without --file.  Let's play safe and only enable the eval
37961  # if we detect the quoting.
37962  case $CONFIG_FILES in
37963  *\'*) eval set x "$CONFIG_FILES" ;;
37964  *)   set x $CONFIG_FILES ;;
37965  esac
37966  shift
37967  for mf
37968  do
37969    # Strip MF so we end up with the name of the file.
37970    mf=`echo "$mf" | sed -e 's/:.*$//'`
37971    # Check whether this is an Automake generated Makefile or not.
37972    # We used to match only the files named 'Makefile.in', but
37973    # some people rename them; so instead we look at the file content.
37974    # Grep'ing the first line is not enough: some people post-process
37975    # each Makefile.in and add a new line on top of each file to say so.
37976    # Grep'ing the whole file is not good either: AIX grep has a line
37977    # limit of 2048, but all sed's we know have understand at least 4000.
37978    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37979      dirpart=`$as_dirname -- "$mf" ||
37980$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37981	 X"$mf" : 'X\(//\)[^/]' \| \
37982	 X"$mf" : 'X\(//\)$' \| \
37983	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37984$as_echo X"$mf" |
37985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37986	    s//\1/
37987	    q
37988	  }
37989	  /^X\(\/\/\)[^/].*/{
37990	    s//\1/
37991	    q
37992	  }
37993	  /^X\(\/\/\)$/{
37994	    s//\1/
37995	    q
37996	  }
37997	  /^X\(\/\).*/{
37998	    s//\1/
37999	    q
38000	  }
38001	  s/.*/./; q'`
38002    else
38003      continue
38004    fi
38005    # Extract the definition of DEPDIR, am__include, and am__quote
38006    # from the Makefile without running 'make'.
38007    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38008    test -z "$DEPDIR" && continue
38009    am__include=`sed -n 's/^am__include = //p' < "$mf"`
38010    test -z "$am__include" && continue
38011    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
38012    # Find all dependency output files, they are included files with
38013    # $(DEPDIR) in their names.  We invoke sed twice because it is the
38014    # simplest approach to changing $(DEPDIR) to its actual value in the
38015    # expansion.
38016    for file in `sed -n "
38017      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
38018	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
38019      # Make sure the directory exists.
38020      test -f "$dirpart/$file" && continue
38021      fdir=`$as_dirname -- "$file" ||
38022$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38023	 X"$file" : 'X\(//\)[^/]' \| \
38024	 X"$file" : 'X\(//\)$' \| \
38025	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38026$as_echo X"$file" |
38027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38028	    s//\1/
38029	    q
38030	  }
38031	  /^X\(\/\/\)[^/].*/{
38032	    s//\1/
38033	    q
38034	  }
38035	  /^X\(\/\/\)$/{
38036	    s//\1/
38037	    q
38038	  }
38039	  /^X\(\/\).*/{
38040	    s//\1/
38041	    q
38042	  }
38043	  s/.*/./; q'`
38044      as_dir=$dirpart/$fdir; as_fn_mkdir_p
38045      # echo "creating $dirpart/$file"
38046      echo '# dummy' > "$dirpart/$file"
38047    done
38048  done
38049}
38050 ;;
38051    "libtool":C)
38052
38053    # See if we are running on zsh, and set the options which allow our
38054    # commands through without removal of \ escapes.
38055    if test -n "${ZSH_VERSION+set}" ; then
38056      setopt NO_GLOB_SUBST
38057    fi
38058
38059    cfgfile="${ofile}T"
38060    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38061    $RM "$cfgfile"
38062
38063    cat <<_LT_EOF >> "$cfgfile"
38064#! $SHELL
38065
38066# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38067# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38068# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38069# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38070#
38071#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38072#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38073#                 Foundation, Inc.
38074#   Written by Gordon Matzigkeit, 1996
38075#
38076#   This file is part of GNU Libtool.
38077#
38078# GNU Libtool is free software; you can redistribute it and/or
38079# modify it under the terms of the GNU General Public License as
38080# published by the Free Software Foundation; either version 2 of
38081# the License, or (at your option) any later version.
38082#
38083# As a special exception to the GNU General Public License,
38084# if you distribute this file as part of a program or library that
38085# is built using GNU Libtool, you may include this file under the
38086# same distribution terms that you use for the rest of that program.
38087#
38088# GNU Libtool is distributed in the hope that it will be useful,
38089# but WITHOUT ANY WARRANTY; without even the implied warranty of
38090# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38091# GNU General Public License for more details.
38092#
38093# You should have received a copy of the GNU General Public License
38094# along with GNU Libtool; see the file COPYING.  If not, a copy
38095# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38096# obtained by writing to the Free Software Foundation, Inc.,
38097# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38098
38099
38100# The names of the tagged configurations supported by this script.
38101available_tags="CXX "
38102
38103# ### BEGIN LIBTOOL CONFIG
38104
38105# A sed program that does not truncate output.
38106SED=$lt_SED
38107
38108# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38109Xsed="\$SED -e 1s/^X//"
38110
38111# A grep program that handles long lines.
38112GREP=$lt_GREP
38113
38114# An ERE matcher.
38115EGREP=$lt_EGREP
38116
38117# A literal string matcher.
38118FGREP=$lt_FGREP
38119
38120# Shell to use when invoking shell scripts.
38121SHELL=$lt_SHELL
38122
38123# An echo program that protects backslashes.
38124ECHO=$lt_ECHO
38125
38126# Which release of libtool.m4 was used?
38127macro_version=$macro_version
38128macro_revision=$macro_revision
38129
38130# Assembler program.
38131AS=$lt_AS
38132
38133# DLL creation program.
38134DLLTOOL=$lt_DLLTOOL
38135
38136# Object dumper program.
38137OBJDUMP=$lt_OBJDUMP
38138
38139# Whether or not to build shared libraries.
38140build_libtool_libs=$enable_shared
38141
38142# Whether or not to build static libraries.
38143build_old_libs=$enable_static
38144
38145# What type of objects to build.
38146pic_mode=$pic_mode
38147
38148# Whether or not to optimize for fast installation.
38149fast_install=$enable_fast_install
38150
38151# The PATH separator for the build system.
38152PATH_SEPARATOR=$lt_PATH_SEPARATOR
38153
38154# The host system.
38155host_alias=$host_alias
38156host=$host
38157host_os=$host_os
38158
38159# The build system.
38160build_alias=$build_alias
38161build=$build
38162build_os=$build_os
38163
38164# A BSD- or MS-compatible name lister.
38165NM=$lt_NM
38166
38167# Whether we need soft or hard links.
38168LN_S=$lt_LN_S
38169
38170# What is the maximum length of a command?
38171max_cmd_len=$max_cmd_len
38172
38173# Object file suffix (normally "o").
38174objext=$ac_objext
38175
38176# Executable file suffix (normally "").
38177exeext=$exeext
38178
38179# whether the shell understands "unset".
38180lt_unset=$lt_unset
38181
38182# turn spaces into newlines.
38183SP2NL=$lt_lt_SP2NL
38184
38185# turn newlines into spaces.
38186NL2SP=$lt_lt_NL2SP
38187
38188# convert \$build file names to \$host format.
38189to_host_file_cmd=$lt_cv_to_host_file_cmd
38190
38191# convert \$build files to toolchain format.
38192to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38193
38194# Method to check whether dependent libraries are shared objects.
38195deplibs_check_method=$lt_deplibs_check_method
38196
38197# Command to use when deplibs_check_method = "file_magic".
38198file_magic_cmd=$lt_file_magic_cmd
38199
38200# How to find potential files when deplibs_check_method = "file_magic".
38201file_magic_glob=$lt_file_magic_glob
38202
38203# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38204want_nocaseglob=$lt_want_nocaseglob
38205
38206# Command to associate shared and link libraries.
38207sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38208
38209# The archiver.
38210AR=$lt_AR
38211
38212# Flags to create an archive.
38213AR_FLAGS=$lt_AR_FLAGS
38214
38215# How to feed a file listing to the archiver.
38216archiver_list_spec=$lt_archiver_list_spec
38217
38218# A symbol stripping program.
38219STRIP=$lt_STRIP
38220
38221# Commands used to install an old-style archive.
38222RANLIB=$lt_RANLIB
38223old_postinstall_cmds=$lt_old_postinstall_cmds
38224old_postuninstall_cmds=$lt_old_postuninstall_cmds
38225
38226# Whether to use a lock for old archive extraction.
38227lock_old_archive_extraction=$lock_old_archive_extraction
38228
38229# A C compiler.
38230LTCC=$lt_CC
38231
38232# LTCC compiler flags.
38233LTCFLAGS=$lt_CFLAGS
38234
38235# Take the output of nm and produce a listing of raw symbols and C names.
38236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38237
38238# Transform the output of nm in a proper C declaration.
38239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38240
38241# Transform the output of nm in a C name address pair.
38242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38243
38244# Transform the output of nm in a C name address pair when lib prefix is needed.
38245global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38246
38247# Specify filename containing input files for \$NM.
38248nm_file_list_spec=$lt_nm_file_list_spec
38249
38250# The root where to search for dependent libraries,and in which our libraries should be installed.
38251lt_sysroot=$lt_sysroot
38252
38253# The name of the directory that contains temporary libtool files.
38254objdir=$objdir
38255
38256# Used to examine libraries when file_magic_cmd begins with "file".
38257MAGIC_CMD=$MAGIC_CMD
38258
38259# Must we lock files when doing compilation?
38260need_locks=$lt_need_locks
38261
38262# Manifest tool.
38263MANIFEST_TOOL=$lt_MANIFEST_TOOL
38264
38265# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38266DSYMUTIL=$lt_DSYMUTIL
38267
38268# Tool to change global to local symbols on Mac OS X.
38269NMEDIT=$lt_NMEDIT
38270
38271# Tool to manipulate fat objects and archives on Mac OS X.
38272LIPO=$lt_LIPO
38273
38274# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38275OTOOL=$lt_OTOOL
38276
38277# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38278OTOOL64=$lt_OTOOL64
38279
38280# Old archive suffix (normally "a").
38281libext=$libext
38282
38283# Shared library suffix (normally ".so").
38284shrext_cmds=$lt_shrext_cmds
38285
38286# The commands to extract the exported symbol list from a shared archive.
38287extract_expsyms_cmds=$lt_extract_expsyms_cmds
38288
38289# Variables whose values should be saved in libtool wrapper scripts and
38290# restored at link time.
38291variables_saved_for_relink=$lt_variables_saved_for_relink
38292
38293# Do we need the "lib" prefix for modules?
38294need_lib_prefix=$need_lib_prefix
38295
38296# Do we need a version for libraries?
38297need_version=$need_version
38298
38299# Library versioning type.
38300version_type=$version_type
38301
38302# Shared library runtime path variable.
38303runpath_var=$runpath_var
38304
38305# Shared library path variable.
38306shlibpath_var=$shlibpath_var
38307
38308# Is shlibpath searched before the hard-coded library search path?
38309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38310
38311# Format of library name prefix.
38312libname_spec=$lt_libname_spec
38313
38314# List of archive names.  First name is the real one, the rest are links.
38315# The last name is the one that the linker finds with -lNAME
38316library_names_spec=$lt_library_names_spec
38317
38318# The coded name of the library, if different from the real name.
38319soname_spec=$lt_soname_spec
38320
38321# Permission mode override for installation of shared libraries.
38322install_override_mode=$lt_install_override_mode
38323
38324# Command to use after installation of a shared archive.
38325postinstall_cmds=$lt_postinstall_cmds
38326
38327# Command to use after uninstallation of a shared archive.
38328postuninstall_cmds=$lt_postuninstall_cmds
38329
38330# Commands used to finish a libtool library installation in a directory.
38331finish_cmds=$lt_finish_cmds
38332
38333# As "finish_cmds", except a single script fragment to be evaled but
38334# not shown.
38335finish_eval=$lt_finish_eval
38336
38337# Whether we should hardcode library paths into libraries.
38338hardcode_into_libs=$hardcode_into_libs
38339
38340# Compile-time system search path for libraries.
38341sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38342
38343# Run-time system search path for libraries.
38344sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38345
38346# Whether dlopen is supported.
38347dlopen_support=$enable_dlopen
38348
38349# Whether dlopen of programs is supported.
38350dlopen_self=$enable_dlopen_self
38351
38352# Whether dlopen of statically linked programs is supported.
38353dlopen_self_static=$enable_dlopen_self_static
38354
38355# Commands to strip libraries.
38356old_striplib=$lt_old_striplib
38357striplib=$lt_striplib
38358
38359
38360# The linker used to build libraries.
38361LD=$lt_LD
38362
38363# How to create reloadable object files.
38364reload_flag=$lt_reload_flag
38365reload_cmds=$lt_reload_cmds
38366
38367# Commands used to build an old-style archive.
38368old_archive_cmds=$lt_old_archive_cmds
38369
38370# A language specific compiler.
38371CC=$lt_compiler
38372
38373# Is the compiler the GNU compiler?
38374with_gcc=$GCC
38375
38376# Compiler flag to turn off builtin functions.
38377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38378
38379# Additional compiler flags for building library objects.
38380pic_flag=$lt_lt_prog_compiler_pic
38381
38382# How to pass a linker flag through the compiler.
38383wl=$lt_lt_prog_compiler_wl
38384
38385# Compiler flag to prevent dynamic linking.
38386link_static_flag=$lt_lt_prog_compiler_static
38387
38388# Does compiler simultaneously support -c and -o options?
38389compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38390
38391# Whether or not to add -lc for building shared libraries.
38392build_libtool_need_lc=$archive_cmds_need_lc
38393
38394# Whether or not to disallow shared libs when runtime libs are static.
38395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38396
38397# Compiler flag to allow reflexive dlopens.
38398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38399
38400# Compiler flag to generate shared objects directly from archives.
38401whole_archive_flag_spec=$lt_whole_archive_flag_spec
38402
38403# Whether the compiler copes with passing no objects directly.
38404compiler_needs_object=$lt_compiler_needs_object
38405
38406# Create an old-style archive from a shared archive.
38407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38408
38409# Create a temporary old-style archive to link instead of a shared archive.
38410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38411
38412# Commands used to build a shared archive.
38413archive_cmds=$lt_archive_cmds
38414archive_expsym_cmds=$lt_archive_expsym_cmds
38415
38416# Commands used to build a loadable module if different from building
38417# a shared archive.
38418module_cmds=$lt_module_cmds
38419module_expsym_cmds=$lt_module_expsym_cmds
38420
38421# Whether we are building with GNU ld or not.
38422with_gnu_ld=$lt_with_gnu_ld
38423
38424# Flag that allows shared libraries with undefined symbols to be built.
38425allow_undefined_flag=$lt_allow_undefined_flag
38426
38427# Flag that enforces no undefined symbols.
38428no_undefined_flag=$lt_no_undefined_flag
38429
38430# Flag to hardcode \$libdir into a binary during linking.
38431# This must work even if \$libdir does not exist
38432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38433
38434# Whether we need a single "-rpath" flag with a separated argument.
38435hardcode_libdir_separator=$lt_hardcode_libdir_separator
38436
38437# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38438# DIR into the resulting binary.
38439hardcode_direct=$hardcode_direct
38440
38441# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38442# DIR into the resulting binary and the resulting library dependency is
38443# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38444# library is relocated.
38445hardcode_direct_absolute=$hardcode_direct_absolute
38446
38447# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38448# into the resulting binary.
38449hardcode_minus_L=$hardcode_minus_L
38450
38451# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38452# into the resulting binary.
38453hardcode_shlibpath_var=$hardcode_shlibpath_var
38454
38455# Set to "yes" if building a shared library automatically hardcodes DIR
38456# into the library and all subsequent libraries and executables linked
38457# against it.
38458hardcode_automatic=$hardcode_automatic
38459
38460# Set to yes if linker adds runtime paths of dependent libraries
38461# to runtime path list.
38462inherit_rpath=$inherit_rpath
38463
38464# Whether libtool must link a program against all its dependency libraries.
38465link_all_deplibs=$link_all_deplibs
38466
38467# Set to "yes" if exported symbols are required.
38468always_export_symbols=$always_export_symbols
38469
38470# The commands to list exported symbols.
38471export_symbols_cmds=$lt_export_symbols_cmds
38472
38473# Symbols that should not be listed in the preloaded symbols.
38474exclude_expsyms=$lt_exclude_expsyms
38475
38476# Symbols that must always be exported.
38477include_expsyms=$lt_include_expsyms
38478
38479# Commands necessary for linking programs (against libraries) with templates.
38480prelink_cmds=$lt_prelink_cmds
38481
38482# Commands necessary for finishing linking programs.
38483postlink_cmds=$lt_postlink_cmds
38484
38485# Specify filename containing input files.
38486file_list_spec=$lt_file_list_spec
38487
38488# How to hardcode a shared library path into an executable.
38489hardcode_action=$hardcode_action
38490
38491# The directories searched by this compiler when creating a shared library.
38492compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38493
38494# Dependencies to place before and after the objects being linked to
38495# create a shared library.
38496predep_objects=$lt_predep_objects
38497postdep_objects=$lt_postdep_objects
38498predeps=$lt_predeps
38499postdeps=$lt_postdeps
38500
38501# The library search path used internally by the compiler when linking
38502# a shared library.
38503compiler_lib_search_path=$lt_compiler_lib_search_path
38504
38505# ### END LIBTOOL CONFIG
38506
38507_LT_EOF
38508
38509  case $host_os in
38510  aix3*)
38511    cat <<\_LT_EOF >> "$cfgfile"
38512# AIX sometimes has problems with the GCC collect2 program.  For some
38513# reason, if we set the COLLECT_NAMES environment variable, the problems
38514# vanish in a puff of smoke.
38515if test "X${COLLECT_NAMES+set}" != Xset; then
38516  COLLECT_NAMES=
38517  export COLLECT_NAMES
38518fi
38519_LT_EOF
38520    ;;
38521  esac
38522
38523
38524ltmain="$ac_aux_dir/ltmain.sh"
38525
38526
38527  # We use sed instead of cat because bash on DJGPP gets confused if
38528  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38529  # text mode, it properly converts lines to CR/LF.  This bash problem
38530  # is reportedly fixed, but why not run on old versions too?
38531  sed '$q' "$ltmain" >> "$cfgfile" \
38532     || (rm -f "$cfgfile"; exit 1)
38533
38534  if test x"$xsi_shell" = xyes; then
38535  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38536func_dirname ()\
38537{\
38538\    case ${1} in\
38539\      */*) func_dirname_result="${1%/*}${2}" ;;\
38540\      *  ) func_dirname_result="${3}" ;;\
38541\    esac\
38542} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38543  && mv -f "$cfgfile.tmp" "$cfgfile" \
38544    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38545test 0 -eq $? || _lt_function_replace_fail=:
38546
38547
38548  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38549func_basename ()\
38550{\
38551\    func_basename_result="${1##*/}"\
38552} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38553  && mv -f "$cfgfile.tmp" "$cfgfile" \
38554    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38555test 0 -eq $? || _lt_function_replace_fail=:
38556
38557
38558  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38559func_dirname_and_basename ()\
38560{\
38561\    case ${1} in\
38562\      */*) func_dirname_result="${1%/*}${2}" ;;\
38563\      *  ) func_dirname_result="${3}" ;;\
38564\    esac\
38565\    func_basename_result="${1##*/}"\
38566} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38567  && mv -f "$cfgfile.tmp" "$cfgfile" \
38568    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38569test 0 -eq $? || _lt_function_replace_fail=:
38570
38571
38572  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38573func_stripname ()\
38574{\
38575\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38576\    # positional parameters, so assign one to ordinary parameter first.\
38577\    func_stripname_result=${3}\
38578\    func_stripname_result=${func_stripname_result#"${1}"}\
38579\    func_stripname_result=${func_stripname_result%"${2}"}\
38580} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38581  && mv -f "$cfgfile.tmp" "$cfgfile" \
38582    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38583test 0 -eq $? || _lt_function_replace_fail=:
38584
38585
38586  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38587func_split_long_opt ()\
38588{\
38589\    func_split_long_opt_name=${1%%=*}\
38590\    func_split_long_opt_arg=${1#*=}\
38591} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38592  && mv -f "$cfgfile.tmp" "$cfgfile" \
38593    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38594test 0 -eq $? || _lt_function_replace_fail=:
38595
38596
38597  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38598func_split_short_opt ()\
38599{\
38600\    func_split_short_opt_arg=${1#??}\
38601\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38602} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38603  && mv -f "$cfgfile.tmp" "$cfgfile" \
38604    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38605test 0 -eq $? || _lt_function_replace_fail=:
38606
38607
38608  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38609func_lo2o ()\
38610{\
38611\    case ${1} in\
38612\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38613\      *)    func_lo2o_result=${1} ;;\
38614\    esac\
38615} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38616  && mv -f "$cfgfile.tmp" "$cfgfile" \
38617    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38618test 0 -eq $? || _lt_function_replace_fail=:
38619
38620
38621  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38622func_xform ()\
38623{\
38624    func_xform_result=${1%.*}.lo\
38625} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38626  && mv -f "$cfgfile.tmp" "$cfgfile" \
38627    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38628test 0 -eq $? || _lt_function_replace_fail=:
38629
38630
38631  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38632func_arith ()\
38633{\
38634    func_arith_result=$(( $* ))\
38635} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38636  && mv -f "$cfgfile.tmp" "$cfgfile" \
38637    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38638test 0 -eq $? || _lt_function_replace_fail=:
38639
38640
38641  sed -e '/^func_len ()$/,/^} # func_len /c\
38642func_len ()\
38643{\
38644    func_len_result=${#1}\
38645} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38646  && mv -f "$cfgfile.tmp" "$cfgfile" \
38647    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38648test 0 -eq $? || _lt_function_replace_fail=:
38649
38650fi
38651
38652if test x"$lt_shell_append" = xyes; then
38653  sed -e '/^func_append ()$/,/^} # func_append /c\
38654func_append ()\
38655{\
38656    eval "${1}+=\\${2}"\
38657} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38658  && mv -f "$cfgfile.tmp" "$cfgfile" \
38659    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38660test 0 -eq $? || _lt_function_replace_fail=:
38661
38662
38663  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38664func_append_quoted ()\
38665{\
38666\    func_quote_for_eval "${2}"\
38667\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38668} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38669  && mv -f "$cfgfile.tmp" "$cfgfile" \
38670    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38671test 0 -eq $? || _lt_function_replace_fail=:
38672
38673
38674  # Save a `func_append' function call where possible by direct use of '+='
38675  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38676    && mv -f "$cfgfile.tmp" "$cfgfile" \
38677      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38678  test 0 -eq $? || _lt_function_replace_fail=:
38679else
38680  # Save a `func_append' function call even when '+=' is not available
38681  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38682    && mv -f "$cfgfile.tmp" "$cfgfile" \
38683      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38684  test 0 -eq $? || _lt_function_replace_fail=:
38685fi
38686
38687if test x"$_lt_function_replace_fail" = x":"; then
38688  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38689$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38690fi
38691
38692
38693   mv -f "$cfgfile" "$ofile" ||
38694    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38695  chmod +x "$ofile"
38696
38697
38698    cat <<_LT_EOF >> "$ofile"
38699
38700# ### BEGIN LIBTOOL TAG CONFIG: CXX
38701
38702# The linker used to build libraries.
38703LD=$lt_LD_CXX
38704
38705# How to create reloadable object files.
38706reload_flag=$lt_reload_flag_CXX
38707reload_cmds=$lt_reload_cmds_CXX
38708
38709# Commands used to build an old-style archive.
38710old_archive_cmds=$lt_old_archive_cmds_CXX
38711
38712# A language specific compiler.
38713CC=$lt_compiler_CXX
38714
38715# Is the compiler the GNU compiler?
38716with_gcc=$GCC_CXX
38717
38718# Compiler flag to turn off builtin functions.
38719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38720
38721# Additional compiler flags for building library objects.
38722pic_flag=$lt_lt_prog_compiler_pic_CXX
38723
38724# How to pass a linker flag through the compiler.
38725wl=$lt_lt_prog_compiler_wl_CXX
38726
38727# Compiler flag to prevent dynamic linking.
38728link_static_flag=$lt_lt_prog_compiler_static_CXX
38729
38730# Does compiler simultaneously support -c and -o options?
38731compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38732
38733# Whether or not to add -lc for building shared libraries.
38734build_libtool_need_lc=$archive_cmds_need_lc_CXX
38735
38736# Whether or not to disallow shared libs when runtime libs are static.
38737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38738
38739# Compiler flag to allow reflexive dlopens.
38740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38741
38742# Compiler flag to generate shared objects directly from archives.
38743whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38744
38745# Whether the compiler copes with passing no objects directly.
38746compiler_needs_object=$lt_compiler_needs_object_CXX
38747
38748# Create an old-style archive from a shared archive.
38749old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38750
38751# Create a temporary old-style archive to link instead of a shared archive.
38752old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38753
38754# Commands used to build a shared archive.
38755archive_cmds=$lt_archive_cmds_CXX
38756archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38757
38758# Commands used to build a loadable module if different from building
38759# a shared archive.
38760module_cmds=$lt_module_cmds_CXX
38761module_expsym_cmds=$lt_module_expsym_cmds_CXX
38762
38763# Whether we are building with GNU ld or not.
38764with_gnu_ld=$lt_with_gnu_ld_CXX
38765
38766# Flag that allows shared libraries with undefined symbols to be built.
38767allow_undefined_flag=$lt_allow_undefined_flag_CXX
38768
38769# Flag that enforces no undefined symbols.
38770no_undefined_flag=$lt_no_undefined_flag_CXX
38771
38772# Flag to hardcode \$libdir into a binary during linking.
38773# This must work even if \$libdir does not exist
38774hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38775
38776# Whether we need a single "-rpath" flag with a separated argument.
38777hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38778
38779# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38780# DIR into the resulting binary.
38781hardcode_direct=$hardcode_direct_CXX
38782
38783# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38784# DIR into the resulting binary and the resulting library dependency is
38785# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38786# library is relocated.
38787hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38788
38789# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38790# into the resulting binary.
38791hardcode_minus_L=$hardcode_minus_L_CXX
38792
38793# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38794# into the resulting binary.
38795hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38796
38797# Set to "yes" if building a shared library automatically hardcodes DIR
38798# into the library and all subsequent libraries and executables linked
38799# against it.
38800hardcode_automatic=$hardcode_automatic_CXX
38801
38802# Set to yes if linker adds runtime paths of dependent libraries
38803# to runtime path list.
38804inherit_rpath=$inherit_rpath_CXX
38805
38806# Whether libtool must link a program against all its dependency libraries.
38807link_all_deplibs=$link_all_deplibs_CXX
38808
38809# Set to "yes" if exported symbols are required.
38810always_export_symbols=$always_export_symbols_CXX
38811
38812# The commands to list exported symbols.
38813export_symbols_cmds=$lt_export_symbols_cmds_CXX
38814
38815# Symbols that should not be listed in the preloaded symbols.
38816exclude_expsyms=$lt_exclude_expsyms_CXX
38817
38818# Symbols that must always be exported.
38819include_expsyms=$lt_include_expsyms_CXX
38820
38821# Commands necessary for linking programs (against libraries) with templates.
38822prelink_cmds=$lt_prelink_cmds_CXX
38823
38824# Commands necessary for finishing linking programs.
38825postlink_cmds=$lt_postlink_cmds_CXX
38826
38827# Specify filename containing input files.
38828file_list_spec=$lt_file_list_spec_CXX
38829
38830# How to hardcode a shared library path into an executable.
38831hardcode_action=$hardcode_action_CXX
38832
38833# The directories searched by this compiler when creating a shared library.
38834compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38835
38836# Dependencies to place before and after the objects being linked to
38837# create a shared library.
38838predep_objects=$lt_predep_objects_CXX
38839postdep_objects=$lt_postdep_objects_CXX
38840predeps=$lt_predeps_CXX
38841postdeps=$lt_postdeps_CXX
38842
38843# The library search path used internally by the compiler when linking
38844# a shared library.
38845compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38846
38847# ### END LIBTOOL TAG CONFIG: CXX
38848_LT_EOF
38849
38850 ;;
38851    "magick.sh.in":C) chmod +x magick.sh ;;
38852    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38853    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38854    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38855    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38856
38857  esac
38858done # for ac_tag
38859
38860
38861as_fn_exit 0
38862_ACEOF
38863ac_clean_files=$ac_clean_files_save
38864
38865test $ac_write_fail = 0 ||
38866  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38867
38868
38869# configure is writing to config.log, and then calls config.status.
38870# config.status does its own redirection, appending to config.log.
38871# Unfortunately, on DOS this fails, as config.log is still kept open
38872# by configure, so config.status won't be able to write to it; its
38873# output is simply discarded.  So we exec the FD to /dev/null,
38874# effectively closing config.log, so it can be properly (re)opened and
38875# appended to by config.status.  When coming back to configure, we
38876# need to make the FD available again.
38877if test "$no_create" != yes; then
38878  ac_cs_success=:
38879  ac_config_status_args=
38880  test "$silent" = yes &&
38881    ac_config_status_args="$ac_config_status_args --quiet"
38882  exec 5>/dev/null
38883  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38884  exec 5>>config.log
38885  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38886  # would make configure fail if this is the last instruction.
38887  $ac_cs_success || as_fn_exit 1
38888fi
38889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38890  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38892fi
38893
38894
38895rm -f magick-version
38896
38897result_dejavu_font_dir='none'
38898if test "${dejavu_font_dir}x" != 'x'; then
38899    result_dejavu_font_dir=$dejavu_font_dir
38900fi
38901
38902result_ghostscript_font_dir='none'
38903if test "${ghostscript_font_dir}x" != 'x'; then
38904    result_ghostscript_font_dir=$ghostscript_font_dir
38905fi
38906
38907result_windows_font_dir='none'
38908if test "${windows_font_dir}x" != 'x'; then
38909    result_windows_font_dir=${windows_font_dir}
38910fi
38911
38912{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
38913ImageMagick is configured as follows. Please verify that this configuration
38914matches your expectations.
38915
38916Host system type: $host
38917Build system type: $build
38918
38919                  Option                        Value
38920-------------------------------------------------------------------------------
38921Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
38922Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
38923Module support    --with-modules=$build_modules		$build_modules
38924GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
38925Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
38926High Dynamic Range Imagery
38927                  --enable-hdri=$enable_hdri		$enable_hdri
38928
38929Delegate Configuration:
38930BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
38931Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
38932Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
38933DJVU              --with-djvu=$with_djvu		$have_djvu
38934DPS               --with-dps=$with_dps		$have_dps
38935FFTW              --with-fftw=$with_fftw		$have_fftw
38936FlashPIX          --with-fpx=$with_fpx		$have_fpx
38937FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
38938FreeType          --with-freetype=$with_freetype		$have_freetype
38939GhostPCL          None				$PCLDelegate ($PCLVersion)
38940GhostXPS          None				$XPSDelegate ($XPSVersion)
38941Ghostscript       None				$PSDelegate ($GSVersion)
38942Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
38943Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
38944Graphviz          --with-gvc=$with_gvc		$have_gvc
38945JBIG              --with-jbig=$with_jbig		$have_jbig
38946JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
38947JPEG-2000         --with-jp2=$with_jp2		$have_jp2
38948LCMS v1           --with-lcms=$with_lcms		$have_lcms
38949LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
38950LIBJPEG2          --with-openjp2=$with_openjp2	$have_openjp2
38951LQR               --with-lqr=$with_lqr		$have_lqr
38952LTDL              --with-ltdl=$with_ltdl		$have_ltdl
38953LZMA              --with-lzma=$with_lzma		$have_lzma
38954Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
38955OpenEXR           --with-openexr=$with_openexr		$have_openexr
38956PANGO             --with-pango=$with_pango		$have_pango
38957PERL              --with-perl=$with_perl		$have_perl
38958PNG               --with-png=$with_png		$have_png
38959RSVG              --with-rsvg=$with_rsvg		$have_rsvg
38960TIFF              --with-tiff=$with_tiff		$have_tiff
38961WEBP              --with-webp=$with_webp		$have_webp
38962Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
38963WMF               --with-wmf=$with_wmf		$have_wmf
38964X11               --with-x=$with_x			$have_x
38965XML               --with-xml=$with_xml		$have_xml
38966ZLIB              --with-zlib=$with_zlib		$have_zlib
38967
38968X11 Configuration:
38969      X_CFLAGS        = $X_CFLAGS
38970      X_PRE_LIBS      = $X_PRE_LIBS
38971      X_LIBS          = $X_LIBS
38972      X_EXTRA_LIBS    = $X_EXTRA_LIBS
38973
38974Options used to compile and link:
38975  PREFIX          = $PREFIX_DIR
38976  EXEC-PREFIX     = $EXEC_PREFIX_DIR
38977  VERSION         = $PACKAGE_VERSION
38978  CC              = $CC
38979  CFLAGS          = $CFLAGS
38980  CPPFLAGS        = $CPPFLAGS
38981  PCFLAGS         = $PCFLAGS
38982  DEFS            = $DEFS
38983  LDFLAGS         = $LDFLAGS
38984  LIBS            = $LIBS
38985  CXX             = $CXX
38986  CXXFLAGS        = $CXXFLAGS
38987  FEATURES        = $MAGICK_FEATURES
38988  DELEGATES       = $MAGICK_DELEGATES
38989" >&5
38990$as_echo "
38991ImageMagick is configured as follows. Please verify that this configuration
38992matches your expectations.
38993
38994Host system type: $host
38995Build system type: $build
38996
38997                  Option                        Value
38998-------------------------------------------------------------------------------
38999Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39000Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39001Module support    --with-modules=$build_modules		$build_modules
39002GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39003Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39004High Dynamic Range Imagery
39005                  --enable-hdri=$enable_hdri		$enable_hdri
39006
39007Delegate Configuration:
39008BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39009Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39010Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39011DJVU              --with-djvu=$with_djvu		$have_djvu
39012DPS               --with-dps=$with_dps		$have_dps
39013FFTW              --with-fftw=$with_fftw		$have_fftw
39014FlashPIX          --with-fpx=$with_fpx		$have_fpx
39015FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig
39016FreeType          --with-freetype=$with_freetype		$have_freetype
39017GhostPCL          None				$PCLDelegate ($PCLVersion)
39018GhostXPS          None				$XPSDelegate ($XPSVersion)
39019Ghostscript       None				$PSDelegate ($GSVersion)
39020Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
39021Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39022Graphviz          --with-gvc=$with_gvc		$have_gvc
39023JBIG              --with-jbig=$with_jbig		$have_jbig
39024JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39025JPEG-2000         --with-jp2=$with_jp2		$have_jp2
39026LCMS v1           --with-lcms=$with_lcms		$have_lcms
39027LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2
39028LIBJPEG2          --with-openjp2=$with_openjp2	$have_openjp2
39029LQR               --with-lqr=$with_lqr		$have_lqr
39030LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39031LZMA              --with-lzma=$with_lzma		$have_lzma
39032Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39033OpenEXR           --with-openexr=$with_openexr		$have_openexr
39034PANGO             --with-pango=$with_pango		$have_pango
39035PERL              --with-perl=$with_perl		$have_perl
39036PNG               --with-png=$with_png		$have_png
39037RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39038TIFF              --with-tiff=$with_tiff		$have_tiff
39039WEBP              --with-webp=$with_webp		$have_webp
39040Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39041WMF               --with-wmf=$with_wmf		$have_wmf
39042X11               --with-x=$with_x			$have_x
39043XML               --with-xml=$with_xml		$have_xml
39044ZLIB              --with-zlib=$with_zlib		$have_zlib
39045
39046X11 Configuration:
39047      X_CFLAGS        = $X_CFLAGS
39048      X_PRE_LIBS      = $X_PRE_LIBS
39049      X_LIBS          = $X_LIBS
39050      X_EXTRA_LIBS    = $X_EXTRA_LIBS
39051
39052Options used to compile and link:
39053  PREFIX          = $PREFIX_DIR
39054  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39055  VERSION         = $PACKAGE_VERSION
39056  CC              = $CC
39057  CFLAGS          = $CFLAGS
39058  CPPFLAGS        = $CPPFLAGS
39059  PCFLAGS         = $PCFLAGS
39060  DEFS            = $DEFS
39061  LDFLAGS         = $LDFLAGS
39062  LIBS            = $LIBS
39063  CXX             = $CXX
39064  CXXFLAGS        = $CXXFLAGS
39065  FEATURES        = $MAGICK_FEATURES
39066  DELEGATES       = $MAGICK_DELEGATES
39067" >&6; }
39068